{
  "description": "VolumeAttachment stores attachment information of a Longhorn volume",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "VolumeAttachmentSpec defines the desired state of Longhorn VolumeAttachment",
      "properties": {
        "attachmentTickets": {
          "additionalProperties": {
            "additionalProperties": false,
            "properties": {
              "generation": {
                "description": "A sequence number representing a specific generation of the desired state.\nPopulated by the system. Read-only.",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "id": {
                "description": "The unique ID of this attachment. Used to differentiate different attachments of the same volume.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "nodeID": {
                "description": "The node that this attachment is requesting",
                "type": [
                  "string",
                  "null"
                ]
              },
              "parameters": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Optional additional parameter for this attachment",
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": [
            "object",
            "null"
          ]
        },
        "volume": {
          "description": "The name of Longhorn volume of this VolumeAttachment",
          "type": "string"
        }
      },
      "required": [
        "volume"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "VolumeAttachmentStatus defines the observed state of Longhorn VolumeAttachment",
      "properties": {
        "attachmentTicketStatuses": {
          "additionalProperties": {
            "additionalProperties": false,
            "properties": {
              "conditions": {
                "description": "Record any error when trying to fulfill this attachment",
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "lastProbeTime": {
                      "description": "Last time we probed the condition.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "lastTransitionTime": {
                      "description": "Last time the condition transitioned from one status to another.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "message": {
                      "description": "Human-readable message indicating details about last transition.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reason": {
                      "description": "Unique, one-word, CamelCase reason for the condition's last transition.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "description": "Status is the status of the condition.\nCan be True, False, Unknown.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "description": "Type is the type of the condition.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": "object"
                },
                "nullable": true,
                "type": "array"
              },
              "generation": {
                "description": "A sequence number representing a specific generation of the desired state.\nPopulated by the system. Read-only.",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "id": {
                "description": "The unique ID of this attachment. Used to differentiate different attachments of the same volume.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "satisfied": {
                "description": "Indicate whether this attachment ticket has been satisfied",
                "type": "boolean"
              }
            },
            "required": [
              "conditions",
              "satisfied"
            ],
            "type": "object"
          },
          "type": [
            "object",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}