From 85dc7f86b8f673e5e1df7d7a9e2ef11892f07f41 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 9 Jun 2023 03:37:12 +0000 Subject: [PATCH] CodeGen from PR 24380 in Azure/azure-rest-api-specs Merge b4e576c44160f9097e0ae1821fcbd7f315623318 into 6914c95db58c8dd037faf07bcc21475fc19c57f3 --- common/config/rush/pnpm-lock.yaml | 18 +- .../arm-storagecache/CHANGELOG.md | 22 +- sdk/storagecache/arm-storagecache/README.md | 4 +- sdk/storagecache/arm-storagecache/_meta.json | 8 +- .../arm-storagecache/package.json | 16 +- .../review/arm-storagecache.api.md | 24 +- .../arm-storagecache/src/models/index.ts | 1307 ++++---- .../arm-storagecache/src/models/mappers.ts | 2820 +++++++++-------- .../arm-storagecache/src/models/parameters.ts | 164 +- .../src/operations/amlFilesystems.ts | 8 +- .../src/operations/ascUsages.ts | 2 +- .../arm-storagecache/src/operations/caches.ts | 8 +- .../arm-storagecache/src/operations/index.ts | 2 +- .../arm-storagecache/src/operations/skus.ts | 4 +- .../src/operations/storageTargets.ts | 2 +- .../src/operations/usageModels.ts | 4 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/storageCacheManagementClient.ts | 16 +- .../arm-storagecache/test/sampleTest.ts | 43 + .../arm-storagecache/tsconfig.json | 10 +- 20 files changed, 2302 insertions(+), 2182 deletions(-) create mode 100644 sdk/storagecache/arm-storagecache/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e38fc9667b68..26e54bc87064 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3832,7 +3832,7 @@ packages: dependencies: semver: 7.5.1 shelljs: 0.8.5 - typescript: 5.2.0-dev.20230607 + typescript: 5.2.0-dev.20230608 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8413,6 +8413,12 @@ packages: hasBin: true dev: false + /typescript/4.8.4: + resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: false + /typescript/5.0.4: resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} engines: {node: '>=12.20'} @@ -8425,8 +8431,8 @@ packages: hasBin: true dev: false - /typescript/5.2.0-dev.20230607: - resolution: {integrity: sha512-7Lgk1sNuuYpMNvHuXIMczqhLbJ99RpX3VgokK+Ir4DgliycYNrNGM/daAO38fHkk8n3lg2rP/6U5I545xTJdKA==} + /typescript/5.2.0-dev.20230608: + resolution: {integrity: sha512-My8VOVNpHAZ693+NgsvD2JXgXg5eosPJcEDzPcme8tU1vs+C6G6liR15r3qd1qSSNjDghmCe014GjWspVBZ7ag==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -14780,7 +14786,7 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-ZZwVPFxcdwTqREdIFk0Owe2CGUBvb+tSbyHoWJBOPqqJWaBKAr53Ey95OAlUUHzq/gm+8X9yoWudB2aldibIlQ==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-rQLpImDlP5Q6Pr8XXxfzhKfnCqB77/Nj673T9ycjxSxFAMTppImcs76CefwVedJORwL8N9UVDEXgZm4MP5cy/Q==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: @@ -14801,7 +14807,7 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_6vxqa4pl2c5hli7lcaemfsm5je tslib: 2.5.3 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color @@ -19316,7 +19322,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-Ta2DL1i32tq8YzBuBOpmsMPn5ZwaEkk4UK/PIovIBFkm19A6Pb/TcIsJWYe2IDV6bmz9S4jLLFdRex0krtigYw==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-f0RGxZzt5s5rF+1pBkZleSk7bOLQawxz/qvsF4L105R3AjRInegaSSfWfSSf2qk4KLN4poZu3iGkiw7nbKPSnQ==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: diff --git a/sdk/storagecache/arm-storagecache/CHANGELOG.md b/sdk/storagecache/arm-storagecache/CHANGELOG.md index e76858665bfc..aa2e10bb3544 100644 --- a/sdk/storagecache/arm-storagecache/CHANGELOG.md +++ b/sdk/storagecache/arm-storagecache/CHANGELOG.md @@ -1,16 +1,6 @@ # Release History - -## 7.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 7.0.0-beta.1 (2023-03-06) + +## 7.0.0 (2023-06-09) **Features** @@ -21,6 +11,8 @@ - Added Interface AmlFilesystemArchiveStatus - Added Interface AmlFilesystemCheckSubnetError - Added Interface AmlFilesystemCheckSubnetErrorFilesystemSubnet + - Added Interface AmlFilesystemClientInfo + - Added Interface AmlFilesystemContainerStorageInterface - Added Interface AmlFilesystemEncryptionSettings - Added Interface AmlFilesystemHealth - Added Interface AmlFilesystemHsmSettings @@ -66,7 +58,6 @@ - Added Type Alias FilesystemSubnetStatusType - Added Type Alias GetRequiredAmlFSSubnetsSizeResponse - Added Type Alias MaintenanceDayOfWeekType - - Interface Cache_2 has a new optional parameter scalingFactor - Added Enum KnownAmlFilesystemHealthStateType - Added Enum KnownAmlFilesystemProvisioningStateType - Added Enum KnownArchiveStatusType @@ -75,6 +66,11 @@ **Breaking Changes** + - Type of parameter userAssignedIdentities of interface CacheIdentity is changed from { + [propertyName: string]: UserAssignedIdentitiesValue; + } to { + [propertyName: string]: UserAssignedIdentitiesValueAutoGenerated; + } - Enum KnownProvisioningStateType no longer has value Cancelled diff --git a/sdk/storagecache/arm-storagecache/README.md b/sdk/storagecache/arm-storagecache/README.md index be69f08a0006..39ad7a78b91a 100644 --- a/sdk/storagecache/arm-storagecache/README.md +++ b/sdk/storagecache/arm-storagecache/README.md @@ -2,11 +2,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure StorageCacheManagement client. -A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage Caches. +Azure Managed Lustre provides a fully managed LustreĀ® file system, integrated with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagecache/arm-storagecache) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-storagecache) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storagecache?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storagecache) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/storagecache/arm-storagecache/_meta.json b/sdk/storagecache/arm-storagecache/_meta.json index 6627cf0f9315..845ee45765be 100644 --- a/sdk/storagecache/arm-storagecache/_meta.json +++ b/sdk/storagecache/arm-storagecache/_meta.json @@ -1,8 +1,8 @@ { - "commit": "66174681c09b101de03fd35399080cfbccc93e8f", + "commit": "674e8468d8b504621f328839e77fca4ac20b734a", "readme": "specification/storagecache/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storagecache\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/storagecache/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.9" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/storagecache/arm-storagecache/package.json b/sdk/storagecache/arm-storagecache/package.json index 96a5f084a78d..86e7079d7bb6 100644 --- a/sdk/storagecache/arm-storagecache/package.json +++ b/sdk/storagecache/arm-storagecache/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for StorageCacheManagementClient.", - "version": "7.0.0-beta.2", + "version": "7.0.0", "engines": { "node": ">=14.0.0" }, @@ -36,7 +36,7 @@ "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "dotenv": "^16.0.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagecache/arm-storagecache", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagecache?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagecache/arm-storagecache" +} \ No newline at end of file diff --git a/sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md b/sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md index 7f432002b39d..847404413905 100644 --- a/sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md +++ b/sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md @@ -12,15 +12,13 @@ import { SimplePollerLike } from '@azure/core-lro'; // @public export interface AmlFilesystem extends TrackedResource { + readonly clientInfo?: AmlFilesystemClientInfo; encryptionSettings?: AmlFilesystemEncryptionSettings; filesystemSubnet?: string; readonly health?: AmlFilesystemHealth; hsm?: AmlFilesystemPropertiesHsm; identity?: AmlFilesystemIdentity; - readonly lustreVersion?: string; maintenanceWindow?: AmlFilesystemPropertiesMaintenanceWindow; - readonly mgsAddress?: string; - readonly mountCommand?: string; readonly provisioningState?: AmlFilesystemProvisioningStateType; sku?: SkuName; storageCapacityTiB?: number; @@ -60,6 +58,21 @@ export interface AmlFilesystemCheckSubnetErrorFilesystemSubnet { status?: FilesystemSubnetStatusType; } +// @public +export interface AmlFilesystemClientInfo { + readonly containerStorageInterface?: AmlFilesystemContainerStorageInterface; + readonly lustreVersion?: string; + readonly mgsAddress?: string; + readonly mountCommand?: string; +} + +// @public +export interface AmlFilesystemContainerStorageInterface { + readonly persistentVolume?: string; + readonly persistentVolumeClaim?: string; + readonly storageClass?: string; +} + // @public export interface AmlFilesystemEncryptionSettings { keyEncryptionKey?: KeyVaultKeyReference; @@ -88,7 +101,7 @@ export interface AmlFilesystemIdentity { readonly tenantId?: string; type?: AmlFilesystemIdentityType; userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValueAutoGenerated; + [propertyName: string]: UserAssignedIdentitiesValue; }; } @@ -337,7 +350,6 @@ interface Cache_2 { networkSettings?: CacheNetworkSettings; readonly primingJobs?: PrimingJob[]; readonly provisioningState?: ProvisioningStateType; - scalingFactor?: number; securitySettings?: CacheSecuritySettings; sku?: CacheSku; readonly spaceAllocation?: StorageTargetSpaceAllocation[]; @@ -395,7 +407,7 @@ export interface CacheIdentity { readonly tenantId?: string; type?: CacheIdentityType; userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValue; + [propertyName: string]: UserAssignedIdentitiesValueAutoGenerated; }; } diff --git a/sdk/storagecache/arm-storagecache/src/models/index.ts b/sdk/storagecache/arm-storagecache/src/models/index.ts index aaed6a3ffc0e..7cb5cf132054 100644 --- a/sdk/storagecache/arm-storagecache/src/models/index.ts +++ b/sdk/storagecache/arm-storagecache/src/models/index.ts @@ -8,6 +8,325 @@ import * as coreClient from "@azure/core-client"; +/** Result of the request to list AML file systems. It contains a list of AML file systems and a URL link to get the next set of results. */ +export interface AmlFilesystemsListResult { + /** URL to get the next set of AML file system list results, if there are any. */ + nextLink?: string; + /** List of AML file systems. */ + value?: AmlFilesystem[]; +} + +/** Managed Identity properties. */ +export interface AmlFilesystemIdentity { + /** + * The principal ID for the user-assigned identity of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID associated with the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** The type of identity used for the resource. */ + type?: AmlFilesystemIdentityType; + /** A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentitiesValue; + }; +} + +export interface UserAssignedIdentitiesValue { + /** + * The principal ID of the user-assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of the user-assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + +/** SKU for the resource. */ +export interface SkuName { + /** SKU name for this resource. */ + name?: string; +} + +/** An indication of AML file system health. Gives more information about health than just that related to provisioning. */ +export interface AmlFilesystemHealth { + /** List of AML file system health states. */ + state?: AmlFilesystemHealthStateType; + /** Server-defined error code for the AML file system health */ + statusCode?: string; + /** Describes the health state. */ + statusDescription?: string; +} + +/** AML file system client information */ +export interface AmlFilesystemClientInfo { + /** + * The IPv4 address used by clients to mount the AML file system's Lustre Management Service (MGS). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly mgsAddress?: string; + /** + * Recommended command to mount the AML file system + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly mountCommand?: string; + /** + * The version of Lustre running in the AML file system + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lustreVersion?: string; + /** + * Container Storage Interface information for the AML file system. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly containerStorageInterface?: AmlFilesystemContainerStorageInterface; +} + +/** AML file system container storage interface information */ +export interface AmlFilesystemContainerStorageInterface { + /** + * Recommended AKS Persistent Volume Claim for the CSI driver, in Base64 encoded YAML + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly persistentVolumeClaim?: string; + /** + * Recommended AKS Persistent Volume for the CSI driver, in Base64 encoded YAML + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly persistentVolume?: string; + /** + * Recommended AKS Storage Class for the CSI driver, in Base64 encoded YAML + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly storageClass?: string; +} + +/** AML file system encryption settings. */ +export interface AmlFilesystemEncryptionSettings { + /** Specifies the location of the encryption key in Key Vault. */ + keyEncryptionKey?: KeyVaultKeyReference; +} + +/** Describes a reference to key vault key. */ +export interface KeyVaultKeyReference { + /** The URL referencing a key encryption key in key vault. */ + keyUrl: string; + /** Describes a resource Id to source key vault. */ + sourceVault: KeyVaultKeyReferenceSourceVault; +} + +/** Describes a resource Id to source key vault. */ +export interface KeyVaultKeyReferenceSourceVault { + /** Resource Id. */ + id?: string; +} + +/** Start time of a 30-minute weekly maintenance window. */ +export interface AmlFilesystemPropertiesMaintenanceWindow { + /** Day of the week on which the maintenance window will occur. */ + dayOfWeek?: MaintenanceDayOfWeekType; + /** The time of day (in UTC) to start the maintenance window. */ + timeOfDayUTC?: string; +} + +/** Hydration and archive settings and status */ +export interface AmlFilesystemPropertiesHsm { + /** Specifies HSM settings of the AML file system. */ + settings?: AmlFilesystemHsmSettings; + /** + * Archive status + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly archiveStatus?: AmlFilesystemArchive[]; +} + +/** AML file system HSM settings. */ +export interface AmlFilesystemHsmSettings { + /** Resource ID of storage container used for hydrating the namespace and archiving from the namespace. The resource provider must have permission to create SAS tokens on the storage account. */ + container: string; + /** Resource ID of storage container used for logging events and errors. Must be a separate container in the same storage account as the hydration and archive container. The resource provider must have permission to create SAS tokens on the storage account. */ + loggingContainer: string; + /** Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster namespace. */ + importPrefix?: string; +} + +/** Information about the AML file system archive */ +export interface AmlFilesystemArchive { + /** + * Lustre file system path to archive relative to the file system root. Specify '/' to archive all modified data. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly filesystemPath?: string; + /** + * The status of the archive + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: AmlFilesystemArchiveStatus; +} + +/** The status of the archive */ +export interface AmlFilesystemArchiveStatus { + /** + * The state of the archive operation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ArchiveStatusType; + /** + * The time of the last completed archive operation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastCompletionTime?: Date; + /** + * The time the latest archive operation started + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastStartedTime?: Date; + /** + * The completion percentage of the archive operation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentComplete?: number; + /** + * Server-defined error code for the archive operation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorCode?: string; + /** + * Server-defined error message for the archive operation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** An error response. */ +export interface CloudError { + /** The body of the error. */ + error?: CloudErrorBody; +} + +/** An error response. */ +export interface CloudErrorBody { + /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ + code?: string; + /** A list of additional details about the error. */ + details?: CloudErrorBody[]; + /** A message describing the error, intended to be suitable for display in a user interface. */ + message?: string; + /** The target of the particular error. For example, the name of the property in error. */ + target?: string; +} + +/** An AML file system update instance. */ +export interface AmlFilesystemUpdate { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Specifies encryption settings of the AML file system. */ + encryptionSettings?: AmlFilesystemEncryptionSettings; + /** Start time of a 30-minute weekly maintenance window. */ + maintenanceWindow?: AmlFilesystemUpdatePropertiesMaintenanceWindow; +} + +/** Start time of a 30-minute weekly maintenance window. */ +export interface AmlFilesystemUpdatePropertiesMaintenanceWindow { + /** Day of the week on which the maintenance window will occur. */ + dayOfWeek?: MaintenanceDayOfWeekType; + /** The time of day (in UTC) to start the maintenance window. */ + timeOfDayUTC?: string; +} + +/** Information required to execute the archive operation */ +export interface AmlFilesystemArchiveInfo { + /** Lustre file system path to archive relative to the file system root. Specify '/' to archive all modified data. */ + filesystemPath?: string; +} + +/** Information required to validate the subnet that will be used in AML file system create */ +export interface AmlFilesystemSubnetInfo { + /** Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. */ + filesystemSubnet?: string; + /** The size of the AML file system, in TiB. */ + storageCapacityTiB?: number; + /** SKU for the resource. */ + sku?: SkuName; + /** Region that the AML file system will be created in. */ + location?: string; +} + +/** The error details provided when the checkAmlFSSubnets call fails. */ +export interface AmlFilesystemCheckSubnetError { + /** The error details for the AML file system's subnet. */ + filesystemSubnet?: AmlFilesystemCheckSubnetErrorFilesystemSubnet; +} + +/** The error details for the AML file system's subnet. */ +export interface AmlFilesystemCheckSubnetErrorFilesystemSubnet { + /** The status of the AML file system subnet check. */ + status?: FilesystemSubnetStatusType; + /** The details of the AML file system subnet check. */ + message?: string; +} + +/** Information required to get the number of available IP addresses a subnet should have that will be used in AML file system create */ +export interface RequiredAmlFilesystemSubnetsSizeInfo { + /** The size of the AML file system, in TiB. */ + storageCapacityTiB?: number; + /** SKU for the resource. */ + sku?: SkuName; +} + +/** Information about the number of available IP addresses that are required for the AML file system. */ +export interface RequiredAmlFilesystemSubnetsSize { + /** The number of available IP addresses that are required for the AML file system. */ + filesystemSubnetSize?: number; +} + /** Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results. */ export interface ApiOperationListResult { /** URL to get the next set of operation list results if there are any. */ @@ -90,24 +409,6 @@ export interface LogSpecification { displayName?: string; } -/** An error response. */ -export interface CloudError { - /** The body of the error. */ - error?: CloudErrorBody; -} - -/** An error response. */ -export interface CloudErrorBody { - /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ - code?: string; - /** A list of additional details about the error. */ - details?: CloudErrorBody[]; - /** A message describing the error, intended to be suitable for display in a user interface. */ - message?: string; - /** The target of the particular error. For example, the name of the property in error. */ - target?: string; -} - /** The response from the List Cache SKUs operation. */ export interface ResourceSkusResult { /** The URI to fetch the next page of cache SKUs. */ @@ -307,10 +608,8 @@ export interface Cache { readonly systemData?: SystemData; /** SKU for the cache. */ sku?: CacheSku; - /** The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the cache SKU - List SKUs. */ + /** The size of this Cache, in GB. */ cacheSizeGB?: number; - /** Multiplier that sets the current storage and throughput capacity of the cache. Values depend on the cache SKU - List SKUs. Values above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% larger than its base size. */ - scalingFactor?: number; /** * Health of the cache. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -373,11 +672,11 @@ export interface CacheIdentity { type?: CacheIdentityType; /** A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary. */ userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValue; + [propertyName: string]: UserAssignedIdentitiesValueAutoGenerated; }; } -export interface UserAssignedIdentitiesValue { +export interface UserAssignedIdentitiesValueAutoGenerated { /** * The principal ID of the user-assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -390,22 +689,6 @@ export interface UserAssignedIdentitiesValue { readonly clientId?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - /** An indication of cache health. Gives more information about health than just that related to provisioning. */ export interface CacheHealth { /** List of cache health states. Down is when the cluster is not responding. Degraded is when its functioning but has some alerts. Transitioning when it is creating or deleting. Unknown will be returned in old api versions when a new value is added in future versions. WaitingForKey is when the create is waiting for the system assigned identity to be given access to the encryption key in the encryption settings. */ @@ -495,20 +778,6 @@ export interface CacheEncryptionSettings { rotationToLatestKeyVersionEnabled?: boolean; } -/** Describes a reference to key vault key. */ -export interface KeyVaultKeyReference { - /** The URL referencing a key encryption key in key vault. */ - keyUrl: string; - /** Describes a resource Id to source key vault. */ - sourceVault: KeyVaultKeyReferenceSourceVault; -} - -/** Describes a resource Id to source key vault. */ -export interface KeyVaultKeyReferenceSourceVault { - /** Resource Id. */ - id?: string; -} - /** Cache security settings. */ export interface CacheSecuritySettings { /** NFS access policies defined for this cache. */ @@ -699,290 +968,70 @@ export interface Nfs3Target { } /** Properties pertaining to the ClfsTarget */ -export interface ClfsTarget { - /** Resource ID of storage container. */ - target?: string; -} - -/** Properties pertaining to the UnknownTarget */ -export interface UnknownTarget { - /** Dictionary of string->string pairs containing information about the Storage Target. */ - attributes?: { [propertyName: string]: string }; -} - -/** Properties pertaining to the BlobNfsTarget. */ -export interface BlobNfsTarget { - /** Resource ID of the storage container. */ - target?: string; - /** Identifies the StorageCache usage model to be used for this storage target. */ - usageModel?: string; - /** Amount of time (in seconds) the cache waits before it checks the back-end storage for file updates. */ - verificationTimer?: number; - /** Amount of time (in seconds) the cache waits after the last file change before it copies the changed file to back-end storage. */ - writeBackTimer?: number; -} - -/** Resource used by a cache. */ -export interface StorageTargetResource { - /** - * Name of the Storage Target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource ID of the Storage Target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Type of the Storage Target; Microsoft.StorageCache/Cache/StorageTarget - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Region name string. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * The system meta data relating to this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** Object containing the priming job ID. */ -export interface PrimingJobIdParameter { - /** The unique identifier of the priming job. */ - primingJobId: string; -} - -/** Result of the request to list AML file systems. It contains a list of AML file systems and a URL link to get the next set of results. */ -export interface AmlFilesystemsListResult { - /** URL to get the next set of AML file system list results, if there are any. */ - nextLink?: string; - /** List of AML file systems. */ - value?: AmlFilesystem[]; -} - -/** Managed Identity properties. */ -export interface AmlFilesystemIdentity { - /** - * The principal ID for the user-assigned identity of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant ID associated with the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** The type of identity used for the resource. */ - type?: AmlFilesystemIdentityType; - /** A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary. */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentitiesValueAutoGenerated; - }; -} - -export interface UserAssignedIdentitiesValueAutoGenerated { - /** - * The principal ID of the user-assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The client ID of the user-assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; -} - -/** SKU for the resource. */ -export interface SkuName { - /** SKU name for this resource. */ - name?: string; -} - -/** An indication of AML file system health. Gives more information about health than just that related to provisioning. */ -export interface AmlFilesystemHealth { - /** List of AML file system health states. */ - state?: AmlFilesystemHealthStateType; - /** Server-defined error code for the AML file system health */ - statusCode?: string; - /** Describes the health state. */ - statusDescription?: string; -} - -/** AML file system encryption settings. */ -export interface AmlFilesystemEncryptionSettings { - /** Specifies the location of the encryption key in Key Vault. */ - keyEncryptionKey?: KeyVaultKeyReference; -} - -/** Start time of a 30-minute weekly maintenance window. */ -export interface AmlFilesystemPropertiesMaintenanceWindow { - /** Day of the week on which the maintenance window will occur. */ - dayOfWeek?: MaintenanceDayOfWeekType; - /** The time of day (in UTC) to start the maintenance window. */ - timeOfDayUTC?: string; -} - -/** Hydration and archive settings and status */ -export interface AmlFilesystemPropertiesHsm { - /** Specifies HSM settings of the AML file system. */ - settings?: AmlFilesystemHsmSettings; - /** - * Archive status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly archiveStatus?: AmlFilesystemArchive[]; -} - -/** AML file system HSM settings. */ -export interface AmlFilesystemHsmSettings { - /** Resource ID of storage container used for hydrating the namespace and archiving from the namespace. The resource provider must have permission to create SAS tokens on the storage account. */ - container: string; - /** Resource ID of storage container used for logging events and errors. Must be a separate container in the same storage account as the hydration and archive container. The resource provider must have permission to create SAS tokens on the storage account. */ - loggingContainer: string; - /** Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster namespace. */ - importPrefix?: string; -} - -/** Information about the AML file system archive */ -export interface AmlFilesystemArchive { - /** - * Lustre file system path to archive relative to the file system root. Specify '/' to archive all modified data. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly filesystemPath?: string; - /** - * The status of the archive - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: AmlFilesystemArchiveStatus; +export interface ClfsTarget { + /** Resource ID of storage container. */ + target?: string; } -/** The status of the archive */ -export interface AmlFilesystemArchiveStatus { - /** - * The state of the archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: ArchiveStatusType; - /** - * The time of the last completed archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastCompletionTime?: Date; - /** - * The time the latest archive operation started - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastStartedTime?: Date; - /** - * The completion percentage of the archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly percentComplete?: number; - /** - * Server-defined error code for the archive operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorCode?: string; +/** Properties pertaining to the UnknownTarget */ +export interface UnknownTarget { + /** Dictionary of string->string pairs containing information about the Storage Target. */ + attributes?: { [propertyName: string]: string }; +} + +/** Properties pertaining to the BlobNfsTarget. */ +export interface BlobNfsTarget { + /** Resource ID of the storage container. */ + target?: string; + /** Identifies the StorageCache usage model to be used for this storage target. */ + usageModel?: string; + /** Amount of time (in seconds) the cache waits before it checks the back-end storage for file updates. */ + verificationTimer?: number; + /** Amount of time (in seconds) the cache waits after the last file change before it copies the changed file to back-end storage. */ + writeBackTimer?: number; +} + +/** Resource used by a cache. */ +export interface StorageTargetResource { /** - * Server-defined error message for the archive operation + * Name of the Storage Target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorMessage?: string; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { + readonly name?: string; /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * Resource ID of the Storage Target. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * The name of the resource + * Type of the Storage Target; Microsoft.StorageCache/Cache/StorageTarget * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly type?: string; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * Region name string. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly location?: string; /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * The system meta data relating to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; } -/** An AML file system update instance. */ -export interface AmlFilesystemUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Specifies encryption settings of the AML file system. */ - encryptionSettings?: AmlFilesystemEncryptionSettings; - /** Start time of a 30-minute weekly maintenance window. */ - maintenanceWindow?: AmlFilesystemUpdatePropertiesMaintenanceWindow; -} - -/** Start time of a 30-minute weekly maintenance window. */ -export interface AmlFilesystemUpdatePropertiesMaintenanceWindow { - /** Day of the week on which the maintenance window will occur. */ - dayOfWeek?: MaintenanceDayOfWeekType; - /** The time of day (in UTC) to start the maintenance window. */ - timeOfDayUTC?: string; -} - -/** Information required to execute the archive operation */ -export interface AmlFilesystemArchiveInfo { - /** Lustre file system path to archive relative to the file system root. Specify '/' to archive all modified data. */ - filesystemPath?: string; -} - -/** Information required to validate the subnet that will be used in AML file system create */ -export interface AmlFilesystemSubnetInfo { - /** Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. */ - filesystemSubnet?: string; - /** The size of the AML file system, in TiB. */ - storageCapacityTiB?: number; - /** SKU for the resource. */ - sku?: SkuName; - /** Region that the AML file system will be created in. */ - location?: string; -} - -/** The error details provided when the checkAmlFSSubnets call fails. */ -export interface AmlFilesystemCheckSubnetError { - /** The error details for the AML file system's subnet. */ - filesystemSubnet?: AmlFilesystemCheckSubnetErrorFilesystemSubnet; -} - -/** The error details for the AML file system's subnet. */ -export interface AmlFilesystemCheckSubnetErrorFilesystemSubnet { - /** The status of the AML file system subnet check. */ - status?: FilesystemSubnetStatusType; - /** The details of the AML file system subnet check. */ - message?: string; -} - -/** Information required to get the number of available IP addresses a subnet should have that will be used in AML file system create */ -export interface RequiredAmlFilesystemSubnetsSizeInfo { - /** The size of the AML file system, in TiB. */ - storageCapacityTiB?: number; - /** SKU for the resource. */ - sku?: SkuName; +/** Object containing the priming job ID. */ +export interface PrimingJobIdParameter { + /** The unique identifier of the priming job. */ + primingJobId: string; } -/** Information about the number of available IP addresses that are required for the AML file system. */ -export interface RequiredAmlFilesystemSubnetsSize { - /** The number of available IP addresses that are required for the AML file system. */ - filesystemSubnetSize?: number; +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; } /** Type of the Storage Target. */ @@ -1013,14 +1062,6 @@ export interface StorageTarget extends StorageTargetResource { readonly allocationPercentage?: number; } -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - /** An AML file system instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md */ export interface AmlFilesystem extends TrackedResource { /** The managed identity used by the AML file system, if configured. */ @@ -1044,20 +1085,10 @@ export interface AmlFilesystem extends TrackedResource { /** Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. */ filesystemSubnet?: string; /** - * The IPv4 address used by clients to mount the AML file system's Lustre Management Service (MGS). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mgsAddress?: string; - /** - * Recommended command to mount the AML file system - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mountCommand?: string; - /** - * The version of Lustre running in the AML file system + * Client information for the AML file system. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lustreVersion?: string; + readonly clientInfo?: AmlFilesystemClientInfo; /** * Throughput provisioned in MB per sec, calculated as storageCapacityTiB * per-unit storage throughput * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1071,6 +1102,28 @@ export interface AmlFilesystem extends TrackedResource { hsm?: AmlFilesystemPropertiesHsm; } +/** Defines headers for AmlFilesystems_delete operation. */ +export interface AmlFilesystemsDeleteHeaders { + /** Location URI to poll for result */ + location?: string; + /** URI to poll for the operation status */ + azureAsyncOperation?: string; +} + +/** Defines headers for AmlFilesystems_createOrUpdate operation. */ +export interface AmlFilesystemsCreateOrUpdateHeaders { + /** URI to poll for the operation status */ + azureAsyncOperation?: string; +} + +/** Defines headers for AmlFilesystems_update operation. */ +export interface AmlFilesystemsUpdateHeaders { + /** URI to poll for the operation status */ + location?: string; + /** URI to poll for the operation status */ + azureAsyncOperation?: string; +} + /** Defines headers for Caches_delete operation. */ export interface CachesDeleteHeaders { /** Location URI to poll for result */ @@ -1199,51 +1252,164 @@ export interface StorageTargetFlushHeaders { azureAsyncOperation?: string; } -/** Defines headers for StorageTarget_suspend operation. */ -export interface StorageTargetSuspendHeaders { - /** Location URI to poll for result */ - location?: string; - /** URI to poll for the operation status */ - azureAsyncOperation?: string; +/** Defines headers for StorageTarget_suspend operation. */ +export interface StorageTargetSuspendHeaders { + /** Location URI to poll for result */ + location?: string; + /** URI to poll for the operation status */ + azureAsyncOperation?: string; +} + +/** Defines headers for StorageTarget_resume operation. */ +export interface StorageTargetResumeHeaders { + /** Location URI to poll for result */ + location?: string; + /** URI to poll for the operation status */ + azureAsyncOperation?: string; +} + +/** Defines headers for StorageTarget_invalidate operation. */ +export interface StorageTargetInvalidateHeaders { + /** Location URI to poll for result */ + location?: string; + /** URI to poll for the operation status */ + azureAsyncOperation?: string; +} + +/** Known values of {@link AmlFilesystemHealthStateType} that the service accepts. */ +export enum KnownAmlFilesystemHealthStateType { + /** Unavailable */ + Unavailable = "Unavailable", + /** Available */ + Available = "Available", + /** Degraded */ + Degraded = "Degraded", + /** Transitioning */ + Transitioning = "Transitioning", + /** Maintenance */ + Maintenance = "Maintenance" +} + +/** + * Defines values for AmlFilesystemHealthStateType. \ + * {@link KnownAmlFilesystemHealthStateType} can be used interchangeably with AmlFilesystemHealthStateType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unavailable** \ + * **Available** \ + * **Degraded** \ + * **Transitioning** \ + * **Maintenance** + */ +export type AmlFilesystemHealthStateType = string; + +/** Known values of {@link AmlFilesystemProvisioningStateType} that the service accepts. */ +export enum KnownAmlFilesystemProvisioningStateType { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Updating */ + Updating = "Updating", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for AmlFilesystemProvisioningStateType. \ + * {@link KnownAmlFilesystemProvisioningStateType} can be used interchangeably with AmlFilesystemProvisioningStateType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Creating** \ + * **Deleting** \ + * **Updating** \ + * **Canceled** + */ +export type AmlFilesystemProvisioningStateType = string; + +/** Known values of {@link ArchiveStatusType} that the service accepts. */ +export enum KnownArchiveStatusType { + /** NotConfigured */ + NotConfigured = "NotConfigured", + /** Idle */ + Idle = "Idle", + /** InProgress */ + InProgress = "InProgress", + /** Canceled */ + Canceled = "Canceled", + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** Cancelling */ + Cancelling = "Cancelling", + /** FSScanInProgress */ + FSScanInProgress = "FSScanInProgress" } -/** Defines headers for StorageTarget_resume operation. */ -export interface StorageTargetResumeHeaders { - /** Location URI to poll for result */ - location?: string; - /** URI to poll for the operation status */ - azureAsyncOperation?: string; -} +/** + * Defines values for ArchiveStatusType. \ + * {@link KnownArchiveStatusType} can be used interchangeably with ArchiveStatusType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotConfigured** \ + * **Idle** \ + * **InProgress** \ + * **Canceled** \ + * **Completed** \ + * **Failed** \ + * **Cancelling** \ + * **FSScanInProgress** + */ +export type ArchiveStatusType = string; -/** Defines headers for StorageTarget_invalidate operation. */ -export interface StorageTargetInvalidateHeaders { - /** Location URI to poll for result */ - location?: string; - /** URI to poll for the operation status */ - azureAsyncOperation?: string; +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" } -/** Defines headers for AmlFilesystems_delete operation. */ -export interface AmlFilesystemsDeleteHeaders { - /** Location URI to poll for result */ - location?: string; - /** URI to poll for the operation status */ - azureAsyncOperation?: string; -} +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; -/** Defines headers for AmlFilesystems_createOrUpdate operation. */ -export interface AmlFilesystemsCreateOrUpdateHeaders { - /** URI to poll for the operation status */ - azureAsyncOperation?: string; +/** Known values of {@link FilesystemSubnetStatusType} that the service accepts. */ +export enum KnownFilesystemSubnetStatusType { + /** Ok */ + Ok = "Ok", + /** Invalid */ + Invalid = "Invalid" } -/** Defines headers for AmlFilesystems_update operation. */ -export interface AmlFilesystemsUpdateHeaders { - /** URI to poll for the operation status */ - location?: string; - /** URI to poll for the operation status */ - azureAsyncOperation?: string; -} +/** + * Defines values for FilesystemSubnetStatusType. \ + * {@link KnownFilesystemSubnetStatusType} can be used interchangeably with FilesystemSubnetStatusType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Ok** \ + * **Invalid** + */ +export type FilesystemSubnetStatusType = string; /** Known values of {@link MetricAggregationType} that the service accepts. */ export enum KnownMetricAggregationType { @@ -1296,30 +1462,6 @@ export enum KnownReasonCode { */ export type ReasonCode = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link HealthStateType} that the service accepts. */ export enum KnownHealthStateType { /** Unknown */ @@ -1552,166 +1694,49 @@ export type PrimingJobState = string; export enum KnownStorageTargetType { /** Nfs3 */ Nfs3 = "nfs3", - /** Clfs */ - Clfs = "clfs", - /** Unknown */ - Unknown = "unknown", - /** BlobNfs */ - BlobNfs = "blobNfs" -} - -/** - * Defines values for StorageTargetType. \ - * {@link KnownStorageTargetType} can be used interchangeably with StorageTargetType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **nfs3** \ - * **clfs** \ - * **unknown** \ - * **blobNfs** - */ -export type StorageTargetType = string; - -/** Known values of {@link OperationalStateType} that the service accepts. */ -export enum KnownOperationalStateType { - /** Ready */ - Ready = "Ready", - /** Busy */ - Busy = "Busy", - /** Suspended */ - Suspended = "Suspended", - /** Flushing */ - Flushing = "Flushing" -} - -/** - * Defines values for OperationalStateType. \ - * {@link KnownOperationalStateType} can be used interchangeably with OperationalStateType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Ready** \ - * **Busy** \ - * **Suspended** \ - * **Flushing** - */ -export type OperationalStateType = string; - -/** Known values of {@link AmlFilesystemHealthStateType} that the service accepts. */ -export enum KnownAmlFilesystemHealthStateType { - /** Unavailable */ - Unavailable = "Unavailable", - /** Available */ - Available = "Available", - /** Degraded */ - Degraded = "Degraded", - /** Transitioning */ - Transitioning = "Transitioning", - /** Maintenance */ - Maintenance = "Maintenance" -} - -/** - * Defines values for AmlFilesystemHealthStateType. \ - * {@link KnownAmlFilesystemHealthStateType} can be used interchangeably with AmlFilesystemHealthStateType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unavailable** \ - * **Available** \ - * **Degraded** \ - * **Transitioning** \ - * **Maintenance** - */ -export type AmlFilesystemHealthStateType = string; - -/** Known values of {@link AmlFilesystemProvisioningStateType} that the service accepts. */ -export enum KnownAmlFilesystemProvisioningStateType { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Updating */ - Updating = "Updating", - /** Canceled */ - Canceled = "Canceled" -} - -/** - * Defines values for AmlFilesystemProvisioningStateType. \ - * {@link KnownAmlFilesystemProvisioningStateType} can be used interchangeably with AmlFilesystemProvisioningStateType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Creating** \ - * **Deleting** \ - * **Updating** \ - * **Canceled** - */ -export type AmlFilesystemProvisioningStateType = string; - -/** Known values of {@link ArchiveStatusType} that the service accepts. */ -export enum KnownArchiveStatusType { - /** NotConfigured */ - NotConfigured = "NotConfigured", - /** Idle */ - Idle = "Idle", - /** InProgress */ - InProgress = "InProgress", - /** Canceled */ - Canceled = "Canceled", - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** Cancelling */ - Cancelling = "Cancelling", - /** FSScanInProgress */ - FSScanInProgress = "FSScanInProgress" + /** Clfs */ + Clfs = "clfs", + /** Unknown */ + Unknown = "unknown", + /** BlobNfs */ + BlobNfs = "blobNfs" } /** - * Defines values for ArchiveStatusType. \ - * {@link KnownArchiveStatusType} can be used interchangeably with ArchiveStatusType, + * Defines values for StorageTargetType. \ + * {@link KnownStorageTargetType} can be used interchangeably with StorageTargetType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotConfigured** \ - * **Idle** \ - * **InProgress** \ - * **Canceled** \ - * **Completed** \ - * **Failed** \ - * **Cancelling** \ - * **FSScanInProgress** + * **nfs3** \ + * **clfs** \ + * **unknown** \ + * **blobNfs** */ -export type ArchiveStatusType = string; +export type StorageTargetType = string; -/** Known values of {@link FilesystemSubnetStatusType} that the service accepts. */ -export enum KnownFilesystemSubnetStatusType { - /** Ok */ - Ok = "Ok", - /** Invalid */ - Invalid = "Invalid" +/** Known values of {@link OperationalStateType} that the service accepts. */ +export enum KnownOperationalStateType { + /** Ready */ + Ready = "Ready", + /** Busy */ + Busy = "Busy", + /** Suspended */ + Suspended = "Suspended", + /** Flushing */ + Flushing = "Flushing" } /** - * Defines values for FilesystemSubnetStatusType. \ - * {@link KnownFilesystemSubnetStatusType} can be used interchangeably with FilesystemSubnetStatusType, + * Defines values for OperationalStateType. \ + * {@link KnownOperationalStateType} can be used interchangeably with OperationalStateType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Ok** \ - * **Invalid** + * **Ready** \ + * **Busy** \ + * **Suspended** \ + * **Flushing** */ -export type FilesystemSubnetStatusType = string; -/** Defines values for CacheIdentityType. */ -export type CacheIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; +export type OperationalStateType = string; /** Defines values for AmlFilesystemIdentityType. */ export type AmlFilesystemIdentityType = "UserAssigned" | "None"; /** Defines values for MaintenanceDayOfWeekType. */ @@ -1723,6 +1748,108 @@ export type MaintenanceDayOfWeekType = | "Friday" | "Saturday" | "Sunday"; +/** Defines values for CacheIdentityType. */ +export type CacheIdentityType = + | "SystemAssigned" + | "UserAssigned" + | "SystemAssigned, UserAssigned" + | "None"; + +/** Optional parameters. */ +export interface AmlFilesystemsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AmlFilesystemsListResponse = AmlFilesystemsListResult; + +/** Optional parameters. */ +export interface AmlFilesystemsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type AmlFilesystemsListByResourceGroupResponse = AmlFilesystemsListResult; + +/** Optional parameters. */ +export interface AmlFilesystemsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface AmlFilesystemsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AmlFilesystemsGetResponse = AmlFilesystem; + +/** Optional parameters. */ +export interface AmlFilesystemsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AmlFilesystemsCreateOrUpdateResponse = AmlFilesystem; + +/** Optional parameters. */ +export interface AmlFilesystemsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type AmlFilesystemsUpdateResponse = AmlFilesystem; + +/** Optional parameters. */ +export interface AmlFilesystemsArchiveOptionalParams + extends coreClient.OperationOptions { + /** Information about the archive operation */ + archiveInfo?: AmlFilesystemArchiveInfo; +} + +/** Optional parameters. */ +export interface AmlFilesystemsCancelArchiveOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AmlFilesystemsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AmlFilesystemsListNextResponse = AmlFilesystemsListResult; + +/** Optional parameters. */ +export interface AmlFilesystemsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type AmlFilesystemsListByResourceGroupNextResponse = AmlFilesystemsListResult; + +/** Optional parameters. */ +export interface CheckAmlFSSubnetsOptionalParams + extends coreClient.OperationOptions { + /** Information about the subnets to validate. */ + amlFilesystemSubnetInfo?: AmlFilesystemSubnetInfo; +} + +/** Optional parameters. */ +export interface GetRequiredAmlFSSubnetsSizeOptionalParams + extends coreClient.OperationOptions { + /** Information to determine the number of available IPs a subnet will need to host the AML file system. */ + requiredAMLFilesystemSubnetsSizeInfo?: RequiredAmlFilesystemSubnetsSizeInfo; +} + +/** Contains response data for the getRequiredAmlFSSubnetsSize operation. */ +export type GetRequiredAmlFSSubnetsSizeResponse = RequiredAmlFilesystemSubnetsSize; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -2064,102 +2191,6 @@ export interface StorageTargetInvalidateOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface AmlFilesystemsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type AmlFilesystemsListResponse = AmlFilesystemsListResult; - -/** Optional parameters. */ -export interface AmlFilesystemsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type AmlFilesystemsListByResourceGroupResponse = AmlFilesystemsListResult; - -/** Optional parameters. */ -export interface AmlFilesystemsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface AmlFilesystemsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AmlFilesystemsGetResponse = AmlFilesystem; - -/** Optional parameters. */ -export interface AmlFilesystemsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type AmlFilesystemsCreateOrUpdateResponse = AmlFilesystem; - -/** Optional parameters. */ -export interface AmlFilesystemsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type AmlFilesystemsUpdateResponse = AmlFilesystem; - -/** Optional parameters. */ -export interface AmlFilesystemsArchiveOptionalParams - extends coreClient.OperationOptions { - /** Information about the archive operation */ - archiveInfo?: AmlFilesystemArchiveInfo; -} - -/** Optional parameters. */ -export interface AmlFilesystemsCancelArchiveOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface AmlFilesystemsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type AmlFilesystemsListNextResponse = AmlFilesystemsListResult; - -/** Optional parameters. */ -export interface AmlFilesystemsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type AmlFilesystemsListByResourceGroupNextResponse = AmlFilesystemsListResult; - -/** Optional parameters. */ -export interface CheckAmlFSSubnetsOptionalParams - extends coreClient.OperationOptions { - /** Information about the subnets to validate. */ - amlFilesystemSubnetInfo?: AmlFilesystemSubnetInfo; -} - -/** Optional parameters. */ -export interface GetRequiredAmlFSSubnetsSizeOptionalParams - extends coreClient.OperationOptions { - /** Information to determine the number of available IPs a subnet will need to host the AML file system. */ - requiredAMLFilesystemSubnetsSizeInfo?: RequiredAmlFilesystemSubnetsSizeInfo; -} - -/** Contains response data for the getRequiredAmlFSSubnetsSize operation. */ -export type GetRequiredAmlFSSubnetsSizeResponse = RequiredAmlFilesystemSubnetsSize; - /** Optional parameters. */ export interface StorageCacheManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/storagecache/arm-storagecache/src/models/mappers.ts b/sdk/storagecache/arm-storagecache/src/models/mappers.ts index c31bc71158d0..20645a709b7f 100644 --- a/sdk/storagecache/arm-storagecache/src/models/mappers.ts +++ b/sdk/storagecache/arm-storagecache/src/models/mappers.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -export const ApiOperationListResult: coreClient.CompositeMapper = { +export const AmlFilesystemsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiOperationListResult", + className: "AmlFilesystemsListResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -26,7 +26,7 @@ export const ApiOperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiOperation" + className: "AmlFilesystem" } } } @@ -35,72 +35,63 @@ export const ApiOperationListResult: coreClient.CompositeMapper = { } }; -export const ApiOperation: coreClient.CompositeMapper = { +export const AmlFilesystemIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiOperation", + className: "AmlFilesystemIdentity", modelProperties: { - display: { - serializedName: "display", - type: { - name: "Composite", - className: "ApiOperationDisplay" - } - }, - origin: { - serializedName: "origin", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - isDataAction: { - serializedName: "isDataAction", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - name: { - serializedName: "name", + type: { + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: ["UserAssigned", "None"] } }, - serviceSpecification: { - serializedName: "properties.serviceSpecification", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Composite", - className: "ApiOperationPropertiesServiceSpecification" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentitiesValue" + } + } } } } } }; -export const ApiOperationDisplay: coreClient.CompositeMapper = { +export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiOperationDisplay", + className: "UserAssignedIdentitiesValue", modelProperties: { - operation: { - serializedName: "operation", - type: { - name: "String" - } - }, - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", + clientId: { + serializedName: "clientId", + readOnly: true, type: { name: "String" } @@ -109,153 +100,107 @@ export const ApiOperationDisplay: coreClient.CompositeMapper = { } }; -export const ApiOperationPropertiesServiceSpecification: coreClient.CompositeMapper = { +export const SkuName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiOperationPropertiesServiceSpecification", + className: "SkuName", modelProperties: { - metricSpecifications: { - serializedName: "metricSpecifications", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricSpecification" - } - } - } - }, - logSpecifications: { - serializedName: "logSpecifications", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LogSpecification" - } - } + name: "String" } } } } }; -export const MetricSpecification: coreClient.CompositeMapper = { +export const AmlFilesystemHealth: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricSpecification", + className: "AmlFilesystemHealth", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - displayDescription: { - serializedName: "displayDescription", - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", + state: { + serializedName: "state", type: { name: "String" } }, - aggregationType: { - serializedName: "aggregationType", + statusCode: { + serializedName: "statusCode", type: { name: "String" } }, - supportedAggregationTypes: { - serializedName: "supportedAggregationTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - metricClass: { - serializedName: "metricClass", + statusDescription: { + serializedName: "statusDescription", type: { name: "String" } - }, - dimensions: { - serializedName: "dimensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricDimension" - } - } - } } } } }; -export const MetricDimension: coreClient.CompositeMapper = { +export const AmlFilesystemClientInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDimension", + className: "AmlFilesystemClientInfo", modelProperties: { - name: { - serializedName: "name", + mgsAddress: { + serializedName: "mgsAddress", + readOnly: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + mountCommand: { + serializedName: "mountCommand", + readOnly: true, type: { name: "String" } }, - internalName: { - serializedName: "internalName", + lustreVersion: { + serializedName: "lustreVersion", + readOnly: true, type: { name: "String" } }, - toBeExportedForShoebox: { - serializedName: "toBeExportedForShoebox", + containerStorageInterface: { + serializedName: "containerStorageInterface", type: { - name: "Boolean" + name: "Composite", + className: "AmlFilesystemContainerStorageInterface" } } } } }; -export const LogSpecification: coreClient.CompositeMapper = { +export const AmlFilesystemContainerStorageInterface: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSpecification", + className: "AmlFilesystemContainerStorageInterface", modelProperties: { - name: { - serializedName: "name", + persistentVolumeClaim: { + serializedName: "persistentVolumeClaim", + readOnly: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + persistentVolume: { + serializedName: "persistentVolume", + readOnly: true, + type: { + name: "String" + } + }, + storageClass: { + serializedName: "storageClass", + readOnly: true, type: { name: "String" } @@ -264,151 +209,114 @@ export const LogSpecification: coreClient.CompositeMapper = { } }; -export const CloudError: coreClient.CompositeMapper = { +export const AmlFilesystemEncryptionSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudError", + className: "AmlFilesystemEncryptionSettings", modelProperties: { - error: { - serializedName: "error", + keyEncryptionKey: { + serializedName: "keyEncryptionKey", type: { name: "Composite", - className: "CloudErrorBody" + className: "KeyVaultKeyReference" } } } } }; -export const CloudErrorBody: coreClient.CompositeMapper = { +export const KeyVaultKeyReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudErrorBody", + className: "KeyVaultKeyReference", modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudErrorBody" - } - } - } - }, - message: { - serializedName: "message", + keyUrl: { + serializedName: "keyUrl", + required: true, type: { name: "String" } }, - target: { - serializedName: "target", + sourceVault: { + serializedName: "sourceVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultKeyReferenceSourceVault" } } } } }; -export const ResourceSkusResult: coreClient.CompositeMapper = { +export const KeyVaultKeyReferenceSourceVault: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkusResult", + className: "KeyVaultKeyReferenceSourceVault", modelProperties: { - nextLink: { - serializedName: "nextLink", + id: { + serializedName: "id", type: { name: "String" } - }, - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSku" - } - } - } } } } }; -export const ResourceSku: coreClient.CompositeMapper = { +export const AmlFilesystemPropertiesMaintenanceWindow: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSku", + className: "AmlFilesystemPropertiesMaintenanceWindow", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, - type: { - name: "String" - } - }, - capabilities: { - serializedName: "capabilities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } - }, - locations: { - serializedName: "locations", - readOnly: true, + dayOfWeek: { + serializedName: "dayOfWeek", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] } }, - locationInfo: { - serializedName: "locationInfo", + timeOfDayUTC: { + constraints: { + Pattern: new RegExp("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$") + }, + serializedName: "timeOfDayUTC", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo" - } - } + name: "String" } - }, - name: { - serializedName: "name", + } + } + } +}; + +export const AmlFilesystemPropertiesHsm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlFilesystemPropertiesHsm", + modelProperties: { + settings: { + serializedName: "settings", type: { - name: "String" + name: "Composite", + className: "AmlFilesystemHsmSettings" } }, - restrictions: { - serializedName: "restrictions", + archiveStatus: { + serializedName: "archiveStatus", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Restriction" + className: "AmlFilesystemArchive" } } } @@ -417,19 +325,28 @@ export const ResourceSku: coreClient.CompositeMapper = { } }; -export const ResourceSkuCapabilities: coreClient.CompositeMapper = { +export const AmlFilesystemHsmSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCapabilities", + className: "AmlFilesystemHsmSettings", modelProperties: { - name: { - serializedName: "name", + container: { + serializedName: "container", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", + loggingContainer: { + serializedName: "loggingContainer", + required: true, + type: { + name: "String" + } + }, + importPrefix: { + defaultValue: "/", + serializedName: "importPrefix", type: { name: "String" } @@ -438,195 +355,182 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { } }; -export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { +export const AmlFilesystemArchive: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuLocationInfo", + className: "AmlFilesystemArchive", modelProperties: { - location: { - serializedName: "location", + filesystemPath: { + serializedName: "filesystemPath", + readOnly: true, type: { name: "String" } }, - zones: { - serializedName: "zones", + status: { + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "AmlFilesystemArchiveStatus" } } } } }; -export const Restriction: coreClient.CompositeMapper = { +export const AmlFilesystemArchiveStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Restriction", + className: "AmlFilesystemArchiveStatus", modelProperties: { - type: { - serializedName: "type", + state: { + serializedName: "state", readOnly: true, type: { name: "String" } }, - values: { - serializedName: "values", + lastCompletionTime: { + serializedName: "lastCompletionTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } }, - reasonCode: { - serializedName: "reasonCode", + lastStartedTime: { + serializedName: "lastStartedTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const UsageModelsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UsageModelsResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", + }, + percentComplete: { + serializedName: "percentComplete", + readOnly: true, + type: { + name: "Number" + } + }, + errorCode: { + serializedName: "errorCode", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "value", + errorMessage: { + serializedName: "errorMessage", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UsageModel" - } - } + name: "String" } } } } }; -export const UsageModel: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageModel", + className: "Resource", modelProperties: { - display: { - serializedName: "display", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "UsageModelDisplay" + name: "String" } }, - modelName: { - serializedName: "modelName", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - targetType: { - serializedName: "targetType", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const UsageModelDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UsageModelDisplay", - modelProperties: { - description: { - serializedName: "description", + }, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const AscOperation: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AscOperation", + className: "SystemData", modelProperties: { - id: { - serializedName: "id", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - name: { - serializedName: "name", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - startTime: { - serializedName: "startTime", + createdAt: { + serializedName: "createdAt", type: { - name: "String" + name: "DateTime" } }, - endTime: { - serializedName: "endTime", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - status: { - serializedName: "status", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - error: { - serializedName: "error", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Composite", - className: "ErrorResponse" + name: "DateTime" } - }, - output: { - serializedName: "properties.output", + } + } + } +}; + +export const CloudError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudError", + modelProperties: { + error: { + serializedName: "error", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Composite", + className: "CloudErrorBody" } } } } }; -export const ErrorResponse: coreClient.CompositeMapper = { +export const CloudErrorBody: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponse", + className: "CloudErrorBody", modelProperties: { code: { serializedName: "code", @@ -634,101 +538,176 @@ export const ErrorResponse: coreClient.CompositeMapper = { name: "String" } }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CloudErrorBody" + } + } + } + }, message: { serializedName: "message", type: { name: "String" } + }, + target: { + serializedName: "target", + type: { + name: "String" + } } } } }; -export const ResourceUsagesListResult: coreClient.CompositeMapper = { +export const AmlFilesystemUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUsagesListResult", + className: "AmlFilesystemUpdate", modelProperties: { - nextLink: { - serializedName: "nextLink", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - value: { - serializedName: "value", - readOnly: true, + encryptionSettings: { + serializedName: "properties.encryptionSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceUsage" - } - } + name: "Composite", + className: "AmlFilesystemEncryptionSettings" + } + }, + maintenanceWindow: { + serializedName: "properties.maintenanceWindow", + type: { + name: "Composite", + className: "AmlFilesystemUpdatePropertiesMaintenanceWindow" } } } } }; -export const ResourceUsage: coreClient.CompositeMapper = { +export const AmlFilesystemUpdatePropertiesMaintenanceWindow: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUsage", + className: "AmlFilesystemUpdatePropertiesMaintenanceWindow", modelProperties: { - limit: { + dayOfWeek: { + serializedName: "dayOfWeek", + type: { + name: "Enum", + allowedValues: [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ] + } + }, + timeOfDayUTC: { constraints: { - InclusiveMinimum: 0 + Pattern: new RegExp("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$") }, - serializedName: "limit", - readOnly: true, + serializedName: "timeOfDayUTC", type: { - name: "Number" + name: "String" } - }, - unit: { - serializedName: "unit", - readOnly: true, + } + } + } +}; + +export const AmlFilesystemArchiveInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlFilesystemArchiveInfo", + modelProperties: { + filesystemPath: { + defaultValue: "/", + serializedName: "filesystemPath", + type: { + name: "String" + } + } + } + } +}; + +export const AmlFilesystemSubnetInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlFilesystemSubnetInfo", + modelProperties: { + filesystemSubnet: { + serializedName: "filesystemSubnet", type: { name: "String" } }, - currentValue: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "currentValue", - readOnly: true, + storageCapacityTiB: { + serializedName: "storageCapacityTiB", type: { name: "Number" } }, - name: { - serializedName: "name", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "ResourceUsageName" + className: "SkuName" + } + }, + location: { + serializedName: "location", + type: { + name: "String" } } } } }; -export const ResourceUsageName: coreClient.CompositeMapper = { +export const AmlFilesystemCheckSubnetError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUsageName", + className: "AmlFilesystemCheckSubnetError", modelProperties: { - value: { - serializedName: "value", + filesystemSubnet: { + serializedName: "filesystemSubnet", + type: { + name: "Composite", + className: "AmlFilesystemCheckSubnetErrorFilesystemSubnet" + } + } + } + } +}; + +export const AmlFilesystemCheckSubnetErrorFilesystemSubnet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlFilesystemCheckSubnetErrorFilesystemSubnet", + modelProperties: { + status: { + serializedName: "status", type: { name: "String" } }, - localizedValue: { - serializedName: "localizedValue", + message: { + serializedName: "message", type: { name: "String" } @@ -737,10 +716,47 @@ export const ResourceUsageName: coreClient.CompositeMapper = { } }; -export const CachesListResult: coreClient.CompositeMapper = { +export const RequiredAmlFilesystemSubnetsSizeInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesListResult", + className: "RequiredAmlFilesystemSubnetsSizeInfo", + modelProperties: { + storageCapacityTiB: { + serializedName: "storageCapacityTiB", + type: { + name: "Number" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SkuName" + } + } + } + } +}; + +export const RequiredAmlFilesystemSubnetsSize: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RequiredAmlFilesystemSubnetsSize", + modelProperties: { + filesystemSubnetSize: { + serializedName: "filesystemSubnetSize", + type: { + name: "Number" + } + } + } + } +}; + +export const ApiOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiOperationListResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -755,7 +771,7 @@ export const CachesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Cache" + className: "ApiOperation" } } } @@ -764,158 +780,150 @@ export const CachesListResult: coreClient.CompositeMapper = { } }; -export const Cache: coreClient.CompositeMapper = { +export const ApiOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Cache", + className: "ApiOperation", modelProperties: { - tags: { - serializedName: "tags", + display: { + serializedName: "display", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "ApiOperationDisplay" } }, - id: { - serializedName: "id", - readOnly: true, + origin: { + serializedName: "origin", type: { name: "String" } }, - location: { - serializedName: "location", + isDataAction: { + serializedName: "isDataAction", type: { - name: "String" + name: "Boolean" } }, name: { - constraints: { - Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") - }, serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, type: { name: "String" } }, - identity: { - serializedName: "identity", + serviceSpecification: { + serializedName: "properties.serviceSpecification", type: { name: "Composite", - className: "CacheIdentity" + className: "ApiOperationPropertiesServiceSpecification" } - }, - systemData: { - serializedName: "systemData", + } + } + } +}; + +export const ApiOperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiOperationDisplay", + modelProperties: { + operation: { + serializedName: "operation", type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - sku: { - serializedName: "sku", + provider: { + serializedName: "provider", type: { - name: "Composite", - className: "CacheSku" + name: "String" } }, - cacheSizeGB: { - serializedName: "properties.cacheSizeGB", + resource: { + serializedName: "resource", type: { - name: "Number" + name: "String" } }, - scalingFactor: { - defaultValue: 1, - serializedName: "properties.scalingFactor", + description: { + serializedName: "description", type: { - name: "Number" + name: "String" } - }, - health: { - serializedName: "properties.health", + } + } + } +}; + +export const ApiOperationPropertiesServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiOperationPropertiesServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", type: { - name: "Composite", - className: "CacheHealth" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } } }, - mountAddresses: { - serializedName: "properties.mountAddresses", - readOnly: true, + logSpecifications: { + serializedName: "logSpecifications", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "LogSpecification" } } } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + } + } + } +}; + +export const MetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - upgradeStatus: { - serializedName: "properties.upgradeStatus", - type: { - name: "Composite", - className: "CacheUpgradeStatus" - } - }, - upgradeSettings: { - serializedName: "properties.upgradeSettings", - type: { - name: "Composite", - className: "CacheUpgradeSettings" - } - }, - networkSettings: { - serializedName: "properties.networkSettings", - type: { - name: "Composite", - className: "CacheNetworkSettings" - } - }, - encryptionSettings: { - serializedName: "properties.encryptionSettings", + displayDescription: { + serializedName: "displayDescription", type: { - name: "Composite", - className: "CacheEncryptionSettings" + name: "String" } }, - securitySettings: { - serializedName: "properties.securitySettings", + unit: { + serializedName: "unit", type: { - name: "Composite", - className: "CacheSecuritySettings" + name: "String" } }, - directoryServicesSettings: { - serializedName: "properties.directoryServicesSettings", + aggregationType: { + serializedName: "aggregationType", type: { - name: "Composite", - className: "CacheDirectorySettings" + name: "String" } }, - zones: { - serializedName: "properties.zones", + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", type: { name: "Sequence", element: { @@ -925,28 +933,20 @@ export const Cache: coreClient.CompositeMapper = { } } }, - primingJobs: { - serializedName: "properties.primingJobs", - readOnly: true, + metricClass: { + serializedName: "metricClass", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrimingJob" - } - } + name: "String" } }, - spaceAllocation: { - serializedName: "properties.spaceAllocation", - readOnly: true, + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageTargetSpaceAllocation" + className: "MetricDimension" } } } @@ -955,68 +955,52 @@ export const Cache: coreClient.CompositeMapper = { } }; -export const CacheIdentity: coreClient.CompositeMapper = { +export const MetricDimension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheIdentity", + className: "MetricDimension", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - type: { - serializedName: "type", + internalName: { + serializedName: "internalName", type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } + name: "Boolean" } } } } }; -export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { +export const LogSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAssignedIdentitiesValue", + className: "LogSpecification", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - clientId: { - serializedName: "clientId", - readOnly: true, + displayName: { + serializedName: "displayName", type: { name: "String" } @@ -1025,77 +1009,143 @@ export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { } }; -export const SystemData: coreClient.CompositeMapper = { +export const ResourceSkusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "ResourceSkusResult", modelProperties: { - createdBy: { - serializedName: "createdBy", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSku" + } + } + } + } + } + } +}; + +export const ResourceSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", + readOnly: true, type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", + capabilities: { + serializedName: "capabilities", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities" + } + } } }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + locations: { + serializedName: "locations", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + locationInfo: { + serializedName: "locationInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } + } + }, + name: { + serializedName: "name", type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + restrictions: { + serializedName: "restrictions", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Restriction" + } + } } } } } }; -export const CacheHealth: coreClient.CompositeMapper = { +export const ResourceSkuCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheHealth", + className: "ResourceSkuCapabilities", modelProperties: { - state: { - serializedName: "state", + name: { + serializedName: "name", type: { name: "String" } }, - statusDescription: { - serializedName: "statusDescription", + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } }, - conditions: { - serializedName: "conditions", - readOnly: true, + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Condition" + name: "String" } } } @@ -1104,21 +1154,32 @@ export const CacheHealth: coreClient.CompositeMapper = { } }; -export const Condition: coreClient.CompositeMapper = { +export const Restriction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Condition", + className: "Restriction", modelProperties: { - timestamp: { - serializedName: "timestamp", + type: { + serializedName: "type", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - message: { - serializedName: "message", + values: { + serializedName: "values", readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + reasonCode: { + serializedName: "reasonCode", type: { name: "String" } @@ -1127,42 +1188,53 @@ export const Condition: coreClient.CompositeMapper = { } }; -export const CacheUpgradeStatus: coreClient.CompositeMapper = { +export const UsageModelsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheUpgradeStatus", + className: "UsageModelsResult", modelProperties: { - currentFirmwareVersion: { - serializedName: "currentFirmwareVersion", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - firmwareUpdateStatus: { - serializedName: "firmwareUpdateStatus", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UsageModel" + } + } } - }, - firmwareUpdateDeadline: { - serializedName: "firmwareUpdateDeadline", - readOnly: true, + } + } + } +}; + +export const UsageModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UsageModel", + modelProperties: { + display: { + serializedName: "display", type: { - name: "DateTime" + name: "Composite", + className: "UsageModelDisplay" } }, - lastFirmwareUpdate: { - serializedName: "lastFirmwareUpdate", - readOnly: true, + modelName: { + serializedName: "modelName", type: { - name: "DateTime" + name: "String" } }, - pendingFirmwareVersion: { - serializedName: "pendingFirmwareVersion", - readOnly: true, + targetType: { + serializedName: "targetType", type: { name: "String" } @@ -1171,135 +1243,89 @@ export const CacheUpgradeStatus: coreClient.CompositeMapper = { } }; -export const CacheUpgradeSettings: coreClient.CompositeMapper = { +export const UsageModelDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheUpgradeSettings", + className: "UsageModelDisplay", modelProperties: { - upgradeScheduleEnabled: { - serializedName: "upgradeScheduleEnabled", - type: { - name: "Boolean" - } - }, - scheduledTime: { - serializedName: "scheduledTime", + description: { + serializedName: "description", type: { - name: "DateTime" + name: "String" } } } } }; -export const CacheNetworkSettings: coreClient.CompositeMapper = { +export const AscOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheNetworkSettings", + className: "AscOperation", modelProperties: { - mtu: { - defaultValue: 1500, - constraints: { - InclusiveMaximum: 1500, - InclusiveMinimum: 576 - }, - serializedName: "mtu", + id: { + serializedName: "id", type: { - name: "Number" + name: "String" } }, - utilityAddresses: { - serializedName: "utilityAddresses", - readOnly: true, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - dnsServers: { - serializedName: "dnsServers", + startTime: { + serializedName: "startTime", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - dnsSearchDomain: { - serializedName: "dnsSearchDomain", + endTime: { + serializedName: "endTime", type: { name: "String" } }, - ntpServer: { - defaultValue: "time.windows.com", - serializedName: "ntpServer", + status: { + serializedName: "status", type: { name: "String" } - } - } - } -}; - -export const CacheEncryptionSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CacheEncryptionSettings", - modelProperties: { - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + }, + error: { + serializedName: "error", type: { name: "Composite", - className: "KeyVaultKeyReference" + className: "ErrorResponse" } }, - rotationToLatestKeyVersionEnabled: { - serializedName: "rotationToLatestKeyVersionEnabled", + output: { + serializedName: "properties.output", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const KeyVaultKeyReference: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultKeyReference", + className: "ErrorResponse", modelProperties: { - keyUrl: { - serializedName: "keyUrl", - required: true, + code: { + serializedName: "code", type: { name: "String" } }, - sourceVault: { - serializedName: "sourceVault", - type: { - name: "Composite", - className: "KeyVaultKeyReferenceSourceVault" - } - } - } - } -}; - -export const KeyVaultKeyReferenceSourceVault: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KeyVaultKeyReferenceSourceVault", - modelProperties: { - id: { - serializedName: "id", + message: { + serializedName: "message", type: { name: "String" } @@ -1308,48 +1334,27 @@ export const KeyVaultKeyReferenceSourceVault: coreClient.CompositeMapper = { } }; -export const CacheSecuritySettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CacheSecuritySettings", - modelProperties: { - accessPolicies: { - serializedName: "accessPolicies", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NfsAccessPolicy" - } - } - } - } - } - } -}; - -export const NfsAccessPolicy: coreClient.CompositeMapper = { +export const ResourceUsagesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NfsAccessPolicy", + className: "ResourceUsagesListResult", modelProperties: { - name: { - serializedName: "name", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } }, - accessRules: { - serializedName: "accessRules", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "NfsAccessRule" + className: "ResourceUsage" } } } @@ -1358,57 +1363,62 @@ export const NfsAccessPolicy: coreClient.CompositeMapper = { } }; -export const NfsAccessRule: coreClient.CompositeMapper = { +export const ResourceUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NfsAccessRule", + className: "ResourceUsage", modelProperties: { - scope: { - serializedName: "scope", - required: true, - type: { - name: "String" - } - }, - filter: { - serializedName: "filter", + limit: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "limit", + readOnly: true, type: { - name: "String" + name: "Number" } }, - access: { - serializedName: "access", - required: true, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } }, - suid: { - serializedName: "suid", - type: { - name: "Boolean" - } - }, - submountAccess: { - serializedName: "submountAccess", + currentValue: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "currentValue", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - rootSquash: { - serializedName: "rootSquash", + name: { + serializedName: "name", type: { - name: "Boolean" + name: "Composite", + className: "ResourceUsageName" } - }, - anonymousUID: { - serializedName: "anonymousUID", + } + } + } +}; + +export const ResourceUsageName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceUsageName", + modelProperties: { + value: { + serializedName: "value", type: { name: "String" } }, - anonymousGID: { - serializedName: "anonymousGID", + localizedValue: { + serializedName: "localizedValue", type: { name: "String" } @@ -1417,349 +1427,313 @@ export const NfsAccessRule: coreClient.CompositeMapper = { } }; -export const CacheDirectorySettings: coreClient.CompositeMapper = { +export const CachesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheDirectorySettings", + className: "CachesListResult", modelProperties: { - activeDirectory: { - serializedName: "activeDirectory", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "CacheActiveDirectorySettings" + name: "String" } }, - usernameDownload: { - serializedName: "usernameDownload", + value: { + serializedName: "value", type: { - name: "Composite", - className: "CacheUsernameDownloadSettings" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Cache" + } + } } } } } }; -export const CacheActiveDirectorySettings: coreClient.CompositeMapper = { +export const Cache: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheActiveDirectorySettings", + className: "Cache", modelProperties: { - primaryDnsIpAddress: { - serializedName: "primaryDnsIpAddress", - required: true, - type: { - name: "String" - } - }, - secondaryDnsIpAddress: { - serializedName: "secondaryDnsIpAddress", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - domainName: { - serializedName: "domainName", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - domainNetBiosName: { - serializedName: "domainNetBiosName", - required: true, + location: { + serializedName: "location", type: { name: "String" } }, - cacheNetBiosName: { + name: { constraints: { - Pattern: new RegExp("^[-0-9a-zA-Z]{1,15}$") + Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") }, - serializedName: "cacheNetBiosName", - required: true, + serializedName: "name", + readOnly: true, type: { name: "String" } }, - domainJoined: { - serializedName: "domainJoined", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - credentials: { - serializedName: "credentials", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "CacheActiveDirectorySettingsCredentials" - } - } - } - } -}; - -export const CacheActiveDirectorySettingsCredentials: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CacheActiveDirectorySettingsCredentials", - modelProperties: { - username: { - serializedName: "username", - required: true, - type: { - name: "String" + className: "CacheIdentity" } }, - password: { - serializedName: "password", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } - } - } - } -}; - -export const CacheUsernameDownloadSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CacheUsernameDownloadSettings", - modelProperties: { - extendedGroups: { - serializedName: "extendedGroups", + }, + sku: { + serializedName: "sku", type: { - name: "Boolean" + name: "Composite", + className: "CacheSku" } }, - usernameSource: { - defaultValue: "None", - serializedName: "usernameSource", + cacheSizeGB: { + serializedName: "properties.cacheSizeGB", type: { - name: "String" + name: "Number" } }, - groupFileURI: { - serializedName: "groupFileURI", + health: { + serializedName: "properties.health", type: { - name: "String" + name: "Composite", + className: "CacheHealth" } }, - userFileURI: { - serializedName: "userFileURI", + mountAddresses: { + serializedName: "properties.mountAddresses", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - ldapServer: { - serializedName: "ldapServer", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - ldapBaseDN: { - serializedName: "ldapBaseDN", + subnet: { + serializedName: "properties.subnet", type: { name: "String" } }, - encryptLdapConnection: { - defaultValue: false, - serializedName: "encryptLdapConnection", + upgradeStatus: { + serializedName: "properties.upgradeStatus", type: { - name: "Boolean" + name: "Composite", + className: "CacheUpgradeStatus" } }, - requireValidCertificate: { - defaultValue: false, - serializedName: "requireValidCertificate", + upgradeSettings: { + serializedName: "properties.upgradeSettings", type: { - name: "Boolean" + name: "Composite", + className: "CacheUpgradeSettings" } }, - autoDownloadCertificate: { - defaultValue: false, - serializedName: "autoDownloadCertificate", + networkSettings: { + serializedName: "properties.networkSettings", type: { - name: "Boolean" + name: "Composite", + className: "CacheNetworkSettings" } }, - caCertificateURI: { - serializedName: "caCertificateURI", + encryptionSettings: { + serializedName: "properties.encryptionSettings", type: { - name: "String" + name: "Composite", + className: "CacheEncryptionSettings" } }, - usernameDownloaded: { - serializedName: "usernameDownloaded", - readOnly: true, + securitySettings: { + serializedName: "properties.securitySettings", type: { - name: "String" + name: "Composite", + className: "CacheSecuritySettings" } }, - credentials: { - serializedName: "credentials", + directoryServicesSettings: { + serializedName: "properties.directoryServicesSettings", type: { name: "Composite", - className: "CacheUsernameDownloadSettingsCredentials" + className: "CacheDirectorySettings" } - } - } - } -}; - -export const CacheUsernameDownloadSettingsCredentials: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CacheUsernameDownloadSettingsCredentials", - modelProperties: { - bindDn: { - serializedName: "bindDn", + }, + zones: { + serializedName: "properties.zones", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - bindPassword: { - serializedName: "bindPassword", + primingJobs: { + serializedName: "properties.primingJobs", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrimingJob" + } + } + } + }, + spaceAllocation: { + serializedName: "properties.spaceAllocation", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageTargetSpaceAllocation" + } + } } } } } }; -export const PrimingJob: coreClient.CompositeMapper = { +export const CacheIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrimingJob", + className: "CacheIdentity", modelProperties: { - primingJobName: { - constraints: { - Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") - }, - serializedName: "primingJobName", - required: true, - type: { - name: "String" - } - }, - primingManifestUrl: { - serializedName: "primingManifestUrl", - required: true, - type: { - name: "String" - } - }, - primingJobId: { - constraints: { - Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") - }, - serializedName: "primingJobId", - readOnly: true, - type: { - name: "String" - } - }, - primingJobState: { - serializedName: "primingJobState", + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String" } }, - primingJobStatus: { - serializedName: "primingJobStatus", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { name: "String" } }, - primingJobDetails: { - serializedName: "primingJobDetails", - readOnly: true, + type: { + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } }, - primingJobPercentComplete: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 - }, - serializedName: "primingJobPercentComplete", - readOnly: true, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentitiesValueAutoGenerated" + } + } } } } } }; -export const StorageTargetSpaceAllocation: coreClient.CompositeMapper = { +export const UserAssignedIdentitiesValueAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetSpaceAllocation", + className: "UserAssignedIdentitiesValueAutoGenerated", modelProperties: { - name: { - constraints: { - Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") - }, - serializedName: "name", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - allocationPercentage: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 - }, - serializedName: "allocationPercentage", + clientId: { + serializedName: "clientId", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const CacheSku: coreClient.CompositeMapper = { +export const CacheHealth: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CacheSku", + className: "CacheHealth", modelProperties: { - name: { - serializedName: "name", + state: { + serializedName: "state", type: { name: "String" } - } - } - } -}; - -export const StorageTargetsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageTargetsResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", + }, + statusDescription: { + serializedName: "statusDescription", type: { name: "String" } }, - value: { - serializedName: "value", + conditions: { + serializedName: "conditions", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageTarget" + className: "Condition" } } } @@ -1768,32 +1742,65 @@ export const StorageTargetsResult: coreClient.CompositeMapper = { } }; -export const NamespaceJunction: coreClient.CompositeMapper = { +export const Condition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NamespaceJunction", + className: "Condition", modelProperties: { - namespacePath: { - serializedName: "namespacePath", + timestamp: { + serializedName: "timestamp", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - targetPath: { - serializedName: "targetPath", - type: { - name: "String" + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CacheUpgradeStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheUpgradeStatus", + modelProperties: { + currentFirmwareVersion: { + serializedName: "currentFirmwareVersion", + readOnly: true, + type: { + name: "String" } }, - nfsExport: { - serializedName: "nfsExport", + firmwareUpdateStatus: { + serializedName: "firmwareUpdateStatus", + readOnly: true, type: { name: "String" } }, - nfsAccessPolicy: { - defaultValue: "default", - serializedName: "nfsAccessPolicy", + firmwareUpdateDeadline: { + serializedName: "firmwareUpdateDeadline", + readOnly: true, + type: { + name: "DateTime" + } + }, + lastFirmwareUpdate: { + serializedName: "lastFirmwareUpdate", + readOnly: true, + type: { + name: "DateTime" + } + }, + pendingFirmwareVersion: { + serializedName: "pendingFirmwareVersion", + readOnly: true, type: { name: "String" } @@ -1802,271 +1809,419 @@ export const NamespaceJunction: coreClient.CompositeMapper = { } }; -export const Nfs3Target: coreClient.CompositeMapper = { +export const CacheUpgradeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Nfs3Target", + className: "CacheUpgradeSettings", modelProperties: { - target: { + upgradeScheduleEnabled: { + serializedName: "upgradeScheduleEnabled", + type: { + name: "Boolean" + } + }, + scheduledTime: { + serializedName: "scheduledTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const CacheNetworkSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheNetworkSettings", + modelProperties: { + mtu: { + defaultValue: 1500, constraints: { - Pattern: new RegExp("^[-.,0-9a-zA-Z]+$") + InclusiveMaximum: 1500, + InclusiveMinimum: 576 }, - serializedName: "target", + serializedName: "mtu", type: { - name: "String" + name: "Number" } }, - usageModel: { - serializedName: "usageModel", + utilityAddresses: { + serializedName: "utilityAddresses", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - verificationTimer: { - serializedName: "verificationTimer", + dnsServers: { + serializedName: "dnsServers", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - writeBackTimer: { - serializedName: "writeBackTimer", + dnsSearchDomain: { + serializedName: "dnsSearchDomain", type: { - name: "Number" + name: "String" + } + }, + ntpServer: { + defaultValue: "time.windows.com", + serializedName: "ntpServer", + type: { + name: "String" } } } } }; -export const ClfsTarget: coreClient.CompositeMapper = { +export const CacheEncryptionSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClfsTarget", + className: "CacheEncryptionSettings", modelProperties: { - target: { - serializedName: "target", + keyEncryptionKey: { + serializedName: "keyEncryptionKey", type: { - name: "String" + name: "Composite", + className: "KeyVaultKeyReference" + } + }, + rotationToLatestKeyVersionEnabled: { + serializedName: "rotationToLatestKeyVersionEnabled", + type: { + name: "Boolean" } } } } }; -export const UnknownTarget: coreClient.CompositeMapper = { +export const CacheSecuritySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UnknownTarget", + className: "CacheSecuritySettings", modelProperties: { - attributes: { - serializedName: "attributes", + accessPolicies: { + serializedName: "accessPolicies", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NfsAccessPolicy" + } + } } } } } }; -export const BlobNfsTarget: coreClient.CompositeMapper = { +export const NfsAccessPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BlobNfsTarget", + className: "NfsAccessPolicy", modelProperties: { - target: { - serializedName: "target", - type: { - name: "String" - } - }, - usageModel: { - serializedName: "usageModel", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - verificationTimer: { - serializedName: "verificationTimer", - type: { - name: "Number" - } - }, - writeBackTimer: { - serializedName: "writeBackTimer", + accessRules: { + serializedName: "accessRules", + required: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NfsAccessRule" + } + } } } } } }; -export const StorageTargetResource: coreClient.CompositeMapper = { +export const NfsAccessRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetResource", + className: "NfsAccessRule", modelProperties: { - name: { - constraints: { - Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") - }, - serializedName: "name", - readOnly: true, + scope: { + serializedName: "scope", + required: true, type: { name: "String" } }, - id: { - serializedName: "id", - readOnly: true, + filter: { + serializedName: "filter", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + access: { + serializedName: "access", + required: true, type: { name: "String" } }, - location: { - serializedName: "location", - readOnly: true, + suid: { + serializedName: "suid", + type: { + name: "Boolean" + } + }, + submountAccess: { + serializedName: "submountAccess", + type: { + name: "Boolean" + } + }, + rootSquash: { + serializedName: "rootSquash", + type: { + name: "Boolean" + } + }, + anonymousUID: { + serializedName: "anonymousUID", type: { name: "String" } }, - systemData: { - serializedName: "systemData", + anonymousGID: { + serializedName: "anonymousGID", + type: { + name: "String" + } + } + } + } +}; + +export const CacheDirectorySettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CacheDirectorySettings", + modelProperties: { + activeDirectory: { + serializedName: "activeDirectory", type: { name: "Composite", - className: "SystemData" + className: "CacheActiveDirectorySettings" + } + }, + usernameDownload: { + serializedName: "usernameDownload", + type: { + name: "Composite", + className: "CacheUsernameDownloadSettings" } } } } }; -export const PrimingJobIdParameter: coreClient.CompositeMapper = { +export const CacheActiveDirectorySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrimingJobIdParameter", + className: "CacheActiveDirectorySettings", modelProperties: { - primingJobId: { + primaryDnsIpAddress: { + serializedName: "primaryDnsIpAddress", + required: true, + type: { + name: "String" + } + }, + secondaryDnsIpAddress: { + serializedName: "secondaryDnsIpAddress", + type: { + name: "String" + } + }, + domainName: { + serializedName: "domainName", + required: true, + type: { + name: "String" + } + }, + domainNetBiosName: { + serializedName: "domainNetBiosName", + required: true, + type: { + name: "String" + } + }, + cacheNetBiosName: { constraints: { - Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") + Pattern: new RegExp("^[-0-9a-zA-Z]{1,15}$") }, - serializedName: "primingJobId", + serializedName: "cacheNetBiosName", required: true, type: { name: "String" } + }, + domainJoined: { + serializedName: "domainJoined", + readOnly: true, + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "CacheActiveDirectorySettingsCredentials" + } } } } }; -export const AmlFilesystemsListResult: coreClient.CompositeMapper = { +export const CacheActiveDirectorySettingsCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemsListResult", + className: "CacheActiveDirectorySettingsCredentials", modelProperties: { - nextLink: { - serializedName: "nextLink", + username: { + serializedName: "username", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", + password: { + serializedName: "password", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlFilesystem" - } - } + name: "String" } } } } }; -export const AmlFilesystemIdentity: coreClient.CompositeMapper = { +export const CacheUsernameDownloadSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemIdentity", + className: "CacheUsernameDownloadSettings", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + extendedGroups: { + serializedName: "extendedGroups", + type: { + name: "Boolean" + } + }, + usernameSource: { + defaultValue: "None", + serializedName: "usernameSource", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + groupFileURI: { + serializedName: "groupFileURI", type: { name: "String" } }, - type: { - serializedName: "type", + userFileURI: { + serializedName: "userFileURI", type: { - name: "Enum", - allowedValues: ["UserAssigned", "None"] + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + ldapServer: { + serializedName: "ldapServer", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserAssignedIdentitiesValueAutoGenerated" - } - } + name: "String" } - } - } - } -}; - -export const UserAssignedIdentitiesValueAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedIdentitiesValueAutoGenerated", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + }, + ldapBaseDN: { + serializedName: "ldapBaseDN", type: { name: "String" } }, - clientId: { - serializedName: "clientId", + encryptLdapConnection: { + defaultValue: false, + serializedName: "encryptLdapConnection", + type: { + name: "Boolean" + } + }, + requireValidCertificate: { + defaultValue: false, + serializedName: "requireValidCertificate", + type: { + name: "Boolean" + } + }, + autoDownloadCertificate: { + defaultValue: false, + serializedName: "autoDownloadCertificate", + type: { + name: "Boolean" + } + }, + caCertificateURI: { + serializedName: "caCertificateURI", + type: { + name: "String" + } + }, + usernameDownloaded: { + serializedName: "usernameDownloaded", readOnly: true, type: { name: "String" } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "CacheUsernameDownloadSettingsCredentials" + } } } } }; -export const SkuName: coreClient.CompositeMapper = { +export const CacheUsernameDownloadSettingsCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuName", + className: "CacheUsernameDownloadSettingsCredentials", modelProperties: { - name: { - serializedName: "name", + bindDn: { + serializedName: "bindDn", + type: { + name: "String" + } + }, + bindPassword: { + serializedName: "bindPassword", type: { name: "String" } @@ -2075,74 +2230,109 @@ export const SkuName: coreClient.CompositeMapper = { } }; -export const AmlFilesystemHealth: coreClient.CompositeMapper = { +export const PrimingJob: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemHealth", + className: "PrimingJob", modelProperties: { - state: { - serializedName: "state", + primingJobName: { + constraints: { + Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") + }, + serializedName: "primingJobName", + required: true, type: { name: "String" } }, - statusCode: { - serializedName: "statusCode", + primingManifestUrl: { + serializedName: "primingManifestUrl", + required: true, type: { name: "String" } }, - statusDescription: { - serializedName: "statusDescription", + primingJobId: { + constraints: { + Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") + }, + serializedName: "primingJobId", + readOnly: true, + type: { + name: "String" + } + }, + primingJobState: { + serializedName: "primingJobState", + readOnly: true, + type: { + name: "String" + } + }, + primingJobStatus: { + serializedName: "primingJobStatus", + readOnly: true, + type: { + name: "String" + } + }, + primingJobDetails: { + serializedName: "primingJobDetails", + readOnly: true, + type: { + name: "String" + } + }, + primingJobPercentComplete: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "primingJobPercentComplete", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const AmlFilesystemEncryptionSettings: coreClient.CompositeMapper = { +export const StorageTargetSpaceAllocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemEncryptionSettings", + className: "StorageTargetSpaceAllocation", modelProperties: { - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + name: { + constraints: { + Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") + }, + serializedName: "name", type: { - name: "Composite", - className: "KeyVaultKeyReference" + name: "String" + } + }, + allocationPercentage: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + serializedName: "allocationPercentage", + type: { + name: "Number" } } } } }; -export const AmlFilesystemPropertiesMaintenanceWindow: coreClient.CompositeMapper = { +export const CacheSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemPropertiesMaintenanceWindow", + className: "CacheSku", modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", - type: { - name: "Enum", - allowedValues: [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ] - } - }, - timeOfDayUTC: { - constraints: { - Pattern: new RegExp("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$") - }, - serializedName: "timeOfDayUTC", + name: { + serializedName: "name", type: { name: "String" } @@ -2151,27 +2341,25 @@ export const AmlFilesystemPropertiesMaintenanceWindow: coreClient.CompositeMappe } }; -export const AmlFilesystemPropertiesHsm: coreClient.CompositeMapper = { +export const StorageTargetsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemPropertiesHsm", + className: "StorageTargetsResult", modelProperties: { - settings: { - serializedName: "settings", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "AmlFilesystemHsmSettings" + name: "String" } }, - archiveStatus: { - serializedName: "archiveStatus", - readOnly: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlFilesystemArchive" + className: "StorageTarget" } } } @@ -2180,289 +2368,198 @@ export const AmlFilesystemPropertiesHsm: coreClient.CompositeMapper = { } }; -export const AmlFilesystemHsmSettings: coreClient.CompositeMapper = { +export const NamespaceJunction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemHsmSettings", + className: "NamespaceJunction", modelProperties: { - container: { - serializedName: "container", - required: true, + namespacePath: { + serializedName: "namespacePath", type: { name: "String" } }, - loggingContainer: { - serializedName: "loggingContainer", - required: true, + targetPath: { + serializedName: "targetPath", type: { name: "String" } }, - importPrefix: { - defaultValue: "/", - serializedName: "importPrefix", - type: { - name: "String" - } - } - } - } -}; - -export const AmlFilesystemArchive: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemArchive", - modelProperties: { - filesystemPath: { - serializedName: "filesystemPath", - readOnly: true, + nfsExport: { + serializedName: "nfsExport", type: { name: "String" } }, - status: { - serializedName: "status", + nfsAccessPolicy: { + defaultValue: "default", + serializedName: "nfsAccessPolicy", type: { - name: "Composite", - className: "AmlFilesystemArchiveStatus" + name: "String" } } } } }; -export const AmlFilesystemArchiveStatus: coreClient.CompositeMapper = { +export const Nfs3Target: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemArchiveStatus", + className: "Nfs3Target", modelProperties: { - state: { - serializedName: "state", - readOnly: true, + target: { + constraints: { + Pattern: new RegExp("^[-.,0-9a-zA-Z]+$") + }, + serializedName: "target", type: { name: "String" } }, - lastCompletionTime: { - serializedName: "lastCompletionTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastStartedTime: { - serializedName: "lastStartedTime", - readOnly: true, + usageModel: { + serializedName: "usageModel", type: { - name: "DateTime" + name: "String" } }, - percentComplete: { - serializedName: "percentComplete", - readOnly: true, + verificationTimer: { + serializedName: "verificationTimer", type: { name: "Number" } }, - errorCode: { - serializedName: "errorCode", - readOnly: true, - type: { - name: "String" - } - }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, + writeBackTimer: { + serializedName: "writeBackTimer", type: { - name: "String" + name: "Number" } } } } }; -export const Resource: coreClient.CompositeMapper = { +export const ClfsTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "ClfsTarget", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, + target: { + serializedName: "target", type: { name: "String" } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } } } } }; -export const AmlFilesystemUpdate: coreClient.CompositeMapper = { +export const UnknownTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemUpdate", + className: "UnknownTarget", modelProperties: { - tags: { - serializedName: "tags", + attributes: { + serializedName: "attributes", type: { name: "Dictionary", value: { type: { name: "String" } } } - }, - encryptionSettings: { - serializedName: "properties.encryptionSettings", - type: { - name: "Composite", - className: "AmlFilesystemEncryptionSettings" - } - }, - maintenanceWindow: { - serializedName: "properties.maintenanceWindow", - type: { - name: "Composite", - className: "AmlFilesystemUpdatePropertiesMaintenanceWindow" - } } } } }; -export const AmlFilesystemUpdatePropertiesMaintenanceWindow: coreClient.CompositeMapper = { +export const BlobNfsTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemUpdatePropertiesMaintenanceWindow", + className: "BlobNfsTarget", modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", + target: { + serializedName: "target", type: { - name: "Enum", - allowedValues: [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ] + name: "String" } }, - timeOfDayUTC: { - constraints: { - Pattern: new RegExp("^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$") - }, - serializedName: "timeOfDayUTC", + usageModel: { + serializedName: "usageModel", type: { name: "String" } - } - } - } -}; - -export const AmlFilesystemArchiveInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemArchiveInfo", - modelProperties: { - filesystemPath: { - defaultValue: "/", - serializedName: "filesystemPath", + }, + verificationTimer: { + serializedName: "verificationTimer", type: { - name: "String" + name: "Number" + } + }, + writeBackTimer: { + serializedName: "writeBackTimer", + type: { + name: "Number" } } } } }; -export const AmlFilesystemSubnetInfo: coreClient.CompositeMapper = { +export const StorageTargetResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemSubnetInfo", + className: "StorageTargetResource", modelProperties: { - filesystemSubnet: { - serializedName: "filesystemSubnet", + name: { + constraints: { + Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") + }, + serializedName: "name", + readOnly: true, type: { name: "String" } }, - storageCapacityTiB: { - serializedName: "storageCapacityTiB", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Number" + name: "String" } }, - sku: { - serializedName: "sku", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "SkuName" + name: "String" } }, location: { serializedName: "location", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const AmlFilesystemCheckSubnetError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AmlFilesystemCheckSubnetError", - modelProperties: { - filesystemSubnet: { - serializedName: "filesystemSubnet", + }, + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "AmlFilesystemCheckSubnetErrorFilesystemSubnet" + className: "SystemData" } } } } }; -export const AmlFilesystemCheckSubnetErrorFilesystemSubnet: coreClient.CompositeMapper = { +export const PrimingJobIdParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemCheckSubnetErrorFilesystemSubnet", + className: "PrimingJobIdParameter", modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - message: { - serializedName: "message", + primingJobId: { + constraints: { + Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") + }, + serializedName: "primingJobId", + required: true, type: { name: "String" } @@ -2471,37 +2568,24 @@ export const AmlFilesystemCheckSubnetErrorFilesystemSubnet: coreClient.Composite } }; -export const RequiredAmlFilesystemSubnetsSizeInfo: coreClient.CompositeMapper = { +export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RequiredAmlFilesystemSubnetsSizeInfo", + className: "TrackedResource", modelProperties: { - storageCapacityTiB: { - serializedName: "storageCapacityTiB", + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SkuName" - } - } - } - } -}; - -export const RequiredAmlFilesystemSubnetsSize: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RequiredAmlFilesystemSubnetsSize", - modelProperties: { - filesystemSubnetSize: { - serializedName: "filesystemSubnetSize", + location: { + serializedName: "location", + required: true, type: { - name: "Number" + name: "String" } } } @@ -2588,30 +2672,6 @@ export const StorageTarget: coreClient.CompositeMapper = { } }; -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } - } - } -}; - export const AmlFilesystem: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2669,25 +2729,11 @@ export const AmlFilesystem: coreClient.CompositeMapper = { name: "String" } }, - mgsAddress: { - serializedName: "properties.mgsAddress", - readOnly: true, - type: { - name: "String" - } - }, - mountCommand: { - serializedName: "properties.mountCommand", - readOnly: true, - type: { - name: "String" - } - }, - lustreVersion: { - serializedName: "properties.lustreVersion", - readOnly: true, + clientInfo: { + serializedName: "properties.clientInfo", type: { - name: "String" + name: "Composite", + className: "AmlFilesystemClientInfo" } }, throughputProvisionedMBps: { @@ -2722,10 +2768,10 @@ export const AmlFilesystem: coreClient.CompositeMapper = { } }; -export const CachesDeleteHeaders: coreClient.CompositeMapper = { +export const AmlFilesystemsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesDeleteHeaders", + className: "AmlFilesystemsDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -2743,19 +2789,13 @@ export const CachesDeleteHeaders: coreClient.CompositeMapper = { } }; -export const CachesUpdateHeaders: coreClient.CompositeMapper = { +export const AmlFilesystemsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesUpdateHeaders", + className: "AmlFilesystemsCreateOrUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, azureAsyncOperation: { - serializedName: "azure-asyncoperation", + serializedName: "azure-async-operation", type: { name: "String" } @@ -2764,10 +2804,10 @@ export const CachesUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CachesDebugInfoHeaders: coreClient.CompositeMapper = { +export const AmlFilesystemsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesDebugInfoHeaders", + className: "AmlFilesystemsUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -2776,7 +2816,7 @@ export const CachesDebugInfoHeaders: coreClient.CompositeMapper = { } }, azureAsyncOperation: { - serializedName: "azure-asyncoperation", + serializedName: "azure-async-operation", type: { name: "String" } @@ -2785,10 +2825,10 @@ export const CachesDebugInfoHeaders: coreClient.CompositeMapper = { } }; -export const CachesFlushHeaders: coreClient.CompositeMapper = { +export const CachesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesFlushHeaders", + className: "CachesDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -2806,10 +2846,10 @@ export const CachesFlushHeaders: coreClient.CompositeMapper = { } }; -export const CachesStartHeaders: coreClient.CompositeMapper = { +export const CachesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesStartHeaders", + className: "CachesUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -2827,10 +2867,10 @@ export const CachesStartHeaders: coreClient.CompositeMapper = { } }; -export const CachesStopHeaders: coreClient.CompositeMapper = { +export const CachesDebugInfoHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesStopHeaders", + className: "CachesDebugInfoHeaders", modelProperties: { location: { serializedName: "location", @@ -2848,10 +2888,10 @@ export const CachesStopHeaders: coreClient.CompositeMapper = { } }; -export const CachesStartPrimingJobHeaders: coreClient.CompositeMapper = { +export const CachesFlushHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesStartPrimingJobHeaders", + className: "CachesFlushHeaders", modelProperties: { location: { serializedName: "location", @@ -2869,10 +2909,10 @@ export const CachesStartPrimingJobHeaders: coreClient.CompositeMapper = { } }; -export const CachesStopPrimingJobHeaders: coreClient.CompositeMapper = { +export const CachesStartHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesStopPrimingJobHeaders", + className: "CachesStartHeaders", modelProperties: { location: { serializedName: "location", @@ -2890,10 +2930,10 @@ export const CachesStopPrimingJobHeaders: coreClient.CompositeMapper = { } }; -export const CachesPausePrimingJobHeaders: coreClient.CompositeMapper = { +export const CachesStopHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesPausePrimingJobHeaders", + className: "CachesStopHeaders", modelProperties: { location: { serializedName: "location", @@ -2911,10 +2951,10 @@ export const CachesPausePrimingJobHeaders: coreClient.CompositeMapper = { } }; -export const CachesResumePrimingJobHeaders: coreClient.CompositeMapper = { +export const CachesStartPrimingJobHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesResumePrimingJobHeaders", + className: "CachesStartPrimingJobHeaders", modelProperties: { location: { serializedName: "location", @@ -2932,10 +2972,10 @@ export const CachesResumePrimingJobHeaders: coreClient.CompositeMapper = { } }; -export const CachesUpgradeFirmwareHeaders: coreClient.CompositeMapper = { +export const CachesStopPrimingJobHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesUpgradeFirmwareHeaders", + className: "CachesStopPrimingJobHeaders", modelProperties: { location: { serializedName: "location", @@ -2953,10 +2993,10 @@ export const CachesUpgradeFirmwareHeaders: coreClient.CompositeMapper = { } }; -export const CachesSpaceAllocationHeaders: coreClient.CompositeMapper = { +export const CachesPausePrimingJobHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CachesSpaceAllocationHeaders", + className: "CachesPausePrimingJobHeaders", modelProperties: { location: { serializedName: "location", @@ -2974,10 +3014,10 @@ export const CachesSpaceAllocationHeaders: coreClient.CompositeMapper = { } }; -export const StorageTargetsDnsRefreshHeaders: coreClient.CompositeMapper = { +export const CachesResumePrimingJobHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetsDnsRefreshHeaders", + className: "CachesResumePrimingJobHeaders", modelProperties: { location: { serializedName: "location", @@ -2995,10 +3035,10 @@ export const StorageTargetsDnsRefreshHeaders: coreClient.CompositeMapper = { } }; -export const StorageTargetsDeleteHeaders: coreClient.CompositeMapper = { +export const CachesUpgradeFirmwareHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetsDeleteHeaders", + className: "CachesUpgradeFirmwareHeaders", modelProperties: { location: { serializedName: "location", @@ -3016,10 +3056,10 @@ export const StorageTargetsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const StorageTargetsRestoreDefaultsHeaders: coreClient.CompositeMapper = { +export const CachesSpaceAllocationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetsRestoreDefaultsHeaders", + className: "CachesSpaceAllocationHeaders", modelProperties: { location: { serializedName: "location", @@ -3037,10 +3077,10 @@ export const StorageTargetsRestoreDefaultsHeaders: coreClient.CompositeMapper = } }; -export const StorageTargetFlushHeaders: coreClient.CompositeMapper = { +export const StorageTargetsDnsRefreshHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetFlushHeaders", + className: "StorageTargetsDnsRefreshHeaders", modelProperties: { location: { serializedName: "location", @@ -3058,10 +3098,10 @@ export const StorageTargetFlushHeaders: coreClient.CompositeMapper = { } }; -export const StorageTargetSuspendHeaders: coreClient.CompositeMapper = { +export const StorageTargetsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetSuspendHeaders", + className: "StorageTargetsDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -3079,10 +3119,10 @@ export const StorageTargetSuspendHeaders: coreClient.CompositeMapper = { } }; -export const StorageTargetResumeHeaders: coreClient.CompositeMapper = { +export const StorageTargetsRestoreDefaultsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetResumeHeaders", + className: "StorageTargetsRestoreDefaultsHeaders", modelProperties: { location: { serializedName: "location", @@ -3100,10 +3140,10 @@ export const StorageTargetResumeHeaders: coreClient.CompositeMapper = { } }; -export const StorageTargetInvalidateHeaders: coreClient.CompositeMapper = { +export const StorageTargetFlushHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageTargetInvalidateHeaders", + className: "StorageTargetFlushHeaders", modelProperties: { location: { serializedName: "location", @@ -3121,10 +3161,10 @@ export const StorageTargetInvalidateHeaders: coreClient.CompositeMapper = { } }; -export const AmlFilesystemsDeleteHeaders: coreClient.CompositeMapper = { +export const StorageTargetSuspendHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemsDeleteHeaders", + className: "StorageTargetSuspendHeaders", modelProperties: { location: { serializedName: "location", @@ -3142,13 +3182,19 @@ export const AmlFilesystemsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const AmlFilesystemsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const StorageTargetResumeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemsCreateOrUpdateHeaders", + className: "StorageTargetResumeHeaders", modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, azureAsyncOperation: { - serializedName: "azure-async-operation", + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -3157,10 +3203,10 @@ export const AmlFilesystemsCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const AmlFilesystemsUpdateHeaders: coreClient.CompositeMapper = { +export const StorageTargetInvalidateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlFilesystemsUpdateHeaders", + className: "StorageTargetInvalidateHeaders", modelProperties: { location: { serializedName: "location", @@ -3169,7 +3215,7 @@ export const AmlFilesystemsUpdateHeaders: coreClient.CompositeMapper = { } }, azureAsyncOperation: { - serializedName: "azure-async-operation", + serializedName: "azure-asyncoperation", type: { name: "String" } diff --git a/sdk/storagecache/arm-storagecache/src/models/parameters.ts b/sdk/storagecache/arm-storagecache/src/models/parameters.ts index 4c20d2b49d66..3a619a88e2f9 100644 --- a/sdk/storagecache/arm-storagecache/src/models/parameters.ts +++ b/sdk/storagecache/arm-storagecache/src/models/parameters.ts @@ -12,15 +12,15 @@ import { OperationQueryParameter } from "@azure/core-client"; import { - Cache as CacheMapper, - PrimingJob as PrimingJobMapper, - PrimingJobIdParameter as PrimingJobIdParameterMapper, - StorageTarget as StorageTargetMapper, AmlFilesystem as AmlFilesystemMapper, AmlFilesystemUpdate as AmlFilesystemUpdateMapper, AmlFilesystemArchiveInfo as AmlFilesystemArchiveInfoMapper, AmlFilesystemSubnetInfo as AmlFilesystemSubnetInfoMapper, - RequiredAmlFilesystemSubnetsSizeInfo as RequiredAmlFilesystemSubnetsSizeInfoMapper + RequiredAmlFilesystemSubnetsSizeInfo as RequiredAmlFilesystemSubnetsSizeInfoMapper, + Cache as CacheMapper, + PrimingJob as PrimingJobMapper, + PrimingJobIdParameter as PrimingJobIdParameterMapper, + StorageTarget as StorageTargetMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -50,7 +50,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-03-01-preview", + defaultValue: "2023-05-01", isConstant: true, serializedName: "api-version", type: { @@ -59,18 +59,6 @@ export const apiVersion: OperationQueryParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -85,13 +73,14 @@ export const subscriptionId: OperationURLParameter = { } }; -export const location: OperationURLParameter = { - parameterPath: "location", +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { constraints: { + MaxLength: 90, MinLength: 1 }, - serializedName: "location", + serializedName: "resourceGroupName", required: true, type: { name: "String" @@ -99,13 +88,15 @@ export const location: OperationURLParameter = { } }; -export const operationId: OperationURLParameter = { - parameterPath: "operationId", +export const amlFilesystemName: OperationURLParameter = { + parameterPath: "amlFilesystemName", mapper: { constraints: { - MinLength: 1 + Pattern: new RegExp("^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$"), + MaxLength: 80, + MinLength: 2 }, - serializedName: "operationId", + serializedName: "amlFilesystemName", required: true, type: { name: "String" @@ -113,9 +104,61 @@ export const operationId: OperationURLParameter = { } }; -export const location1: OperationURLParameter = { +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const amlFilesystem: OperationParameter = { + parameterPath: "amlFilesystem", + mapper: AmlFilesystemMapper +}; + +export const amlFilesystem1: OperationParameter = { + parameterPath: "amlFilesystem", + mapper: AmlFilesystemUpdateMapper +}; + +export const archiveInfo: OperationParameter = { + parameterPath: ["options", "archiveInfo"], + mapper: AmlFilesystemArchiveInfoMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const amlFilesystemSubnetInfo: OperationParameter = { + parameterPath: ["options", "amlFilesystemSubnetInfo"], + mapper: AmlFilesystemSubnetInfoMapper +}; + +export const requiredAMLFilesystemSubnetsSizeInfo: OperationParameter = { + parameterPath: ["options", "requiredAMLFilesystemSubnetsSizeInfo"], + mapper: RequiredAmlFilesystemSubnetsSizeInfoMapper +}; + +export const location: OperationURLParameter = { parameterPath: "location", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "location", required: true, type: { @@ -124,14 +167,13 @@ export const location1: OperationURLParameter = { } }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const operationId: OperationURLParameter = { + parameterPath: "operationId", mapper: { constraints: { - MaxLength: 90, MinLength: 1 }, - serializedName: "resourceGroupName", + serializedName: "operationId", required: true, type: { name: "String" @@ -139,13 +181,10 @@ export const resourceGroupName: OperationURLParameter = { } }; -export const cacheName: OperationURLParameter = { - parameterPath: "cacheName", +export const location1: OperationURLParameter = { + parameterPath: "location", mapper: { - constraints: { - Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") - }, - serializedName: "cacheName", + serializedName: "location", required: true, type: { name: "String" @@ -153,12 +192,14 @@ export const cacheName: OperationURLParameter = { } }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const cacheName: OperationURLParameter = { + parameterPath: "cacheName", mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", + constraints: { + Pattern: new RegExp("^[-0-9a-zA-Z_]{1,80}$") + }, + serializedName: "cacheName", + required: true, type: { name: "String" } @@ -229,44 +270,3 @@ export const storagetarget: OperationParameter = { parameterPath: "storagetarget", mapper: StorageTargetMapper }; - -export const amlFilesystemName: OperationURLParameter = { - parameterPath: "amlFilesystemName", - mapper: { - constraints: { - Pattern: new RegExp("^[0-9a-zA-Z][-0-9a-zA-Z_]{0,78}[0-9a-zA-Z]$"), - MaxLength: 80, - MinLength: 2 - }, - serializedName: "amlFilesystemName", - required: true, - type: { - name: "String" - } - } -}; - -export const amlFilesystem: OperationParameter = { - parameterPath: "amlFilesystem", - mapper: AmlFilesystemMapper -}; - -export const amlFilesystem1: OperationParameter = { - parameterPath: "amlFilesystem", - mapper: AmlFilesystemUpdateMapper -}; - -export const archiveInfo: OperationParameter = { - parameterPath: ["options", "archiveInfo"], - mapper: AmlFilesystemArchiveInfoMapper -}; - -export const amlFilesystemSubnetInfo: OperationParameter = { - parameterPath: ["options", "amlFilesystemSubnetInfo"], - mapper: AmlFilesystemSubnetInfoMapper -}; - -export const requiredAMLFilesystemSubnetsSizeInfo: OperationParameter = { - parameterPath: ["options", "requiredAMLFilesystemSubnetsSizeInfo"], - mapper: RequiredAmlFilesystemSubnetsSizeInfoMapper -}; diff --git a/sdk/storagecache/arm-storagecache/src/operations/amlFilesystems.ts b/sdk/storagecache/arm-storagecache/src/operations/amlFilesystems.ts index bb9190714f3a..ccbd9c4d5238 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/amlFilesystems.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/amlFilesystems.ts @@ -780,8 +780,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer @@ -799,9 +799,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/storagecache/arm-storagecache/src/operations/ascUsages.ts b/sdk/storagecache/arm-storagecache/src/operations/ascUsages.ts index c654ec4a5859..a7fd7fab1622 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/ascUsages.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/ascUsages.ts @@ -161,8 +161,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, + Parameters.nextLink, Parameters.location1 ], headerParameters: [Parameters.accept], diff --git a/sdk/storagecache/arm-storagecache/src/operations/caches.ts b/sdk/storagecache/arm-storagecache/src/operations/caches.ts index d98e266831ec..1ed0b5bbb6c5 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/caches.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/caches.ts @@ -1862,8 +1862,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer @@ -1881,9 +1881,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/storagecache/arm-storagecache/src/operations/index.ts b/sdk/storagecache/arm-storagecache/src/operations/index.ts index 90ffd761b195..db8964b0ab94 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/index.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./amlFilesystems"; export * from "./operations"; export * from "./skus"; export * from "./usageModels"; @@ -14,4 +15,3 @@ export * from "./ascUsages"; export * from "./caches"; export * from "./storageTargets"; export * from "./storageTargetOperations"; -export * from "./amlFilesystems"; diff --git a/sdk/storagecache/arm-storagecache/src/operations/skus.ts b/sdk/storagecache/arm-storagecache/src/operations/skus.ts index e69bb780aecf..980079405a53 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/skus.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/skus.ts @@ -143,8 +143,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts b/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts index 5d3b7927afae..80f19b7a9972 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts @@ -740,9 +740,9 @@ const listByCacheNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.nextLink, Parameters.cacheName ], headerParameters: [Parameters.accept], diff --git a/sdk/storagecache/arm-storagecache/src/operations/usageModels.ts b/sdk/storagecache/arm-storagecache/src/operations/usageModels.ts index d59cbbf7e8e9..e7eb45cc5039 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/usageModels.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/usageModels.ts @@ -146,8 +146,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts index 90ffd761b195..db8964b0ab94 100644 --- a/sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts +++ b/sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./amlFilesystems"; export * from "./operations"; export * from "./skus"; export * from "./usageModels"; @@ -14,4 +15,3 @@ export * from "./ascUsages"; export * from "./caches"; export * from "./storageTargets"; export * from "./storageTargetOperations"; -export * from "./amlFilesystems"; diff --git a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts index 6744d0829abb..570921921ba4 100644 --- a/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts +++ b/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts @@ -15,6 +15,7 @@ import { } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { + AmlFilesystemsImpl, OperationsImpl, SkusImpl, UsageModelsImpl, @@ -22,10 +23,10 @@ import { AscUsagesImpl, CachesImpl, StorageTargetsImpl, - StorageTargetOperationsImpl, - AmlFilesystemsImpl + StorageTargetOperationsImpl } from "./operations"; import { + AmlFilesystems, Operations, Skus, UsageModels, @@ -33,8 +34,7 @@ import { AscUsages, Caches, StorageTargets, - StorageTargetOperations, - AmlFilesystems + StorageTargetOperations } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -77,7 +77,7 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-storagecache/7.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-storagecache/7.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -130,7 +130,8 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-03-01-preview"; + this.apiVersion = options.apiVersion || "2023-05-01"; + this.amlFilesystems = new AmlFilesystemsImpl(this); this.operations = new OperationsImpl(this); this.skus = new SkusImpl(this); this.usageModels = new UsageModelsImpl(this); @@ -139,7 +140,6 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { this.caches = new CachesImpl(this); this.storageTargets = new StorageTargetsImpl(this); this.storageTargetOperations = new StorageTargetOperationsImpl(this); - this.amlFilesystems = new AmlFilesystemsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -195,6 +195,7 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { ); } + amlFilesystems: AmlFilesystems; operations: Operations; skus: Skus; usageModels: UsageModels; @@ -203,7 +204,6 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient { caches: Caches; storageTargets: StorageTargets; storageTargetOperations: StorageTargetOperations; - amlFilesystems: AmlFilesystems; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); diff --git a/sdk/storagecache/arm-storagecache/test/sampleTest.ts b/sdk/storagecache/arm-storagecache/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/storagecache/arm-storagecache/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/storagecache/arm-storagecache/tsconfig.json b/sdk/storagecache/arm-storagecache/tsconfig.json index 1054055624f9..3e6ae96443f3 100644 --- a/sdk/storagecache/arm-storagecache/tsconfig.json +++ b/sdk/storagecache/arm-storagecache/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-storagecache": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"