{
  "description": "Machine is the Schema for the machines API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "MachineSpec defines desired machine state",
      "properties": {
        "connection": {
          "description": "Connection contains connection data for a Baseboard Management Controller.",
          "properties": {
            "authSecretRef": {
              "description": "AuthSecretRef is the SecretReference that contains authentication information of the Machine. The Secret must contain username and password keys.",
              "properties": {
                "name": {
                  "description": "name is unique within a namespace to reference a secret resource.",
                  "type": "string"
                },
                "namespace": {
                  "description": "namespace defines the space within which the secret name must be unique.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "host": {
              "description": "Host is the host IP address or hostname of the Machine.",
              "minLength": 1,
              "type": "string"
            },
            "insecureTLS": {
              "description": "InsecureTLS specifies trusted TLS connections.",
              "type": "boolean"
            },
            "port": {
              "default": 623,
              "description": "Port is the port number for connecting with the Machine.",
              "type": "integer"
            }
          },
          "required": [
            "authSecretRef",
            "host",
            "insecureTLS",
            "port"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "connection"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "MachineStatus defines the observed state of Machine",
      "properties": {
        "conditions": {
          "description": "Conditions represents the latest available observations of an object's current state.",
          "items": {
            "description": "MachineCondition defines an observed condition of a Machine.",
            "properties": {
              "lastUpdateTime": {
                "description": "LastUpdateTime of the condition.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "Message is a human readable message indicating with details of the last transition.",
                "type": "string"
              },
              "status": {
                "description": "Status of the condition.",
                "type": "string"
              },
              "type": {
                "description": "Type of the Machine condition.",
                "type": "string"
              }
            },
            "required": [
              "status",
              "type"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "powerState": {
          "description": "Power is the current power state of the Machine.",
          "enum": [
            "on",
            "off"
          ],
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
