diff --git a/specification/ai/Azure.AI.Projects/common/models.tsp b/specification/ai/Azure.AI.Projects/common/models.tsp index ae84f9603d46..d7dc89981e25 100644 --- a/specification/ai/Azure.AI.Projects/common/models.tsp +++ b/specification/ai/Azure.AI.Projects/common/models.tsp @@ -138,3 +138,9 @@ model BlobReferenceForConsumption { @doc("Credential info to access the storage account.") credential: SasCredential; } + +@doc("Represents a reference to a blob for consumption") +model AssetCredentialResponse { + @doc("Credential info to access the storage account.") + blobReferenceForConsumption: BlobReferenceForConsumption; +} diff --git a/specification/ai/Azure.AI.Projects/datasets/routes.tsp b/specification/ai/Azure.AI.Projects/datasets/routes.tsp index 5db8e1c99935..cbf22eba4739 100644 --- a/specification/ai/Azure.AI.Projects/datasets/routes.tsp +++ b/specification/ai/Azure.AI.Projects/datasets/routes.tsp @@ -57,4 +57,16 @@ interface Datasets PendingUploadResponse >; */ + + #suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" + @doc("Get download sas for dataset version.") + @post + @Rest.action("credentials") + @Rest.actionSeparator("/") + getCredentials is ServicePatterns.VersionedResourceAction< + DatasetVersion, + {}, + AssetCredentialResponse + >; }