diff --git a/sdk/netapp/arm-netapp/CHANGELOG.md b/sdk/netapp/arm-netapp/CHANGELOG.md index a7ba0edb000f..f57770489e5a 100644 --- a/sdk/netapp/arm-netapp/CHANGELOG.md +++ b/sdk/netapp/arm-netapp/CHANGELOG.md @@ -1,15 +1,24 @@ # Release History + +## 20.0.0 (2024-03-05) + +**Features** -## 20.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface VolumesResetCifsPasswordHeaders + - Added Type Alias VolumesResetCifsPasswordResponse + - Enum KnownRelationshipStatus has a new value Failed + - Enum KnownRelationshipStatus has a new value Unknown -### Other Changes +**Breaking Changes** + - Interface VolumeGroupMetaData no longer has parameter deploymentSpecId + - Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from { + [propertyName: string]: UserAssignedIdentity; + } to { + [propertyName: string]: UserAssignedIdentity | null; + } + + ## 20.0.0-beta.1 (2023-12-14) **Features** @@ -128,7 +137,7 @@ [propertyName: string]: UserAssignedIdentity | null; } - + ## 19.0.0 (2023-09-25) **Features** diff --git a/sdk/netapp/arm-netapp/LICENSE b/sdk/netapp/arm-netapp/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/netapp/arm-netapp/LICENSE +++ b/sdk/netapp/arm-netapp/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/netapp/arm-netapp/README.md b/sdk/netapp/arm-netapp/README.md index 78ab29c62855..0d9fb4d010e8 100644 --- a/sdk/netapp/arm-netapp/README.md +++ b/sdk/netapp/arm-netapp/README.md @@ -6,7 +6,7 @@ Microsoft NetApp Files Azure Resource Provider specification [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-netapp) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-netapp) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/netapp/arm-netapp/_meta.json b/sdk/netapp/arm-netapp/_meta.json index f2d5bdacd65f..fe652ccb5c09 100644 --- a/sdk/netapp/arm-netapp/_meta.json +++ b/sdk/netapp/arm-netapp/_meta.json @@ -1,8 +1,8 @@ { - "commit": "e62b17a09302b9bacca3504135091d1a71eeaebf", + "commit": "99686ad45c380cf8fbcf7811db9c984a0e9d6639", "readme": "specification/netapp/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/assets.json b/sdk/netapp/arm-netapp/assets.json index 9b748930f005..db08bc5ea2e8 100644 --- a/sdk/netapp/arm-netapp/assets.json +++ b/sdk/netapp/arm-netapp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/netapp/arm-netapp", - "Tag": "js/netapp/arm-netapp_efdf6a61ca" + "Tag": "js/netapp/arm-netapp_b61830c12b" } diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index f97ce71f8bae..85619edbd730 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetAppManagementClient.", - "version": "20.0.0-beta.2", + "version": "20.0.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -116,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/review/arm-netapp.api.md b/sdk/netapp/arm-netapp/review/arm-netapp.api.md index 82f63b7bf12f..cfda04d0ce5c 100644 --- a/sdk/netapp/arm-netapp/review/arm-netapp.api.md +++ b/sdk/netapp/arm-netapp/review/arm-netapp.api.md @@ -10,44 +10,6 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; -// @public -export interface AccountBackups { - beginDelete(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsDeleteOptionalParams): Promise, AccountBackupsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsDeleteOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsGetOptionalParams): Promise; - listByNetAppAccount(resourceGroupName: string, accountName: string, options?: AccountBackupsListByNetAppAccountOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AccountBackupsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface AccountBackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AccountBackupsDeleteResponse = AccountBackupsDeleteHeaders; - -// @public -export interface AccountBackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AccountBackupsGetResponse = Backup; - -// @public -export interface AccountBackupsListByNetAppAccountOptionalParams extends coreClient.OperationOptions { - includeOnlyBackupsFromDeletedVolumes?: string; -} - -// @public -export type AccountBackupsListByNetAppAccountResponse = BackupsList; - // @public export interface AccountEncryption { identity?: EncryptionIdentity; @@ -61,8 +23,6 @@ export interface Accounts { beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, body: NetAppAccount, options?: AccountsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise; - beginMigrateEncryptionKey(resourceGroupName: string, accountName: string, options?: AccountsMigrateEncryptionKeyOptionalParams): Promise, AccountsMigrateEncryptionKeyResponse>>; - beginMigrateEncryptionKeyAndWait(resourceGroupName: string, accountName: string, options?: AccountsMigrateEncryptionKeyOptionalParams): Promise; beginRenewCredentials(resourceGroupName: string, accountName: string, options?: AccountsRenewCredentialsOptionalParams): Promise, void>>; beginRenewCredentialsAndWait(resourceGroupName: string, accountName: string, options?: AccountsRenewCredentialsOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, body: NetAppAccountPatch, options?: AccountsUpdateOptionalParams): Promise, AccountsUpdateResponse>>; @@ -122,22 +82,6 @@ export interface AccountsListOptionalParams extends coreClient.OperationOptions // @public export type AccountsListResponse = NetAppAccountList; -// @public -export interface AccountsMigrateEncryptionKeyHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface AccountsMigrateEncryptionKeyOptionalParams extends coreClient.OperationOptions { - body?: EncryptionMigrationRequest; - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AccountsMigrateEncryptionKeyResponse = AccountsMigrateEncryptionKeyHeaders; - // @public export interface AccountsRenewCredentialsOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -194,26 +138,6 @@ export interface AuthorizeRequest { // @public export type AvsDataStore = string; -// @public -export interface Backup extends ProxyResource { - readonly backupId?: string; - readonly backupPolicyResourceId?: string; - readonly backupType?: BackupType; - readonly creationDate?: Date; - readonly failureReason?: string; - label?: string; - readonly provisioningState?: string; - readonly size?: number; - snapshotName?: string; - useExistingSnapshot?: boolean; - volumeResourceId: string; -} - -// @public -export interface BackupPatch { - label?: string; -} - // @public export interface BackupPolicies { beginCreate(resourceGroupName: string, accountName: string, backupPolicyName: string, body: BackupPolicy, options?: BackupPoliciesCreateOptionalParams): Promise, BackupPoliciesCreateResponse>>; @@ -301,65 +225,11 @@ export interface BackupPolicyPatch { weeklyBackupsToKeep?: number; } -// @public -export interface BackupRestoreFiles { - destinationVolumeId: string; - fileList: string[]; - restoreFilePath?: string; -} - // @public export interface Backups { - beginCreate(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise, BackupsCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise, BackupsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise, BackupsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsGetOptionalParams): Promise; - getLatestStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsGetLatestStatusOptionalParams): Promise; getVolumeRestoreStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsGetVolumeRestoreStatusOptionalParams): Promise; - listByVault(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupsListByVaultOptionalParams): PagedAsyncIterableIterator; } -// @public -export interface BackupsCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsCreateResponse = Backup; - -// @public -export interface BackupsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsDeleteResponse = BackupsDeleteHeaders; - -// @public -export interface BackupsGetLatestStatusOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsGetLatestStatusResponse = BackupStatus; - -// @public -export interface BackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsGetResponse = Backup; - // @public export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient.OperationOptions { } @@ -367,217 +237,6 @@ export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient. // @public export type BackupsGetVolumeRestoreStatusResponse = RestoreStatus; -// @public -export interface BackupsList { - nextLink?: string; - value?: Backup[]; -} - -// @public -export interface BackupsListByVaultNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsListByVaultNextResponse = BackupsList; - -// @public -export interface BackupsListByVaultOptionalParams extends coreClient.OperationOptions { - filter?: string; -} - -// @public -export type BackupsListByVaultResponse = BackupsList; - -// @public -export interface BackupsMigrationRequest { - backupVaultId: string; -} - -// @public -export interface BackupStatus { - readonly errorMessage?: string; - readonly healthy?: boolean; - readonly lastTransferSize?: number; - readonly lastTransferType?: string; - readonly mirrorState?: MirrorState; - readonly relationshipStatus?: RelationshipStatus; - readonly totalTransferBytes?: number; - readonly transferProgressBytes?: number; - readonly unhealthyReason?: string; -} - -// @public -export interface BackupsUnderAccount { - beginMigrateBackups(resourceGroupName: string, accountName: string, body: BackupsMigrationRequest, options?: BackupsUnderAccountMigrateBackupsOptionalParams): Promise, BackupsUnderAccountMigrateBackupsResponse>>; - beginMigrateBackupsAndWait(resourceGroupName: string, accountName: string, body: BackupsMigrationRequest, options?: BackupsUnderAccountMigrateBackupsOptionalParams): Promise; -} - -// @public -export interface BackupsUnderAccountMigrateBackupsHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderAccountMigrateBackupsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderAccountMigrateBackupsResponse = BackupsUnderAccountMigrateBackupsHeaders; - -// @public -export interface BackupsUnderBackupVault { - beginRestoreFiles(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsUnderBackupVaultRestoreFilesOptionalParams): Promise, BackupsUnderBackupVaultRestoreFilesResponse>>; - beginRestoreFilesAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsUnderBackupVaultRestoreFilesOptionalParams): Promise; -} - -// @public -export interface BackupsUnderBackupVaultRestoreFilesHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderBackupVaultRestoreFilesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderBackupVaultRestoreFilesResponse = BackupsUnderBackupVaultRestoreFilesHeaders; - -// @public -export interface BackupsUnderVolume { - beginMigrateBackups(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: BackupsMigrationRequest, options?: BackupsUnderVolumeMigrateBackupsOptionalParams): Promise, BackupsUnderVolumeMigrateBackupsResponse>>; - beginMigrateBackupsAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: BackupsMigrationRequest, options?: BackupsUnderVolumeMigrateBackupsOptionalParams): Promise; -} - -// @public -export interface BackupsUnderVolumeMigrateBackupsHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderVolumeMigrateBackupsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderVolumeMigrateBackupsResponse = BackupsUnderVolumeMigrateBackupsHeaders; - -// @public -export interface BackupsUpdateHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUpdateOptionalParams extends coreClient.OperationOptions { - body?: BackupPatch; - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUpdateResponse = Backup; - -// @public -export type BackupType = string; - -// @public -export interface BackupVault extends TrackedResource { - readonly provisioningState?: string; -} - -// @public -export interface BackupVaultPatch { - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface BackupVaults { - beginCreateOrUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVault, options?: BackupVaultsCreateOrUpdateOptionalParams): Promise, BackupVaultsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVault, options?: BackupVaultsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsDeleteOptionalParams): Promise, BackupVaultsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVaultPatch, options?: BackupVaultsUpdateOptionalParams): Promise, BackupVaultsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVaultPatch, options?: BackupVaultsUpdateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsGetOptionalParams): Promise; - listByNetAppAccount(resourceGroupName: string, accountName: string, options?: BackupVaultsListByNetAppAccountOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface BackupVaultsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsCreateOrUpdateResponse = BackupVault; - -// @public -export interface BackupVaultsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupVaultsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsDeleteResponse = BackupVaultsDeleteHeaders; - -// @public -export interface BackupVaultsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsGetResponse = BackupVault; - -// @public -export interface BackupVaultsList { - nextLink?: string; - value?: BackupVault[]; -} - -// @public -export interface BackupVaultsListByNetAppAccountNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsListByNetAppAccountNextResponse = BackupVaultsList; - -// @public -export interface BackupVaultsListByNetAppAccountOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsListByNetAppAccountResponse = BackupVaultsList; - -// @public -export interface BackupVaultsUpdateHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupVaultsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsUpdateResponse = BackupVault; - // @public export interface BreakFileLocksRequest { clientIp?: string; @@ -682,12 +341,6 @@ export interface EncryptionIdentity { // @public export type EncryptionKeySource = string; -// @public -export interface EncryptionMigrationRequest { - privateEndpointId: string; - virtualNetworkId: string; -} - // @public export type EncryptionType = string; @@ -801,12 +454,6 @@ export enum KnownAvsDataStore { Enabled = "Enabled" } -// @public -export enum KnownBackupType { - Manual = "Manual", - Scheduled = "Scheduled" -} - // @public export enum KnownCheckNameResourceTypes { MicrosoftNetAppNetAppAccounts = "Microsoft.NetApp/netAppAccounts", @@ -951,8 +598,10 @@ export enum KnownRegionStorageToNetworkProximity { // @public export enum KnownRelationshipStatus { + Failed = "Failed", Idle = "Idle", - Transferring = "Transferring" + Transferring = "Transferring", + Unknown = "Unknown" } // @public @@ -1100,8 +749,6 @@ export interface NetAppAccount extends TrackedResource { encryption?: AccountEncryption; readonly etag?: string; identity?: ManagedServiceIdentity; - readonly isMultiAdEnabled?: boolean; - nfsV4IDDomain?: string; readonly provisioningState?: string; } @@ -1118,10 +765,8 @@ export interface NetAppAccountPatch { encryption?: AccountEncryption; readonly id?: string; identity?: ManagedServiceIdentity; - readonly isMultiAdEnabled?: boolean; location?: string; readonly name?: string; - nfsV4IDDomain?: string; readonly provisioningState?: string; tags?: { [propertyName: string]: string; @@ -1135,8 +780,6 @@ export class NetAppManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: NetAppManagementClientOptionalParams); // (undocumented) - accountBackups: AccountBackups; - // (undocumented) accounts: Accounts; // (undocumented) apiVersion: string; @@ -1145,20 +788,10 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // (undocumented) backups: Backups; // (undocumented) - backupsUnderAccount: BackupsUnderAccount; - // (undocumented) - backupsUnderBackupVault: BackupsUnderBackupVault; - // (undocumented) - backupsUnderVolume: BackupsUnderVolume; - // (undocumented) - backupVaults: BackupVaults; - // (undocumented) netAppResource: NetAppResource; // (undocumented) netAppResourceQuotaLimits: NetAppResourceQuotaLimits; // (undocumented) - netAppResourceRegionInfos: NetAppResourceRegionInfos; - // (undocumented) operations: Operations; // (undocumented) pools: Pools; @@ -1251,33 +884,6 @@ export interface NetAppResourceQuotaLimitsListOptionalParams extends coreClient. // @public export type NetAppResourceQuotaLimitsListResponse = SubscriptionQuotaItemList; -// @public -export interface NetAppResourceRegionInfos { - get(location: string, options?: NetAppResourceRegionInfosGetOptionalParams): Promise; - list(location: string, options?: NetAppResourceRegionInfosListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface NetAppResourceRegionInfosGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosGetResponse = RegionInfoResource; - -// @public -export interface NetAppResourceRegionInfosListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosListNextResponse = RegionInfosList; - -// @public -export interface NetAppResourceRegionInfosListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosListResponse = RegionInfosList; - // @public export interface NetAppResourceUpdateNetworkSiblingSetHeaders { // (undocumented) @@ -1456,18 +1062,6 @@ export interface RegionInfoAvailabilityZoneMappingsItem { isAvailable?: boolean; } -// @public -export interface RegionInfoResource extends ProxyResource { - availabilityZoneMappings?: RegionInfoAvailabilityZoneMappingsItem[]; - storageToNetworkProximity?: RegionStorageToNetworkProximity; -} - -// @public -export interface RegionInfosList { - nextLink?: string; - value?: RegionInfoResource[]; -} - // @public export type RegionStorageToNetworkProximity = string; @@ -1479,13 +1073,6 @@ export interface RelocateVolumeRequest { creationToken?: string; } -// @public -export interface RemotePath { - externalHostName: string; - serverName: string; - volumeName: string; -} - // @public export interface Replication { endpointType?: EndpointType; @@ -1497,7 +1084,6 @@ export interface Replication { // @public export interface ReplicationObject { endpointType?: EndpointType; - remotePath?: RemotePath; remoteVolumeRegion?: string; remoteVolumeResourceId: string; readonly replicationId?: string; @@ -1928,7 +1514,6 @@ export interface Volume extends TrackedResource { exportPolicy?: VolumePropertiesExportPolicy; readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; - readonly inheritedSizeInBytes?: number; isDefaultQuotaEnabled?: boolean; isLargeVolume?: boolean; isRestoring?: boolean; @@ -1965,14 +1550,6 @@ export interface Volume extends TrackedResource { zones?: string[]; } -// @public -export interface VolumeBackupProperties { - backupEnabled?: boolean; - backupPolicyId?: string; - backupVaultId?: string; - policyEnforced?: boolean; -} - // @public export interface VolumeBackups { backupsCount?: number; @@ -2078,7 +1655,6 @@ export interface VolumeGroupVolumeProperties { readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; readonly id?: string; - readonly inheritedSizeInBytes?: number; isDefaultQuotaEnabled?: boolean; isLargeVolume?: boolean; isRestoring?: boolean; @@ -2154,7 +1730,6 @@ export interface VolumePatch { // @public export interface VolumePatchPropertiesDataProtection { - backup?: VolumeBackupProperties; snapshot?: VolumeSnapshotProperties; } @@ -2165,7 +1740,6 @@ export interface VolumePatchPropertiesExportPolicy { // @public export interface VolumePropertiesDataProtection { - backup?: VolumeBackupProperties; replication?: ReplicationObject; snapshot?: VolumeSnapshotProperties; volumeRelocation?: VolumeRelocationProperties; @@ -2297,8 +1871,6 @@ export interface Volumes { beginRevertAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumeRevert, options?: VolumesRevertOptionalParams): Promise; beginRevertRelocation(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesRevertRelocationOptionalParams): Promise, void>>; beginRevertRelocationAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesRevertRelocationOptionalParams): Promise; - beginSplitCloneFromParent(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesSplitCloneFromParentOptionalParams): Promise, VolumesSplitCloneFromParentResponse>>; - beginSplitCloneFromParentAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesSplitCloneFromParentOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumePatch, options?: VolumesUpdateOptionalParams): Promise, VolumesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumePatch, options?: VolumesUpdateOptionalParams): Promise; get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesGetOptionalParams): Promise; @@ -2489,21 +2061,6 @@ export interface VolumesRevertRelocationOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } -// @public -export interface VolumesSplitCloneFromParentHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface VolumesSplitCloneFromParentOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type VolumesSplitCloneFromParentResponse = VolumesSplitCloneFromParentHeaders; - // @public export type VolumeStorageToNetworkProximity = string; diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts deleted file mode 100644 index a70df34e81e9..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts deleted file mode 100644 index 2410c0df94ab..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts deleted file mode 100644 index b9f7624afc1f..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts index e53609546155..85c10bc1b59d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsCreateOrUpdate() { const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } @@ -41,7 +41,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = @@ -61,17 +61,17 @@ async function accountsCreateOrUpdateWithActiveDirectory() { password: "ad_password", site: "SiteName", smbServerName: "SMBServer", - username: "ad_user_name" - } + username: "ad_user_name", + }, ], - location: "eastus" + location: "eastus", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts index e520aff851ff..0308e9ad499a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsDelete() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts index 22a8a1ab0873..38bb8c6756c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts index 1f292e0303b9..05a45b7d8c31 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts index fc0b884f17c3..852a3d845dd8 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts deleted file mode 100644 index 4975f091426e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EncryptionMigrationRequest, - AccountsMigrateEncryptionKeyOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: EncryptionMigrationRequest = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1" - }; - const options: AccountsMigrateEncryptionKeyOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts index 4d0b3ca77014..3280153c50ce 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsRenewCredentials() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginRenewCredentialsAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts index f70d57a33678..6ad6f365b75d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsUpdate() { const result = await client.accounts.beginUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts index 6b2316ba4533..5349b14f7720 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesCreate() { enabled: true, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesCreate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts index ab6bae9205cc..b08e68c37a1f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function backupsDelete() { const result = await client.backupPolicies.beginDeleteAndWait( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts index 53cc2fc4840c..8f692b9901bd 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupsGet() { const result = await client.backupPolicies.get( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts index 6c99bb47ce8e..0fe398c65443 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = @@ -31,7 +31,7 @@ async function backupsList() { const resArray = new Array(); for await (let item of client.backupPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts index 7b8288681132..ebce8bb82494 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesUpdate() { enabled: false, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesUpdate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts deleted file mode 100644 index e741c2c215c6..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupVault, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVault = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts deleted file mode 100644 index 5918f68afc9d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts deleted file mode 100644 index f12d1e74b43e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts deleted file mode 100644 index 26db2a521b97..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts deleted file mode 100644 index 90ad3a20022d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupVaultPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVaultPatch = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts deleted file mode 100644 index 11eb66c7c2b7..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Backup, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: Backup = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts deleted file mode 100644 index fec3afd8d873..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts deleted file mode 100644 index bd1cb2a56c89..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts deleted file mode 100644 index 98f4a3dd8d30..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts index 6d6ca819cdc8..b65cb60d137c 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRestoreStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts deleted file mode 100644 index 828c41fbc9af..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts deleted file mode 100644 index 9bf1d05d2bf4..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts deleted file mode 100644 index d463fa78ae3d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupRestoreFiles, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupRestoreFiles = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"] - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts deleted file mode 100644 index ab1ce078a0b4..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts deleted file mode 100644 index 07d90d61e774..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupPatch, - BackupsUpdateOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupPatch = {}; - const options: BackupsUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts index 63a0ea2906e4..05b7dc514c9f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = @@ -33,7 +33,7 @@ async function checkFilePathAvailability() { const result = await client.netAppResource.checkFilePathAvailability( location, name, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts index 3cc975b1d3f9..820942bee7b4 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkNameAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts index 3378adbd26b4..2a1f7e3c50c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkQuotaAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts index bb58c0a33128..a936ed78bbc9 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = @@ -33,7 +33,7 @@ async function networkSiblingSetQuery() { const result = await client.netAppResource.queryNetworkSiblingSet( location, networkSiblingSetId, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts index 7c3cd7080e7d..1d9c5323cee2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts index 8f0f34b8878d..3078387d6b35 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = @@ -30,7 +30,7 @@ async function quotaLimits() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.netAppResourceQuotaLimits.get( location, - quotaLimitName + quotaLimitName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts index 4a2b587d265e..2d0326e06565 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts deleted file mode 100644 index 6ad0077bbeb3..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts deleted file mode 100644 index 0f001d6f3e8e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides region specific information. - * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json - */ -async function regionInfosList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - regionInfosList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts index 993cb310901c..d813bd8ef06a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = @@ -32,13 +32,14 @@ async function networkFeaturesUpdate() { const networkFeatures = "Standard"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures - ); + const result = + await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts index b6889338df8c..1d41bd056620 100644 --- a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts index 5e35e7140231..2959e4972a83 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = @@ -31,7 +31,7 @@ async function poolsCreateOrUpdate() { location: "eastus", qosType: "Auto", serviceLevel: "Premium", - size: 4398046511104 + size: 4398046511104, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function poolsCreateOrUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts index 601a7a09b375..3f3b5543f973 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsDelete() { const result = await client.pools.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts index 1d9e9e863d38..ec8b1e723890 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsGet() { const result = await client.pools.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts index cc274cf7c4c8..732e49f0d81f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts index d8b99b70b4cb..fad1ab8f816a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = @@ -34,7 +34,7 @@ async function poolsUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts index c3bb40d7d4fd..5c03a27f4400 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesCreate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesCreate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts index b070d8be07bf..54342c7e4429 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotPoliciesDelete() { const result = await client.snapshotPolicies.beginDeleteAndWait( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts index e04c17f19010..22cee775c848 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesGet() { const result = await client.snapshotPolicies.get( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts index 0fcd799a519d..c5979f7e1943 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = @@ -31,7 +31,7 @@ async function snapshotPoliciesList() { const resArray = new Array(); for await (let item of client.snapshotPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts index fef7aef70825..9b9cba0c5ca5 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesListVolumes() { const result = await client.snapshotPolicies.listVolumes( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts index 149027a25a16..13bbe1990711 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesUpdate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesUpdate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts index a5ce922be485..a31ec846a3f1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsCreate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts index e5fcdca7bfbb..6b948039b70e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsDelete() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts index d022a1c4641e..a9ccd7cce449 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsGet() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts index 3e6b274df61f..523f96cd67fa 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = @@ -35,7 +35,7 @@ async function snapshotsList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts index cf8c6d188b99..fb03516b70a3 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SnapshotRestoreFiles, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotsSingleFileRestore() { const volumeName = "volume1"; const snapshotName = "snapshot1"; const body: SnapshotRestoreFiles = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"] + filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function snapshotsSingleFileRestore() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts index 413c1e71fdf8..cda8036eac64 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsUpdate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts index bf067d8f406f..38e28ef35576 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function subvolumesCreate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts index 7dd5570262e8..b05b7aad7892 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesDelete() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts index abadb46aa9c0..ea888f2ca111 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesMetadata() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts index a1c2a6cd64d5..5c524fb51a04 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesGet() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts index bac5cfd473dd..bd5d44c32e37 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function subvolumesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts index b1ffe151c805..9d2bcb771801 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SubvolumePatchRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function subvolumesUpdate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts index 0f13621808dc..418ad5aa3844 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsCreateOracle() { groupMetaData: { applicationIdentifier: "OR2", applicationType: "ORACLE", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -56,9 +56,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -67,7 +67,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data1", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data2", @@ -90,9 +90,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -101,7 +101,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data2", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data3", @@ -124,9 +124,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -135,7 +135,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data3", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data4", @@ -158,9 +158,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -169,7 +169,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data4", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data5", @@ -192,9 +192,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -203,7 +203,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data5", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data6", @@ -226,9 +226,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -237,7 +237,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data6", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data7", @@ -260,9 +260,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -271,7 +271,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data7", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data8", @@ -294,9 +294,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -305,7 +305,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data8", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log", @@ -328,9 +328,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -339,7 +339,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log-mirror", @@ -362,9 +362,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -373,7 +373,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log-mirror", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-binary", @@ -396,9 +396,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -407,7 +407,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-binary", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-backup", @@ -430,9 +430,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -441,9 +441,9 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-backup", - zones: ["1"] - } - ] + zones: ["1"], + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -451,7 +451,7 @@ async function volumeGroupsCreateOracle() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } @@ -460,7 +460,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = @@ -473,7 +473,7 @@ async function volumeGroupsCreateSapHana() { groupMetaData: { applicationIdentifier: "SH9", applicationType: "SAP-HANA", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -498,9 +498,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -510,7 +510,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data" + volumeSpecName: "data", }, { name: "test-log-mnt00001", @@ -533,9 +533,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -545,7 +545,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log" + volumeSpecName: "log", }, { name: "test-shared", @@ -568,9 +568,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -580,7 +580,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "shared" + volumeSpecName: "shared", }, { name: "test-data-backup", @@ -603,9 +603,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -615,7 +615,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data-backup" + volumeSpecName: "data-backup", }, { name: "test-log-backup", @@ -638,9 +638,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -650,9 +650,9 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log-backup" - } - ] + volumeSpecName: "log-backup", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -660,7 +660,7 @@ async function volumeGroupsCreateSapHana() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts index e01302d73dcd..bfd01348e971 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsDelete() { const result = await client.volumeGroups.beginDeleteAndWait( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts index dc28f5ca1baf..54fc72bd6985 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsGetOracle() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } @@ -41,7 +41,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsGetSapHana() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts index c95287efcf06..ae79592660c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsListOracle() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -42,7 +42,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsListSapHana() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts index 2635560f8c1f..ebf4971bd014 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumeQuotaRulesCreate() { location: "westus", quotaSizeInKiBs: 100005, quotaTarget: "1821", - quotaType: "IndividualUserQuota" + quotaType: "IndividualUserQuota", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function volumeQuotaRulesCreate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts index 3bd1d48a0aba..8df9f5b6705a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesDelete() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts index ae6fa041a5d7..d51f2cbe651d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesGet() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts index 633491b0db13..3c0e2c1a473b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumeQuotaRulesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts index d73d0af1c03b..556ec699bf30 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VolumeQuotaRulePatch, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumeQuotaRulesUpdate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts index 34f5e7d6773b..6278a643d49e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: AuthorizeRequest = { remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts index 4968b24e20c5..a0caa568c761 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts @@ -11,7 +11,7 @@ import { BreakFileLocksRequest, VolumesBreakFileLocksOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesBreakFileLocks() { const volumeName = "volume1"; const body: BreakFileLocksRequest = { clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true + confirmRunningDisruptiveOperation: true, }; const options: VolumesBreakFileLocksOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function volumesBreakFileLocks() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts index 8e71b4fb4187..64c5fdbfcebf 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts @@ -11,7 +11,7 @@ import { BreakReplicationRequest, VolumesBreakReplicationOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesBreakReplication() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts index b3eb6943dbbf..a9a34de126df 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -30,13 +30,11 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body: Volume = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, - usageThreshold: 107374182400 + usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -45,7 +43,7 @@ async function volumesCreateOrUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts index 96063c59f5fd..a4d66f403658 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDeleteReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts index 75a4bce9ad86..f66ad69f0fc2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDelete() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts index 084aad858a59..f5a6a2a32128 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesFinalizeRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts index 9cd849ab90d0..148073a4ea21 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesGet() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts index 5bc7dd0c12f5..2c3af3ef5a2a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GetGroupIdListForLdapUserRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = @@ -39,7 +39,7 @@ async function getGroupIdListForUser() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts index 25b4ea9e10d7..8d4ffdb22d84 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumesListReplications() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts index 1e6320a9ad05..1897922b20bd 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesList() { for await (let item of client.volumes.list( resourceGroupName, accountName, - poolName + poolName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts index e9bcd70a6317..27f44c2d5091 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: PoolChangeRequest = { newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts index c363a99c4af3..693dd0710a7d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesPopulateAvailabilityZones() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts index 2b8e869cc66a..212d4a1b7728 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReInitializeReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts index 74f3243493aa..afdd687cbe2c 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ReestablishReplicationRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesReestablishReplication() { const volumeName = "volume1"; const body: ReestablishReplicationRequest = { sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function volumesReestablishReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts index 3c278a1211af..8ee2bb638298 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts @@ -11,7 +11,7 @@ import { RelocateVolumeRequest, VolumesRelocateOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesRelocate() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts index 703a80c6a2cc..841b6e9cb282 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReplicationStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts index bfdd4ad6ab8a..12a35039d3f2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResetCifsPassword() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts index 819e72b259cc..bbefe158f37e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResyncReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts index 971c433827cb..b88b8b4b77ba 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRevertRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts index be658f3923d5..bf4f444ee1fa 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesRevert() { const volumeName = "volume1"; const body: VolumeRevert = { snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesRevert() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts deleted file mode 100644 index 83a8764fe8f2..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts index 1b1facca9524..9f6d327bb77a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -28,17 +28,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body: VolumePatch = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false - } - }, - location: "eastus" - }; + const body: VolumePatch = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( @@ -46,7 +36,7 @@ async function volumesUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js deleted file mode 100644 index 89a970a1d13f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName, - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js deleted file mode 100644 index 37af4530968f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get(resourceGroupName, accountName, backupName); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js deleted file mode 100644 index 0c20b31287a9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js deleted file mode 100644 index 30623f11199c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options, - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js deleted file mode 100644 index 98c3c5c92209..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body, - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js deleted file mode 100644 index ab9d43c1ffe3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js deleted file mode 100644 index 76881e7ec716..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get(resourceGroupName, accountName, backupVaultName); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js deleted file mode 100644 index f01e7084898a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js deleted file mode 100644 index 5ffa172c1707..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body, - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js deleted file mode 100644 index 698713a92a37..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js deleted file mode 100644 index 3fc6a3dcde72..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js deleted file mode 100644 index db0e8f370868..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js deleted file mode 100644 index 06b73145fd62..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js deleted file mode 100644 index 39eb229f2216..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js deleted file mode 100644 index 84810072bc25..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js deleted file mode 100644 index 7769fe00412d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js deleted file mode 100644 index 1a58084b3140..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js deleted file mode 100644 index 909295f2c60e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = {}; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js deleted file mode 100644 index 52609dc4fdee..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js deleted file mode 100644 index bfe7b8ce6851..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides region specific information. - * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json - */ -async function regionInfosList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - regionInfosList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js deleted file mode 100644 index 479163184261..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts deleted file mode 100644 index a70df34e81e9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts deleted file mode 100644 index 2410c0df94ab..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts deleted file mode 100644 index b9f7624afc1f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts deleted file mode 100644 index 4975f091426e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EncryptionMigrationRequest, - AccountsMigrateEncryptionKeyOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: EncryptionMigrationRequest = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1" - }; - const options: AccountsMigrateEncryptionKeyOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts deleted file mode 100644 index e741c2c215c6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupVault, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVault = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts deleted file mode 100644 index 5918f68afc9d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts deleted file mode 100644 index f12d1e74b43e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts deleted file mode 100644 index 26db2a521b97..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts deleted file mode 100644 index 90ad3a20022d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupVaultPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVaultPatch = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts deleted file mode 100644 index 11eb66c7c2b7..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Backup, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: Backup = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts deleted file mode 100644 index fec3afd8d873..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts deleted file mode 100644 index bd1cb2a56c89..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts deleted file mode 100644 index 98f4a3dd8d30..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts deleted file mode 100644 index 828c41fbc9af..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts deleted file mode 100644 index 9bf1d05d2bf4..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts deleted file mode 100644 index d463fa78ae3d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupRestoreFiles, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupRestoreFiles = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"] - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts deleted file mode 100644 index ab1ce078a0b4..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts deleted file mode 100644 index 07d90d61e774..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BackupPatch, - BackupsUpdateOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupPatch = {}; - const options: BackupsUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts deleted file mode 100644 index 6ad0077bbeb3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts deleted file mode 100644 index 0f001d6f3e8e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides region specific information. - * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json - */ -async function regionInfosList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - regionInfosList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts deleted file mode 100644 index 83a8764fe8f2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md b/sdk/netapp/arm-netapp/samples/v20/javascript/README.md similarity index 53% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md rename to sdk/netapp/arm-netapp/samples/v20/javascript/README.md index d2799d0c39f3..3a89a903aff0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/README.md @@ -1,106 +1,85 @@ -# client library samples for JavaScript (Beta) +# client library samples for JavaScript These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [accountBackupsDeleteSample.js][accountbackupsdeletesample] | Delete the specified Backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json | -| [accountBackupsGetSample.js][accountbackupsgetsample] | Gets the specified backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json | -| [accountBackupsListByNetAppAccountSample.js][accountbackupslistbynetappaccountsample] | List all Backups for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json | -| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json | -| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsMigrateEncryptionKeySample.js][accountsmigrateencryptionkeysample] | Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json | -| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json | -| [backupVaultsCreateOrUpdateSample.js][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json | -| [backupVaultsDeleteSample.js][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json | -| [backupVaultsGetSample.js][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json | -| [backupVaultsListByNetAppAccountSample.js][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json | -| [backupVaultsUpdateSample.js][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json | -| [backupsCreateSample.js][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json | -| [backupsDeleteSample.js][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json | -| [backupsGetLatestStatusSample.js][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json | -| [backupsGetSample.js][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json | -| [backupsGetVolumeRestoreStatusSample.js][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json | -| [backupsListByVaultSample.js][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json | -| [backupsUnderAccountMigrateBackupsSample.js][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json | -| [backupsUnderBackupVaultRestoreFilesSample.js][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json | -| [backupsUnderVolumeMigrateBackupsSample.js][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json | -| [backupsUpdateSample.js][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json | -| [netAppResourceRegionInfosGetSample.js][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json | -| [netAppResourceRegionInfosListSample.js][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json | -| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json | -| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json | -| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json | -| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json | -| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json | -| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json | -| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json | -| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json | -| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json | -| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json | -| [volumesSplitCloneFromParentSample.js][volumessplitclonefromparentsample] | Split operation to convert clone volume to an independent volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json | -| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json | +| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json | +| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json | +| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json | +| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json | +| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json | +| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json | +| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json | +| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json | +| [backupsGetVolumeRestoreStatusSample.js][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json | +| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json | +| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json | +| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json | +| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json | +| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json | +| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json | +| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json | +| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json | +| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json | +| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json | +| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json | +| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json | +| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json | +| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json | +| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json | +| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json | +| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json | +| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json | +| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json | +| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json | +| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json | +| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json | +| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json | +| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json | +| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json | +| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json | +| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json | +| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json | +| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json | +| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json | +| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json | +| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json | +| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json | +| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json | +| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json | +| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json | +| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json | +| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json | +| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json | +| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json | +| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json | +| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json | +| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json | +| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json | +| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json | +| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json | +| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json | +| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json | +| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json | +| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json | ## Prerequisites @@ -127,116 +106,95 @@ npm install 3. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node accountBackupsDeleteSample.js +node accountsCreateOrUpdateSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountBackupsDeleteSample.js +npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountsCreateOrUpdateSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[accountbackupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js -[accountbackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js -[accountbackupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js -[accountsmigrateencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js -[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js -[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js -[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js -[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js -[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js -[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js -[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js -[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js -[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js -[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js -[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js -[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js -[volumessplitclonefromparentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js +[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js index 356f13b42725..1544effbc70c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js index ecdde01f72a3..e9fdc967f06c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js index 8a89b17b00de..a325d7313e6e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js index 7a22b22226bb..4194be94bf6c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js index 5d76755f998e..69fff1d5b2f7 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js index 9920d251303f..613b31721b67 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js index baeeaa3cea92..60fdb74aa56a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js index 85a463d27424..a5ec4f9458f9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js index 7aa13db568a5..67938cd240bb 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js index d9a296d7eb39..fe3ad0fb8931 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js index ed30bdf6324c..63b9ed79d04d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js index 0456013773f2..38ba7d79729a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js index de1c5c081f96..7f65c6254e9d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js index 6cbe5c6f5794..16a84fccdae1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js index 23dc09b9f1cf..0121ab5a7286 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js index 43c4dd46a7c7..ba37d725fcd3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js index 2740819707cc..0e83f9d34f4d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js index a11ab3d15397..e3f2b4227f9a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js index 5a93893cb1d2..8d3265e1a3e9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js index 90f2f6af4f90..28dd26713ef3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js index 7b029fb77cf7..fc59d24be22c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js index 6231e1533d32..dfa127d2fcbf 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json b/sdk/netapp/arm-netapp/samples/v20/javascript/package.json similarity index 81% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json rename to sdk/netapp/arm-netapp/samples/v20/javascript/package.json index 1348842e2fd4..a2e9760744db 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-netapp-js-beta", + "name": "@azure-samples/arm-netapp-js", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", + "description": " client library samples for JavaScript", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", "dependencies": { - "@azure/arm-netapp": "next", + "@azure/arm-netapp": "latest", "dotenv": "latest", "@azure/identity": "^4.0.1" } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js index c56b3da8899e..1c28fc96a651 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js index 444a1607455a..72039201a54b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js index 18bcd9b1491f..1a6779ef5004 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js index 301c223a32cf..32d2cc2a3786 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js index 920c62380824..a5a2939e9e31 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/sample.env b/sdk/netapp/arm-netapp/samples/v20/javascript/sample.env similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/sample.env rename to sdk/netapp/arm-netapp/samples/v20/javascript/sample.env diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js index 8311ad8fa779..4fb870bb2ad9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js index 63b9597839e8..aca1c0fc43a6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js index fa1b2c6605c5..2922f8467118 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js index 412f44c5a93e..6ecbceb2855e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js index 4aca38404189..deb60ce0a89b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js index 41fe961945e5..d1439a5f3df1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js index e798709886d9..47d944c52b8d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js index 9cd94b20626c..6294f65e40fb 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js index 558e0806fd39..f98caec5ba51 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js index bf5924217f55..78770a032be2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js index 80bee2e7adc2..169d7ab8f641 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js index cb235762ce65..c54a09206c20 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js index 5c72839966f8..f7ee2b70c08b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js index 572992a983d9..d8032603ebd8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js index 3f78d8ea6417..858a3e95f1e8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js index e14ac63912cd..5d971b8dc798 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js index 39d28210f126..6ea9f4328fd3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js index 73090d59f1ed..234e2bdec241 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js similarity index 99% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js index dc6332842d9b..3adb55c40a43 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -457,7 +457,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js index b4a43324486f..0b7293904c17 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js index 3f19fd13da57..56a109ae5d10 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js index da6a5ae7ca02..419907f398f9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js index 25b49fadb99a..086d94ea8814 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js index 13b3edb3cc4e..69f776285ca3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js index f594c697b6d3..7524e3d3c2e6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js index d03646d3f293..dcbd3baf1019 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js index a5c45f0d79b9..a0d46bbf91d0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js index 9d0d273f0740..4e687f1135cc 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js index 369613d5ee9d..5e455f0f76e8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js index 8707ff772200..a28912dda337 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js index a7bc02f7c935..89be59853b90 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -27,12 +27,10 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js index 866803190c31..d27770c6a6ef 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js index 0ffaf51fcbd0..b03cee655e34 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js index 47a82676be0c..0d6a8cc6575c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js index 687c97f00cf2..00aca6a08a28 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js index 8303cc313c84..5a8486115672 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js index 5dd1cd534c70..4cfc39c0206b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js index 56bf8ed91300..e9f51e07671e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js index bf1ceb81466a..3de6653754d0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js index fa7b0a268c67..4e703835d807 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js index 3026960b5a22..8306dd7dd2fc 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js index 1488e02af480..0599fa16285f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js index 35c274ea533a..57cc4cee6507 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js index 85e6eb16167e..a8c4696ca2a6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js index 4930682fc65a..c06aa55070b5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js index 882f186a3062..49ae5f35a38c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js index 59122df7035c..568add203759 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js index 0f1191416833..d09afe402a22 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js similarity index 76% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js index 03af3792446a..ff1b6792e390 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -25,17 +25,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false, - }, - }, - location: "eastus", - }; + const body = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md b/sdk/netapp/arm-netapp/samples/v20/typescript/README.md similarity index 53% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md rename to sdk/netapp/arm-netapp/samples/v20/typescript/README.md index 1cb7aed3c8dc..1af20193e61c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/README.md @@ -1,106 +1,85 @@ -# client library samples for TypeScript (Beta) +# client library samples for TypeScript These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [accountBackupsDeleteSample.ts][accountbackupsdeletesample] | Delete the specified Backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json | -| [accountBackupsGetSample.ts][accountbackupsgetsample] | Gets the specified backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json | -| [accountBackupsListByNetAppAccountSample.ts][accountbackupslistbynetappaccountsample] | List all Backups for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json | -| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json | -| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsMigrateEncryptionKeySample.ts][accountsmigrateencryptionkeysample] | Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json | -| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json | -| [backupVaultsCreateOrUpdateSample.ts][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json | -| [backupVaultsDeleteSample.ts][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json | -| [backupVaultsGetSample.ts][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json | -| [backupVaultsListByNetAppAccountSample.ts][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json | -| [backupVaultsUpdateSample.ts][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json | -| [backupsCreateSample.ts][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json | -| [backupsDeleteSample.ts][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json | -| [backupsGetLatestStatusSample.ts][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json | -| [backupsGetSample.ts][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json | -| [backupsGetVolumeRestoreStatusSample.ts][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json | -| [backupsListByVaultSample.ts][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json | -| [backupsUnderAccountMigrateBackupsSample.ts][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json | -| [backupsUnderBackupVaultRestoreFilesSample.ts][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json | -| [backupsUnderVolumeMigrateBackupsSample.ts][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json | -| [backupsUpdateSample.ts][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json | -| [netAppResourceRegionInfosGetSample.ts][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json | -| [netAppResourceRegionInfosListSample.ts][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json | -| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json | -| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json | -| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json | -| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json | -| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json | -| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json | -| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json | -| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json | -| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json | -| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json | -| [volumesSplitCloneFromParentSample.ts][volumessplitclonefromparentsample] | Split operation to convert clone volume to an independent volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json | -| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json | +| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json | +| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json | +| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json | +| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json | +| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json | +| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json | +| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json | +| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json | +| [backupsGetVolumeRestoreStatusSample.ts][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json | +| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json | +| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json | +| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json | +| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json | +| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json | +| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json | +| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json | +| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json | +| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json | +| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json | +| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json | +| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json | +| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json | +| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json | +| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json | +| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json | +| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json | +| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json | +| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json | +| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json | +| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json | +| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json | +| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json | +| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json | +| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json | +| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json | +| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json | +| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json | +| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json | +| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json | +| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json | +| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json | +| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json | +| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json | +| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json | +| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json | +| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json | +| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json | +| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json | +| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json | +| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json | +| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json | +| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json | +| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json | +| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json | +| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json | +| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json | +| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json | +| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json | +| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json | ## Prerequisites @@ -139,116 +118,95 @@ npm run build 4. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node dist/accountBackupsDeleteSample.js +node dist/accountsCreateOrUpdateSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountBackupsDeleteSample.js +npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountsCreateOrUpdateSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[accountbackupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts -[accountbackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts -[accountbackupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts -[accountsmigrateencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts -[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts -[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts -[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts -[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts -[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts -[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts -[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts -[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts -[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts -[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts -[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts -[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts -[volumessplitclonefromparentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts +[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json b/sdk/netapp/arm-netapp/samples/v20/typescript/package.json similarity index 84% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json rename to sdk/netapp/arm-netapp/samples/v20/typescript/package.json index 85f5a8dbacc0..c0d75ac196f5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-netapp-ts-beta", + "name": "@azure-samples/arm-netapp-ts", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", + "description": " client library samples for TypeScript", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", "dependencies": { - "@azure/arm-netapp": "next", + "@azure/arm-netapp": "latest", "dotenv": "latest", "@azure/identity": "^4.0.1" }, diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/sample.env b/sdk/netapp/arm-netapp/samples/v20/typescript/sample.env similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/sample.env rename to sdk/netapp/arm-netapp/samples/v20/typescript/sample.env diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts index e53609546155..85c10bc1b59d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsCreateOrUpdate() { const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } @@ -41,7 +41,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = @@ -61,17 +61,17 @@ async function accountsCreateOrUpdateWithActiveDirectory() { password: "ad_password", site: "SiteName", smbServerName: "SMBServer", - username: "ad_user_name" - } + username: "ad_user_name", + }, ], - location: "eastus" + location: "eastus", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts index e520aff851ff..0308e9ad499a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsDelete() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts index 22a8a1ab0873..38bb8c6756c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts index 1f292e0303b9..05a45b7d8c31 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts index fc0b884f17c3..852a3d845dd8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts index 4d0b3ca77014..3280153c50ce 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsRenewCredentials() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginRenewCredentialsAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts index f70d57a33678..6ad6f365b75d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsUpdate() { const result = await client.accounts.beginUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts index 6b2316ba4533..5349b14f7720 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesCreate() { enabled: true, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesCreate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts index ab6bae9205cc..b08e68c37a1f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function backupsDelete() { const result = await client.backupPolicies.beginDeleteAndWait( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts index 53cc2fc4840c..8f692b9901bd 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupsGet() { const result = await client.backupPolicies.get( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts index 6c99bb47ce8e..0fe398c65443 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = @@ -31,7 +31,7 @@ async function backupsList() { const resArray = new Array(); for await (let item of client.backupPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts index 7b8288681132..ebce8bb82494 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesUpdate() { enabled: false, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesUpdate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts index 6d6ca819cdc8..b65cb60d137c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRestoreStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts index 63a0ea2906e4..05b7dc514c9f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = @@ -33,7 +33,7 @@ async function checkFilePathAvailability() { const result = await client.netAppResource.checkFilePathAvailability( location, name, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts index 3cc975b1d3f9..820942bee7b4 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkNameAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts index 3378adbd26b4..2a1f7e3c50c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkQuotaAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts index bb58c0a33128..a936ed78bbc9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = @@ -33,7 +33,7 @@ async function networkSiblingSetQuery() { const result = await client.netAppResource.queryNetworkSiblingSet( location, networkSiblingSetId, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts index 7c3cd7080e7d..1d9c5323cee2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts index 8f0f34b8878d..3078387d6b35 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = @@ -30,7 +30,7 @@ async function quotaLimits() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.netAppResourceQuotaLimits.get( location, - quotaLimitName + quotaLimitName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts index 4a2b587d265e..2d0326e06565 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts similarity index 84% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts index 993cb310901c..d813bd8ef06a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = @@ -32,13 +32,14 @@ async function networkFeaturesUpdate() { const networkFeatures = "Standard"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures - ); + const result = + await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts index b6889338df8c..1d41bd056620 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts index 5e35e7140231..2959e4972a83 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = @@ -31,7 +31,7 @@ async function poolsCreateOrUpdate() { location: "eastus", qosType: "Auto", serviceLevel: "Premium", - size: 4398046511104 + size: 4398046511104, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function poolsCreateOrUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts index 601a7a09b375..3f3b5543f973 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsDelete() { const result = await client.pools.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts index 1d9e9e863d38..ec8b1e723890 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsGet() { const result = await client.pools.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts index cc274cf7c4c8..732e49f0d81f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts index d8b99b70b4cb..fad1ab8f816a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = @@ -34,7 +34,7 @@ async function poolsUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts index c3bb40d7d4fd..5c03a27f4400 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesCreate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesCreate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts index b070d8be07bf..54342c7e4429 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotPoliciesDelete() { const result = await client.snapshotPolicies.beginDeleteAndWait( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts index e04c17f19010..22cee775c848 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesGet() { const result = await client.snapshotPolicies.get( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts index 0fcd799a519d..c5979f7e1943 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = @@ -31,7 +31,7 @@ async function snapshotPoliciesList() { const resArray = new Array(); for await (let item of client.snapshotPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts index fef7aef70825..9b9cba0c5ca5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesListVolumes() { const result = await client.snapshotPolicies.listVolumes( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts index 149027a25a16..13bbe1990711 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesUpdate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesUpdate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts index a5ce922be485..a31ec846a3f1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsCreate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts index e5fcdca7bfbb..6b948039b70e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsDelete() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts index d022a1c4641e..a9ccd7cce449 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsGet() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts index 3e6b274df61f..523f96cd67fa 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = @@ -35,7 +35,7 @@ async function snapshotsList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts similarity index 89% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts index cf8c6d188b99..fb03516b70a3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SnapshotRestoreFiles, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotsSingleFileRestore() { const volumeName = "volume1"; const snapshotName = "snapshot1"; const body: SnapshotRestoreFiles = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"] + filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function snapshotsSingleFileRestore() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts index 413c1e71fdf8..cda8036eac64 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsUpdate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts index bf067d8f406f..38e28ef35576 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function subvolumesCreate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts index 7dd5570262e8..b05b7aad7892 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesDelete() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts index abadb46aa9c0..ea888f2ca111 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesMetadata() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts index a1c2a6cd64d5..5c524fb51a04 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesGet() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts index bac5cfd473dd..bd5d44c32e37 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function subvolumesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts index b1ffe151c805..9d2bcb771801 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SubvolumePatchRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function subvolumesUpdate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts index 0f13621808dc..418ad5aa3844 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsCreateOracle() { groupMetaData: { applicationIdentifier: "OR2", applicationType: "ORACLE", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -56,9 +56,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -67,7 +67,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data1", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data2", @@ -90,9 +90,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -101,7 +101,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data2", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data3", @@ -124,9 +124,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -135,7 +135,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data3", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data4", @@ -158,9 +158,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -169,7 +169,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data4", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data5", @@ -192,9 +192,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -203,7 +203,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data5", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data6", @@ -226,9 +226,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -237,7 +237,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data6", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data7", @@ -260,9 +260,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -271,7 +271,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data7", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data8", @@ -294,9 +294,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -305,7 +305,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data8", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log", @@ -328,9 +328,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -339,7 +339,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log-mirror", @@ -362,9 +362,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -373,7 +373,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log-mirror", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-binary", @@ -396,9 +396,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -407,7 +407,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-binary", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-backup", @@ -430,9 +430,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -441,9 +441,9 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-backup", - zones: ["1"] - } - ] + zones: ["1"], + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -451,7 +451,7 @@ async function volumeGroupsCreateOracle() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } @@ -460,7 +460,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = @@ -473,7 +473,7 @@ async function volumeGroupsCreateSapHana() { groupMetaData: { applicationIdentifier: "SH9", applicationType: "SAP-HANA", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -498,9 +498,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -510,7 +510,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data" + volumeSpecName: "data", }, { name: "test-log-mnt00001", @@ -533,9 +533,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -545,7 +545,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log" + volumeSpecName: "log", }, { name: "test-shared", @@ -568,9 +568,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -580,7 +580,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "shared" + volumeSpecName: "shared", }, { name: "test-data-backup", @@ -603,9 +603,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -615,7 +615,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data-backup" + volumeSpecName: "data-backup", }, { name: "test-log-backup", @@ -638,9 +638,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -650,9 +650,9 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log-backup" - } - ] + volumeSpecName: "log-backup", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -660,7 +660,7 @@ async function volumeGroupsCreateSapHana() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts index e01302d73dcd..bfd01348e971 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsDelete() { const result = await client.volumeGroups.beginDeleteAndWait( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts index dc28f5ca1baf..54fc72bd6985 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsGetOracle() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } @@ -41,7 +41,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsGetSapHana() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts index c95287efcf06..ae79592660c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsListOracle() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -42,7 +42,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsListSapHana() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts index 2635560f8c1f..ebf4971bd014 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumeQuotaRulesCreate() { location: "westus", quotaSizeInKiBs: 100005, quotaTarget: "1821", - quotaType: "IndividualUserQuota" + quotaType: "IndividualUserQuota", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function volumeQuotaRulesCreate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts index 3bd1d48a0aba..8df9f5b6705a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesDelete() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts index ae6fa041a5d7..d51f2cbe651d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesGet() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts index 633491b0db13..3c0e2c1a473b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumeQuotaRulesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts index d73d0af1c03b..556ec699bf30 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VolumeQuotaRulePatch, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumeQuotaRulesUpdate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts index 34f5e7d6773b..6278a643d49e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: AuthorizeRequest = { remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts similarity index 90% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts index 4968b24e20c5..a0caa568c761 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts @@ -11,7 +11,7 @@ import { BreakFileLocksRequest, VolumesBreakFileLocksOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesBreakFileLocks() { const volumeName = "volume1"; const body: BreakFileLocksRequest = { clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true + confirmRunningDisruptiveOperation: true, }; const options: VolumesBreakFileLocksOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function volumesBreakFileLocks() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts index 8e71b4fb4187..64c5fdbfcebf 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts @@ -11,7 +11,7 @@ import { BreakReplicationRequest, VolumesBreakReplicationOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesBreakReplication() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts similarity index 89% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts index b3eb6943dbbf..a9a34de126df 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -30,13 +30,11 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body: Volume = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, - usageThreshold: 107374182400 + usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -45,7 +43,7 @@ async function volumesCreateOrUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts index 96063c59f5fd..a4d66f403658 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDeleteReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts index 75a4bce9ad86..f66ad69f0fc2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDelete() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts index 084aad858a59..f5a6a2a32128 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesFinalizeRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts index 9cd849ab90d0..148073a4ea21 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesGet() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts index 5bc7dd0c12f5..2c3af3ef5a2a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GetGroupIdListForLdapUserRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = @@ -39,7 +39,7 @@ async function getGroupIdListForUser() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts index 25b4ea9e10d7..8d4ffdb22d84 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumesListReplications() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts index 1e6320a9ad05..1897922b20bd 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesList() { for await (let item of client.volumes.list( resourceGroupName, accountName, - poolName + poolName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts index e9bcd70a6317..27f44c2d5091 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: PoolChangeRequest = { newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts index c363a99c4af3..693dd0710a7d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesPopulateAvailabilityZones() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts index 2b8e869cc66a..212d4a1b7728 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReInitializeReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts similarity index 90% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts index 74f3243493aa..afdd687cbe2c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ReestablishReplicationRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesReestablishReplication() { const volumeName = "volume1"; const body: ReestablishReplicationRequest = { sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function volumesReestablishReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts index 3c278a1211af..8ee2bb638298 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts @@ -11,7 +11,7 @@ import { RelocateVolumeRequest, VolumesRelocateOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesRelocate() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts index 703a80c6a2cc..841b6e9cb282 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReplicationStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts index bfdd4ad6ab8a..12a35039d3f2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResetCifsPassword() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts index 819e72b259cc..bbefe158f37e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResyncReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts index 971c433827cb..b88b8b4b77ba 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRevertRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts index be658f3923d5..bf4f444ee1fa 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesRevert() { const volumeName = "volume1"; const body: VolumeRevert = { snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesRevert() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts similarity index 75% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts index 1b1facca9524..9f6d327bb77a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -28,17 +28,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body: VolumePatch = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false - } - }, - location: "eastus" - }; + const body: VolumePatch = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( @@ -46,7 +36,7 @@ async function volumesUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/tsconfig.json b/sdk/netapp/arm-netapp/samples/v20/typescript/tsconfig.json similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/tsconfig.json rename to sdk/netapp/arm-netapp/samples/v20/typescript/tsconfig.json diff --git a/sdk/netapp/arm-netapp/src/lroImpl.ts b/sdk/netapp/arm-netapp/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/netapp/arm-netapp/src/lroImpl.ts +++ b/sdk/netapp/arm-netapp/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index a4e5526d38de..24d5010dd415 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -98,6 +98,55 @@ export interface LogSpecification { displayName?: string; } +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + /** Resource name availability request content. */ export interface ResourceNameAvailabilityRequest { /** Resource name to verify. */ @@ -182,14 +231,6 @@ export interface SystemData { lastModifiedAt?: Date; } -/** List of regionInfo resources */ -export interface RegionInfosList { - /** A list of regionInfo resources */ - value?: RegionInfoResource[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - /** Provides region specific information. */ export interface RegionInfo { /** Provides storage to network proximity information in the region. */ @@ -205,55 +246,6 @@ export interface RegionInfoAvailabilityZoneMappingsItem { isAvailable?: boolean; } -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} - /** Network sibling set query. */ export interface QueryNetworkSiblingSetRequest { /** Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ @@ -300,7 +292,7 @@ export interface UpdateNetworkSiblingSetRequest { subnetId: string; /** Network sibling set state Id identifying the current state of the sibling set. */ networkSiblingSetStateId: string; - /** Network features available to the volume */ + /** Network features available to the volume, some such */ networkFeatures: NetworkFeatures; } @@ -490,35 +482,6 @@ export interface NetAppAccountPatch { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly disableShowmount?: boolean; - /** Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. */ - nfsV4IDDomain?: string; - /** - * This will have true value only if account is Multiple AD enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isMultiAdEnabled?: boolean; -} - -/** An error response from the service. */ -export interface CloudError { - /** Cloud error body. */ - error?: CloudErrorBody; -} - -/** An error response from the service. */ -export interface CloudErrorBody { - /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ - code?: string; - /** A message describing the error, intended to be suitable for display in a user interface. */ - message?: string; -} - -/** Encryption migration request */ -export interface EncryptionMigrationRequest { - /** Identifier for the virtual network */ - virtualNetworkId: string; - /** Identifier of the private endpoint to reach the Azure Key Vault */ - privateEndpointId: string; } /** List of capacity pool resources */ @@ -626,8 +589,6 @@ export interface MountTargetProperties { /** DataProtection type volumes include an object containing details of the replication */ export interface VolumePropertiesDataProtection { - /** Backup Properties */ - backup?: VolumeBackupProperties; /** Replication properties */ replication?: ReplicationObject; /** Snapshot properties. */ @@ -636,18 +597,6 @@ export interface VolumePropertiesDataProtection { volumeRelocation?: VolumeRelocationProperties; } -/** Volume Backup Properties */ -export interface VolumeBackupProperties { - /** Backup Policy Resource ID */ - backupPolicyId?: string; - /** Policy Enforced */ - policyEnforced?: boolean; - /** Backup Enabled */ - backupEnabled?: boolean; - /** Backup Vault Resource ID */ - backupVaultId?: string; -} - /** Replication properties */ export interface ReplicationObject { /** @@ -659,24 +608,12 @@ export interface ReplicationObject { endpointType?: EndpointType; /** Schedule */ replicationSchedule?: ReplicationSchedule; - /** The resource ID of the remote volume. Required for cross region and cross zone replication */ + /** The resource ID of the remote volume. */ remoteVolumeResourceId: string; - /** The full path to a volume that is to be migrated into ANF. Required for Migration volumes */ - remotePath?: RemotePath; /** The remote region for the other end of the Volume Replication. */ remoteVolumeRegion?: string; } -/** The full path to a volume that is to be migrated into ANF. Required for Migration volumes */ -export interface RemotePath { - /** The Path to a Ontap Host */ - externalHostName: string; - /** The name of a server on the Ontap Host */ - serverName: string; - /** The name of a volume on the server */ - volumeName: string; -} - /** Volume Snapshot Properties */ export interface VolumeSnapshotProperties { /** Snapshot Policy ResourceId */ @@ -768,8 +705,6 @@ export interface VolumePatchPropertiesExportPolicy { /** DataProtection type volumes include an object containing details of the replication */ export interface VolumePatchPropertiesDataProtection { - /** Backup Properties */ - backup?: VolumeBackupProperties; /** Snapshot properties. */ snapshot?: VolumeSnapshotProperties; } @@ -976,55 +911,6 @@ export interface SnapshotPolicyVolumeList { value?: Volume[]; } -/** Backup status */ -export interface BackupStatus { - /** - * Backup health status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly healthy?: boolean; - /** - * Status of the backup mirror relationship - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly relationshipStatus?: RelationshipStatus; - /** - * The status of the backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mirrorState?: MirrorState; - /** - * Reason for the unhealthy backup relationship - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unhealthyReason?: string; - /** - * Displays error message if the backup is in an error state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; - /** - * Displays the last transfer size - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastTransferSize?: number; - /** - * Displays the last transfer type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastTransferType?: string; - /** - * Displays the total bytes transferred - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly totalTransferBytes?: number; - /** - * Displays the total number of bytes transferred for the ongoing operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly transferProgressBytes?: number; -} - /** Restore status */ export interface RestoreStatus { /** @@ -1059,20 +945,6 @@ export interface RestoreStatus { readonly totalTransferBytes?: number; } -/** List of Backups */ -export interface BackupsList { - /** A list of Backups */ - value?: Backup[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - -/** Backup patch */ -export interface BackupPatch { - /** Label for backup */ - label?: string; -} - /** List of Backup Policies */ export interface BackupPoliciesList { /** A list of backup policies */ @@ -1312,7 +1184,7 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountTargets?: MountTargetProperties[]; - /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone */ + /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ volumeType?: string; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePropertiesDataProtection; @@ -1423,11 +1295,6 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originatingResourceId?: string; - /** - * Space shared by short term clone volume with parent volume in bytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inheritedSizeInBytes?: number; } /** List of Subvolumes */ @@ -1485,36 +1352,6 @@ export interface SubvolumeModel { provisioningState?: string; } -/** List of Backup Vaults */ -export interface BackupVaultsList { - /** A list of Backup Vaults */ - value?: BackupVault[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - -/** Backup Vault information */ -export interface BackupVaultPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** Restore payload for Single File Backup Restore */ -export interface BackupRestoreFiles { - /** List of files to be restored */ - fileList: string[]; - /** Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default */ - restoreFilePath?: string; - /** Resource Id of the destination volume on which the files need to be restored */ - destinationVolumeId: string; -} - -/** Migrate Backups Request */ -export interface BackupsMigrationRequest { - /** The ResourceId of the Backup Vault */ - backupVaultId: string; -} - /** Identity for the resource. */ export interface ResourceIdentity { /** @@ -1606,6 +1443,20 @@ export interface SnapshotPolicyDetails { readonly provisioningState?: string; } +/** An error response from the service. */ +export interface CloudError { + /** Cloud error body. */ + error?: CloudErrorBody; +} + +/** An error response from the service. */ +export interface CloudErrorBody { + /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ + code?: string; + /** A message describing the error, intended to be suitable for display in a user interface. */ + message?: string; +} + /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} @@ -1631,14 +1482,6 @@ export interface SubscriptionQuotaItem extends ProxyResource { readonly default?: number; } -/** Information regarding regionInfo Item. */ -export interface RegionInfoResource extends ProxyResource { - /** Provides storage to network proximity information in the region. */ - storageToNetworkProximity?: RegionStorageToNetworkProximity; - /** Provides logical availability zone mappings for the subscription for a region. */ - availabilityZoneMappings?: RegionInfoAvailabilityZoneMappingsItem[]; -} - /** Snapshot of a Volume */ export interface Snapshot extends ProxyResource { /** Resource location */ @@ -1660,53 +1503,6 @@ export interface Snapshot extends ProxyResource { readonly provisioningState?: string; } -/** Backup under a Backup Vault */ -export interface Backup extends ProxyResource { - /** - * UUID v4 used to identify the Backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupId?: string; - /** - * The creation date of the backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationDate?: Date; - /** - * Azure lifecycle management - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * Size of backup in bytes - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly size?: number; - /** Label for backup */ - label?: string; - /** - * Type of backup Manual or Scheduled - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupType?: BackupType; - /** - * Failure reason - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failureReason?: string; - /** ResourceId used to identify the Volume */ - volumeResourceId: string; - /** Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups */ - useExistingSnapshot?: boolean; - /** The name of the snapshot */ - snapshotName?: string; - /** - * ResourceId used to identify the backup policy - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupPolicyResourceId?: string; -} - /** Subvolume Information properties */ export interface SubvolumeInfo extends ProxyResource { /** Path to the subvolume */ @@ -1745,13 +1541,6 @@ export interface NetAppAccount extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly disableShowmount?: boolean; - /** Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. */ - nfsV4IDDomain?: string; - /** - * This will have true value only if account is Multiple AD enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isMultiAdEnabled?: boolean; } /** Capacity pool resource */ @@ -1852,7 +1641,7 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountTargets?: MountTargetProperties[]; - /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone */ + /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ volumeType?: string; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePropertiesDataProtection; @@ -1963,11 +1752,6 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originatingResourceId?: string; - /** - * Space shared by short term clone volume with parent volume in bytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inheritedSizeInBytes?: number; } /** Snapshot policy information */ @@ -2046,25 +1830,11 @@ export interface VolumeQuotaRule extends TrackedResource { quotaTarget?: string; } -/** Backup Vault information */ -export interface BackupVault extends TrackedResource { - /** - * Azure lifecycle management - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - /** Defines headers for NetAppResource_updateNetworkSiblingSet operation. */ export interface NetAppResourceUpdateNetworkSiblingSetHeaders { location?: string; } -/** Defines headers for Accounts_migrateEncryptionKey operation. */ -export interface AccountsMigrateEncryptionKeyHeaders { - location?: string; -} - /** Defines headers for Volumes_populateAvailabilityZone operation. */ export interface VolumesPopulateAvailabilityZoneHeaders { location?: string; @@ -2075,11 +1845,6 @@ export interface VolumesResetCifsPasswordHeaders { location?: string; } -/** Defines headers for Volumes_splitCloneFromParent operation. */ -export interface VolumesSplitCloneFromParentHeaders { - location?: string; -} - /** Defines headers for Volumes_breakFileLocks operation. */ export interface VolumesBreakFileLocksHeaders { location?: string; @@ -2090,50 +1855,10 @@ export interface VolumesListGetGroupIdListForLdapUserHeaders { location?: string; } -/** Defines headers for Backups_update operation. */ -export interface BackupsUpdateHeaders { - location?: string; -} - -/** Defines headers for Backups_delete operation. */ -export interface BackupsDeleteHeaders { - location?: string; -} - -/** Defines headers for AccountBackups_delete operation. */ -export interface AccountBackupsDeleteHeaders { - location?: string; -} - -/** Defines headers for BackupVaults_update operation. */ -export interface BackupVaultsUpdateHeaders { - location?: string; -} - -/** Defines headers for BackupVaults_delete operation. */ -export interface BackupVaultsDeleteHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderBackupVault_restoreFiles operation. */ -export interface BackupsUnderBackupVaultRestoreFilesHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderVolume_migrateBackups operation. */ -export interface BackupsUnderVolumeMigrateBackupsHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderAccount_migrateBackups operation. */ -export interface BackupsUnderAccountMigrateBackupsHeaders { - location?: string; -} - /** Known values of {@link MetricAggregationType} that the service accepts. */ export enum KnownMetricAggregationType { /** Average */ - Average = "Average" + Average = "Average", } /** @@ -2154,7 +1879,7 @@ export enum KnownCheckNameResourceTypes { /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes */ MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots */ - MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" + MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots", } /** @@ -2174,7 +1899,7 @@ export enum KnownInAvailabilityReasonType { /** Invalid */ Invalid = "Invalid", /** AlreadyExists */ - AlreadyExists = "AlreadyExists" + AlreadyExists = "AlreadyExists", } /** @@ -2196,7 +1921,7 @@ export enum KnownCheckQuotaNameResourceTypes { /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes */ MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots */ - MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" + MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots", } /** @@ -2220,7 +1945,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -2252,7 +1977,7 @@ export enum KnownRegionStorageToNetworkProximity { /** Standard T2 and AcrossT2 network connectivity. */ T2AndAcrossT2 = "T2AndAcrossT2", /** Standard T1, T2 and AcrossT2 network connectivity. */ - T1AndT2AndAcrossT2 = "T1AndT2AndAcrossT2" + T1AndT2AndAcrossT2 = "T1AndT2AndAcrossT2", } /** @@ -2280,7 +2005,7 @@ export enum KnownNetworkFeatures { /** Updating from Basic to Standard network features. */ BasicStandard = "Basic_Standard", /** Updating from Standard to Basic network features. */ - StandardBasic = "Standard_Basic" + StandardBasic = "Standard_Basic", } /** @@ -2304,7 +2029,7 @@ export enum KnownNetworkSiblingSetProvisioningState { /** Canceled */ Canceled = "Canceled", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2330,7 +2055,7 @@ export enum KnownActiveDirectoryStatus { /** Error with the Active Directory */ Error = "Error", /** Active Directory Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2351,7 +2076,7 @@ export enum KnownKeySource { /** Microsoft-managed key encryption */ MicrosoftNetApp = "Microsoft.NetApp", /** Customer-managed key encryption */ - MicrosoftKeyVault = "Microsoft.KeyVault" + MicrosoftKeyVault = "Microsoft.KeyVault", } /** @@ -2375,7 +2100,7 @@ export enum KnownKeyVaultStatus { /** Error with the KeyVault connection */ Error = "Error", /** KeyVault connection Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2400,7 +2125,7 @@ export enum KnownManagedServiceIdentityType { /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", } /** @@ -2424,7 +2149,7 @@ export enum KnownServiceLevel { /** Ultra service level */ Ultra = "Ultra", /** Zone redundant storage service level */ - StandardZRS = "StandardZRS" + StandardZRS = "StandardZRS", } /** @@ -2444,7 +2169,7 @@ export enum KnownQosType { /** qos type Auto */ Auto = "Auto", /** qos type Manual */ - Manual = "Manual" + Manual = "Manual", } /** @@ -2462,7 +2187,7 @@ export enum KnownEncryptionType { /** EncryptionType Single, volumes will use single encryption at rest */ Single = "Single", /** EncryptionType Double, volumes will use double encryption at rest */ - Double = "Double" + Double = "Double", } /** @@ -2480,7 +2205,7 @@ export enum KnownChownMode { /** Restricted */ Restricted = "Restricted", /** Unrestricted */ - Unrestricted = "Unrestricted" + Unrestricted = "Unrestricted", } /** @@ -2502,7 +2227,7 @@ export enum KnownVolumeStorageToNetworkProximity { /** Standard T2 storage to network connectivity. */ T2 = "T2", /** Standard AcrossT2 storage to network connectivity. */ - AcrossT2 = "AcrossT2" + AcrossT2 = "AcrossT2", } /** @@ -2522,7 +2247,7 @@ export enum KnownEndpointType { /** Src */ Src = "src", /** Dst */ - Dst = "dst" + Dst = "dst", } /** @@ -2542,7 +2267,7 @@ export enum KnownReplicationSchedule { /** Hourly */ Hourly = "hourly", /** Daily */ - Daily = "daily" + Daily = "daily", } /** @@ -2561,7 +2286,7 @@ export enum KnownSecurityStyle { /** Ntfs */ Ntfs = "ntfs", /** Unix */ - Unix = "unix" + Unix = "unix", } /** @@ -2579,7 +2304,7 @@ export enum KnownSmbAccessBasedEnumeration { /** smbAccessBasedEnumeration share setting is disabled */ Disabled = "Disabled", /** smbAccessBasedEnumeration share setting is enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -2597,7 +2322,7 @@ export enum KnownSmbNonBrowsable { /** smbNonBrowsable share setting is disabled */ Disabled = "Disabled", /** smbNonBrowsable share setting is enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -2615,7 +2340,7 @@ export enum KnownEncryptionKeySource { /** Microsoft-managed key encryption */ MicrosoftNetApp = "Microsoft.NetApp", /** Customer-managed key encryption */ - MicrosoftKeyVault = "Microsoft.KeyVault" + MicrosoftKeyVault = "Microsoft.KeyVault", } /** @@ -2635,7 +2360,7 @@ export enum KnownCoolAccessRetrievalPolicy { /** OnRead */ OnRead = "OnRead", /** Never */ - Never = "Never" + Never = "Never", } /** @@ -2654,7 +2379,7 @@ export enum KnownFileAccessLogs { /** fileAccessLogs are enabled */ Enabled = "Enabled", /** fileAccessLogs are not enabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2672,7 +2397,7 @@ export enum KnownAvsDataStore { /** avsDataStore is enabled */ Enabled = "Enabled", /** avsDataStore is disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2690,7 +2415,7 @@ export enum KnownEnableSubvolumes { /** subvolumes are enabled */ Enabled = "Enabled", /** subvolumes are not enabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2708,7 +2433,11 @@ export enum KnownRelationshipStatus { /** Idle */ Idle = "Idle", /** Transferring */ - Transferring = "Transferring" + Transferring = "Transferring", + /** Failed */ + Failed = "Failed", + /** Unknown */ + Unknown = "Unknown", } /** @@ -2717,7 +2446,9 @@ export enum KnownRelationshipStatus { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Idle** \ - * **Transferring** + * **Transferring** \ + * **Failed** \ + * **Unknown** */ export type RelationshipStatus = string; @@ -2728,7 +2459,7 @@ export enum KnownMirrorState { /** Mirrored */ Mirrored = "Mirrored", /** Broken */ - Broken = "Broken" + Broken = "Broken", } /** @@ -2742,24 +2473,6 @@ export enum KnownMirrorState { */ export type MirrorState = string; -/** Known values of {@link BackupType} that the service accepts. */ -export enum KnownBackupType { - /** Manual backup */ - Manual = "Manual", - /** Scheduled backup */ - Scheduled = "Scheduled" -} - -/** - * Defines values for BackupType. \ - * {@link KnownBackupType} can be used interchangeably with BackupType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Manual**: Manual backup \ - * **Scheduled**: Scheduled backup - */ -export type BackupType = string; - /** Known values of {@link Type} that the service accepts. */ export enum KnownType { /** Default user quota */ @@ -2769,7 +2482,7 @@ export enum KnownType { /** Individual user quota */ IndividualUserQuota = "IndividualUserQuota", /** Individual group quota */ - IndividualGroupQuota = "IndividualGroupQuota" + IndividualGroupQuota = "IndividualGroupQuota", } /** @@ -2789,7 +2502,7 @@ export enum KnownApplicationType { /** SAPHana */ SAPHana = "SAP-HANA", /** Oracle */ - Oracle = "ORACLE" + Oracle = "ORACLE", } /** @@ -2823,21 +2536,24 @@ export interface NetAppResourceCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type NetAppResourceCheckNameAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckNameAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceCheckFilePathAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkFilePathAvailability operation. */ -export type NetAppResourceCheckFilePathAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckFilePathAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceCheckQuotaAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkQuotaAvailability operation. */ -export type NetAppResourceCheckQuotaAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckQuotaAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceQueryRegionInfoOptionalParams @@ -2879,27 +2595,6 @@ export interface NetAppResourceQuotaLimitsGetOptionalParams /** Contains response data for the get operation. */ export type NetAppResourceQuotaLimitsGetResponse = SubscriptionQuotaItem; -/** Optional parameters. */ -export interface NetAppResourceRegionInfosListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NetAppResourceRegionInfosListResponse = RegionInfosList; - -/** Optional parameters. */ -export interface NetAppResourceRegionInfosGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type NetAppResourceRegionInfosGetResponse = RegionInfoResource; - -/** Optional parameters. */ -export interface NetAppResourceRegionInfosListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type NetAppResourceRegionInfosListNextResponse = RegionInfosList; - /** Optional parameters. */ export interface AccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} @@ -2963,20 +2658,6 @@ export interface AccountsRenewCredentialsOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface AccountsMigrateEncryptionKeyOptionalParams - extends coreClient.OperationOptions { - /** The required parameters to perform encryption migration. */ - body?: EncryptionMigrationRequest; - /** 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 migrateEncryptionKey operation. */ -export type AccountsMigrateEncryptionKeyResponse = AccountsMigrateEncryptionKeyHeaders; - /** Optional parameters. */ export interface AccountsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} @@ -3122,18 +2803,6 @@ export interface VolumesResetCifsPasswordOptionalParams /** Contains response data for the resetCifsPassword operation. */ export type VolumesResetCifsPasswordResponse = VolumesResetCifsPasswordHeaders; -/** Optional parameters. */ -export interface VolumesSplitCloneFromParentOptionalParams - 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 splitCloneFromParent operation. */ -export type VolumesSplitCloneFromParentResponse = VolumesSplitCloneFromParentHeaders; - /** Optional parameters. */ export interface VolumesBreakFileLocksOptionalParams extends coreClient.OperationOptions { @@ -3155,7 +2824,8 @@ export interface VolumesListGetGroupIdListForLdapUserOptionalParams } /** Contains response data for the listGetGroupIdListForLdapUser operation. */ -export type VolumesListGetGroupIdListForLdapUserResponse = GetGroupIdListForLdapUserResponse; +export type VolumesListGetGroupIdListForLdapUserResponse = + GetGroupIdListForLdapUserResponse; /** Optional parameters. */ export interface VolumesBreakReplicationOptionalParams @@ -3377,13 +3047,6 @@ export interface SnapshotPoliciesListVolumesOptionalParams /** Contains response data for the listVolumes operation. */ export type SnapshotPoliciesListVolumesResponse = SnapshotPolicyVolumeList; -/** Optional parameters. */ -export interface BackupsGetLatestStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getLatestStatus operation. */ -export type BackupsGetLatestStatusResponse = BackupStatus; - /** Optional parameters. */ export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient.OperationOptions {} @@ -3391,96 +3054,6 @@ export interface BackupsGetVolumeRestoreStatusOptionalParams /** Contains response data for the getVolumeRestoreStatus operation. */ export type BackupsGetVolumeRestoreStatusResponse = RestoreStatus; -/** Optional parameters. */ -export interface BackupsListByVaultOptionalParams - extends coreClient.OperationOptions { - /** An option to specify the VolumeResourceId. If present, then only returns the backups under the specified volume */ - filter?: string; -} - -/** Contains response data for the listByVault operation. */ -export type BackupsListByVaultResponse = BackupsList; - -/** Optional parameters. */ -export interface BackupsGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type BackupsGetResponse = Backup; - -/** Optional parameters. */ -export interface BackupsCreateOptionalParams - 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 create operation. */ -export type BackupsCreateResponse = Backup; - -/** Optional parameters. */ -export interface BackupsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Backup object supplied in the body of the operation. */ - body?: BackupPatch; - /** 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 BackupsUpdateResponse = Backup; - -/** Optional parameters. */ -export interface BackupsDeleteOptionalParams - 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 delete operation. */ -export type BackupsDeleteResponse = BackupsDeleteHeaders; - -/** Optional parameters. */ -export interface BackupsListByVaultNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByVaultNext operation. */ -export type BackupsListByVaultNextResponse = BackupsList; - -/** Optional parameters. */ -export interface AccountBackupsListByNetAppAccountOptionalParams - extends coreClient.OperationOptions { - /** An option to specify whether to return backups only from deleted volumes */ - includeOnlyBackupsFromDeletedVolumes?: string; -} - -/** Contains response data for the listByNetAppAccount operation. */ -export type AccountBackupsListByNetAppAccountResponse = BackupsList; - -/** Optional parameters. */ -export interface AccountBackupsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AccountBackupsGetResponse = Backup; - -/** Optional parameters. */ -export interface AccountBackupsDeleteOptionalParams - 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 delete operation. */ -export type AccountBackupsDeleteResponse = AccountBackupsDeleteHeaders; - /** Optional parameters. */ export interface BackupPoliciesListOptionalParams extends coreClient.OperationOptions {} @@ -3676,99 +3249,6 @@ export interface SubvolumesListByVolumeNextOptionalParams /** Contains response data for the listByVolumeNext operation. */ export type SubvolumesListByVolumeNextResponse = SubvolumesList; -/** Optional parameters. */ -export interface BackupVaultsListByNetAppAccountOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByNetAppAccount operation. */ -export type BackupVaultsListByNetAppAccountResponse = BackupVaultsList; - -/** Optional parameters. */ -export interface BackupVaultsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type BackupVaultsGetResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsCreateOrUpdateOptionalParams - 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 BackupVaultsCreateOrUpdateResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsUpdateOptionalParams - 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 BackupVaultsUpdateResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsDeleteOptionalParams - 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 delete operation. */ -export type BackupVaultsDeleteResponse = BackupVaultsDeleteHeaders; - -/** Optional parameters. */ -export interface BackupVaultsListByNetAppAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByNetAppAccountNext operation. */ -export type BackupVaultsListByNetAppAccountNextResponse = BackupVaultsList; - -/** Optional parameters. */ -export interface BackupsUnderBackupVaultRestoreFilesOptionalParams - 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 restoreFiles operation. */ -export type BackupsUnderBackupVaultRestoreFilesResponse = BackupsUnderBackupVaultRestoreFilesHeaders; - -/** Optional parameters. */ -export interface BackupsUnderVolumeMigrateBackupsOptionalParams - 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 migrateBackups operation. */ -export type BackupsUnderVolumeMigrateBackupsResponse = BackupsUnderVolumeMigrateBackupsHeaders; - -/** Optional parameters. */ -export interface BackupsUnderAccountMigrateBackupsOptionalParams - 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 migrateBackups operation. */ -export type BackupsUnderAccountMigrateBackupsResponse = BackupsUnderAccountMigrateBackupsHeaders; - /** Optional parameters. */ export interface NetAppManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index ae8cee007552..791e8a28db5b 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -20,13 +20,13 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } - } - } - } + className: "Operation", + }, + }, + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -37,31 +37,31 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, serviceSpecification: { serializedName: "properties.serviceSpecification", type: { name: "Composite", - className: "ServiceSpecification" - } - } - } - } + className: "ServiceSpecification", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -72,29 +72,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ServiceSpecification: coreClient.CompositeMapper = { @@ -109,10 +109,10 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricSpecification" - } - } - } + className: "MetricSpecification", + }, + }, + }, }, logSpecifications: { serializedName: "logSpecifications", @@ -121,13 +121,13 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LogSpecification" - } - } - } - } - } - } + className: "LogSpecification", + }, + }, + }, + }, + }, + }, }; export const MetricSpecification: coreClient.CompositeMapper = { @@ -138,26 +138,26 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, displayDescription: { serializedName: "displayDescription", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, supportedAggregationTypes: { serializedName: "supportedAggregationTypes", @@ -165,10 +165,10 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, supportedTimeGrainTypes: { serializedName: "supportedTimeGrainTypes", @@ -176,34 +176,34 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, internalMetricName: { serializedName: "internalMetricName", type: { - name: "String" - } + name: "String", + }, }, enableRegionalMdmAccount: { serializedName: "enableRegionalMdmAccount", type: { - name: "Boolean" - } + name: "Boolean", + }, }, sourceMdmAccount: { serializedName: "sourceMdmAccount", type: { - name: "String" - } + name: "String", + }, }, sourceMdmNamespace: { serializedName: "sourceMdmNamespace", type: { - name: "String" - } + name: "String", + }, }, dimensions: { serializedName: "dimensions", @@ -212,43 +212,43 @@ export const MetricSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Dimension" - } - } - } + className: "Dimension", + }, + }, + }, }, aggregationType: { serializedName: "aggregationType", type: { - name: "String" - } + name: "String", + }, }, fillGapWithZero: { serializedName: "fillGapWithZero", type: { - name: "Boolean" - } + name: "Boolean", + }, }, category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, resourceIdDimensionNameOverride: { serializedName: "resourceIdDimensionNameOverride", type: { - name: "String" - } + name: "String", + }, }, isInternal: { serializedName: "isInternal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Dimension: coreClient.CompositeMapper = { @@ -259,17 +259,17 @@ export const Dimension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LogSpecification: coreClient.CompositeMapper = { @@ -280,17 +280,113 @@ export const LogSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ResourceNameAvailabilityRequest: coreClient.CompositeMapper = { @@ -302,25 +398,25 @@ export const ResourceNameAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, typeParam: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceGroup: { serializedName: "resourceGroup", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckAvailabilityResponse: coreClient.CompositeMapper = { @@ -331,23 +427,23 @@ export const CheckAvailabilityResponse: coreClient.CompositeMapper = { isAvailable: { serializedName: "isAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FilePathAvailabilityRequest: coreClient.CompositeMapper = { @@ -359,18 +455,18 @@ export const FilePathAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuotaAvailabilityRequest: coreClient.CompositeMapper = { @@ -382,25 +478,25 @@ export const QuotaAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, typeParam: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceGroup: { serializedName: "resourceGroup", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionQuotaItemList: coreClient.CompositeMapper = { @@ -415,13 +511,13 @@ export const SubscriptionQuotaItemList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubscriptionQuotaItem" - } - } - } - } - } - } + className: "SubscriptionQuotaItem", + }, + }, + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -433,32 +529,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -469,68 +565,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } -}; - -export const RegionInfosList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfosList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionInfoResource" - } - } - } + name: "DateTime", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; export const RegionInfo: coreClient.CompositeMapper = { @@ -541,8 +610,8 @@ export const RegionInfo: coreClient.CompositeMapper = { storageToNetworkProximity: { serializedName: "storageToNetworkProximity", type: { - name: "String" - } + name: "String", + }, }, availabilityZoneMappings: { serializedName: "availabilityZoneMappings", @@ -551,131 +620,36 @@ export const RegionInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem" - } - } - } - } - } - } -}; - -export const RegionInfoAvailabilityZoneMappingsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem", - modelProperties: { - availabilityZone: { - serializedName: "availabilityZone", - type: { - name: "String" - } - }, - isAvailable: { - serializedName: "isAvailable", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - } -}; - -export const ErrorDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String" - } - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } + className: "RegionInfoAvailabilityZoneMappingsItem", + }, + }, + }, }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + }, + }, }; -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } +export const RegionInfoAvailabilityZoneMappingsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RegionInfoAvailabilityZoneMappingsItem", + modelProperties: { + availabilityZone: { + serializedName: "availabilityZone", + type: { + name: "String", + }, + }, + isAvailable: { + serializedName: "isAvailable", + type: { + name: "Boolean", + }, + }, }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; + }, + }; export const QueryNetworkSiblingSetRequest: coreClient.CompositeMapper = { type: { @@ -685,26 +659,26 @@ export const QueryNetworkSiblingSetRequest: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkSiblingSet: coreClient.CompositeMapper = { @@ -715,41 +689,41 @@ export const NetworkSiblingSet: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetStateId: { serializedName: "networkSiblingSetStateId", type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "networkFeatures", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nicInfoList: { serializedName: "nicInfoList", @@ -758,13 +732,13 @@ export const NetworkSiblingSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NicInfo" - } - } - } - } - } - } + className: "NicInfo", + }, + }, + }, + }, + }, + }, }; export const NicInfo: coreClient.CompositeMapper = { @@ -776,8 +750,8 @@ export const NicInfo: coreClient.CompositeMapper = { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeResourceIds: { serializedName: "volumeResourceIds", @@ -785,13 +759,13 @@ export const NicInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const UpdateNetworkSiblingSetRequest: coreClient.CompositeMapper = { @@ -802,41 +776,41 @@ export const UpdateNetworkSiblingSetRequest: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetStateId: { serializedName: "networkSiblingSetStateId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "networkFeatures", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetAppAccountList: coreClient.CompositeMapper = { @@ -851,19 +825,19 @@ export const NetAppAccountList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetAppAccount" - } - } - } + className: "NetAppAccount", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ActiveDirectory: coreClient.CompositeMapper = { @@ -875,73 +849,73 @@ export const ActiveDirectory: coreClient.CompositeMapper = { serializedName: "activeDirectoryId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, username: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { constraints: { - MaxLength: 64 + MaxLength: 64, }, serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, domain: { serializedName: "domain", type: { - name: "String" - } + name: "String", + }, }, dns: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$", + ), }, serializedName: "dns", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusDetails: { serializedName: "statusDetails", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerName: { serializedName: "smbServerName", type: { - name: "String" - } + name: "String", + }, }, organizationalUnit: { defaultValue: "CN=Computers", serializedName: "organizationalUnit", type: { - name: "String" - } + name: "String", + }, }, site: { serializedName: "site", type: { - name: "String" - } + name: "String", + }, }, backupOperators: { serializedName: "backupOperators", @@ -950,13 +924,13 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, administrators: { serializedName: "administrators", @@ -965,56 +939,56 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kdcIP: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$", + ), }, serializedName: "kdcIP", type: { - name: "String" - } + name: "String", + }, }, adName: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "adName", type: { - name: "String" - } + name: "String", + }, }, serverRootCACertificate: { constraints: { MaxLength: 10240, - MinLength: 1 + MinLength: 1, }, serializedName: "serverRootCACertificate", type: { - name: "String" - } + name: "String", + }, }, aesEncryption: { serializedName: "aesEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ldapSigning: { serializedName: "ldapSigning", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityOperators: { serializedName: "securityOperators", @@ -1023,53 +997,53 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ldapOverTLS: { serializedName: "ldapOverTLS", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowLocalNfsUsersWithLdap: { serializedName: "allowLocalNfsUsersWithLdap", type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptDCConnections: { serializedName: "encryptDCConnections", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ldapSearchScope: { serializedName: "ldapSearchScope", type: { name: "Composite", - className: "LdapSearchScopeOpt" - } + className: "LdapSearchScopeOpt", + }, }, preferredServersForLdapClient: { constraints: { Pattern: new RegExp( - "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$" + "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$", ), - MaxLength: 32 + MaxLength: 32, }, serializedName: "preferredServersForLdapClient", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LdapSearchScopeOpt: coreClient.CompositeMapper = { @@ -1079,33 +1053,33 @@ export const LdapSearchScopeOpt: coreClient.CompositeMapper = { modelProperties: { userDN: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "userDN", type: { - name: "String" - } + name: "String", + }, }, groupDN: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "groupDN", type: { - name: "String" - } + name: "String", + }, }, groupMembershipFilter: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "groupMembershipFilter", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccountEncryption: coreClient.CompositeMapper = { @@ -1117,25 +1091,25 @@ export const AccountEncryption: coreClient.CompositeMapper = { defaultValue: "Microsoft.NetApp", serializedName: "keySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultProperties: { serializedName: "keyVaultProperties", type: { name: "Composite", - className: "KeyVaultProperties" - } + className: "KeyVaultProperties", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "EncryptionIdentity" - } - } - } - } + className: "EncryptionIdentity", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -1146,47 +1120,47 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyVaultId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "keyVaultId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultUri: { serializedName: "keyVaultUri", required: true, type: { - name: "String" - } + name: "String", + }, }, keyName: { serializedName: "keyName", required: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultResourceId: { serializedName: "keyVaultResourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionIdentity: coreClient.CompositeMapper = { @@ -1198,17 +1172,17 @@ export const EncryptionIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentity: { serializedName: "userAssignedIdentity", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedServiceIdentity: coreClient.CompositeMapper = { @@ -1220,34 +1194,34 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentity: coreClient.CompositeMapper = { @@ -1259,18 +1233,18 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "Uuid" - } - } - } - } + name: "Uuid", + }, + }, + }, + }, }; export const NetAppAccountPatch: coreClient.CompositeMapper = { @@ -1281,50 +1255,50 @@ export const NetAppAccountPatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedServiceIdentity" - } + className: "ManagedServiceIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, activeDirectories: { serializedName: "properties.activeDirectories", @@ -1333,107 +1307,28 @@ export const NetAppAccountPatch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ActiveDirectory" - } - } - } + className: "ActiveDirectory", + }, + }, + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "AccountEncryption" - } + className: "AccountEncryption", + }, }, disableShowmount: { serializedName: "properties.disableShowmount", readOnly: true, nullable: true, type: { - name: "Boolean" - } - }, - nfsV4IDDomain: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"), - MaxLength: 255 + name: "Boolean", }, - serializedName: "properties.nfsV4IDDomain", - nullable: true, - type: { - name: "String" - } - }, - isMultiAdEnabled: { - serializedName: "properties.isMultiAdEnabled", - readOnly: true, - nullable: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const CloudError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudError", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "CloudErrorBody" - } - } - } - } -}; - -export const CloudErrorBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudErrorBody", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const EncryptionMigrationRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EncryptionMigrationRequest", - modelProperties: { - virtualNetworkId: { - serializedName: "virtualNetworkId", - required: true, - type: { - name: "String" - } }, - privateEndpointId: { - serializedName: "privateEndpointId", - required: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const CapacityPoolList: coreClient.CompositeMapper = { @@ -1448,19 +1343,19 @@ export const CapacityPoolList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityPool" - } - } - } + className: "CapacityPool", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CapacityPoolPatch: coreClient.CompositeMapper = { @@ -1471,58 +1366,58 @@ export const CapacityPoolPatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, size: { defaultValue: 4398046511104, serializedName: "properties.size", type: { - name: "Number" - } + name: "Number", + }, }, qosType: { serializedName: "properties.qosType", type: { - name: "String" - } + name: "String", + }, }, coolAccess: { serializedName: "properties.coolAccess", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VolumeList: coreClient.CompositeMapper = { @@ -1537,19 +1432,19 @@ export const VolumeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Volume" - } - } - } + className: "Volume", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePropertiesExportPolicy: coreClient.CompositeMapper = { @@ -1564,13 +1459,13 @@ export const VolumePropertiesExportPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExportPolicyRule" - } - } - } - } - } - } + className: "ExportPolicyRule", + }, + }, + }, + }, + }, + }, }; export const ExportPolicyRule: coreClient.CompositeMapper = { @@ -1581,103 +1476,103 @@ export const ExportPolicyRule: coreClient.CompositeMapper = { ruleIndex: { serializedName: "ruleIndex", type: { - name: "Number" - } + name: "Number", + }, }, unixReadOnly: { serializedName: "unixReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, unixReadWrite: { serializedName: "unixReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5ReadOnly: { defaultValue: false, serializedName: "kerberos5ReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5ReadWrite: { defaultValue: false, serializedName: "kerberos5ReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5IReadOnly: { defaultValue: false, serializedName: "kerberos5iReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5IReadWrite: { defaultValue: false, serializedName: "kerberos5iReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5PReadOnly: { defaultValue: false, serializedName: "kerberos5pReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5PReadWrite: { defaultValue: false, serializedName: "kerberos5pReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, cifs: { serializedName: "cifs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, nfsv3: { serializedName: "nfsv3", type: { - name: "Boolean" - } + name: "Boolean", + }, }, nfsv41: { serializedName: "nfsv41", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowedClients: { serializedName: "allowedClients", type: { - name: "String" - } + name: "String", + }, }, hasRootAccess: { defaultValue: true, serializedName: "hasRootAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, chownMode: { defaultValue: "Restricted", serializedName: "chownMode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MountTargetProperties: coreClient.CompositeMapper = { @@ -1688,46 +1583,46 @@ export const MountTargetProperties: coreClient.CompositeMapper = { mountTargetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "mountTargetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "fileSystemId", required: true, type: { - name: "String" - } + name: "String", + }, }, ipAddress: { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerFqdn: { serializedName: "smbServerFqdn", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { @@ -1735,69 +1630,29 @@ export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumePropertiesDataProtection", modelProperties: { - backup: { - serializedName: "backup", - type: { - name: "Composite", - className: "VolumeBackupProperties" - } - }, replication: { serializedName: "replication", type: { name: "Composite", - className: "ReplicationObject" - } + className: "ReplicationObject", + }, }, snapshot: { serializedName: "snapshot", type: { name: "Composite", - className: "VolumeSnapshotProperties" - } + className: "VolumeSnapshotProperties", + }, }, volumeRelocation: { serializedName: "volumeRelocation", type: { name: "Composite", - className: "VolumeRelocationProperties" - } - } - } - } -}; - -export const VolumeBackupProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumeBackupProperties", - modelProperties: { - backupPolicyId: { - serializedName: "backupPolicyId", - type: { - name: "String" - } - }, - policyEnforced: { - serializedName: "policyEnforced", - type: { - name: "Boolean" - } - }, - backupEnabled: { - serializedName: "backupEnabled", - type: { - name: "Boolean" - } + className: "VolumeRelocationProperties", + }, }, - backupVaultId: { - serializedName: "backupVaultId", - type: { - name: "String" - } - } - } - } + }, + }, }; export const ReplicationObject: coreClient.CompositeMapper = { @@ -1809,73 +1664,36 @@ export const ReplicationObject: coreClient.CompositeMapper = { serializedName: "replicationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpointType: { serializedName: "endpointType", type: { - name: "String" - } + name: "String", + }, }, replicationSchedule: { serializedName: "replicationSchedule", type: { - name: "String" - } + name: "String", + }, }, remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", required: true, type: { - name: "String" - } - }, - remotePath: { - serializedName: "remotePath", - type: { - name: "Composite", - className: "RemotePath" - } - }, - remoteVolumeRegion: { - serializedName: "remoteVolumeRegion", - type: { - name: "String" - } - } - } - } -}; - -export const RemotePath: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RemotePath", - modelProperties: { - externalHostName: { - serializedName: "externalHostName", - required: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - volumeName: { - serializedName: "volumeName", - required: true, + remoteVolumeRegion: { + serializedName: "remoteVolumeRegion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeSnapshotProperties: coreClient.CompositeMapper = { @@ -1886,11 +1704,11 @@ export const VolumeSnapshotProperties: coreClient.CompositeMapper = { snapshotPolicyId: { serializedName: "snapshotPolicyId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeRelocationProperties: coreClient.CompositeMapper = { @@ -1901,18 +1719,18 @@ export const VolumeRelocationProperties: coreClient.CompositeMapper = { relocationRequested: { serializedName: "relocationRequested", type: { - name: "Boolean" - } + name: "Boolean", + }, }, readyToBeFinalized: { serializedName: "readyToBeFinalized", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PlacementKeyValuePairs: coreClient.CompositeMapper = { @@ -1924,18 +1742,18 @@ export const PlacementKeyValuePairs: coreClient.CompositeMapper = { serializedName: "key", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePatch: coreClient.CompositeMapper = { @@ -1946,150 +1764,150 @@ export const VolumePatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePatchPropertiesExportPolicy" - } + className: "VolumePatchPropertiesExportPolicy", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", type: { - name: "Number" - } + name: "Number", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePatchPropertiesDataProtection" - } + className: "VolumePatchPropertiesDataProtection", + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, coolAccess: { serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, snapshotDirectoryVisible: { serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePatchPropertiesExportPolicy: coreClient.CompositeMapper = { @@ -2104,13 +1922,13 @@ export const VolumePatchPropertiesExportPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExportPolicyRule" - } - } - } - } - } - } + className: "ExportPolicyRule", + }, + }, + }, + }, + }, + }, }; export const VolumePatchPropertiesDataProtection: coreClient.CompositeMapper = { @@ -2118,22 +1936,15 @@ export const VolumePatchPropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumePatchPropertiesDataProtection", modelProperties: { - backup: { - serializedName: "backup", - type: { - name: "Composite", - className: "VolumeBackupProperties" - } - }, snapshot: { serializedName: "snapshot", type: { name: "Composite", - className: "VolumeSnapshotProperties" - } - } - } - } + className: "VolumeSnapshotProperties", + }, + }, + }, + }, }; export const VolumeRevert: coreClient.CompositeMapper = { @@ -2144,11 +1955,11 @@ export const VolumeRevert: coreClient.CompositeMapper = { snapshotId: { serializedName: "snapshotId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BreakFileLocksRequest: coreClient.CompositeMapper = { @@ -2159,23 +1970,23 @@ export const BreakFileLocksRequest: coreClient.CompositeMapper = { clientIp: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", + ), }, serializedName: "clientIp", type: { - name: "String" - } + name: "String", + }, }, confirmRunningDisruptiveOperation: { defaultValue: false, serializedName: "confirmRunningDisruptiveOperation", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const GetGroupIdListForLdapUserRequest: coreClient.CompositeMapper = { @@ -2186,16 +1997,16 @@ export const GetGroupIdListForLdapUserRequest: coreClient.CompositeMapper = { username: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, serializedName: "username", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GetGroupIdListForLdapUserResponse: coreClient.CompositeMapper = { @@ -2209,13 +2020,13 @@ export const GetGroupIdListForLdapUserResponse: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const BreakReplicationRequest: coreClient.CompositeMapper = { @@ -2226,11 +2037,11 @@ export const BreakReplicationRequest: coreClient.CompositeMapper = { forceBreakReplication: { serializedName: "forceBreakReplication", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReestablishReplicationRequest: coreClient.CompositeMapper = { @@ -2241,11 +2052,11 @@ export const ReestablishReplicationRequest: coreClient.CompositeMapper = { sourceVolumeId: { serializedName: "sourceVolumeId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ReplicationStatus: coreClient.CompositeMapper = { @@ -2256,35 +2067,35 @@ export const ReplicationStatus: coreClient.CompositeMapper = { healthy: { serializedName: "healthy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, relationshipStatus: { serializedName: "relationshipStatus", type: { - name: "String" - } + name: "String", + }, }, mirrorState: { serializedName: "mirrorState", type: { - name: "String" - } + name: "String", + }, }, totalProgress: { serializedName: "totalProgress", type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListReplications: coreClient.CompositeMapper = { @@ -2299,13 +2110,13 @@ export const ListReplications: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Replication" - } - } - } - } - } - } + className: "Replication", + }, + }, + }, + }, + }, + }, }; export const Replication: coreClient.CompositeMapper = { @@ -2316,30 +2127,30 @@ export const Replication: coreClient.CompositeMapper = { endpointType: { serializedName: "endpointType", type: { - name: "String" - } + name: "String", + }, }, replicationSchedule: { serializedName: "replicationSchedule", type: { - name: "String" - } + name: "String", + }, }, remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, remoteVolumeRegion: { serializedName: "remoteVolumeRegion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizeRequest: coreClient.CompositeMapper = { @@ -2350,11 +2161,11 @@ export const AuthorizeRequest: coreClient.CompositeMapper = { remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolChangeRequest: coreClient.CompositeMapper = { @@ -2366,11 +2177,11 @@ export const PoolChangeRequest: coreClient.CompositeMapper = { serializedName: "newPoolResourceId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RelocateVolumeRequest: coreClient.CompositeMapper = { @@ -2381,11 +2192,11 @@ export const RelocateVolumeRequest: coreClient.CompositeMapper = { creationToken: { serializedName: "creationToken", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotsList: coreClient.CompositeMapper = { @@ -2400,13 +2211,13 @@ export const SnapshotsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Snapshot" - } - } - } - } - } - } + className: "Snapshot", + }, + }, + }, + }, + }, + }, }; export const SnapshotRestoreFiles: coreClient.CompositeMapper = { @@ -2417,7 +2228,7 @@ export const SnapshotRestoreFiles: coreClient.CompositeMapper = { filePaths: { constraints: { MinItems: 1, - MaxItems: 10 + MaxItems: 10, }, serializedName: "filePaths", required: true, @@ -2426,22 +2237,22 @@ export const SnapshotRestoreFiles: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 1024, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, destinationPath: { serializedName: "destinationPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPoliciesList: coreClient.CompositeMapper = { @@ -2456,13 +2267,13 @@ export const SnapshotPoliciesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SnapshotPolicy" - } - } - } - } - } - } + className: "SnapshotPolicy", + }, + }, + }, + }, + }, + }, }; export const HourlySchedule: coreClient.CompositeMapper = { @@ -2473,23 +2284,23 @@ export const HourlySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DailySchedule: coreClient.CompositeMapper = { @@ -2500,29 +2311,29 @@ export const DailySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const WeeklySchedule: coreClient.CompositeMapper = { @@ -2533,35 +2344,35 @@ export const WeeklySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, day: { serializedName: "day", type: { - name: "String" - } + name: "String", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const MonthlySchedule: coreClient.CompositeMapper = { @@ -2572,35 +2383,35 @@ export const MonthlySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, daysOfMonth: { serializedName: "daysOfMonth", type: { - name: "String" - } + name: "String", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SnapshotPolicyPatch: coreClient.CompositeMapper = { @@ -2611,80 +2422,80 @@ export const SnapshotPolicyPatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPolicyVolumeList: coreClient.CompositeMapper = { @@ -2699,85 +2510,13 @@ export const SnapshotPolicyVolumeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Volume" - } - } - } - } - } - } -}; - -export const BackupStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupStatus", - modelProperties: { - healthy: { - serializedName: "healthy", - readOnly: true, - type: { - name: "Boolean" - } - }, - relationshipStatus: { - serializedName: "relationshipStatus", - readOnly: true, - type: { - name: "String" - } - }, - mirrorState: { - serializedName: "mirrorState", - readOnly: true, - type: { - name: "String" - } - }, - unhealthyReason: { - serializedName: "unhealthyReason", - readOnly: true, - type: { - name: "String" - } - }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, - type: { - name: "String" - } - }, - lastTransferSize: { - serializedName: "lastTransferSize", - readOnly: true, - type: { - name: "Number" - } - }, - lastTransferType: { - serializedName: "lastTransferType", - readOnly: true, - type: { - name: "String" - } - }, - totalTransferBytes: { - serializedName: "totalTransferBytes", - readOnly: true, - type: { - name: "Number" - } + className: "Volume", + }, + }, + }, }, - transferProgressBytes: { - serializedName: "transferProgressBytes", - readOnly: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const RestoreStatus: coreClient.CompositeMapper = { @@ -2789,88 +2528,46 @@ export const RestoreStatus: coreClient.CompositeMapper = { serializedName: "healthy", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, relationshipStatus: { serializedName: "relationshipStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mirrorState: { serializedName: "mirrorState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, unhealthyReason: { serializedName: "unhealthyReason", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, totalTransferBytes: { serializedName: "totalTransferBytes", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const BackupsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Backup" - } - } - } + name: "Number", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const BackupPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupPatch", - modelProperties: { - label: { - serializedName: "properties.label", - type: { - name: "String" - } - } - } - } + }, + }, }; export const BackupPoliciesList: coreClient.CompositeMapper = { @@ -2885,13 +2582,13 @@ export const BackupPoliciesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BackupPolicy" - } - } - } - } - } - } + className: "BackupPolicy", + }, + }, + }, + }, + }, + }, }; export const VolumeBackups: coreClient.CompositeMapper = { @@ -2902,23 +2599,23 @@ export const VolumeBackups: coreClient.CompositeMapper = { volumeName: { serializedName: "volumeName", type: { - name: "String" - } + name: "String", + }, }, backupsCount: { serializedName: "backupsCount", type: { - name: "Number" - } + name: "Number", + }, }, policyEnabled: { serializedName: "policyEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const BackupPolicyPatch: coreClient.CompositeMapper = { @@ -2929,81 +2626,81 @@ export const BackupPolicyPatch: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, backupPolicyId: { serializedName: "properties.backupPolicyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dailyBackupsToKeep: { serializedName: "properties.dailyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, weeklyBackupsToKeep: { serializedName: "properties.weeklyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, monthlyBackupsToKeep: { serializedName: "properties.monthlyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, volumesAssigned: { serializedName: "properties.volumesAssigned", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, volumeBackups: { serializedName: "properties.volumeBackups", @@ -3013,13 +2710,13 @@ export const BackupPolicyPatch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeBackups" - } - } - } - } - } - } + className: "VolumeBackups", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRulesList: coreClient.CompositeMapper = { @@ -3034,13 +2731,13 @@ export const VolumeQuotaRulesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeQuotaRule" - } - } - } - } - } - } + className: "VolumeQuotaRule", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { @@ -3052,8 +2749,8 @@ export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, provisioningState: { serializedName: "properties.provisioningState", @@ -3067,30 +2764,30 @@ export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { "Deleting", "Moving", "Failed", - "Succeeded" - ] - } + "Succeeded", + ], + }, }, quotaSizeInKiBs: { serializedName: "properties.quotaSizeInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, quotaType: { serializedName: "properties.quotaType", type: { - name: "String" - } + name: "String", + }, }, quotaTarget: { serializedName: "properties.quotaTarget", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeGroupList: coreClient.CompositeMapper = { @@ -3105,13 +2802,13 @@ export const VolumeGroupList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeGroup" - } - } - } - } - } - } + className: "VolumeGroup", + }, + }, + }, + }, + }, + }, }; export const VolumeGroup: coreClient.CompositeMapper = { @@ -3122,46 +2819,46 @@ export const VolumeGroup: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupMetaData: { serializedName: "properties.groupMetaData", type: { name: "Composite", - className: "VolumeGroupMetaData" - } - } - } - } + className: "VolumeGroupMetaData", + }, + }, + }, + }, }; export const VolumeGroupMetaData: coreClient.CompositeMapper = { @@ -3172,20 +2869,20 @@ export const VolumeGroupMetaData: coreClient.CompositeMapper = { groupDescription: { serializedName: "groupDescription", type: { - name: "String" - } + name: "String", + }, }, applicationType: { serializedName: "applicationType", type: { - name: "String" - } + name: "String", + }, }, applicationIdentifier: { serializedName: "applicationIdentifier", type: { - name: "String" - } + name: "String", + }, }, globalPlacementRules: { serializedName: "globalPlacementRules", @@ -3194,20 +2891,20 @@ export const VolumeGroupMetaData: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, volumesCount: { serializedName: "volumesCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const VolumeGroupDetails: coreClient.CompositeMapper = { @@ -3218,43 +2915,43 @@ export const VolumeGroupDetails: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupMetaData: { serializedName: "properties.groupMetaData", type: { name: "Composite", - className: "VolumeGroupMetaData" - } + className: "VolumeGroupMetaData", + }, }, volumes: { serializedName: "properties.volumes", @@ -3263,13 +2960,13 @@ export const VolumeGroupDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeGroupVolumeProperties" - } - } - } - } - } - } + className: "VolumeGroupVolumeProperties", + }, + }, + }, + }, + }, + }, }; export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { @@ -3281,28 +2978,28 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, zones: { serializedName: "zones", @@ -3311,65 +3008,65 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationToken: { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-]{0,79}$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.creationToken", required: true, type: { - name: "String" - } + name: "String", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", required: true, type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePropertiesExportPolicy" - } + className: "VolumePropertiesExportPolicy", + }, }, protocolTypes: { serializedName: "properties.protocolTypes", @@ -3377,79 +3074,79 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, snapshotId: { serializedName: "properties.snapshotId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, deleteBaseSnapshot: { serializedName: "properties.deleteBaseSnapshot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, backupId: { serializedName: "properties.backupId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, baremetalTenantId: { serializedName: "properties.baremetalTenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "properties.subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "properties.networkFeatures", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.networkSiblingSetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageToNetworkProximity: { serializedName: "properties.storageToNetworkProximity", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mountTargets: { serializedName: "properties.mountTargets", @@ -3459,168 +3156,168 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountTargetProperties" - } - } - } + className: "MountTargetProperties", + }, + }, + }, }, volumeType: { serializedName: "properties.volumeType", type: { - name: "String" - } + name: "String", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePropertiesDataProtection" - } + className: "VolumePropertiesDataProtection", + }, }, isRestoring: { serializedName: "properties.isRestoring", type: { - name: "Boolean" - } + name: "Boolean", + }, }, snapshotDirectoryVisible: { defaultValue: true, serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberosEnabled: { defaultValue: false, serializedName: "properties.kerberosEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityStyle: { defaultValue: "unix", serializedName: "properties.securityStyle", type: { - name: "String" - } + name: "String", + }, }, smbEncryption: { defaultValue: false, serializedName: "properties.smbEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } + name: "String", + }, }, smbContinuouslyAvailable: { defaultValue: false, serializedName: "properties.smbContinuouslyAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, actualThroughputMibps: { serializedName: "properties.actualThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, encryptionKeySource: { defaultValue: "Microsoft.NetApp", serializedName: "properties.encryptionKeySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultPrivateEndpointResourceId: { serializedName: "properties.keyVaultPrivateEndpointResourceId", type: { - name: "String" - } + name: "String", + }, }, ldapEnabled: { defaultValue: false, serializedName: "properties.ldapEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cloneProgress: { serializedName: "properties.cloneProgress", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, fileAccessLogs: { defaultValue: "Disabled", serializedName: "properties.fileAccessLogs", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, avsDataStore: { defaultValue: "Disabled", serializedName: "properties.avsDataStore", type: { - name: "String" - } + name: "String", + }, }, dataStoreResourceId: { serializedName: "properties.dataStoreResourceId", @@ -3629,77 +3326,77 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, maximumNumberOfFiles: { serializedName: "properties.maximumNumberOfFiles", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, volumeGroupName: { serializedName: "properties.volumeGroupName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacityPoolResourceId: { serializedName: "properties.capacityPoolResourceId", type: { - name: "String" - } + name: "String", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { - name: "String" - } + name: "String", + }, }, t2Network: { serializedName: "properties.t2Network", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeSpecName: { serializedName: "properties.volumeSpecName", type: { - name: "String" - } + name: "String", + }, }, encrypted: { serializedName: "properties.encrypted", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, placementRules: { serializedName: "properties.placementRules", @@ -3708,51 +3405,43 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, enableSubvolumes: { defaultValue: "Disabled", serializedName: "properties.enableSubvolumes", type: { - name: "String" - } + name: "String", + }, }, provisionedAvailabilityZone: { serializedName: "properties.provisionedAvailabilityZone", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, isLargeVolume: { defaultValue: false, serializedName: "properties.isLargeVolume", type: { - name: "Boolean" - } + name: "Boolean", + }, }, originatingResourceId: { serializedName: "properties.originatingResourceId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, - inheritedSizeInBytes: { - serializedName: "properties.inheritedSizeInBytes", - readOnly: true, - nullable: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const SubvolumesList: coreClient.CompositeMapper = { @@ -3767,19 +3456,19 @@ export const SubvolumesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubvolumeInfo" - } - } - } + className: "SubvolumeInfo", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumePatchRequest: coreClient.CompositeMapper = { @@ -3791,17 +3480,17 @@ export const SubvolumePatchRequest: coreClient.CompositeMapper = { serializedName: "properties.size", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, path: { serializedName: "properties.path", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumeModel: coreClient.CompositeMapper = { @@ -3813,189 +3502,85 @@ export const SubvolumeModel: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, path: { serializedName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, parentPath: { serializedName: "properties.parentPath", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "properties.size", type: { - name: "Number" - } + name: "Number", + }, }, bytesUsed: { serializedName: "properties.bytesUsed", type: { - name: "Number" - } + name: "Number", + }, }, permissions: { serializedName: "properties.permissions", type: { - name: "String" - } + name: "String", + }, }, creationTimeStamp: { serializedName: "properties.creationTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, accessedTimeStamp: { serializedName: "properties.accessedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, modifiedTimeStamp: { serializedName: "properties.modifiedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, changedTimeStamp: { serializedName: "properties.changedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupVault" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultPatch", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const BackupRestoreFiles: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupRestoreFiles", - modelProperties: { - fileList: { - constraints: { - MinItems: 1, - MaxItems: 8 + name: "String", }, - serializedName: "fileList", - required: true, - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 1024, - MinLength: 1 - }, - type: { - name: "String" - } - } - } }, - restoreFilePath: { - constraints: { - Pattern: new RegExp("^\\/.*$") - }, - serializedName: "restoreFilePath", - type: { - name: "String" - } - }, - destinationVolumeId: { - serializedName: "destinationVolumeId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const BackupsMigrationRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsMigrationRequest", - modelProperties: { - backupVaultId: { - serializedName: "backupVaultId", - required: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const ResourceIdentity: coreClient.CompositeMapper = { @@ -4007,24 +3592,24 @@ export const ResourceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MountTarget: coreClient.CompositeMapper = { @@ -4036,80 +3621,80 @@ export const MountTarget: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, mountTargetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.mountTargetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", required: true, type: { - name: "String" - } + name: "String", + }, }, ipAddress: { serializedName: "properties.ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerFqdn: { serializedName: "properties.smbServerFqdn", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPolicyDetails: coreClient.CompositeMapper = { @@ -4120,80 +3705,117 @@ export const SnapshotPolicyDetails: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const CloudError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudError", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "CloudErrorBody", + }, + }, + }, + }, +}; + +export const CloudErrorBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudErrorBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -4201,9 +3823,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -4216,18 +3838,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionQuotaItem: coreClient.CompositeMapper = { @@ -4240,46 +3862,18 @@ export const SubscriptionQuotaItem: coreClient.CompositeMapper = { serializedName: "properties.current", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "properties.default", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const RegionInfoResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfoResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageToNetworkProximity: { - serializedName: "properties.storageToNetworkProximity", - type: { - name: "String" - } + name: "Number", + }, }, - availabilityZoneMappings: { - serializedName: "properties.availabilityZoneMappings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem" - } - } - } - } - } - } + }, + }, }; export const Snapshot: coreClient.CompositeMapper = { @@ -4292,131 +3886,39 @@ export const Snapshot: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } - }, - snapshotId: { - constraints: { - Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - ), - MaxLength: 36, - MinLength: 36 + name: "String", }, - serializedName: "properties.snapshotId", - readOnly: true, - type: { - name: "String" - } - }, - created: { - serializedName: "properties.created", - readOnly: true, - type: { - name: "DateTime" - } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const Backup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Backup", - modelProperties: { - ...ProxyResource.type.modelProperties, - backupId: { + snapshotId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 - }, - serializedName: "properties.backupId", - readOnly: true, - type: { - name: "String" - } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - size: { - serializedName: "properties.size", - readOnly: true, - type: { - name: "Number" - } - }, - label: { - serializedName: "properties.label", - type: { - name: "String" - } - }, - backupType: { - serializedName: "properties.backupType", + MinLength: 36, + }, + serializedName: "properties.snapshotId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - failureReason: { - serializedName: "properties.failureReason", + created: { + serializedName: "properties.created", readOnly: true, type: { - name: "String" - } - }, - volumeResourceId: { - serializedName: "properties.volumeResourceId", - required: true, - type: { - name: "String" - } - }, - useExistingSnapshot: { - defaultValue: false, - serializedName: "properties.useExistingSnapshot", - type: { - name: "Boolean" - } - }, - snapshotName: { - serializedName: "properties.snapshotName", - type: { - name: "String" - } + name: "DateTime", + }, }, - backupPolicyResourceId: { - serializedName: "properties.backupPolicyResourceId", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumeInfo: coreClient.CompositeMapper = { @@ -4428,32 +3930,32 @@ export const SubvolumeInfo: coreClient.CompositeMapper = { path: { serializedName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "properties.size", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, parentPath: { serializedName: "properties.parentPath", nullable: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetAppAccount: coreClient.CompositeMapper = { @@ -4466,22 +3968,22 @@ export const NetAppAccount: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedServiceIdentity" - } + className: "ManagedServiceIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, activeDirectories: { serializedName: "properties.activeDirectories", @@ -4490,47 +3992,28 @@ export const NetAppAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ActiveDirectory" - } - } - } + className: "ActiveDirectory", + }, + }, + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "AccountEncryption" - } + className: "AccountEncryption", + }, }, disableShowmount: { serializedName: "properties.disableShowmount", readOnly: true, nullable: true, type: { - name: "Boolean" - } - }, - nfsV4IDDomain: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"), - MaxLength: 255 + name: "Boolean", }, - serializedName: "properties.nfsV4IDDomain", - nullable: true, - type: { - name: "String" - } }, - isMultiAdEnabled: { - serializedName: "properties.isMultiAdEnabled", - readOnly: true, - nullable: true, - type: { - name: "Boolean" - } - } - } - } + }, + }, }; export const CapacityPool: coreClient.CompositeMapper = { @@ -4543,83 +4026,83 @@ export const CapacityPool: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, poolId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.poolId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, size: { defaultValue: 4398046511104, serializedName: "properties.size", required: true, type: { - name: "Number" - } + name: "Number", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, totalThroughputMibps: { serializedName: "properties.totalThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, utilizedThroughputMibps: { serializedName: "properties.utilizedThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, qosType: { serializedName: "properties.qosType", type: { - name: "String" - } + name: "String", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptionType: { defaultValue: "Single", serializedName: "properties.encryptionType", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Volume: coreClient.CompositeMapper = { @@ -4632,8 +4115,8 @@ export const Volume: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -4642,65 +4125,65 @@ export const Volume: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationToken: { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-]{0,79}$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.creationToken", required: true, type: { - name: "String" - } + name: "String", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", required: true, type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePropertiesExportPolicy" - } + className: "VolumePropertiesExportPolicy", + }, }, protocolTypes: { serializedName: "properties.protocolTypes", @@ -4708,79 +4191,79 @@ export const Volume: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, snapshotId: { serializedName: "properties.snapshotId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, deleteBaseSnapshot: { serializedName: "properties.deleteBaseSnapshot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, backupId: { serializedName: "properties.backupId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, baremetalTenantId: { serializedName: "properties.baremetalTenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "properties.subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "properties.networkFeatures", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.networkSiblingSetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageToNetworkProximity: { serializedName: "properties.storageToNetworkProximity", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mountTargets: { serializedName: "properties.mountTargets", @@ -4790,168 +4273,168 @@ export const Volume: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountTargetProperties" - } - } - } + className: "MountTargetProperties", + }, + }, + }, }, volumeType: { serializedName: "properties.volumeType", type: { - name: "String" - } + name: "String", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePropertiesDataProtection" - } + className: "VolumePropertiesDataProtection", + }, }, isRestoring: { serializedName: "properties.isRestoring", type: { - name: "Boolean" - } + name: "Boolean", + }, }, snapshotDirectoryVisible: { defaultValue: true, serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberosEnabled: { defaultValue: false, serializedName: "properties.kerberosEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityStyle: { defaultValue: "unix", serializedName: "properties.securityStyle", type: { - name: "String" - } + name: "String", + }, }, smbEncryption: { defaultValue: false, serializedName: "properties.smbEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } + name: "String", + }, }, smbContinuouslyAvailable: { defaultValue: false, serializedName: "properties.smbContinuouslyAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, actualThroughputMibps: { serializedName: "properties.actualThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, encryptionKeySource: { defaultValue: "Microsoft.NetApp", serializedName: "properties.encryptionKeySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultPrivateEndpointResourceId: { serializedName: "properties.keyVaultPrivateEndpointResourceId", type: { - name: "String" - } + name: "String", + }, }, ldapEnabled: { defaultValue: false, serializedName: "properties.ldapEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cloneProgress: { serializedName: "properties.cloneProgress", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, fileAccessLogs: { defaultValue: "Disabled", serializedName: "properties.fileAccessLogs", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, avsDataStore: { defaultValue: "Disabled", serializedName: "properties.avsDataStore", type: { - name: "String" - } + name: "String", + }, }, dataStoreResourceId: { serializedName: "properties.dataStoreResourceId", @@ -4960,77 +4443,77 @@ export const Volume: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, maximumNumberOfFiles: { serializedName: "properties.maximumNumberOfFiles", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, volumeGroupName: { serializedName: "properties.volumeGroupName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacityPoolResourceId: { serializedName: "properties.capacityPoolResourceId", type: { - name: "String" - } + name: "String", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { - name: "String" - } + name: "String", + }, }, t2Network: { serializedName: "properties.t2Network", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeSpecName: { serializedName: "properties.volumeSpecName", type: { - name: "String" - } + name: "String", + }, }, encrypted: { serializedName: "properties.encrypted", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, placementRules: { serializedName: "properties.placementRules", @@ -5039,51 +4522,43 @@ export const Volume: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, enableSubvolumes: { defaultValue: "Disabled", serializedName: "properties.enableSubvolumes", type: { - name: "String" - } + name: "String", + }, }, provisionedAvailabilityZone: { serializedName: "properties.provisionedAvailabilityZone", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, isLargeVolume: { defaultValue: false, serializedName: "properties.isLargeVolume", type: { - name: "Boolean" - } + name: "Boolean", + }, }, originatingResourceId: { serializedName: "properties.originatingResourceId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, - inheritedSizeInBytes: { - serializedName: "properties.inheritedSizeInBytes", - readOnly: true, - nullable: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const SnapshotPolicy: coreClient.CompositeMapper = { @@ -5096,52 +4571,52 @@ export const SnapshotPolicy: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackupPolicy: coreClient.CompositeMapper = { @@ -5154,53 +4629,53 @@ export const BackupPolicy: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, backupPolicyId: { serializedName: "properties.backupPolicyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dailyBackupsToKeep: { serializedName: "properties.dailyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, weeklyBackupsToKeep: { serializedName: "properties.weeklyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, monthlyBackupsToKeep: { serializedName: "properties.monthlyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, volumesAssigned: { serializedName: "properties.volumesAssigned", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, volumeBackups: { serializedName: "properties.volumeBackups", @@ -5210,13 +4685,13 @@ export const BackupPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeBackups" - } - } - } - } - } - } + className: "VolumeBackups", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRule: coreClient.CompositeMapper = { @@ -5237,93 +4712,63 @@ export const VolumeQuotaRule: coreClient.CompositeMapper = { "Deleting", "Moving", "Failed", - "Succeeded" - ] - } + "Succeeded", + ], + }, }, quotaSizeInKiBs: { serializedName: "properties.quotaSizeInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, quotaType: { serializedName: "properties.quotaType", type: { - name: "String" - } + name: "String", + }, }, quotaTarget: { serializedName: "properties.quotaTarget", type: { - name: "String" - } - } - } - } -}; - -export const BackupVault: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVault", - modelProperties: { - ...TrackedResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const NetAppResourceUpdateNetworkSiblingSetHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetAppResourceUpdateNetworkSiblingSetHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccountsMigrateEncryptionKeyHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountsMigrateEncryptionKeyHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const NetAppResourceUpdateNetworkSiblingSetHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetAppResourceUpdateNetworkSiblingSetHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const VolumesPopulateAvailabilityZoneHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesPopulateAvailabilityZoneHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const VolumesPopulateAvailabilityZoneHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VolumesPopulateAvailabilityZoneHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const VolumesResetCifsPasswordHeaders: coreClient.CompositeMapper = { type: { @@ -5333,26 +4778,11 @@ export const VolumesResetCifsPasswordHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const VolumesSplitCloneFromParentHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesSplitCloneFromParentHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { @@ -5363,144 +4793,25 @@ export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesListGetGroupIdListForLdapUserHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const AccountBackupsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountBackupsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUnderBackupVaultRestoreFilesHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderBackupVaultRestoreFilesHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUnderVolumeMigrateBackupsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderVolumeMigrateBackupsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackupsUnderAccountMigrateBackupsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderAccountMigrateBackupsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VolumesListGetGroupIdListForLdapUserHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index a29ceee75306..a856f1e92a54 100644 --- a/sdk/netapp/arm-netapp/src/models/parameters.ts +++ b/sdk/netapp/arm-netapp/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ResourceNameAvailabilityRequest as ResourceNameAvailabilityRequestMapper, @@ -19,7 +19,6 @@ import { UpdateNetworkSiblingSetRequest as UpdateNetworkSiblingSetRequestMapper, NetAppAccount as NetAppAccountMapper, NetAppAccountPatch as NetAppAccountPatchMapper, - EncryptionMigrationRequest as EncryptionMigrationRequestMapper, CapacityPool as CapacityPoolMapper, CapacityPoolPatch as CapacityPoolPatchMapper, Volume as VolumeMapper, @@ -36,8 +35,6 @@ import { SnapshotRestoreFiles as SnapshotRestoreFilesMapper, SnapshotPolicy as SnapshotPolicyMapper, SnapshotPolicyPatch as SnapshotPolicyPatchMapper, - Backup as BackupMapper, - BackupPatch as BackupPatchMapper, BackupPolicy as BackupPolicyMapper, BackupPolicyPatch as BackupPolicyPatchMapper, VolumeQuotaRule as VolumeQuotaRuleMapper, @@ -45,10 +42,6 @@ import { VolumeGroupDetails as VolumeGroupDetailsMapper, SubvolumeInfo as SubvolumeInfoMapper, SubvolumePatchRequest as SubvolumePatchRequestMapper, - BackupVault as BackupVaultMapper, - BackupVaultPatch as BackupVaultPatchMapper, - BackupRestoreFiles as BackupRestoreFilesMapper, - BackupsMigrationRequest as BackupsMigrationRequestMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -58,9 +51,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -69,22 +62,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-05-01-preview", + defaultValue: "2023-07-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -94,24 +87,24 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const name: OperationParameter = { parameterPath: "name", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const typeParam: OperationParameter = { parameterPath: "typeParam", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const resourceGroup: OperationParameter = { parameterPath: "resourceGroup", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const subscriptionId: OperationURLParameter = { @@ -120,78 +113,78 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const location: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const name1: OperationParameter = { parameterPath: "name", - mapper: FilePathAvailabilityRequestMapper + mapper: FilePathAvailabilityRequestMapper, }; export const subnetId: OperationParameter = { parameterPath: "subnetId", - mapper: FilePathAvailabilityRequestMapper + mapper: FilePathAvailabilityRequestMapper, }; export const name2: OperationParameter = { parameterPath: "name", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const typeParam1: OperationParameter = { parameterPath: "typeParam", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const resourceGroup1: OperationParameter = { parameterPath: "resourceGroup", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const networkSiblingSetId: OperationParameter = { parameterPath: "networkSiblingSetId", - mapper: QueryNetworkSiblingSetRequestMapper + mapper: QueryNetworkSiblingSetRequestMapper, }; export const subnetId1: OperationParameter = { parameterPath: "subnetId", - mapper: QueryNetworkSiblingSetRequestMapper + mapper: QueryNetworkSiblingSetRequestMapper, }; export const networkSiblingSetId1: OperationParameter = { parameterPath: "networkSiblingSetId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const subnetId2: OperationParameter = { parameterPath: "subnetId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const networkSiblingSetStateId: OperationParameter = { parameterPath: "networkSiblingSetStateId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const networkFeatures: OperationParameter = { parameterPath: "networkFeatures", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const quotaLimitName: OperationURLParameter = { @@ -200,21 +193,9 @@ export const quotaLimitName: OperationURLParameter = { serializedName: "quotaLimitName", required: true, type: { - name: "String" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; export const resourceGroupName: OperationURLParameter = { @@ -222,43 +203,50 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accountName: OperationURLParameter = { parameterPath: "accountName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,127}$") + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,127}$"), }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body5: OperationParameter = { parameterPath: "body", - mapper: NetAppAccountMapper + mapper: NetAppAccountMapper, }; export const body6: OperationParameter = { parameterPath: "body", - mapper: NetAppAccountPatchMapper + mapper: NetAppAccountPatchMapper, }; -export const body7: OperationParameter = { - parameterPath: ["options", "body"], - mapper: EncryptionMigrationRequestMapper +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, }; export const poolName: OperationURLParameter = { @@ -267,24 +255,24 @@ export const poolName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "poolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body8: OperationParameter = { +export const body7: OperationParameter = { parameterPath: "body", - mapper: CapacityPoolMapper + mapper: CapacityPoolMapper, }; -export const body9: OperationParameter = { +export const body8: OperationParameter = { parameterPath: "body", - mapper: CapacityPoolPatchMapper + mapper: CapacityPoolPatchMapper, }; export const volumeName: OperationURLParameter = { @@ -293,24 +281,24 @@ export const volumeName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "volumeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body10: OperationParameter = { +export const body9: OperationParameter = { parameterPath: "body", - mapper: VolumeMapper + mapper: VolumeMapper, }; -export const body11: OperationParameter = { +export const body10: OperationParameter = { parameterPath: "body", - mapper: VolumePatchMapper + mapper: VolumePatchMapper, }; export const forceDelete: OperationQueryParameter = { @@ -318,49 +306,49 @@ export const forceDelete: OperationQueryParameter = { mapper: { serializedName: "forceDelete", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const body12: OperationParameter = { +export const body11: OperationParameter = { parameterPath: "body", - mapper: VolumeRevertMapper + mapper: VolumeRevertMapper, }; -export const body13: OperationParameter = { +export const body12: OperationParameter = { parameterPath: ["options", "body"], - mapper: BreakFileLocksRequestMapper + mapper: BreakFileLocksRequestMapper, }; -export const body14: OperationParameter = { +export const body13: OperationParameter = { parameterPath: "body", - mapper: GetGroupIdListForLdapUserRequestMapper + mapper: GetGroupIdListForLdapUserRequestMapper, }; -export const body15: OperationParameter = { +export const body14: OperationParameter = { parameterPath: ["options", "body"], - mapper: BreakReplicationRequestMapper + mapper: BreakReplicationRequestMapper, }; -export const body16: OperationParameter = { +export const body15: OperationParameter = { parameterPath: "body", - mapper: ReestablishReplicationRequestMapper + mapper: ReestablishReplicationRequestMapper, }; -export const body17: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", - mapper: AuthorizeRequestMapper + mapper: AuthorizeRequestMapper, }; -export const body18: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", - mapper: PoolChangeRequestMapper + mapper: PoolChangeRequestMapper, }; -export const body19: OperationParameter = { +export const body18: OperationParameter = { parameterPath: ["options", "body"], - mapper: RelocateVolumeRequestMapper + mapper: RelocateVolumeRequestMapper, }; export const snapshotName: OperationURLParameter = { @@ -369,31 +357,31 @@ export const snapshotName: OperationURLParameter = { serializedName: "snapshotName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body20: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", - mapper: SnapshotMapper + mapper: SnapshotMapper, }; -export const body21: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: { serializedName: "body", required: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } + value: { type: { name: "any" } }, + }, + }, }; -export const body22: OperationParameter = { +export const body21: OperationParameter = { parameterPath: "body", - mapper: SnapshotRestoreFilesMapper + mapper: SnapshotRestoreFilesMapper, }; export const snapshotPolicyName: OperationURLParameter = { @@ -402,77 +390,19 @@ export const snapshotPolicyName: OperationURLParameter = { serializedName: "snapshotPolicyName", required: true, type: { - name: "String" - } - } -}; - -export const body23: OperationParameter = { - parameterPath: "body", - mapper: SnapshotPolicyMapper -}; - -export const body24: OperationParameter = { - parameterPath: "body", - mapper: SnapshotPolicyPatchMapper -}; - -export const backupVaultName: OperationURLParameter = { - parameterPath: "backupVaultName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$") + name: "String", }, - serializedName: "backupVaultName", - required: true, - type: { - name: "String" - } - } -}; - -export const filter: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } -}; - -export const backupName: OperationURLParameter = { - parameterPath: "backupName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,255}$") - }, - serializedName: "backupName", - required: true, - type: { - name: "String" - } - } + }, }; -export const body25: OperationParameter = { +export const body22: OperationParameter = { parameterPath: "body", - mapper: BackupMapper -}; - -export const body26: OperationParameter = { - parameterPath: ["options", "body"], - mapper: BackupPatchMapper + mapper: SnapshotPolicyMapper, }; -export const includeOnlyBackupsFromDeletedVolumes: OperationQueryParameter = { - parameterPath: ["options", "includeOnlyBackupsFromDeletedVolumes"], - mapper: { - serializedName: "includeOnlyBackupsFromDeletedVolumes", - type: { - name: "String" - } - } +export const body23: OperationParameter = { + parameterPath: "body", + mapper: SnapshotPolicyPatchMapper, }; export const backupPolicyName: OperationURLParameter = { @@ -481,19 +411,19 @@ export const backupPolicyName: OperationURLParameter = { serializedName: "backupPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body27: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", - mapper: BackupPolicyMapper + mapper: BackupPolicyMapper, }; -export const body28: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", - mapper: BackupPolicyPatchMapper + mapper: BackupPolicyPatchMapper, }; export const volumeQuotaRuleName: OperationURLParameter = { @@ -502,19 +432,19 @@ export const volumeQuotaRuleName: OperationURLParameter = { serializedName: "volumeQuotaRuleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body29: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", - mapper: VolumeQuotaRuleMapper + mapper: VolumeQuotaRuleMapper, }; -export const body30: OperationParameter = { +export const body27: OperationParameter = { parameterPath: "body", - mapper: VolumeQuotaRulePatchMapper + mapper: VolumeQuotaRulePatchMapper, }; export const volumeGroupName: OperationURLParameter = { @@ -523,19 +453,19 @@ export const volumeGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "volumeGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body31: OperationParameter = { +export const body28: OperationParameter = { parameterPath: "body", - mapper: VolumeGroupDetailsMapper + mapper: VolumeGroupDetailsMapper, }; export const subvolumeName: OperationURLParameter = { @@ -544,42 +474,22 @@ export const subvolumeName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "subvolumeName", required: true, type: { - name: "String" - } - } -}; - -export const body32: OperationParameter = { - parameterPath: "body", - mapper: SubvolumeInfoMapper -}; - -export const body33: OperationParameter = { - parameterPath: "body", - mapper: SubvolumePatchRequestMapper -}; - -export const body34: OperationParameter = { - parameterPath: "body", - mapper: BackupVaultMapper -}; - -export const body35: OperationParameter = { - parameterPath: "body", - mapper: BackupVaultPatchMapper + name: "String", + }, + }, }; -export const body36: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", - mapper: BackupRestoreFilesMapper + mapper: SubvolumeInfoMapper, }; -export const body37: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", - mapper: BackupsMigrationRequestMapper + mapper: SubvolumePatchRequestMapper, }; diff --git a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts index b89b42a3fb3d..1e1981b0c7c0 100644 --- a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts @@ -11,50 +11,38 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, NetAppResourceImpl, NetAppResourceQuotaLimitsImpl, - NetAppResourceRegionInfosImpl, AccountsImpl, PoolsImpl, VolumesImpl, SnapshotsImpl, SnapshotPoliciesImpl, BackupsImpl, - AccountBackupsImpl, BackupPoliciesImpl, VolumeQuotaRulesImpl, VolumeGroupsImpl, SubvolumesImpl, - BackupVaultsImpl, - BackupsUnderBackupVaultImpl, - BackupsUnderVolumeImpl, - BackupsUnderAccountImpl } from "./operations"; import { Operations, NetAppResource, NetAppResourceQuotaLimits, - NetAppResourceRegionInfos, Accounts, Pools, Volumes, Snapshots, SnapshotPolicies, Backups, - AccountBackups, BackupPolicies, VolumeQuotaRules, VolumeGroups, Subvolumes, - BackupVaults, - BackupsUnderBackupVault, - BackupsUnderVolume, - BackupsUnderAccount } from "./operationsInterfaces"; import { NetAppManagementClientOptionalParams } from "./models"; @@ -72,7 +60,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: NetAppManagementClientOptionalParams + options?: NetAppManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -87,10 +75,10 @@ export class NetAppManagementClient extends coreClient.ServiceClient { } const defaults: NetAppManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-netapp/20.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-netapp/20.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -100,20 +88,21 @@ export class NetAppManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -123,7 +112,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -133,9 +122,9 @@ export class NetAppManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -143,26 +132,20 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-05-01-preview"; + this.apiVersion = options.apiVersion || "2023-07-01"; this.operations = new OperationsImpl(this); this.netAppResource = new NetAppResourceImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsImpl(this); - this.netAppResourceRegionInfos = new NetAppResourceRegionInfosImpl(this); this.accounts = new AccountsImpl(this); this.pools = new PoolsImpl(this); this.volumes = new VolumesImpl(this); this.snapshots = new SnapshotsImpl(this); this.snapshotPolicies = new SnapshotPoliciesImpl(this); this.backups = new BackupsImpl(this); - this.accountBackups = new AccountBackupsImpl(this); this.backupPolicies = new BackupPoliciesImpl(this); this.volumeQuotaRules = new VolumeQuotaRulesImpl(this); this.volumeGroups = new VolumeGroupsImpl(this); this.subvolumes = new SubvolumesImpl(this); - this.backupVaults = new BackupVaultsImpl(this); - this.backupsUnderBackupVault = new BackupsUnderBackupVaultImpl(this); - this.backupsUnderVolume = new BackupsUnderVolumeImpl(this); - this.backupsUnderAccount = new BackupsUnderAccountImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -175,7 +158,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -189,7 +172,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -197,20 +180,14 @@ export class NetAppManagementClient extends coreClient.ServiceClient { operations: Operations; netAppResource: NetAppResource; netAppResourceQuotaLimits: NetAppResourceQuotaLimits; - netAppResourceRegionInfos: NetAppResourceRegionInfos; accounts: Accounts; pools: Pools; volumes: Volumes; snapshots: Snapshots; snapshotPolicies: SnapshotPolicies; backups: Backups; - accountBackups: AccountBackups; backupPolicies: BackupPolicies; volumeQuotaRules: VolumeQuotaRules; volumeGroups: VolumeGroups; subvolumes: Subvolumes; - backupVaults: BackupVaults; - backupsUnderBackupVault: BackupsUnderBackupVault; - backupsUnderVolume: BackupsUnderVolume; - backupsUnderAccount: BackupsUnderAccount; } diff --git a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts deleted file mode 100644 index 51f44bb6ae60..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts +++ /dev/null @@ -1,324 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { AccountBackups } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - Backup, - AccountBackupsListByNetAppAccountOptionalParams, - AccountBackupsListByNetAppAccountResponse, - AccountBackupsGetOptionalParams, - AccountBackupsGetResponse, - AccountBackupsDeleteOptionalParams, - AccountBackupsDeleteResponse -} from "../models"; - -/// -/** Class containing AccountBackups operations. */ -export class AccountBackupsImpl implements AccountBackups { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class AccountBackups class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - public listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByNetAppAccountPagingAll( - resourceGroupName, - accountName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listByNetAppAccountPagingPage( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: AccountBackupsListByNetAppAccountResponse; - result = await this._listByNetAppAccount( - resourceGroupName, - accountName, - options - ); - yield result.value || []; - } - - private async *listByNetAppAccountPagingAll( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - private _listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec - ); - } - - /** - * Gets the specified backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupName, options }, - getOperationSpec - ); - } - - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountBackupsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - AccountBackupsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupName, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.includeOnlyBackupsFromDeletedVolumes - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 201: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 202: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 204: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/accounts.ts b/sdk/netapp/arm-netapp/src/operations/accounts.ts index 2835df533976..b20b587b493b 100644 --- a/sdk/netapp/arm-netapp/src/operations/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operations/accounts.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,10 +36,8 @@ import { AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsRenewCredentialsOptionalParams, - AccountsMigrateEncryptionKeyOptionalParams, - AccountsMigrateEncryptionKeyResponse, AccountsListBySubscriptionNextResponse, - AccountsListNextResponse + AccountsListNextResponse, } from "../models"; /// @@ -60,7 +58,7 @@ export class AccountsImpl implements Accounts { * @param options The options parameters. */ public listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -75,13 +73,13 @@ export class AccountsImpl implements Accounts { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: AccountsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccountsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +100,7 @@ export class AccountsImpl implements Accounts { } private async *listBySubscriptionPagingAll( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -116,7 +114,7 @@ export class AccountsImpl implements Accounts { */ public list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -131,14 +129,14 @@ export class AccountsImpl implements Accounts { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: AccountsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccountsListResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +151,7 @@ export class AccountsImpl implements Accounts { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,7 +162,7 @@ export class AccountsImpl implements Accounts { private async *listPagingAll( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -176,11 +174,11 @@ export class AccountsImpl implements Accounts { * @param options The options parameters. */ private _listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -191,11 +189,11 @@ export class AccountsImpl implements Accounts { */ private _list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -208,11 +206,11 @@ export class AccountsImpl implements Accounts { get( resourceGroupName: string, accountName: string, - options?: AccountsGetOptionalParams + options?: AccountsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +225,7 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -236,21 +234,20 @@ export class AccountsImpl implements Accounts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -259,8 +256,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -268,15 +265,15 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, body, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< AccountsCreateOrUpdateResponse, @@ -284,7 +281,7 @@ export class AccountsImpl implements Accounts { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -301,13 +298,13 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, accountName, body, - options + options, ); return poller.pollUntilDone(); } @@ -321,25 +318,24 @@ export class AccountsImpl implements Accounts { async beginDelete( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -348,8 +344,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -357,20 +353,20 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -385,12 +381,12 @@ export class AccountsImpl implements Accounts { async beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, - options + options, ); return poller.pollUntilDone(); } @@ -406,7 +402,7 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -415,21 +411,20 @@ export class AccountsImpl implements Accounts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -438,8 +433,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -447,15 +442,15 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< AccountsUpdateResponse, @@ -463,7 +458,7 @@ export class AccountsImpl implements Accounts { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -480,13 +475,13 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, body, - options + options, ); return poller.pollUntilDone(); } @@ -502,25 +497,24 @@ export class AccountsImpl implements Accounts { async beginRenewCredentials( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -529,8 +523,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -538,20 +532,20 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, options }, - spec: renewCredentialsOperationSpec + spec: renewCredentialsOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -568,107 +562,12 @@ export class AccountsImpl implements Accounts { async beginRenewCredentialsAndWait( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise { const poller = await this.beginRenewCredentials( resourceGroupName, accountName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - async beginMigrateEncryptionKey( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountsMigrateEncryptionKeyResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, options }, - spec: migrateEncryptionKeyOperationSpec - }); - const poller = await createHttpPoller< - AccountsMigrateEncryptionKeyResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - async beginMigrateEncryptionKeyAndWait( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise { - const poller = await this.beginMigrateEncryptionKey( - resourceGroupName, - accountName, - options + options, ); return poller.pollUntilDone(); } @@ -680,11 +579,11 @@ export class AccountsImpl implements Accounts { */ private _listBySubscriptionNext( nextLink: string, - options?: AccountsListBySubscriptionNextOptionalParams + options?: AccountsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -697,11 +596,11 @@ export class AccountsImpl implements Accounts { private _listNext( resourceGroupName: string, nextLink: string, - options?: AccountsListNextOptionalParams + options?: AccountsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -709,77 +608,81 @@ export class AccountsImpl implements Accounts { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 201: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 202: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 204: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], @@ -787,46 +690,53 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 201: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 202: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 204: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], @@ -834,91 +744,70 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const renewCredentialsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - serializer -}; -const migrateEncryptionKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateEncryption", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials", httpMethod: "POST", responses: { - 200: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 201: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 202: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 204: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.nextLink, - Parameters.resourceGroupName ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts index 54ca7befbc1b..992e0e5c4fa1 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { BackupPolicyPatch, BackupPoliciesUpdateOptionalParams, BackupPoliciesUpdateResponse, - BackupPoliciesDeleteOptionalParams + BackupPoliciesDeleteOptionalParams, } from "../models"; /// @@ -54,7 +54,7 @@ export class BackupPoliciesImpl implements BackupPolicies { public list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -72,9 +72,9 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, options?: BackupPoliciesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: BackupPoliciesListResponse; result = await this._list(resourceGroupName, accountName, options); @@ -92,12 +92,12 @@ export class BackupPoliciesImpl implements BackupPolicies { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -112,11 +112,11 @@ export class BackupPoliciesImpl implements BackupPolicies { private _list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -131,11 +131,11 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesGetOptionalParams + options?: BackupPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, backupPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -152,7 +152,7 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -161,21 +161,20 @@ export class BackupPoliciesImpl implements BackupPolicies { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -184,8 +183,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -193,15 +192,15 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, body, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< BackupPoliciesCreateResponse, @@ -209,7 +208,7 @@ export class BackupPoliciesImpl implements BackupPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -228,14 +227,14 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, backupPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -253,7 +252,7 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -262,21 +261,20 @@ export class BackupPoliciesImpl implements BackupPolicies { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -285,8 +283,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -294,15 +292,15 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BackupPoliciesUpdateResponse, @@ -310,7 +308,7 @@ export class BackupPoliciesImpl implements BackupPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -329,14 +327,14 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, backupPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -352,25 +350,24 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -379,8 +376,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -388,20 +385,20 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -418,13 +415,13 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, backupPolicyName, - options + options, ); return poller.pollUntilDone(); } @@ -433,34 +430,36 @@ export class BackupPoliciesImpl implements BackupPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupPoliciesList + bodyMapper: Mappers.BackupPoliciesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,87 +467,97 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 201: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 202: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 204: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body27, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 201: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 202: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 204: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body28, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupVaults.ts b/sdk/netapp/arm-netapp/src/operations/backupVaults.ts deleted file mode 100644 index 84e178f89414..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupVaults.ts +++ /dev/null @@ -1,657 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BackupVaults } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupVault, - BackupVaultsListByNetAppAccountNextOptionalParams, - BackupVaultsListByNetAppAccountOptionalParams, - BackupVaultsListByNetAppAccountResponse, - BackupVaultsGetOptionalParams, - BackupVaultsGetResponse, - BackupVaultsCreateOrUpdateOptionalParams, - BackupVaultsCreateOrUpdateResponse, - BackupVaultPatch, - BackupVaultsUpdateOptionalParams, - BackupVaultsUpdateResponse, - BackupVaultsDeleteOptionalParams, - BackupVaultsDeleteResponse, - BackupVaultsListByNetAppAccountNextResponse -} from "../models"; - -/// -/** Class containing BackupVaults operations. */ -export class BackupVaultsImpl implements BackupVaults { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupVaults class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - public listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByNetAppAccountPagingAll( - resourceGroupName, - accountName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listByNetAppAccountPagingPage( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: BackupVaultsListByNetAppAccountResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByNetAppAccount( - resourceGroupName, - accountName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByNetAppAccountNext( - resourceGroupName, - accountName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByNetAppAccountPagingAll( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - private _listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec - ); - } - - /** - * Get the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, options }, - getOperationSpec - ); - } - - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, body, options }, - spec: createOrUpdateOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - accountName, - backupVaultName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, body, options }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - accountName, - backupVaultName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupVaultName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListByNetAppAccountNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param nextLink The nextLink from the previous successful call to the ListByNetAppAccount method. - * @param options The options parameters. - */ - private _listByNetAppAccountNext( - resourceGroupName: string, - accountName: string, - nextLink: string, - options?: BackupVaultsListByNetAppAccountNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, nextLink, options }, - listByNetAppAccountNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVaultsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - 201: { - bodyMapper: Mappers.BackupVault - }, - 202: { - bodyMapper: Mappers.BackupVault - }, - 204: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body34, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - 201: { - bodyMapper: Mappers.BackupVault - }, - 202: { - bodyMapper: Mappers.BackupVault - }, - 204: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body35, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 201: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 202: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 204: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByNetAppAccountNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVaultsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backups.ts b/sdk/netapp/arm-netapp/src/operations/backups.ts index f47ed8a1d63a..64e894b21396 100644 --- a/sdk/netapp/arm-netapp/src/operations/backups.ts +++ b/sdk/netapp/arm-netapp/src/operations/backups.ts @@ -6,40 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; import { Backups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { NetAppManagementClient } from "../netAppManagementClient"; import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - Backup, - BackupsListByVaultNextOptionalParams, - BackupsListByVaultOptionalParams, - BackupsListByVaultResponse, - BackupsGetLatestStatusOptionalParams, - BackupsGetLatestStatusResponse, BackupsGetVolumeRestoreStatusOptionalParams, BackupsGetVolumeRestoreStatusResponse, - BackupsGetOptionalParams, - BackupsGetResponse, - BackupsCreateOptionalParams, - BackupsCreateResponse, - BackupsUpdateOptionalParams, - BackupsUpdateResponse, - BackupsDeleteOptionalParams, - BackupsDeleteResponse, - BackupsListByVaultNextResponse } from "../models"; -/// /** Class containing Backups operations. */ export class BackupsImpl implements Backups { private readonly client: NetAppManagementClient; @@ -52,120 +28,6 @@ export class BackupsImpl implements Backups { this.client = client; } - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - public listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByVaultPagingAll( - resourceGroupName, - accountName, - backupVaultName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByVaultPagingPage( - resourceGroupName, - accountName, - backupVaultName, - options, - settings - ); - } - }; - } - - private async *listByVaultPagingPage( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: BackupsListByVaultResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByVault( - resourceGroupName, - accountName, - backupVaultName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByVaultNext( - resourceGroupName, - accountName, - backupVaultName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByVaultPagingAll( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByVaultPagingPage( - resourceGroupName, - accountName, - backupVaultName, - options - )) { - yield* page; - } - } - - /** - * Get the latest status of the backup for a volume - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - getLatestStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsGetLatestStatusOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, poolName, volumeName, options }, - getLatestStatusOperationSpec - ); - } - /** * Get the status of the restore for a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -179,620 +41,37 @@ export class BackupsImpl implements Backups { accountName: string, poolName: string, volumeName: string, - options?: BackupsGetVolumeRestoreStatusOptionalParams + options?: BackupsGetVolumeRestoreStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - getVolumeRestoreStatusOperationSpec - ); - } - - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - private _listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, options }, - listByVaultOperationSpec - ); - } - - /** - * Get the specified Backup under Backup Vault. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, backupName, options }, - getOperationSpec - ); - } - - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - }, - spec: createOperationSpec - }); - const poller = await createHttpPoller< - BackupsCreateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - BackupsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - BackupsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListByVaultNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param nextLink The nextLink from the previous successful call to the ListByVault method. - * @param options The options parameters. - */ - private _listByVaultNext( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - nextLink: string, - options?: BackupsListByVaultNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, nextLink, options }, - listByVaultNextOperationSpec + getVolumeRestoreStatusOperationSpec, ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getLatestStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupStatus - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept], - serializer -}; const getVolumeRestoreStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestoreStatus - }, - default: {} - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByVaultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - 201: { - bodyMapper: Mappers.Backup - }, - 202: { - bodyMapper: Mappers.Backup - }, - 204: { - bodyMapper: Mappers.Backup + bodyMapper: Mappers.RestoreStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body25, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - 201: { - bodyMapper: Mappers.Backup - }, - 202: { - bodyMapper: Mappers.Backup - }, - 204: { - bodyMapper: Mappers.Backup + bodyMapper: Mappers.ErrorResponse, }, - default: { - bodyMapper: Mappers.ErrorResponse - } }, - requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 201: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 202: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 204: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByVaultNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName + Parameters.poolName, + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts deleted file mode 100644 index 526ec4637d66..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts +++ /dev/null @@ -1,169 +0,0 @@ -/* - * 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 { BackupsUnderAccount } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupsMigrationRequest, - BackupsUnderAccountMigrateBackupsOptionalParams, - BackupsUnderAccountMigrateBackupsResponse -} from "../models"; - -/** Class containing BackupsUnderAccount operations. */ -export class BackupsUnderAccountImpl implements BackupsUnderAccount { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderAccount class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackups( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderAccountMigrateBackupsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, body, options }, - spec: migrateBackupsOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderAccountMigrateBackupsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise { - const poller = await this.beginMigrateBackups( - resourceGroupName, - accountName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const migrateBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body37, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts deleted file mode 100644 index 5a72ba838517..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * 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 { BackupsUnderBackupVault } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupRestoreFiles, - BackupsUnderBackupVaultRestoreFilesOptionalParams, - BackupsUnderBackupVaultRestoreFilesResponse -} from "../models"; - -/** Class containing BackupsUnderBackupVault operations. */ -export class BackupsUnderBackupVaultImpl implements BackupsUnderBackupVault { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderBackupVault class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginRestoreFiles( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderBackupVaultRestoreFilesResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - }, - spec: restoreFilesOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderBackupVaultRestoreFilesResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginRestoreFilesAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise { - const poller = await this.beginRestoreFiles( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const restoreFilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}/restoreFiles", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body36, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts deleted file mode 100644 index 977c95387438..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * 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 { BackupsUnderVolume } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupsMigrationRequest, - BackupsUnderVolumeMigrateBackupsOptionalParams, - BackupsUnderVolumeMigrateBackupsResponse -} from "../models"; - -/** Class containing BackupsUnderVolume operations. */ -export class BackupsUnderVolumeImpl implements BackupsUnderVolume { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderVolume class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackups( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderVolumeMigrateBackupsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - poolName, - volumeName, - body, - options - }, - spec: migrateBackupsOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderVolumeMigrateBackupsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise { - const poller = await this.beginMigrateBackups( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const migrateBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/migrateBackups", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body37, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/index.ts b/sdk/netapp/arm-netapp/src/operations/index.ts index 85ac01dc9a6e..3452b163b6da 100644 --- a/sdk/netapp/arm-netapp/src/operations/index.ts +++ b/sdk/netapp/arm-netapp/src/operations/index.ts @@ -9,19 +9,13 @@ export * from "./operations"; export * from "./netAppResource"; export * from "./netAppResourceQuotaLimits"; -export * from "./netAppResourceRegionInfos"; export * from "./accounts"; export * from "./pools"; export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; -export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; export * from "./volumeGroups"; export * from "./subvolumes"; -export * from "./backupVaults"; -export * from "./backupsUnderBackupVault"; -export * from "./backupsUnderVolume"; -export * from "./backupsUnderAccount"; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts index 2f7f08795a07..9761eff122b5 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts @@ -14,7 +14,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { NetAppResourceQueryNetworkSiblingSetResponse, NetworkFeatures, NetAppResourceUpdateNetworkSiblingSetOptionalParams, - NetAppResourceUpdateNetworkSiblingSetResponse + NetAppResourceUpdateNetworkSiblingSetResponse, } from "../models"; /** Class containing NetAppResource operations. */ @@ -60,11 +60,11 @@ export class NetAppResourceImpl implements NetAppResource { name: string, typeParam: CheckNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckNameAvailabilityOptionalParams + options?: NetAppResourceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, typeParam, resourceGroup, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -80,11 +80,11 @@ export class NetAppResourceImpl implements NetAppResource { location: string, name: string, subnetId: string, - options?: NetAppResourceCheckFilePathAvailabilityOptionalParams + options?: NetAppResourceCheckFilePathAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, subnetId, options }, - checkFilePathAvailabilityOperationSpec + checkFilePathAvailabilityOperationSpec, ); } @@ -101,11 +101,11 @@ export class NetAppResourceImpl implements NetAppResource { name: string, typeParam: CheckQuotaNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckQuotaAvailabilityOptionalParams + options?: NetAppResourceCheckQuotaAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, typeParam, resourceGroup, options }, - checkQuotaAvailabilityOperationSpec + checkQuotaAvailabilityOperationSpec, ); } @@ -116,11 +116,11 @@ export class NetAppResourceImpl implements NetAppResource { */ queryRegionInfo( location: string, - options?: NetAppResourceQueryRegionInfoOptionalParams + options?: NetAppResourceQueryRegionInfoOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - queryRegionInfoOperationSpec + queryRegionInfoOperationSpec, ); } @@ -138,11 +138,11 @@ export class NetAppResourceImpl implements NetAppResource { location: string, networkSiblingSetId: string, subnetId: string, - options?: NetAppResourceQueryNetworkSiblingSetOptionalParams + options?: NetAppResourceQueryNetworkSiblingSetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, networkSiblingSetId, subnetId, options }, - queryNetworkSiblingSetOperationSpec + queryNetworkSiblingSetOperationSpec, ); } @@ -156,7 +156,7 @@ export class NetAppResourceImpl implements NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ async beginUpdateNetworkSiblingSet( @@ -165,7 +165,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -174,21 +174,20 @@ export class NetAppResourceImpl implements NetAppResource { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -197,8 +196,8 @@ export class NetAppResourceImpl implements NetAppResource { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -206,8 +205,8 @@ export class NetAppResourceImpl implements NetAppResource { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -219,9 +218,9 @@ export class NetAppResourceImpl implements NetAppResource { subnetId, networkSiblingSetStateId, networkFeatures, - options + options, }, - spec: updateNetworkSiblingSetOperationSpec + spec: updateNetworkSiblingSetOperationSpec, }); const poller = await createHttpPoller< NetAppResourceUpdateNetworkSiblingSetResponse, @@ -229,7 +228,7 @@ export class NetAppResourceImpl implements NetAppResource { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -245,7 +244,7 @@ export class NetAppResourceImpl implements NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ async beginUpdateNetworkSiblingSetAndWait( @@ -254,7 +253,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise { const poller = await this.beginUpdateNetworkSiblingSet( location, @@ -262,7 +261,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId, networkSiblingSetStateId, networkFeatures, - options + options, ); return poller.pollUntilDone(); } @@ -271,170 +270,172 @@ export class NetAppResourceImpl implements NetAppResource { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], typeParam: ["typeParam"], - resourceGroup: ["resourceGroup"] + resourceGroup: ["resourceGroup"], }, - mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true } + mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkFilePathAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], subnetId: ["subnetId"] }, - mapper: { ...Mappers.FilePathAvailabilityRequest, required: true } + mapper: { ...Mappers.FilePathAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkQuotaAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], typeParam: ["typeParam"], - resourceGroup: ["resourceGroup"] + resourceGroup: ["resourceGroup"], }, - mapper: { ...Mappers.QuotaAvailabilityRequest, required: true } + mapper: { ...Mappers.QuotaAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const queryRegionInfoOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionInfo + bodyMapper: Mappers.RegionInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const queryNetworkSiblingSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { networkSiblingSetId: ["networkSiblingSetId"], - subnetId: ["subnetId"] + subnetId: ["subnetId"], }, - mapper: { ...Mappers.QueryNetworkSiblingSetRequest, required: true } + mapper: { ...Mappers.QueryNetworkSiblingSetRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateNetworkSiblingSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 201: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 202: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 204: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { networkSiblingSetId: ["networkSiblingSetId"], subnetId: ["subnetId"], networkSiblingSetStateId: ["networkSiblingSetStateId"], - networkFeatures: ["networkFeatures"] + networkFeatures: ["networkFeatures"], }, - mapper: { ...Mappers.UpdateNetworkSiblingSetRequest, required: true } + mapper: { ...Mappers.UpdateNetworkSiblingSetRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts b/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts index e727476ef69d..3e71b7c2ca9c 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts @@ -17,13 +17,14 @@ import { NetAppResourceQuotaLimitsListOptionalParams, NetAppResourceQuotaLimitsListResponse, NetAppResourceQuotaLimitsGetOptionalParams, - NetAppResourceQuotaLimitsGetResponse + NetAppResourceQuotaLimitsGetResponse, } from "../models"; /// /** Class containing NetAppResourceQuotaLimits operations. */ export class NetAppResourceQuotaLimitsImpl - implements NetAppResourceQuotaLimits { + implements NetAppResourceQuotaLimits +{ private readonly client: NetAppManagementClient; /** @@ -41,7 +42,7 @@ export class NetAppResourceQuotaLimitsImpl */ public list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -56,14 +57,14 @@ export class NetAppResourceQuotaLimitsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: NetAppResourceQuotaLimitsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: NetAppResourceQuotaLimitsListResponse; result = await this._list(location, options); @@ -72,7 +73,7 @@ export class NetAppResourceQuotaLimitsImpl private async *listPagingAll( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -86,11 +87,11 @@ export class NetAppResourceQuotaLimitsImpl */ private _list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -103,11 +104,11 @@ export class NetAppResourceQuotaLimitsImpl get( location: string, quotaLimitName: string, - options?: NetAppResourceQuotaLimitsGetOptionalParams + options?: NetAppResourceQuotaLimitsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, quotaLimitName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -115,41 +116,43 @@ export class NetAppResourceQuotaLimitsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionQuotaItemList + bodyMapper: Mappers.SubscriptionQuotaItemList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionQuotaItem + bodyMapper: Mappers.SubscriptionQuotaItem, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.quotaLimitName + Parameters.quotaLimitName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts b/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts deleted file mode 100644 index e761953bccc0..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts +++ /dev/null @@ -1,209 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { NetAppResourceRegionInfos } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - RegionInfoResource, - NetAppResourceRegionInfosListNextOptionalParams, - NetAppResourceRegionInfosListOptionalParams, - NetAppResourceRegionInfosListResponse, - NetAppResourceRegionInfosGetOptionalParams, - NetAppResourceRegionInfosGetResponse, - NetAppResourceRegionInfosListNextResponse -} from "../models"; - -/// -/** Class containing NetAppResourceRegionInfos operations. */ -export class NetAppResourceRegionInfosImpl - implements NetAppResourceRegionInfos { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class NetAppResourceRegionInfos class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(location, options, settings); - } - }; - } - - private async *listPagingPage( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: NetAppResourceRegionInfosListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(location, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(location, options)) { - yield* page; - } - } - - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec - ); - } - - /** - * Provides storage to network proximity and logical zone mapping information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - get( - location: string, - options?: NetAppResourceRegionInfosGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - getOperationSpec - ); - } - - /** - * ListNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - location: string, - nextLink: string, - options?: NetAppResourceRegionInfosListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfosList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos/default", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfoResource - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfosList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/operations.ts b/sdk/netapp/arm-netapp/src/operations/operations.ts index 799ecf93a97a..af4f63ff9641 100644 --- a/sdk/netapp/arm-netapp/src/operations/operations.ts +++ b/sdk/netapp/arm-netapp/src/operations/operations.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { Operation, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -51,13 +51,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); @@ -65,7 +65,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -77,7 +77,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,12 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/pools.ts b/sdk/netapp/arm-netapp/src/operations/pools.ts index f474039b7493..87c5b3a73adc 100644 --- a/sdk/netapp/arm-netapp/src/operations/pools.ts +++ b/sdk/netapp/arm-netapp/src/operations/pools.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { PoolsUpdateOptionalParams, PoolsUpdateResponse, PoolsDeleteOptionalParams, - PoolsListNextResponse + PoolsListNextResponse, } from "../models"; /// @@ -57,7 +57,7 @@ export class PoolsImpl implements Pools { public list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -75,9 +75,9 @@ export class PoolsImpl implements Pools { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, options?: PoolsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PoolsListResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class PoolsImpl implements Pools { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class PoolsImpl implements Pools { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class PoolsImpl implements Pools { private _list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -152,11 +152,11 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsGetOptionalParams + options?: PoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -173,7 +173,7 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -182,21 +182,20 @@ export class PoolsImpl implements Pools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -205,8 +204,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -214,15 +213,15 @@ export class PoolsImpl implements Pools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, body, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PoolsCreateOrUpdateResponse, @@ -230,7 +229,7 @@ export class PoolsImpl implements Pools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -249,14 +248,14 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, accountName, poolName, body, - options + options, ); return poller.pollUntilDone(); } @@ -274,27 +273,26 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise< SimplePollerLike, PoolsUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -303,8 +301,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -312,15 +310,15 @@ export class PoolsImpl implements Pools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PoolsUpdateResponse, @@ -328,7 +326,7 @@ export class PoolsImpl implements Pools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -347,14 +345,14 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, poolName, body, - options + options, ); return poller.pollUntilDone(); } @@ -370,25 +368,24 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -397,8 +394,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -406,20 +403,20 @@ export class PoolsImpl implements Pools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -436,13 +433,13 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, - options + options, ); return poller.pollUntilDone(); } @@ -458,11 +455,11 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, nextLink: string, - options?: PoolsListNextOptionalParams + options?: PoolsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -470,34 +467,36 @@ export class PoolsImpl implements Pools { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPoolList + bodyMapper: Mappers.CapacityPoolList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -505,106 +504,118 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 201: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 202: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 204: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body8, + requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 201: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 202: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 204: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body9, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPoolList + bodyMapper: Mappers.CapacityPoolList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts index 2b2ca74dd838..3a87e033d785 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { SnapshotPoliciesUpdateResponse, SnapshotPoliciesDeleteOptionalParams, SnapshotPoliciesListVolumesOptionalParams, - SnapshotPoliciesListVolumesResponse + SnapshotPoliciesListVolumesResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { public list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -74,9 +74,9 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, options?: SnapshotPoliciesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotPoliciesListResponse; result = await this._list(resourceGroupName, accountName, options); @@ -94,12 +94,12 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -114,11 +114,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { private _list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -133,11 +133,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesGetOptionalParams + options?: SnapshotPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -154,11 +154,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicy, - options?: SnapshotPoliciesCreateOptionalParams + options?: SnapshotPoliciesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, body, options }, - createOperationSpec + createOperationSpec, ); } @@ -175,7 +175,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -184,21 +184,20 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -207,8 +206,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -216,8 +215,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -228,9 +227,9 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName, snapshotPolicyName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotPoliciesUpdateResponse, @@ -238,7 +237,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -257,14 +256,14 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, snapshotPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -280,25 +279,24 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -307,8 +305,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -316,20 +314,20 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, snapshotPolicyName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -346,13 +344,13 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, snapshotPolicyName, - options + options, ); return poller.pollUntilDone(); } @@ -368,11 +366,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesListVolumesOptionalParams + options?: SnapshotPoliciesListVolumesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, options }, - listVolumesOperationSpec + listVolumesOperationSpec, ); } } @@ -380,34 +378,36 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPoliciesList + bodyMapper: Mappers.SnapshotPoliciesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -415,93 +415,104 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 201: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body23, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 201: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 202: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 204: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body24, + requestBody: Parameters.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listVolumesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicyVolumeList + bodyMapper: Mappers.SnapshotPolicyVolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -509,8 +520,8 @@ const listVolumesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/snapshots.ts b/sdk/netapp/arm-netapp/src/operations/snapshots.ts index a3c94dea49e7..59f879981f82 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshots.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,7 +30,7 @@ import { SnapshotsUpdateResponse, SnapshotsDeleteOptionalParams, SnapshotRestoreFiles, - SnapshotsRestoreFilesOptionalParams + SnapshotsRestoreFilesOptionalParams, } from "../models"; /// @@ -59,14 +59,14 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -85,9 +85,9 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +97,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, options?: SnapshotsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListResponse; result = await this._list( @@ -105,7 +105,7 @@ export class SnapshotsImpl implements Snapshots { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -115,14 +115,14 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listOperationSpec + listOperationSpec, ); } @@ -164,7 +164,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -173,9 +173,9 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -196,7 +196,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -205,21 +205,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -228,8 +227,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -237,8 +236,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -251,9 +250,9 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< SnapshotsCreateResponse, @@ -261,7 +260,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -284,7 +283,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -293,7 +292,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -315,7 +314,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -324,21 +323,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -347,8 +345,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -356,8 +354,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -370,9 +368,9 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotsUpdateResponse, @@ -380,7 +378,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -403,7 +401,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -412,7 +410,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -432,25 +430,24 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -459,8 +456,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -468,8 +465,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -481,14 +478,14 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -509,7 +506,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -517,7 +514,7 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -539,25 +536,24 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -566,8 +562,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -575,8 +571,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -589,14 +585,14 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: restoreFilesOperationSpec + spec: restoreFilesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -619,7 +615,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise { const poller = await this.beginRestoreFiles( resourceGroupName, @@ -628,7 +624,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -637,14 +633,15 @@ export class SnapshotsImpl implements Snapshots { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotsList + bodyMapper: Mappers.SnapshotsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -653,20 +650,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -676,31 +674,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body20, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -709,32 +708,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body21, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -743,17 +743,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -762,16 +769,24 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const restoreFilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body22, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -780,9 +795,9 @@ const restoreFilesOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts index ec5c0ba72c67..bc6bc4afe945 100644 --- a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,7 +34,7 @@ import { SubvolumesDeleteOptionalParams, SubvolumesGetMetadataOptionalParams, SubvolumesGetMetadataResponse, - SubvolumesListByVolumeNextResponse + SubvolumesListByVolumeNextResponse, } from "../models"; /// @@ -63,14 +63,14 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVolumePagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -89,9 +89,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -101,7 +101,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, options?: SubvolumesListByVolumeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubvolumesListByVolumeResponse; let continuationToken = settings?.continuationToken; @@ -111,7 +111,7 @@ export class SubvolumesImpl implements Subvolumes { accountName, poolName, volumeName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -125,7 +125,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -139,14 +139,14 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVolumePagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -165,11 +165,11 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listByVolumeOperationSpec + listByVolumeOperationSpec, ); } @@ -188,7 +188,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetOptionalParams + options?: SubvolumesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -197,9 +197,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -220,7 +220,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -229,21 +229,20 @@ export class SubvolumesImpl implements Subvolumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -252,8 +251,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -261,8 +260,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -275,9 +274,9 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< SubvolumesCreateResponse, @@ -285,7 +284,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -308,7 +307,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -317,7 +316,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -339,7 +338,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -348,21 +347,20 @@ export class SubvolumesImpl implements Subvolumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -371,8 +369,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -380,8 +378,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -394,9 +392,9 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SubvolumesUpdateResponse, @@ -404,7 +402,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -427,7 +425,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -436,7 +434,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -456,25 +454,24 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -483,8 +480,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -492,8 +489,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -505,14 +502,14 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -533,7 +530,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -541,7 +538,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, ); return poller.pollUntilDone(); } @@ -561,7 +558,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -570,21 +567,20 @@ export class SubvolumesImpl implements Subvolumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -593,8 +589,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -602,8 +598,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -615,9 +611,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - spec: getMetadataOperationSpec + spec: getMetadataOperationSpec, }); const poller = await createHttpPoller< SubvolumesGetMetadataResponse, @@ -625,7 +621,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -646,7 +642,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise { const poller = await this.beginGetMetadata( resourceGroupName, @@ -654,7 +650,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, ); return poller.pollUntilDone(); } @@ -674,7 +670,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, nextLink: string, - options?: SubvolumesListByVolumeNextOptionalParams + options?: SubvolumesListByVolumeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -683,9 +679,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, nextLink, - options + options, }, - listByVolumeNextOperationSpec + listByVolumeNextOperationSpec, ); } } @@ -693,14 +689,15 @@ export class SubvolumesImpl implements Subvolumes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVolumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumesList + bodyMapper: Mappers.SubvolumesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -709,20 +706,21 @@ const listByVolumeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -732,31 +730,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 201: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 202: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 204: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body32, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -765,32 +764,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 201: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 202: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 204: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body33, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -799,17 +799,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -818,28 +825,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const getMetadataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}/getMetadata", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}/getMetadata", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 201: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 202: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 204: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -849,29 +858,31 @@ const getMetadataOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByVolumeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumesList + bodyMapper: Mappers.SubvolumesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, Parameters.accountName, + Parameters.nextLink, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts index 68a88ec41859..091c74772ab0 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,7 +27,7 @@ import { VolumeGroupDetails, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, - VolumeGroupsDeleteOptionalParams + VolumeGroupsDeleteOptionalParams, } from "../models"; /// @@ -52,12 +52,12 @@ export class VolumeGroupsImpl implements VolumeGroups { public listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByNetAppAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -84,13 +84,13 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, options?: VolumeGroupsListByNetAppAccountOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumeGroupsListByNetAppAccountResponse; result = await this._listByNetAppAccount( resourceGroupName, accountName, - options + options, ); yield result.value || []; } @@ -98,12 +98,12 @@ export class VolumeGroupsImpl implements VolumeGroups { private async *listByNetAppAccountPagingAll( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByNetAppAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -118,11 +118,11 @@ export class VolumeGroupsImpl implements VolumeGroups { private _listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec + listByNetAppAccountOperationSpec, ); } @@ -137,11 +137,11 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsGetOptionalParams + options?: VolumeGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, volumeGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -158,7 +158,7 @@ export class VolumeGroupsImpl implements VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -167,21 +167,20 @@ export class VolumeGroupsImpl implements VolumeGroups { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -190,8 +189,8 @@ export class VolumeGroupsImpl implements VolumeGroups { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -199,22 +198,22 @@ export class VolumeGroupsImpl implements VolumeGroups { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, volumeGroupName, body, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< VolumeGroupsCreateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class VolumeGroupsImpl implements VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, volumeGroupName, body, - options + options, ); return poller.pollUntilDone(); } @@ -256,25 +255,24 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -283,8 +281,8 @@ export class VolumeGroupsImpl implements VolumeGroups { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -292,19 +290,19 @@ export class VolumeGroupsImpl implements VolumeGroups { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, volumeGroupName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -321,13 +319,13 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, volumeGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -336,34 +334,36 @@ export class VolumeGroupsImpl implements VolumeGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeGroupList + bodyMapper: Mappers.VolumeGroupList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,55 +371,64 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 201: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 202: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 204: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body31, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts index c09dcef9a150..9c4f0daabd4f 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { VolumeQuotaRulePatch, VolumeQuotaRulesUpdateOptionalParams, VolumeQuotaRulesUpdateResponse, - VolumeQuotaRulesDeleteOptionalParams + VolumeQuotaRulesDeleteOptionalParams, } from "../models"; /// @@ -58,14 +58,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVolumePagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -84,9 +84,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -96,7 +96,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, options?: VolumeQuotaRulesListByVolumeOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumeQuotaRulesListByVolumeResponse; result = await this._listByVolume( @@ -104,7 +104,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -114,14 +114,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVolumePagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listByVolumeOperationSpec + listByVolumeOperationSpec, ); } @@ -163,7 +163,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesGetOptionalParams + options?: VolumeQuotaRulesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -172,9 +172,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -195,7 +195,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -204,21 +204,20 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -227,8 +226,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -236,8 +235,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -250,9 +249,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< VolumeQuotaRulesCreateResponse, @@ -260,7 +259,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -283,7 +282,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -292,7 +291,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, ); return poller.pollUntilDone(); } @@ -314,7 +313,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -323,21 +322,20 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -346,8 +344,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -355,8 +353,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -369,9 +367,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VolumeQuotaRulesUpdateResponse, @@ -379,7 +377,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -402,7 +400,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -411,7 +409,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, ); return poller.pollUntilDone(); } @@ -431,25 +429,24 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -458,8 +455,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -467,8 +464,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -480,14 +477,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -508,7 +505,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -516,7 +513,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + options, ); return poller.pollUntilDone(); } @@ -525,14 +522,15 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVolumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRulesList + bodyMapper: Mappers.VolumeQuotaRulesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -541,20 +539,21 @@ const listByVolumeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -564,31 +563,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 201: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 202: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 204: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body29, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -597,32 +597,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 201: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 202: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 204: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body30, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -631,17 +632,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -650,7 +658,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumes.ts b/sdk/netapp/arm-netapp/src/operations/volumes.ts index ecb1ca29cafc..36d86af7c7cd 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumes.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -41,8 +41,6 @@ import { VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, VolumesResetCifsPasswordResponse, - VolumesSplitCloneFromParentOptionalParams, - VolumesSplitCloneFromParentResponse, VolumesBreakFileLocksOptionalParams, GetGroupIdListForLdapUserRequest, VolumesListGetGroupIdListForLdapUserOptionalParams, @@ -62,7 +60,7 @@ import { VolumesRelocateOptionalParams, VolumesFinalizeRelocationOptionalParams, VolumesRevertRelocationOptionalParams, - VolumesListNextResponse + VolumesListNextResponse, } from "../models"; /// @@ -89,13 +87,13 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, poolName, - options + options, ); return { next() { @@ -113,9 +111,9 @@ export class VolumesImpl implements Volumes { accountName, poolName, options, - settings + settings, ); - } + }, }; } @@ -124,7 +122,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, options?: VolumesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListResponse; let continuationToken = settings?.continuationToken; @@ -133,7 +131,7 @@ export class VolumesImpl implements Volumes { resourceGroupName, accountName, poolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -146,7 +144,7 @@ export class VolumesImpl implements Volumes { accountName, poolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -159,13 +157,13 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, poolName, - options + options, )) { yield* page; } @@ -184,14 +182,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listReplicationsPagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -210,9 +208,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -222,7 +220,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, options?: VolumesListReplicationsOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListReplicationsResponse; result = await this._listReplications( @@ -230,7 +228,7 @@ export class VolumesImpl implements Volumes { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -240,14 +238,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listReplicationsPagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -264,11 +262,11 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -285,11 +283,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - getOperationSpec + getOperationSpec, ); } @@ -308,7 +306,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -317,21 +315,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -340,8 +337,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -349,8 +346,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -362,9 +359,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VolumesCreateOrUpdateResponse, @@ -372,7 +369,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -393,7 +390,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -401,7 +398,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -421,7 +418,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -430,21 +427,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -453,8 +449,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -462,8 +458,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -475,9 +471,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VolumesUpdateResponse, @@ -485,7 +481,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -506,7 +502,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -514,7 +510,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -532,25 +528,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -559,8 +554,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -568,20 +563,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -600,14 +595,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -625,7 +620,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -634,21 +629,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -657,8 +651,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -666,15 +660,15 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: populateAvailabilityZoneOperationSpec + spec: populateAvailabilityZoneOperationSpec, }); const poller = await createHttpPoller< VolumesPopulateAvailabilityZoneResponse, @@ -682,7 +676,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -701,14 +695,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise { const poller = await this.beginPopulateAvailabilityZone( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -728,25 +722,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -755,8 +748,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -764,8 +757,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -777,14 +770,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: revertOperationSpec + spec: revertOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -805,7 +798,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise { const poller = await this.beginRevert( resourceGroupName, @@ -813,7 +806,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -831,7 +824,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -840,21 +833,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -863,8 +855,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -872,22 +864,22 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: resetCifsPasswordOperationSpec + spec: resetCifsPasswordOperationSpec, }); const poller = await createHttpPoller< VolumesResetCifsPasswordResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -906,115 +898,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise { const poller = await this.beginResetCifsPassword( resourceGroupName, accountName, poolName, volumeName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - async beginSplitCloneFromParent( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VolumesSplitCloneFromParentResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: splitCloneFromParentOperationSpec - }); - const poller = await createHttpPoller< - VolumesSplitCloneFromParentResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - async beginSplitCloneFromParentAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise { - const poller = await this.beginSplitCloneFromParent( - resourceGroupName, - accountName, - poolName, - volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1032,25 +923,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1059,8 +949,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1068,20 +958,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: breakFileLocksOperationSpec + spec: breakFileLocksOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1100,14 +990,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise { const poller = await this.beginBreakFileLocks( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1127,7 +1017,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1136,21 +1026,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1159,8 +1048,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1168,8 +1057,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1181,9 +1070,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: listGetGroupIdListForLdapUserOperationSpec + spec: listGetGroupIdListForLdapUserOperationSpec, }); const poller = await createHttpPoller< VolumesListGetGroupIdListForLdapUserResponse, @@ -1191,7 +1080,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1212,7 +1101,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise { const poller = await this.beginListGetGroupIdListForLdapUser( resourceGroupName, @@ -1220,7 +1109,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1238,25 +1127,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1265,8 +1153,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1274,20 +1162,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: breakReplicationOperationSpec + spec: breakReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1306,14 +1194,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise { const poller = await this.beginBreakReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1334,25 +1222,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1361,8 +1248,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1370,8 +1257,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1383,14 +1270,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: reestablishReplicationOperationSpec + spec: reestablishReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1412,7 +1299,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise { const poller = await this.beginReestablishReplication( resourceGroupName, @@ -1420,7 +1307,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1438,11 +1325,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReplicationStatusOptionalParams + options?: VolumesReplicationStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - replicationStatusOperationSpec + replicationStatusOperationSpec, ); } @@ -1459,11 +1346,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listReplicationsOperationSpec + listReplicationsOperationSpec, ); } @@ -1481,25 +1368,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1508,8 +1394,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1517,20 +1403,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: resyncReplicationOperationSpec + spec: resyncReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1550,14 +1436,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise { const poller = await this.beginResyncReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1576,25 +1462,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1603,8 +1488,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1612,20 +1497,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: deleteReplicationOperationSpec + spec: deleteReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1645,14 +1530,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise { const poller = await this.beginDeleteReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1672,25 +1557,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1699,8 +1583,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1708,8 +1592,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1721,14 +1605,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: authorizeReplicationOperationSpec + spec: authorizeReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1749,7 +1633,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise { const poller = await this.beginAuthorizeReplication( resourceGroupName, @@ -1757,7 +1641,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1775,25 +1659,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1802,8 +1685,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1811,20 +1694,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: reInitializeReplicationOperationSpec + spec: reInitializeReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1843,14 +1726,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise { const poller = await this.beginReInitializeReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1870,25 +1753,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1897,8 +1779,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1906,8 +1788,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1919,14 +1801,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: poolChangeOperationSpec + spec: poolChangeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1947,7 +1829,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise { const poller = await this.beginPoolChange( resourceGroupName, @@ -1955,7 +1837,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1973,25 +1855,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2000,8 +1881,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2009,19 +1890,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: relocateOperationSpec + spec: relocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2040,14 +1921,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise { const poller = await this.beginRelocate( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2065,25 +1946,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2092,8 +1972,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2101,19 +1981,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: finalizeRelocationOperationSpec + spec: finalizeRelocationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2132,14 +2012,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise { const poller = await this.beginFinalizeRelocation( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2158,25 +2038,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -2185,8 +2064,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2194,19 +2073,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: revertRelocationOperationSpec + spec: revertRelocationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2226,14 +2105,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise { const poller = await this.beginRevertRelocation( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2251,11 +2130,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, nextLink: string, - options?: VolumesListNextOptionalParams + options?: VolumesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -2263,14 +2142,15 @@ export class VolumesImpl implements Volumes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2278,20 +2158,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2300,31 +2181,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body10, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2332,34 +2214,33 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body11, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2367,17 +2248,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion, Parameters.forceDelete], urlParameters: [ Parameters.$host, @@ -2385,30 +2273,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const populateAvailabilityZoneOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2417,49 +2305,24 @@ const populateAvailabilityZoneOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const revertOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body12, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.contentType], - mediaType: "json", - serializer -}; -const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert", httpMethod: "POST", responses: { - 200: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 201: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 202: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 204: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2467,30 +2330,31 @@ const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; -const splitCloneFromParentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent", +const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 201: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 202: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 204: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2499,17 +2363,24 @@ const splitCloneFromParentOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const breakFileLocksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body13, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2517,34 +2388,33 @@ const breakFileLocksOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 201: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 202: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 204: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body14, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2552,18 +2422,25 @@ const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const breakReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body15, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2571,18 +2448,25 @@ const breakReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reestablishReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body16, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2590,21 +2474,22 @@ const reestablishReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const replicationStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicationStatus + bodyMapper: Mappers.ReplicationStatus, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2613,20 +2498,21 @@ const replicationStatusOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listReplicationsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ListReplications + bodyMapper: Mappers.ListReplications, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2635,16 +2521,23 @@ const listReplicationsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const resyncReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2652,15 +2545,23 @@ const resyncReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const deleteReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2668,16 +2569,24 @@ const deleteReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const authorizeReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body17, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2685,17 +2594,24 @@ const authorizeReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reInitializeReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2703,16 +2619,24 @@ const reInitializeReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const poolChangeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body18, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2720,18 +2644,25 @@ const poolChangeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const relocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body19, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2739,17 +2670,24 @@ const relocateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const finalizeRelocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2757,15 +2695,23 @@ const finalizeRelocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const revertRelocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2773,27 +2719,30 @@ const revertRelocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.nextLink, + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts deleted file mode 100644 index 76a9abaa9f43..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - Backup, - AccountBackupsListByNetAppAccountOptionalParams, - AccountBackupsGetOptionalParams, - AccountBackupsGetResponse, - AccountBackupsDeleteOptionalParams, - AccountBackupsDeleteResponse -} from "../models"; - -/// -/** Interface representing a AccountBackups. */ -export interface AccountBackups { - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets the specified backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsGetOptionalParams - ): Promise; - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountBackupsDeleteResponse - > - >; - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts index e41cfb16a561..da771b6e975d 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts @@ -21,8 +21,6 @@ import { AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsRenewCredentialsOptionalParams, - AccountsMigrateEncryptionKeyOptionalParams, - AccountsMigrateEncryptionKeyResponse } from "../models"; /// @@ -33,7 +31,7 @@ export interface Accounts { * @param options The options parameters. */ listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * List and describe all NetApp accounts in the resource group. @@ -42,7 +40,7 @@ export interface Accounts { */ list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the NetApp account @@ -53,7 +51,7 @@ export interface Accounts { get( resourceGroupName: string, accountName: string, - options?: AccountsGetOptionalParams + options?: AccountsGetOptionalParams, ): Promise; /** * Create or update the specified NetApp account within the resource group @@ -66,7 +64,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +82,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the specified NetApp account @@ -95,7 +93,7 @@ export interface Accounts { beginDelete( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified NetApp account @@ -106,7 +104,7 @@ export interface Accounts { beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise; /** * Patch the specified NetApp account @@ -119,7 +117,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -137,7 +135,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise; /** * Renew identity credentials that are used to authenticate to key vault, for customer-managed key @@ -150,7 +148,7 @@ export interface Accounts { beginRenewCredentials( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise, void>>; /** * Renew identity credentials that are used to authenticate to key vault, for customer-managed key @@ -163,37 +161,6 @@ export interface Accounts { beginRenewCredentialsAndWait( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise; - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - beginMigrateEncryptionKey( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountsMigrateEncryptionKeyResponse - > - >; - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - beginMigrateEncryptionKeyAndWait( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts index 236434347e8b..b0cb669b33a1 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts @@ -18,7 +18,7 @@ import { BackupPolicyPatch, BackupPoliciesUpdateOptionalParams, BackupPoliciesUpdateResponse, - BackupPoliciesDeleteOptionalParams + BackupPoliciesDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface BackupPolicies { list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a particular backup Policy @@ -46,7 +46,7 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesGetOptionalParams + options?: BackupPoliciesGetOptionalParams, ): Promise; /** * Create a backup policy for Netapp Account @@ -61,7 +61,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -81,7 +81,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise; /** * Patch a backup policy for Netapp Account @@ -96,7 +96,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise; /** * Delete backup policy @@ -129,7 +129,7 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise, void>>; /** * Delete backup policy @@ -142,6 +142,6 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts deleted file mode 100644 index 49a3ab8e7a23..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupVault, - BackupVaultsListByNetAppAccountOptionalParams, - BackupVaultsGetOptionalParams, - BackupVaultsGetResponse, - BackupVaultsCreateOrUpdateOptionalParams, - BackupVaultsCreateOrUpdateResponse, - BackupVaultPatch, - BackupVaultsUpdateOptionalParams, - BackupVaultsUpdateResponse, - BackupVaultsDeleteOptionalParams, - BackupVaultsDeleteResponse -} from "../models"; - -/// -/** Interface representing a BackupVaults. */ -export interface BackupVaults { - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsGetOptionalParams - ): Promise; - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsCreateOrUpdateResponse - > - >; - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise; - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsUpdateResponse - > - >; - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise; - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsDeleteResponse - > - >; - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts index e799d65beac9..972e1faf79b7 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts @@ -6,56 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Backup, - BackupsListByVaultOptionalParams, - BackupsGetLatestStatusOptionalParams, - BackupsGetLatestStatusResponse, BackupsGetVolumeRestoreStatusOptionalParams, BackupsGetVolumeRestoreStatusResponse, - BackupsGetOptionalParams, - BackupsGetResponse, - BackupsCreateOptionalParams, - BackupsCreateResponse, - BackupsUpdateOptionalParams, - BackupsUpdateResponse, - BackupsDeleteOptionalParams, - BackupsDeleteResponse } from "../models"; -/// /** Interface representing a Backups. */ export interface Backups { - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the latest status of the backup for a volume - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - getLatestStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsGetLatestStatusOptionalParams - ): Promise; /** * Get the status of the restore for a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -69,130 +26,6 @@ export interface Backups { accountName: string, poolName: string, volumeName: string, - options?: BackupsGetVolumeRestoreStatusOptionalParams + options?: BackupsGetVolumeRestoreStatusOptionalParams, ): Promise; - /** - * Get the specified Backup under Backup Vault. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsGetOptionalParams - ): Promise; - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsCreateResponse - > - >; - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise; - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUpdateResponse - > - >; - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise; - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsDeleteResponse - > - >; - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts deleted file mode 100644 index a33aad6436c9..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupsMigrationRequest, - BackupsUnderAccountMigrateBackupsOptionalParams, - BackupsUnderAccountMigrateBackupsResponse -} from "../models"; - -/** Interface representing a BackupsUnderAccount. */ -export interface BackupsUnderAccount { - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackups( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderAccountMigrateBackupsResponse - > - >; - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts deleted file mode 100644 index 493f452dccdb..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupRestoreFiles, - BackupsUnderBackupVaultRestoreFilesOptionalParams, - BackupsUnderBackupVaultRestoreFilesResponse -} from "../models"; - -/** Interface representing a BackupsUnderBackupVault. */ -export interface BackupsUnderBackupVault { - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginRestoreFiles( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderBackupVaultRestoreFilesResponse - > - >; - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginRestoreFilesAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts deleted file mode 100644 index 48375bd2d2bb..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupsMigrationRequest, - BackupsUnderVolumeMigrateBackupsOptionalParams, - BackupsUnderVolumeMigrateBackupsResponse -} from "../models"; - -/** Interface representing a BackupsUnderVolume. */ -export interface BackupsUnderVolume { - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackups( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderVolumeMigrateBackupsResponse - > - >; - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts index 85ac01dc9a6e..3452b163b6da 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts @@ -9,19 +9,13 @@ export * from "./operations"; export * from "./netAppResource"; export * from "./netAppResourceQuotaLimits"; -export * from "./netAppResourceRegionInfos"; export * from "./accounts"; export * from "./pools"; export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; -export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; export * from "./volumeGroups"; export * from "./subvolumes"; -export * from "./backupVaults"; -export * from "./backupsUnderBackupVault"; -export * from "./backupsUnderVolume"; -export * from "./backupsUnderAccount"; diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts index ef0ae7423b66..0769a23448f5 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts @@ -22,7 +22,7 @@ import { NetAppResourceQueryNetworkSiblingSetResponse, NetworkFeatures, NetAppResourceUpdateNetworkSiblingSetOptionalParams, - NetAppResourceUpdateNetworkSiblingSetResponse + NetAppResourceUpdateNetworkSiblingSetResponse, } from "../models"; /** Interface representing a NetAppResource. */ @@ -40,7 +40,7 @@ export interface NetAppResource { name: string, typeParam: CheckNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckNameAvailabilityOptionalParams + options?: NetAppResourceCheckNameAvailabilityOptionalParams, ): Promise; /** * Check if a file path is available. @@ -54,7 +54,7 @@ export interface NetAppResource { location: string, name: string, subnetId: string, - options?: NetAppResourceCheckFilePathAvailabilityOptionalParams + options?: NetAppResourceCheckFilePathAvailabilityOptionalParams, ): Promise; /** * Check if a quota is available. @@ -69,7 +69,7 @@ export interface NetAppResource { name: string, typeParam: CheckQuotaNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckQuotaAvailabilityOptionalParams + options?: NetAppResourceCheckQuotaAvailabilityOptionalParams, ): Promise; /** * Provides storage to network proximity and logical zone mapping information. @@ -78,7 +78,7 @@ export interface NetAppResource { */ queryRegionInfo( location: string, - options?: NetAppResourceQueryRegionInfoOptionalParams + options?: NetAppResourceQueryRegionInfoOptionalParams, ): Promise; /** * Get details of the specified network sibling set. @@ -94,7 +94,7 @@ export interface NetAppResource { location: string, networkSiblingSetId: string, subnetId: string, - options?: NetAppResourceQueryNetworkSiblingSetOptionalParams + options?: NetAppResourceQueryNetworkSiblingSetOptionalParams, ): Promise; /** * Update the network features of the specified network sibling set. @@ -106,7 +106,7 @@ export interface NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ beginUpdateNetworkSiblingSet( @@ -115,7 +115,7 @@ export interface NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -132,7 +132,7 @@ export interface NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ beginUpdateNetworkSiblingSetAndWait( @@ -141,6 +141,6 @@ export interface NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts index bea88fbc025c..ef4fc7da424d 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts @@ -11,7 +11,7 @@ import { SubscriptionQuotaItem, NetAppResourceQuotaLimitsListOptionalParams, NetAppResourceQuotaLimitsGetOptionalParams, - NetAppResourceQuotaLimitsGetResponse + NetAppResourceQuotaLimitsGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface NetAppResourceQuotaLimits { */ list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the default and current subscription quota limit @@ -35,6 +35,6 @@ export interface NetAppResourceQuotaLimits { get( location: string, quotaLimitName: string, - options?: NetAppResourceQuotaLimitsGetOptionalParams + options?: NetAppResourceQuotaLimitsGetOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts deleted file mode 100644 index 8b96f828710a..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - RegionInfoResource, - NetAppResourceRegionInfosListOptionalParams, - NetAppResourceRegionInfosGetOptionalParams, - NetAppResourceRegionInfosGetResponse -} from "../models"; - -/// -/** Interface representing a NetAppResourceRegionInfos. */ -export interface NetAppResourceRegionInfos { - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Provides storage to network proximity and logical zone mapping information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - get( - location: string, - options?: NetAppResourceRegionInfosGetOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts index 2f1bec7ad1eb..d4637711f181 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts index e078fd280e99..4c122b5c6b41 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts @@ -18,7 +18,7 @@ import { CapacityPoolPatch, PoolsUpdateOptionalParams, PoolsUpdateResponse, - PoolsDeleteOptionalParams + PoolsDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Pools { list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified capacity pool @@ -46,7 +46,7 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsGetOptionalParams + options?: PoolsGetOptionalParams, ): Promise; /** * Create or Update a capacity pool @@ -61,7 +61,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -81,7 +81,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise; /** * Patch the specified capacity pool @@ -96,7 +96,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise< SimplePollerLike, PoolsUpdateResponse> >; @@ -113,7 +113,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise; /** * Delete the specified capacity pool @@ -126,7 +126,7 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified capacity pool @@ -139,6 +139,6 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts index 766050503ef7..f064853e49e5 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts @@ -20,7 +20,7 @@ import { SnapshotPoliciesUpdateResponse, SnapshotPoliciesDeleteOptionalParams, SnapshotPoliciesListVolumesOptionalParams, - SnapshotPoliciesListVolumesResponse + SnapshotPoliciesListVolumesResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface SnapshotPolicies { list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a snapshot Policy @@ -48,7 +48,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesGetOptionalParams + options?: SnapshotPoliciesGetOptionalParams, ): Promise; /** * Create a snapshot policy @@ -63,7 +63,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicy, - options?: SnapshotPoliciesCreateOptionalParams + options?: SnapshotPoliciesCreateOptionalParams, ): Promise; /** * Patch a snapshot policy @@ -78,7 +78,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -98,7 +98,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise; /** * Delete snapshot policy @@ -111,7 +111,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise, void>>; /** * Delete snapshot policy @@ -124,7 +124,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise; /** * Get volumes associated with snapshot policy @@ -137,6 +137,6 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesListVolumesOptionalParams + options?: SnapshotPoliciesListVolumesOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts index b2ceadcfa1b9..bb8252aaca3a 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts @@ -19,7 +19,7 @@ import { SnapshotsUpdateResponse, SnapshotsDeleteOptionalParams, SnapshotRestoreFiles, - SnapshotsRestoreFilesOptionalParams + SnapshotsRestoreFilesOptionalParams, } from "../models"; /// @@ -38,7 +38,7 @@ export interface Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified snapshot @@ -55,7 +55,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise; /** * Create the specified snapshot within the given volume @@ -74,7 +74,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -98,7 +98,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise; /** * Patch a snapshot @@ -117,7 +117,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -141,7 +141,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise; /** * Delete snapshot @@ -158,7 +158,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>>; /** * Delete snapshot @@ -175,7 +175,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise; /** * Restore the specified files from the specified snapshot to the active filesystem @@ -194,7 +194,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise, void>>; /** * Restore the specified files from the specified snapshot to the active filesystem @@ -213,6 +213,6 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts index 330fa9e4be94..becb5149c5f2 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts @@ -20,7 +20,7 @@ import { SubvolumesUpdateResponse, SubvolumesDeleteOptionalParams, SubvolumesGetMetadataOptionalParams, - SubvolumesGetMetadataResponse + SubvolumesGetMetadataResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the path associated with the subvolumeName provided @@ -56,7 +56,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetOptionalParams + options?: SubvolumesGetOptionalParams, ): Promise; /** * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath @@ -75,7 +75,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -99,7 +99,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise; /** * Patch a subvolume @@ -118,7 +118,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -142,7 +142,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise; /** * Delete subvolume @@ -159,7 +159,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise, void>>; /** * Delete subvolume @@ -176,7 +176,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise; /** * Get details of the specified subvolume @@ -193,7 +193,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -215,6 +215,6 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts index b82b1bf2e349..263db8d580cc 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts @@ -16,7 +16,7 @@ import { VolumeGroupDetails, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, - VolumeGroupsDeleteOptionalParams + VolumeGroupsDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface VolumeGroups { listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified volume group @@ -44,7 +44,7 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsGetOptionalParams + options?: VolumeGroupsGetOptionalParams, ): Promise; /** * Create a volume group along with specified volumes @@ -59,7 +59,7 @@ export interface VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -79,7 +79,7 @@ export interface VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise; /** * Delete the specified volume group only if there are no volumes under volume group. @@ -92,7 +92,7 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified volume group only if there are no volumes under volume group. @@ -105,6 +105,6 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts index 9595a483d298..35a1455f8256 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts @@ -18,7 +18,7 @@ import { VolumeQuotaRulePatch, VolumeQuotaRulesUpdateOptionalParams, VolumeQuotaRulesUpdateResponse, - VolumeQuotaRulesDeleteOptionalParams + VolumeQuotaRulesDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified quota rule @@ -54,7 +54,7 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesGetOptionalParams + options?: VolumeQuotaRulesGetOptionalParams, ): Promise; /** * Create the specified quota rule within the given volume @@ -73,7 +73,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -97,7 +97,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise; /** * Patch a quota rule @@ -116,7 +116,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -140,7 +140,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise; /** * Delete quota rule @@ -157,7 +157,7 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise, void>>; /** * Delete quota rule @@ -174,6 +174,6 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts index ef8cff8d1323..cfbeb257dc2c 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts @@ -27,8 +27,6 @@ import { VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, VolumesResetCifsPasswordResponse, - VolumesSplitCloneFromParentOptionalParams, - VolumesSplitCloneFromParentResponse, VolumesBreakFileLocksOptionalParams, GetGroupIdListForLdapUserRequest, VolumesListGetGroupIdListForLdapUserOptionalParams, @@ -47,7 +45,7 @@ import { VolumesPoolChangeOptionalParams, VolumesRelocateOptionalParams, VolumesFinalizeRelocationOptionalParams, - VolumesRevertRelocationOptionalParams + VolumesRevertRelocationOptionalParams, } from "../models"; /// @@ -64,7 +62,7 @@ export interface Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): PagedAsyncIterableIterator; /** * List all replications for a specified volume @@ -79,7 +77,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): PagedAsyncIterableIterator; /** * Get the details of the specified volume @@ -94,7 +92,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise; /** * Create or update the specified volume within the capacity pool @@ -111,7 +109,7 @@ export interface Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -133,7 +131,7 @@ export interface Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise; /** * Patch the specified volume @@ -150,7 +148,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -172,7 +170,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise; /** * Delete the specified volume @@ -187,7 +185,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified volume @@ -202,7 +200,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise; /** * This operation will populate availability zone information for a volume @@ -217,7 +215,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -237,7 +235,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise; /** * Revert a volume to the snapshot specified in the body @@ -254,7 +252,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise, void>>; /** * Revert a volume to the snapshot specified in the body @@ -271,7 +269,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise; /** * Reset cifs password from volume @@ -286,7 +284,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -306,43 +304,8 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise; - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - beginSplitCloneFromParent( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VolumesSplitCloneFromParentResponse - > - >; - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - beginSplitCloneFromParentAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise; /** * Break all the file locks on a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -356,7 +319,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise, void>>; /** * Break all the file locks on a volume @@ -371,7 +334,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise; /** * Returns the list of group Ids for a specific LDAP User @@ -388,7 +351,7 @@ export interface Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -410,7 +373,7 @@ export interface Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise; /** * Break the replication connection on the destination volume @@ -425,7 +388,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise, void>>; /** * Break the replication connection on the destination volume @@ -440,7 +403,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise; /** * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or @@ -458,7 +421,7 @@ export interface Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise, void>>; /** * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or @@ -476,7 +439,7 @@ export interface Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise; /** * Get the status of the replication @@ -491,7 +454,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReplicationStatusOptionalParams + options?: VolumesReplicationStatusOptionalParams, ): Promise; /** * Resync the connection on the destination volume. If the operation is ran on the source volume it @@ -507,7 +470,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise, void>>; /** * Resync the connection on the destination volume. If the operation is ran on the source volume it @@ -523,7 +486,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise; /** * Delete the replication connection on the destination volume, and send release to the source @@ -539,7 +502,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise, void>>; /** * Delete the replication connection on the destination volume, and send release to the source @@ -555,7 +518,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise; /** * Authorize the replication connection on the source volume @@ -572,7 +535,7 @@ export interface Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise, void>>; /** * Authorize the replication connection on the source volume @@ -589,7 +552,7 @@ export interface Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise; /** * Re-Initializes the replication connection on the destination volume @@ -604,7 +567,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise, void>>; /** * Re-Initializes the replication connection on the destination volume @@ -619,7 +582,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise; /** * Moves volume to another pool @@ -636,7 +599,7 @@ export interface Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise, void>>; /** * Moves volume to another pool @@ -653,7 +616,7 @@ export interface Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise; /** * Relocates volume to a new stamp @@ -668,7 +631,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise, void>>; /** * Relocates volume to a new stamp @@ -683,7 +646,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise; /** * Finalizes the relocation of the volume and cleans up the old volume. @@ -698,7 +661,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise, void>>; /** * Finalizes the relocation of the volume and cleans up the old volume. @@ -713,7 +676,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise; /** * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing @@ -729,7 +692,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise, void>>; /** * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing @@ -745,6 +708,6 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/pagingHelper.ts b/sdk/netapp/arm-netapp/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/netapp/arm-netapp/src/pagingHelper.ts +++ b/sdk/netapp/arm-netapp/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return;