{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-mysql/json-schema/microsoft-azure-mysql-maintenance-list-result-schema.json",
  "title": "MaintenanceListResult",
  "description": "The response of a Maintenance list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-mysql-maintenances-api-openapi.yml#/components/schemas/MaintenanceListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The Maintenance items on this page",
      "items": {
        "$ref": "#/$defs/Maintenance"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "$defs": {
    "Maintenance": {
      "type": "object",
      "description": "Represents a maintenance.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/MaintenanceProperties",
          "description": "The properties of a maintenance",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "properties"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "MaintenanceProperties": {
      "type": "object",
      "description": "The properties of a maintenance resource.",
      "properties": {
        "maintenanceType": {
          "$ref": "#/$defs/MaintenanceType",
          "description": "A string defines maintenance type.",
          "readOnly": true
        },
        "maintenanceState": {
          "$ref": "#/$defs/MaintenanceState",
          "description": "A string describes the maintenance status",
          "readOnly": true
        },
        "maintenanceStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time for a maintenance."
        },
        "maintenanceEndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end time for a maintenance.",
          "readOnly": true
        },
        "maintenanceExecutionStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start time for a maintenance execution.",
          "readOnly": true
        },
        "maintenanceExecutionEndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end time for a maintenance execution.",
          "readOnly": true
        },
        "maintenanceAvailableScheduleMinTime": {
          "type": "string",
          "format": "date-time",
          "description": "The min time the maintenance can be rescheduled.",
          "readOnly": true
        },
        "maintenanceAvailableScheduleMaxTime": {
          "type": "string",
          "format": "date-time",
          "description": "The max time the maintenance can be rescheduled.",
          "readOnly": true
        },
        "maintenanceTitle": {
          "type": "string",
          "description": "The maintenance title.",
          "readOnly": true
        },
        "maintenanceDescription": {
          "type": "string",
          "description": "The maintenance description.",
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/MaintenanceProvisioningState",
          "description": "Provisioning state of the Maintenance.",
          "readOnly": true
        }
      }
    },
    "MaintenanceProvisioningState": {
      "type": "string",
      "description": "The current provisioning state.",
      "enum": [
        "Succeeded",
        "Creating",
        "Deleting",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "MaintenanceProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Creating",
            "value": "Creating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Failed",
            "value": "Failed"
          }
        ]
      }
    },
    "MaintenanceState": {
      "type": "string",
      "description": "The current status of this maintenance.",
      "enum": [
        "Scheduled",
        "ReScheduled",
        "InPreparation",
        "Processing",
        "Completed",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "MaintenanceState",
        "modelAsString": true,
        "values": [
          {
            "name": "Scheduled",
            "value": "Scheduled"
          },
          {
            "name": "ReScheduled",
            "value": "ReScheduled"
          },
          {
            "name": "InPreparation",
            "value": "InPreparation"
          },
          {
            "name": "Processing",
            "value": "Processing"
          },
          {
            "name": "Completed",
            "value": "Completed"
          },
          {
            "name": "Canceled",
            "value": "Canceled"
          }
        ]
      }
    },
    "MaintenanceType": {
      "type": "string",
      "description": "The type of this maintenance.",
      "enum": [
        "RoutineMaintenance",
        "MinorVersionUpgrade",
        "SecurityPatches",
        "HotFixes"
      ],
      "x-ms-enum": {
        "name": "MaintenanceType",
        "modelAsString": true,
        "values": [
          {
            "name": "RoutineMaintenance",
            "value": "RoutineMaintenance"
          },
          {
            "name": "MinorVersionUpgrade",
            "value": "MinorVersionUpgrade"
          },
          {
            "name": "SecurityPatches",
            "value": "SecurityPatches"
          },
          {
            "name": "HotFixes",
            "value": "HotFixes"
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    }
  }
}