Skip to content

Commit

Permalink
Update trusted access put and delete to async operation (#25537)
Browse files Browse the repository at this point in the history
* Update trusted access put and delete to async operation

* Update example

* Update header
  • Loading branch information
norshtein authored Aug 25, 2023
1 parent 6f885f1 commit 7cdd607
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"trustedAccessRoleBindingName": "binding1"
},
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/subid1/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3106,15 +3106,16 @@
"default": {
"description": "Error details",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Create or update a trusted access role binding": {
"$ref": "./examples/TrustedAccessRoleBindings_CreateOrUpdate.json"
}
}
},
"x-ms-long-running-operation": true
},
"delete": {
"tags": [
Expand All @@ -3140,24 +3141,31 @@
}
],
"responses": {
"200": {
"description": "OK"
"202": {
"description": "Accepted",
"headers": {
"Location": {
"description": "URL to query for status of the operation.",
"type": "string"
}
}
},
"204": {
"description": "NoContent"
},
"default": {
"description": "Error details",
"schema": {
"$ref": "#/definitions/CloudError"
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Delete a trusted access role binding": {
"$ref": "./examples/TrustedAccessRoleBindings_Delete.json"
}
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions/{version}": {
Expand Down

0 comments on commit 7cdd607

Please sign in to comment.