Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f46e693
contract changes.
adyada Apr 24, 2025
e5b956b
comment fix.
adyada Apr 24, 2025
055e3b6
change to datasetUri
adyada Apr 24, 2025
51192c3
Merge branch 'feature/azure-ai-projects-1dp' into adyada/fix-dataset-…
chaoyu-msft Apr 25, 2025
989e3b1
fix indexes list API
adyada Apr 28, 2025
413f73a
Merge branch 'adyada/fix-dataset-contracts' of https://github.com/ady…
adyada Apr 28, 2025
1a421ce
Merge branch 'feature/azure-ai-projects-1dp' into adyada/fix-dataset-…
adyada Apr 28, 2025
b2919f5
changed to dataUri
adyada Apr 28, 2025
2352c92
Merge branch 'adyada/fix-dataset-contracts' of https://github.com/ady…
adyada Apr 28, 2025
ece698b
remove purpose.
adyada Apr 28, 2025
d8160cc
Merge remote-tracking branch 'upstream/main' into adyada/fix-dataset-…
adyada Apr 28, 2025
01a9ffc
update swaggers.
adyada Apr 28, 2025
c73089e
Merge remote-tracking branch 'upstream/feature/azure-ai-projects-1dp'…
adyada Apr 28, 2025
6e72414
fix
adyada Apr 28, 2025
d51b745
Merge branch 'feature/azure-ai-projects-1dp' into adyada/fix-dataset-…
adyada Apr 28, 2025
b4d8889
comment fix
adyada Apr 28, 2025
f9e3556
Merge branch 'adyada/fix-dataset-contracts' of https://github.com/ady…
adyada Apr 28, 2025
9ee71fd
new swaggers.
adyada Apr 28, 2025
147d843
Merge branch 'feature/azure-ai-projects-1dp' into adyada/fix-dataset-…
adyada Apr 28, 2025
5c2f233
new swaggers
adyada Apr 28, 2025
113eec6
Merge branch 'feature/azure-ai-projects-1dp' into adyada/fix-dataset-…
adyada Apr 29, 2025
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
53 changes: 12 additions & 41 deletions specification/ai/Azure.AI.Projects/common/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,8 @@ using TypeSpec.Http;

namespace Azure.AI.Projects;

@doc("The available sorting options when requesting a list of response objects.")
union ListSortOrder {
string,

@doc("Specifies an ascending sort order.")
ascending: "asc",

@doc("Specifies a descending sort order.")
descending: "desc",
}

@doc("List View Type Definition")
union ListViewType {
string,

@doc("List only active items.")
ActiveOnly: "ActiveOnly",

@doc("List only archived items.")
ArchivedOnly: "ArchivedOnly",

@doc("List all items.")
All: "All",
}

alias AssetBase = {
@doc("Asset stage")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
stage?: string;

@doc("A unique identifier for the asset, assetId probably?")
@doc("Asset ID, a unique identifier for the asset")
@visibility(Lifecycle.Read)
id?: string;

Expand Down Expand Up @@ -79,8 +50,8 @@ union PendingUploadType {
@doc("No pending upload.")
none: "None",

@doc("Temporary Blob Reference is the only supported type.")
temporaryBlobReference: "TemporaryBlobReference",
@doc("Blob Reference is the only supported type.")
BlobReference: "BlobReference",
}

@doc("The type of credential used to access the storage account.")
Expand All @@ -99,23 +70,23 @@ model PendingUploadRequest {
@doc("Name of Azure blob storage connection to use for generating temporary SAS token")
connectionName?: string;

@doc("TemporaryBlobReference is the only supported type.")
pendingUploadType: PendingUploadType.temporaryBlobReference;
@doc("BlobReference is the only supported type.")
pendingUploadType: PendingUploadType.BlobReference;
}

@doc("Represents the response for a pending upload request")
model PendingUploadResponse {
@doc("Container-level read, write, list SAS.")
blobReferenceForConsumption: BlobReferenceForConsumption;
blobReference: BlobReference;

@doc("ID for this upload request.")
pendingUploadId: string;

@doc("Version of dataset to be created if user did not specify version when initially creating upload")
datasetVersion?: string;
@doc("Version of asset to be created if user did not specify version when initially creating upload")
version?: string;

@doc("TemporaryBlobReference is the only supported type")
pendingUploadType: PendingUploadType.temporaryBlobReference;
pendingUploadType: PendingUploadType.BlobReference;
}

@doc("SAS Credential definition")
Expand All @@ -129,8 +100,8 @@ model SasCredential {
type: "SAS";
}

@doc("Represents a reference to a blob for consumption")
model BlobReferenceForConsumption {
@doc("Blob reference details.")
model BlobReference {
@doc("Blob URI path for client to upload data. Example: https://blob.windows.core.net/Container/Path")
blobUri: Uri;

Expand All @@ -144,5 +115,5 @@ model BlobReferenceForConsumption {
@doc("Represents a reference to a blob for consumption")
model AssetCredentialResponse {
@doc("Credential info to access the storage account.")
blobReferenceForConsumption: BlobReferenceForConsumption;
blobReference: BlobReference;
}
5 changes: 1 addition & 4 deletions specification/ai/Azure.AI.Projects/datasets/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ model DatasetVersion {
@visibility(Lifecycle.Read, Lifecycle.Create)
@minLength(1)
@pattern("[a-zA-Z0-9_]")
datasetUri: string;
dataUri: string;

@doc("Dataset type")
type: DatasetType;
Expand All @@ -49,9 +49,6 @@ model DatasetVersion {
model FileDatasetVersion extends DatasetVersion {
@doc("Dataset type")
type: DatasetType.uri_file;

@doc("Indicates OpenAI Purpose. FileDatasets created with this field will be compatible with OpenAI-specific features")
openAIPurpose: string;
}

@doc("FileDatasetVersion Definition")
Expand Down
14 changes: 1 addition & 13 deletions specification/ai/Azure.AI.Projects/datasets/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,9 @@ using TypeSpec.Versioning;
namespace Azure.AI.Projects;

alias ListDatasetVersionsParameters = {
@doc("Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned")
@query
top?: int32;

@doc("Continuation token for pagination.")
@query
skip?: string;

@doc("Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2")
@query
tags?: string;

@doc("[ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.")
@query
listViewType?: ListViewType;
continuationToken?: string;
};

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We are using service specific operation templates"
Expand Down
14 changes: 1 addition & 13 deletions specification/ai/Azure.AI.Projects/indexes/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,9 @@ using TypeSpec.Versioning;
namespace Azure.AI.Projects;

alias ListIndexVersionParameters = {
@doc("Top count of results, top count cannot be greater than the page size. If topCount > page size, results with be default page size count will be returned")
@query
top?: int32;

@doc("Continuation token for pagination.")
@query
skip?: string;

@doc("Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2")
@query
tags?: string;

@doc("[ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All] View type for including/excluding (for example) archived entities.")
@query
listViewType?: ListViewType;
continuationToken?: string;
};

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We are using service specific operation templates"
Expand Down
Loading
Loading