{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-occ-handover-resource-block-collection-schema.json",
  "title": "OccHandoverResourceBlockCollection",
  "description": "A list of occ handover resource blocks.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-capacitymanagement-api-openapi.yml#/components/schemas/OccHandoverResourceBlockCollection",
  "properties": {
    "items": {
      "description": "An array of occ handover resource blocks.\n",
      "items": {
        "$ref": "#/$defs/OccHandoverResourceBlockSummary"
      },
      "type": "array"
    }
  },
  "required": [
    "items"
  ],
  "type": "object",
  "x-example": "Example 1\n{\n  \"items\":\n    [{\n      id: \"ocid1.occresourceblock.oc1..examplea4ssrz2joq66nyomcvb4ydlbfmn2qg7wow5neo2ytcdznohhsyca4\",\n      compartmentId: \"ocid1.tenancy.oc1..examplea4ssrz2joq66nyomcvb4ydlbfmn2qg7wow5neo2ytcdznohhsyca4\",\n      namespace: \"COMPUTE\",\n      occCustomerGroupId: \"ocid1.occcustomergroup.oc1..examplea4ssrz2joq66nyomcvb4ydlbfmn2qg7wow5neo2ytcdznohhsyca4\",\n      handoverDate: \"2024-03-07T00:00:00Z\",\n      handoverResourceName: \"BM.Standard3.53\",\n      totalHandoverQuantity: 200\n      associatedCapacityRequests: [{\n        occCapacityRequestId: \"ocid1.occcapacityrequest.oc1..examplea4ssrz2joq66nyomcvb4ydlbfmn2qg7wow5neo2ytcdznohhsyca4\",\n        handoverQuantity: 200\n      }],\n      placementDetails: {\n        \"region\": \"us-ashburn-1\",\n        \"availabilityDomain\": \"iad.ad1\",\n        \"workloadType\": \"US_PROD\",\n        \"building\": \"iad18\",\n        \"room\": \"iad18.1\",\n        \"block\": 52\n      }\n    }]\n}\n",
  "$defs": {
    "AssociatedCapacityRequestDetails": {
      "description": "Details about the associated capacity requests against which the resources were provisioned by oracle.\n",
      "properties": {
        "handoverQuantity": {
          "description": "The total quantity of the bare metal hardware that was made available corresponding to the capacity request ocid.\n",
          "format": "int64",
          "type": "integer"
        },
        "occCapacityRequestId": {
          "description": "The OCID of the capacity request against which the resources were provisioned.\n",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "occCapacityRequestId",
        "handoverQuantity"
      ],
      "type": "object"
    },
    "OccHandoverResourceBlockSummary": {
      "description": "Details about the association of capacity requests with the corresponding resources handed over by oracle.\n",
      "properties": {
        "associatedCapacityRequests": {
          "description": "A list containing details about the capacity requests against which the resources were provisioned by oracle.\n",
          "items": {
            "$ref": "#/$defs/AssociatedCapacityRequestDetails"
          },
          "maxItems": 100,
          "type": "array"
        },
        "compartmentId": {
          "description": "The OCID of the compartment where the resource block's are placed.\n",
          "type": "string"
        },
        "handoverDate": {
          "description": "The date on which the resource was handed over to the customer.\n",
          "format": "date-time",
          "type": "string"
        },
        "handoverResourceName": {
          "description": "The name of the resource handed over by oracle. \nFor instance for compute namespace this will be the name of the bare metal hardware resource.\n",
          "type": "string"
        },
        "id": {
          "description": "The OCID of the resource block.\n",
          "type": "string"
        },
        "namespace": {
          "description": "The name of the OCI service in consideration. \nFor example Compute, Exadata and so on.\n",
          "enum": [
            "COMPUTE"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/Namespace"
        },
        "occCustomerGroupId": {
          "description": "The OCID of the customer group for which the resources were provisioned.\n",
          "type": "string"
        },
        "placementDetails": {
          "$ref": "#/$defs/PlacementDetails"
        },
        "totalHandoverQuantity": {
          "description": "The total quantity of the resource that was made available to the customer by Oracle.\n",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "compartmentId",
        "namespace",
        "occCustomerGroupId",
        "handoverDate",
        "handoverResourceName",
        "totalHandoverQuantity",
        "associatedCapacityRequests",
        "placementDetails"
      ],
      "type": "object"
    },
    "PlacementDetails": {
      "description": "Details like building, room and block where the resource was placed after provisioning in the datacenter.\n",
      "properties": {
        "availabilityDomain": {
          "description": "The availability domain (AD) for which the resources were provisioned.\n",
          "type": "string"
        },
        "block": {
          "description": "The block in the datacenter room where the resource was placed.\n",
          "type": "string"
        },
        "building": {
          "description": "The datacenter building where the resource was placed.\n",
          "type": "string"
        },
        "region": {
          "description": "The name of the region for which the resources were provisioned.\n",
          "type": "string"
        },
        "room": {
          "description": "The name of the room in the dataacenter building where the resource was placed.\n",
          "type": "string"
        },
        "workloadType": {
          "description": "The type of workload to which these resources were provisioned.\n",
          "type": "string"
        }
      },
      "required": [
        "region",
        "availabilityDomain",
        "workloadType",
        "building",
        "room",
        "block"
      ],
      "type": "object"
    }
  }
}