{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/intersight/json-schema/intersight-crd-custom-resource-schema.json",
  "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-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",
  "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."
        }
      }
    }
  ],
  "$defs": {
    "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
            }
          }
        }
      ]
    }
  }
}