From 3ae16652e8bea04884a273329d6dead5e9205794 Mon Sep 17 00:00:00 2001 From: Harshitha Akkaraju <24836340+harshitha-akkaraju@users.noreply.github.com> Date: Wed, 5 May 2021 18:49:05 -0700 Subject: [PATCH] StoragePool RP New Preview API (#13970) * No changes -- new version directory with old specs * New API version Changes * Validation errors * revisions * Fixes * Revisions * Revisions * Revisions * Updates * Annotating required property * Availability zone is not required during Disk Pool Creation * Fixing swagger route typo * Fixes Avocado errors due to swagger file not being referenced * Updated python readme * [python] Update readme.md (#14184) * Update readme.md * Update readme.python.md * Fix merge conflicts * Swagger linting errors Co-authored-by: Harshitha Akkaraju Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- .../examples/DiskPoolZones_List.json | 39 + .../examples/DiskPools_Deallocate.json | 12 + .../examples/DiskPools_Delete.json | 13 + .../examples/DiskPools_Get.json | 46 + ...kPools_GetOutboundNetworkDependencies.json | 802 +++++++ .../DiskPools_ListByResourceGroup.json | 84 + .../DiskPools_ListBySubscription.json | 83 + .../examples/DiskPools_Patch.json | 65 + .../examples/DiskPools_Put.json | 112 + .../examples/DiskPools_Start.json | 12 + .../examples/IscsiTargets_Delete.json | 14 + .../examples/IscsiTargets_Get.json | 50 + .../examples/IscsiTargets_ListByDiskPool.json | 84 + .../examples/IscsiTargets_Patch.json | 69 + .../examples/IscsiTargets_Put.json | 85 + .../examples/Operations_List.json | 93 + .../2021-04-01-preview/storagepool.json | 1841 +++++++++++++++++ .../storagepool/resource-manager/readme.go.md | 10 +- .../storagepool/resource-manager/readme.md | 18 +- .../resource-manager/readme.python.md | 28 +- .../resource-manager/readme.ruby.md | 8 +- 21 files changed, 3542 insertions(+), 26 deletions(-) create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPoolZones_List.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Deallocate.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Delete.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Get.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_GetOutboundNetworkDependencies.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_ListByResourceGroup.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_ListBySubscription.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Patch.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Put.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Start.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Delete.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Get.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_ListByDiskPool.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Patch.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Put.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/Operations_List.json create mode 100644 specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/storagepool.json diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPoolZones_List.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPoolZones_List.json new file mode 100644 index 000000000000..444da48899e0 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPoolZones_List.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "availabilityZones": [ + "1", + "2", + "3" + ], + "sku": { + "tier": "Basic", + "name": "Basic" + }, + "additionalCapabilities": [] + }, + { + "availabilityZones": [ + "1", + "2" + ], + "sku": { + "tier": "Basic", + "name": "Basic" + }, + "additionalCapabilities": [] + } + ] + }, + "nextLink": "null" + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Deallocate.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Deallocate.json new file mode 100644 index 000000000000..2b8f925b849d --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Deallocate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Delete.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Delete.json new file mode 100644 index 000000000000..c20f71ed44eb --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool" + }, + "responses": { + "200": {}, + "204": {}, + "202": {} + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Get.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Get.json new file mode 100644 index 000000000000..7f2abbbc5462 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Get.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool", + "location": "westus2", + "name": "myDiskPool", + "type": "Microsoft.StoragePool/diskPools", + "sku": { + "name": "Basic_0", + "tier": "Basic" + }, + "properties": { + "availabilityZones": [ + "1" + ], + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "provisioningState": "Succeeded", + "status": "Healthy", + "disks": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDataDisk_0" + } + ] + }, + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "tags": { + "env": "int" + } + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_GetOutboundNetworkDependencies.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_GetOutboundNetworkDependencies.json new file mode 100644 index 000000000000..bb455c80c658 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_GetOutboundNetworkDependencies.json @@ -0,0 +1,802 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "Sample-WestUSResourceGroup", + "diskPoolName": "SampleAse", + "api-version": "2021-04-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "category": "Azure Storage", + "endpoints": [ + { + "domainName": "blob.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "52.183.104.36", + "port": 80, + "latency": 42.0469, + "isAccessible": true + }, + { + "ipAddress": "52.183.104.36", + "port": 443, + "latency": 41.7038, + "isAccessible": true + } + ] + }, + { + "domainName": "queue.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "52.183.104.25", + "port": 80, + "latency": 37.326, + "isAccessible": true + }, + { + "ipAddress": "52.183.104.25", + "port": 443, + "latency": 37.513600000000004, + "isAccessible": true + } + ] + }, + { + "domainName": "table.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "52.183.104.26", + "port": 80, + "latency": 32.789, + "isAccessible": true + }, + { + "ipAddress": "52.183.104.26", + "port": 443, + "latency": 1.8702, + "isAccessible": true + } + ] + }, + { + "domainName": "file.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "52.183.104.28", + "port": 80, + "latency": 36.7378, + "isAccessible": true + }, + { + "ipAddress": "52.183.104.28", + "port": 443, + "latency": 36.7108, + "isAccessible": true + } + ] + }, + { + "domainName": "blob.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.64", + "port": 80, + "latency": 4.0261000000000005, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.64", + "port": 443, + "latency": 3.8264, + "isAccessible": true + } + ] + }, + { + "domainName": "queue.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.73", + "port": 80, + "latency": 40.8523, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.73", + "port": 443, + "latency": 40.7501, + "isAccessible": true + } + ] + }, + { + "domainName": "table.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.74", + "port": 80, + "latency": 1.2071, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.74", + "port": 443, + "latency": 38.2975, + "isAccessible": true + } + ] + }, + { + "domainName": "file.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.76", + "port": 80, + "latency": 59.383700000000005, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.76", + "port": 443, + "latency": 60.0775, + "isAccessible": true + } + ] + }, + { + "domainName": "blob.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.64", + "port": 80, + "latency": 3.5512, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.64", + "port": 443, + "latency": 2.6777, + "isAccessible": true + } + ] + }, + { + "domainName": "queue.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.73", + "port": 80, + "latency": 3.5204, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.73", + "port": 443, + "latency": 2.8193, + "isAccessible": true + } + ] + }, + { + "domainName": "table.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.74", + "port": 80, + "latency": 3.2720000000000002, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.74", + "port": 443, + "latency": 3.0147, + "isAccessible": true + } + ] + }, + { + "domainName": "file.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.76", + "port": 80, + "latency": 3.2387, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.76", + "port": 443, + "latency": 3.2804, + "isAccessible": true + } + ] + }, + { + "domainName": "blob.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.66.176.16", + "port": 80, + "latency": 43.025200000000005, + "isAccessible": true + }, + { + "ipAddress": "13.66.176.16", + "port": 443, + "latency": 43.1683, + "isAccessible": true + } + ] + }, + { + "domainName": "queue.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.66.176.25", + "port": 80, + "latency": 41.8598, + "isAccessible": true + }, + { + "ipAddress": "13.66.176.25", + "port": 443, + "latency": 41.9805, + "isAccessible": true + } + ] + }, + { + "domainName": "table.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.66.176.26", + "port": 80, + "latency": 30.542900000000003, + "isAccessible": true + }, + { + "ipAddress": "13.66.176.26", + "port": 443, + "latency": 0.98320000000000007, + "isAccessible": true + } + ] + }, + { + "domainName": "file.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.66.176.28", + "port": 80, + "latency": 35.9562, + "isAccessible": true + }, + { + "ipAddress": "13.66.176.28", + "port": 443, + "latency": 36.0643, + "isAccessible": true + } + ] + }, + { + "domainName": "blob.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.64", + "port": 80, + "latency": 3.2829, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.64", + "port": 443, + "latency": 2.3393, + "isAccessible": true + } + ] + }, + { + "domainName": "queue.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.73", + "port": 80, + "latency": 3.4103000000000003, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.73", + "port": 443, + "latency": 4.1032, + "isAccessible": true + } + ] + }, + { + "domainName": "table.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.74", + "port": 80, + "latency": 3.1141, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.74", + "port": 443, + "latency": 3.0247, + "isAccessible": true + } + ] + }, + { + "domainName": "file.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.76", + "port": 80, + "latency": 2.834, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.76", + "port": 443, + "latency": 2.8198000000000003, + "isAccessible": true + } + ] + }, + { + "domainName": "blob.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.64", + "port": 80, + "latency": 1.3855000000000002, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.64", + "port": 443, + "latency": 1.0594000000000001, + "isAccessible": true + } + ] + }, + { + "domainName": "queue.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.73", + "port": 80, + "latency": 2.4717000000000002, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.73", + "port": 443, + "latency": 2.4827, + "isAccessible": true + } + ] + }, + { + "domainName": "table.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.74", + "port": 80, + "latency": 3.395, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.74", + "port": 443, + "latency": 3.1701, + "isAccessible": true + } + ] + }, + { + "domainName": "file.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.76", + "port": 80, + "latency": 1.4308, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.76", + "port": 443, + "latency": 22.5866, + "isAccessible": true + } + ] + }, + { + "domainName": "blob.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.64", + "port": 80, + "latency": 2.5372, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.64", + "port": 443, + "latency": 2.4626, + "isAccessible": true + } + ] + }, + { + "domainName": "queue.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.73", + "port": 80, + "latency": 3.7873, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.73", + "port": 443, + "latency": 4.1911000000000005, + "isAccessible": true + } + ] + }, + { + "domainName": "table.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.74", + "port": 80, + "latency": 2.9162000000000003, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.74", + "port": 443, + "latency": 2.7896, + "isAccessible": true + } + ] + }, + { + "domainName": "file.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.77.184.76", + "port": 80, + "latency": 26.723100000000002, + "isAccessible": true + }, + { + "ipAddress": "13.77.184.76", + "port": 443, + "latency": 26.735200000000003, + "isAccessible": true + } + ] + } + ] + }, + { + "category": "Azure SQL Database", + "endpoints": [ + { + "domainName": "database.windows.net", + "endpointDetails": [ + { + "ipAddress": "13.66.226.202", + "port": 1433, + "latency": 1.5964, + "isAccessible": true + } + ] + } + ] + }, + { + "category": "Azure Management", + "endpoints": [ + { + "domainName": "management.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "23.102.135.246", + "port": 443, + "latency": 46.5764, + "isAccessible": true + } + ] + }, + { + "domainName": "admin.core.windows.net", + "endpointDetails": [ + { + "ipAddress": "23.102.135.247", + "port": 443, + "latency": 47.408, + "isAccessible": true + } + ] + }, + { + "domainName": "management.azure.com", + "endpointDetails": [ + { + "ipAddress": "52.151.25.45", + "port": 443, + "latency": 3.9529, + "isAccessible": true + } + ] + } + ] + }, + { + "category": "Azure Active Directory", + "endpoints": [ + { + "domainName": "graph.windows.net", + "endpointDetails": [ + { + "ipAddress": "20.190.133.83", + "port": 443, + "latency": 3.2264, + "isAccessible": true + }, + { + "ipAddress": "20.190.133.81", + "port": 443, + "latency": 3.2264, + "isAccessible": true + }, + { + "ipAddress": "20.190.133.67", + "port": 443, + "latency": 3.2264, + "isAccessible": true + }, + { + "ipAddress": "40.126.5.34", + "port": 443, + "latency": 3.2264, + "isAccessible": true + } + ] + } + ] + }, + { + "category": "Regional Service", + "endpoints": [ + { + "domainName": "gr-prod-mwh.cloudapp.net", + "endpointDetails": [ + { + "ipAddress": "13.66.225.188", + "port": 443, + "latency": 3.3826, + "isAccessible": true + } + ] + }, + { + "domainName": "az-prod.metrics.nsatc.net", + "endpointDetails": [ + { + "ipAddress": "40.77.24.27", + "port": 443, + "latency": 38.5647, + "isAccessible": true + } + ] + } + ] + }, + { + "category": "SSL Certificate Verification", + "endpoints": [ + { + "domainName": "ocsp.msocsp.com", + "endpointDetails": [ + { + "ipAddress": "104.18.25.243", + "port": 80, + "latency": 6.0651, + "isAccessible": true + }, + { + "ipAddress": "104.18.25.243", + "port": 443, + "latency": 12.888, + "isAccessible": true + }, + { + "ipAddress": "104.18.24.243", + "port": 80, + "latency": 6.0651, + "isAccessible": true + }, + { + "ipAddress": "104.18.24.243", + "port": 443, + "latency": 12.888, + "isAccessible": true + } + ] + }, + { + "domainName": "mscrl.microsoft.com", + "endpointDetails": [ + { + "ipAddress": "152.199.4.33", + "port": 80, + "latency": 6.7429000000000006, + "isAccessible": true + }, + { + "ipAddress": "152.199.4.33", + "port": 443, + "latency": 7.4361000000000006, + "isAccessible": true + } + ] + }, + { + "domainName": "crl.microsoft.com", + "endpointDetails": [ + { + "ipAddress": "23.215.102.10", + "port": 80, + "latency": 25.136200000000002, + "isAccessible": true + }, + { + "ipAddress": "23.215.102.10", + "port": 443, + "latency": 25.0085, + "isAccessible": true + }, + { + "ipAddress": "23.215.102.42", + "port": 80, + "latency": 25.136200000000002, + "isAccessible": true + }, + { + "ipAddress": "23.215.102.42", + "port": 443, + "latency": 25.0085, + "isAccessible": true + } + ] + }, + { + "domainName": "www.microsoft.com", + "endpointDetails": [ + { + "ipAddress": "23.49.13.56", + "port": 80, + "latency": 7.9229, + "isAccessible": true + }, + { + "ipAddress": "23.49.13.56", + "port": 443, + "latency": 8.4871, + "isAccessible": true + } + ] + }, + { + "domainName": "crl3.digicert.com", + "endpointDetails": [ + { + "ipAddress": "72.21.91.29", + "port": 80, + "latency": 5.4074, + "isAccessible": true + }, + { + "ipAddress": "72.21.91.29", + "port": 443, + "latency": 5.577, + "isAccessible": true + } + ] + }, + { + "domainName": "ocsp.digicert.com", + "endpointDetails": [ + { + "ipAddress": "72.21.91.29", + "port": 80, + "latency": 6.8989, + "isAccessible": true + }, + { + "ipAddress": "72.21.91.29", + "port": 443, + "latency": 5.6674000000000007, + "isAccessible": true + } + ] + }, + { + "domainName": "cacerts.digicert.com", + "endpointDetails": [ + { + "ipAddress": "104.18.11.39", + "port": 80, + "latency": 10.772400000000001, + "isAccessible": true + }, + { + "ipAddress": "104.18.11.39", + "port": 443, + "latency": 10.7705, + "isAccessible": true + }, + { + "ipAddress": "104.18.10.39", + "port": 80, + "latency": 10.772400000000001, + "isAccessible": true + }, + { + "ipAddress": "104.18.10.39", + "port": 443, + "latency": 10.7705, + "isAccessible": true + } + ] + }, + { + "domainName": "www.thawte.com", + "endpointDetails": [ + { + "ipAddress": "54.69.98.161", + "port": 80, + "latency": 47.532900000000005, + "isAccessible": true + }, + { + "ipAddress": "54.69.98.161", + "port": 443, + "latency": 48.5362, + "isAccessible": true + }, + { + "ipAddress": "35.167.62.148", + "port": 80, + "latency": 47.532900000000005, + "isAccessible": true + }, + { + "ipAddress": "35.167.62.148", + "port": 443, + "latency": 48.5362, + "isAccessible": true + } + ] + } + ] + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_ListByResourceGroup.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_ListByResourceGroup.json new file mode 100644 index 000000000000..3dbc63ec7fa2 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_ListByResourceGroup.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool", + "location": "westus2", + "name": "myDiskPool", + "sku": { + "name": "Basic_0", + "tier": "Basic" + }, + "properties": { + "availabilityZones": [ + "1" + ], + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "provisioningState": "Pending", + "status": "Unknown", + "disks": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDataDisk_0" + } + ] + }, + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "tags": { + "env": "int" + }, + "type": "Microsoft.StoragePool/diskPools" + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool2", + "location": "westus2", + "name": "myDiskPool2", + "sku": { + "name": "Basic_0", + "tier": "Basic" + }, + "properties": { + "availabilityZones": [ + "1" + ], + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "provisioningState": "Pending", + "status": "Unknown", + "disks": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDataDisk_0" + } + ] + }, + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "tags": { + "env": "int" + }, + "type": "Microsoft.StoragePool/diskPools" + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_ListBySubscription.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_ListBySubscription.json new file mode 100644 index 000000000000..27bc4e61a27f --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_ListBySubscription.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool", + "location": "westus2", + "name": "myDiskPool", + "sku": { + "name": "Basic_0", + "tier": "Basic" + }, + "properties": { + "availabilityZones": [ + "1" + ], + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "provisioningState": "Succeeded", + "status": "Healthy", + "disks": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDataDisk_0" + } + ] + }, + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "tags": { + "env": "int" + }, + "type": "Microsoft.StoragePool/diskPools" + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool2", + "location": "westus2", + "name": "myDiskPool2", + "sku": { + "name": "Basic_0", + "tier": "Basic" + }, + "properties": { + "availabilityZones": [ + "1" + ], + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "provisioningState": "Succeeded", + "status": "Healthy", + "disks": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDataDisk_0" + } + ] + }, + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "tags": { + "env": "int" + }, + "type": "Microsoft.StoragePool/diskPools" + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Patch.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Patch.json new file mode 100644 index 000000000000..db853c25ff14 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Patch.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool", + "diskPoolUpdatePayload": { + "tags": { + "key": "value" + }, + "properties": { + "disks": [ + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0" + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1" + } + ] + } + } + }, + "responses": { + "202": {}, + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool", + "name": "myDiskPool", + "type": "Microsoft.StoragePool/diskPools", + "location": "westus2", + "tags": { + "env": "int" + }, + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "sku": { + "name": "Basic_0", + "tier": "Basic" + }, + "properties": { + "provisioningState": "Pending", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "status": "Unknown", + "disks": [ + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0" + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1" + } + ], + "availabilityZones": [ + "1" + ] + } + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Put.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Put.json new file mode 100644 index 000000000000..2f7dd5eb6a82 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Put.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool", + "diskPoolCreatePayload": { + "location": "westus", + "tags": { + "key": "value" + }, + "sku": { + "name": "Basic_V0", + "tier": "Basic" + }, + "properties": { + "availabilityZones": [ + "1" + ], + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "disks": [ + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0" + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1" + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool", + "name": "myDiskPool", + "type": "Microsoft.StoragePool/diskPools", + "location": "westus2", + "tags": { + "env": "int" + }, + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "sku": { + "name": "Basic_0", + "tier": "Basic" + }, + "properties": { + "provisioningState": "Pending", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "status": "Unknown", + "disks": [ + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0" + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1" + } + ], + "availabilityZones": [ + "1" + ] + } + } + }, + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool", + "name": "myDiskPool", + "type": "Microsoft.StoragePool/diskPools", + "location": "westus2", + "tags": { + "env": "int" + }, + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "sku": { + "name": "Basic_0", + "tier": "Basic" + }, + "properties": { + "provisioningState": "Pending", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/mysubnet", + "status": "Unknown", + "disks": [ + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_0" + }, + { + "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1" + } + ], + "availabilityZones": [ + "1" + ] + } + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Start.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Start.json new file mode 100644 index 000000000000..2b8f925b849d --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/DiskPools_Start.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Delete.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Delete.json new file mode 100644 index 000000000000..86d454a3624f --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool", + "iscsiTargetName": "myIscsiTarget" + }, + "responses": { + "200": {}, + "204": {}, + "202": {} + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Get.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Get.json new file mode 100644 index 000000000000..5499259ea530 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Get.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool", + "iscsiTargetName": "myIscsiTarget" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool/iscsiTargets/myIscsiTarget", + "name": "myIscsiTarget", + "type": "Microsoft.StoragePool/diskPools/iscsiTargets", + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "properties": { + "targetIqn": "iqn.2005-03.org.iscsi:server1", + "aclMode": "Static", + "luns": [ + { + "managedDiskAzureResourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1", + "name": "lun0" + } + ], + "staticAcls": [ + { + "initiatorIqn": "iqn.2005-03.org.iscsi:client", + "mappedLuns": [ + "lun0" + ] + } + ], + "endpoints": [ + "10.0.0.1:3260" + ], + "port": 3260, + "provisioningState": "Succeeded", + "status": "Healthy" + } + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_ListByDiskPool.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_ListByDiskPool.json new file mode 100644 index 000000000000..9eea214290e7 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_ListByDiskPool.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool/iscsiTargets/myIscsiTarget", + "name": "myIscsiTarget", + "type": "Microsoft.StoragePool/diskPools/iscsiTargets", + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "properties": { + "targetIqn": "iqn.2005-03.org.iscsi:server1", + "aclMode": "Static", + "port": 3260, + "luns": [ + { + "managedDiskAzureResourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1", + "name": "lun0" + } + ], + "staticAcls": [ + { + "initiatorIqn": "iqn.2005-03.org.iscsi:client", + "mappedLuns": [ + "lun0" + ] + } + ], + "endpoints": [ + "10.0.0.1:3260" + ], + "provisioningState": "Succeeded", + "status": "Healthy" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool/iscsiTargets/myIscsiTarget", + "name": "myIscsiTarget2", + "type": "Microsoft.StoragePool/diskPools/iscsiTargets", + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "properties": { + "targetIqn": "iqn.2005-03.org.iscsi:server2", + "aclMode": "Dynamic", + "port": 3261, + "luns": [ + { + "managedDiskAzureResourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_2", + "name": "lun0" + } + ], + "staticAcls": [], + "endpoints": [ + "10.0.0.1:3261" + ], + "provisioningState": "Succeeded", + "status": "Healthy" + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Patch.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Patch.json new file mode 100644 index 000000000000..891be1042758 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Patch.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool", + "iscsiTargetName": "myIscsiTarget", + "iscsiTargetUpdatePayload": { + "properties": { + "luns": [ + { + "managedDiskAzureResourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1", + "name": "lun0" + } + ], + "staticAcls": [ + { + "initiatorIqn": "iqn.2005-03.org.iscsi:client", + "mappedLuns": [ + "lun0" + ] + } + ] + } + } + }, + "responses": { + "202": {}, + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool/iscsiTargets/myIscsiTarget", + "name": "myIscsiTarget", + "type": "Microsoft.StoragePool/diskPools/iscsiTargets", + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "properties": { + "targetIqn": "iqn.2005-03.org.iscsi:server1", + "aclMode": "Static", + "luns": [ + { + "managedDiskAzureResourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1", + "name": "lun0" + } + ], + "staticAcls": [ + { + "initiatorIqn": "iqn.2005-03.org.iscsi:client", + "mappedLuns": [ + "lun0" + ] + } + ], + "endpoints": [ + "10.0.0.1:3260" + ], + "port": 3260, + "provisioningState": "Pending", + "status": "Unknown" + } + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Put.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Put.json new file mode 100644 index 000000000000..2bd12a6a84b2 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/IscsiTargets_Put.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "diskPoolName": "myDiskPool", + "iscsiTargetName": "myIscsiTarget", + "iscsiTargetCreatePayload": { + "properties": { + "targetIqn": "iqn.2005-03.org.iscsi:server1", + "luns": [ + { + "managedDiskAzureResourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1", + "name": "lun0" + } + ], + "aclMode": "Dynamic" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool/iscsiTargets/myIscsiTarget", + "name": "myIscsiTarget", + "type": "Microsoft.StoragePool/diskPools/iscsiTargets", + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "properties": { + "targetIqn": "iqn.2005-03.org.iscsi:server1", + "luns": [ + { + "managedDiskAzureResourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1", + "name": "lun0" + } + ], + "endpoints": [ + "10.0.0.1:3260" + ], + "port": 3260, + "aclMode": "Dynamic", + "provisioningState": "Pending", + "status": "Unknown" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.StoragePool/diskPools/myDiskPool/iscsiTargets/myIscsiTarget", + "name": "myIscsiTarget", + "type": "Microsoft.StoragePool/diskPools/iscsiTargets", + "systemData": { + "createdAt": "2020-06-24T06:53:57+00:00", + "createdBy": "alias", + "createdByType": "User", + "lastModifiedAt": "2020-06-24T06:53:57+00:00", + "lastModifiedBy": "alias", + "lastModifiedByType": "User" + }, + "properties": { + "targetIqn": "iqn.2005-03.org.iscsi:server1", + "luns": [ + { + "managedDiskAzureResourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1", + "name": "lun0" + } + ], + "endpoints": [ + "10.0.0.1:3260" + ], + "port": 3260, + "aclMode": "Dynamic", + "provisioningState": "Pending", + "status": "Unknown" + } + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/Operations_List.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..8fd38297b8d4 --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/examples/Operations_List.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2021-04-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.StoragePool/diskPools/read", + "isDataAction": true, + "display": { + "provider": "Microsoft.StoragePool", + "resource": "Disk Pool", + "operation": "Read Microsoft.StoragePool/diskPools", + "description": "Read Disk Pool" + } + }, + { + "name": "Microsoft.StoragePool/diskPools/write", + "isDataAction": true, + "display": { + "provider": "Microsoft.StoragePool", + "resource": "Disk Pool", + "operation": "Create or Update Microsoft.StoragePool/diskPools", + "description": "Create or Update Disk Pool" + } + }, + { + "name": "Microsoft.StoragePool/diskPools/delete", + "isDataAction": true, + "display": { + "provider": "Microsoft.StoragePool", + "resource": "Microsoft.StoragePool/diskPools", + "operation": "Delete Microsoft.StoragePool/diskPools", + "description": "Delete Disk Pool" + } + }, + { + "name": "Microsoft.StoragePool/diskPools/start/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.StoragePool", + "resource": "Microsoft.StoragePool/diskPools", + "operation": "Start Microsoft.StoragePool/diskPools", + "description": "Start Disk Pool" + } + }, + { + "name": "Microsoft.StoragePool/diskPools/deallocate/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.StoragePool", + "resource": "Microsoft.StoragePool/diskPools", + "operation": "Deallocate Microsoft.StoragePool/diskPools", + "description": "Deallocate Disk Pool" + } + }, + { + "name": "Microsoft.StoragePool/diskPools/iscsiTargets/read", + "isDataAction": true, + "display": { + "provider": "Microsoft.StoragePool", + "resource": "iSCSI targets", + "operation": "Read Microsoft.StoragePool/diskPools/iscsiTargets", + "description": "Read iSCSI targets" + } + }, + { + "name": "Microsoft.StoragePool/diskPools/iscsiTargets/write", + "isDataAction": true, + "display": { + "provider": "Microsoft.StoragePool", + "resource": "iSCSI targets", + "operation": "Create or Update Microsoft.StoragePool/diskPools/iscsiTargets", + "description": "Create or Update iSCSI targets" + } + }, + { + "name": "Microsoft.StoragePool/diskPools/iscsiTargets/delete", + "isDataAction": true, + "display": { + "provider": "Microsoft.StoragePool", + "resource": "iSCSI targets", + "operation": "Delete Microsoft.StoragePool/diskPools/iscsiTargets", + "description": "Delete iSCSI targets" + } + } + ] + } + } + } +} diff --git a/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/storagepool.json b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/storagepool.json new file mode 100644 index 000000000000..da6f66718aed --- /dev/null +++ b/specification/storagepool/resource-manager/Microsoft.StoragePool/preview/2021-04-01-preview/storagepool.json @@ -0,0 +1,1841 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-04-01-preview", + "title": "StoragePoolManagement" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "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" + } + } + }, + "tags": [ + { + "name": "StoragePoolOperations", + "description": "APIs for StoragePool operations." + }, + { + "name": "DiskPools", + "description": "APIs for Disk pool operations." + }, + { + "name": "IscsiTargets", + "description": "APIs for iSCSI target operations." + } + ], + "paths": { + "/providers/Microsoft.StoragePool/operations": { + "get": { + "tags": [ + "StoragePoolOperations" + ], + "operationId": "Operations_List", + "description": "Gets a list of StoragePool operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Retrieved RP operations", + "schema": { + "$ref": "#/definitions/StoragePoolOperationListResult" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "List operations": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.StoragePool/diskPools": { + "get": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_ListBySubscription", + "description": "Gets a list of Disk Pools in a subscription", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation completed successfully; retrieved diskPools by subscription", + "schema": { + "$ref": "#/definitions/DiskPoolListResult" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Disk Pools by subscription": { + "$ref": "./examples/DiskPools_ListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools": { + "get": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_ListByResourceGroup", + "description": "Gets a list of DiskPools in a resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation completed successfully; retrieved diskPools by resource group", + "schema": { + "$ref": "#/definitions/DiskPoolListResult" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Disk Pools": { + "$ref": "./examples/DiskPools_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}": { + "put": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_CreateOrUpdate", + "description": "Create or Update Disk pool.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/DiskPoolCreate" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the create or update operation is successfully completed.", + "schema": { + "$ref": "#/definitions/DiskPool" + } + }, + "201": { + "description": "Accepted -- Create or update request accepted; operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/DiskPool" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create or Update Disk pool": { + "$ref": "./examples/DiskPools_Put.json" + } + } + }, + "patch": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_Update", + "description": "Update a Disk pool.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/DiskPoolUpdate" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the update operation is successfully completed.", + "schema": { + "$ref": "#/definitions/DiskPool" + } + }, + "202": { + "description": "Accepted -- Update request accepted; operation will complete asynchronously." + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "Update Disk pool": { + "$ref": "./examples/DiskPools_Patch.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_Delete", + "description": "Delete a Disk pool.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed successfully." + }, + "204": { + "description": "Resource does not exist in the subscription." + }, + "202": { + "description": "Delete request accepted; operation will complete asynchronously." + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Delete Disk pool": { + "$ref": "./examples/DiskPools_Delete.json" + } + } + }, + "get": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_Get", + "description": "Get a Disk pool.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation completed successfully; retrieved Disk pool.", + "schema": { + "$ref": "#/definitions/DiskPool" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "Get Disk pool": { + "$ref": "./examples/DiskPools_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.StoragePool/locations/{location}/diskPoolZones": { + "get": { + "tags": [ + "DiskPoolZones" + ], + "operationId": "DiskPoolZones_List", + "description": "Lists available Disk Pool Skus in an Azure location.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/Location" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DiskPoolZoneListResult" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Disk Pool Skus": { + "$ref": "./examples/DiskPoolZones_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/outboundNetworkDependenciesEndpoints": { + "get": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_ListOutboundNetworkDependenciesEndpoints", + "description": "Gets the network endpoints of all outbound dependencies of a Disk Pool", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OutboundEnvironmentEndpointList" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Disk Pool outbound network dependencies": { + "$ref": "./examples/DiskPools_GetOutboundNetworkDependencies.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/start": { + "post": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_Start", + "description": "The operation to start a Disk Pool.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Start Disk Pool": { + "$ref": "./examples/DiskPools_Start.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/deallocate": { + "post": { + "tags": [ + "DiskPools" + ], + "operationId": "DiskPools_Deallocate", + "description": "Shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that this Disk Pool uses.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Deallocate Disk Pool": { + "$ref": "./examples/DiskPools_Deallocate.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets": { + "get": { + "tags": [ + "IscsiTargets" + ], + "description": "Get iSCSI Targets in a Disk pool.", + "operationId": "IscsiTargets_ListByDiskPool", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation completed successfully; retrieved iSCSI Targets in a Disk pool.", + "schema": { + "$ref": "#/definitions/IscsiTargetList" + } + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Disk Pools by Resource Group": { + "$ref": "./examples/IscsiTargets_ListByDiskPool.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName}": { + "put": { + "tags": [ + "IscsiTargets" + ], + "description": "Create or Update an iSCSI Target.", + "operationId": "IscsiTargets_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/IscsiTargetName" + }, + { + "$ref": "#/parameters/IscsiTargetCreate" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the create or update operation is successfully completed.", + "schema": { + "$ref": "#/definitions/IscsiTarget" + } + }, + "201": { + "description": "Accepted -- Create or update request accepted; operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/IscsiTarget" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Create or Update iSCSI Target": { + "$ref": "./examples/IscsiTargets_Put.json" + } + } + }, + "patch": { + "tags": [ + "IscsiTargets" + ], + "description": "Update an iSCSI Target.", + "operationId": "IscsiTargets_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/IscsiTargetName" + }, + { + "$ref": "#/parameters/IscsiTargetUpdate" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Returned when the update operation is successfully completed.", + "schema": { + "$ref": "#/definitions/IscsiTarget" + } + }, + "202": { + "description": "Accepted -- Update request accepted; operation will complete asynchronously." + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Update iSCSI Target": { + "$ref": "./examples/IscsiTargets_Patch.json" + } + } + }, + "delete": { + "tags": [ + "IscsiTargets" + ], + "description": "Delete an iSCSI Target.", + "operationId": "IscsiTargets_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/IscsiTargetName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Delete operation completed successfully." + }, + "204": { + "description": "Resource does not exist in the subscription." + }, + "202": { + "description": "Delete request accepted; operation will complete asynchronously." + }, + "default": { + "description": "Error from the RP", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Delete iSCSI Target": { + "$ref": "./examples/IscsiTargets_Delete.json" + } + } + }, + "get": { + "tags": [ + "IscsiTargets" + ], + "description": "Get an iSCSI Target.", + "operationId": "IscsiTargets_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DiskPoolName" + }, + { + "$ref": "#/parameters/IscsiTargetName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Operation completed successfully; retrieved iSCSI Target.", + "schema": { + "$ref": "#/definitions/IscsiTarget" + } + }, + "default": { + "description": "Error from the RP.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "Get iSCSI Target": { + "$ref": "./examples/IscsiTargets_Get.json" + } + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription.", + "minLength": 1 + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation.", + "minLength": 1 + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "pattern": "^[-\\w\\._]*[0-9A-Za-z]$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "DiskPoolName": { + "name": "diskPoolName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Disk Pool.", + "x-ms-parameter-location": "method" + }, + "IscsiTargetName": { + "name": "iscsiTargetName", + "type": "string", + "required": true, + "in": "path", + "description": "The name of the iSCSI Target.", + "x-ms-parameter-location": "method" + }, + "DiskPoolCreate": { + "name": "diskPoolCreatePayload", + "required": true, + "in": "body", + "description": "Request payload for Disk Pool create operation", + "schema": { + "$ref": "#/definitions/DiskPoolCreate" + }, + "x-ms-parameter-location": "method" + }, + "DiskPoolUpdate": { + "name": "diskPoolUpdatePayload", + "required": true, + "in": "body", + "description": "Request payload for Disk Pool update operation.", + "schema": { + "$ref": "#/definitions/DiskPoolUpdate" + }, + "x-ms-parameter-location": "method" + }, + "IscsiTargetCreate": { + "name": "iscsiTargetCreatePayload", + "required": true, + "in": "body", + "description": "Request payload for iSCSI Target create operation.", + "schema": { + "$ref": "#/definitions/IscsiTargetCreate" + }, + "x-ms-parameter-location": "method" + }, + "IscsiTargetUpdate": { + "name": "iscsiTargetUpdatePayload", + "required": true, + "in": "body", + "description": "Request payload for iSCSI Target update operation.", + "schema": { + "$ref": "#/definitions/IscsiTargetUpdate" + }, + "x-ms-parameter-location": "method" + }, + "OperationId": { + "name": "operationId", + "type": "string", + "required": true, + "in": "path", + "description": "The unique uuid of an operation.", + "x-ms-parameter-location": "method" + }, + "Location": { + "name": "location", + "type": "string", + "required": true, + "in": "path", + "description": "The location of the resource.", + "x-ms-parameter-location": "method" + } + }, + "definitions": { + "StoragePoolOperationDisplay": { + "type": "object", + "required": [ + "provider", + "resource", + "operation", + "description" + ], + "description": "Metadata about an operation.", + "additionalProperties": false, + "properties": { + "provider": { + "type": "string", + "description": "Localized friendly form of the resource provider name." + }, + "resource": { + "type": "string", + "description": "Localized friendly form of the resource type related to this action/operation." + }, + "operation": { + "type": "string", + "description": "Localized friendly name for the operation, as it should be shown to the user." + }, + "description": { + "type": "string", + "description": "Localized friendly description for the operation, as it should be shown to the user." + } + } + }, + "StoragePoolRPOperation": { + "type": "object", + "required": [ + "name", + "isDataAction", + "display" + ], + "description": "Description of a StoragePool RP Operation", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "description": "The name of the operation being performed on this particular object" + }, + "isDataAction": { + "type": "boolean", + "description": "Indicates whether the operation applies to data-plane." + }, + "actionType": { + "type": "string", + "description": "Indicates the action type." + }, + "display": { + "description": "Additional metadata about RP operation.", + "$ref": "#/definitions/StoragePoolOperationDisplay" + }, + "origin": { + "type": "string", + "description": "The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX." + } + } + }, + "StoragePoolOperationListResult": { + "type": "object", + "required": [ + "value" + ], + "description": "List of operations supported by the RP.", + "additionalProperties": false, + "properties": { + "value": { + "type": "array", + "description": "An array of operations supported by the StoragePool RP.", + "items": { + "$ref": "#/definitions/StoragePoolRPOperation" + } + }, + "nextLink": { + "description": "URI to fetch the next section of the paginated response.", + "type": "string" + } + } + }, + "OutboundEnvironmentEndpointList": { + "description": "Collection of Outbound Environment Endpoints", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "Collection of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/OutboundEnvironmentEndpoint" + } + }, + "nextLink": { + "description": "Link to next page of resources.", + "type": "string", + "readOnly": true + } + } + }, + "OutboundEnvironmentEndpoint": { + "description": "Endpoints accessed for a common purpose that the App Service Environment requires outbound network access to.", + "type": "object", + "properties": { + "category": { + "description": "The type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory.", + "type": "string" + }, + "endpoints": { + "description": "The endpoints that the App Service Environment reaches the service at.", + "type": "array", + "items": { + "$ref": "#/definitions/EndpointDependency" + } + } + } + }, + "EndpointDependency": { + "description": "A domain name that a service is reached at, including details of the current connection status.", + "type": "object", + "properties": { + "domainName": { + "description": "The domain name of the dependency.", + "type": "string" + }, + "endpointDetails": { + "description": "The IP Addresses and Ports used when connecting to DomainName.", + "type": "array", + "items": { + "$ref": "#/definitions/EndpointDetail" + } + } + } + }, + "EndpointDetail": { + "description": "Current TCP connectivity information from the App Service Environment to a single endpoint.", + "type": "object", + "properties": { + "ipAddress": { + "description": "An IP Address that Domain Name currently resolves to.", + "type": "string" + }, + "port": { + "format": "int32", + "description": "The port an endpoint is connected to.", + "type": "integer" + }, + "latency": { + "format": "double", + "description": "The time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port.", + "type": "number" + }, + "isAccessible": { + "description": "Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port.", + "type": "boolean" + } + } + }, + "DiskPoolListResult": { + "type": "object", + "required": [ + "value" + ], + "description": "List of Disk Pools", + "additionalProperties": false, + "properties": { + "value": { + "description": "An array of Disk pool objects.", + "type": "array", + "items": { + "$ref": "#/definitions/DiskPool" + } + }, + "nextLink": { + "description": "URI to fetch the next section of the paginated response.", + "type": "string", + "readOnly": true + } + } + }, + "DiskPoolZoneListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DiskPoolZoneInfo" + }, + "description": "The list of Disk Pool Skus." + }, + "nextLink": { + "description": "URI to fetch the next section of the paginated response.", + "type": "string" + } + }, + "description": "List Disk Pool skus operation response." + }, + "DiskPoolZoneInfo": { + "type": "object", + "description": "Disk Pool Sku Details", + "properties": { + "availabilityZones": { + "type": "array", + "description": "Logical zone for Disk Pool resource; example: [\"1\"].", + "items": { + "$ref": "#/definitions/AvailabilityZone" + } + }, + "additionalCapabilities": { + "type": "array", + "description": "List of additional capabilities for Disk Pool.", + "items": { + "$ref": "#/definitions/AdditionalCapability" + } + }, + "sku": { + "description": "Determines the SKU of VM deployed for Disk Pool", + "type": "string", + "$ref": "#/definitions/Sku" + } + } + }, + "DiskPool": { + "type": "object", + "description": "Response for Disk Pool request.", + "required": [ + "properties" + ], + "properties": { + "sku": { + "description": "Determines the SKU of the Disk pool", + "$ref": "#/definitions/Sku", + "x-ms-client-flatten": true + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Properties of Disk Pool.", + "$ref": "#/definitions/DiskPoolProperties" + }, + "systemData": { + "description": "Resource metadata required by ARM RPC", + "readOnly": true, + "$ref": "#/definitions/SystemMetadata" + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ] + }, + "DiskPoolCreate": { + "type": "object", + "description": "Request payload for create or update Disk Pool request.", + "required": [ + "properties", + "location", + "sku" + ], + "properties": { + "sku": { + "description": "Determines the SKU of the Disk Pool", + "type": "object", + "$ref": "#/definitions/Sku" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Properties for Disk Pool create request.", + "$ref": "#/definitions/DiskPoolCreateProperties" + }, + "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." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts." + } + }, + "x-ms-azure-resource": true + }, + "DiskPoolUpdate": { + "type": "object", + "description": "Request payload for Update Disk Pool request.", + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties for Disk Pool update request.", + "$ref": "#/definitions/DiskPoolUpdateProperties" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + } + } + }, + "AvailabilityZone": { + "type": "string", + "description": "Availability zone." + }, + "DiskPoolProperties": { + "type": "object", + "description": "Disk Pool response properties.", + "required": [ + "availabilityZones", + "subnetId", + "provisioningState", + "status" + ], + "properties": { + "provisioningState": { + "description": "State of the operation on the resource.", + "type": "string", + "$ref": "#/definitions/ProvisioningState" + }, + "availabilityZones": { + "type": "array", + "description": "Logical zone for Disk Pool resource; example: [\"1\"].", + "items": { + "$ref": "#/definitions/AvailabilityZone" + } + }, + "status": { + "type": "string", + "$ref": "#/definitions/OperationalStatus", + "description": "Operational status of the Disk Pool." + }, + "disks": { + "type": "array", + "description": "List of Azure Managed Disks to attach to a Disk Pool.", + "items": { + "$ref": "#/definitions/Disk" + } + }, + "subnetId": { + "type": "string", + "description": "Azure Resource ID of a Subnet for the Disk Pool.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "additionalCapabilities": { + "type": "array", + "description": "List of additional capabilities for Disk Pool.", + "items": { + "$ref": "#/definitions/AdditionalCapability" + } + } + } + }, + "DiskPoolCreateProperties": { + "type": "object", + "description": "Properties for Disk Pool create or update request.", + "required": [ + "subnetId" + ], + "properties": { + "availabilityZones": { + "type": "array", + "description": "Logical zone for Disk Pool resource; example: [\"1\"].", + "items": { + "$ref": "#/definitions/AvailabilityZone" + } + }, + "disks": { + "type": "array", + "description": "List of Azure Managed Disks to attach to a Disk Pool.", + "items": { + "$ref": "#/definitions/Disk" + } + }, + "subnetId": { + "type": "string", + "description": "Azure Resource ID of a Subnet for the Disk Pool.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "additionalCapabilities": { + "type": "array", + "description": "List of additional capabilities for a Disk Pool.", + "items": { + "$ref": "#/definitions/AdditionalCapability" + } + } + } + }, + "DiskPoolUpdateProperties": { + "type": "object", + "description": "Properties for Disk Pool update request.", + "properties": { + "disks": { + "type": "array", + "description": "List of Azure Managed Disks to attach to a Disk Pool.", + "items": { + "$ref": "#/definitions/Disk" + } + } + } + }, + "Disk": { + "type": "object", + "description": "Azure Managed Disk to attach to the Disk Pool.", + "required": [ + "id" + ], + "additionalProperties": false, + "properties": { + "id": { + "type": "string", + "description": "Unique Azure Resource ID of the Managed Disk." + } + } + }, + "AdditionalCapability": { + "type": "string", + "description": "Special capability that can be set on the Disk Pool." + }, + "IscsiTargetList": { + "type": "object", + "required": [ + "value" + ], + "description": "List of iSCSI Targets.", + "additionalProperties": false, + "properties": { + "value": { + "type": "array", + "description": "An array of iSCSI Targets in a Disk Pool.", + "items": { + "$ref": "#/definitions/IscsiTarget" + } + }, + "nextLink": { + "description": "URI to fetch the next section of the paginated response.", + "type": "string", + "readOnly": true + } + } + }, + "IscsiTarget": { + "type": "object", + "description": "Response for iSCSI Target requests.", + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties for iSCSI Target operations.", + "$ref": "#/definitions/IscsiTargetProperties" + }, + "systemData": { + "description": "Resource metadata required by ARM RPC", + "$ref": "#/definitions/SystemMetadata" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "IscsiTargetCreate": { + "type": "object", + "description": "Payload for iSCSI Target create or update requests.", + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties for iSCSI Target create request.", + "$ref": "#/definitions/IscsiTargetCreateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "IscsiTargetUpdate": { + "type": "object", + "description": "Payload for iSCSI Target update requests.", + "required": [ + "properties" + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties for iSCSI Target update request.", + "$ref": "#/definitions/IscsiTargetUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "IscsiTargetProperties": { + "type": "object", + "description": "Response properties for iSCSI Target operations.", + "required": [ + "targetIqn", + "provisioningState", + "status", + "aclMode" + ], + "properties": { + "aclMode": { + "description": "Mode for Target connectivity.", + "type": "string", + "$ref": "#/definitions/AclMode" + }, + "staticAcls": { + "type": "array", + "description": "Access Control List (ACL) for an iSCSI Target; defines LUN masking policy", + "items": { + "$ref": "#/definitions/Acl" + } + }, + "luns": { + "type": "array", + "description": "List of LUNs to be exposed through iSCSI Target.", + "items": { + "$ref": "#/definitions/IscsiLun" + } + }, + "targetIqn": { + "type": "string", + "description": "iSCSI Target IQN (iSCSI Qualified Name); example: \"iqn.2005-03.org.iscsi:server\"." + }, + "provisioningState": { + "description": "State of the operation on the resource.", + "type": "string", + "$ref": "#/definitions/ProvisioningState" + }, + "status": { + "type": "string", + "$ref": "#/definitions/OperationalStatus", + "description": "Operational status of the iSCSI Target." + }, + "endpoints": { + "description": "List of private IPv4 addresses to connect to the iSCSI Target.", + "type": "array", + "items": { + "type": "string" + } + }, + "port": { + "type": "integer", + "format": "int32", + "description": "The port used by iSCSI Target portal group." + } + } + }, + "IscsiTargetCreateProperties": { + "type": "object", + "description": "Properties for iSCSI Target create or update request.", + "required": [ + "aclMode" + ], + "properties": { + "aclMode": { + "description": "Mode for Target connectivity.", + "type": "string", + "$ref": "#/definitions/AclMode" + }, + "targetIqn": { + "type": "string", + "description": "iSCSI Target IQN (iSCSI Qualified Name); example: \"iqn.2005-03.org.iscsi:server\"." + }, + "staticAcls": { + "type": "array", + "description": "Access Control List (ACL) for an iSCSI Target; defines LUN masking policy", + "items": { + "$ref": "#/definitions/Acl" + } + }, + "luns": { + "type": "array", + "description": "List of LUNs to be exposed through iSCSI Target.", + "items": { + "$ref": "#/definitions/IscsiLun" + } + } + } + }, + "IscsiTargetUpdateProperties": { + "type": "object", + "description": "Properties for iSCSI Target update request.", + "properties": { + "staticAcls": { + "type": "array", + "description": "Access Control List (ACL) for an iSCSI Target; defines LUN masking policy", + "items": { + "$ref": "#/definitions/Acl" + } + }, + "luns": { + "type": "array", + "description": "List of LUNs to be exposed through iSCSI Target.", + "items": { + "$ref": "#/definitions/IscsiLun" + } + } + } + }, + "Acl": { + "type": "object", + "description": "Access Control List (ACL) for an iSCSI Target; defines LUN masking policy", + "required": [ + "initiatorIqn", + "mappedLuns" + ], + "properties": { + "initiatorIqn": { + "type": "string", + "description": "iSCSI initiator IQN (iSCSI Qualified Name); example: \"iqn.2005-03.org.iscsi:client\"." + }, + "mappedLuns": { + "type": "array", + "description": "List of LUN names mapped to the ACL.", + "items": { + "type": "string" + } + } + } + }, + "IscsiLun": { + "type": "object", + "required": [ + "name", + "managedDiskAzureResourceId" + ], + "description": "LUN to expose the Azure Managed Disk.", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "minimum": 1, + "maximum": 90, + "description": "User defined name for iSCSI LUN; example: \"lun0\"" + }, + "managedDiskAzureResourceId": { + "type": "string", + "description": "Azure Resource ID of the Managed Disk." + } + } + }, + "Error": { + "type": "object", + "description": "The resource management error response.", + "properties": { + "error": { + "type": "object", + "description": "RP error response.", + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "ProvisioningState": { + "type": "string", + "enum": [ + "Invalid", + "Succeeded", + "Failed", + "Canceled", + "Pending", + "Creating", + "Updating", + "Deleting" + ], + "x-ms-enum": { + "name": "ProvisioningStates", + "modelAsString": true + }, + "description": "Provisioning state of the iSCSI Target.", + "readOnly": true + }, + "OperationalStatus": { + "type": "string", + "enum": [ + "Invalid", + "Unknown", + "Healthy", + "Unhealthy", + "Updating", + "Running", + "Stopped", + "Stopped (deallocated)" + ], + "x-ms-enum": { + "name": "OperationalStatus", + "modelAsString": true + }, + "description": "Operational status of the resource." + }, + "DiskPoolTier": { + "type": "string", + "enum": [ + "Basic", + "Standard", + "Premium" + ], + "x-ms-enum": { + "name": "DiskPoolTier", + "modelAsString": true + }, + "description": "SKU of the VM host part of the Disk Pool deployment" + }, + "AclMode": { + "type": "string", + "enum": [ + "Dynamic", + "Static" + ], + "x-ms-enum": { + "name": "IscsiTargetAclMode", + "modelAsString": true + }, + "description": "ACL mode for iSCSI Target." + }, + "Sku": { + "type": "object", + "description": "Sku for ARM resource", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "Sku name" + }, + "tier": { + "type": "string", + "description": "Sku tier" + } + } + }, + "SystemMetadata": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "createdByType", + "modelAsString": true + } + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The type of identity that last modified the resource." + } + } + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource.", + "properties": { + "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." + } + }, + "required": [ + "location" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "Resource": { + "description": "ARM resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts." + } + }, + "x-ms-azure-resource": true + }, + "ProxyResource": { + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "ErrorAdditionalInfo": { + "properties": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, + "type": "object", + "description": "The additional info." + } + }, + "description": "The resource management error additional info." + }, + "ErrorResponse": { + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The error code." + }, + "message": { + "readOnly": true, + "type": "string", + "description": "The error message." + }, + "target": { + "readOnly": true, + "type": "string", + "description": "The error target." + }, + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorResponse" + }, + "description": "The error details." + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "description": "The error additional info." + } + }, + "description": "The resource management error response." + } + } +} diff --git a/specification/storagepool/resource-manager/readme.go.md b/specification/storagepool/resource-manager/readme.go.md index 4f2244713599..3a8c5c1660a1 100644 --- a/specification/storagepool/resource-manager/readme.go.md +++ b/specification/storagepool/resource-manager/readme.go.md @@ -12,15 +12,15 @@ go: ``` yaml $(go) && $(multiapi) batch: - - tag: package-2020-03-15-preview + - tag: package-2021-04-01-preview ``` -### Tag: package-2020-03-15-preview and go +### Tag: package-2021-04-01-preview and go -These settings apply only when `--tag=package-2020-03-15-preview --go` is specified on the command line. +These settings apply only when `--tag=package-2021-04-01-preview --go` is specified on the command line. Please also specify `--go-sdks-folder=`. -```yaml $(tag) == 'package-2020-03-15-preview' && $(go) +```yaml $(tag) == 'package-2021-04-01-preview' && $(go) namespace: storagepool -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-03-15-preview/$(namespace) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2021-04-01-preview/$(namespace) ``` diff --git a/specification/storagepool/resource-manager/readme.md b/specification/storagepool/resource-manager/readme.md index 4ff0e7d73767..daff48adc37f 100644 --- a/specification/storagepool/resource-manager/readme.md +++ b/specification/storagepool/resource-manager/readme.md @@ -26,18 +26,28 @@ These are the global settings for the storagepool. ```yaml openapi-type: arm -tag: package-2020-03-15-preview +tag: package-2021-04-01-preview +``` + +### Tag: package-2021-04-01-preview + +These settings apply only when `--tag=package-2021-04-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2021-04-01-preview' +input-file: + - Microsoft.StoragePool/preview/2021-04-01-preview/storagepool.json ``` -### Tag: package-2020-03-15-preview -These settings apply only when `--tag=package-2020-03-15-preview` is specified on the command line. +### Tag: package-2020-03-15-preview +These settings apply only when ```yaml $(tag) == 'package-2020-03-15-preview' input-file: - Microsoft.StoragePool/preview/2020-03-15-preview/storagepool.json ``` + --- # Code Generation @@ -49,7 +59,7 @@ This is not used by Autorest itself. ```yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-js diff --git a/specification/storagepool/resource-manager/readme.python.md b/specification/storagepool/resource-manager/readme.python.md index d51e4c72c621..7d7f211f121d 100644 --- a/specification/storagepool/resource-manager/readme.python.md +++ b/specification/storagepool/resource-manager/readme.python.md @@ -3,19 +3,21 @@ 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.StoragePool - package-name: storagepool - package-version: 2020-03-15-preview - clear-output-folder: true +``` yaml $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-storagepool +no-namespace-folders: true +package-version: 1.0.0b1 +clear-output-folder: true ``` -```yaml $(python) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/storage/azure-mgmt-storage/azure/mgmt/storage/v2020_03_15_preview +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/storagepool/azure-mgmt-storagepool/azure/mgmt/storagepool +``` + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/storagepool/azure-mgmt-storagepool ``` diff --git a/specification/storagepool/resource-manager/readme.ruby.md b/specification/storagepool/resource-manager/readme.ruby.md index 67579a795894..21fb14d23705 100644 --- a/specification/storagepool/resource-manager/readme.ruby.md +++ b/specification/storagepool/resource-manager/readme.ruby.md @@ -4,16 +4,16 @@ These settings apply only when `--ruby` is specified on the command line. ```yaml package-name: azure_mgmt_storagepool -package-version: 2020-03-15-preview +package-version: 2021-04-01-preview azure-arm: true ``` -### Tag: package-2020-03-15-preview and ruby +### Tag: package-2021-04-01-preview and ruby -These settings apply only when `--tag=package-2020-03-15-preview --ruby` is specified on the command line. +These settings apply only when `--tag=package-2021-04-01-preview --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -```yaml $(tag) == 'package-2020-03-15-preview' && $(ruby) +```yaml $(tag) == 'package-2021-04-01-preview' && $(ruby) namespace: Microsoft.StoragePool output-folder: $(ruby-sdks-folder)/storagepool ```