diff --git a/custom-words.txt b/custom-words.txt index 60e6a4c69bc9..625d8bdc24f6 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1239,6 +1239,7 @@ maxpagesize maxresults MAXSIZE maxzoom +Mayastor mbaldwin Mbps MCAS @@ -1410,6 +1411,7 @@ noartifactsource nodeagentskus nodeconfiguration nodecounts +nodename Nodeploy nodetool nodrm diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/custom_operations.cadl b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/custom_operations.cadl new file mode 100644 index 000000000000..90948e833946 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/custom_operations.cadl @@ -0,0 +1,197 @@ +import "@cadl-lang/rest"; +import "@cadl-lang/openapi3"; + +import "@cadl-lang/rest"; +import "@cadl-lang/versioning"; +import "@azure-tools/cadl-providerhub"; +import "@azure-tools/cadl-azure-resource-manager"; + +using Cadl.Http; +using Cadl.Rest; +using OpenAPI; +using Autorest; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +/** + * Custom types modified from the Azure Resource Manager Cadl library to add + * asynchronous update to operations, and location header on asynchronous create/update + * to be in line with the ARM async API guidelines. + * + * Reference: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md + * Cadl ARM Library: https://github.com/Azure/cadl-azure/tree/main/packages/cadl-azure-resource-manager/lib + */ + +namespace Microsoft.ContainerStorage.Custom; + +// Custom operations (modified) +interface ResourceOperationsCustom< + TResource extends ArmResource, + TProperties extends object, + TBaseParameters = BaseParameters +> + extends ResourceInstanceOperationsCustom, + ResourceCollectionOperations {} + + +// Add custom create and update async operations (modified) +interface ResourceInstanceOperationsCustom< + TResource extends ArmResource, + TProperties extends object, + TBaseParameters = BaseParameters, + TPatchModel = ResourceUpdateModel +> + extends Azure.ResourceManager.ResourceRead, + ResourceCreateAsyncCustom, + ResourceDeleteAsyncCustom, + ResourceUpdateAsyncCustom {} + + +// Create custom create and update async operations (modified) +@doc("Asynchronous resource create") +interface ResourceCreateAsyncCustom< + TResource extends ArmResource, + TBaseParameters = BaseParameters +> { + createOrUpdate is ArmResourceCreateOrUpdateAsyncLocation; +} + +@doc("Asynchronous resource update") +interface ResourceUpdateAsyncCustom< + TResource extends ArmResource, + TProperties extends object, + TBaseParameters = BaseParameters +> { + update is ArmCustomPatchAsyncLocation< + TResource, + ResourceUpdateModel, + TBaseParameters + >; +} + +@doc("Delete a resource using the asynchronous call pattern") +interface ResourceDeleteAsyncCustom< + TResource extends ArmResource, + TBaseParameters = BaseParameters +> { + delete is ArmCustomDeleteAsyncLocation; +} + +// Aliases for potential external reference (modified) +alias ArmResourceCreateAsync< + TResource extends ArmResource, + TProperties extends object, + TBaseParameters = BaseParameters +> = ArmResourceCreateOrUpdateAsyncLocation; + +alias ArmResourcePatchAsync< + TResource extends ArmResource, + TProperties extends object, + TBaseParameters = BaseParameters +> = ArmCustomPatchAsyncLocation, TBaseParameters>; + +alias ArmResourceDeleteAsync< + TResource extends ArmResource, + TProperties extends object, + TBaseParameters = BaseParameters +> = ArmCustomDeleteAsyncLocation; + + +// Add async response with locations to response type (modified) +@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 ArmResourceCreateOrUpdateAsyncLocation< + TResource extends ArmResource, + TBaseParameters = BaseParameters +>( + ...ResourceInstanceParameters, + + @doc("Resource create parameters.") + @body + resource: TResource +): ArmResponse | ArmCreatedResponseLocation | ErrorResponse; + +@autoRoute +@doc("Update a {name}", TResource) +@extension("x-ms-long-running-operation", true) +@extension( + "x-ms-long-running-operation-options", + { + "final-state-via": "azure-async-operation", + } +) +@armResourceUpdate(TResource) +@patch +op ArmCustomPatchAsyncLocation< + TResource extends ArmResource, + TPatchModel extends object = TagsUpdateModel, + TBaseParameters = BaseParameters +>( + ...ResourceInstanceParameters, + + @doc("The resource properties to be updated.") + @body + properties: TPatchModel +): ArmResponse | ArmAcceptedResponseLocation<"Resource update request accepted."> | ErrorResponse; + +@autoRoute +@doc("Delete a {name}", TResource) +@extension("x-ms-long-running-operation", true) +@extension( + "x-ms-long-running-operation-options", + { + "final-state-via": "location", + } +) +@armResourceDelete(TResource) +@delete +op ArmCustomDeleteAsyncLocation< + TResource extends ArmResource, + TBaseParameters = BaseParameters +>( + ...ResourceInstanceParameters +): ArmDeletedResponse | ArmAcceptedResponseLocation<"Resource deletion accepted."> | ArmDeletedNoContentResponse | ErrorResponse; + + + +// Add location header to response type (modified) +@doc("ARM create operation completed successfully.") +model ArmCreatedResponseLocation { + ...CreatedResponse; + ...Azure.Core.Foundations.RetryAfterHeader; + ...LocationHeader; + ...Body; +} + +@doc(TMessage) +model ArmAcceptedResponseLocation { + ...AcceptedResponse; + ...RetryAfterHeaderCustom; + ...LocationHeader; +} + + +// Create location header +@doc("The location uri of the operation.") +model LocationHeader { + @doc("The Location header has the uri for monitoring the operation state.") + @header("Location") + location: string; +} + +@doc("The retry-after envelope.") +model RetryAfterHeaderCustom { + @doc("The Retry-After header can indicate how long the client should wait before polling the operation status.") + @header("Retry-After") + retryAfter: int32; +} + diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/main.cadl b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/main.cadl new file mode 100644 index 000000000000..c87a65e63cd1 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/main.cadl @@ -0,0 +1,372 @@ +import "@cadl-lang/rest"; +import "@cadl-lang/openapi3"; +import "@cadl-lang/versioning"; +import "@azure-tools/cadl-providerhub"; +import "@azure-tools/cadl-azure-resource-manager"; + +import "./custom_operations.cadl"; + +using Cadl.Http; +using Cadl.Rest; +using Cadl.Versioning; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; +using Microsoft.ContainerStorage.Custom; + +@armProviderNamespace +@service({ + title: "Azure-ContainerStorageRP", + version: "2023-03-01-preview", +}) +@doc("Azure Container Storage Resource Provider API.") +@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) +namespace Microsoft.ContainerStorage; + +interface Operations extends Azure.ResourceManager.Operations {} + +// START POOL + +@doc("Pool resource") +model Pool is TrackedResource { + @doc("Pool Object") + @pattern("^[a-zA-Z0-9-]{3,24}$") + @key("poolName") + @path + @segment("pools") + name: string; +} + +@doc("Pool Properties") +model PoolProperties { + // @doc("Sku of Pool") + // sku: Sku; + + @visibility("read") + @doc("The status of the last operation.") + provisioningState?: ProvisioningState; + + @doc("Type of the Pool: ephemeral, disk, managed, or elasticsan.") + poolType: PoolType; + + @doc("List of availability zones that resources can be created in.") + zones: string[]; + + @doc("Initial capacity of the pool in GiB.") + poolCapacityGiB: int64; + + // @doc("List of boolean feature-flags, e.g. pool/volume auto-expansion, reclaim policy.") + // features?: Record; + + @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[]; + + // Don't include in preview + // @doc("Type of encryption. Allowed values: EncryptionAtRestWithPlatformKey.") + // encryption: EncryptionType; + + @doc("Ephemeral Pool Properties") + ephemeralPoolProperties?: EphemeralPoolProperties; + + // @doc("Managed Pool Properties") + // managedPoolProperties?: ManagedPoolProperties; + + @doc("Disk Pool Properties") + diskPoolProperties?: DiskPoolProperties; + + @doc("Elastic San Pool Properties") + elasticSanPoolProperties: ElasticSanPoolProperties; +} + +@doc("Ephemeral Pool Properties") +model EphemeralPoolProperties { + // Post preview + // @doc("The number of data copies. Default 3.") + // replicas?: int64 = 3; + + @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("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("Consent to format the local disks.") + diskFormat?: boolean = false; +} + +@doc("Managed Pool Properties") +model ManagedPoolProperties {} + +@doc("Elastic San Pool Properties") +model ElasticSanPoolProperties { + @doc("Name of an existing SAN.") + sanName: string; + + @doc("Resource group of an existing SAN.") + resourceGroup: string; + + @doc("Volume group of an existing SAN.") + volumeGroup: 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("Initial capacity of disks. Application volumes must fit within single disks.") + // diskCapacityRequest: int64; + + @doc("Maximum capacity of the volumes in GiB the user intends to create. Default 512.") + maxVolumeCapacityGiB?: int64 = 512; + + @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("Sku definition") +model Sku { + @doc("Sku name") + name: SkuName; + + @doc("Sku Account Tier") + tier: AccountTier; +} + +enum SkuName { + Invalid, + Premium_LRS, + Premium_ZRS +} + +enum AccountTier { + Invalid, + Standard, + Premium, + Ultra +} + +@doc("Network Rule Set definition") +model NetworkRuleSet { + @doc("Default action") + defaultAction: Action; + + @doc("Virtual network rules") + virtualNetworkRules: VirtualNetworkRule[]; +} + +@doc("Virtual Network Rule definition") +model VirtualNetworkRule { + @doc("Action of rule") + action?: Action = Action.Allow; + + @doc("Id of rule") + id: string; +} + +enum Action { + Deny, + Allow +} + +enum ProtocolType { + None, + iSCSI +} + +enum EncryptionType { + EncryptionAtRestWithPlatformKey +} + +enum PoolType { + Ephemeral: 1, + Disk: 2, + Managed: 3, + ElasticSan: 4 +} + +enum VolumeBindingMode { + Immediate, + WaitFirstForCustomer +} + +@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; + + @doc("Used to import SSD to discover WWN") + devicePath: string; +} + +enum DiskType { + Local, + Managed +} + + +@doc("Provisioning state of the resource.") +@Azure.Core.lroStatus +enum ProvisioningState { + Succeeded, + Failed, + Canceled, + Provisioning, + Updating, + Deleting, + Accepted, +} + +// END POOL + +// START VOLUME + +@parentResource(Pool) +model Volume is ProxyResource { + @doc("Volume Resource") + @pattern("^[a-zA-Z0-9-]{3,24}$") + + @key("volumeName") + @path + @segment("volumes") + name: string; +} + +@doc("Volume Properties") +model VolumeProperties { + @visibility("read") + @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("String KV pairs indicating labels") + labels: Record; + + @doc("Requested capacity in GiB") + 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; +} + +enum VolumeMode { + Filesystem, + Raw +} + +enum AccessMode { + ReadWriteOnce, + ReadOnlyMany, + ReadWriteMany, + ReadWriteOncePod +} + +enum ReclaimPolicy { + Delete, + Retain +} + +@doc("Placement Properties Model") +model PlacementProperties { + @doc("Affinity label selector") + affinityLabelSelector: string; + + @doc("Anti affinity label selector") + antiAffinityLabelSelector: string; + + @doc("When unsatisfiable") + whenUnsatisfiable: WhenUnsatisfiable; +} + +enum WhenUnsatisfiable { + DoNotSchedule, + ScheduleAnyway +} + +// END VOLUME + +// START VOLUME SNAPSHOT + +@parentResource(Pool) +model VolumeSnapshot is ProxyResource { + @doc("Volume Snapshot Resource") + @pattern("^[a-zA-Z0-9-]{3,24}$") + + @key("volumeSnapshotName") + @path + @segment("volumeSnapshots") + name: string; +} + +@doc("Volume Snapshot Properties") +model VolumeSnapshotProperties { + @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("Reference to the source volume") + source: string; + + @doc("Indicates how the volumes created from the snapshot should be attached") + volumeMode: VolumeMode; + + @doc("Reclaim Policy, Delete or Retain") + reclaimPolicy: ReclaimPolicy; + + @doc("List of string mount options") + mountOptions: string[]; +} + +// END VOLUME SNAPSHOT + +@armResourceOperations +interface Pools extends ResourceOperationsCustom {} + +@armResourceOperations +interface Volumes extends ResourceOperationsCustom {} + +@armResourceOperations +interface VolumeSnapshots extends ResourceOperationsCustom {} \ No newline at end of file diff --git a/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/package.json b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/package.json new file mode 100644 index 000000000000..faadd3a4c3c0 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/cadl/package.json @@ -0,0 +1,17 @@ +{ + "name": "Azure-ContainerStorageRP", + "version": "0.1.0", + "type": "module", + "dependencies": { + "@azure-tools/cadl-autorest": "latest", + "@azure-tools/cadl-apiview": "latest", + "@azure-tools/cadl-azure-core": "latest", + "@azure-tools/cadl-azure-resource-manager": "latest", + "@azure-tools/cadl-providerhub": "latest", + "@azure-tools/cadl-providerhub-controller": "latest", + "@cadl-lang/compiler": "latest", + "@cadl-lang/openapi3": "latest", + "@cadl-lang/rest": "latest" + }, + "private": true +} 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-03-01-preview/containerstorage.json new file mode 100644 index 000000000000..65598ba8e6a0 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/containerstorage.json @@ -0,0 +1,2013 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure-ContainerStorageRP", + "version": "2023-03-01-preview", + "description": "Azure Container Storage Resource Provider API.", + "x-cadl-generated": [ + { + "emitter": "@azure-tools/cadl-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Pools" + }, + { + "name": "Volumes" + }, + { + "name": "VolumeSnapshots" + } + ], + "paths": { + "/providers/Microsoft.ContainerStorage/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerStorage/pools": { + "get": { + "tags": [ + "Pools" + ], + "operationId": "Pools_ListBySubscription", + "description": "List Pool resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/PoolListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Pools_ListBySubscription_MaximumSet_Gen": { + "$ref": "./examples/Pools_ListBySubscription_MaximumSet_Gen.json" + }, + "Pools_ListBySubscription_MinimumSet_Gen": { + "$ref": "./examples/Pools_ListBySubscription_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools": { + "get": { + "tags": [ + "Pools" + ], + "operationId": "Pools_ListByResourceGroup", + "description": "List Pool resources by resource group", + "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" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/PoolListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Pools_ListByResourceGroup_MaximumSet_Gen": { + "$ref": "./examples/Pools_ListByResourceGroup_MaximumSet_Gen.json" + }, + "Pools_ListByResourceGroup_MinimumSet_Gen": { + "$ref": "./examples/Pools_ListByResourceGroup_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}": { + "get": { + "tags": [ + "Pools" + ], + "operationId": "Pools_Get", + "description": "Get a Pool", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Pools_Get_MaximumSet_Gen": { + "$ref": "./examples/Pools_Get_MaximumSet_Gen.json" + }, + "Pools_Get_MinimumSet_Gen": { + "$ref": "./examples/Pools_Get_MinimumSet_Gen.json" + } + } + }, + "put": { + "tags": [ + "Pools" + ], + "operationId": "Pools_CreateOrUpdate", + "description": "Create a Pool", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "resource", + "in": "body", + "required": true, + "description": "Resource create parameters.", + "schema": { + "$ref": "#/definitions/Pool" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "201": { + "description": "ARM create operation completed successfully.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Pools_CreateOrUpdate_MaximumSet_Gen": { + "$ref": "./examples/Pools_CreateOrUpdate_MaximumSet_Gen.json" + }, + "Pools_CreateOrUpdate_MinimumSet_Gen": { + "$ref": "./examples/Pools_CreateOrUpdate_MinimumSet_Gen.json" + } + } + }, + "delete": { + "tags": [ + "Pools" + ], + "operationId": "Pools_Delete", + "description": "Delete a Pool", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true, + "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" + } + } + }, + "patch": { + "tags": [ + "Pools" + ], + "operationId": "Pools_Update", + "description": "Update a Pool", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "properties", + "in": "body", + "required": true, + "description": "The resource properties to be updated.", + "schema": { + "$ref": "#/definitions/PoolUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Pool" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Pools_Update_MaximumSet_Gen": { + "$ref": "./examples/Pools_Update_MaximumSet_Gen.json" + }, + "Pools_Update_MinimumSet_Gen": { + "$ref": "./examples/Pools_Update_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/volumes": { + "get": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_ListByPool", + "description": "List Volume resources by Pool", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/VolumeListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/volumes/{volumeName}": { + "get": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_Get", + "description": "Get a Volume", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "volumeName", + "in": "path", + "required": true, + "description": "Volume Resource", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + } + }, + "put": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_CreateOrUpdate", + "description": "Create a Volume", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "volumeName", + "in": "path", + "required": true, + "description": "Volume Resource", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "resource", + "in": "body", + "required": true, + "description": "Resource create parameters.", + "schema": { + "$ref": "#/definitions/Volume" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "201": { + "description": "ARM create operation completed successfully.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true, + "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" + } + } + }, + "delete": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_Delete", + "description": "Delete a Volume", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "volumeName", + "in": "path", + "required": true, + "description": "Volume Resource", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true, + "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" + } + } + }, + "patch": { + "tags": [ + "Volumes" + ], + "operationId": "Volumes_Update", + "description": "Update a Volume", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "volumeName", + "in": "path", + "required": true, + "description": "Volume Resource", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "properties", + "in": "body", + "required": true, + "description": "The resource properties to be updated.", + "schema": { + "$ref": "#/definitions/VolumeUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Volume" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true, + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/volumeSnapshots": { + "get": { + "tags": [ + "VolumeSnapshots" + ], + "operationId": "VolumeSnapshots_ListByPool", + "description": "List VolumeSnapshot resources by Pool", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/VolumeSnapshotListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/volumeSnapshots/{volumeSnapshotName}": { + "get": { + "tags": [ + "VolumeSnapshots" + ], + "operationId": "VolumeSnapshots_Get", + "description": "Get 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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "volumeSnapshotName", + "in": "path", + "required": true, + "description": "Volume Snapshot Resource", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/VolumeSnapshot" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + } + } + }, + "put": { + "tags": [ + "VolumeSnapshots" + ], + "operationId": "VolumeSnapshots_CreateOrUpdate", + "description": "Create 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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "volumeSnapshotName", + "in": "path", + "required": true, + "description": "Volume Snapshot Resource", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "resource", + "in": "body", + "required": true, + "description": "Resource create parameters.", + "schema": { + "$ref": "#/definitions/VolumeSnapshot" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/VolumeSnapshot" + } + }, + "201": { + "description": "ARM create operation completed successfully.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/VolumeSnapshot" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true, + "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" + } + } + }, + "delete": { + "tags": [ + "VolumeSnapshots" + ], + "operationId": "VolumeSnapshots_Delete", + "description": "Delete 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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "volumeSnapshotName", + "in": "path", + "required": true, + "description": "Volume Snapshot Resource", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true, + "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" + } + } + }, + "patch": { + "tags": [ + "VolumeSnapshots" + ], + "operationId": "VolumeSnapshots_Update", + "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", + "required": true, + "description": "Pool Object", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "volumeSnapshotName", + "in": "path", + "required": true, + "description": "Volume Snapshot Resource", + "pattern": "^[a-zA-Z0-9-]{3,24}$", + "type": "string" + }, + { + "name": "properties", + "in": "body", + "required": true, + "description": "The resource properties to be updated.", + "schema": { + "$ref": "#/definitions/VolumeSnapshotUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/VolumeSnapshot" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": "integer", + "format": "int32" + }, + "Location": { + "description": "The Location header has the uri for monitoring the operation state.", + "type": "string" + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true, + "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" + } + } + } + } + }, + "definitions": { + "AccessMode": { + "type": "string", + "enum": [ + "ReadWriteOnce", + "ReadOnlyMany", + "ReadWriteMany", + "ReadWriteOncePod" + ], + "x-ms-enum": { + "name": "AccessMode", + "modelAsString": true + } + }, + "AccountTier": { + "type": "string", + "enum": [ + "Invalid", + "Standard", + "Premium", + "Ultra" + ], + "x-ms-enum": { + "name": "AccountTier", + "modelAsString": true + } + }, + "Action": { + "type": "string", + "enum": [ + "Deny", + "Allow" + ], + "x-ms-enum": { + "name": "Action", + "modelAsString": true + } + }, + "Custom.LocationHeader": { + "type": "object", + "properties": {}, + "description": "The location uri of the operation." + }, + "Custom.RetryAfterHeaderCustom": { + "type": "object", + "properties": {}, + "description": "The retry-after envelope." + }, + "DiskPoolProperties": { + "type": "object", + "properties": { + "csiParams": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-cadl-name": "Record", + "description": "List of KV pairs to set in StorageClass to configure CSI driver." + }, + "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", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "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)." + } + }, + "description": "Disk Pool Properties" + }, + "DiskProperties": { + "type": "object", + "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": { + "type": "string", + "description": "Name of the node disk is attached on" + }, + "devicePath": { + "type": "string", + "description": "Used to import SSD to discover WWN" + } + }, + "description": "Disk Properties Model", + "required": [ + "resourceId", + "wwn", + "capacityGiB", + "diskType", + "displayName", + "nodeName", + "devicePath" + ] + }, + "DiskType": { + "type": "string", + "enum": [ + "Local", + "Managed" + ], + "x-ms-enum": { + "name": "DiskType", + "modelAsString": true + } + }, + "ElasticSanPoolProperties": { + "type": "object", + "properties": { + "sanName": { + "type": "string", + "description": "Name of an existing SAN." + }, + "resourceGroup": { + "type": "string", + "description": "Resource group of an existing SAN." + }, + "volumeGroup": { + "type": "string", + "description": "Volume group of an existing SAN." + } + }, + "description": "Elastic San Pool Properties", + "required": [ + "sanName", + "resourceGroup", + "volumeGroup" + ] + }, + "ElasticSanPoolPropertiesUpdate": { + "type": "object", + "properties": { + "sanName": { + "type": "string", + "description": "Name of an existing SAN." + }, + "resourceGroup": { + "type": "string", + "description": "Resource group of an existing SAN." + }, + "volumeGroup": { + "type": "string", + "description": "Volume group of an existing SAN." + } + }, + "description": "Elastic San Pool Properties" + }, + "EncryptionType": { + "type": "string", + "enum": [ + "EncryptionAtRestWithPlatformKey" + ], + "x-ms-enum": { + "name": "EncryptionType", + "modelAsString": true + } + }, + "EphemeralPoolProperties": { + "type": "object", + "properties": { + "diskSelector": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "Template name or KV pairs containing disk selection criteria, e.g. model=\"Microsoft NVMe Direct Disk\" to match all Lsv2 NVMe disks." + }, + "disks": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "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)." + }, + "diskFormat": { + "type": "boolean", + "description": "Consent to format the local disks.", + "default": false + } + }, + "description": "Ephemeral Pool Properties", + "required": [ + "diskSelector", + "disks" + ] + }, + "EphemeralPoolPropertiesUpdate": { + "type": "object", + "properties": { + "diskSelector": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "Template name or KV pairs containing disk selection criteria, e.g. model=\"Microsoft NVMe Direct Disk\" to match all Lsv2 NVMe disks." + }, + "disks": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "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)." + }, + "diskFormat": { + "type": "boolean", + "description": "Consent to format the local disks.", + "default": false + } + }, + "description": "Ephemeral Pool Properties" + }, + "ManagedPoolProperties": { + "type": "object", + "properties": {}, + "description": "Managed Pool Properties" + }, + "NetworkRuleSet": { + "type": "object", + "properties": { + "defaultAction": { + "$ref": "#/definitions/Action", + "description": "Default action" + }, + "virtualNetworkRules": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + }, + "x-cadl-name": "VirtualNetworkRule[]", + "description": "Virtual network rules" + } + }, + "description": "Network Rule Set definition", + "required": [ + "defaultAction", + "virtualNetworkRules" + ] + }, + "PlacementProperties": { + "type": "object", + "properties": { + "affinityLabelSelector": { + "type": "string", + "description": "Affinity label selector" + }, + "antiAffinityLabelSelector": { + "type": "string", + "description": "Anti affinity label selector" + }, + "whenUnsatisfiable": { + "$ref": "#/definitions/WhenUnsatisfiable", + "description": "When unsatisfiable" + } + }, + "description": "Placement Properties Model", + "required": [ + "affinityLabelSelector", + "antiAffinityLabelSelector", + "whenUnsatisfiable" + ] + }, + "Pool": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PoolProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "description": "Pool resource", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "PoolListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Pool" + }, + "x-cadl-name": "Pool[]", + "description": "The Pool items on this page" + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items", + "x-cadl-name": "Rest.ResourceLocation" + } + }, + "description": "The response of a Pool list operation.", + "required": [ + "value" + ] + }, + "PoolProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + }, + "poolType": { + "$ref": "#/definitions/PoolType", + "description": "Type of the Pool: ephemeral, disk, managed, or elasticsan." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "List of availability zones that resources can be created in." + }, + "poolCapacityGiB": { + "type": "integer", + "format": "int64", + "description": "Initial capacity of the pool in GiB." + }, + "assignments": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "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." + }, + "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" + } + }, + "description": "Pool Properties", + "required": [ + "poolType", + "zones", + "poolCapacityGiB", + "assignments", + "elasticSanPoolProperties" + ] + }, + "PoolType": { + "type": "number", + "enum": [ + 1, + 2, + 3, + 4 + ], + "x-ms-enum": { + "name": "PoolType", + "modelAsString": true, + "values": [ + { + "name": "Ephemeral", + "value": 1 + }, + { + "name": "Disk", + "value": 2 + }, + { + "name": "Managed", + "value": 3 + }, + { + "name": "ElasticSan", + "value": 4 + } + ] + } + }, + "PoolUpdate": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-cadl-name": "Record", + "description": "Resource tags." + }, + "properties": { + "$ref": "#/definitions/PoolUpdateProperties", + "x-ms-client-flatten": true + } + }, + "description": "The type used for update operations of the Pool." + }, + "PoolUpdateProperties": { + "type": "object", + "properties": { + "poolType": { + "$ref": "#/definitions/PoolType", + "description": "Type of the Pool: ephemeral, disk, managed, or elasticsan." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "List of availability zones that resources can be created in." + }, + "poolCapacityGiB": { + "type": "integer", + "format": "int64", + "description": "Initial capacity of the pool in GiB." + }, + "assignments": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "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." + }, + "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" + } + }, + "description": "The updatable properties of the Pool." + }, + "ProtocolType": { + "type": "string", + "enum": [ + "None", + "iSCSI" + ], + "x-ms-enum": { + "name": "ProtocolType", + "modelAsString": true + } + }, + "ProvisioningState": { + "type": "string", + "description": "Provisioning state of the resource.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "ReclaimPolicy": { + "type": "string", + "enum": [ + "Delete", + "Retain" + ], + "x-ms-enum": { + "name": "ReclaimPolicy", + "modelAsString": true + } + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/SkuName", + "description": "Sku name" + }, + "tier": { + "$ref": "#/definitions/AccountTier", + "description": "Sku Account Tier" + } + }, + "description": "Sku definition", + "required": [ + "name", + "tier" + ] + }, + "SkuName": { + "type": "string", + "enum": [ + "Invalid", + "Premium_LRS", + "Premium_ZRS" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, + "VirtualNetworkRule": { + "type": "object", + "properties": { + "action": { + "$ref": "#/definitions/Action", + "description": "Action of rule", + "default": "Allow" + }, + "id": { + "type": "string", + "description": "Id of rule" + } + }, + "description": "Virtual Network Rule definition", + "required": [ + "id" + ] + }, + "Volume": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/VolumeProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "description": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "VolumeBindingMode": { + "type": "string", + "enum": [ + "Immediate", + "WaitFirstForCustomer" + ], + "x-ms-enum": { + "name": "VolumeBindingMode", + "modelAsString": true + } + }, + "VolumeListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Volume" + }, + "x-cadl-name": "Volume[]", + "description": "The Volume items on this page" + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items", + "x-cadl-name": "Rest.ResourceLocation" + } + }, + "description": "The response of a Volume list operation.", + "required": [ + "value" + ] + }, + "VolumeMode": { + "type": "string", + "enum": [ + "Filesystem", + "Raw" + ], + "x-ms-enum": { + "name": "VolumeMode", + "modelAsString": true + } + }, + "VolumeProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-cadl-name": "Record", + "description": "String KV pairs indicating labels" + }, + "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", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "List of string mount options" + } + }, + "description": "Volume Properties", + "required": [ + "labels", + "capacityGiB", + "volumeMode", + "reclaimPolicy", + "mountOptions" + ] + }, + "VolumeSnapshot": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/VolumeSnapshotProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "description": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "VolumeSnapshotListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VolumeSnapshot" + }, + "x-cadl-name": "VolumeSnapshot[]", + "description": "The VolumeSnapshot items on this page" + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items", + "x-cadl-name": "Rest.ResourceLocation" + } + }, + "description": "The response of a VolumeSnapshot list operation.", + "required": [ + "value" + ] + }, + "VolumeSnapshotProperties": { + "type": "object", + "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" + }, + "mountOptions": { + "type": "array", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "List of string mount options" + } + }, + "description": "Volume Snapshot Properties", + "required": [ + "source", + "volumeMode", + "reclaimPolicy", + "mountOptions" + ] + }, + "VolumeSnapshotUpdate": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/VolumeSnapshotUpdateProperties", + "x-ms-client-flatten": true + } + }, + "description": "The type used for update operations of the VolumeSnapshot." + }, + "VolumeSnapshotUpdateProperties": { + "type": "object", + "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", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "List of string mount options" + } + }, + "description": "The updatable properties of the VolumeSnapshot." + }, + "VolumeUpdate": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/VolumeUpdateProperties", + "x-ms-client-flatten": true + } + }, + "description": "The type used for update operations of the Volume." + }, + "VolumeUpdateProperties": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-cadl-name": "Record", + "description": "String KV pairs indicating labels" + }, + "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", + "items": { + "type": "string" + }, + "x-cadl-name": "string[]", + "description": "List of string mount options" + } + }, + "description": "The updatable properties of the Volume." + }, + "WhenUnsatisfiable": { + "type": "string", + "enum": [ + "DoNotSchedule", + "ScheduleAnyway" + ], + "x-ms-enum": { + "name": "WhenUnsatisfiable", + "modelAsString": true + } + } + }, + "parameters": {} +} 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 new file mode 100644 index 000000000000..e295bc378135 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "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 new file mode 100644 index 000000000000..048fc8d3aa86 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List", + "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 new file mode 100644 index 000000000000..23416c4ebdd7 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,161 @@ +{ + "title": "Pools_CreateOrUpdate", + "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 new file mode 100644 index 000000000000..b6e1a023bac6 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_CreateOrUpdate_MinimumSet_Gen.json @@ -0,0 +1,30 @@ +{ + "title": "Pools_CreateOrUpdate", + "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 new file mode 100644 index 000000000000..80e05ad7cec1 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Delete_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "Pools_Delete", + "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 new file mode 100644 index 000000000000..6886bc7b83f2 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Delete_MinimumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "Pools_Delete", + "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 new file mode 100644 index 000000000000..052e2d8a2331 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Get_MaximumSet_Gen.json @@ -0,0 +1,65 @@ +{ + "title": "Pools_Get", + "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 new file mode 100644 index 000000000000..01de89c98636 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Get_MinimumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "Pools_Get", + "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 new file mode 100644 index 000000000000..15f19822eee4 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,69 @@ +{ + "title": "Pools_ListByResourceGroup", + "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 new file mode 100644 index 000000000000..14a5f07472ce --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListByResourceGroup_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "Pools_ListByResourceGroup", + "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 new file mode 100644 index 000000000000..02a3591eee8f --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,68 @@ +{ + "title": "Pools_ListBySubscription", + "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 new file mode 100644 index 000000000000..5a4eaca591ed --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_ListBySubscription_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "Pools_ListBySubscription", + "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 new file mode 100644 index 000000000000..e2675a451b9c --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Update_MaximumSet_Gen.json @@ -0,0 +1,108 @@ +{ + "title": "Pools_Update", + "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 new file mode 100644 index 000000000000..5256b648b54a --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Pools_Update_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "Pools_Update", + "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 new file mode 100644 index 000000000000..bf6c5a0f3126 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,75 @@ +{ + "title": "VolumeSnapshots_CreateOrUpdate", + "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 new file mode 100644 index 000000000000..98310f5d4765 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "VolumeSnapshots_CreateOrUpdate", + "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 new file mode 100644 index 000000000000..b70504c3a13b --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Delete_MaximumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "VolumeSnapshots_Delete", + "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 new file mode 100644 index 000000000000..3c5e2d7b4b85 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Delete_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "VolumeSnapshots_Delete", + "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 new file mode 100644 index 000000000000..d942336fb679 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Get_MaximumSet_Gen.json @@ -0,0 +1,37 @@ +{ + "title": "VolumeSnapshots_Get", + "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 new file mode 100644 index 000000000000..1fa7a05cb8b0 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Get_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "VolumeSnapshots_Get", + "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 new file mode 100644 index 000000000000..894c2dfe6a1d --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_ListByPool_MaximumSet_Gen.json @@ -0,0 +1,41 @@ +{ + "title": "VolumeSnapshots_ListByPool", + "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 new file mode 100644 index 000000000000..414cf0a5707e --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_ListByPool_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "VolumeSnapshots_ListByPool", + "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 new file mode 100644 index 000000000000..0f9cef8b5927 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Update_MaximumSet_Gen.json @@ -0,0 +1,52 @@ +{ + "title": "VolumeSnapshots_Update", + "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 new file mode 100644 index 000000000000..6edc76007459 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/VolumeSnapshots_Update_MinimumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "VolumeSnapshots_Update", + "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 new file mode 100644 index 000000000000..54ba70a78408 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,84 @@ +{ + "title": "Volumes_CreateOrUpdate", + "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 new file mode 100644 index 000000000000..fe99d16b3972 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_CreateOrUpdate_MinimumSet_Gen.json @@ -0,0 +1,23 @@ +{ + "title": "Volumes_CreateOrUpdate", + "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 new file mode 100644 index 000000000000..23afd2bc914a --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Delete_MaximumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "Volumes_Delete", + "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 new file mode 100644 index 000000000000..ebef6af48ac6 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Delete_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "Volumes_Delete", + "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 new file mode 100644 index 000000000000..8119f1ca8d12 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Get_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "title": "Volumes_Get", + "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 new file mode 100644 index 000000000000..b1dbacb25dba --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Get_MinimumSet_Gen.json @@ -0,0 +1,16 @@ +{ + "title": "Volumes_Get", + "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 new file mode 100644 index 000000000000..b99bf17cd321 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_ListByPool_MaximumSet_Gen.json @@ -0,0 +1,44 @@ +{ + "title": "Volumes_ListByPool", + "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 new file mode 100644 index 000000000000..833ce560d22c --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_ListByPool_MinimumSet_Gen.json @@ -0,0 +1,21 @@ +{ + "title": "Volumes_ListByPool", + "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 new file mode 100644 index 000000000000..318c365e5a3c --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Update_MaximumSet_Gen.json @@ -0,0 +1,58 @@ +{ + "title": "Volumes_Update", + "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 new file mode 100644 index 000000000000..c242a6c21b23 --- /dev/null +++ b/specification/containerstorage/resource-manager/Microsoft.ContainerStorage/preview/2023-03-01-preview/examples/Volumes_Update_MinimumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "Volumes_Update", + "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/readme.az.md b/specification/containerstorage/resource-manager/readme.az.md new file mode 100644 index 000000000000..2371e0e34be3 --- /dev/null +++ b/specification/containerstorage/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: containerstorage + namespace: azure.mgmt.containerstorage + package-name: azure-mgmt-containerstorage +az-output-folder: $(azure-cli-extension-folder)/src/containerstorage +python-sdk-output-folder: "$(az-output-folder)/azext_containerstorage/vendored_sdks/containerstorage" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: containerstorage + namespace: azure.mgmt.containerstorage + package-name: azure-mgmt-containerstorage +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/containerstorage +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/containerstorage" +``` \ No newline at end of file diff --git a/specification/containerstorage/resource-manager/readme.go.md b/specification/containerstorage/resource-manager/readme.go.md new file mode 100644 index 000000000000..14cd5131ded0 --- /dev/null +++ b/specification/containerstorage/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/containerstorage/armcontainerstorage +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` \ No newline at end of file diff --git a/specification/containerstorage/resource-manager/readme.md b/specification/containerstorage/resource-manager/readme.md new file mode 100644 index 000000000000..83d171e466ec --- /dev/null +++ b/specification/containerstorage/resource-manager/readme.md @@ -0,0 +1,65 @@ +# containerstorage + +> see https://aka.ms/autorest +This is the AutoRest configuration file for containerstorage. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` +To see additional help and options, run: + +> `autorest --help` +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the containerstorage. + +```yaml +openapi-type: arm +tag: package-2023-03-01-preview +``` + +### Tag: package-2023-03-01-preview + +These settings apply only when `--tag=package-2023-03-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2023-03-01-preview' +input-file: + - Microsoft.ContainerStorage/preview/2023-03-01-preview/containerstorage.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-python + - repo: azure-sdk-for-go + - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions +``` +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) \ No newline at end of file diff --git a/specification/containerstorage/resource-manager/readme.python.md b/specification/containerstorage/resource-manager/readme.python.md new file mode 100644 index 000000000000..269606ec075a --- /dev/null +++ b/specification/containerstorage/resource-manager/readme.python.md @@ -0,0 +1,18 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-containerstorage +namespace: azure.mgmt.containerstorage +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/containerstorage/azure-mgmt-containerstorage/azure/mgmt/containerstorage +``` \ No newline at end of file