{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-code-container-schema.json",
  "title": "CodeContainer",
  "description": "Azure Resource Manager resource envelope.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-codecontaineroperationgroup-api-openapi.yml#/components/schemas/CodeContainer",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/CodeContainerProperties",
      "description": "[Required] Additional attributes of the entity."
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "AssetContainer": {
      "type": "object",
      "properties": {
        "isArchived": {
          "type": "boolean",
          "description": "Is the asset archived?",
          "default": false,
          "x-ms-mutability": [
            "read",
            "update",
            "create"
          ]
        },
        "latestVersion": {
          "type": [
            "string",
            "null"
          ],
          "description": "The latest version inside this container.",
          "readOnly": true
        },
        "nextVersion": {
          "type": [
            "string",
            "null"
          ],
          "description": "The next auto incremental version",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ResourceBase"
        }
      ]
    },
    "AssetProvisioningState": {
      "type": "string",
      "description": "Provisioning state of registry asset.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "AssetProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Canceled",
            "value": "Canceled"
          },
          {
            "name": "Creating",
            "value": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          }
        ]
      },
      "readOnly": true
    },
    "CodeContainerProperties": {
      "type": "object",
      "description": "Container for code asset versions.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/AssetProvisioningState",
          "description": "Provisioning state for the code container.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/AssetContainer"
        }
      ]
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "type": "object",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "ResourceBase": {
      "type": "object",
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The asset description text."
        },
        "properties": {
          "type": [
            "object",
            "null"
          ],
          "description": "The asset property dictionary.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "tags": {
          "type": [
            "object",
            "null"
          ],
          "description": "Tag dictionary. Tags can be added, removed, and updated.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  }
}