Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add async operation's api to storage cache RP #9483

Merged
merged 1 commit into from
May 28, 2020
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60",
"location": "West US",
"operationId": "testoperationid",
"api-version": "2020-03-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/id/locations/westus/ascOperations/testoperationid",
"name": "testoperationid",
"startTime": "2020-03-01T13:13:13.933Z",
"endTime": "2020-03-01T16:13:13.933Z",
"status": "Succeeded"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,59 @@
"operationId": "UsageModels_List"
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/locations/{location}/ascOperations/{operationId}": {
"get": {
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The region name which the operation will lookup into."
},
{
"name": "operationId",
"in": "path",
"required": true,
"type": "string",
"description": "The operation id which uniquely identifies the asynchronous operation."
}
],
"responses": {
"200": {
"description": "Gets the status of an asynchronous operation for the Azure HPC cache",
"schema": {
"$ref": "#/definitions/AscOperation"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"AscOperations_Get": {
"$ref": "./examples/AscOperations_Get.json"
}
},
"tags": [
"AscOperations"
],
"description": "Gets the status of an asynchronous operation for the Azure HPC cache",
"operationId": "AscOperations_Get"
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches": {
"get": {
"produces": [
Expand Down Expand Up @@ -1097,6 +1150,51 @@
},
"type": "object"
},
"AscOperation": {
"description": "The status of operation.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The operation Id."
},
"name": {
"type": "string",
"description": "The operation name."
},
"startTime": {
"type": "string",
"description": "The start time of the operation."
},
"endTime": {
"type": "string",
"description": "The end time of the operation."
},
"status": {
"type": "string",
"description": "The status of the operation."
},
"error": {
"type": "object",
"description": "The error detail of the operation if any.",
"$ref": "#/definitions/ErrorResponse"
}
}
},
"ErrorResponse": {
"description": "Describes the format of Error response.",
"type": "object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
}
},
"Cache": {
"description": "A Cache instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md",
"properties": {
Expand Down