Skip to content

Commit 4a54e86

Browse files
priyankarkingPriyankar Guptamsyyc
authored
[Hub Generated] Review request for Microsoft.Cache to add version stable/2021-06-01 (#17836)
* swagger completeness fix for asyncOperations status. * Update readme.python.md Co-authored-by: Priyankar Gupta <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent 0a6d454 commit 4a54e86

File tree

3 files changed

+95
-1
lines changed

3 files changed

+95
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"location": "East US",
4+
"api-version": "2021-06-01",
5+
"subscriptionId": "subid",
6+
"operationId": "c7ba2bf5-5939-4d79-b037-2964ccf097da"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/subid/providers/Microsoft.Cache/locations/East US/asyncOperations/c7ba2bf5-5939-4d79-b037-2964ccf097da",
12+
"name": "c7ba2bf5-5939-4d79-b037-2964ccf097da",
13+
"status": "Succeeded",
14+
"startTime": null,
15+
"endTime": null,
16+
"percentComplete": null,
17+
"properties": null,
18+
"error": null
19+
}
20+
}
21+
}
22+
}

specification/redis/resource-manager/Microsoft.Cache/stable/2021-06-01/redis.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,6 +1775,56 @@
17751775
"nextLinkName": null
17761776
}
17771777
}
1778+
},
1779+
"/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}": {
1780+
"get": {
1781+
"tags": [
1782+
"AsyncOperationStatus"
1783+
],
1784+
"operationId": "AsyncOperationStatus_Get",
1785+
"description": "For checking the ongoing status of an operation",
1786+
"x-ms-examples": {
1787+
"RedisCacheAsyncOperationStatus": {
1788+
"$ref": "./examples/RedisCacheAsyncOperationStatus.json"
1789+
}
1790+
},
1791+
"parameters": [
1792+
{
1793+
"name": "location",
1794+
"in": "path",
1795+
"required": true,
1796+
"type": "string",
1797+
"description": "The location at which operation was triggered"
1798+
},
1799+
{
1800+
"name": "operationId",
1801+
"in": "path",
1802+
"required": true,
1803+
"type": "string",
1804+
"description": "The ID of asynchronous operation"
1805+
},
1806+
{
1807+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
1808+
},
1809+
{
1810+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
1811+
}
1812+
],
1813+
"responses": {
1814+
"200": {
1815+
"description": "Asynchronous operation status response",
1816+
"schema": {
1817+
"$ref": "#/definitions/OperationStatus"
1818+
}
1819+
},
1820+
"default": {
1821+
"description": "Error response describing why the operation failed.",
1822+
"schema": {
1823+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
1824+
}
1825+
}
1826+
}
1827+
}
17781828
}
17791829
},
17801830
"definitions": {
@@ -2709,6 +2759,23 @@
27092759
}
27102760
},
27112761
"description": "The response of listUpgradeNotifications."
2762+
},
2763+
"OperationStatus": {
2764+
"type": "object",
2765+
"description": "Asynchronous operation status",
2766+
"properties": {
2767+
"properties": {
2768+
"description": "Additional properties from RP, only when operation is successful",
2769+
"type": "object",
2770+
"additionalProperties": {}
2771+
}
2772+
},
2773+
"allOf": [
2774+
{
2775+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationStatusResult"
2776+
}
2777+
],
2778+
"x-ms-external": true
27122779
}
27132780
},
27142781
"parameters": {

specification/redis/resource-manager/readme.python.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ output-folder: $(python-sdks-folder)/redis/azure-mgmt-redis/azure/mgmt/redis
2323
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
2424
basic-setup-py: true
2525
output-folder: $(python-sdks-folder)/redis/azure-mgmt-redis
26-
```
26+
```
27+
28+
``` yaml $(python) && $(track2)
29+
modelerfour:
30+
lenient-model-deduplication: true
31+
```

0 commit comments

Comments
 (0)