diff --git a/specification/containerstorage/ContainerStorage.Management/README.md b/specification/containerstorage/ContainerStorage.Management/README.md new file mode 100644 index 000000000000..d83db4cc26d2 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/README.md @@ -0,0 +1,70 @@ +# Azure Container Storage Resource Provider TypeSpec and Swagger Specification + +The TypeSpec and generated API specification for the Azure Container Storage Resource Provider. + +## Development Environment + +0. Change directory into the `src\Swagger\Microsoft.ContainerStorage\ContainerStorage.Management\` directory. + +1. Install Node.js 16 LTS and ensure you are able to run the npm command in a command prompt: + + ```console + npm --version + ``` + +2. Install Azure DevOps Auth helper for npm to pull the libraries from the secured feed + + ```console + npm install -g vsts-npm-auth + vsts-npm-auth -config .npmrc + ``` + +3. Install TypeSpec compiler and libraries: + + ```console + npm install -g @typespec/compiler + ``` + +4. (Optional) Install the TypeSpec extension for your editor of choice: + + - Visual Studio Code + + ``` console + tsp code install + ``` + + - Visual Studio + + ``` console + tsp vs install + ``` + +5. Install node package dependencies: + + ```console + tsp install + ``` + +6. Compile TypeSpec to Swagger. This will update the files in the directory `.\resource-manager\Microsoft.ContainerStorage\preview\\`: + + ```console + tsp compile src\Swagger\Microsoft.ContainerStorage\ContainerStorage.Management + ``` + +7. To re-generate examples, download and install the [OAV + tool](https://github.com/Azure/oav) and run it: note: This directory is taken + from [azure-rest-api-specs](https://github.com/Azure/azure-rest-api-specs), + and the following commands should be run from there. + + ```console + npm install -g oav@latest + oav generate-examples + # example + oav generate-examples src\Swagger\Microsoft.ContainerStorage\resource-manager\Microsoft.ContainerStorage\preview\2023-07-01-preview\containerstorage.json + ``` + +## Testing and Viewing API as an Interface + +1. Visit the official [Swagger Editor](https://editor.swagger.io/). + +2. Copy the generated Swagger from `containerstorage.json` and paste it into the editor. \ No newline at end of file diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Operations_List.json b/specification/containerstorage/ContainerStorage.Management/examples/Operations_List.json new file mode 100644 index 000000000000..7d3686bd1631 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerStorage/Volumes/Get", + "isDataAction": true, + "display": { + "provider": "Microsoft Container Storage", + "resource": "Operation", + "operation": "Get Operation", + "description": "Gets the status of an asynchronous operation" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Operations_List_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Operations_List_MaximumSet_Gen.json deleted file mode 100644 index e53c3a0372b3..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Operations_List_MaximumSet_Gen.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "title": "Operations_List_MaximumSet_Gen", - "operationId": "Operations_List", - "parameters": { - "api-version": "2023-03-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "owtamtreuhzeozjyrtuzzzy", - "isDataAction": true, - "display": { - "provider": "qbrtf", - "resource": "lfvgfkoojojdmh", - "operation": "hvhshxzzfqahja", - "description": "ahsrxzaeoioiwywbzljjpyrrw" - }, - "origin": "user", - "actionType": "Internal" - } - ], - "nextLink": "tgimrrxavadttwluarmurs" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Operations_List_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Operations_List_MinimumSet_Gen.json deleted file mode 100644 index 89c6cd2706db..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Operations_List_MinimumSet_Gen.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Operations_List_MinimumSet_Gen", - "operationId": "Operations_List", - "parameters": { - "api-version": "2023-03-01-preview" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_AzureDisk.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_AzureDisk.json new file mode 100644 index 000000000000..1183bd9ac3dd --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_AzureDisk.json @@ -0,0 +1,205 @@ +{ + "title": "Pools_CreateOrUpdate_AzureDisk", + "operationId": "Pools_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "type": "None", + "userAssignedIdentities": { + "key7678": {} + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_ElasticSan.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_ElasticSan.json new file mode 100644 index 000000000000..146393decfe8 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_ElasticSan.json @@ -0,0 +1,193 @@ +{ + "title": "Pools_CreateOrUpdate_ElasticSan", + "operationId": "Pools_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "type": "None", + "userAssignedIdentities": { + "key7678": {} + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_Ephemeral.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_Ephemeral.json new file mode 100644 index 000000000000..8dde161cb6f0 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_Ephemeral.json @@ -0,0 +1,163 @@ +{ + "title": "Pools_CreateOrUpdate_Ephemeral", + "operationId": "Pools_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3 + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_MaximumSet_Gen.json deleted file mode 100644 index da8c653a6e8f..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_MaximumSet_Gen.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "title": "Pools_CreateOrUpdate_MaximumSet_Gen", - "operationId": "Pools_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "-EXNI2WK48", - "resource": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct" - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_MinimumSet_Gen.json deleted file mode 100644 index 7cc22949265c..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_CreateOrUpdate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "Pools_CreateOrUpdate_MinimumSet_Gen", - "operationId": "Pools_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "J873cXX1w3sIX", - "resource": { - "location": "jdfanwoyiigytvanvct" - } - }, - "responses": { - "200": { - "body": { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete.json new file mode 100644 index 000000000000..275f44fdbbee --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "Pools_Delete", + "operationId": "Pools_Delete", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete_MaximumSet_Gen.json deleted file mode 100644 index 3e62b608d59d..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete_MaximumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Pools_Delete_MaximumSet_Gen", - "operationId": "Pools_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "u0E5" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete_MinimumSet_Gen.json deleted file mode 100644 index 8172451478e1..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Delete_MinimumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Pools_Delete_MinimumSet_Gen", - "operationId": "Pools_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "HOL3KPOM7242-P-I--KH9E43" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_AzureDisk.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_AzureDisk.json new file mode 100644 index 000000000000..a6bdd67fa345 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_AzureDisk.json @@ -0,0 +1,85 @@ +{ + "title": "Pools_Get_AzureDisk", + "operationId": "Pools_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_ElasticSan.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_ElasticSan.json new file mode 100644 index 000000000000..5ca01027d194 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_ElasticSan.json @@ -0,0 +1,79 @@ +{ + "title": "Pools_Get_ElasticSan", + "operationId": "Pools_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_Ephemeral.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_Ephemeral.json new file mode 100644 index 000000000000..2302de06b726 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_Ephemeral.json @@ -0,0 +1,69 @@ +{ + "title": "Pools_Get_Ephemeral", + "operationId": "Pools_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_MaximumSet_Gen.json deleted file mode 100644 index 93954f9702f4..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_MaximumSet_Gen.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "title": "Pools_Get_MaximumSet_Gen", - "operationId": "Pools_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "ht5ZGIN6x25loiC" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_MinimumSet_Gen.json deleted file mode 100644 index 674b4aa1db3e..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Get_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "Pools_Get_MinimumSet_Gen", - "operationId": "Pools_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "V9-7SH6R6I" - }, - "responses": { - "200": { - "body": { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_AzureDisk.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_AzureDisk.json new file mode 100644 index 000000000000..f0cf491bff69 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_AzureDisk.json @@ -0,0 +1,89 @@ +{ + "title": "Pools_ListByResourceGroup_AzureDisk", + "operationId": "Pools_ListByResourceGroup", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_ElasticSan.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_ElasticSan.json new file mode 100644 index 000000000000..2caf6097b23f --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_ElasticSan.json @@ -0,0 +1,83 @@ +{ + "title": "Pools_ListByResourceGroup_ElasticSan", + "operationId": "Pools_ListByResourceGroup", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_Ephemeral.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_Ephemeral.json new file mode 100644 index 000000000000..f6964689b940 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_Ephemeral.json @@ -0,0 +1,73 @@ +{ + "title": "Pools_ListByResourceGroup_Ephemeral", + "operationId": "Pools_ListByResourceGroup", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_MaximumSet_Gen.json deleted file mode 100644 index 23f8069b33d7..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_MaximumSet_Gen.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "title": "Pools_ListByResourceGroup_MaximumSet_Gen", - "operationId": "Pools_ListByResourceGroup", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - ], - "nextLink": "https://microsoft.com/agz" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_MinimumSet_Gen.json deleted file mode 100644 index cf40c1732333..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListByResourceGroup_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Pools_ListByResourceGroup_MinimumSet_Gen", - "operationId": "Pools_ListByResourceGroup", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - ] - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_AzureDisk.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_AzureDisk.json new file mode 100644 index 000000000000..77355ad0b4b7 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_AzureDisk.json @@ -0,0 +1,88 @@ +{ + "title": "Pools_ListBySubscription_AzureDisk", + "operationId": "Pools_ListBySubscription", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_ElasticSan.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_ElasticSan.json new file mode 100644 index 000000000000..d60e1be2c0ad --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_ElasticSan.json @@ -0,0 +1,82 @@ +{ + "title": "Pools_ListBySubscription_ElasticSan", + "operationId": "Pools_ListBySubscription", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_Ephemeral.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_Ephemeral.json new file mode 100644 index 000000000000..f9770f5d499c --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_Ephemeral.json @@ -0,0 +1,72 @@ +{ + "title": "Pools_ListBySubscription_Ephemeral", + "operationId": "Pools_ListBySubscription", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_MaximumSet_Gen.json deleted file mode 100644 index 942af39b73eb..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_MaximumSet_Gen.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "title": "Pools_ListBySubscription_MaximumSet_Gen", - "operationId": "Pools_ListBySubscription", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - ], - "nextLink": "https://microsoft.com/agz" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_MinimumSet_Gen.json deleted file mode 100644 index 6e9b0d02391f..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_ListBySubscription_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Pools_ListBySubscription_MinimumSet_Gen", - "operationId": "Pools_ListBySubscription", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - ] - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_AzureDisk.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_AzureDisk.json new file mode 100644 index 000000000000..d0b19f06a1a6 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_AzureDisk.json @@ -0,0 +1,114 @@ +{ + "title": "Pools_Update_AzureDisk", + "operationId": "Pools_Update", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "properties": { + "tags": { + "key7124": "value7124" + }, + "properties": { + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": {} + }, + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_ElasticSan.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_ElasticSan.json new file mode 100644 index 000000000000..5cceffbef8ae --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_ElasticSan.json @@ -0,0 +1,108 @@ +{ + "title": "Pools_Update_ElasticSan", + "operationId": "Pools_Update", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "properties": { + "tags": { + "key7124": "value7124" + }, + "properties": { + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": {} + }, + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_Ephemeral.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_Ephemeral.json new file mode 100644 index 000000000000..76d4716247c3 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_Ephemeral.json @@ -0,0 +1,100 @@ +{ + "title": "Pools_Update_Ephemeral", + "operationId": "Pools_Update", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "properties": { + "tags": { + "key7124": "value7124" + }, + "properties": { + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3 + } + }, + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_MaximumSet_Gen.json deleted file mode 100644 index 7c18742fa7c4..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_MaximumSet_Gen.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "title": "Pools_Update_MaximumSet_Gen", - "operationId": "Pools_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "Y-PF", - "properties": { - "tags": { - "key7084": "iptnkecjrxqvxsrdytkdkpkmb" - }, - "properties": { - "poolType": 26, - "zones": [ - "puufhsusjhvxxqww" - ], - "poolCapacityGiB": 12, - "assignments": [ - "wmagvstbeupzrzfzioso" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "yfjqysccjrjyiylgfkwhe" - ], - "disks": [ - "vkkxfajasnwnynjrjtpluipqnizjy" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "uukitjcvismzmxhr", - "resourceGroup": "myerdtpqquqjsejb", - "volumeGroup": "vtxfikamxvskohdi" - } - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "puufhsusjhvxxqww" - ], - "poolCapacityGiB": 23, - "assignments": [ - "wmagvstbeupzrzfzioso" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "yfjqysccjrjyiylgfkwhe" - ], - "disks": [ - "vkkxfajasnwnynjrjtpluipqnizjy" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "uukitjcvismzmxhr", - "resourceGroup": "myerdtpqquqjsejb", - "volumeGroup": "vtxfikamxvskohdi" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_MinimumSet_Gen.json deleted file mode 100644 index 7ddaaad611b4..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Pools_Update_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "Pools_Update_MinimumSet_Gen", - "operationId": "Pools_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "Q996I753P5F5", - "properties": {} - }, - "responses": { - "200": { - "body": { - "location": "jdfanwoyiigytvanvct" - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_CreateOrUpdate.json b/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_CreateOrUpdate.json new file mode 100644 index 000000000000..1e7d7b459e50 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_CreateOrUpdate.json @@ -0,0 +1,72 @@ +{ + "title": "Snapshots_CreateOrUpdate", + "operationId": "Snapshots_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "snapshotName": "test-snapshot", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/snapshots/test-snapshot", + "name": "test-snapshot", + "type": "Microsoft.ContainerStorage/pools/snapshots", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/snapshots/test-snapshot", + "name": "test-snapshot", + "type": "Microsoft.ContainerStorage/pools/snapshots", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_Delete.json b/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_Delete.json new file mode 100644 index 000000000000..6a517d277df0 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "Snapshots_Delete", + "operationId": "Snapshots_Delete", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "snapshotName": "test-snapshot" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_Get.json b/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_Get.json new file mode 100644 index 000000000000..b31bb7d87c7d --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_Get.json @@ -0,0 +1,36 @@ +{ + "title": "Snapshots_Get", + "operationId": "Snapshots_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "snapshotName": "test-snapshot" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/snapshots/test-snapshot", + "name": "test-snapshot", + "type": "Microsoft.ContainerStorage/pools/snapshots", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_ListByPool.json b/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_ListByPool.json new file mode 100644 index 000000000000..76ed8930f6ae --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Snapshots_ListByPool.json @@ -0,0 +1,40 @@ +{ + "title": "Snapshots_ListByPool", + "operationId": "Snapshots_ListByPool", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/snapshots/test-snapshot", + "name": "test-snapshot", + "type": "Microsoft.ContainerStorage/pools/snapshots", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen.json deleted file mode 100644 index b128c88a1c6b..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "title": "VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen", - "operationId": "VolumeSnapshots_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "-1Jk-", - "volumeSnapshotName": "XBOVLQ-UDJ2n5kod886SN", - "resource": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen.json deleted file mode 100644 index 99f07b5eef4e..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen", - "operationId": "VolumeSnapshots_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "E-sfxFA3nN-FcID851Rq-Q3u", - "volumeSnapshotName": "CjG-k-K4nWgGVV3VL-jT-5", - "resource": {} - }, - "responses": { - "200": { - "body": {} - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": {} - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json deleted file mode 100644 index 206dd595910b..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "VolumeSnapshots_Delete_MaximumSet_Gen", - "operationId": "VolumeSnapshots_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "-5-35-2U2E-CSe9", - "volumeSnapshotName": "CB-C-4X2EX-O2V-772h-6K" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json deleted file mode 100644 index b7820acd076b..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "VolumeSnapshots_Delete_MinimumSet_Gen", - "operationId": "VolumeSnapshots_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "CE2Gd-F5Qhn62C-dFQMNs", - "volumeSnapshotName": "8-YF-X-38TN4kHcjy" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Get_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Get_MaximumSet_Gen.json deleted file mode 100644 index a590b5877c5a..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Get_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "VolumeSnapshots_Get_MaximumSet_Gen", - "operationId": "VolumeSnapshots_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "3S1S67z-KE-50", - "volumeSnapshotName": "dg0-7-W2F-6S7V5Rp" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Get_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Get_MinimumSet_Gen.json deleted file mode 100644 index 36f5b85a896f..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Get_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "VolumeSnapshots_Get_MinimumSet_Gen", - "operationId": "VolumeSnapshots_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "ORF7-4iM", - "volumeSnapshotName": "U43AU9-" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_ListByPool_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_ListByPool_MaximumSet_Gen.json deleted file mode 100644 index 2fa27d2e19ee..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_ListByPool_MaximumSet_Gen.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "title": "VolumeSnapshots_ListByPool_MaximumSet_Gen", - "operationId": "VolumeSnapshots_ListByPool", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "67lG-rcl6-2Y57-i-5m" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_ListByPool_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_ListByPool_MinimumSet_Gen.json deleted file mode 100644 index c54cb25e5809..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_ListByPool_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "VolumeSnapshots_ListByPool_MinimumSet_Gen", - "operationId": "VolumeSnapshots_ListByPool", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "992M7a117-M2---l623E8" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "a" - } - ] - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Update_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Update_MaximumSet_Gen.json deleted file mode 100644 index dff1a86c6ab2..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Update_MaximumSet_Gen.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "title": "VolumeSnapshots_Update_MaximumSet_Gen", - "operationId": "VolumeSnapshots_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "q--0-FXNOU", - "volumeSnapshotName": "KP7A-", - "properties": { - "properties": { - "source": "pwgidsdrmnfv", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "lxarajxhe" - ] - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "lxarajxhe" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Update_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Update_MinimumSet_Gen.json deleted file mode 100644 index babc9f61de2d..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/VolumeSnapshots_Update_MinimumSet_Gen.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "title": "VolumeSnapshots_Update_MinimumSet_Gen", - "operationId": "VolumeSnapshots_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "kd2Zk6-IlA7B54LjVU", - "volumeSnapshotName": "HVQX-F5-3-2t-YEJ", - "properties": {} - }, - "responses": { - "200": { - "body": {} - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate.json new file mode 100644 index 000000000000..7b0d34b84e65 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "title": "Volumes_CreateOrUpdate", + "operationId": "Volumes_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "volumeName": "test-volume", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838 + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "user2", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "vyojfxtqmhxrdbmq", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate_MaximumSet_Gen.json deleted file mode 100644 index 30473334b607..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate_MaximumSet_Gen.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "title": "Volumes_CreateOrUpdate_MaximumSet_Gen", - "operationId": "Volumes_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "L-7Vr5xE3", - "volumeName": "y4borPc1GHLej48W3", - "resource": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate_MinimumSet_Gen.json deleted file mode 100644 index 8fc2234cdcd4..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_CreateOrUpdate_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "Volumes_CreateOrUpdate_MinimumSet_Gen", - "operationId": "Volumes_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "-3-0", - "volumeName": "q-r6KY54UA6G5TPSTL83", - "resource": {} - }, - "responses": { - "200": { - "body": {} - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": {} - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete.json new file mode 100644 index 000000000000..4c681af48901 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "Volumes_Delete", + "operationId": "Volumes_Delete", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "volumeName": "test-volume" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete_MaximumSet_Gen.json deleted file mode 100644 index 10e11a79badb..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete_MaximumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Volumes_Delete_MaximumSet_Gen", - "operationId": "Volumes_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "PtV22-U-SY3zstj5", - "volumeName": "mm9Sj-3" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete_MinimumSet_Gen.json deleted file mode 100644 index 7b2ac7125812..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Delete_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Volumes_Delete_MinimumSet_Gen", - "operationId": "Volumes_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "2O4W", - "volumeName": "563---P1-R" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get.json new file mode 100644 index 000000000000..2b40410e7fd7 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get.json @@ -0,0 +1,46 @@ +{ + "title": "Volumes_Get", + "operationId": "Volumes_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "volumeName": "test-volume" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get_MaximumSet_Gen.json deleted file mode 100644 index 1c01e849757c..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get_MaximumSet_Gen.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "title": "Volumes_Get_MaximumSet_Gen", - "operationId": "Volumes_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "Y3U--n-tTd-6Kw5f", - "volumeName": "4-8-qQ-n271-" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get_MinimumSet_Gen.json deleted file mode 100644 index e2839c28b331..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Get_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "Volumes_Get_MinimumSet_Gen", - "operationId": "Volumes_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "7o-47nN4H4F1", - "volumeName": "27RG-gCepP4" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool.json new file mode 100644 index 000000000000..bf58df418ed3 --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool.json @@ -0,0 +1,50 @@ +{ + "title": "Volumes_ListByPool", + "operationId": "Volumes_ListByPool", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool_MaximumSet_Gen.json deleted file mode 100644 index 7487d67b53a9..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool_MaximumSet_Gen.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "title": "Volumes_ListByPool_MaximumSet_Gen", - "operationId": "Volumes_ListByPool", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "2-47N73-6-rr28og" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool_MinimumSet_Gen.json deleted file mode 100644 index ea5fd01f8bea..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_ListByPool_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Volumes_ListByPool_MinimumSet_Gen", - "operationId": "Volumes_ListByPool", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "22J6--48-c8-3F4XQ-u63ko5" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "a" - } - ] - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update.json new file mode 100644 index 000000000000..1d801b4df88f --- /dev/null +++ b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update.json @@ -0,0 +1,59 @@ +{ + "title": "Volumes_Update", + "operationId": "Volumes_Update", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "volumeName": "test-volume", + "properties": { + "properties": { + "labels": { + "key6684": "ssgphiygc" + }, + "capacityGiB": 61986 + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update_MaximumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update_MaximumSet_Gen.json deleted file mode 100644 index 198259734aea..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update_MaximumSet_Gen.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "title": "Volumes_Update_MaximumSet_Gen", - "operationId": "Volumes_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "THTW6Q-MdHA-uGSHBNW3-8c", - "volumeName": "95c1b7n6v36-dU-", - "properties": { - "properties": { - "labels": { - "key1348": "rykxllqddzkapmyyatmcsjstsyq" - }, - "capacityGiB": 22, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "oyqneisrwfzqkoiqrxz" - ] - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "oyqneisrwfzqkoiqrxz" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update_MinimumSet_Gen.json b/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update_MinimumSet_Gen.json deleted file mode 100644 index b70f14484ca3..000000000000 --- a/specification/containerstorage/ContainerStorage.Management/examples/Volumes_Update_MinimumSet_Gen.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "title": "Volumes_Update_MinimumSet_Gen", - "operationId": "Volumes_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "44NPG8P2DT-DH73S8", - "volumeName": "7eHg-KG-4X-YLrHc-80-4-m", - "properties": {} - }, - "responses": { - "200": { - "body": {} - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/ContainerStorage.Management/main.tsp b/specification/containerstorage/ContainerStorage.Management/main.tsp index 1522c522969e..cc9b7f285169 100644 --- a/specification/containerstorage/ContainerStorage.Management/main.tsp +++ b/specification/containerstorage/ContainerStorage.Management/main.tsp @@ -14,7 +14,7 @@ using Azure.ResourceManager.Foundations; @armProviderNamespace @service({ title: "Azure-ContainerStorageRP", - version: "2023-03-01-preview", + version: "2023-07-01-preview", }) @doc("Azure Container Storage Resource Provider API.") @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) @@ -27,7 +27,9 @@ interface Operations extends Azure.ResourceManager.Operations {} @doc("Pool resource") model Pool is TrackedResource { @doc("Pool Object") - @pattern("^[a-zA-Z0-9-]{3,24}$") + @minLength(3) + @maxLength(253) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$") @key("poolName") @path @segment("pools") @@ -36,216 +38,174 @@ model Pool is TrackedResource { @doc("Pool Properties") model PoolProperties { - // @doc("Sku of Pool") - // sku: Sku; - - @visibility("read") @doc("The status of the last operation.") + @visibility("read") provisioningState?: ProvisioningState; - @doc("Type of the Pool: ephemeral, disk, managed, or elasticsan.") - poolType: PoolType; + @doc("The operational status of the resource") + @visibility("read") + status?: ResourceOperationalStatus; + @visibility("read", "create") + @maxItems(3) @doc("List of availability zones that resources can be created in.") - zones: string[]; + zones?: Zone[]; - @doc("Initial capacity of the pool in GiB.") - poolCapacityGiB: int64; + @doc("Resources represent the resources the pool should have.") + resources?: Resources; - // @doc("List of boolean feature-flags, e.g. pool/volume auto-expansion, reclaim policy.") - // features?: Record; + @doc("Type of the Pool: ephemeralDisk, azureDisk, or elasticsan.") + poolType: PoolType; - @doc("List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For portable there can be many.") - assignments: string[]; + @doc("ReclaimPolicy defines what happens to the backend storage when StoragePool is deleted") + @visibility("read", "create") + reclaimPolicy?: ReclaimPolicy; - // Don't include in preview - // @doc("Type of encryption. Allowed values: EncryptionAtRestWithPlatformKey.") - // encryption: EncryptionType; + @doc("List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For ElasticSAN there can be many.") + assignments?: Assignment[]; +} - @doc("Ephemeral Pool Properties") - ephemeralPoolProperties?: EphemeralPoolProperties; +@doc("Availability Zones") +enum Zone { + @doc("First availability zone.") + Zone1: "1", - // @doc("Managed Pool Properties") - // managedPoolProperties?: ManagedPoolProperties; + @doc("Second availability zone.") + Zone2: "2", - @doc("Disk Pool Properties") - diskPoolProperties?: DiskPoolProperties; + @doc("Third availability zone.") + Zone3: "3", +} - @doc("Elastic San Pool Properties") - elasticSanPoolProperties: ElasticSanPoolProperties; +@doc("Resource Requests for the pool.") +model Resources { + @doc("Requests for capacity for the pool.") + requests?: Requests; } -@doc("Ephemeral Pool Properties") -model EphemeralPoolProperties { - // Post preview - // @doc("The number of data copies. Default 3.") - // replicas?: int64 = 3; +@doc("Requests for capacity for the pool.") +model Requests { + @doc("Requested capacity of the pool in GiB.") + @minValue(1024) + @maxValue(65536) + storage?: int64 = 1024; +} - @doc("Template name or KV pairs containing disk selection criteria, e.g. model=\"Microsoft NVMe Direct Disk\" to match all Lsv2 NVMe disks.") - diskSelector: string[]; +@doc("Type of the Pool: ephemeralDisk, azureDisk, or elasticsan") +model PoolType { + @doc("Disk Pool Properties") + azureDisk?: AzureDisk; - @doc("Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).") - disks: string[]; + @doc("Elastic San Pool Properties") + elasticSan?: ElasticSan; - @doc("Consent to format the local disks.") - diskFormat?: boolean = false; + @doc("Ephemeral Pool Properties") + ephemeralDisk?: EphemeralDisk; } -@doc("Managed Pool Properties") -model ManagedPoolProperties {} +@doc("Reclaim policy") +enum ReclaimPolicy { + @doc("Delete resource") + Delete, -@doc("Elastic San Pool Properties") -model ElasticSanPoolProperties { - @doc("Name of an existing SAN.") - sanName: string; + @doc("Retain resource") + Retain, +} - @doc("Resource group of an existing SAN.") - resourceGroup: string; +@doc("Model for disk for that pool is using") +model Disk { + @doc("ID is the disk identifier visible to the OS. It is typically the WWN or disk ID in formats such as eui.e8238fa6bf530001001b448b45263379 or 0x5002cf6cbc5dd460") + id: string; - @doc("Volume group of an existing SAN.") - volumeGroup: string; + @doc("Reference is the location of the disk in an external system.") + reference: string; } -@doc("Disk Pool Properties") -model DiskPoolProperties { - // Don't include in preview - // @doc("Name of the CSI provisioner, e.g. disk.csi.azure.com") - // csiProvisioner?: string; - - @doc("List of KV pairs to set in StorageClass to configure CSI driver.") - csiParams?: Record; +@doc("Properties shared between azureDisk and elasticSan") +model ProvisionedPoolProperties { + @visibility("read") + @doc("Managed resource group for the pool.") + resourceGroup?: string; - // @doc("Initial capacity of disks. Application volumes must fit within single disks.") - // diskCapacityRequest: int64; + @visibility("read", "create") + @doc("Sku name") + skuName?: SkuType; - @doc("Maximum capacity of the volumes in GiB the user intends to create. Default 512.") - maxVolumeCapacityGiB?: int64 = 512; + @doc("Encryption specifies the encryption configuration for the Azure Disk pool") + @visibility("read", "create") + encryption?: Encryption; +} +@doc("Properties shared between the azureDisk and ephemeralDisk") +model DiskPoolProperties { @doc("Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).") - disks?: string[]; + disks?: Disk[]; } -@doc("Sku definition") -model Sku { - @doc("Sku name") - name: SkuName; - - @doc("Sku Account Tier") - tier: AccountTier; +@doc("Azure Disk Pool Properties") +model AzureDisk { + ...ProvisionedPoolProperties; + ...DiskPoolProperties; } -/** Sku Name enum type */ -enum SkuName { - /** Invalid Sku */ - Invalid, - /** Premium_LRS Sku */ +@doc("SKU of the underlying managed disk") +enum AzureDiskSkuName { + @doc("Premium_LRS SKU") Premium_LRS, - /** Premium_ZRS Sku */ - Premium_ZRS, -} -/** Account Tier */ -enum AccountTier { - /** Invalid Account Tier */ - Invalid, - /** Standard Tier */ - Standard, - /** Premium Tier */ - Premium, - /** Ultra Tier */ - Ultra, -} + @doc("Standard_LRS SKU") + Standard_LRS, -@doc("Network Rule Set definition") -model NetworkRuleSet { - @doc("Default action") - defaultAction: Action; + @doc("StandardSSD_LRS SKU") + StandardSSD_LRS, - @doc("Virtual network rules") - virtualNetworkRules: VirtualNetworkRule[]; -} + @doc("UltraSSD_LRS SKU") + UltraSSD_LRS, -@doc("Virtual Network Rule definition") -model VirtualNetworkRule { - @doc("Action of rule") - action?: Action = Action.Allow; + @doc("Premium_ZRS SKU") + Premium_ZRS, - @doc("Id of rule") - id: string; -} + @doc("PremiumV2_LRS SKU") + PremiumV2_LRS, -/** Action Enum */ -enum Action { - /** Deny Action */ - Deny, - /** Allow Action */ - Allow, + @doc("StandardSSD_ZRS SKU") + StandardSSD_ZRS, } -/** Protocol Type */ -enum ProtocolType { - /** No Protocol */ - None, - /** iSCSI protocol */ - iSCSI, -} +@doc("Encryption key properties for the pool.") +model Encryption { + @doc("The name of the key vault key.") + keyName: string; -/** Encryption Type */ -enum EncryptionType { - /** Encryption at rest with platform key */ - EncryptionAtRestWithPlatformKey, -} + @doc("The URI of the key vault.") + keyVaultUri: string; -/** Pool Type */ -enum PoolType { - /** Ephemeral Pool */ - Ephemeral: 1, - /** Disk Pool */ - Disk: 2, - /** Managed Pool */ - Managed: 3, - /** ElasticSan Pool */ - ElasticSan: 4, + ...ManagedServiceIdentity; } -/** Volume binding mode */ -enum VolumeBindingMode { - /** Immediate binding */ - Immediate, - /** Wait for customer to bind */ - WaitFirstForCustomer, +@doc("Elastic San Pool Properties") +model ElasticSan { + ...ProvisionedPoolProperties; } -@doc("Disk Properties Model") -model DiskProperties { - @doc("Reference to Managed Disk") - resourceId: string; - - @doc("Manufacturer Disk ID") - wwn: string; - - @doc("Capacity of disk in GiB") - capacityGiB: int64; - - @doc("Type of disk") - diskType: DiskType; - - @doc("SKU or Manufacturer type/name") - displayName: string; - - @doc("Name of the node disk is attached on") - nodeName: string; +/** Sku Name enum type */ +@doc("ElasticSAN SKUs") +enum ElasticSanSkuName { + @doc("Premium_LRS SKU") + Premium_LRS, - @doc("Used to import SSD to discover WWN") - devicePath: string; + @doc("Premium_ZRS SKU") + Premium_ZRS, } -/** Disk Type */ -enum DiskType { - /** Local Disk Type */ - Local, - /** Managed Disk Type */ - Managed, +@doc("Ephemeral Disk Pool Properties") +model EphemeralDisk { + @doc("The number of data copies. Default 3.") + @minValue(1) + @maxValue(3) + replicas?: int64 = 3; + + ...DiskPoolProperties; } @doc("Provisioning state of the resource.") @@ -266,6 +226,27 @@ enum ProvisioningState { Accepted, } +@doc("Status of the resource") +model ResourceOperationalStatus { + @doc("state of the resource") + state: ResourceOperationStatusState; + + @doc("Reason for state.") + message?: string; +} + +@doc("State of the resource.") +enum ResourceOperationStatusState { + @doc("The resource is pending.") + Pending, + + @doc("The resource is available.") + Available, + + @doc("The resource is unavailable.") + Unavailable, +} + // END POOL // START VOLUME @@ -273,7 +254,9 @@ enum ProvisioningState { @parentResource(Pool) model Volume is ProxyResource { @doc("Volume Resource") - @pattern("^[a-zA-Z0-9-]{3,24}$") + @minLength(3) + @maxLength(253) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$") @key("volumeName") @path @segment("volumes") @@ -286,84 +269,40 @@ model VolumeProperties { @doc("The status of the last operation.") provisioningState?: ProvisioningState; - // Will not have features enabled by these flags for preview - // @doc("List of boolean feature-flags, e.g. pool/volume auto-expansion, reclaim policy.") - // features?: Record; + @doc("The status of the resource.") + @visibility("read") + status?: ResourceOperationalStatus; @doc("String KV pairs indicating labels") labels: Record; @doc("Requested capacity in GiB") + @maxValue(65536) + @minValue(1) capacityGiB: int64; - @doc("Indicates how the volume should be attached") - volumeMode: VolumeMode; - - // Set default to RWO in RP and pass it through - // @doc("Indicates how the volume can be accessed") - // accessMode: AccessMode; - - // Don't support replication for preview - // @doc("Number of replicas") - // replicas: int64; - - @doc("Reclaim Policy, Delete or Retain") - reclaimPolicy: ReclaimPolicy; - - @doc("List of string mount options") - mountOptions: string[]; - - // Don't support for preview - // @doc("Placement properties") - // placementProperties: PlacementProperties; -} - -/** Storage volume mode */ -enum VolumeMode { - /** FileSystem volume mode */ - Filesystem, - /** Raw volume mode */ - Raw, -} - -/** Access mode */ -enum AccessMode { - /** Read Write Once */ - ReadWriteOnce, - /** Read Only Many */ - ReadOnlyMany, - /** Read Write Many */ - ReadWriteMany, - /** Shared Read Write Once Pod */ - ReadWriteOncePod, + @visibility("read") + @doc("Properties of the volume") + volumeType?: VolumeType; } -/** Reclaim Policy */ -enum ReclaimPolicy { - /** Delete resource */ - Delete, - /** Retain resource */ - Retain, +@doc("Properties of the volume") +model VolumeType { + @visibility("read") + @doc("Properties of the ElasticSAN iSCSI target") + elasticSan?: ElasticSanVolumeProperties; } -@doc("Placement Properties Model") -model PlacementProperties { - @doc("Affinity label selector") - affinityLabelSelector: string; - - @doc("Anti affinity label selector") - antiAffinityLabelSelector: string; +@doc("Properties of the ElasticSAN iSCSI target") +model ElasticSanVolumeProperties { + @doc("iSCSI Target IQN (iSCSI Qualified Name); example: \"iqn.2005-03.org.iscsi:server\"") + targetIqn: string; - @doc("When unsatisfiable") - whenUnsatisfiable: WhenUnsatisfiable; -} + @doc("iSCSI Target Portal Host Name") + targetPortalHostname: string; -/** When request unsatisfiable */ -enum WhenUnsatisfiable { - /** Do not schedule */ - DoNotSchedule, - /** Schedule anyway */ - ScheduleAnyway, + @doc("iSCSI Target Portal Port") + targetPortalPort: int32; } // END VOLUME @@ -371,45 +310,94 @@ enum WhenUnsatisfiable { // START VOLUME SNAPSHOT @parentResource(Pool) -model VolumeSnapshot is ProxyResource { +model Snapshot is ProxyResource { @doc("Volume Snapshot Resource") - @pattern("^[a-zA-Z0-9-]{3,24}$") - @key("volumeSnapshotName") + @minLength(3) + @maxLength(253) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$") + @key("snapshotName") @path - @segment("volumeSnapshots") + @segment("snapshots") name: string; } @doc("Volume Snapshot Properties") -model VolumeSnapshotProperties { +model SnapshotProperties { @visibility("read") @doc("The status of the last operation.") provisioningState?: ProvisioningState; - // Don't include in preview - // @doc("List of boolean feature-flags, e.g. pool/volume auto-expansion, reclaim policy.") - // features?: Record; + @doc("The status of the resource.") + @visibility("read") + status?: ResourceOperationalStatus; @doc("Reference to the source volume") + @minLength(3) + @maxLength(253) + @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$") + @visibility("read", "create") source: string; +} + +// END VOLUME SNAPSHOT - @doc("Indicates how the volumes created from the snapshot should be attached") - volumeMode: VolumeMode; +// START ASSIGNMENT - @doc("Reclaim Policy, Delete or Retain") - reclaimPolicy: ReclaimPolicy; +@doc("Status of the assignment resource") +model AssignmentStatus { + @doc("State of the assignment resource") + state: AssignmentStatusState; - @doc("List of string mount options") - mountOptions: string[]; + @doc("Reason for the status") + message?: string; } -// END VOLUME SNAPSHOT +@doc("Status of the assignment resource") +enum AssignmentStatusState { + @doc("The assignment of the pool to the resource is in progress") + Assigning, + + @doc("The assignment to the pool was successful.") + Assigned, + + @doc("The pool is being unassigned.") + Unassigning, + + @doc("The operation of assigning or unassigning the pool failed.") + Failed, +} + +scalar AssignmentId + extends Azure.ResourceManager.ResourceIdentifier<[ + { + type: "Microsoft.ContainerService/managedClusters", + } + ]>; + +@doc("Assignment Properties") +model Assignment { + @visibility("read") + @doc("Indicates if the assignment is in a usable state") + status?: AssignmentStatus; + + @visibility("read", "create") + @doc("Resource id for the assigned resource") + id: AssignmentId; +} + +// END ASSIGNMENT @armResourceOperations interface Pools { get is ArmResourceRead; - createOrUpdate is ArmResourceCreateOrUpdateAsync; - delete is ArmResourceDeleteAsync; + @extension( + "x-ms-long-running-operation-options", + { + `final-state-via`: "location", + } + ) + createOrUpdate is ArmResourceCreateOrUpdate2Async; + delete is ArmResourceDelete2Async; update is ArmResourcePatchAsync; listByResourceGroup is ArmResourceListByParent; listBySubscription is ArmListBySubscription; @@ -418,24 +406,78 @@ interface Pools { @armResourceOperations interface Volumes { get is ArmResourceRead; - createOrUpdate is ArmResourceCreateOrUpdateAsync; - delete is ArmResourceDeleteAsync; + @extension( + "x-ms-long-running-operation-options", + { + `final-state-via`: "location", + } + ) + createOrUpdate is ArmResourceCreateOrUpdate2Async; + delete is ArmResourceDelete2Async; update is ArmResourcePatchAsync; - listByResourceGroup is ArmResourceListByParent; + listByPool is ArmResourceListByParent; } @armResourceOperations -interface VolumeSnapshots { - get is ArmResourceRead; - createOrUpdate is ArmResourceCreateOrUpdateAsync; - delete is ArmResourceDeleteAsync; - +interface Snapshots { + get is ArmResourceRead; @extension( "x-ms-long-running-operation-options", { - `final-state-via`: "azure-async-operation", + `final-state-via`: "location", } ) - update is ArmResourcePatchAsync; - listByResourceGroup is ArmResourceListByParent; + createOrUpdate is ArmResourceCreateOrUpdate2Async; + delete is ArmResourceDelete2Async; + listByPool is ArmResourceListByParent; } + +/** Compliant create or update template */ +/** + * A long-running resource CreateOrUpdate (PUT) + * @template TResource the resource being patched + * @template TBaseParameters Optional. Allows overriding the operation parameters + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation-outside-interface" "This is a valid template" +@autoRoute +@doc("Create a {name}", TResource) +@extension("x-ms-long-running-operation", true) +@extension( + "x-ms-long-running-operation-options", + { + `final-state-via`: "azure-async-operation", + } +) +@armResourceCreateOrUpdate(TResource) +@put +op ArmResourceCreateOrUpdate2Async< + TResource extends Azure.ResourceManager.Foundations.ArmResource, + TBaseParameters = Azure.ResourceManager.Foundations.BaseParameters +>( + ...ResourceInstanceParameters, + + @doc("Resource create parameters.") + @body + resource: TResource, +): ArmUpdatedResponse | ArmCreatedResponse | ErrorResponse; + +@doc("ARM update operation completed successfully") +model ArmUpdatedResponse + is ArmResponse; + +/** Compliant create or update template */ +/** +/** + * @dev Delete a resource asynchronously. DEPRECATED: Use ArmResourceDeleteWithoutOkAsync instead + * @template TResource The resource being deleted + * @template TBaseParameters Optional. Allows overriding the parameters for the operation + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation-outside-interface" "This is a valid template" +op ArmResourceDelete2Async< + TResource extends ArmResource, + TBaseParameters = BaseParameters +> is ArmResourceDeleteAsyncBase< + TResource, + ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse, + TBaseParameters +>; diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Operations_List_MaximumSet_Gen.json deleted file mode 100644 index e53c3a0372b3..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Operations_List_MaximumSet_Gen.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "title": "Operations_List_MaximumSet_Gen", - "operationId": "Operations_List", - "parameters": { - "api-version": "2023-03-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "owtamtreuhzeozjyrtuzzzy", - "isDataAction": true, - "display": { - "provider": "qbrtf", - "resource": "lfvgfkoojojdmh", - "operation": "hvhshxzzfqahja", - "description": "ahsrxzaeoioiwywbzljjpyrrw" - }, - "origin": "user", - "actionType": "Internal" - } - ], - "nextLink": "tgimrrxavadttwluarmurs" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Operations_List_MinimumSet_Gen.json deleted file mode 100644 index 89c6cd2706db..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Operations_List_MinimumSet_Gen.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Operations_List_MinimumSet_Gen", - "operationId": "Operations_List", - "parameters": { - "api-version": "2023-03-01-preview" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_CreateOrUpdate_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_CreateOrUpdate_MaximumSet_Gen.json deleted file mode 100644 index da8c653a6e8f..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_CreateOrUpdate_MaximumSet_Gen.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "title": "Pools_CreateOrUpdate_MaximumSet_Gen", - "operationId": "Pools_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "-EXNI2WK48", - "resource": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct" - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_CreateOrUpdate_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_CreateOrUpdate_MinimumSet_Gen.json deleted file mode 100644 index 7cc22949265c..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_CreateOrUpdate_MinimumSet_Gen.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "title": "Pools_CreateOrUpdate_MinimumSet_Gen", - "operationId": "Pools_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "J873cXX1w3sIX", - "resource": { - "location": "jdfanwoyiigytvanvct" - } - }, - "responses": { - "200": { - "body": { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Delete_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Delete_MaximumSet_Gen.json deleted file mode 100644 index 3e62b608d59d..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Delete_MaximumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Pools_Delete_MaximumSet_Gen", - "operationId": "Pools_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "u0E5" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Delete_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Delete_MinimumSet_Gen.json deleted file mode 100644 index 8172451478e1..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Delete_MinimumSet_Gen.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title": "Pools_Delete_MinimumSet_Gen", - "operationId": "Pools_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "HOL3KPOM7242-P-I--KH9E43" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Get_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Get_MaximumSet_Gen.json deleted file mode 100644 index 93954f9702f4..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Get_MaximumSet_Gen.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "title": "Pools_Get_MaximumSet_Gen", - "operationId": "Pools_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "ht5ZGIN6x25loiC" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Get_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Get_MinimumSet_Gen.json deleted file mode 100644 index 674b4aa1db3e..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Get_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "Pools_Get_MinimumSet_Gen", - "operationId": "Pools_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "V9-7SH6R6I" - }, - "responses": { - "200": { - "body": { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListByResourceGroup_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListByResourceGroup_MaximumSet_Gen.json deleted file mode 100644 index 23f8069b33d7..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListByResourceGroup_MaximumSet_Gen.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "title": "Pools_ListByResourceGroup_MaximumSet_Gen", - "operationId": "Pools_ListByResourceGroup", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - ], - "nextLink": "https://microsoft.com/agz" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListByResourceGroup_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListByResourceGroup_MinimumSet_Gen.json deleted file mode 100644 index cf40c1732333..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListByResourceGroup_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Pools_ListByResourceGroup_MinimumSet_Gen", - "operationId": "Pools_ListByResourceGroup", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - ] - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListBySubscription_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListBySubscription_MaximumSet_Gen.json deleted file mode 100644 index 942af39b73eb..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListBySubscription_MaximumSet_Gen.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "title": "Pools_ListBySubscription_MaximumSet_Gen", - "operationId": "Pools_ListBySubscription", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "mzjpggkkungkugtucivmxfjnxmzdj" - ], - "poolCapacityGiB": 23, - "assignments": [ - "qvheujgnqksryltqtkjty" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "nvpe" - ], - "disks": [ - "zokpazvsbrjvkwhsss" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "gu", - "resourceGroup": "bjdqfuspbvlgkhsyt", - "volumeGroup": "csbzebtsmcnhxzqp" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - ], - "nextLink": "https://microsoft.com/agz" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListBySubscription_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListBySubscription_MinimumSet_Gen.json deleted file mode 100644 index 6e9b0d02391f..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListBySubscription_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Pools_ListBySubscription_MinimumSet_Gen", - "operationId": "Pools_ListBySubscription", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "location": "jdfanwoyiigytvanvct", - "id": "a" - } - ] - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Update_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Update_MaximumSet_Gen.json deleted file mode 100644 index 7c18742fa7c4..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Update_MaximumSet_Gen.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "title": "Pools_Update_MaximumSet_Gen", - "operationId": "Pools_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "Y-PF", - "properties": { - "tags": { - "key7084": "iptnkecjrxqvxsrdytkdkpkmb" - }, - "properties": { - "poolType": 26, - "zones": [ - "puufhsusjhvxxqww" - ], - "poolCapacityGiB": 12, - "assignments": [ - "wmagvstbeupzrzfzioso" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "yfjqysccjrjyiylgfkwhe" - ], - "disks": [ - "vkkxfajasnwnynjrjtpluipqnizjy" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "uukitjcvismzmxhr", - "resourceGroup": "myerdtpqquqjsejb", - "volumeGroup": "vtxfikamxvskohdi" - } - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "poolType": 26, - "zones": [ - "puufhsusjhvxxqww" - ], - "poolCapacityGiB": 23, - "assignments": [ - "wmagvstbeupzrzfzioso" - ], - "ephemeralPoolProperties": { - "diskSelector": [ - "yfjqysccjrjyiylgfkwhe" - ], - "disks": [ - "vkkxfajasnwnynjrjtpluipqnizjy" - ], - "diskFormat": true - }, - "diskPoolProperties": { - "csiParams": { - "key3964": "og" - }, - "maxVolumeCapacityGiB": 11, - "disks": [ - "wtsj" - ] - }, - "elasticSanPoolProperties": { - "sanName": "uukitjcvismzmxhr", - "resourceGroup": "myerdtpqquqjsejb", - "volumeGroup": "vtxfikamxvskohdi" - } - }, - "tags": { - "key5598": "fxughwwqpqkvojkkuur" - }, - "location": "jdfanwoyiigytvanvct", - "id": "hlogqumrvefltsn", - "name": "rgzqqcqrypwtqhgnvcdilsbquamov", - "type": "hmoqufjwfhcusabczwclqewun", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Update_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Update_MinimumSet_Gen.json deleted file mode 100644 index 7ddaaad611b4..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Update_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "Pools_Update_MinimumSet_Gen", - "operationId": "Pools_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "Q996I753P5F5", - "properties": {} - }, - "responses": { - "200": { - "body": { - "location": "jdfanwoyiigytvanvct" - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen.json deleted file mode 100644 index b128c88a1c6b..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "title": "VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen", - "operationId": "VolumeSnapshots_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "-1Jk-", - "volumeSnapshotName": "XBOVLQ-UDJ2n5kod886SN", - "resource": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen.json deleted file mode 100644 index 99f07b5eef4e..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen", - "operationId": "VolumeSnapshots_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "E-sfxFA3nN-FcID851Rq-Q3u", - "volumeSnapshotName": "CjG-k-K4nWgGVV3VL-jT-5", - "resource": {} - }, - "responses": { - "200": { - "body": {} - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": {} - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json deleted file mode 100644 index 206dd595910b..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "VolumeSnapshots_Delete_MaximumSet_Gen", - "operationId": "VolumeSnapshots_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "-5-35-2U2E-CSe9", - "volumeSnapshotName": "CB-C-4X2EX-O2V-772h-6K" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json deleted file mode 100644 index b7820acd076b..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "VolumeSnapshots_Delete_MinimumSet_Gen", - "operationId": "VolumeSnapshots_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "CE2Gd-F5Qhn62C-dFQMNs", - "volumeSnapshotName": "8-YF-X-38TN4kHcjy" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Get_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Get_MaximumSet_Gen.json deleted file mode 100644 index a590b5877c5a..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Get_MaximumSet_Gen.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "title": "VolumeSnapshots_Get_MaximumSet_Gen", - "operationId": "VolumeSnapshots_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "3S1S67z-KE-50", - "volumeSnapshotName": "dg0-7-W2F-6S7V5Rp" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Get_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Get_MinimumSet_Gen.json deleted file mode 100644 index 36f5b85a896f..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Get_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "VolumeSnapshots_Get_MinimumSet_Gen", - "operationId": "VolumeSnapshots_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "ORF7-4iM", - "volumeSnapshotName": "U43AU9-" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_ListByPool_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_ListByPool_MaximumSet_Gen.json deleted file mode 100644 index 2fa27d2e19ee..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_ListByPool_MaximumSet_Gen.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "title": "VolumeSnapshots_ListByPool_MaximumSet_Gen", - "operationId": "VolumeSnapshots_ListByPool", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "67lG-rcl6-2Y57-i-5m" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "ozllffotmjyosqwx" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_ListByPool_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_ListByPool_MinimumSet_Gen.json deleted file mode 100644 index c54cb25e5809..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_ListByPool_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "VolumeSnapshots_ListByPool_MinimumSet_Gen", - "operationId": "VolumeSnapshots_ListByPool", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "992M7a117-M2---l623E8" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "a" - } - ] - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Update_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Update_MaximumSet_Gen.json deleted file mode 100644 index dff1a86c6ab2..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Update_MaximumSet_Gen.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "title": "VolumeSnapshots_Update_MaximumSet_Gen", - "operationId": "VolumeSnapshots_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "q--0-FXNOU", - "volumeSnapshotName": "KP7A-", - "properties": { - "properties": { - "source": "pwgidsdrmnfv", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "lxarajxhe" - ] - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "source": "oytmtfvq", - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "lxarajxhe" - ] - }, - "id": "vdihfxdstmkozaxfocgt", - "name": "nvn", - "type": "clomxhdbhsjjkb", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Update_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Update_MinimumSet_Gen.json deleted file mode 100644 index babc9f61de2d..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Update_MinimumSet_Gen.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "title": "VolumeSnapshots_Update_MinimumSet_Gen", - "operationId": "VolumeSnapshots_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "kd2Zk6-IlA7B54LjVU", - "volumeSnapshotName": "HVQX-F5-3-2t-YEJ", - "properties": {} - }, - "responses": { - "200": { - "body": {} - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_CreateOrUpdate_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_CreateOrUpdate_MaximumSet_Gen.json deleted file mode 100644 index 30473334b607..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_CreateOrUpdate_MaximumSet_Gen.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "title": "Volumes_CreateOrUpdate_MaximumSet_Gen", - "operationId": "Volumes_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "L-7Vr5xE3", - "volumeName": "y4borPc1GHLej48W3", - "resource": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_CreateOrUpdate_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_CreateOrUpdate_MinimumSet_Gen.json deleted file mode 100644 index 8fc2234cdcd4..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_CreateOrUpdate_MinimumSet_Gen.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "title": "Volumes_CreateOrUpdate_MinimumSet_Gen", - "operationId": "Volumes_CreateOrUpdate", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "-3-0", - "volumeName": "q-r6KY54UA6G5TPSTL83", - "resource": {} - }, - "responses": { - "200": { - "body": {} - }, - "201": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - }, - "body": {} - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Delete_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Delete_MaximumSet_Gen.json deleted file mode 100644 index 10e11a79badb..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Delete_MaximumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Volumes_Delete_MaximumSet_Gen", - "operationId": "Volumes_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "PtV22-U-SY3zstj5", - "volumeName": "mm9Sj-3" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Delete_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Delete_MinimumSet_Gen.json deleted file mode 100644 index 7b2ac7125812..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Delete_MinimumSet_Gen.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "title": "Volumes_Delete_MinimumSet_Gen", - "operationId": "Volumes_Delete", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "2O4W", - "volumeName": "563---P1-R" - }, - "responses": { - "200": {}, - "202": { - "headers": { - "location": "https://contoso.com/operationstatus" - } - }, - "204": {} - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Get_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Get_MaximumSet_Gen.json deleted file mode 100644 index 1c01e849757c..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Get_MaximumSet_Gen.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "title": "Volumes_Get_MaximumSet_Gen", - "operationId": "Volumes_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "Y3U--n-tTd-6Kw5f", - "volumeName": "4-8-qQ-n271-" - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Get_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Get_MinimumSet_Gen.json deleted file mode 100644 index e2839c28b331..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Get_MinimumSet_Gen.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "title": "Volumes_Get_MinimumSet_Gen", - "operationId": "Volumes_Get", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "7o-47nN4H4F1", - "volumeName": "27RG-gCepP4" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_ListByPool_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_ListByPool_MaximumSet_Gen.json deleted file mode 100644 index 7487d67b53a9..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_ListByPool_MaximumSet_Gen.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "title": "Volumes_ListByPool_MaximumSet_Gen", - "operationId": "Volumes_ListByPool", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "2-47N73-6-rr28og" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "bztwmyruogigzqnwzpnjxjo" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - ], - "nextLink": "https://microsoft.com/a" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_ListByPool_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_ListByPool_MinimumSet_Gen.json deleted file mode 100644 index ea5fd01f8bea..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_ListByPool_MinimumSet_Gen.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "title": "Volumes_ListByPool_MinimumSet_Gen", - "operationId": "Volumes_ListByPool", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "22J6--48-c8-3F4XQ-u63ko5" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "a" - } - ] - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Update_MaximumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Update_MaximumSet_Gen.json deleted file mode 100644 index 198259734aea..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Update_MaximumSet_Gen.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "title": "Volumes_Update_MaximumSet_Gen", - "operationId": "Volumes_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "THTW6Q-MdHA-uGSHBNW3-8c", - "volumeName": "95c1b7n6v36-dU-", - "properties": { - "properties": { - "labels": { - "key1348": "rykxllqddzkapmyyatmcsjstsyq" - }, - "capacityGiB": 22, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "oyqneisrwfzqkoiqrxz" - ] - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "provisioningState": "Succeeded", - "labels": { - "key6929": "cylq" - }, - "capacityGiB": 4, - "volumeMode": "Filesystem", - "reclaimPolicy": "Delete", - "mountOptions": [ - "oyqneisrwfzqkoiqrxz" - ] - }, - "id": "uhsbnbojqymtspvbxzzjoepbyhgr", - "name": "qw", - "type": "lkenytlijokfqtqconztfgk", - "systemData": { - "createdBy": "nvbhamonwl", - "createdByType": "User", - "createdAt": "2023-03-06T18:31:46.331Z", - "lastModifiedBy": "phtpjykzjrkgahpazxqnrp", - "lastModifiedByType": "User", - "lastModifiedAt": "2023-03-06T18:31:46.331Z" - } - } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Update_MinimumSet_Gen.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Update_MinimumSet_Gen.json deleted file mode 100644 index b70f14484ca3..000000000000 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Update_MinimumSet_Gen.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "title": "Volumes_Update_MinimumSet_Gen", - "operationId": "Volumes_Update", - "parameters": { - "api-version": "2023-03-01-preview", - "subscriptionId": "898F98EB-4EB4-4FDB-9B85-F53156F1B5ED", - "resourceGroupName": "rgcontainerstorage", - "poolName": "44NPG8P2DT-DH73S8", - "volumeName": "7eHg-KG-4X-YLrHc-80-4-m", - "properties": {} - }, - "responses": { - "200": { - "body": {} - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://contoso.com/operationstatus" - } - } - } -} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/containerstorage.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/containerstorage.json similarity index 63% rename from specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/containerstorage.json rename to specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/containerstorage.json index 0afc03d89d2b..9c95de1b7e94 100644 --- a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/containerstorage.json +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/containerstorage.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Azure-ContainerStorageRP", - "version": "2023-03-01-preview", + "version": "2023-07-01-preview", "description": "Azure Container Storage Resource Provider API.", "x-typespec-generated": [ { @@ -49,7 +49,7 @@ "name": "Volumes" }, { - "name": "VolumeSnapshots" + "name": "Snapshots" } ], "paths": { @@ -80,11 +80,8 @@ } }, "x-ms-examples": { - "Operations_List_MaximumSet_Gen": { - "$ref": "./examples/Operations_List_MaximumSet_Gen.json" - }, - "Operations_List_MinimumSet_Gen": { - "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + "Operations_List": { + "$ref": "./examples/Operations_List.json" } }, "x-ms-pageable": { @@ -122,11 +119,14 @@ } }, "x-ms-examples": { - "Pools_ListBySubscription_MaximumSet_Gen": { - "$ref": "./examples/Pools_ListBySubscription_MaximumSet_Gen.json" + "Pools_ListBySubscription_AzureDisk": { + "$ref": "./examples/Pools_ListBySubscription_AzureDisk.json" + }, + "Pools_ListBySubscription_ElasticSan": { + "$ref": "./examples/Pools_ListBySubscription_ElasticSan.json" }, - "Pools_ListBySubscription_MinimumSet_Gen": { - "$ref": "./examples/Pools_ListBySubscription_MinimumSet_Gen.json" + "Pools_ListBySubscription_Ephemeral": { + "$ref": "./examples/Pools_ListBySubscription_Ephemeral.json" } }, "x-ms-pageable": { @@ -167,11 +167,14 @@ } }, "x-ms-examples": { - "Pools_ListByResourceGroup_MaximumSet_Gen": { - "$ref": "./examples/Pools_ListByResourceGroup_MaximumSet_Gen.json" + "Pools_ListByResourceGroup_AzureDisk": { + "$ref": "./examples/Pools_ListByResourceGroup_AzureDisk.json" }, - "Pools_ListByResourceGroup_MinimumSet_Gen": { - "$ref": "./examples/Pools_ListByResourceGroup_MinimumSet_Gen.json" + "Pools_ListByResourceGroup_ElasticSan": { + "$ref": "./examples/Pools_ListByResourceGroup_ElasticSan.json" + }, + "Pools_ListByResourceGroup_Ephemeral": { + "$ref": "./examples/Pools_ListByResourceGroup_Ephemeral.json" } }, "x-ms-pageable": { @@ -202,7 +205,9 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" } ], "responses": { @@ -220,11 +225,14 @@ } }, "x-ms-examples": { - "Pools_Get_MaximumSet_Gen": { - "$ref": "./examples/Pools_Get_MaximumSet_Gen.json" + "Pools_Get_AzureDisk": { + "$ref": "./examples/Pools_Get_AzureDisk.json" + }, + "Pools_Get_ElasticSan": { + "$ref": "./examples/Pools_Get_ElasticSan.json" }, - "Pools_Get_MinimumSet_Gen": { - "$ref": "./examples/Pools_Get_MinimumSet_Gen.json" + "Pools_Get_Ephemeral": { + "$ref": "./examples/Pools_Get_Ephemeral.json" } } }, @@ -250,7 +258,9 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "resource", @@ -264,7 +274,7 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "ARM update operation completed successfully", "schema": { "$ref": "#/definitions/Pool" } @@ -290,15 +300,18 @@ } }, "x-ms-examples": { - "Pools_CreateOrUpdate_MaximumSet_Gen": { - "$ref": "./examples/Pools_CreateOrUpdate_MaximumSet_Gen.json" + "Pools_CreateOrUpdate_AzureDisk": { + "$ref": "./examples/Pools_CreateOrUpdate_AzureDisk.json" + }, + "Pools_CreateOrUpdate_ElasticSan": { + "$ref": "./examples/Pools_CreateOrUpdate_ElasticSan.json" }, - "Pools_CreateOrUpdate_MinimumSet_Gen": { - "$ref": "./examples/Pools_CreateOrUpdate_MinimumSet_Gen.json" + "Pools_CreateOrUpdate_Ephemeral": { + "$ref": "./examples/Pools_CreateOrUpdate_Ephemeral.json" } }, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-long-running-operation": true }, @@ -324,7 +337,9 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "properties", @@ -365,11 +380,14 @@ } }, "x-ms-examples": { - "Pools_Update_MaximumSet_Gen": { - "$ref": "./examples/Pools_Update_MaximumSet_Gen.json" + "Pools_Update_AzureDisk": { + "$ref": "./examples/Pools_Update_AzureDisk.json" + }, + "Pools_Update_ElasticSan": { + "$ref": "./examples/Pools_Update_ElasticSan.json" }, - "Pools_Update_MinimumSet_Gen": { - "$ref": "./examples/Pools_Update_MinimumSet_Gen.json" + "Pools_Update_Ephemeral": { + "$ref": "./examples/Pools_Update_Ephemeral.json" } }, "x-ms-long-running-operation-options": { @@ -382,7 +400,7 @@ "tags": [ "Pools" ], - "description": "Delete a Pool", + "description": "Compliant create or update template/**", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -399,13 +417,12 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" } ], "responses": { - "200": { - "description": "Resource deleted successfully." - }, "202": { "description": "Resource deletion accepted.", "headers": { @@ -431,11 +448,8 @@ } }, "x-ms-examples": { - "Pools_Delete_MaximumSet_Gen": { - "$ref": "./examples/Pools_Delete_MaximumSet_Gen.json" - }, - "Pools_Delete_MinimumSet_Gen": { - "$ref": "./examples/Pools_Delete_MinimumSet_Gen.json" + "Pools_Delete": { + "$ref": "./examples/Pools_Delete.json" } }, "x-ms-long-running-operation-options": { @@ -444,13 +458,13 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/volumeSnapshots": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/snapshots": { "get": { - "operationId": "VolumeSnapshots_ListByPool", + "operationId": "Snapshots_ListByPool", "tags": [ - "VolumeSnapshots" + "Snapshots" ], - "description": "List VolumeSnapshot resources by Pool", + "description": "List Snapshot resources by Pool", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -467,14 +481,16 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" } ], "responses": { "200": { "description": "ARM operation completed successfully.", "schema": { - "$ref": "#/definitions/VolumeSnapshotListResult" + "$ref": "#/definitions/SnapshotListResult" } }, "default": { @@ -485,11 +501,8 @@ } }, "x-ms-examples": { - "VolumeSnapshots_ListByPool_MaximumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_ListByPool_MaximumSet_Gen.json" - }, - "VolumeSnapshots_ListByPool_MinimumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_ListByPool_MinimumSet_Gen.json" + "Snapshots_ListByPool": { + "$ref": "./examples/Snapshots_ListByPool.json" } }, "x-ms-pageable": { @@ -497,13 +510,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/volumeSnapshots/{volumeSnapshotName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/snapshots/{snapshotName}": { "get": { - "operationId": "VolumeSnapshots_Get", + "operationId": "Snapshots_Get", "tags": [ - "VolumeSnapshots" + "Snapshots" ], - "description": "Get a VolumeSnapshot", + "description": "Get a Snapshot", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -520,22 +533,26 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { - "name": "volumeSnapshotName", + "name": "snapshotName", "in": "path", "description": "Volume Snapshot Resource", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" } ], "responses": { "200": { "description": "ARM operation completed successfully.", "schema": { - "$ref": "#/definitions/VolumeSnapshot" + "$ref": "#/definitions/Snapshot" } }, "default": { @@ -546,20 +563,17 @@ } }, "x-ms-examples": { - "VolumeSnapshots_Get_MaximumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_Get_MaximumSet_Gen.json" - }, - "VolumeSnapshots_Get_MinimumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_Get_MinimumSet_Gen.json" + "Snapshots_Get": { + "$ref": "./examples/Snapshots_Get.json" } } }, "put": { - "operationId": "VolumeSnapshots_CreateOrUpdate", + "operationId": "Snapshots_CreateOrUpdate", "tags": [ - "VolumeSnapshots" + "Snapshots" ], - "description": "Create a VolumeSnapshot", + "description": "Create a Snapshot", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -576,15 +590,19 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { - "name": "volumeSnapshotName", + "name": "snapshotName", "in": "path", "description": "Volume Snapshot Resource", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "resource", @@ -592,21 +610,21 @@ "description": "Resource create parameters.", "required": true, "schema": { - "$ref": "#/definitions/VolumeSnapshot" + "$ref": "#/definitions/Snapshot" } } ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "ARM update operation completed successfully", "schema": { - "$ref": "#/definitions/VolumeSnapshot" + "$ref": "#/definitions/Snapshot" } }, "201": { "description": "ARM create operation completed successfully.", "schema": { - "$ref": "#/definitions/VolumeSnapshot" + "$ref": "#/definitions/Snapshot" }, "headers": { "Retry-After": { @@ -624,107 +642,21 @@ } }, "x-ms-examples": { - "VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen.json" - }, - "VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen.json" - } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-long-running-operation": true - }, - "patch": { - "operationId": "VolumeSnapshots_Update", - "tags": [ - "VolumeSnapshots" - ], - "description": "Update a VolumeSnapshot", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "poolName", - "in": "path", - "description": "Pool Object", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" - }, - { - "name": "volumeSnapshotName", - "in": "path", - "description": "Volume Snapshot Resource", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" - }, - { - "name": "properties", - "in": "body", - "description": "The resource properties to be updated.", - "required": true, - "schema": { - "$ref": "#/definitions/VolumeSnapshotUpdate" - } - } - ], - "responses": { - "200": { - "description": "ARM operation completed successfully.", - "schema": { - "$ref": "#/definitions/VolumeSnapshot" - } - }, - "202": { - "description": "Resource update request accepted.", - "headers": { - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "VolumeSnapshots_Update_MaximumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_Update_MaximumSet_Gen.json" - }, - "VolumeSnapshots_Update_MinimumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_Update_MinimumSet_Gen.json" + "Snapshots_CreateOrUpdate": { + "$ref": "./examples/Snapshots_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-long-running-operation": true }, "delete": { - "operationId": "VolumeSnapshots_Delete", + "operationId": "Snapshots_Delete", "tags": [ - "VolumeSnapshots" + "Snapshots" ], - "description": "Delete a VolumeSnapshot", + "description": "Compliant create or update template/**", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -741,21 +673,22 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { - "name": "volumeSnapshotName", + "name": "snapshotName", "in": "path", "description": "Volume Snapshot Resource", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" } ], "responses": { - "200": { - "description": "Resource deleted successfully." - }, "202": { "description": "Resource deletion accepted.", "headers": { @@ -781,11 +714,8 @@ } }, "x-ms-examples": { - "VolumeSnapshots_Delete_MaximumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_Delete_MaximumSet_Gen.json" - }, - "VolumeSnapshots_Delete_MinimumSet_Gen": { - "$ref": "./examples/VolumeSnapshots_Delete_MinimumSet_Gen.json" + "Snapshots_Delete": { + "$ref": "./examples/Snapshots_Delete.json" } }, "x-ms-long-running-operation-options": { @@ -817,7 +747,9 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" } ], "responses": { @@ -835,11 +767,8 @@ } }, "x-ms-examples": { - "Volumes_ListByPool_MaximumSet_Gen": { - "$ref": "./examples/Volumes_ListByPool_MaximumSet_Gen.json" - }, - "Volumes_ListByPool_MinimumSet_Gen": { - "$ref": "./examples/Volumes_ListByPool_MinimumSet_Gen.json" + "Volumes_ListByPool": { + "$ref": "./examples/Volumes_ListByPool.json" } }, "x-ms-pageable": { @@ -870,7 +799,9 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "volumeName", @@ -878,7 +809,9 @@ "description": "Volume Resource", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" } ], "responses": { @@ -896,11 +829,8 @@ } }, "x-ms-examples": { - "Volumes_Get_MaximumSet_Gen": { - "$ref": "./examples/Volumes_Get_MaximumSet_Gen.json" - }, - "Volumes_Get_MinimumSet_Gen": { - "$ref": "./examples/Volumes_Get_MinimumSet_Gen.json" + "Volumes_Get": { + "$ref": "./examples/Volumes_Get.json" } } }, @@ -926,7 +856,9 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "volumeName", @@ -934,7 +866,9 @@ "description": "Volume Resource", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "resource", @@ -948,7 +882,7 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "ARM update operation completed successfully", "schema": { "$ref": "#/definitions/Volume" } @@ -974,15 +908,12 @@ } }, "x-ms-examples": { - "Volumes_CreateOrUpdate_MaximumSet_Gen": { - "$ref": "./examples/Volumes_CreateOrUpdate_MaximumSet_Gen.json" - }, - "Volumes_CreateOrUpdate_MinimumSet_Gen": { - "$ref": "./examples/Volumes_CreateOrUpdate_MinimumSet_Gen.json" + "Volumes_CreateOrUpdate": { + "$ref": "./examples/Volumes_CreateOrUpdate.json" } }, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-long-running-operation": true }, @@ -1008,7 +939,9 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "volumeName", @@ -1016,7 +949,9 @@ "description": "Volume Resource", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "properties", @@ -1057,11 +992,8 @@ } }, "x-ms-examples": { - "Volumes_Update_MaximumSet_Gen": { - "$ref": "./examples/Volumes_Update_MaximumSet_Gen.json" - }, - "Volumes_Update_MinimumSet_Gen": { - "$ref": "./examples/Volumes_Update_MinimumSet_Gen.json" + "Volumes_Update": { + "$ref": "./examples/Volumes_Update.json" } }, "x-ms-long-running-operation-options": { @@ -1074,7 +1006,7 @@ "tags": [ "Volumes" ], - "description": "Delete a Volume", + "description": "Compliant create or update template/**", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1091,7 +1023,9 @@ "description": "Pool Object", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" }, { "name": "volumeName", @@ -1099,13 +1033,12 @@ "description": "Volume Resource", "required": true, "type": "string", - "pattern": "^[a-zA-Z0-9-]{3,24}$" + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$" } ], "responses": { - "200": { - "description": "Resource deleted successfully." - }, "202": { "description": "Resource deletion accepted.", "headers": { @@ -1131,11 +1064,8 @@ } }, "x-ms-examples": { - "Volumes_Delete_MaximumSet_Gen": { - "$ref": "./examples/Volumes_Delete_MaximumSet_Gen.json" - }, - "Volumes_Delete_MinimumSet_Gen": { - "$ref": "./examples/Volumes_Delete_MinimumSet_Gen.json" + "Volumes_Delete": { + "$ref": "./examples/Volumes_Delete.json" } }, "x-ms-long-running-operation-options": { @@ -1146,358 +1076,348 @@ } }, "definitions": { - "AccessMode": { + "Assignment": { + "type": "object", + "description": "Assignment Properties", + "properties": { + "status": { + "$ref": "#/definitions/AssignmentStatus", + "description": "Indicates if the assignment is in a usable state", + "readOnly": true + }, + "id": { + "$ref": "#/definitions/AssignmentId", + "description": "Resource id for the assigned resource", + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "required": [ + "id" + ] + }, + "AssignmentId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an ARM resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ContainerService/managedClusters" + } + ] + } + }, + "AssignmentStatus": { + "type": "object", + "description": "Status of the assignment resource", + "properties": { + "state": { + "$ref": "#/definitions/AssignmentStatusState", + "description": "State of the assignment resource" + }, + "message": { + "type": "string", + "description": "Reason for the status" + } + }, + "required": [ + "state" + ] + }, + "AssignmentStatusState": { "type": "string", - "description": "Access mode", + "description": "Status of the assignment resource", "enum": [ - "ReadWriteOnce", - "ReadOnlyMany", - "ReadWriteMany", - "ReadWriteOncePod" + "Assigning", + "Assigned", + "Unassigning", + "Failed" ], "x-ms-enum": { - "name": "AccessMode", + "name": "AssignmentStatusState", "modelAsString": true, "values": [ { - "name": "ReadWriteOnce", - "value": "ReadWriteOnce", - "description": "Read Write Once" + "name": "Assigning", + "value": "Assigning", + "description": "The assignment of the pool to the resource is in progress" }, { - "name": "ReadOnlyMany", - "value": "ReadOnlyMany", - "description": "Read Only Many" + "name": "Assigned", + "value": "Assigned", + "description": "The assignment to the pool was successful." }, { - "name": "ReadWriteMany", - "value": "ReadWriteMany", - "description": "Read Write Many" + "name": "Unassigning", + "value": "Unassigning", + "description": "The pool is being unassigned." }, { - "name": "ReadWriteOncePod", - "value": "ReadWriteOncePod", - "description": "Shared Read Write Once Pod" + "name": "Failed", + "value": "Failed", + "description": "The operation of assigning or unassigning the pool failed." } ] } }, - "AccountTier": { + "AzureDisk": { + "type": "object", + "description": "Azure Disk Pool Properties", + "properties": { + "resourceGroup": { + "type": "string", + "description": "Managed resource group for the pool.", + "readOnly": true + }, + "skuName": { + "$ref": "#/definitions/AzureDiskSkuName", + "description": "Sku name", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "encryption": { + "$ref": "#/definitions/Encryption", + "description": "Encryption specifies the encryption configuration for the Azure Disk pool", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "disks": { + "type": "array", + "description": "Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).", + "items": { + "$ref": "#/definitions/Disk" + } + } + } + }, + "AzureDiskSkuName": { "type": "string", - "description": "Account Tier", + "description": "SKU of the underlying managed disk", "enum": [ - "Invalid", - "Standard", - "Premium", - "Ultra" + "Premium_LRS", + "Standard_LRS", + "StandardSSD_LRS", + "UltraSSD_LRS", + "Premium_ZRS", + "PremiumV2_LRS", + "StandardSSD_ZRS" ], "x-ms-enum": { - "name": "AccountTier", + "name": "AzureDiskSkuName", "modelAsString": true, "values": [ { - "name": "Invalid", - "value": "Invalid", - "description": "Invalid Account Tier" + "name": "Premium_LRS", + "value": "Premium_LRS", + "description": "Premium_LRS SKU" + }, + { + "name": "Standard_LRS", + "value": "Standard_LRS", + "description": "Standard_LRS SKU" }, { - "name": "Standard", - "value": "Standard", - "description": "Standard Tier" + "name": "StandardSSD_LRS", + "value": "StandardSSD_LRS", + "description": "StandardSSD_LRS SKU" }, { - "name": "Premium", - "value": "Premium", - "description": "Premium Tier" + "name": "UltraSSD_LRS", + "value": "UltraSSD_LRS", + "description": "UltraSSD_LRS SKU" }, { - "name": "Ultra", - "value": "Ultra", - "description": "Ultra Tier" - } - ] - } - }, - "Action": { - "type": "string", - "description": "Action Enum", - "enum": [ - "Deny", - "Allow" - ], - "x-ms-enum": { - "name": "Action", - "modelAsString": true, - "values": [ + "name": "Premium_ZRS", + "value": "Premium_ZRS", + "description": "Premium_ZRS SKU" + }, { - "name": "Deny", - "value": "Deny", - "description": "Deny Action" + "name": "PremiumV2_LRS", + "value": "PremiumV2_LRS", + "description": "PremiumV2_LRS SKU" }, { - "name": "Allow", - "value": "Allow", - "description": "Allow Action" + "name": "StandardSSD_ZRS", + "value": "StandardSSD_ZRS", + "description": "StandardSSD_ZRS SKU" } ] } }, - "DiskPoolProperties": { + "AzureDiskUpdate": { "type": "object", - "description": "Disk Pool Properties", + "description": "Azure Disk Pool Properties", "properties": { - "csiParams": { - "type": "object", - "description": "List of KV pairs to set in StorageClass to configure CSI driver.", - "additionalProperties": { - "type": "string" - } - }, - "maxVolumeCapacityGiB": { - "type": "integer", - "format": "int64", - "description": "Maximum capacity of the volumes in GiB the user intends to create. Default 512.", - "default": 512 - }, "disks": { "type": "array", "description": "Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).", "items": { - "type": "string" + "$ref": "#/definitions/Disk" } } } }, - "DiskProperties": { + "Disk": { "type": "object", - "description": "Disk Properties Model", + "description": "Model for disk for that pool is using", "properties": { - "resourceId": { - "type": "string", - "description": "Reference to Managed Disk" - }, - "wwn": { - "type": "string", - "description": "Manufacturer Disk ID" - }, - "capacityGiB": { - "type": "integer", - "format": "int64", - "description": "Capacity of disk in GiB" - }, - "diskType": { - "$ref": "#/definitions/DiskType", - "description": "Type of disk" - }, - "displayName": { - "type": "string", - "description": "SKU or Manufacturer type/name" - }, - "nodeName": { + "id": { "type": "string", - "description": "Name of the node disk is attached on" + "description": "ID is the disk identifier visible to the OS. It is typically the WWN or disk ID in formats such as eui.e8238fa6bf530001001b448b45263379 or 0x5002cf6cbc5dd460" }, - "devicePath": { + "reference": { "type": "string", - "description": "Used to import SSD to discover WWN" + "description": "Reference is the location of the disk in an external system." } }, "required": [ - "resourceId", - "wwn", - "capacityGiB", - "diskType", - "displayName", - "nodeName", - "devicePath" + "id", + "reference" ] }, - "DiskType": { + "DiskPoolProperties": { + "type": "object", + "description": "Properties shared between the azureDisk and ephemeralDisk", + "properties": { + "disks": { + "type": "array", + "description": "Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).", + "items": { + "$ref": "#/definitions/Disk" + } + } + } + }, + "ElasticSan": { + "type": "object", + "description": "Elastic San Pool Properties", + "properties": { + "resourceGroup": { + "type": "string", + "description": "Managed resource group for the pool.", + "readOnly": true + }, + "skuName": { + "$ref": "#/definitions/ElasticSanSkuName", + "description": "Sku name", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "encryption": { + "$ref": "#/definitions/Encryption", + "description": "Encryption specifies the encryption configuration for the Azure Disk pool", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "ElasticSanSkuName": { "type": "string", - "description": "Disk Type", + "description": "ElasticSAN SKUs", "enum": [ - "Local", - "Managed" + "Premium_LRS", + "Premium_ZRS" ], "x-ms-enum": { - "name": "DiskType", + "name": "ElasticSanSkuName", "modelAsString": true, "values": [ { - "name": "Local", - "value": "Local", - "description": "Local Disk Type" + "name": "Premium_LRS", + "value": "Premium_LRS", + "description": "Premium_LRS SKU" }, { - "name": "Managed", - "value": "Managed", - "description": "Managed Disk Type" + "name": "Premium_ZRS", + "value": "Premium_ZRS", + "description": "Premium_ZRS SKU" } ] } }, - "ElasticSanPoolProperties": { + "ElasticSanUpdate": { "type": "object", "description": "Elastic San Pool Properties", + "properties": {} + }, + "ElasticSanVolumeProperties": { + "type": "object", + "description": "Properties of the ElasticSAN iSCSI target", "properties": { - "sanName": { + "targetIqn": { "type": "string", - "description": "Name of an existing SAN." + "description": "iSCSI Target IQN (iSCSI Qualified Name); example: \"iqn.2005-03.org.iscsi:server\"" }, - "resourceGroup": { + "targetPortalHostname": { "type": "string", - "description": "Resource group of an existing SAN." + "description": "iSCSI Target Portal Host Name" }, - "volumeGroup": { - "type": "string", - "description": "Volume group of an existing SAN." + "targetPortalPort": { + "type": "integer", + "format": "int32", + "description": "iSCSI Target Portal Port" } }, "required": [ - "sanName", - "resourceGroup", - "volumeGroup" + "targetIqn", + "targetPortalHostname", + "targetPortalPort" ] }, - "ElasticSanPoolPropertiesUpdate": { + "Encryption": { "type": "object", - "description": "Elastic San Pool Properties", + "description": "Encryption key properties for the pool.", "properties": { - "sanName": { + "keyName": { "type": "string", - "description": "Name of an existing SAN." + "description": "The name of the key vault key." }, - "resourceGroup": { + "keyVaultUri": { "type": "string", - "description": "Resource group of an existing SAN." + "description": "The URI of the key vault." }, - "volumeGroup": { - "type": "string", - "description": "Volume group of an existing SAN." + "identity": { + "$ref": "../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." } - } + }, + "required": [ + "keyName", + "keyVaultUri" + ] }, - "EncryptionType": { - "type": "string", - "description": "Encryption Type", - "enum": [ - "EncryptionAtRestWithPlatformKey" - ], - "x-ms-enum": { - "name": "EncryptionType", - "modelAsString": true, - "values": [ - { - "name": "EncryptionAtRestWithPlatformKey", - "value": "EncryptionAtRestWithPlatformKey", - "description": "Encryption at rest with platform key" - } - ] - } - }, - "EphemeralPoolProperties": { - "type": "object", - "description": "Ephemeral Pool Properties", - "properties": { - "diskSelector": { - "type": "array", - "description": "Template name or KV pairs containing disk selection criteria, e.g. model=\"Microsoft NVMe Direct Disk\" to match all Lsv2 NVMe disks.", - "items": { - "type": "string" - } - }, - "disks": { - "type": "array", - "description": "Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).", - "items": { - "type": "string" - } - }, - "diskFormat": { - "type": "boolean", - "description": "Consent to format the local disks.", - "default": false - } - }, - "required": [ - "diskSelector", - "disks" - ] - }, - "EphemeralPoolPropertiesUpdate": { + "EphemeralDisk": { "type": "object", - "description": "Ephemeral Pool Properties", + "description": "Ephemeral Disk Pool Properties", "properties": { - "diskSelector": { - "type": "array", - "description": "Template name or KV pairs containing disk selection criteria, e.g. model=\"Microsoft NVMe Direct Disk\" to match all Lsv2 NVMe disks.", - "items": { - "type": "string" - } + "replicas": { + "type": "integer", + "format": "int64", + "description": "The number of data copies. Default 3.", + "default": 3, + "minimum": 1, + "maximum": 3 }, "disks": { "type": "array", "description": "Only required if individual disk selection is desired. Path to disk, e.g. :/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).", "items": { - "type": "string" + "$ref": "#/definitions/Disk" } - }, - "diskFormat": { - "type": "boolean", - "description": "Consent to format the local disks.", - "default": false } } }, - "ManagedPoolProperties": { - "type": "object", - "description": "Managed Pool Properties", - "properties": {} - }, - "NetworkRuleSet": { - "type": "object", - "description": "Network Rule Set definition", - "properties": { - "defaultAction": { - "$ref": "#/definitions/Action", - "description": "Default action" - }, - "virtualNetworkRules": { - "type": "array", - "description": "Virtual network rules", - "items": { - "$ref": "#/definitions/VirtualNetworkRule" - } - } - }, - "required": [ - "defaultAction", - "virtualNetworkRules" - ] - }, - "PlacementProperties": { - "type": "object", - "description": "Placement Properties Model", - "properties": { - "affinityLabelSelector": { - "type": "string", - "description": "Affinity label selector" - }, - "antiAffinityLabelSelector": { - "type": "string", - "description": "Anti affinity label selector" - }, - "whenUnsatisfiable": { - "$ref": "#/definitions/WhenUnsatisfiable", - "description": "When unsatisfiable" - } - }, - "required": [ - "affinityLabelSelector", - "antiAffinityLabelSelector", - "whenUnsatisfiable" - ] - }, "Pool": { "type": "object", "description": "Pool resource", @@ -1548,84 +1468,85 @@ "description": "The status of the last operation.", "readOnly": true }, - "poolType": { - "$ref": "#/definitions/PoolType", - "description": "Type of the Pool: ephemeral, disk, managed, or elasticsan." + "status": { + "$ref": "#/definitions/ResourceOperationalStatus", + "description": "The operational status of the resource", + "readOnly": true }, "zones": { "type": "array", "description": "List of availability zones that resources can be created in.", + "maxItems": 3, "items": { - "type": "string" - } + "$ref": "#/definitions/Zone" + }, + "x-ms-mutability": [ + "read", + "create" + ] }, - "poolCapacityGiB": { - "type": "integer", - "format": "int64", - "description": "Initial capacity of the pool in GiB." + "resources": { + "$ref": "#/definitions/Resources", + "description": "Resources represent the resources the pool should have." + }, + "poolType": { + "$ref": "#/definitions/PoolType", + "description": "Type of the Pool: ephemeralDisk, azureDisk, or elasticsan." + }, + "reclaimPolicy": { + "$ref": "#/definitions/ReclaimPolicy", + "description": "ReclaimPolicy defines what happens to the backend storage when StoragePool is deleted", + "x-ms-mutability": [ + "read", + "create" + ] }, "assignments": { "type": "array", - "description": "List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For portable there can be many.", + "description": "List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For ElasticSAN there can be many.", "items": { - "type": "string" + "$ref": "#/definitions/Assignment" } - }, - "ephemeralPoolProperties": { - "$ref": "#/definitions/EphemeralPoolProperties", - "description": "Ephemeral Pool Properties" - }, - "diskPoolProperties": { - "$ref": "#/definitions/DiskPoolProperties", - "description": "Disk Pool Properties" - }, - "elasticSanPoolProperties": { - "$ref": "#/definitions/ElasticSanPoolProperties", - "description": "Elastic San Pool Properties" } }, "required": [ - "poolType", - "zones", - "poolCapacityGiB", - "assignments", - "elasticSanPoolProperties" + "poolType" ] }, "PoolType": { - "type": "number", - "description": "Pool Type", - "enum": [ - 1, - 2, - 3, - 4 - ], - "x-ms-enum": { - "name": "PoolType", - "modelAsString": true, - "values": [ - { - "name": "Ephemeral", - "value": 1, - "description": "Ephemeral Pool" - }, - { - "name": "Disk", - "value": 2, - "description": "Disk Pool" - }, - { - "name": "Managed", - "value": 3, - "description": "Managed Pool" - }, - { - "name": "ElasticSan", - "value": 4, - "description": "ElasticSan Pool" - } - ] + "type": "object", + "description": "Type of the Pool: ephemeralDisk, azureDisk, or elasticsan", + "properties": { + "azureDisk": { + "$ref": "#/definitions/AzureDisk", + "description": "Disk Pool Properties" + }, + "elasticSan": { + "$ref": "#/definitions/ElasticSan", + "description": "Elastic San Pool Properties" + }, + "ephemeralDisk": { + "$ref": "#/definitions/EphemeralDisk", + "description": "Ephemeral Pool Properties" + } + } + }, + "PoolTypeUpdate": { + "type": "object", + "description": "Type of the Pool: ephemeralDisk, azureDisk, or elasticsan", + "properties": { + "azureDisk": { + "$ref": "#/definitions/AzureDiskUpdate", + "description": "Disk Pool Properties" + }, + "elasticSan": { + "$ref": "#/definitions/ElasticSanUpdate", + "description": "Elastic San Pool Properties" + }, + "ephemeralDisk": { + "$ref": "#/definitions/EphemeralDisk", + "description": "Ephemeral Pool Properties" + } } }, "PoolUpdate": { @@ -1649,67 +1570,23 @@ "type": "object", "description": "The updatable properties of the Pool.", "properties": { - "poolType": { - "$ref": "#/definitions/PoolType", - "description": "Type of the Pool: ephemeral, disk, managed, or elasticsan." - }, - "zones": { - "type": "array", - "description": "List of availability zones that resources can be created in.", - "items": { - "type": "string" - } + "resources": { + "$ref": "#/definitions/Resources", + "description": "Resources represent the resources the pool should have." }, - "poolCapacityGiB": { - "type": "integer", - "format": "int64", - "description": "Initial capacity of the pool in GiB." + "poolType": { + "$ref": "#/definitions/PoolTypeUpdate", + "description": "Type of the Pool: ephemeralDisk, azureDisk, or elasticsan." }, "assignments": { "type": "array", - "description": "List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For portable there can be many.", + "description": "List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For ElasticSAN there can be many.", "items": { - "type": "string" + "$ref": "#/definitions/Assignment" } - }, - "ephemeralPoolProperties": { - "$ref": "#/definitions/EphemeralPoolPropertiesUpdate", - "description": "Ephemeral Pool Properties" - }, - "diskPoolProperties": { - "$ref": "#/definitions/DiskPoolProperties", - "description": "Disk Pool Properties" - }, - "elasticSanPoolProperties": { - "$ref": "#/definitions/ElasticSanPoolPropertiesUpdate", - "description": "Elastic San Pool Properties" } } }, - "ProtocolType": { - "type": "string", - "description": "Protocol Type", - "enum": [ - "None", - "iSCSI" - ], - "x-ms-enum": { - "name": "ProtocolType", - "modelAsString": true, - "values": [ - { - "name": "None", - "value": "None", - "description": "No Protocol" - }, - { - "name": "iSCSI", - "value": "iSCSI", - "description": "iSCSI protocol" - } - ] - } - }, "ProvisioningState": { "type": "string", "description": "Provisioning state of the resource.", @@ -1766,7 +1643,7 @@ }, "ReclaimPolicy": { "type": "string", - "description": "Reclaim Policy", + "description": "Reclaim policy", "enum": [ "Delete", "Retain" @@ -1788,78 +1665,83 @@ ] } }, - "Sku": { + "Requests": { "type": "object", - "description": "Sku definition", + "description": "Requests for capacity for the pool.", "properties": { - "name": { - "$ref": "#/definitions/SkuName", - "description": "Sku name" - }, - "tier": { - "$ref": "#/definitions/AccountTier", - "description": "Sku Account Tier" + "storage": { + "type": "integer", + "format": "int64", + "description": "Requested capacity of the pool in GiB.", + "default": 1024, + "minimum": 1024, + "maximum": 65536 } - }, - "required": [ - "name", - "tier" - ] + } }, - "SkuName": { + "ResourceOperationStatusState": { "type": "string", - "description": "Sku Name enum type", + "description": "State of the resource.", "enum": [ - "Invalid", - "Premium_LRS", - "Premium_ZRS" + "Pending", + "Available", + "Unavailable" ], "x-ms-enum": { - "name": "SkuName", + "name": "ResourceOperationStatusState", "modelAsString": true, "values": [ { - "name": "Invalid", - "value": "Invalid", - "description": "Invalid Sku" + "name": "Pending", + "value": "Pending", + "description": "The resource is pending." }, { - "name": "Premium_LRS", - "value": "Premium_LRS", - "description": "Premium_LRS Sku" + "name": "Available", + "value": "Available", + "description": "The resource is available." }, { - "name": "Premium_ZRS", - "value": "Premium_ZRS", - "description": "Premium_ZRS Sku" + "name": "Unavailable", + "value": "Unavailable", + "description": "The resource is unavailable." } ] } }, - "VirtualNetworkRule": { + "ResourceOperationalStatus": { "type": "object", - "description": "Virtual Network Rule definition", + "description": "Status of the resource", "properties": { - "action": { - "$ref": "#/definitions/Action", - "description": "Action of rule", - "default": "Allow" + "state": { + "$ref": "#/definitions/ResourceOperationStatusState", + "description": "state of the resource" }, - "id": { + "message": { "type": "string", - "description": "Id of rule" + "description": "Reason for state." } }, "required": [ - "id" + "state" ] }, - "Volume": { + "Resources": { + "type": "object", + "description": "Resource Requests for the pool.", + "properties": { + "requests": { + "$ref": "#/definitions/Requests", + "description": "Requests for capacity for the pool." + } + } + }, + "Snapshot": { "type": "object", "description": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", "properties": { "properties": { - "$ref": "#/definitions/VolumeProperties", + "$ref": "#/definitions/SnapshotProperties", "description": "The resource-specific properties for this resource.", "x-ms-client-flatten": true, "x-ms-mutability": [ @@ -1874,39 +1756,15 @@ } ] }, - "VolumeBindingMode": { - "type": "string", - "description": "Volume binding mode", - "enum": [ - "Immediate", - "WaitFirstForCustomer" - ], - "x-ms-enum": { - "name": "VolumeBindingMode", - "modelAsString": true, - "values": [ - { - "name": "Immediate", - "value": "Immediate", - "description": "Immediate binding" - }, - { - "name": "WaitFirstForCustomer", - "value": "WaitFirstForCustomer", - "description": "Wait for customer to bind" - } - ] - } - }, - "VolumeListResult": { + "SnapshotListResult": { "type": "object", - "description": "The response of a Volume list operation.", + "description": "The response of a Snapshot list operation.", "properties": { "value": { "type": "array", - "description": "The Volume items on this page", + "description": "The Snapshot items on this page", "items": { - "$ref": "#/definitions/Volume" + "$ref": "#/definitions/Snapshot" } }, "nextLink": { @@ -1919,81 +1777,42 @@ "value" ] }, - "VolumeMode": { - "type": "string", - "description": "Storage volume mode", - "enum": [ - "Filesystem", - "Raw" - ], - "x-ms-enum": { - "name": "VolumeMode", - "modelAsString": true, - "values": [ - { - "name": "Filesystem", - "value": "Filesystem", - "description": "FileSystem volume mode" - }, - { - "name": "Raw", - "value": "Raw", - "description": "Raw volume mode" - } - ] - } - }, - "VolumeProperties": { + "SnapshotProperties": { "type": "object", - "description": "Volume Properties", + "description": "Volume Snapshot Properties", "properties": { "provisioningState": { "$ref": "#/definitions/ProvisioningState", "description": "The status of the last operation.", "readOnly": true }, - "labels": { - "type": "object", - "description": "String KV pairs indicating labels", - "additionalProperties": { - "type": "string" - } - }, - "capacityGiB": { - "type": "integer", - "format": "int64", - "description": "Requested capacity in GiB" - }, - "volumeMode": { - "$ref": "#/definitions/VolumeMode", - "description": "Indicates how the volume should be attached" - }, - "reclaimPolicy": { - "$ref": "#/definitions/ReclaimPolicy", - "description": "Reclaim Policy, Delete or Retain" + "status": { + "$ref": "#/definitions/ResourceOperationalStatus", + "description": "The status of the resource.", + "readOnly": true }, - "mountOptions": { - "type": "array", - "description": "List of string mount options", - "items": { - "type": "string" - } + "source": { + "type": "string", + "description": "Reference to the source volume", + "minLength": 3, + "maxLength": 253, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$", + "x-ms-mutability": [ + "read", + "create" + ] } }, "required": [ - "labels", - "capacityGiB", - "volumeMode", - "reclaimPolicy", - "mountOptions" + "source" ] }, - "VolumeSnapshot": { + "Volume": { "type": "object", "description": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", "properties": { "properties": { - "$ref": "#/definitions/VolumeSnapshotProperties", + "$ref": "#/definitions/VolumeProperties", "description": "The resource-specific properties for this resource.", "x-ms-client-flatten": true, "x-ms-mutability": [ @@ -2008,15 +1827,15 @@ } ] }, - "VolumeSnapshotListResult": { + "VolumeListResult": { "type": "object", - "description": "The response of a VolumeSnapshot list operation.", + "description": "The response of a Volume list operation.", "properties": { "value": { "type": "array", - "description": "The VolumeSnapshot items on this page", + "description": "The Volume items on this page", "items": { - "$ref": "#/definitions/VolumeSnapshot" + "$ref": "#/definitions/Volume" } }, "nextLink": { @@ -2029,74 +1848,53 @@ "value" ] }, - "VolumeSnapshotProperties": { + "VolumeProperties": { "type": "object", - "description": "Volume Snapshot Properties", + "description": "Volume Properties", "properties": { "provisioningState": { "$ref": "#/definitions/ProvisioningState", "description": "The status of the last operation.", "readOnly": true }, - "source": { - "type": "string", - "description": "Reference to the source volume" - }, - "volumeMode": { - "$ref": "#/definitions/VolumeMode", - "description": "Indicates how the volumes created from the snapshot should be attached" - }, - "reclaimPolicy": { - "$ref": "#/definitions/ReclaimPolicy", - "description": "Reclaim Policy, Delete or Retain" + "status": { + "$ref": "#/definitions/ResourceOperationalStatus", + "description": "The status of the resource.", + "readOnly": true }, - "mountOptions": { - "type": "array", - "description": "List of string mount options", - "items": { + "labels": { + "type": "object", + "description": "String KV pairs indicating labels", + "additionalProperties": { "type": "string" } + }, + "capacityGiB": { + "type": "integer", + "format": "int64", + "description": "Requested capacity in GiB", + "minimum": 1, + "maximum": 65536 + }, + "volumeType": { + "$ref": "#/definitions/VolumeType", + "description": "Properties of the volume", + "readOnly": true } }, "required": [ - "source", - "volumeMode", - "reclaimPolicy", - "mountOptions" + "labels", + "capacityGiB" ] }, - "VolumeSnapshotUpdate": { - "type": "object", - "description": "The type used for update operations of the VolumeSnapshot.", - "properties": { - "properties": { - "$ref": "#/definitions/VolumeSnapshotUpdateProperties", - "x-ms-client-flatten": true - } - } - }, - "VolumeSnapshotUpdateProperties": { + "VolumeType": { "type": "object", - "description": "The updatable properties of the VolumeSnapshot.", + "description": "Properties of the volume", "properties": { - "source": { - "type": "string", - "description": "Reference to the source volume" - }, - "volumeMode": { - "$ref": "#/definitions/VolumeMode", - "description": "Indicates how the volumes created from the snapshot should be attached" - }, - "reclaimPolicy": { - "$ref": "#/definitions/ReclaimPolicy", - "description": "Reclaim Policy, Delete or Retain" - }, - "mountOptions": { - "type": "array", - "description": "List of string mount options", - "items": { - "type": "string" - } + "elasticSan": { + "$ref": "#/definitions/ElasticSanVolumeProperties", + "description": "Properties of the ElasticSAN iSCSI target", + "readOnly": true } } }, @@ -2124,45 +1922,38 @@ "capacityGiB": { "type": "integer", "format": "int64", - "description": "Requested capacity in GiB" - }, - "volumeMode": { - "$ref": "#/definitions/VolumeMode", - "description": "Indicates how the volume should be attached" - }, - "reclaimPolicy": { - "$ref": "#/definitions/ReclaimPolicy", - "description": "Reclaim Policy, Delete or Retain" - }, - "mountOptions": { - "type": "array", - "description": "List of string mount options", - "items": { - "type": "string" - } + "description": "Requested capacity in GiB", + "minimum": 1, + "maximum": 65536 } } }, - "WhenUnsatisfiable": { + "Zone": { "type": "string", - "description": "When request unsatisfiable", + "description": "Availability Zones", "enum": [ - "DoNotSchedule", - "ScheduleAnyway" + "1", + "2", + "3" ], "x-ms-enum": { - "name": "WhenUnsatisfiable", + "name": "Zone", "modelAsString": true, "values": [ { - "name": "DoNotSchedule", - "value": "DoNotSchedule", - "description": "Do not schedule" + "name": "Zone1", + "value": "1", + "description": "First availability zone." + }, + { + "name": "Zone2", + "value": "2", + "description": "Second availability zone." }, { - "name": "ScheduleAnyway", - "value": "ScheduleAnyway", - "description": "Schedule anyway" + "name": "Zone3", + "value": "3", + "description": "Third availability zone." } ] } diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Operations_List.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..7d3686bd1631 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerStorage/Volumes/Get", + "isDataAction": true, + "display": { + "provider": "Microsoft Container Storage", + "resource": "Operation", + "operation": "Get Operation", + "description": "Gets the status of an asynchronous operation" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_AzureDisk.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_AzureDisk.json new file mode 100644 index 000000000000..1183bd9ac3dd --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_AzureDisk.json @@ -0,0 +1,205 @@ +{ + "title": "Pools_CreateOrUpdate_AzureDisk", + "operationId": "Pools_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "type": "None", + "userAssignedIdentities": { + "key7678": {} + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_ElasticSan.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_ElasticSan.json new file mode 100644 index 000000000000..146393decfe8 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_ElasticSan.json @@ -0,0 +1,193 @@ +{ + "title": "Pools_CreateOrUpdate_ElasticSan", + "operationId": "Pools_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "type": "None", + "userAssignedIdentities": { + "key7678": {} + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_Ephemeral.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_Ephemeral.json new file mode 100644 index 000000000000..8dde161cb6f0 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_CreateOrUpdate_Ephemeral.json @@ -0,0 +1,163 @@ +{ + "title": "Pools_CreateOrUpdate_Ephemeral", + "operationId": "Pools_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3 + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Delete.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Delete.json new file mode 100644 index 000000000000..275f44fdbbee --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "Pools_Delete", + "operationId": "Pools_Delete", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_AzureDisk.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_AzureDisk.json new file mode 100644 index 000000000000..a6bdd67fa345 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_AzureDisk.json @@ -0,0 +1,85 @@ +{ + "title": "Pools_Get_AzureDisk", + "operationId": "Pools_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_ElasticSan.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_ElasticSan.json new file mode 100644 index 000000000000..5ca01027d194 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_ElasticSan.json @@ -0,0 +1,79 @@ +{ + "title": "Pools_Get_ElasticSan", + "operationId": "Pools_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_Ephemeral.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_Ephemeral.json new file mode 100644 index 000000000000..2302de06b726 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Get_Ephemeral.json @@ -0,0 +1,69 @@ +{ + "title": "Pools_Get_Ephemeral", + "operationId": "Pools_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_AzureDisk.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_AzureDisk.json new file mode 100644 index 000000000000..f0cf491bff69 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_AzureDisk.json @@ -0,0 +1,89 @@ +{ + "title": "Pools_ListByResourceGroup_AzureDisk", + "operationId": "Pools_ListByResourceGroup", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_ElasticSan.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_ElasticSan.json new file mode 100644 index 000000000000..2caf6097b23f --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_ElasticSan.json @@ -0,0 +1,83 @@ +{ + "title": "Pools_ListByResourceGroup_ElasticSan", + "operationId": "Pools_ListByResourceGroup", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_Ephemeral.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_Ephemeral.json new file mode 100644 index 000000000000..f6964689b940 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListByResourceGroup_Ephemeral.json @@ -0,0 +1,73 @@ +{ + "title": "Pools_ListByResourceGroup_Ephemeral", + "operationId": "Pools_ListByResourceGroup", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_AzureDisk.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_AzureDisk.json new file mode 100644 index 000000000000..77355ad0b4b7 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_AzureDisk.json @@ -0,0 +1,88 @@ +{ + "title": "Pools_ListBySubscription_AzureDisk", + "operationId": "Pools_ListBySubscription", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_ElasticSan.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_ElasticSan.json new file mode 100644 index 000000000000..d60e1be2c0ad --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_ElasticSan.json @@ -0,0 +1,82 @@ +{ + "title": "Pools_ListBySubscription_ElasticSan", + "operationId": "Pools_ListBySubscription", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_Ephemeral.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_Ephemeral.json new file mode 100644 index 000000000000..f9770f5d499c --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_ListBySubscription_Ephemeral.json @@ -0,0 +1,72 @@ +{ + "title": "Pools_ListBySubscription_Ephemeral", + "operationId": "Pools_ListBySubscription", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/as" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_AzureDisk.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_AzureDisk.json new file mode 100644 index 000000000000..d0b19f06a1a6 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_AzureDisk.json @@ -0,0 +1,114 @@ +{ + "title": "Pools_Update_AzureDisk", + "operationId": "Pools_Update", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "properties": { + "tags": { + "key7124": "value7124" + }, + "properties": { + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": {} + }, + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "azureDisk": { + "resourceGroup": "test-rg2", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + }, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_ElasticSan.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_ElasticSan.json new file mode 100644 index 000000000000..5cceffbef8ae --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_ElasticSan.json @@ -0,0 +1,108 @@ +{ + "title": "Pools_Update_ElasticSan", + "operationId": "Pools_Update", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "properties": { + "tags": { + "key7124": "value7124" + }, + "properties": { + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": {} + }, + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "elasticSan": { + "resourceGroup": "test-rg3", + "skuName": "Premium_LRS", + "encryption": { + "keyName": "test-key", + "keyVaultUri": "https://test-kv.vault.azure.net/", + "identity": { + "principalId": "14215384-6980-4e3c-8c58-c7738db7d34e", + "tenantId": "02cd8342-46ab-45d5-8cc4-2a80b9a90af5", + "type": "None", + "userAssignedIdentities": { + "key7678": { + "principalId": "6a6104be-65e4-48a8-919d-a88c1cd2a255", + "clientId": "5286d698-5b3d-4051-a280-2e4f20869426" + } + } + } + } + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_Ephemeral.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_Ephemeral.json new file mode 100644 index 000000000000..76d4716247c3 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Pools_Update_Ephemeral.json @@ -0,0 +1,100 @@ +{ + "title": "Pools_Update_Ephemeral", + "operationId": "Pools_Update", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "properties": { + "tags": { + "key7124": "value7124" + }, + "properties": { + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3 + } + }, + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "zones": [ + "1", + "2", + "3" + ], + "resources": { + "requests": { + "storage": 15578 + } + }, + "poolType": { + "ephemeralDisk": { + "replicas": 3, + "disks": [ + { + "id": "eui.e8238fa6bf530001001b448b45263379", + "reference": "/dev/sdk" + } + ] + } + }, + "reclaimPolicy": "Delete", + "assignments": [ + { + "status": { + "state": "Assigning", + "message": "The assignment of the pool to the resource is in progress" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerService/managedClusters/containerstoragetest" + } + ] + }, + "tags": { + "key1888": "value1888" + }, + "location": "eastus", + "name": "test-pool", + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool", + "type": "Microsoft.ContainerStorage/pools", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_CreateOrUpdate.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_CreateOrUpdate.json new file mode 100644 index 000000000000..1e7d7b459e50 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_CreateOrUpdate.json @@ -0,0 +1,72 @@ +{ + "title": "Snapshots_CreateOrUpdate", + "operationId": "Snapshots_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "snapshotName": "test-snapshot", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/snapshots/test-snapshot", + "name": "test-snapshot", + "type": "Microsoft.ContainerStorage/pools/snapshots", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/snapshots/test-snapshot", + "name": "test-snapshot", + "type": "Microsoft.ContainerStorage/pools/snapshots", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_Delete.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_Delete.json new file mode 100644 index 000000000000..6a517d277df0 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "Snapshots_Delete", + "operationId": "Snapshots_Delete", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "snapshotName": "test-snapshot" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_Get.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_Get.json new file mode 100644 index 000000000000..b31bb7d87c7d --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_Get.json @@ -0,0 +1,36 @@ +{ + "title": "Snapshots_Get", + "operationId": "Snapshots_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "snapshotName": "test-snapshot" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/snapshots/test-snapshot", + "name": "test-snapshot", + "type": "Microsoft.ContainerStorage/pools/snapshots", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_ListByPool.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_ListByPool.json new file mode 100644 index 000000000000..76ed8930f6ae --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Snapshots_ListByPool.json @@ -0,0 +1,40 @@ +{ + "title": "Snapshots_ListByPool", + "operationId": "Snapshots_ListByPool", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "source": "C0C6I6" + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/snapshots/test-snapshot", + "name": "test-snapshot", + "type": "Microsoft.ContainerStorage/pools/snapshots", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_CreateOrUpdate.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_CreateOrUpdate.json new file mode 100644 index 000000000000..7b0d34b84e65 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_CreateOrUpdate.json @@ -0,0 +1,95 @@ +{ + "title": "Volumes_CreateOrUpdate", + "operationId": "Volumes_CreateOrUpdate", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "volumeName": "test-volume", + "resource": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838 + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "user2", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "vyojfxtqmhxrdbmq", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Delete.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Delete.json new file mode 100644 index 000000000000..4c681af48901 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Delete.json @@ -0,0 +1,19 @@ +{ + "title": "Volumes_Delete", + "operationId": "Volumes_Delete", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "volumeName": "test-volume" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Get.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Get.json new file mode 100644 index 000000000000..2b40410e7fd7 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Get.json @@ -0,0 +1,46 @@ +{ + "title": "Volumes_Get", + "operationId": "Volumes_Get", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "volumeName": "test-volume" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_ListByPool.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_ListByPool.json new file mode 100644 index 000000000000..bf58df418ed3 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_ListByPool.json @@ -0,0 +1,50 @@ +{ + "title": "Volumes_ListByPool", + "operationId": "Volumes_ListByPool", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Update.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Update.json new file mode 100644 index 000000000000..1d801b4df88f --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-07-01-preview/examples/Volumes_Update.json @@ -0,0 +1,59 @@ +{ + "title": "Volumes_Update", + "operationId": "Volumes_Update", + "parameters": { + "api-version": "2023-07-01-preview", + "subscriptionId": "bb4d87a2-4273-466c-a6ba-61d818061b3a", + "resourceGroupName": "test-rg", + "poolName": "test-pool", + "volumeName": "test-volume", + "properties": { + "properties": { + "labels": { + "key6684": "ssgphiygc" + }, + "capacityGiB": 61986 + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "status": { + "state": "Pending", + "message": "Operation is Pending" + }, + "labels": { + "key2039": "value2039" + }, + "capacityGiB": 25838, + "volumeType": { + "elasticSan": { + "targetIqn": "iqn.2027-01.net.windows.core.blob.ElasticSan.es-afdwfkuqnd28:test-volume", + "targetPortalHostname": "es-afdwfkuqnd28.z43.blob.storage.azure.net", + "targetPortalPort": 1826 + } + } + }, + "id": "/subscriptions/bb4d87a2-4273-466c-a6ba-61d818061b3a/resourceGroups/test-rg/providers/Microsoft.ContainerStorage/pools/test-pool/volumes/test-volume", + "name": "test-volume", + "type": "Microsoft.ContainerStorage/pools/volumes", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2023-07-17T21:48:26.401Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-07-17T21:48:26.401Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/containerstorage/resource-manager/readme.md b/specification/containerstorage/resource-manager/readme.md index 83d171e466ec..c6bd1451bb64 100644 --- a/specification/containerstorage/resource-manager/readme.md +++ b/specification/containerstorage/resource-manager/readme.md @@ -23,16 +23,16 @@ These are the global settings for the containerstorage. ```yaml openapi-type: arm -tag: package-2023-03-01-preview +tag: package-2023-07-01-preview ``` -### Tag: package-2023-03-01-preview +### Tag: package-2023-07-01-preview -These settings apply only when `--tag=package-2023-03-01-preview` is specified on the command line. +These settings apply only when `--tag=package-2023-07-01-preview` is specified on the command line. -```yaml $(tag) == 'package-2023-03-01-preview' +```yaml $(tag) == 'package-2023-07-01-preview' input-file: - - Microsoft.ContainerStorage/preview/2023-03-01-preview/containerstorage.json + - Microsoft.ContainerStorage/preview/2023-07-01-preview/containerstorage.json ``` ---