Skip to content

Commit 1d90950

Browse files
authored
Swagger fixes: (#10554)
a. Enhance the operation discovery with a relevant example. b. Fix the move resource properties error filed to be readonly.
1 parent 09a8448 commit 1d90950

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/OperationsDiscovery_Get.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parameters": {
3-
"api-version": "2016-08-10",
3+
"api-version": "2019-10-01-preview",
44
"resourceGroupName": "resourceGroupPS1",
55
"subscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a"
66
},
@@ -9,12 +9,22 @@
99
"body": {
1010
"value": [
1111
{
12-
"name": "Microsoft.RecoveryServices/Vaults/vaultTokens/read",
12+
"name": "Read",
1313
"display": {
14-
"provider": "Microsoft.RecoveryServices",
15-
"resource": "Vaults",
16-
"operation": "Vault Token",
17-
"description": "The Vault Token operation can be used to get Vault Token for vault level backend operations."
14+
"provider": "Microsoft.Migrate",
15+
"resource": "Microsoft.Migrate/moveCollections",
16+
"operation": "Read",
17+
"description": "Reads the move collection."
18+
},
19+
"origin": "user"
20+
},
21+
{
22+
"name": "Write",
23+
"display": {
24+
"provider": "Microsoft.Migrate",
25+
"resource": "Microsoft.Migrate/moveCollections",
26+
"operation": "Write",
27+
"description": "Creates or updates a move collection."
1828
},
1929
"origin": "user"
2030
}

specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"MoveCollections"
2020
],
2121
"operationId": "MoveCollections_Create",
22-
"description": "Creates a move collection.",
22+
"description": "Creates or updates a move collection.",
2323
"consumes": [
2424
"application/json"
2525
],
@@ -1171,7 +1171,13 @@
11711171
}
11721172
},
11731173
"errors": {
1174-
"$ref": "#/definitions/MoveResourceError"
1174+
"description": "Defines the move resource errors.",
1175+
"allOf": [
1176+
{
1177+
"$ref": "#/definitions/MoveResourceError"
1178+
}
1179+
],
1180+
"readOnly": true
11751181
}
11761182
}
11771183
},

0 commit comments

Comments
 (0)