diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/examples/RedisCacheAsyncOperationStatus.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/examples/RedisCacheAsyncOperationStatus.json new file mode 100644 index 000000000000..7957cdf65372 --- /dev/null +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/examples/RedisCacheAsyncOperationStatus.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "location": "East US", + "api-version": "2021-06-01", + "subscriptionId": "subid", + "operationId": "c7ba2bf5-5939-4d79-b037-2964ccf097da" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/providers/Microsoft.Cache/locations/East US/asyncOperations/c7ba2bf5-5939-4d79-b037-2964ccf097da", + "name": "c7ba2bf5-5939-4d79-b037-2964ccf097da", + "status": "Succeeded", + "startTime": null, + "endTime": null, + "percentComplete": null, + "properties": null, + "error": null + } + } + } +} diff --git a/specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/redis.json b/specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/redis.json index 9e6e97040f10..745321626f2c 100644 --- a/specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/redis.json +++ b/specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/redis.json @@ -1775,6 +1775,56 @@ "nextLinkName": null } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}": { + "get": { + "tags": [ + "AsyncOperationStatus" + ], + "operationId": "AsyncOperationStatus_Get", + "description": "For checking the ongoing status of an operation", + "x-ms-examples": { + "RedisCacheAsyncOperationStatus": { + "$ref": "./examples/RedisCacheAsyncOperationStatus.json" + } + }, + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location at which operation was triggered" + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of asynchronous operation" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Asynchronous operation status response", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -2693,6 +2743,23 @@ } }, "description": "The response of listUpgradeNotifications." + }, + "OperationStatus": { + "type": "object", + "description": "Asynchronous operation status", + "properties": { + "properties": { + "description": "Additional properties from RP, only when operation is successful", + "type": "object", + "additionalProperties": {} + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationStatusResult" + } + ], + "x-ms-external": true } }, "parameters": { diff --git a/specification/redis/resource-manager/readme.python.md b/specification/redis/resource-manager/readme.python.md index dd1fa807486b..26c9f57f8486 100644 --- a/specification/redis/resource-manager/readme.python.md +++ b/specification/redis/resource-manager/readme.python.md @@ -23,4 +23,9 @@ output-folder: $(python-sdks-folder)/redis/azure-mgmt-redis/azure/mgmt/redis ``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/redis/azure-mgmt-redis -``` \ No newline at end of file +``` + +``` yaml $(python) && $(track2) +modelerfour: + lenient-model-deduplication: true +```