{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-pending-upload-response-dto-schema.json",
  "title": "PendingUploadResponseDto",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-codeversionoperationgroup-api-openapi.yml#/components/schemas/PendingUploadResponseDto",
  "type": "object",
  "properties": {
    "blobReferenceForConsumption": {
      "$ref": "#/$defs/BlobReferenceForConsumptionDto",
      "description": "Container level read, write, list SAS"
    },
    "pendingUploadId": {
      "type": [
        "string",
        "null"
      ],
      "description": "ID for this upload request"
    },
    "pendingUploadType": {
      "type": "string",
      "description": "Type of storage to use for the pending upload location",
      "default": "TemporaryBlobReference",
      "enum": [
        "None",
        "TemporaryBlobReference"
      ],
      "x-ms-enum": {
        "name": "PendingUploadType",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None"
          },
          {
            "name": "TemporaryBlobReference",
            "value": "TemporaryBlobReference"
          }
        ]
      }
    }
  },
  "$defs": {
    "BlobReferenceForConsumptionDto": {
      "type": "object",
      "properties": {
        "blobUri": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Blob URI path for client to upload data.\nExample: https://blob.windows.core.net/Container/Path"
        },
        "credential": {
          "$ref": "#/$defs/PendingUploadCredentialDto",
          "description": "Credential info to access storage account"
        },
        "storageAccountArmId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Arm ID of the storage account to use"
        }
      }
    },
    "PendingUploadCredentialDto": {
      "type": "object",
      "properties": {
        "credentialType": {
          "$ref": "#/$defs/PendingUploadCredentialType",
          "description": "[Required] Credential type used to authentication with storage."
        }
      },
      "required": [
        "credentialType"
      ]
    },
    "PendingUploadCredentialType": {
      "type": "string",
      "description": "Enum to determine the PendingUpload credentials type.",
      "enum": [
        "SAS"
      ],
      "x-ms-enum": {
        "name": "PendingUploadCredentialType",
        "modelAsString": true,
        "values": [
          {
            "name": "SAS",
            "value": "SAS"
          }
        ]
      }
    }
  }
}