{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/intersight/json-schema/intersight-crd-custom-resource-response-schema.json",
  "title": "crd.CustomResource.Response",
  "description": "The response body of a HTTP GET request for the 'crd.CustomResource' resource.\nThe value may be one of the following types.\n1. When 'tag' is specified in the URL query, the response schema\n    is a summary of the tag usage.\n1. When '$apply' is specified in the URL query, the response schema\n    is dynamically-generated schema based on the $apply value.\n1. When '$count' is specified in the URL query, the response is\n    a simple object providing the count of the resources.\n1. In all other cases, the response is a list of 'crd.CustomResource' resources.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intersight-crd-api-openapi.yml#/components/schemas/crd.CustomResource.Response",
  "x-one-of-name": "crd.CustomResource.Response",
  "oneOf": [
    {
      "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.DocumentCount"
    },
    {
      "$ref": "#/$defs/crd.CustomResource.List"
    },
    {
      "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.AggregateTransform"
    },
    {
      "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.TagSummary"
    }
  ],
  "$defs": {
    "crd.CustomResource": {
      "title": "Crd:Custom Resource",
      "description": "The CustomResource object is used internally to launch required resources for certain targets.      \n#### Purpose  \nThe CustomResource object is a component of the Cloud DC Life Cycle Management, enabling the deployment and management of Cloud DCs within a cloud environment. It is created internally for each Cloud DC targets. \n#### Key Concepts\n- **Access Control:** Utilizes privilege sets to manage who can read, create, update, and delete resources, ensuring secure and controlled access.\n- **Identity Management:** Uses unique identifiers to enforce constraints and maintain resource uniqueness within the system.",
      "x-allOf-name": "crd.CustomResource",
      "allOf": [
        {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.BaseMo"
        },
        {
          "type": "object",
          "description": "Definition of the list of properties defined in 'crd.CustomResource', excluding properties defined in parent classes.",
          "required": [
            "ClassId",
            "ObjectType"
          ],
          "properties": {
            "ClassId": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
              "enum": [
                "crd.CustomResource"
              ],
              "default": "crd.CustomResource",
              "x-enum-as-string": true
            },
            "ObjectType": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
              "enum": [
                "crd.CustomResource"
              ],
              "default": "crd.CustomResource",
              "x-enum-as-string": true
            },
            "DcLauncher": {
              "description": "The type of custom resource in Kubernetes.",
              "type": "string",
              "x-omitempty": true
            },
            "Image": {
              "description": "The docker image URL for the cloud DC.",
              "type": "string",
              "x-omitempty": true
            },
            "Name": {
              "description": "A string property called 'name', used as part of a uniqueness constraint. Refer to the 'identity' specification in this MO definition.",
              "type": "string",
              "x-omitempty": true
            },
            "Namespace": {
              "description": "Namespace for launching the deployment associated with the custom resource.",
              "type": "string",
              "x-omitempty": true
            },
            "Port": {
              "description": "Port used for the cloud DC.",
              "type": "integer",
              "format": "int64",
              "x-omitempty": true
            },
            "Properties": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "description": "List of custom resource configuration properties.",
                "$ref": "#/$defs/crd.CustomResourceConfigProperty",
                "x-omitempty": true
              }
            },
            "TargetId": {
              "description": "Target Id for the cloud DC.",
              "type": "string",
              "x-omitempty": true
            },
            "TargetMoid": {
              "description": "Target MOID for the cloud DC.",
              "type": "string",
              "x-omitempty": true
            },
            "TargetType": {
              "description": "Target type for the cloud DC.",
              "type": "string",
              "x-omitempty": true
            },
            "Account": {
              "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/iam.Account.Relationship",
              "description": "A reference to a iamAccount resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline."
            }
          }
        }
      ]
    },
    "crd.CustomResource.List": {
      "title": "List of 'crd.CustomResource' resources",
      "description": "This resource list is returned as a response to a HTTP GET request that does not include a specific resource identifier.",
      "allOf": [
        {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.BaseResponse"
        },
        {
          "type": "object",
          "properties": {
            "Count": {
              "description": "The total number of 'crd.CustomResource' resources matching the request, accross all pages.\nThe 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter.",
              "type": "integer",
              "format": "int32"
            },
            "Results": {
              "description": "The array of 'crd.CustomResource' resources matching the request.",
              "type": [
                "array",
                "null"
              ],
              "items": {
                "$ref": "#/$defs/crd.CustomResource"
              }
            }
          }
        }
      ]
    },
    "crd.CustomResourceConfigProperty": {
      "title": "Crd:Custom Resource Config Property",
      "description": "Defines a configurable property for the custom resource.",
      "x-allOf-name": "crd.CustomResourceConfigProperty",
      "allOf": [
        {
          "$ref": "intersight-system-v3-1.0.11-20260807064027971.json#/components/schemas/mo.BaseComplexType"
        },
        {
          "type": "object",
          "description": "Definition of the list of properties defined in 'crd.CustomResourceConfigProperty', excluding properties defined in parent classes.",
          "required": [
            "ClassId",
            "ObjectType"
          ],
          "properties": {
            "ClassId": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
              "enum": [
                "crd.CustomResourceConfigProperty"
              ],
              "default": "crd.CustomResourceConfigProperty",
              "x-enum-as-string": true
            },
            "ObjectType": {
              "description": "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
              "enum": [
                "crd.CustomResourceConfigProperty"
              ],
              "default": "crd.CustomResourceConfigProperty",
              "x-enum-as-string": true
            },
            "Key": {
              "description": "Name of the key/value property.",
              "type": "string",
              "x-omitempty": true
            },
            "Value": {
              "description": "Value of the key/value property.",
              "type": "string",
              "x-omitempty": true
            }
          }
        }
      ]
    }
  }
}