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
2 changes: 1 addition & 1 deletion specification/ai/Azure.AI.Projects/datasets/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface Datasets
@Rest.actionSeparator("/")
@Rest.action("startPendingUpload")
@Http.post
startPendingUploadAutoIncrement is ServicePatterns.BuildingBlocks.RepeatableCoreOps.ResourceAction<
startPendingUploadAutoIncrement is ServicePatterns.UnversionedResourceAction<
DatasetVersion,
PendingUploadRequest,
PendingUploadResponse
Expand Down
15 changes: 15 additions & 0 deletions specification/ai/Azure.AI.Projects/servicepatterns.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,21 @@ namespace Azure.AI.Projects.ServicePatterns {
TResponse
>;

@Rest.action
op UnversionedResourceAction<
TEntityType extends Reflection.Model,
TParams,
TResponse
> is Azure.Core.Foundations.ResourceOperation<
TEntityType,
{
@doc("Parameters for the action")
@Http.bodyRoot
body: TParams;
},
TResponse
>;

namespace BuildingBlocks {
alias CoreOps = Azure.Core.StandardResourceOperations;
alias RepeatableCoreOps = Azure.Core.ResourceOperations<Azure.Core.Traits.SupportsRepeatableRequests &
Expand Down
1 change: 1 addition & 0 deletions specification/ai/cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ words:
- tyrer
- ubinary
- umls
- unversioned
- upca
- upce
- wordprocessingml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,18 +581,10 @@
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/Azure.Core.RepeatabilityRequestHeaders.repeatabilityRequestId"
},
{
"$ref": "#/parameters/Azure.Core.RepeatabilityRequestHeaders.repeatabilityFirstSent"
},
{
"$ref": "#/parameters/Azure.Core.ClientRequestIdHeader"
},
{
"name": "body",
"in": "body",
"description": "Parameters for the action",
"required": true,
"schema": {
"$ref": "#/definitions/PendingUploadRequest"
Expand All @@ -604,37 +596,6 @@
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/PendingUploadResponse"
},
"headers": {
"Repeatability-Result": {
"type": "string",
"description": "Indicates whether the repeatable request was accepted or rejected.",
"enum": [
"accepted",
"rejected"
],
"x-ms-enum": {
"name": "RepeatabilityResult",
"modelAsString": false,
"values": [
{
"name": "accepted",
"value": "accepted",
"description": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation."
},
{
"name": "rejected",
"value": "rejected",
"description": "If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid\nor because the Repeatability-First-Sent value was outside the range of values held by the server."
}
]
}
},
"x-ms-client-request-id": {
"type": "string",
"format": "uuid",
"description": "An opaque, globally-unique, client-generated string identifier for the request."
}
}
},
"default": {
Expand Down
Loading