{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cache-for-redis/json-schema/microsoft-azure-cache-for-redis-redis-patch-schedule-schema.json",
  "title": "RedisPatchSchedule",
  "description": "Response to put/get patch schedules for Redis cache.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-cache-for-redis-redispatchschedules-api-openapi.yml#/components/schemas/RedisPatchSchedule",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ScheduleEntries",
      "description": "List of patch schedules for a Redis cache.",
      "x-ms-client-flatten": true
    },
    "location": {
      "type": "string",
      "description": "The geo-location where the resource lives",
      "readOnly": true
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v4/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "DayOfWeek": {
      "type": "string",
      "description": "Day of the week when a cache can be patched.",
      "enum": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday",
        "Sunday",
        "Everyday",
        "Weekend"
      ],
      "x-ms-enum": {
        "name": "DayOfWeek",
        "modelAsString": false,
        "values": [
          {
            "name": "Monday",
            "value": "Monday"
          },
          {
            "name": "Tuesday",
            "value": "Tuesday"
          },
          {
            "name": "Wednesday",
            "value": "Wednesday"
          },
          {
            "name": "Thursday",
            "value": "Thursday"
          },
          {
            "name": "Friday",
            "value": "Friday"
          },
          {
            "name": "Saturday",
            "value": "Saturday"
          },
          {
            "name": "Sunday",
            "value": "Sunday"
          },
          {
            "name": "Everyday",
            "value": "Everyday",
            "description": "As a convenience, 'Everyday' is also accepted and means the same as specifying all days of the week."
          },
          {
            "name": "Weekend",
            "value": "Weekend",
            "description": "As a convenience, 'Weekend' is also accepted and means the same as specifying Saturday and Sunday."
          }
        ]
      }
    },
    "ScheduleEntries": {
      "type": "object",
      "description": "List of patch schedules for a Redis cache.",
      "properties": {
        "scheduleEntries": {
          "type": "array",
          "description": "List of patch schedules for a Redis cache.",
          "items": {
            "$ref": "#/$defs/ScheduleEntry"
          },
          "x-ms-client-name": "ScheduleEntries",
          "x-ms-identifiers": []
        }
      },
      "required": [
        "scheduleEntries"
      ]
    },
    "ScheduleEntry": {
      "type": "object",
      "description": "Patch schedule entry for a Premium Redis Cache.",
      "properties": {
        "dayOfWeek": {
          "$ref": "#/$defs/DayOfWeek",
          "description": "Day of the week when a cache can be patched."
        },
        "startHourUtc": {
          "type": "integer",
          "format": "int32",
          "description": "Start hour after which cache patching can start."
        },
        "maintenanceWindow": {
          "type": "string",
          "format": "duration",
          "description": "ISO8601 timespan specifying how much time cache patching can take."
        }
      },
      "required": [
        "dayOfWeek",
        "startHourUtc"
      ]
    }
  }
}