{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-get-blob-reference-sasresponse-dto-schema.json",
  "title": "GetBlobReferenceSASResponseDto",
  "description": "BlobReferenceSASResponse for getBlobReferenceSAS API",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-registries-api-openapi.yml#/components/schemas/GetBlobReferenceSASResponseDto",
  "type": "object",
  "properties": {
    "blobReferenceForConsumption": {
      "$ref": "#/$defs/GetBlobReferenceForConsumptionDto",
      "description": "Blob reference for consumption details"
    }
  },
  "$defs": {
    "DataReferenceCredential": {
      "type": "object",
      "description": "DataReferenceCredential base class",
      "properties": {
        "credentialType": {
          "$ref": "#/$defs/DataReferenceCredentialType",
          "description": "[Required] Credential type used to authentication with storage."
        }
      },
      "required": [
        "credentialType"
      ]
    },
    "DataReferenceCredentialType": {
      "type": "string",
      "description": "Enum to determine the DataReference credentials type.",
      "enum": [
        "SAS",
        "DockerCredentials",
        "ManagedIdentity",
        "NoCredentials"
      ],
      "x-ms-enum": {
        "name": "DataReferenceCredentialType",
        "modelAsString": true,
        "values": [
          {
            "name": "SAS",
            "value": "SAS"
          },
          {
            "name": "DockerCredentials",
            "value": "DockerCredentials"
          },
          {
            "name": "ManagedIdentity",
            "value": "ManagedIdentity"
          },
          {
            "name": "NoCredentials",
            "value": "NoCredentials"
          }
        ]
      }
    },
    "GetBlobReferenceForConsumptionDto": {
      "type": "object",
      "properties": {
        "blobUri": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Blob uri, example: https://blob.windows.core.net/Container/Path"
        },
        "credential": {
          "$ref": "#/$defs/DataReferenceCredential",
          "description": "Credential info to access storage account"
        },
        "storageAccountArmId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The ARM id of the storage account"
        }
      }
    }
  }
}