{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-create-ccc-upgrade-schedule-details-schema.json",
  "title": "CreateCccUpgradeScheduleDetails",
  "description": "Defines a schedule for times when automated Compute Cloud@Customer upgrades are preferred.\nA created upgrade schedule must supply events with a minimum frequency and duration or\nthe schedule will be rejected. Upgrades may impact performance of\nCompute Cloud@Customer infrastructures when they are being applied.\n",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-computecloudatcustomer-api-openapi.yml#/components/schemas/CreateCccUpgradeScheduleDetails",
  "properties": {
    "compartmentId": {
      "description": "Compartment [OCID](/iaas/Content/General/Concepts/identifiers.htm) for the\nCompute Cloud@Customer Upgrade Schedule.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string type is supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing predefined tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "An optional description of the Compute Cloud@Customer upgrade schedule.\nAvoid entering confidential information.\n",
      "maxLength": 400,
      "minLength": 1,
      "type": "string"
    },
    "displayName": {
      "description": "Compute Cloud@Customer upgrade schedule display name.\nAvoid entering confidential information.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "events": {
      "description": "List of preferred times for Compute Cloud@Customer infrastructure to be upgraded.\n",
      "items": {
        "$ref": "#/$defs/CreateCccScheduleEvent"
      },
      "maxItems": 24,
      "minItems": 0,
      "type": "array"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.\nExample: `{\"bar-key\": \"value\"}`\n",
      "type": "object"
    }
  },
  "required": [
    "displayName",
    "compartmentId",
    "events"
  ],
  "type": "object",
  "$defs": {
    "CreateCccScheduleEvent": {
      "description": "A period where upgrades may be applied to Compute Cloud@Customer infrastructures\nassociated with the schedule. All upgrade windows may not be used.\n",
      "properties": {
        "description": {
          "description": "A description of the Compute Cloud@Customer upgrade schedule time block.",
          "maxLength": 400,
          "minLength": 1,
          "type": "string"
        },
        "scheduleEventDuration": {
          "description": "The duration of this block of time. The duration must be specified and be of the\nISO-8601 format for durations.\n",
          "format": "x-obmcs-duration",
          "type": "string"
        },
        "scheduleEventRecurrences": {
          "description": "Frequency of recurrence of schedule block. When this field is not included, the event\nis assumed to be a one time occurrence. The frequency field is strictly parsed and must\nconform to RFC-5545 formatting for recurrences.\n",
          "format": "x-obmcs-recurring-time",
          "type": "string"
        },
        "timeStart": {
          "description": "The date and time when the Compute Cloud@Customer upgrade schedule event starts,\ninclusive. An RFC3339 formatted UTC datetime string. For an event with recurrences,\nthis is the date that a recurrence can start being applied.\n",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "description",
        "timeStart",
        "scheduleEventDuration"
      ],
      "type": "object"
    }
  }
}