{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-kubernetes-service/json-schema/microsoft-azure-kubernetes-service-maintenance-configuration-list-result-schema.json",
  "title": "MaintenanceConfigurationListResult",
  "description": "The response of a MaintenanceConfiguration list operation.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-kubernetes-service-maintenance-configurations-api-openapi.yml#/components/schemas/MaintenanceConfigurationListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The MaintenanceConfiguration items on this page",
      "items": {
        "$ref": "#/$defs/MaintenanceConfiguration"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "AbsoluteMonthlySchedule": {
      "type": "object",
      "description": "For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.",
      "properties": {
        "intervalMonths": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the number of months between each set of occurrences.",
          "minimum": 1,
          "maximum": 6
        },
        "dayOfMonth": {
          "type": "integer",
          "format": "int32",
          "description": "The date of the month.",
          "minimum": 1,
          "maximum": 31
        }
      },
      "required": [
        "intervalMonths",
        "dayOfMonth"
      ]
    },
    "DailySchedule": {
      "type": "object",
      "description": "For schedules like: 'recur every day' or 'recur every 3 days'.",
      "properties": {
        "intervalDays": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the number of days between each set of occurrences.",
          "minimum": 1,
          "maximum": 7
        }
      },
      "required": [
        "intervalDays"
      ]
    },
    "DateSpan": {
      "type": "object",
      "description": "A date range. For example, between '2022-12-23' and '2023-01-05'.",
      "properties": {
        "start": {
          "type": "string",
          "format": "date",
          "description": "The start date of the date span."
        },
        "end": {
          "type": "string",
          "format": "date",
          "description": "The end date of the date span."
        }
      },
      "required": [
        "start",
        "end"
      ]
    },
    "HourInDay": {
      "type": "integer",
      "format": "int32",
      "description": "Hour in a day.",
      "minimum": 0,
      "maximum": 23
    },
    "MaintenanceConfiguration": {
      "type": "object",
      "description": "Planned maintenance configuration, used to configure when updates can be deployed to a Managed Cluster. See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/MaintenanceConfigurationProperties"
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "MaintenanceConfigurationProperties": {
      "type": "object",
      "description": "Properties used to configure planned maintenance for a Managed Cluster.",
      "properties": {
        "timeInWeek": {
          "type": "array",
          "description": "Time slots during the week when planned maintenance is allowed to proceed. If two array entries specify the same day of the week, the applied configuration is the union of times in both entries.",
          "items": {
            "$ref": "#/$defs/TimeInWeek"
          },
          "x-ms-identifiers": []
        },
        "notAllowedTime": {
          "type": "array",
          "description": "Time slots on which upgrade is not allowed.",
          "items": {
            "$ref": "#/$defs/TimeSpan"
          },
          "x-ms-identifiers": []
        },
        "maintenanceWindow": {
          "$ref": "#/$defs/MaintenanceWindow"
        }
      }
    },
    "MaintenanceWindow": {
      "type": "object",
      "description": "Maintenance window used to configure scheduled auto-upgrade for a Managed Cluster.",
      "properties": {
        "schedule": {
          "$ref": "#/$defs/Schedule"
        },
        "durationHours": {
          "type": "integer",
          "format": "int32",
          "description": "Length of maintenance window range from 4 to 24 hours.",
          "default": 24,
          "minimum": 4,
          "maximum": 24
        },
        "utcOffset": {
          "type": "string",
          "description": "The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for PST. If not specified, the default is '+00:00'.",
          "pattern": "^(-|\\+)[0-9]{2}:[0-9]{2}$"
        },
        "startDate": {
          "type": "string",
          "format": "date",
          "description": "The date the maintenance window activates. If the current date is before this date, the maintenance window is inactive and will not be used for upgrades. If not specified, the maintenance window will be active right away."
        },
        "startTime": {
          "type": "string",
          "description": "The start time of the maintenance window. Accepted values are from '00:00' to '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'.",
          "pattern": "^\\d{2}:\\d{2}$"
        },
        "notAllowedDates": {
          "type": "array",
          "description": "Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time.",
          "items": {
            "$ref": "#/$defs/DateSpan"
          },
          "x-ms-identifiers": []
        }
      },
      "required": [
        "schedule",
        "durationHours",
        "startTime"
      ]
    },
    "RelativeMonthlySchedule": {
      "type": "object",
      "description": "For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.",
      "properties": {
        "intervalMonths": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the number of months between each set of occurrences.",
          "minimum": 1,
          "maximum": 6
        },
        "weekIndex": {
          "$ref": "#/$defs/Type"
        },
        "dayOfWeek": {
          "$ref": "#/$defs/WeekDay"
        }
      },
      "required": [
        "intervalMonths",
        "weekIndex",
        "dayOfWeek"
      ]
    },
    "Schedule": {
      "type": "object",
      "description": "One and only one of the schedule types should be specified. Choose either 'daily', 'weekly', 'absoluteMonthly' or 'relativeMonthly' for your maintenance schedule.",
      "properties": {
        "daily": {
          "$ref": "#/$defs/DailySchedule"
        },
        "weekly": {
          "$ref": "#/$defs/WeeklySchedule"
        },
        "absoluteMonthly": {
          "$ref": "#/$defs/AbsoluteMonthlySchedule"
        },
        "relativeMonthly": {
          "$ref": "#/$defs/RelativeMonthlySchedule"
        }
      }
    },
    "TimeInWeek": {
      "type": "object",
      "description": "Time in a week.",
      "properties": {
        "day": {
          "$ref": "#/$defs/WeekDay"
        },
        "hourSlots": {
          "type": "array",
          "description": "A list of hours in the day used to identify a time range. Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.",
          "items": {
            "$ref": "#/$defs/HourInDay"
          }
        }
      }
    },
    "TimeSpan": {
      "type": "object",
      "description": "A time range. For example, between 2021-05-25T13:00:00Z and 2021-05-25T14:00:00Z.",
      "properties": {
        "start": {
          "type": "string",
          "format": "date-time",
          "description": "The start of a time span"
        },
        "end": {
          "type": "string",
          "format": "date-time",
          "description": "The end of a time span"
        }
      }
    },
    "Type": {
      "type": "string",
      "description": "The week index. Specifies on which week of the month the dayOfWeek applies.",
      "enum": [
        "First",
        "Second",
        "Third",
        "Fourth",
        "Last"
      ],
      "x-ms-enum": {
        "name": "Type",
        "modelAsString": true,
        "values": [
          {
            "name": "First",
            "value": "First",
            "description": "First week of the month."
          },
          {
            "name": "Second",
            "value": "Second",
            "description": "Second week of the month."
          },
          {
            "name": "Third",
            "value": "Third",
            "description": "Third week of the month."
          },
          {
            "name": "Fourth",
            "value": "Fourth",
            "description": "Fourth week of the month."
          },
          {
            "name": "Last",
            "value": "Last",
            "description": "Last week of the month."
          }
        ]
      }
    },
    "WeekDay": {
      "type": "string",
      "description": "The weekday enum.",
      "enum": [
        "Sunday",
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ],
      "x-ms-enum": {
        "name": "WeekDay",
        "modelAsString": true,
        "values": [
          {
            "name": "Sunday",
            "value": "Sunday",
            "description": "Represents Sunday."
          },
          {
            "name": "Monday",
            "value": "Monday",
            "description": "Represents Monday."
          },
          {
            "name": "Tuesday",
            "value": "Tuesday",
            "description": "Represents Tuesday."
          },
          {
            "name": "Wednesday",
            "value": "Wednesday",
            "description": "Represents Wednesday."
          },
          {
            "name": "Thursday",
            "value": "Thursday",
            "description": "Represents Thursday."
          },
          {
            "name": "Friday",
            "value": "Friday",
            "description": "Represents Friday."
          },
          {
            "name": "Saturday",
            "value": "Saturday",
            "description": "Represents Saturday."
          }
        ]
      }
    },
    "WeeklySchedule": {
      "type": "object",
      "description": "For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.",
      "properties": {
        "intervalWeeks": {
          "type": "integer",
          "format": "int32",
          "description": "Specifies the number of weeks between each set of occurrences.",
          "minimum": 1,
          "maximum": 4
        },
        "dayOfWeek": {
          "$ref": "#/$defs/WeekDay"
        }
      },
      "required": [
        "intervalWeeks",
        "dayOfWeek"
      ]
    }
  }
}