Skip to content

Commit 82ae1c9

Browse files
dukumDurgesh Kumar
andauthored
Adding required for api swagger for azure resource mover (Azure#12470)
* adding required for api changes * fixing npmpretty checks and lint issues * linting fixes 2 Co-authored-by: Durgesh Kumar <[email protected]>
1 parent cb4659b commit 82ae1c9

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"moveCollectionName": "movecollection1",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rg1",
6+
"sourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/nic1",
7+
"api-version": "2019-10-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"sourceIds": [
13+
"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1"
14+
]
15+
}
16+
}
17+
}
18+
}

specification/resourcemover/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/resourcemovercollection.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,55 @@
994994
}
995995
}
996996
}
997+
},
998+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/requiredFor": {
999+
"get": {
1000+
"description": "List of the move resources for which an arm resource is required for.",
1001+
"operationId": "MoveCollections_ListRequiredFor",
1002+
"produces": [
1003+
"application/json"
1004+
],
1005+
"parameters": [
1006+
{
1007+
"$ref": "#/parameters/subscriptionId"
1008+
},
1009+
{
1010+
"$ref": "#/parameters/resourceGroupName"
1011+
},
1012+
{
1013+
"$ref": "#/parameters/moveCollectionName"
1014+
},
1015+
{
1016+
"name": "sourceId",
1017+
"in": "query",
1018+
"required": true,
1019+
"type": "string",
1020+
"description": "The sourceId for which the api is invoked."
1021+
},
1022+
{
1023+
"$ref": "#/parameters/api-version"
1024+
}
1025+
],
1026+
"responses": {
1027+
"200": {
1028+
"description": "Success",
1029+
"schema": {
1030+
"$ref": "#/definitions/RequiredForResourcesCollection"
1031+
}
1032+
},
1033+
"default": {
1034+
"description": "Error response describing why the operation failed.",
1035+
"schema": {
1036+
"$ref": "#/definitions/CloudError"
1037+
}
1038+
}
1039+
},
1040+
"x-ms-examples": {
1041+
"RequiredFor_Get": {
1042+
"$ref": "./examples/RequiredFor_Get.json"
1043+
}
1044+
}
1045+
}
9971046
}
9981047
},
9991048
"definitions": {
@@ -1669,6 +1718,19 @@
16691718
}
16701719
}
16711720
},
1721+
"RequiredForResourcesCollection": {
1722+
"description": "Required for resources collection.",
1723+
"type": "object",
1724+
"properties": {
1725+
"sourceIds": {
1726+
"description": "Gets or sets the list of source Ids for which the input resource is required.",
1727+
"type": "array",
1728+
"items": {
1729+
"type": "string"
1730+
}
1731+
}
1732+
}
1733+
},
16721734
"Display": {
16731735
"description": "Contains the localized display information for this particular operation / action. These\r\nvalue will be used by several clients for\r\n(1) custom role definitions for RBAC;\r\n(2) complex query filters for the event service; and\r\n(3) audit history / records for management operations.",
16741736
"type": "object",

0 commit comments

Comments
 (0)