{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-ccc-upgrade-schedule-schema.json",
  "title": "CccUpgradeSchedule",
  "description": "Defines a schedule for preferred upgrade times.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-computecloudatcustomer-api-openapi.yml#/components/schemas/CccUpgradeSchedule",
  "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 infrastructures associated with this\nschedule to be upgraded.\n",
      "items": {
        "$ref": "#/$defs/CccScheduleEvent"
      },
      "maxItems": 24,
      "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"
    },
    "id": {
      "description": "Upgrade schedule [OCID](/iaas/Content/General/Concepts/identifiers.htm).\nThis cannot be changed once created.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "infrastructureIds": {
      "description": "List of Compute Cloud@Customer infrastructure\n[OCIDs](/iaas/Content/General/Concepts/identifiers.htm) that are using this upgrade\nschedule.\n",
      "items": {
        "maxLength": 255,
        "minLength": 1,
        "type": "string"
      },
      "maxItems": 255,
      "type": "array"
    },
    "lifecycleDetails": {
      "description": "A message describing the current state in more detail.\nFor example, the message can be used to provide actionable information for a resource in\na Failed state.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "lifecycleState": {
      "description": "Lifecycle state of the resource.",
      "enum": [
        "ACTIVE",
        "NEEDS_ATTENTION",
        "DELETED",
        "FAILED"
      ],
      "type": "string"
    },
    "systemTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string type is supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing system tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "System tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`\n",
      "type": "object"
    },
    "timeCreated": {
      "description": "The time the upgrade schedule was created, using an RFC3339 formatted datetime string.\n",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The time the upgrade schedule was updated, using an RFC3339 formatted datetime string.\n",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "id",
    "displayName",
    "compartmentId",
    "lifecycleState",
    "timeCreated"
  ],
  "type": "object",
  "$defs": {
    "CccScheduleEvent": {
      "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"
        },
        "name": {
          "description": "Generated name associated with the event.",
          "maxLength": 255,
          "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": [
        "name",
        "description",
        "timeStart",
        "scheduleEventDuration"
      ],
      "type": "object"
    }
  }
}