Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions specification/ai/Azure.AI.Projects/common/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
12 changes: 12 additions & 0 deletions specification/ai/Azure.AI.Projects/datasets/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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
>;
}
Loading