From 260b57a625ae87c6c59918af8089acaa29f04c3c Mon Sep 17 00:00:00 2001 From: Harkirat Singh Date: Thu, 18 Jun 2020 18:41:10 +0530 Subject: [PATCH 1/3] [Public-Preview] Review request for Microsoft.Migrate to add version preview/2019-10-01-preview --- .../examples/MoveCollections_Commit.json | 27 + .../examples/MoveCollections_Create.json | 53 + .../examples/MoveCollections_Delete.json | 27 + .../examples/MoveCollections_Discard.json | 27 + .../examples/MoveCollections_Get.json | 28 + .../MoveCollections_InitiateMove.json | 27 + ...ns_ListMoveCollectionsByResourceGroup.json | 32 + ...ons_ListMoveCollectionsBySubscription.json | 31 + .../examples/MoveCollections_Prepare.json | 27 + .../MoveCollections_ResolveDependencies.json | 26 + .../examples/MoveResources_Create.json | 51 + .../examples/MoveResources_Delete.json | 28 + .../examples/MoveResources_Get.json | 28 + .../examples/MoveResources_List.json | 69 + .../examples/OperationsDiscovery_Get.json | 25 + .../examples/UnresolvedDependencies_Get.json | 20 + .../regionmovecollection.json | 1805 +++++++++++++++++ .../resource-manager/readme.csharp.md | 15 + .../regionmove/resource-manager/readme.go.md | 19 + .../regionmove/resource-manager/readme.md | 79 + .../resource-manager/readme.python.md | 21 + .../resource-manager/readme.ruby.md | 19 + .../resource-manager/readme.typescript.md | 13 + 23 files changed, 2497 insertions(+) create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Commit.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Delete.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Discard.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Get.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_InitiateMove.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ListMoveCollectionsBySubscription.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Prepare.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ResolveDependencies.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Create.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Delete.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Get.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_List.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/OperationsDiscovery_Get.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/UnresolvedDependencies_Get.json create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json create mode 100644 specification/regionmove/resource-manager/readme.csharp.md create mode 100644 specification/regionmove/resource-manager/readme.go.md create mode 100644 specification/regionmove/resource-manager/readme.md create mode 100644 specification/regionmove/resource-manager/readme.python.md create mode 100644 specification/regionmove/resource-manager/readme.ruby.md create mode 100644 specification/regionmove/resource-manager/readme.typescript.md diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Commit.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Commit.json new file mode 100644 index 000000000000..03a9f868be09 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Commit.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview", + "validateOnly": false, + "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + }, + "responses": { + "200": { + "body": { + "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name":"1e4193c3-206e-4916-b124-1da16175eb0e", + "status":"Succeeded", + "startTime":"6/17/2020 6:45:55 AM", + "endTime":"6/17/2020 6:45:56 AM", + "error":null, + "properties":{ + + } + } + }, + "202": { + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json new file mode 100644 index 000000000000..5dcd3f615c16 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview", + "identity": { + "type": "SystemAssigned" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus" + } + }, + "responses": { + "200": { + "body": { + "name": "movecollection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", + "type": "Microsoft.Migrate/MoveCollections", + "location": "United States", + "identity": { + "type": "SystemAssigned", + "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", + "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "movecollection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", + "type": "Microsoft.Migrate/MoveCollections", + "location": "United States", + "identity": { + "type": "SystemAssigned", + "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", + "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus", + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Delete.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Delete.json new file mode 100644 index 000000000000..64e78f9d3a98 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Delete.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name":"1e4193c3-206e-4916-b124-1da16175eb0e", + "status":"Succeeded", + "startTime":"6/17/2020 6:45:55 AM", + "endTime":"6/17/2020 6:45:56 AM", + "error":null, + "properties":{ + + } + } + }, + "202": { + }, + "204": { + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Discard.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Discard.json new file mode 100644 index 000000000000..03a9f868be09 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Discard.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview", + "validateOnly": false, + "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + }, + "responses": { + "200": { + "body": { + "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name":"1e4193c3-206e-4916-b124-1da16175eb0e", + "status":"Succeeded", + "startTime":"6/17/2020 6:45:55 AM", + "endTime":"6/17/2020 6:45:56 AM", + "error":null, + "properties":{ + + } + } + }, + "202": { + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Get.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Get.json new file mode 100644 index 000000000000..34cc20bdaa30 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "movecollection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", + "type": "Microsoft.Migrate/MoveCollections", + "location": "United States", + "identity": { + "type": "SystemAssigned", + "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", + "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_InitiateMove.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_InitiateMove.json new file mode 100644 index 000000000000..03a9f868be09 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_InitiateMove.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview", + "validateOnly": false, + "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + }, + "responses": { + "200": { + "body": { + "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name":"1e4193c3-206e-4916-b124-1da16175eb0e", + "status":"Succeeded", + "startTime":"6/17/2020 6:45:55 AM", + "endTime":"6/17/2020 6:45:56 AM", + "error":null, + "properties":{ + + } + } + }, + "202": { + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json new file mode 100644 index 000000000000..7359254ceab5 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "movecollection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", + "type": "Microsoft.Migrate/MoveCollections", + "location": "United States", + "identity": { + "type": "SystemAssigned", + "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", + "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ListMoveCollectionsBySubscription.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ListMoveCollectionsBySubscription.json new file mode 100644 index 000000000000..94d27ee64517 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ListMoveCollectionsBySubscription.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "movecollection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", + "type": "Microsoft.Migrate/MoveCollections", + "location": "United States", + "identity": { + "type": "SystemAssigned", + "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", + "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Prepare.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Prepare.json new file mode 100644 index 000000000000..03a9f868be09 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Prepare.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview", + "validateOnly": false, + "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + }, + "responses": { + "200": { + "body": { + "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name":"1e4193c3-206e-4916-b124-1da16175eb0e", + "status":"Succeeded", + "startTime":"6/17/2020 6:45:55 AM", + "endTime":"6/17/2020 6:45:56 AM", + "error":null, + "properties":{ + + } + } + }, + "202": { + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ResolveDependencies.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ResolveDependencies.json new file mode 100644 index 000000000000..b5146b96eac6 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ResolveDependencies.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview", + "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + }, + "responses": { + "200": { + "body": { + "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name":"1e4193c3-206e-4916-b124-1da16175eb0e", + "status":"Succeeded", + "startTime":"6/17/2020 6:45:55 AM", + "endTime":"6/17/2020 6:45:56 AM", + "error":null, + "properties":{ + + } + } + }, + "202": { + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Create.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Create.json new file mode 100644 index 000000000000..dc13d379d2de --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Create.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "moveResourceName": "moveresourcename1", + "api-version": "2019-10-01-preview", + "properties": { + "sourceId": "/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/virtualMachines/eastusvm1", + "dependsOnOverride": [ + { + "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140", + "targetId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westus/providers/Microsoft.Network/networkInterfaces/eastusvm140" + } + ], + "resourceSettings": { + "resourceType" : "Microsoft.Compute/VirtualMachines", + "targetResourceName": "westusvm1", + "targetAvailabilityZone": "2", + "targetVmSize": null + } + } + }, + "responses": { + "202": {}, + "200": { + "body": { + "name": "moveresourcename1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1", + "type": "Microsoft.Migrate/MoveCollections/MoveResources", + "properties": { + "sourceId": "/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/virtualMachines/eastusvm1", + "dependsOn": [ + { + "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140", + "resolutionType": "Automatic", + "resolutionStatus": "Unresolved" + } + ], + "resourceSettings": { + "resourceType" : "Microsoft.Compute/virtualMachines", + "targetResourceName": "westusvm1", + "targetAvailabilityZone": "2", + "targetVmSize": null + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Delete.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Delete.json new file mode 100644 index 000000000000..a08a05f4b131 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Delete.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "moveResourceName": "moveresourcename1", + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name":"1e4193c3-206e-4916-b124-1da16175eb0e", + "status":"Succeeded", + "startTime":"6/17/2020 6:45:55 AM", + "endTime":"6/17/2020 6:45:56 AM", + "error":null, + "properties":{ + + } + } + }, + "202": { + }, + "204": { + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Get.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Get.json new file mode 100644 index 000000000000..1fe7dab84fe9 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "moveResourceName": "moveresourcename1", + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "moveresourcename1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1", + "type": "Microsoft.Migrate/MoveCollections/MoveResources", + "properties": { + "sourceId": "/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/virtualMachines/eastusvm1", + "dependsOn": [ + { + "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140", + "resolutionType": "Automatic", + "resolutionStatus": "Unresolved" + } + ] + } + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_List.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_List.json new file mode 100644 index 000000000000..28f95d7095a6 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_List.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "moveResourceName": "moveresourcename1", + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "moveresourcename1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1", + "type": "Microsoft.Migrate/MoveCollections/MoveResources", + "properties": { + "sourceId": "/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/virtualMachines/eastusvm1", + "dependsOn": [ + { + "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140", + "resolutionType": "Automatic", + "resolutionStatus": "Resolved", + "automaticResolution" : { + "moveResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource2" + } + }, + { + "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/EASTUS/providers/Microsoft.Compute/disks/eastusvm1_OsDisk_1_a88a2f0e8cf44fb3af24aa0f27101f83", + "resolutionType": "Automatic", + "resolutionStatus": "Resolved", + "automaticResolution" : { + "moveResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource3" + } + } + ] + } + }, + { + "name": "moveresourcename2", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource2", + "type": "Microsoft.Migrate/MoveCollections/MoveResources", + "properties": { + "sourceId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140", + "dependsOn": [ + { + "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/virtualNetworks/eastus-vnet", + "resolutionType": "Manual", + "resolutionStatus": "Resolved", + "manualResolution" : { + "targetId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westus/providers/Microsoft.Network/virtualNetworks/westus-vnet" + } + } + ] + } + }, + { + "name": "moveresourcename3", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource3", + "type": "Microsoft.Migrate/MoveCollections/MoveResources", + "properties": { + "sourceId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/EASTUS/providers/Microsoft.Compute/disks/eastusvm1_OsDisk_1_a88a2f0e8cf44fb3af24aa0f27101f83" + } + } + ] + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/OperationsDiscovery_Get.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/OperationsDiscovery_Get.json new file mode 100644 index 000000000000..f6c7b66be98b --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/OperationsDiscovery_Get.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2016-08-10", + "resourceGroupName": "resourceGroupPS1", + "subscriptionId": "c183865e-6077-46f2-a3b1-deb0f4f4650a" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.RecoveryServices/Vaults/vaultTokens/read", + "display": { + "provider": "Microsoft.RecoveryServices", + "resource": "Vaults", + "operation": "Vault Token", + "description": "The Vault Token operation can be used to get Vault Token for vault level backend operations." + }, + "origin": "user" + } + ] + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/UnresolvedDependencies_Get.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/UnresolvedDependencies_Get.json new file mode 100644 index 000000000000..ce8acedf78aa --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/UnresolvedDependencies_Get.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "api-version": "2019-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "count": 1, + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1" + } + ] + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json new file mode 100644 index 000000000000..7141baf892ab --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json @@ -0,0 +1,1805 @@ +{ + "swagger": "2.0", + "info": { + "title": "Region Move Service API", + "description": "A first party Azure service orchestrating the move of Azure resources from one Azure region to another or between zones within a region.", + "version": "2019-10-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}": { + "put": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollections_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MoveCollection" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MoveCollection" + } + }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MoveCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_Create": { + "$ref": "./examples/MoveCollections_Create.json" + } + } + }, + "delete": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollections_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_Delete": { + "$ref": "./examples/MoveCollections_Delete.json" + } + } + }, + "get": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollections_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MoveCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_Get": { + "$ref": "./examples/MoveCollections_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/prepare": { + "post": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollections_Prepare", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/PrepareRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_Prepare": { + "$ref": "./examples/MoveCollections_Prepare.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/InitiateMove": { + "post": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollections_InitiateMove", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/ResourceMoveRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_InitiateMove": { + "$ref": "./examples/MoveCollections_InitiateMove.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MoveCollections/{moveCollectionName}/Commit": { + "post": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollections_Commit", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/CommitRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_Commit": { + "$ref": "./examples/MoveCollections_Commit.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MoveCollections/{moveCollectionName}/Discard": { + "post": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollections_Discard", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/DiscardRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_Discard": { + "$ref": "./examples/MoveCollections_Discard.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/resolveDependencies": { + "post": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollections_ResolveDependencies", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_ResolveDependencies": { + "$ref": "./examples/MoveCollections_ResolveDependencies.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources": { + "get": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveResources_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. For example, you can use $filter=Properties/ProvisioningState eq 'Succeeded'." + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MoveResourceCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/MoveResourceFilter", + "x-ms-examples": { + "MoveResources_List": { + "$ref": "./examples/MoveResources_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MoveCollections/{moveCollectionName}/UnresolvedDependencies": { + "get": { + "tags": [ + "MoveCollections" + ], + "operationId": "UnresolvedDependencies_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/UnresolvedDependencyCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "UnresolvedDependencies_Get": { + "$ref": "./examples/UnresolvedDependencies_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/moveResources/{moveResourceName}": { + "put": { + "tags": [ + "MoveResources" + ], + "operationId": "MoveResources_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveResourceName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/MoveResource" + } + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MoveResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveResources_Create": { + "$ref": "./examples/MoveResources_Create.json" + } + } + }, + "delete": { + "tags": [ + "MoveResources" + ], + "operationId": "MoveResources_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveResourceName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveResources_Delete": { + "$ref": "./examples/MoveResources_Delete.json" + } + } + }, + "get": { + "tags": [ + "MoveResources" + ], + "operationId": "MoveResources_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveResourceName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/MoveResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveResources_Get": { + "$ref": "./examples/MoveResources_Get.json" + } + } + } + }, + "/providers/Microsoft.Migrate/operations": { + "get": { + "tags": [ + "OperationsDiscovery" + ], + "operationId": "OperationsDiscovery_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationsDiscoveryCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "OperationsDiscovery_Get": { + "$ref": "./examples/OperationsDiscovery_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Migrate/moveCollections": { + "get": { + "summary": "Get all MoveCollections.", + "description": "Get all the MoveCollections in the subscription.", + "operationId": "MoveCollections_ListMoveCollectionsBySubscription", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/MoveCollectionResultList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "MoveCollections_ListMoveCollectionsBySubscription": { + "$ref": "./examples/MoveCollections_ListMoveCollectionsBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections": { + "get": { + "summary": "Get all projects.", + "description": "Get all the projects in the resource group.", + "operationId": "MoveCollections_ListMoveCollectionsByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/MoveCollectionResultList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "MoveCollections_ListMoveCollectionsByResourceGroup": { + "$ref": "./examples/MoveCollections_ListMoveCollectionsByResourceGroup.json" + } + } + } + } + }, + "definitions": { + "ResourceIdentityType": { + "description": "The type of identity used for the region move service.", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned" + ], + "type": "string" + }, + "Identity": { + "description": "Defines the MSI properties of the Move Collection.", + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ResourceIdentityType" + }, + "principalId": { + "description": "Gets or sets the principal id.", + "type": "string" + }, + "tenantId": { + "description": "Gets or sets the tenant id.", + "type": "string" + } + } + }, + "MoveState": { + "description": "Defines the MoveResource states.", + "enum": [ + "AssignmentPending", + "PreparePending", + "PrepareInProgress", + "PrepareFailed", + "PrepareStarted", + "PrepareFinalizeInProgress", + "PrepareFinalizeFailed", + "PrepareInitiateSyncTrackingInProgress", + "PrepareSyncInProgress", + "PrepareInitiateSyncTrackingFailed", + "MovePending", + "MoveInProgress", + "MoveFailed", + "DiscardInProgress", + "DiscardFailed", + "CommitPending", + "CommitInProgress", + "CommitFailed", + "Committed" + ], + "type": "string" + }, + "ProvisioningState": { + "description": "Defines the provisioning states.", + "enum": [ + "Succeeded", + "Updating", + "Creating", + "Failed" + ], + "type": "string" + }, + "JobName": { + "description": "Defines the job names.", + "enum": [ + "InitialSync" + ], + "type": "string" + }, + "JobStatus": { + "description": "Defines the job status.", + "type": "object", + "properties": { + "jobName": { + "$ref": "#/definitions/JobName" + }, + "jobProgress": { + "description": "Gets or sets the monitoring job percentage.", + "type": "string" + } + } + }, + "MoveResourceStatus": { + "description": "Defines the move resource status.", + "type": "object", + "properties": { + "moveState": { + "$ref": "#/definitions/MoveState" + }, + "jobStatus": { + "$ref": "#/definitions/JobStatus" + }, + "errors": { + "$ref": "#/definitions/CloudError" + }, + "targetId": { + "description": "Gets the Target ARM Id of the resource.", + "type": "string" + } + } + }, + "ResolutionType": { + "description": "Defines the resolution type.", + "enum": [ + "Manual", + "Automatic" + ], + "type": "string" + }, + "DependencyType": { + "description": "Defines the dependency type.", + "enum": [ + "RequiredForPrepare", + "RequiredForMove" + ], + "type": "string" + }, + "MoveResourceDependency": { + "description": "Defines the dependency of the move resource.", + "type": "object", + "properties": { + "id": { + "description": "Gets the source ARM ID of the dependent resource.", + "type": "string" + }, + "resolutionStatus": { + "description": "Gets the dependency resolution status.", + "type": "string" + }, + "resolutionType": { + "$ref": "#/definitions/ResolutionType" + }, + "dependencyType": { + "$ref": "#/definitions/DependencyType" + }, + "manualResolution": { + "$ref": "#/definitions/ManualResolutionProperties" + }, + "automaticResolution": { + "$ref": "#/definitions/AutomaticResolutionProperties" + } + } + }, + "MoveResourceDependencyOverride": { + "description": "Defines the dependency of the move resource.", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the ARM ID of the dependent resource.", + "type": "string" + }, + "targetId": { + "description": "Gets or sets the resource ARM id of either the MoveResource or the resource ARM ID of\r\nthe dependent resource.", + "type": "string" + } + } + }, + "ManualResolutionProperties": { + "description": "Defines the properties for manual resolution.", + "type": "object", + "properties": { + "targetId": { + "description": "Gets or sets the target resource ARM ID of the dependent resource if the resource type is Manual.", + "type": "string" + } + } + }, + "AutomaticResolutionProperties": { + "description": "Defines the properties for automatic resolution.", + "type": "object", + "properties": { + "moveResourceId": { + "description": "Gets the MoveResource ARM ID of\r\nthe dependent resource if the resolution type is Automatic.", + "type": "string" + } + } + }, + "MoveResourceProperties": { + "description": "Defines the move resource properties.", + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + }, + "sourceId": { + "description": "Gets or sets the Source ARM Id of the resource.", + "type": "string" + }, + "targetId": { + "description": "Gets or sets the Target ARM Id of the resource.", + "type": "string", + "readOnly": true + }, + "existingTargetId": { + "description": "Gets or sets the existing target ARM Id of the resource.", + "type": "string" + }, + "resourceSettings": { + "description": "Gets or sets the resource settings.", + "$ref": "#/definitions/ResourceSettings" + }, + "moveStatus": { + "allOf": [ + { + "$ref": "#/definitions/MoveResourceStatus" + } + ], + "readOnly": true + }, + "dependsOn": { + "description": "Gets or sets the move resource dependencies.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/MoveResourceDependency" + } + }, + "dependsOnOverrides": { + "description": "Gets or sets the move resource dependencies overrides.", + "type": "array", + "items": { + "$ref": "#/definitions/MoveResourceDependencyOverride" + } + } + } + }, + "MoveResource": { + "description": "Defines the move resource.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + }, + "properties": { + "$ref": "#/definitions/MoveResourceProperties" + } + } + }, + "MoveCollectionProperties": { + "description": "Defines the move collection properties.", + "type": "object", + "properties": { + "sourceRegion": { + "description": "Gets or sets the source region.", + "type": "string" + }, + "targetRegion": { + "description": "Gets or sets the target region.", + "type": "string" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" + } + } + }, + "MoveCollection": { + "description": "Define the move collection.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the resource lives" + }, + "identity": { + "$ref": "#/definitions/Identity" + }, + "properties": { + "$ref": "#/definitions/MoveCollectionProperties" + } + } + }, + "UpdateMoveCollectionRequest": { + "description": "Defines the request body for updating move collection.", + "type": "object", + "properties": { + "tags": { + "description": "Gets or sets the Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "$ref": "#/definitions/Identity" + } + } + }, + "PrepareRequest": { + "description": "Defines the request body for initiate prepare operation.", + "type": "object", + "properties": { + "validateOnly": { + "description": "Gets or sets a value indicating whether the operation needs to only run pre-requisite.", + "type": "boolean" + }, + "moveResources": { + "description": "Gets or sets the list of move resources ARM id's.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ResourceMoveRequest": { + "description": "Defines the request body for resource move operation.", + "type": "object", + "properties": { + "validateOnly": { + "description": "Gets or sets a value indicating whether the operation needs to only run pre-requisite.", + "type": "boolean" + }, + "moveResources": { + "description": "Gets or sets the list of move resources ARM id's.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CommitRequest": { + "description": "Defines the request body for commit operation.", + "type": "object", + "properties": { + "validateOnly": { + "description": "Gets or sets a value indicating whether the operation needs to only run pre-requisite.", + "type": "boolean" + }, + "moveResources": { + "description": "Gets or sets the list of move resources ARM id's.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "DiscardRequest": { + "description": "Defines the request body for discard operation.", + "type": "object", + "properties": { + "validateOnly": { + "description": "Gets or sets a value indicating whether the operation needs to only run pre-requisite.", + "type": "boolean" + }, + "moveResources": { + "description": "Gets or sets the list of move resources ARM id's.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "MoveResourceFilter": { + "description": "Move resource filter.", + "properties": { + "properties": { + "$ref": "#/definitions/MoveResourceFilterProperties" + } + } + }, + "MoveResourceFilterProperties": { + "properties": { + "ProvisioningState": { + "type": "string", + "description": "The provisioning state." + } + } + }, + "MoveResourceCollection": { + "description": "Defines the collection of move resources.", + "type": "object", + "properties": { + "value": { + "description": "Gets the list of move resources.", + "type": "array", + "items": { + "$ref": "#/definitions/MoveResource" + } + }, + "nextLink": { + "description": "Gets the value of next link.", + "type": "string" + } + } + }, + "MoveCollectionResultList": { + "description": "Defines the collection of move collections.", + "type": "object", + "properties": { + "value": { + "description": "Gets the list of move collections.", + "type": "array", + "items": { + "$ref": "#/definitions/MoveCollection" + } + }, + "nextLink": { + "description": "Gets the value of next link.", + "type": "string" + } + } + }, + "UnresolvedDependency": { + "description": "Unresolved dependency.", + "type": "object", + "properties": { + "count": { + "format": "int32", + "description": "Gets or sets the count.", + "type": "integer" + }, + "id": { + "description": "Gets or sets the arm id of the dependency.", + "type": "string" + } + } + }, + "UnresolvedDependencyCollection": { + "description": "Unresolved dependency collection.", + "type": "object", + "properties": { + "value": { + "description": "Gets or sets the list of unresolved dependencies.", + "type": "array", + "items": { + "$ref": "#/definitions/UnresolvedDependency" + } + }, + "nextLink": { + "description": "Gets or sets the value of next link.", + "type": "string" + } + } + }, + "Display": { + "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.", + "type": "object", + "properties": { + "provider": { + "description": "Gets or sets the provider.\r\nThe localized friendly form of the resource provider name – it is expected to also\r\ninclude the publisher/company responsible.\r\nIt should use Title Casing and begin with \"Microsoft\" for 1st party services.\r\ne.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute.\".", + "type": "string" + }, + "resource": { + "description": "Gets or sets the resource.\r\nThe localized friendly form of the resource related to this action/operation – it\r\nshould match the public documentation for the resource provider.\r\nIt should use Title Casing.\r\nThis value should be unique for a particular URL type (e.g. nested types should *not*\r\nreuse their parent’s display.resource field)\r\ne.g. \"Virtual Machines\" or \"Scheduler Job Collections\", or \"Virtual Machine VM Sizes\"\r\nor \"Scheduler Jobs\".", + "type": "string" + }, + "operation": { + "description": "Gets or sets the operation.\r\nThe localized friendly name for the operation, as it should be shown to the user.\r\nIt should be concise (to fit in drop downs) but clear (i.e. self-documenting).\r\nIt should use Title Casing.\r\nPrescriptive guidance: Read Create or Update Delete 'ActionName'.", + "type": "string" + }, + "description": { + "description": "Gets or sets the description.\r\nThe localized friendly description for the operation, as it should be shown to the\r\nuser.\r\nIt should be thorough, yet concise – it will be used in tool tips and detailed views.\r\nPrescriptive guidance for namespace:\r\nRead any 'display.provider' resource\r\nCreate or Update any 'display.provider' resource\r\nDelete any 'display.provider' resource\r\nPerform any other action on any 'display.provider' resource\r\nPrescriptive guidance for namespace:\r\nRead any 'display.resource' Create or Update any 'display.resource' Delete any\r\n'display.resource' 'ActionName' any 'display.resources'.", + "type": "string" + } + } + }, + "OperationsDiscoveryProperties": { + "description": "ClientDiscovery properties.", + "type": "object" + }, + "OperationsDiscovery": { + "description": "Operations discovery class.", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets Name of the API.\r\nThe name of the operation being performed on this particular object. It should\r\nmatch the action name that appears in RBAC / the event service.\r\nExamples of operations include:\r\n* Microsoft.Compute/virtualMachine/capture/action\r\n* Microsoft.Compute/virtualMachine/restart/action\r\n* Microsoft.Compute/virtualMachine/write\r\n* Microsoft.Compute/virtualMachine/read\r\n* Microsoft.Compute/virtualMachine/delete\r\nEach action should include, in order:\r\n(1) Resource Provider Namespace\r\n(2) Type hierarchy for which the action applies (e.g. server/databases for a SQL\r\nAzure database)\r\n(3) Read, Write, Action or Delete indicating which type applies. If it is a PUT/PATCH\r\non a collection or named value, Write should be used.\r\nIf it is a GET, Read should be used. If it is a DELETE, Delete should be used. If it\r\nis a POST, Action should be used.\r\nAs a note: all resource providers would need to include the \"{Resource Provider\r\nNamespace}/register/action\" operation in their response.\r\nThis API is used to register for their service, and should include details about the\r\noperation (e.g. a localized name for the resource provider + any special\r\nconsiderations like PII release).", + "type": "string" + }, + "display": { + "$ref": "#/definitions/Display" + }, + "origin": { + "description": "Gets or sets Origin.\r\nThe intended executor of the operation; governs the display of the operation in the\r\nRBAC UX and the audit logs UX.\r\nDefault value is \"user,system\".", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/OperationsDiscoveryProperties" + } + } + }, + "OperationsDiscoveryCollection": { + "description": "Collection of ClientDiscovery details.", + "type": "object", + "properties": { + "value": { + "description": "Gets or sets the ClientDiscovery details.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationsDiscovery" + } + }, + "nextLink": { + "description": "Gets or sets the value of next link.", + "type": "string" + } + } + }, + "CloudError": { + "properties": { + "properties": { + "type": "object", + "description": "The cloud error body.", + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An error response from the azure region move service." + }, + "CloudErrorBody": { + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the Azure Migrate service." + }, + "ResourceSettings": { + "description": "Gets or sets the resource settings.", + "type": "object", + "required": [ + "resourceType" + ], + "properties": { + "resourceType": { + "description": "The resource type. For example, the value can be Microsoft.Compute/virtualMachines.", + "type": "string" + }, + "targetResourceName": { + "description": "Gets or sets the target Resource name.", + "type": "string" + } + }, + "discriminator": "resourceType" + }, + "VirtualMachineResourceSettings": { + "description": "Gets or sets the virtual machine resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": { + "targetAvailabilityZone": { + "description": "Gets or sets the target availability zone.", + "type": "string", + "enum": [ + "1", + "2", + "3", + "NA" + ] + }, + "targetVmSize": { + "description": "Gets or sets the target vm size.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Microsoft.Compute/virtualMachines" + }, + "AvailabilitySetResourceSettings": { + "description": "Gets or sets the availability set resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": { + "faultDomain": { + "description": "Gets or sets the target fault domain.", + "type": "integer", + "format": "int32", + "minimum": 1, + "x-nullable": true + }, + "updateDomain": { + "description": "Gets or sets the target update domain.", + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 20, + "x-nullable": true + } + }, + "x-ms-discriminator-value": "Microsoft.Compute/availabilitySets" + }, + "VirtualNetworkResourceSettings": { + "description": "Defines the virtual network resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": {}, + "x-ms-discriminator-value": "Microsoft.Network/virtualNetworks" + }, + "NetworkSecurityGroupResourceSettings": { + "description": "Defines the network security group resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": {}, + "x-ms-discriminator-value": "Microsoft.Network/networkSecurityGroups" + }, + "NetworkInterfaceResourceSettings": { + "description": "Defines the network interface resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": {}, + "x-ms-discriminator-value": "Microsoft.Network/networkInterfaces" + }, + "SqlServerResourceSettings": { + "description": "Defines the SQL Server resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": {}, + "x-ms-discriminator-value": "Microsoft.Sql/servers" + }, + "ZoneRedundant": { + "description": "Defines the zone redundant resource setting.", + "enum": [ + "Enable", + "Disable" + ], + "type": "string" + }, + "SqlElasticPoolResourceSettings": { + "description": "Defines the Sql ElasticPool resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": { + "zoneRedundant": { + "$ref": "#/definitions/ZoneRedundant" + } + }, + "x-ms-discriminator-value": "Microsoft.Sql/servers/elasticPools" + }, + "SqlDatabaseResourceSettings": { + "description": "Defines the Sql Database resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": { + "zoneRedundant": { + "$ref": "#/definitions/ZoneRedundant" + } + }, + "x-ms-discriminator-value": "Microsoft.Sql/servers/databases" + }, + "ResourceGroupResourceSettings": { + "description": "Defines the resource group resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": {}, + "x-ms-discriminator-value": "resourceGroups" + }, + "PublicIPAddressResourceSettings": { + "description": "Defines the public IP address resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": {}, + "x-ms-discriminator-value": "Microsoft.Network/publicIPAddresses" + }, + "LoadBalancerResourceSettings": { + "description": "Defines the load balancer resource settings.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceSettings" + } + ], + "properties": {}, + "x-ms-discriminator-value": "Microsoft.Network/loadBalancers" + }, + "OperationStatus": { + "description": "Operation status REST resource.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Operation name.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Status of the operation. ARM expects the terminal status to be one of Succeeded/ Failed/ Canceled. All other values imply that the operation is still running.", + "type": "string", + "readOnly": true + }, + "startTime": { + "description": "Start time.", + "type": "string", + "readOnly": true + }, + "endTime": { + "description": "End time.", + "type": "string", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/OperationStatusError", + "description": "Error stating all error details for the operation.", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/OperationStatusProperties", + "description": "Custom data.", + "readOnly": true + } + } + }, + "OperationStatusError": { + "description": "Class for operation status errors.", + "type": "object", + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "details": { + "readOnly": true, + "type": "array", + "description": "The error details.", + "items": { + "$ref": "#/definitions/OperationStatusError" + } + }, + "additionalInfo": { + "readOnly": true, + "type": "object", + "description": "The additional info." + } + } + }, + "OperationStatusProperties": { + "description": "Class for operation result properties.", + "type": "object", + "properties": { + } + } + }, + "parameters": { + "subscriptionId": { + "in": "path", + "name": "subscriptionId", + "description": "The Subscription ID.", + "required": true, + "type": "string" + }, + "api-version": { + "in": "query", + "name": "api-version", + "description": "Client Api Version.", + "required": true, + "type": "string" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} diff --git a/specification/regionmove/resource-manager/readme.csharp.md b/specification/regionmove/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..f8de1d553f88 --- /dev/null +++ b/specification/regionmove/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.Migrate + output-folder: $(csharp-sdks-folder)/regionmove/management/Microsoft.Migrate/GeneratedProtocol +``` diff --git a/specification/regionmove/resource-manager/readme.go.md b/specification/regionmove/resource-manager/readme.go.md new file mode 100644 index 000000000000..6dfd40318a2a --- /dev/null +++ b/specification/regionmove/resource-manager/readme.go.md @@ -0,0 +1,19 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + clear-output-folder: true +``` + +### Tag: package-2019-10-01-preview and go + +These settings apply only when `--tag=package-2019-10-01-preview --go` is specified on the command line. +Please also specify `--go-sdks-folder=`. + +```yaml $(tag) == 'package-2019-10-01-preview' && $(go) +namespace: Microsoft.Migrate +output-folder: $(go-sdks-folder)/regionmove/Generated +``` diff --git a/specification/regionmove/resource-manager/readme.md b/specification/regionmove/resource-manager/readme.md new file mode 100644 index 000000000000..f8195d7a8cc3 --- /dev/null +++ b/specification/regionmove/resource-manager/readme.md @@ -0,0 +1,79 @@ +# regionmove + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for regionmove. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the regionmove. + +```yaml +openapi-type: arm +tag: package-2019-10-01-preview +``` + +### Tag: package-2019-10-01-preview + +These settings apply only when `--tag=package-2019-10-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2019-10-01-preview' +input-file: + - Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_regionmove'] +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## Ruby + +See configuration in [readme.ruby.md](./readme.ruby.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) diff --git a/specification/regionmove/resource-manager/readme.python.md b/specification/regionmove/resource-manager/readme.python.md new file mode 100644 index 000000000000..d11ee0947874 --- /dev/null +++ b/specification/regionmove/resource-manager/readme.python.md @@ -0,0 +1,21 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +```yaml $(python) +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: Microsoft.Migrate + package-name: regionmove + package-version: 2019-10-01-preview + clear-output-folder: true +``` + +```yaml $(python) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt/regionmove +``` diff --git a/specification/regionmove/resource-manager/readme.ruby.md b/specification/regionmove/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..e168fcf6da2a --- /dev/null +++ b/specification/regionmove/resource-manager/readme.ruby.md @@ -0,0 +1,19 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +```yaml +package-name: azure_mgmt_regionmove +package-version: 2019-10-01-preview +azure-arm: true +``` + +### Tag: package-2019-10-01-preview and ruby + +These settings apply only when `--tag=package-2019-10-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2019-10-01-preview' && $(ruby) +namespace: Microsoft.Migrate +output-folder: $(ruby-sdks-folder)/regionmove +``` diff --git a/specification/regionmove/resource-manager/readme.typescript.md b/specification/regionmove/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..20ec0299cfdb --- /dev/null +++ b/specification/regionmove/resource-manager/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +```yaml $(typescript) +typescript: + azure-arm: true + package-name: "regionmove" + output-folder: "$(typescript-sdks-folder)/packages/regionmove" + payload-flattening-threshold: 1 + generate-metadata: true +``` From 5633341d74fbe5b929c8055bff7cb76b58ad28b0 Mon Sep 17 00:00:00 2001 From: Harkirat Singh Date: Fri, 26 Jun 2020 10:18:43 +0530 Subject: [PATCH 2/3] Fix the swagger lint errors. --- .../examples/MoveCollections_Commit.json | 23 ++++--- .../examples/MoveCollections_Create.json | 28 ++++---- .../examples/MoveCollections_Delete.json | 22 +++---- .../examples/MoveCollections_Discard.json | 23 ++++--- .../examples/MoveCollections_Get.json | 28 ++++---- .../MoveCollections_InitiateMove.json | 23 ++++--- .../examples/MoveCollections_Prepare.json | 23 ++++--- .../MoveCollections_ResolveDependencies.json | 23 ++++--- .../examples/MoveResources_Create.json | 4 +- .../examples/MoveResources_Delete.json | 22 +++---- .../examples/MoveResources_List.json | 6 +- .../regionmovecollection.json | 66 ++++++++++--------- 12 files changed, 140 insertions(+), 151 deletions(-) diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Commit.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Commit.json index 03a9f868be09..03877882ade2 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Commit.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Commit.json @@ -5,23 +5,22 @@ "resourceGroupName": "rg1", "api-version": "2019-10-01-preview", "validateOnly": false, - "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + "moveResources": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1" + ] }, "responses": { "200": { "body": { - "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", - "name":"1e4193c3-206e-4916-b124-1da16175eb0e", - "status":"Succeeded", - "startTime":"6/17/2020 6:45:55 AM", - "endTime":"6/17/2020 6:45:56 AM", - "error":null, - "properties":{ - - } + "id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name": "1e4193c3-206e-4916-b124-1da16175eb0e", + "status": "Succeeded", + "startTime": "6/17/2020 6:45:55 AM", + "endTime": "6/17/2020 6:45:56 AM", + "error": null, + "properties": {} } }, - "202": { - } + "202": {} } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json index 5dcd3f615c16..212678cfd946 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json @@ -15,20 +15,20 @@ "responses": { "200": { "body": { - "name": "movecollection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", - "type": "Microsoft.Migrate/MoveCollections", - "location": "United States", - "identity": { - "type": "SystemAssigned", - "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", - "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" - }, - "properties": { - "sourceRegion": "eastus", - "targetRegion": "westus", - "provisioningState": "Succeeded" - } + "name": "movecollection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", + "type": "Microsoft.Migrate/MoveCollections", + "location": "United States", + "identity": { + "type": "SystemAssigned", + "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", + "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus", + "provisioningState": "Succeeded" + } } }, "201": { diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Delete.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Delete.json index 64e78f9d3a98..d0286083600d 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Delete.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Delete.json @@ -8,20 +8,16 @@ "responses": { "200": { "body": { - "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", - "name":"1e4193c3-206e-4916-b124-1da16175eb0e", - "status":"Succeeded", - "startTime":"6/17/2020 6:45:55 AM", - "endTime":"6/17/2020 6:45:56 AM", - "error":null, - "properties":{ - - } + "id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name": "1e4193c3-206e-4916-b124-1da16175eb0e", + "status": "Succeeded", + "startTime": "6/17/2020 6:45:55 AM", + "endTime": "6/17/2020 6:45:56 AM", + "error": null, + "properties": {} } }, - "202": { - }, - "204": { - } + "202": {}, + "204": {} } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Discard.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Discard.json index 03a9f868be09..03877882ade2 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Discard.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Discard.json @@ -5,23 +5,22 @@ "resourceGroupName": "rg1", "api-version": "2019-10-01-preview", "validateOnly": false, - "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + "moveResources": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1" + ] }, "responses": { "200": { "body": { - "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", - "name":"1e4193c3-206e-4916-b124-1da16175eb0e", - "status":"Succeeded", - "startTime":"6/17/2020 6:45:55 AM", - "endTime":"6/17/2020 6:45:56 AM", - "error":null, - "properties":{ - - } + "id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name": "1e4193c3-206e-4916-b124-1da16175eb0e", + "status": "Succeeded", + "startTime": "6/17/2020 6:45:55 AM", + "endTime": "6/17/2020 6:45:56 AM", + "error": null, + "properties": {} } }, - "202": { - } + "202": {} } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Get.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Get.json index 34cc20bdaa30..0c87ced9794f 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Get.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Get.json @@ -8,20 +8,20 @@ "responses": { "200": { "body": { - "name": "movecollection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", - "type": "Microsoft.Migrate/MoveCollections", - "location": "United States", - "identity": { - "type": "SystemAssigned", - "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", - "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" - }, - "properties": { - "sourceRegion": "eastus", - "targetRegion": "westus", - "provisioningState": "Succeeded" - } + "name": "movecollection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", + "type": "Microsoft.Migrate/MoveCollections", + "location": "United States", + "identity": { + "type": "SystemAssigned", + "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", + "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus", + "provisioningState": "Succeeded" + } } } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_InitiateMove.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_InitiateMove.json index 03a9f868be09..03877882ade2 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_InitiateMove.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_InitiateMove.json @@ -5,23 +5,22 @@ "resourceGroupName": "rg1", "api-version": "2019-10-01-preview", "validateOnly": false, - "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + "moveResources": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1" + ] }, "responses": { "200": { "body": { - "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", - "name":"1e4193c3-206e-4916-b124-1da16175eb0e", - "status":"Succeeded", - "startTime":"6/17/2020 6:45:55 AM", - "endTime":"6/17/2020 6:45:56 AM", - "error":null, - "properties":{ - - } + "id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name": "1e4193c3-206e-4916-b124-1da16175eb0e", + "status": "Succeeded", + "startTime": "6/17/2020 6:45:55 AM", + "endTime": "6/17/2020 6:45:56 AM", + "error": null, + "properties": {} } }, - "202": { - } + "202": {} } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Prepare.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Prepare.json index 03a9f868be09..03877882ade2 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Prepare.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Prepare.json @@ -5,23 +5,22 @@ "resourceGroupName": "rg1", "api-version": "2019-10-01-preview", "validateOnly": false, - "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + "moveResources": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1" + ] }, "responses": { "200": { "body": { - "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", - "name":"1e4193c3-206e-4916-b124-1da16175eb0e", - "status":"Succeeded", - "startTime":"6/17/2020 6:45:55 AM", - "endTime":"6/17/2020 6:45:56 AM", - "error":null, - "properties":{ - - } + "id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name": "1e4193c3-206e-4916-b124-1da16175eb0e", + "status": "Succeeded", + "startTime": "6/17/2020 6:45:55 AM", + "endTime": "6/17/2020 6:45:56 AM", + "error": null, + "properties": {} } }, - "202": { - } + "202": {} } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ResolveDependencies.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ResolveDependencies.json index b5146b96eac6..85002cd1e9f3 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ResolveDependencies.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_ResolveDependencies.json @@ -4,23 +4,22 @@ "subscriptionId": "subid", "resourceGroupName": "rg1", "api-version": "2019-10-01-preview", - "moveResources": ["/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"] + "moveResources": [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1" + ] }, "responses": { "200": { "body": { - "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", - "name":"1e4193c3-206e-4916-b124-1da16175eb0e", - "status":"Succeeded", - "startTime":"6/17/2020 6:45:55 AM", - "endTime":"6/17/2020 6:45:56 AM", - "error":null, - "properties":{ - - } + "id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name": "1e4193c3-206e-4916-b124-1da16175eb0e", + "status": "Succeeded", + "startTime": "6/17/2020 6:45:55 AM", + "endTime": "6/17/2020 6:45:56 AM", + "error": null, + "properties": {} } }, - "202": { - } + "202": {} } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Create.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Create.json index dc13d379d2de..8a7fa06ea0ae 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Create.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Create.json @@ -14,7 +14,7 @@ } ], "resourceSettings": { - "resourceType" : "Microsoft.Compute/VirtualMachines", + "resourceType": "Microsoft.Compute/VirtualMachines", "targetResourceName": "westusvm1", "targetAvailabilityZone": "2", "targetVmSize": null @@ -38,7 +38,7 @@ } ], "resourceSettings": { - "resourceType" : "Microsoft.Compute/virtualMachines", + "resourceType": "Microsoft.Compute/virtualMachines", "targetResourceName": "westusvm1", "targetAvailabilityZone": "2", "targetVmSize": null diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Delete.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Delete.json index a08a05f4b131..2c5f62dc2375 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Delete.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_Delete.json @@ -9,20 +9,16 @@ "responses": { "200": { "body": { - "id":"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", - "name":"1e4193c3-206e-4916-b124-1da16175eb0e", - "status":"Succeeded", - "startTime":"6/17/2020 6:45:55 AM", - "endTime":"6/17/2020 6:45:56 AM", - "error":null, - "properties":{ - - } + "id": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e", + "name": "1e4193c3-206e-4916-b124-1da16175eb0e", + "status": "Succeeded", + "startTime": "6/17/2020 6:45:55 AM", + "endTime": "6/17/2020 6:45:56 AM", + "error": null, + "properties": {} } }, - "202": { - }, - "204": { - } + "202": {}, + "204": {} } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_List.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_List.json index 28f95d7095a6..9330757c1ca0 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_List.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveResources_List.json @@ -21,7 +21,7 @@ "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140", "resolutionType": "Automatic", "resolutionStatus": "Resolved", - "automaticResolution" : { + "automaticResolution": { "moveResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource2" } }, @@ -29,7 +29,7 @@ "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/EASTUS/providers/Microsoft.Compute/disks/eastusvm1_OsDisk_1_a88a2f0e8cf44fb3af24aa0f27101f83", "resolutionType": "Automatic", "resolutionStatus": "Resolved", - "automaticResolution" : { + "automaticResolution": { "moveResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource3" } } @@ -47,7 +47,7 @@ "id": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/virtualNetworks/eastus-vnet", "resolutionType": "Manual", "resolutionStatus": "Resolved", - "manualResolution" : { + "manualResolution": { "targetId": "/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westus/providers/Microsoft.Network/virtualNetworks/westus-vnet" } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json index 7141baf892ab..6b859ffb1dbf 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json @@ -72,7 +72,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -130,7 +130,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -178,7 +178,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -242,7 +242,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -253,7 +253,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/InitiateMove": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/initiateMove": { "post": { "tags": [ "MoveCollections" @@ -306,7 +306,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -317,7 +317,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MoveCollections/{moveCollectionName}/Commit": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit": { "post": { "tags": [ "MoveCollections" @@ -370,7 +370,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -381,7 +381,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MoveCollections/{moveCollectionName}/Discard": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/discard": { "post": { "tags": [ "MoveCollections" @@ -434,7 +434,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -491,7 +491,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -548,7 +548,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -563,7 +563,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/MoveCollections/{moveCollectionName}/UnresolvedDependencies": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/unresolvedDependencies": { "get": { "tags": [ "MoveCollections" @@ -602,7 +602,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -675,7 +675,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -739,7 +739,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -793,7 +793,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -828,7 +828,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -865,7 +865,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -911,7 +911,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/OperationStatus" } } }, @@ -1019,7 +1019,7 @@ "$ref": "#/definitions/JobStatus" }, "errors": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/MoveResourceError" }, "targetId": { "description": "Gets the Target ARM Id of the resource.", @@ -1149,6 +1149,9 @@ "items": { "$ref": "#/definitions/MoveResourceDependencyOverride" } + }, + "errors": { + "$ref": "#/definitions/MoveResourceError" } } }, @@ -1331,15 +1334,15 @@ "properties": { "properties": { "$ref": "#/definitions/MoveResourceFilterProperties" - } } + } }, "MoveResourceFilterProperties": { "properties": { - "ProvisioningState": { + "provisioningState": { "type": "string", "description": "The provisioning state." - } + } } }, "MoveResourceCollection": { @@ -1425,7 +1428,7 @@ "type": "string" }, "description": { - "description": "Gets or sets the description.\r\nThe localized friendly description for the operation, as it should be shown to the\r\nuser.\r\nIt should be thorough, yet concise – it will be used in tool tips and detailed views.\r\nPrescriptive guidance for namespace:\r\nRead any 'display.provider' resource\r\nCreate or Update any 'display.provider' resource\r\nDelete any 'display.provider' resource\r\nPerform any other action on any 'display.provider' resource\r\nPrescriptive guidance for namespace:\r\nRead any 'display.resource' Create or Update any 'display.resource' Delete any\r\n'display.resource' 'ActionName' any 'display.resources'.", + "description": "Gets or sets the description.\r\nThe localized friendly description for the operation, as it should be shown to the\r\nuser.\r\nIt should be thorough, yet concise – it will be used in tool tips and detailed views.\r\nPrescriptive guidance for namespace:\r\nRead any 'display.provider' resource\r\nCreate or Update any 'display.provider' resource\r\nDelete any 'display.provider' resource\r\nPerform any other action on any 'display.provider' resource\r\nPrescriptive guidance for namespace:\r\nRead any 'display.resource' Create or Update any 'display.resource' Delete any\r\n 'display.resource' 'ActionName' any 'display.resources'.", "type": "string" } } @@ -1471,17 +1474,17 @@ } } }, - "CloudError": { + "MoveResourceError": { "properties": { "properties": { "type": "object", - "description": "The cloud error body.", - "$ref": "#/definitions/CloudErrorBody" + "description": "The move resource error body.", + "$ref": "#/definitions/MoveResourceErrorBody" } }, "description": "An error response from the azure region move service." }, - "CloudErrorBody": { + "MoveResourceErrorBody": { "properties": { "code": { "type": "string", @@ -1498,7 +1501,7 @@ "details": { "type": "array", "items": { - "$ref": "#/definitions/CloudErrorBody" + "$ref": "#/definitions/MoveResourceErrorBody" }, "description": "A list of additional details about the error." } @@ -1764,8 +1767,7 @@ "OperationStatusProperties": { "description": "Class for operation result properties.", "type": "object", - "properties": { - } + "properties": {} } }, "parameters": { From d20f2942500410efcf0ee64b460f0b0541225bdb Mon Sep 17 00:00:00 2001 From: Harkirat Singh Date: Thu, 9 Jul 2020 12:40:02 +0530 Subject: [PATCH 3/3] Taking comments. --- .../examples/MoveCollection_Update.json | 32 +++ .../examples/MoveCollections_Create.json | 18 -- .../regionmovecollection.json | 192 ++++++++++++++---- 3 files changed, 185 insertions(+), 57 deletions(-) create mode 100644 specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollection_Update.json diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollection_Update.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollection_Update.json new file mode 100644 index 000000000000..473c63d53b67 --- /dev/null +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollection_Update.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "moveCollectionName": "movecollection1", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "moveResourceName": "moveresourcename1", + "api-version": "2019-10-01-preview", + "properties": { + "tags": "mc1" + } + }, + "responses": { + "200": { + "body": { + "name": "movecollection1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", + "type": "Microsoft.Migrate/MoveCollections", + "location": "United States", + "identity": { + "type": "SystemAssigned", + "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", + "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" + }, + "properties": { + "sourceRegion": "eastus", + "targetRegion": "westus", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json index 212678cfd946..83e41bdae3a1 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/examples/MoveCollections_Create.json @@ -30,24 +30,6 @@ "provisioningState": "Succeeded" } } - }, - "201": { - "body": { - "name": "movecollection1", - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1", - "type": "Microsoft.Migrate/MoveCollections", - "location": "United States", - "identity": { - "type": "SystemAssigned", - "principalId": "7488fa50-1c8e-42c4-a117-38c8d05d8b72", - "tenantId": "cc7e5736-dbba-4059-a621-664eab9c1d80" - }, - "properties": { - "sourceRegion": "eastus", - "targetRegion": "westus", - "provisioningState": "Creating" - } - } } } } diff --git a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json index 6b859ffb1dbf..a0b0c4313636 100644 --- a/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json +++ b/specification/regionmove/resource-manager/Microsoft.Migrate/preview/2019-10-01-preview/regionmovecollection.json @@ -19,10 +19,6 @@ "MoveCollections" ], "operationId": "MoveCollections_Create", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "consumes": [ "application/json" ], @@ -63,7 +59,59 @@ "$ref": "#/definitions/MoveCollection" } }, - "201": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "MoveCollections_Create": { + "$ref": "./examples/MoveCollections_Create.json" + } + } + }, + "patch": { + "tags": [ + "MoveCollections" + ], + "operationId": "MoveCollection_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "moveCollectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/UpdateMoveCollectionRequest" + } + } + ], + "responses": { + "200": { "description": "Success", "schema": { "$ref": "#/definitions/MoveCollection" @@ -72,13 +120,13 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, "x-ms-examples": { - "MoveCollections_Create": { - "$ref": "./examples/MoveCollections_Create.json" + "MoveCollection_Update": { + "$ref": "./examples/MoveCollection_Update.json" } } }, @@ -130,7 +178,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -178,7 +226,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -195,6 +243,7 @@ "MoveCollections" ], "operationId": "MoveCollections_Prepare", + "description": "Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -242,7 +291,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -259,6 +308,7 @@ "MoveCollections" ], "operationId": "MoveCollections_InitiateMove", + "description": "Moves the set of resources included in the request body. The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -306,7 +356,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -323,6 +373,7 @@ "MoveCollections" ], "operationId": "MoveCollections_Commit", + "description": "Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -370,7 +421,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -387,6 +438,7 @@ "MoveCollections" ], "operationId": "MoveCollections_Discard", + "description": "Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -434,7 +486,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -451,6 +503,7 @@ "MoveCollections" ], "operationId": "MoveCollections_ResolveDependencies", + "description": "Computes, resolves and validate the dependencies of the moveResources in the move collection.", "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -491,7 +544,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -548,7 +601,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -602,7 +655,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -675,7 +728,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -739,7 +792,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -793,7 +846,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -828,7 +881,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, @@ -865,12 +918,12 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, "x-ms-pageable": { - "nextLinkName": null + "nextLinkName": "nextLink" }, "x-ms-examples": { "MoveCollections_ListMoveCollectionsBySubscription": { @@ -911,12 +964,12 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/OperationStatus" + "$ref": "#/definitions/CloudError" } } }, "x-ms-pageable": { - "nextLinkName": null + "nextLinkName": "nextLink" }, "x-ms-examples": { "MoveCollections_ListMoveCollectionsByResourceGroup": { @@ -934,7 +987,11 @@ "SystemAssigned", "UserAssigned" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": true + } }, "Identity": { "description": "Defines the MSI properties of the Move Collection.", @@ -960,12 +1017,6 @@ "PreparePending", "PrepareInProgress", "PrepareFailed", - "PrepareStarted", - "PrepareFinalizeInProgress", - "PrepareFinalizeFailed", - "PrepareInitiateSyncTrackingInProgress", - "PrepareSyncInProgress", - "PrepareInitiateSyncTrackingFailed", "MovePending", "MoveInProgress", "MoveFailed", @@ -976,7 +1027,11 @@ "CommitFailed", "Committed" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "MoveState", + "modelAsString": true + } }, "ProvisioningState": { "description": "Defines the provisioning states.", @@ -986,14 +1041,22 @@ "Creating", "Failed" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } }, "JobName": { "description": "Defines the job names.", "enum": [ "InitialSync" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "JobName", + "modelAsString": true + } }, "JobStatus": { "description": "Defines the job status.", @@ -1033,7 +1096,11 @@ "Manual", "Automatic" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "ResolutionType", + "modelAsString": true + } }, "DependencyType": { "description": "Defines the dependency type.", @@ -1041,7 +1108,11 @@ "RequiredForPrepare", "RequiredForMove" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "DependencyType", + "modelAsString": true + } }, "MoveResourceDependency": { "description": "Defines the dependency of the move resource.", @@ -1543,7 +1614,11 @@ "2", "3", "NA" - ] + ], + "x-ms-enum": { + "name": "targetAvailabilityZone", + "modelAsString": true + } }, "targetVmSize": { "description": "Gets or sets the target vm size.", @@ -1629,7 +1704,11 @@ "Enable", "Disable" ], - "type": "string" + "type": "string", + "x-ms-enum": { + "name": "ZoneRedundant", + "modelAsString": true + } }, "SqlElasticPoolResourceSettings": { "description": "Defines the Sql ElasticPool resource settings.", @@ -1694,6 +1773,41 @@ "properties": {}, "x-ms-discriminator-value": "Microsoft.Network/loadBalancers" }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "Cloud error body." + } + }, + "description": "An error response from the service." + }, + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for display in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from the service." + }, "OperationStatus": { "description": "Operation status REST resource.", "type": "object",