schema_computer-2.0.yml 1022 Bytes
schema;schema_computer:
  type: map
  required: True
  mapping:
    inventory_label:
      type: str
      required: True
    manufacturer: 
      type: str
      required: True
    model: 
      type: str
      required: True
    description: 
      type: str
      required: True
    sn: 
      type: str
      required: True
    power:
      type: map
      required: True
      mapping:
        voltage: 
          type: int
          required: True
        intensity: 
          type: int
          required: True
        socket: 
          type: str
          required: True
    
    hostname: 
      type: str
      required: True
    virtual_machine: 
      type: bool
      required: True
    os: 
      type: str
      required: True
    os_version: 
      type: str
      required: True
    network_interfaces: 
      type: seq
      required: True
      sequence:
        - type: str
        
type: map
required: True
mapping:
  schema:
    type: str
    required: True
  COMPUTER:
    include: schema_computer