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
23 changes: 23 additions & 0 deletions specification/ai/Azure.AI.Projects/connections/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ model Connection {
@visibility(Lifecycle.Read)
target: string;

@doc("The authentication type used by the connection")
authType: AuthenticationType;

@doc("Metadata of the connection")
metadata: Record<string>;
}
Expand Down Expand Up @@ -56,3 +59,23 @@ union ConnectionType {
@doc("Custom Keys")
Custom: "CustomKeys",
}

@doc("The authentication type used by the connection")
union AuthenticationType {
string,

@doc("API Key authentication")
apiKey: "ApiKey",

@doc("Entra ID authentication (formerly known as AAD)")
entraId: "AAD",

@doc("Shared Access Signature (SAS) authentication")
SAS: "SAS",

@doc("Custom authentication")
custom: "CustomKeys",

@doc("No authentication")
None: "None",
}
6 changes: 3 additions & 3 deletions specification/ai/Azure.AI.Projects/datasets/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ interface Datasets
ListDatasetVersionsParameters
> {
@doc("Create or start a pending upload of a dataset for a specific version.")
startPendingUpload is ServicePatterns.VersionedResourceAction<
startPendingUploadVersion is ServicePatterns.VersionedResourceAction<
DatasetVersion,
PendingUploadRequest,
PendingUploadResponse
>;

@doc("Create or start a pending upload of a dataset. The dataset version will be generated by service.")
@doc("Create or start a pending upload of a dataset. The version id will be generated by the service.")
@Rest.actionSeparator("/")
@Rest.action("startPendingUpload")
@Http.post
startPendingUploadAutoIncrement is ServicePatterns.UnversionedResourceAction<
startPendingUpload is ServicePatterns.UnversionedResourceAction<
DatasetVersion,
PendingUploadRequest,
PendingUploadResponse
Expand Down
4 changes: 0 additions & 4 deletions specification/ai/Azure.AI.Projects/deployments/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ interface Deployments {
@query("modelName")
modelName?: string;

@doc("Flag to include models from connections in response.")
@query("includeConnectedModels")
includeConnectionModels?: boolean;

...StandardListQueryParameters;
}>
>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@
},
"/datasets/{name}/startPendingUpload": {
"post": {
"operationId": "Datasets_StartPendingUploadAutoIncrement",
"description": "Create or start a pending upload of a dataset. The dataset version will be generated by service.",
"operationId": "Datasets_StartPendingUpload",
"description": "Create or start a pending upload of a dataset. The version id will be generated by the service.",
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
Expand Down Expand Up @@ -937,9 +937,9 @@
}
}
},
"/datasets/{name}/versions/{version}/startPendingUpload": {
"/datasets/{name}/versions/{version}/startPendingUploadVersion": {
"post": {
"operationId": "Datasets_StartPendingUpload",
"operationId": "Datasets_StartPendingUploadVersion",
"description": "Create or start a pending upload of a dataset for a specific version.",
"parameters": [
{
Expand Down Expand Up @@ -1013,14 +1013,6 @@
"required": false,
"type": "string"
},
{
"name": "includeConnectedModels",
"in": "query",
"description": "Flag to include models from connections in response.",
"required": false,
"type": "boolean",
"x-ms-client-name": "includeConnectionModels"
},
{
"$ref": "#/parameters/Azure.Core.TopQueryParameter"
},
Expand Down Expand Up @@ -9708,6 +9700,48 @@
}
},
"AssistantsApiResponseFormatOption": {},
"AuthenticationType": {
"type": "string",
"description": "The authentication type used by the connection",
"enum": [
"ApiKey",
"AAD",
"SAS",
"CustomKeys",
"None"
],
"x-ms-enum": {
"name": "AuthenticationType",
"modelAsString": true,
"values": [
{
"name": "apiKey",
"value": "ApiKey",
"description": "API Key authentication"
},
{
"name": "entraId",
"value": "AAD",
"description": "Entra ID authentication (formerly known as AAD)"
},
{
"name": "SAS",
"value": "SAS",
"description": "Shared Access Signature (SAS) authentication"
},
{
"name": "custom",
"value": "CustomKeys",
"description": "Custom authentication"
},
{
"name": "None",
"value": "None",
"description": "No authentication"
}
]
}
},
"Azure.Core.Foundations.Error": {
"type": "object",
"description": "The error object.",
Expand Down Expand Up @@ -9850,6 +9884,10 @@
"description": "The connection URL to be used for this service",
"readOnly": true
},
"authType": {
"$ref": "#/definitions/AuthenticationType",
"description": "The authentication type used by the connection"
},
"metadata": {
"type": "object",
"description": "Metadata of the connection",
Expand All @@ -9862,6 +9900,7 @@
"name",
"type",
"target",
"authType",
"metadata"
]
},
Expand Down
Loading