{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-maintenance-window-options-schema.json",
  "title": "MaintenanceWindowOptions",
  "description": "Maintenance window options.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-maintenancewindowoptions-api-openapi.yml#/components/schemas/MaintenanceWindowOptions",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/MaintenanceWindowOptionsProperties",
      "description": "Resource properties.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "DayOfWeek": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "MaintenanceWindowOptionsProperties": {
      "type": "object",
      "description": "Maintenance window options properties.",
      "properties": {
        "isEnabled": {
          "type": "boolean",
          "description": "Whether maintenance windows are enabled for the database."
        },
        "maintenanceWindowCycles": {
          "type": "array",
          "description": "Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}.",
          "items": {
            "$ref": "#/$defs/MaintenanceWindowTimeRange"
          }
        },
        "minDurationInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum duration of maintenance window."
        },
        "defaultDurationInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "Default duration for maintenance window."
        },
        "minCycles": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of maintenance windows cycles to be set on the database."
        },
        "timeGranularityInMinutes": {
          "type": "integer",
          "format": "int32",
          "description": "Time granularity in minutes for maintenance windows."
        },
        "allowMultipleMaintenanceWindowsPerCycle": {
          "type": "boolean",
          "description": "Whether we allow multiple maintenance windows per cycle."
        }
      }
    },
    "MaintenanceWindowTimeRange": {
      "type": "object",
      "description": "Maintenance window time range.",
      "properties": {
        "dayOfWeek": {
          "$ref": "#/$defs/DayOfWeek",
          "description": "Day of maintenance window."
        },
        "startTime": {
          "type": "string",
          "description": "Start time minutes offset from 12am."
        },
        "duration": {
          "type": "string",
          "description": "Duration of maintenance window in minutes."
        }
      }
    },
    "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",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    }
  }
}