diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 93629ea6cb98..703c61c5fac2 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4458,7 +4458,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231024 + typescript: 5.3.0-dev.20231025 dev: false /eastasianwidth@0.2.0: @@ -9084,8 +9084,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231024: - resolution: {integrity: sha512-g+l6xRJNUswhIYSkjTqICwdZofhieh3P7wLP+Zp1tPgF/EBDKDtG+JvMd/WchTd0GY00Tg3u41dbaySqDA9thw==} + /typescript@5.3.0-dev.20231025: + resolution: {integrity: sha512-DW0GNkWzKHnI9lcYCVIw5SO5nzlaZ9iHAdcN7zCxt/OJsKg7s33xRtEa5nmPTIC5qvKzLLZboWWBJ+KRD9cKFw==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -11868,7 +11868,7 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-/angxbieMkKcJsQJdqNc+zy25g0XoAOpcDa6DASkRdfp2uNoq/Uj9I3FDFf3lzreh9d0e26JB4Kn8PcPUACleg==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-K5dsNt8WmABkxTXGXEc7EABDWa8n976i5C/w9YM/9FUNfsYCpo8CUkgKH+eIo1dYQ9mq7PLW43LZVU+GOq8LLQ==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: @@ -12759,7 +12759,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-f1Y090+FjIYGgVrBYGG1+mRJl2uH27vEsXhQG9zh2By/YXkTNL/gEJuC73RbAu2j5aNA+ygpwG5OoJ8WyV+0zA==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-mJZb076NjWXPWX+BubEqM/+ZwVL4kqwgnl2zEIMwbduph1qBMxpy4Ep+H6ZKVPRkN+cGK9/FGYim6K9gMN2VXQ==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -13422,7 +13422,7 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-zQfUm/ZJOvGQ8jqy3dUkF/drKAStLR8H6VDPemb0+LtkUh6Fueo5IZiFFb5Rv78+KUrcDQ3+QezMQJQTJU3AwQ==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-jF/H+oRIn7TgVSDj88nmqz81lieeLoHcRovEKK0NqR11mL5ReR2XUiBGfLN9EiCAhAByBjrHorwyb8Uwx632tg==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: @@ -13434,7 +13434,7 @@ packages: dotenv: 16.3.1 mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 + rimraf: 5.0.5 ts-node: 10.9.1(@types/node@16.18.59)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 @@ -14171,7 +14171,7 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-P2ShC9/4EXm4vIJRDEm1YSx2InnENT2cuOXxSYZCBwpQqxfjeaKienST4FM8v2zV6HL3tM/4H1Qw8Ebl5m4GhQ==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-c3iqbkXdtfIbpO1YWP1PzcuD7idEEBAukQ1E07PcuURdAT3yZWGGyMIp/mG6966hs4yaIxK9H0F5l3jdfGVZlw==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: @@ -14337,7 +14337,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-Vi11ByWkUqB6+KrUx1OqvaUODlyNFx2dCi0ZBDdCTzTMUmnGIFROrswsFeJ+IzxeOrh4TwHtQAYT8AakTbkRNA==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-WfSg3UfoZo/16YZM6vtq4nGyHEoDGifURwH76iVIvEC3Za1wzaSGp8hilf/G+zo//WRTFkbXcxMsq4rjlIvRcQ==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -15161,7 +15161,7 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-C3MECBBBJ2MFTOqGTI8ZRsXsYSIMDmwdXs7dsoiwzfAzULzsPclqcCv67S3cQnhEQZ9BXSs8r2S9CnhgEnLd0A==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-VJNVcMTPsYDEREGB+/MlH0VKcKBp6sFBZclB3nfB394j4g5vCkvpk6q1WFcn/d8udHhGo8mI4XiNdfN43Mu6sQ==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: @@ -17783,7 +17783,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-I2HoDbXKPMnWCzSLvBfSeRvhcEcjo5QbWjR69KuNMGEeNtuyi9ZIYdRhvDkh1jhmXF0pUFIO+gxW1fDLZNHL+w==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-N3MzxkAtHFu1M6+2m0+9fYOpGu66U9JAjLwxrkMPgj/qtovuH2m8lFizg6B4k4mnWSo19Z0kl04vF7nNS9CR6g==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: diff --git a/sdk/netapp/arm-netapp/CHANGELOG.md b/sdk/netapp/arm-netapp/CHANGELOG.md index c178162389da..d9c7e6209bd5 100644 --- a/sdk/netapp/arm-netapp/CHANGELOG.md +++ b/sdk/netapp/arm-netapp/CHANGELOG.md @@ -1,15 +1,60 @@ # Release History + +## 19.0.0 (2023-09-25) + +**Features** -## 18.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation NetAppResource.beginUpdateNetworkSiblingSet + - Added operation NetAppResource.beginUpdateNetworkSiblingSetAndWait + - Added operation NetAppResource.queryNetworkSiblingSet + - Added operation Volumes.beginPopulateAvailabilityZone + - Added operation Volumes.beginPopulateAvailabilityZoneAndWait + - Added Interface NetAppResourceQueryNetworkSiblingSetOptionalParams + - Added Interface NetAppResourceUpdateNetworkSiblingSetHeaders + - Added Interface NetAppResourceUpdateNetworkSiblingSetOptionalParams + - Added Interface NetworkSiblingSet + - Added Interface NicInfo + - Added Interface QueryNetworkSiblingSetRequest + - Added Interface UpdateNetworkSiblingSetRequest + - Added Interface VolumesPopulateAvailabilityZoneHeaders + - Added Interface VolumesPopulateAvailabilityZoneOptionalParams + - Added Type Alias CoolAccessRetrievalPolicy + - Added Type Alias NetAppResourceQueryNetworkSiblingSetResponse + - Added Type Alias NetAppResourceUpdateNetworkSiblingSetResponse + - Added Type Alias NetworkSiblingSetProvisioningState + - Added Type Alias VolumesPopulateAvailabilityZoneResponse + - Interface Volume has a new optional parameter coolAccessRetrievalPolicy + - Interface VolumeGroupVolumeProperties has a new optional parameter coolAccessRetrievalPolicy + - Interface VolumeGroupVolumeProperties has a new optional parameter zones + - Interface VolumePatch has a new optional parameter coolAccessRetrievalPolicy + - Interface VolumePatch has a new optional parameter smbAccessBasedEnumeration + - Interface VolumePatch has a new optional parameter smbNonBrowsable + - Added Enum KnownCoolAccessRetrievalPolicy + - Added Enum KnownNetworkSiblingSetProvisioningState + - Enum KnownApplicationType has a new value Oracle + - Enum KnownNetworkFeatures has a new value BasicStandard + - Enum KnownNetworkFeatures has a new value StandardBasic -### Other Changes +**Breaking Changes** + - Removed operation group AccountBackups + - Removed operation Backups.beginCreate + - Removed operation Backups.beginCreateAndWait + - Removed operation Backups.beginDelete + - Removed operation Backups.beginDeleteAndWait + - Removed operation Backups.beginRestoreFiles + - Removed operation Backups.beginRestoreFilesAndWait + - Removed operation Backups.beginUpdate + - Removed operation Backups.beginUpdateAndWait + - Removed operation Backups.get + - Removed operation Backups.getStatus + - Removed operation Backups.list + - Interface VolumePatchPropertiesDataProtection no longer has parameter backup + - Interface VolumePropertiesDataProtection no longer has parameter backup + - Class NetAppManagementClient no longer has parameter accountBackups + - Removed Enum KnownBackupType + + ## 18.1.0 (2023-07-03) **Features** diff --git a/sdk/netapp/arm-netapp/_meta.json b/sdk/netapp/arm-netapp/_meta.json index d1ebc0984d43..027da89887c8 100644 --- a/sdk/netapp/arm-netapp/_meta.json +++ b/sdk/netapp/arm-netapp/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c9229c1b88caebb538501a60c37eab727d09cc82", + "commit": "06479e897f635086bd40e6ee879e94f4a803ddd9", "readme": "specification/netapp/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --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.9 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@6.0.9" } \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/assets.json b/sdk/netapp/arm-netapp/assets.json index 1a7aab68ae3f..7ed1397b66be 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_54dfb777af" + "Tag": "js/netapp/arm-netapp_f1eacceda2" } diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index a0ee0b456e8a..9c2516c92591 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetAppManagementClient.", - "version": "18.1.1", + "version": "19.0.0", "engines": { "node": ">=16.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@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.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,7 +32,7 @@ "mkdirp": "^2.1.2", "typescript": "~5.2.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", @@ -77,7 +77,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", diff --git a/sdk/netapp/arm-netapp/review/arm-netapp.api.md b/sdk/netapp/arm-netapp/review/arm-netapp.api.md index 15169613abfe..4ee3e22b088d 100644 --- a/sdk/netapp/arm-netapp/review/arm-netapp.api.md +++ b/sdk/netapp/arm-netapp/review/arm-netapp.api.md @@ -10,34 +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, void>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsDeleteOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsGetOptionalParams): Promise; - list(resourceGroupName: string, accountName: string, options?: AccountBackupsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AccountBackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface AccountBackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AccountBackupsGetResponse = Backup; - -// @public -export interface AccountBackupsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AccountBackupsListResponse = BackupsList; - // @public export interface AccountEncryption { identity?: EncryptionIdentity; @@ -166,36 +138,6 @@ export interface AuthorizeRequest { // @public export type AvsDataStore = string; -// @public -export interface Backup extends ProxyResource { - readonly backupId?: string; - readonly backupType?: BackupType; - readonly creationDate?: Date; - readonly failureReason?: string; - label?: string; - location: string; - readonly provisioningState?: string; - readonly size?: number; - useExistingSnapshot?: boolean; - readonly volumeName?: string; -} - -// @public -export interface BackupPatch { - readonly backupId?: string; - readonly backupType?: BackupType; - readonly creationDate?: Date; - readonly failureReason?: string; - label?: string; - readonly provisioningState?: string; - readonly size?: number; - tags?: { - [propertyName: string]: string; - }; - useExistingSnapshot?: boolean; - readonly volumeName?: string; -} - // @public export interface BackupPolicies { beginCreate(resourceGroupName: string, accountName: string, backupPolicyName: string, body: BackupPolicy, options?: BackupPoliciesCreateOptionalParams): Promise, BackupPoliciesCreateResponse>>; @@ -283,58 +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, poolName: string, volumeName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise, BackupsCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise; - beginRestoreFiles(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsRestoreFilesOptionalParams): Promise, void>>; - beginRestoreFilesAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsRestoreFilesOptionalParams): Promise; - beginUpdate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise, BackupsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: BackupsGetOptionalParams): Promise; - getStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsGetStatusOptionalParams): Promise; getVolumeRestoreStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsGetVolumeRestoreStatusOptionalParams): Promise; - list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface BackupsCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsCreateResponse = Backup; - -// @public -export interface BackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface BackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsGetResponse = Backup; - -// @public -export interface BackupsGetStatusOptionalParams extends coreClient.OperationOptions { } -// @public -export type BackupsGetStatusResponse = BackupStatus; - // @public export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient.OperationOptions { } @@ -342,55 +237,6 @@ export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient. // @public export type BackupsGetVolumeRestoreStatusResponse = RestoreStatus; -// @public -export interface BackupsList { - value?: Backup[]; -} - -// @public -export interface BackupsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsListResponse = BackupsList; - -// @public -export interface BackupsRestoreFilesHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsRestoreFilesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @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 unhealthyReason?: 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 BreakFileLocksRequest { clientIp?: string; @@ -463,6 +309,9 @@ export interface CloudErrorBody { message?: string; } +// @public +export type CoolAccessRetrievalPolicy = string; + // @public export type CreatedByType = string; @@ -595,6 +444,7 @@ export enum KnownActiveDirectoryStatus { // @public export enum KnownApplicationType { + Oracle = "ORACLE", SAPHana = "SAP-HANA" } @@ -604,12 +454,6 @@ export enum KnownAvsDataStore { Enabled = "Enabled" } -// @public -export enum KnownBackupType { - Manual = "Manual", - Scheduled = "Scheduled" -} - // @public export enum KnownCheckNameResourceTypes { MicrosoftNetAppNetAppAccounts = "Microsoft.NetApp/netAppAccounts", @@ -632,6 +476,13 @@ export enum KnownChownMode { Unrestricted = "Unrestricted" } +// @public +export enum KnownCoolAccessRetrievalPolicy { + Default = "Default", + Never = "Never", + OnRead = "OnRead" +} + // @public export enum KnownCreatedByType { Application = "Application", @@ -714,7 +565,17 @@ export enum KnownMirrorState { // @public export enum KnownNetworkFeatures { Basic = "Basic", - Standard = "Standard" + BasicStandard = "Basic_Standard", + Standard = "Standard", + StandardBasic = "Standard_Basic" +} + +// @public +export enum KnownNetworkSiblingSetProvisioningState { + Canceled = "Canceled", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" } // @public @@ -917,8 +778,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; @@ -959,9 +818,12 @@ export interface NetAppManagementClientOptionalParams extends coreClient.Service // @public export interface NetAppResource { + beginUpdateNetworkSiblingSet(location: string, networkSiblingSetId: string, subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams): Promise, NetAppResourceUpdateNetworkSiblingSetResponse>>; + beginUpdateNetworkSiblingSetAndWait(location: string, networkSiblingSetId: string, subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams): Promise; checkFilePathAvailability(location: string, name: string, subnetId: string, options?: NetAppResourceCheckFilePathAvailabilityOptionalParams): Promise; checkNameAvailability(location: string, name: string, typeParam: CheckNameResourceTypes, resourceGroup: string, options?: NetAppResourceCheckNameAvailabilityOptionalParams): Promise; checkQuotaAvailability(location: string, name: string, typeParam: CheckQuotaNameResourceTypes, resourceGroup: string, options?: NetAppResourceCheckQuotaAvailabilityOptionalParams): Promise; + queryNetworkSiblingSet(location: string, networkSiblingSetId: string, subnetId: string, options?: NetAppResourceQueryNetworkSiblingSetOptionalParams): Promise; queryRegionInfo(location: string, options?: NetAppResourceQueryRegionInfoOptionalParams): Promise; } @@ -986,6 +848,13 @@ export interface NetAppResourceCheckQuotaAvailabilityOptionalParams extends core // @public export type NetAppResourceCheckQuotaAvailabilityResponse = CheckAvailabilityResponse; +// @public +export interface NetAppResourceQueryNetworkSiblingSetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetAppResourceQueryNetworkSiblingSetResponse = NetworkSiblingSet; + // @public export interface NetAppResourceQueryRegionInfoOptionalParams extends coreClient.OperationOptions { } @@ -1013,9 +882,43 @@ export interface NetAppResourceQuotaLimitsListOptionalParams extends coreClient. // @public export type NetAppResourceQuotaLimitsListResponse = SubscriptionQuotaItemList; +// @public +export interface NetAppResourceUpdateNetworkSiblingSetHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface NetAppResourceUpdateNetworkSiblingSetOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetAppResourceUpdateNetworkSiblingSetResponse = NetworkSiblingSet; + // @public export type NetworkFeatures = string; +// @public +export interface NetworkSiblingSet { + networkFeatures?: NetworkFeatures; + networkSiblingSetId?: string; + networkSiblingSetStateId?: string; + nicInfoList?: NicInfo[]; + readonly provisioningState?: NetworkSiblingSetProvisioningState; + subnetId?: string; +} + +// @public +export type NetworkSiblingSetProvisioningState = string; + +// @public +export interface NicInfo { + readonly ipAddress?: string; + volumeResourceIds?: string[]; +} + // @public export interface Operation { display?: OperationDisplay; @@ -1127,6 +1030,12 @@ export interface ProxyResource extends Resource { // @public export type QosType = string; +// @public +export interface QueryNetworkSiblingSetRequest { + networkSiblingSetId: string; + subnetId: string; +} + // @public export interface QuotaAvailabilityRequest { name: string; @@ -1175,7 +1084,7 @@ export interface ReplicationObject { endpointType?: EndpointType; remoteVolumeRegion?: string; remoteVolumeResourceId: string; - replicationId?: string; + readonly replicationId?: string; replicationSchedule?: ReplicationSchedule; } @@ -1565,6 +1474,14 @@ export interface TrackedResource extends Resource { // @public export type Type = string; +// @public +export interface UpdateNetworkSiblingSetRequest { + networkFeatures: NetworkFeatures; + networkSiblingSetId: string; + networkSiblingSetStateId: string; + subnetId: string; +} + // @public export interface UserAssignedIdentity { readonly clientId?: string; @@ -1580,6 +1497,7 @@ export interface Volume extends TrackedResource { capacityPoolResourceId?: string; readonly cloneProgress?: number; coolAccess?: boolean; + coolAccessRetrievalPolicy?: CoolAccessRetrievalPolicy; coolnessPeriod?: number; creationToken: string; dataProtection?: VolumePropertiesDataProtection; @@ -1630,13 +1548,6 @@ export interface Volume extends TrackedResource { zones?: string[]; } -// @public -export interface VolumeBackupProperties { - backupEnabled?: boolean; - backupPolicyId?: string; - policyEnforced?: boolean; -} - // @public export interface VolumeBackups { backupsCount?: number; @@ -1728,6 +1639,7 @@ export interface VolumeGroupVolumeProperties { capacityPoolResourceId?: string; readonly cloneProgress?: number; coolAccess?: boolean; + coolAccessRetrievalPolicy?: CoolAccessRetrievalPolicy; coolnessPeriod?: number; creationToken: string; dataProtection?: VolumePropertiesDataProtection; @@ -1780,6 +1692,7 @@ export interface VolumeGroupVolumeProperties { readonly volumeGroupName?: string; volumeSpecName?: string; volumeType?: string; + zones?: string[]; } // @public @@ -1791,6 +1704,7 @@ export interface VolumeList { // @public export interface VolumePatch { coolAccess?: boolean; + coolAccessRetrievalPolicy?: CoolAccessRetrievalPolicy; coolnessPeriod?: number; dataProtection?: VolumePatchPropertiesDataProtection; defaultGroupQuotaInKiBs?: number; @@ -1801,6 +1715,8 @@ export interface VolumePatch { location?: string; readonly name?: string; serviceLevel?: ServiceLevel; + smbAccessBasedEnumeration?: SmbAccessBasedEnumeration; + smbNonBrowsable?: SmbNonBrowsable; snapshotDirectoryVisible?: boolean; tags?: { [propertyName: string]: string; @@ -1813,7 +1729,6 @@ export interface VolumePatch { // @public export interface VolumePatchPropertiesDataProtection { - backup?: VolumeBackupProperties; snapshot?: VolumeSnapshotProperties; } @@ -1824,7 +1739,6 @@ export interface VolumePatchPropertiesExportPolicy { // @public export interface VolumePropertiesDataProtection { - backup?: VolumeBackupProperties; replication?: ReplicationObject; snapshot?: VolumeSnapshotProperties; volumeRelocation?: VolumeRelocationProperties; @@ -1940,6 +1854,8 @@ export interface Volumes { beginListGetGroupIdListForLdapUserAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, options?: VolumesListGetGroupIdListForLdapUserOptionalParams): Promise; beginPoolChange(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: PoolChangeRequest, options?: VolumesPoolChangeOptionalParams): Promise, void>>; beginPoolChangeAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: PoolChangeRequest, options?: VolumesPoolChangeOptionalParams): Promise; + beginPopulateAvailabilityZone(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesPopulateAvailabilityZoneOptionalParams): Promise, VolumesPopulateAvailabilityZoneResponse>>; + beginPopulateAvailabilityZoneAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesPopulateAvailabilityZoneOptionalParams): Promise; beginReestablishReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: ReestablishReplicationRequest, options?: VolumesReestablishReplicationOptionalParams): Promise, void>>; beginReestablishReplicationAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: ReestablishReplicationRequest, options?: VolumesReestablishReplicationOptionalParams): Promise; beginReInitializeReplication(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesReInitializeReplicationOptionalParams): Promise, void>>; @@ -2070,6 +1986,21 @@ export interface VolumesPoolChangeOptionalParams extends coreClient.OperationOpt updateIntervalInMs?: number; } +// @public +export interface VolumesPopulateAvailabilityZoneHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VolumesPopulateAvailabilityZoneOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VolumesPopulateAvailabilityZoneResponse = Volume; + // @public export interface VolumesReestablishReplicationOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsListSample.ts deleted file mode 100644 index 70ed1a3b639a..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsListSample.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/stable/2022-11-01/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.list( - 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 aee7a00401bf..4d013bfbb89a 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/stable/2022-11-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -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/stable/2022-11-01/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts index 1504dd230120..33d0741dc550 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/stable/2022-11-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts index a44c99163db7..86ee73e4802f 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/stable/2022-11-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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 3c7055b41fbb..f691141d212b 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/stable/2022-11-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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 770b3efa81dd..1ce755109d7a 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/stable/2022-11-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts index be9608637461..f9f37b1a6b65 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/stable/2022-11-01/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts index d4ffcfed5c6d..e8ac842fa374 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/stable/2022-11-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts index f6984855101b..3bbd7817334f 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/stable/2022-11-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts index 2c3ae072e7af..e41ce0088796 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/stable/2022-11-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts index 1a3b67183bba..078b4d62a688 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/stable/2022-11-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts index 6feb17a38788..5f57598adb0f 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/stable/2022-11-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts index d1d2acf57b31..e187044ec1b2 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/stable/2022-11-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = 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 facdf486ca58..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.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 { 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 for the volume - * - * @summary Create a backup for the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Create.json - */ -async function backupsCreate() { - 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 backupName = "backup1"; - const body: Backup = { label: "myLabel", location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsCreate(); -} - -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 6816ddba45ad..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.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. - */ - -// 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 of the volume - * - * @summary Delete a backup of the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Delete.json - */ -async function backupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const poolName = "poolName"; - const volumeName = "volumeName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName - ); - console.log(result); -} - -async function main() { - backupsDelete(); -} - -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 711a011b71af..3236bfc61f71 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/stable/2022-11-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsListSample.ts deleted file mode 100644 index 72c9f6232134..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsListSample.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. - */ - -// 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 volume - * - * @summary List all backups for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_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 poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.list( - resourceGroupName, - accountName, - poolName, - volumeName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsRestoreFilesSample.ts deleted file mode 100644 index 1ed4378f1ca6..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsRestoreFilesSample.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 { 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/stable/2022-11-01/examples/Backups_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 poolName = "pool1"; - const volumeName = "volume1"; - 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.backups.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -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 d1d0cde63d93..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts +++ /dev/null @@ -1,55 +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 for the volume - * - * @summary Patch a backup for the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Update.json - */ -async function backupsUpdate() { - 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 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, - poolName, - volumeName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUpdate(); -} - -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 f80430a33c1d..5954626a4465 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/stable/2022-11-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts index b7cecff2031b..cf33fb750a6d 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/stable/2022-11-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts index 5ec414c99ab0..94279fa04f9e 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/stable/2022-11-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts similarity index 60% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsGetSample.ts rename to sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts index 59fdcd57dcda..5c4bba4b7061 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts @@ -15,30 +15,31 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Get details of the specified volume group + * This sample demonstrates how to Get details of the specified network sibling set. * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Get.json + * @summary Get details of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Query.json */ -async function volumeGroupsGet() { +async function networkSiblingSetQuery() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; + const location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get( - resourceGroupName, - accountName, - volumeGroupName + const result = await client.netAppResource.queryNetworkSiblingSet( + location, + networkSiblingSetId, + subnetId ); console.log(result); } async function main() { - volumeGroupsGet(); + networkSiblingSetQuery(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts index 79e8f555cb86..75432f6ab7bb 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/stable/2022-11-01/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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 86c67b062cd3..bb254e301aad 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/stable/2022-11-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts index bb6d4843221d..c194601ae95d 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/stable/2022-11-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts similarity index 50% rename from sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts index b70e33655a7a..148ae9c04c99 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -15,31 +15,35 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account + * This sample demonstrates how to Update the network features of the specified network sibling set. * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Delete.json + * @summary Update the network features of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Update.json */ -async function accountBackupsDelete() { +async function networkFeaturesUpdate() { 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 location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; + const networkSiblingSetStateId = "12345_44420.8001578125"; + const networkFeatures = "Standard"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName + const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures ); console.log(result); } async function main() { - accountBackupsDelete(); + networkFeaturesUpdate(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts index 12db4b4eab38..334b22188ff4 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/stable/2022-11-01/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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 e081441cc375..60fcdabcaa1f 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/stable/2022-11-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts index 9a0616dd6386..e6cb91300b74 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/stable/2022-11-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts index 04b14b5ab26d..ce3e361a1e50 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/stable/2022-11-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts index 8aa88442c313..f49209600485 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/stable/2022-11-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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 08cb2fbc98e6..c333305830a2 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/stable/2022-11-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts index 9fdb98e2adab..7a5b1dba57ad 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/stable/2022-11-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts index 204d2ec048fa..a0dbe8a3a8dd 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/stable/2022-11-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts index aa750f131d12..301a9b79c983 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/stable/2022-11-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts index 40d8388c3a76..d021f4cfe9e4 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/stable/2022-11-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts index b4199be4379d..4c51f3e86bd5 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/stable/2022-11-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts index 8c3f3bfd5020..3605b9917084 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/stable/2022-11-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts index 365206653eea..61a67e8db4d3 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/stable/2022-11-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts index 8ef6fde285ba..22aed2be43a1 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/stable/2022-11-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts index fb76d8023ed3..2ed101c64a63 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/stable/2022-11-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts index 3c4a97c20f87..1f619512e4fb 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/stable/2022-11-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts index 7b94cbc6a9b3..93070d6a8169 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts @@ -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/stable/2022-11-01/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts index 0ebbc72a6bad..f38fe415d72d 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/stable/2022-11-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts index a4df2e624f8b..008ef9db5709 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/stable/2022-11-01/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts index 0ef10996d6c6..d33128bf507f 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/stable/2022-11-01/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts index 5d70c12319d4..b377365b2224 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/stable/2022-11-01/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts index 68f7df33237a..463e5a6f7080 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/stable/2022-11-01/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts index f5514f417cc7..75a1ce1e036d 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/stable/2022-11-01/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts index 21c2c5557e41..08c3663f3197 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts @@ -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/stable/2022-11-01/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts index 7b44acc10a20..dee85d118c11 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts @@ -18,9 +18,9 @@ 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/stable/2022-11-01/examples/VolumeGroups_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Create_Oracle.json */ -async function volumeGroupsCreate() { +async function volumeGroupsCreateOracle() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; @@ -29,9 +29,450 @@ async function volumeGroupsCreate() { const volumeGroupName = "group1"; const body: VolumeGroupDetails = { groupMetaData: { - applicationIdentifier: "DEV", + applicationIdentifier: "OR2", + applicationType: "ORACLE", + groupDescription: "Volume group" + }, + location: "westus", + volumes: [ + { + name: "test-ora-data1", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data1", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data1", + zones: ["1"] + }, + { + name: "test-ora-data2", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data2", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data2", + zones: ["1"] + }, + { + name: "test-ora-data3", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data3", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data3", + zones: ["1"] + }, + { + name: "test-ora-data4", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data4", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data4", + zones: ["1"] + }, + { + name: "test-ora-data5", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data5", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data5", + zones: ["1"] + }, + { + name: "test-ora-data6", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data6", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data6", + zones: ["1"] + }, + { + name: "test-ora-data7", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data7", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data7", + zones: ["1"] + }, + { + name: "test-ora-data8", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data8", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data8", + zones: ["1"] + }, + { + name: "test-ora-log", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log", + zones: ["1"] + }, + { + name: "test-ora-log-mirror", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log-mirror", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log-mirror", + zones: ["1"] + }, + { + name: "test-ora-binary", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-binary", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-binary", + zones: ["1"] + }, + { + name: "test-ora-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-backup", + zones: ["1"] + } + ] + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body + ); + console.log(result); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_Create_SapHana.json + */ +async function volumeGroupsCreateSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body: VolumeGroupDetails = { + groupMetaData: { + applicationIdentifier: "SH9", applicationType: "SAP-HANA", - deploymentSpecId: "20542149-bfca-5618-1879-9863dc6767f1", groupDescription: "Volume group" }, location: "westus", @@ -41,6 +482,27 @@ async function volumeGroupsCreate() { capacityPoolResourceId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", creationToken: "test-data-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], proximityPlacementGroup: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", serviceLevel: "Premium", @@ -55,6 +517,27 @@ async function volumeGroupsCreate() { capacityPoolResourceId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", creationToken: "test-log-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], proximityPlacementGroup: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", serviceLevel: "Premium", @@ -69,6 +552,27 @@ async function volumeGroupsCreate() { capacityPoolResourceId: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", creationToken: "test-shared", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], proximityPlacementGroup: "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", serviceLevel: "Premium", @@ -77,6 +581,76 @@ async function volumeGroupsCreate() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "shared" + }, + { + name: "test-data-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data-backup" + }, + { + name: "test-log-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log-backup" } ] }; @@ -92,7 +666,8 @@ async function volumeGroupsCreate() { } async function main() { - volumeGroupsCreate(); + volumeGroupsCreateOracle(); + volumeGroupsCreateSapHana(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts index 742157246433..72d8a47e7997 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/stable/2022-11-01/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts index 59fdcd57dcda..b105a170c87b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts @@ -18,9 +18,32 @@ 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/stable/2022-11-01/examples/VolumeGroups_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json */ -async function volumeGroupsGet() { +async function volumeGroupsGetOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get( + resourceGroupName, + accountName, + volumeGroupName + ); + console.log(result); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + */ +async function volumeGroupsGetSapHana() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; @@ -38,7 +61,8 @@ async function volumeGroupsGet() { } async function main() { - volumeGroupsGet(); + volumeGroupsGetOracle(); + volumeGroupsGetSapHana(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts index f423f2d2fe12..f86b3e66f004 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts @@ -18,9 +18,33 @@ 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/stable/2022-11-01/examples/VolumeGroups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_Oracle.json */ -async function volumeGroupsList() { +async function volumeGroupsListOracle() { + 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.volumeGroups.listByNetAppAccount( + resourceGroupName, + accountName + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_List_SapHana.json + */ +async function volumeGroupsListSapHana() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; @@ -39,7 +63,8 @@ async function volumeGroupsList() { } async function main() { - volumeGroupsList(); + volumeGroupsListOracle(); + volumeGroupsListSapHana(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts index 57fc7145684b..fd7c4ec1651b 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/stable/2022-11-01/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts index 352128a4f535..201f66cb7a5d 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/stable/2022-11-01/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts index 4dc077929919..f9a08f574a34 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/stable/2022-11-01/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts index 3b614983e7d2..c678f0f46e12 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/stable/2022-11-01/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts index 1c6c7ffcee90..a5490d0b51c8 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts @@ -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/stable/2022-11-01/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts index 98eb8c1c9185..afdb586b8f39 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/stable/2022-11-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts index 879d397085c8..b18995c7a729 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts @@ -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/stable/2022-11-01/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts index 79e89f8ea498..fce98c6cffb4 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts @@ -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/stable/2022-11-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts index 64bc4f92d897..6f1e0e6f3a4a 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/stable/2022-11-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts index ca04d2acc422..7cac6bae5cb9 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/stable/2022-11-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts index c86ee31ee7d4..3f2b6e5b3b47 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/stable/2022-11-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts index 3469cc4707f8..a6eef130ddd4 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/stable/2022-11-01/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts index 0a405e42a79f..a48e1c5dc56b 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/stable/2022-11-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts index 9cb749ffc763..8aa9ee49096e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts @@ -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/stable/2022-11-01/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts index 4e9e0fecbecb..b707242657e4 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/stable/2022-11-01/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts index b98cbd29320a..916c1b6d159e 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/stable/2022-11-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts index 6581711747d0..baf058a58f3f 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/stable/2022-11-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts similarity index 71% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetStatusSample.ts rename to sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts index 9faecae9db1e..c1985a3c12fc 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts @@ -15,12 +15,12 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Get the status of the backup for a volume + * This sample demonstrates how to This operation will populate availability zone information for a volume * - * @summary Get the status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_BackupStatus.json + * @summary This operation will populate availability zone information for a volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PopulateAvailabilityZones.json */ -async function volumesBackupStatus() { +async function volumesPopulateAvailabilityZones() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; @@ -30,7 +30,7 @@ async function volumesBackupStatus() { const volumeName = "volume1"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getStatus( + const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( resourceGroupName, accountName, poolName, @@ -40,7 +40,7 @@ async function volumesBackupStatus() { } async function main() { - volumesBackupStatus(); + volumesPopulateAvailabilityZones(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts index c8f13cf6917d..0784c89e7068 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/stable/2022-11-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts index 9263da49de44..7d6575cd7e9e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts @@ -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/stable/2022-11-01/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts index acac8c375454..334a090c4c3d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts @@ -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/stable/2022-11-01/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts index e1cc8bd1800f..700945c9da1c 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/stable/2022-11-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts index 741e9cbc767b..e1b9ffd66ccb 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/stable/2022-11-01/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts index ecec144c8d8d..3fe10211d92d 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/stable/2022-11-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts index e3938bfc3bfa..6316da080d79 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/stable/2022-11-01/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts index 63fc2733959a..e5bc335094f9 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/stable/2022-11-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts index 6c8f50c6e989..e5a415d8cbb9 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/stable/2022-11-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/accountBackupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/accountBackupsDeleteSample.js deleted file mode 100644 index 5f3f584e8826..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/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/stable/2022-11-01/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/v18/javascript/accountBackupsGetSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/accountBackupsGetSample.js deleted file mode 100644 index 559737c5ac43..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/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/stable/2022-11-01/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/v18/javascript/accountBackupsListSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/accountBackupsListSample.js deleted file mode 100644 index dcf583c7cd5a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/accountBackupsListSample.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 all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/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.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/backupsCreateSample.js deleted file mode 100644 index a8f487c827e3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsCreateSample.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 Create a backup for the volume - * - * @summary Create a backup for the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Create.json - */ -async function backupsCreate() { - 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 backupName = "backup1"; - const body = { label: "myLabel", location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/backupsDeleteSample.js deleted file mode 100644 index 6a3a6fb89422..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsDeleteSample.js +++ /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. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a backup of the volume - * - * @summary Delete a backup of the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Delete.json - */ -async function backupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const poolName = "poolName"; - const volumeName = "volumeName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName - ); - console.log(result); -} - -async function main() { - backupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetSample.js deleted file mode 100644 index 8a5654022895..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetSample.js +++ /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. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the specified backup of the volume - * - * @summary Gets the specified backup of the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json - */ -async function backupsGet() { - 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 backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName - ); - console.log(result); -} - -async function main() { - backupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsListSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/backupsListSample.js deleted file mode 100644 index 344c41143611..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsListSample.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 List all backups for a volume - * - * @summary List all backups for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_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 poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.list( - resourceGroupName, - accountName, - poolName, - volumeName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/backupsRestoreFilesSample.js deleted file mode 100644 index 4f7ba1efec29..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsRestoreFilesSample.js +++ /dev/null @@ -1,51 +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/stable/2022-11-01/examples/Backups_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 poolName = "pool1"; - const volumeName = "volume1"; - 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.backups.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/backupsUpdateSample.js deleted file mode 100644 index a16f5f5c5eb6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsUpdateSample.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 Patch a backup for the volume - * - * @summary Patch a backup for the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Update.json - */ -async function backupsUpdate() { - 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 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, - poolName, - volumeName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsCreateSample.js deleted file mode 100644 index 3c4a229bc8a2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsCreateSample.js +++ /dev/null @@ -1,95 +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 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/stable/2022-11-01/examples/VolumeGroups_Create.json - */ -async function volumeGroupsCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body = { - groupMetaData: { - applicationIdentifier: "DEV", - applicationType: "SAP-HANA", - deploymentSpecId: "20542149-bfca-5618-1879-9863dc6767f1", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-data-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-mnt00001", - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data", - }, - { - name: "test-log-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-mnt00001", - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log", - }, - { - name: "test-shared", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-shared", - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "shared", - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body - ); - console.log(result); -} - -async function main() { - volumeGroupsCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountBackupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountBackupsDeleteSample.ts deleted file mode 100644 index b70e33655a7a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/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/stable/2022-11-01/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/v18/typescript/src/accountBackupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountBackupsGetSample.ts deleted file mode 100644 index bf7e6702446c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/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/stable/2022-11-01/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/v18/typescript/src/accountBackupsListSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountBackupsListSample.ts deleted file mode 100644 index 70ed1a3b639a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountBackupsListSample.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/stable/2022-11-01/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.list( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsCreateSample.ts deleted file mode 100644 index facdf486ca58..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsCreateSample.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 { 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 for the volume - * - * @summary Create a backup for the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Create.json - */ -async function backupsCreate() { - 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 backupName = "backup1"; - const body: Backup = { label: "myLabel", location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsDeleteSample.ts deleted file mode 100644 index 6816ddba45ad..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsDeleteSample.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. - */ - -// 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 of the volume - * - * @summary Delete a backup of the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Delete.json - */ -async function backupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const poolName = "poolName"; - const volumeName = "volumeName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName - ); - console.log(result); -} - -async function main() { - backupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetSample.ts deleted file mode 100644 index 56eabb6248fa..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetSample.ts +++ /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. -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 of the volume - * - * @summary Gets the specified backup of the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json - */ -async function backupsGet() { - 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 backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName - ); - console.log(result); -} - -async function main() { - backupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsListSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsListSample.ts deleted file mode 100644 index 72c9f6232134..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsListSample.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. - */ - -// 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 volume - * - * @summary List all backups for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_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 poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.list( - resourceGroupName, - accountName, - poolName, - volumeName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsRestoreFilesSample.ts deleted file mode 100644 index 1ed4378f1ca6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsRestoreFilesSample.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 { 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/stable/2022-11-01/examples/Backups_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 poolName = "pool1"; - const volumeName = "volume1"; - 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.backups.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsUpdateSample.ts deleted file mode 100644 index d1d0cde63d93..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsUpdateSample.ts +++ /dev/null @@ -1,55 +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 for the volume - * - * @summary Patch a backup for the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Update.json - */ -async function backupsUpdate() { - 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 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, - poolName, - volumeName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsCreateSample.ts deleted file mode 100644 index 7b44acc10a20..000000000000 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsCreateSample.ts +++ /dev/null @@ -1,98 +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 { VolumeGroupDetails, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -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/stable/2022-11-01/examples/VolumeGroups_Create.json - */ -async function volumeGroupsCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body: VolumeGroupDetails = { - groupMetaData: { - applicationIdentifier: "DEV", - applicationType: "SAP-HANA", - deploymentSpecId: "20542149-bfca-5618-1879-9863dc6767f1", - groupDescription: "Volume group" - }, - location: "westus", - volumes: [ - { - name: "test-data-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-mnt00001", - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data" - }, - { - name: "test-log-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-mnt00001", - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log" - }, - { - name: "test-shared", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-shared", - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "shared" - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body - ); - console.log(result); -} - -async function main() { - volumeGroupsCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/README.md b/sdk/netapp/arm-netapp/samples/v19/javascript/README.md similarity index 71% rename from sdk/netapp/arm-netapp/samples/v18/javascript/README.md rename to sdk/netapp/arm-netapp/samples/v19/javascript/README.md index ca5850b18005..f1567ee2d82e 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/README.md +++ b/sdk/netapp/arm-netapp/samples/v19/javascript/README.md @@ -4,89 +4,82 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accountBackupsDeleteSample.js][accountbackupsdeletesample] | Delete the specified Backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/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/stable/2022-11-01/examples/Backups_Account_Get.json | -| [accountBackupsListSample.js][accountbackupslistsample] | List all Backups for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/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/stable/2022-11-01/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_Delete.json | -| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-01/examples/BackupPolicies_Update.json | -| [backupsCreateSample.js][backupscreatesample] | Create a backup for the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Create.json | -| [backupsDeleteSample.js][backupsdeletesample] | Delete a backup of the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Delete.json | -| [backupsGetSample.js][backupsgetsample] | Gets the specified backup of the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json | -| [backupsGetStatusSample.js][backupsgetstatussample] | Get the status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_BackupStatus.json | -| [backupsGetVolumeRestoreStatusSample.js][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_RestoreStatus.json | -| [backupsListSample.js][backupslistsample] | List all backups for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_List.json | -| [backupsRestoreFilesSample.js][backupsrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_SingleFileRestore.json | -| [backupsUpdateSample.js][backupsupdatesample] | Patch a backup for the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/CheckQuotaAvailability.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/2022-11-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/2022-11-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/2022-11-01/examples/QuotaLimits_List.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/2022-11-01/examples/OperationList.json | -| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-01/examples/Pools_List.json | -| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/VolumeGroups_Create.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/2022-11-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/2022-11-01/examples/VolumeGroups_Get.json | -| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_List.json | -| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-01/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Volumes_List.json | -| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_PoolChange.json | -| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Volumes_Revert.json | -| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Update.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/stable/2023-05-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-05-01/examples/Accounts_Delete.json | +| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-01/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-01/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-01/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-01/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-01/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-01/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-01/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-01/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-01/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-01/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-01/examples/Volumes_Revert.json | +| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Update.json | ## Prerequisites @@ -113,102 +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="" 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/v18/javascript/accountBackupsDeleteSample.js -[accountbackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountBackupsGetSample.js -[accountbackupslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountBackupsListSample.js -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountsCreateOrUpdateSample.js -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountsDeleteSample.js -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountsGetSample.js -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountsListBySubscriptionSample.js -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountsListSample.js -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountsRenewCredentialsSample.js -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/accountsUpdateSample.js -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesCreateSample.js -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesDeleteSample.js -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesGetSample.js -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesListSample.js -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesUpdateSample.js -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupsCreateSample.js -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupsDeleteSample.js -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetSample.js -[backupsgetstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetStatusSample.js -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetVolumeRestoreStatusSample.js -[backupslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupsListSample.js -[backupsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupsRestoreFilesSample.js -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/backupsUpdateSample.js -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckFilePathAvailabilitySample.js -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckNameAvailabilitySample.js -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckQuotaAvailabilitySample.js -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQueryRegionInfoSample.js -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQuotaLimitsGetSample.js -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQuotaLimitsListSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/operationsListSample.js -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/poolsCreateOrUpdateSample.js -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/poolsDeleteSample.js -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/poolsGetSample.js -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/poolsListSample.js -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/poolsUpdateSample.js -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesCreateSample.js -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesDeleteSample.js -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesGetSample.js -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesListSample.js -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesListVolumesSample.js -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesUpdateSample.js -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsCreateSample.js -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsDeleteSample.js -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsGetSample.js -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsListSample.js -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsRestoreFilesSample.js -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsUpdateSample.js -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesCreateSample.js -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesDeleteSample.js -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesGetMetadataSample.js -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesGetSample.js -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesListByVolumeSample.js -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesUpdateSample.js -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsCreateSample.js -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsDeleteSample.js -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsGetSample.js -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsListByNetAppAccountSample.js -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesCreateSample.js -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesDeleteSample.js -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesGetSample.js -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesListByVolumeSample.js -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesUpdateSample.js -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesAuthorizeReplicationSample.js -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesBreakFileLocksSample.js -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesBreakReplicationSample.js -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesCreateOrUpdateSample.js -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesDeleteReplicationSample.js -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesDeleteSample.js -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesFinalizeRelocationSample.js -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesGetSample.js -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListGetGroupIdListForLdapUserSample.js -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListReplicationsSample.js -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListSample.js -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesPoolChangeSample.js -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReInitializeReplicationSample.js -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReestablishReplicationSample.js -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRelocateSample.js -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReplicationStatusSample.js -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesResetCifsPasswordSample.js -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesResyncReplicationSample.js -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRevertRelocationSample.js -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRevertSample.js -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/javascript/volumesUpdateSample.js +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/accountsCreateOrUpdateSample.js +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/accountsDeleteSample.js +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/accountsGetSample.js +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/accountsListBySubscriptionSample.js +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/accountsListSample.js +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/accountsRenewCredentialsSample.js +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/accountsUpdateSample.js +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesCreateSample.js +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesDeleteSample.js +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesGetSample.js +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesListSample.js +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesUpdateSample.js +[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/backupsGetVolumeRestoreStatusSample.js +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckFilePathAvailabilitySample.js +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckNameAvailabilitySample.js +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckQuotaAvailabilitySample.js +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQueryNetworkSiblingSetSample.js +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQueryRegionInfoSample.js +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQuotaLimitsGetSample.js +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQuotaLimitsListSample.js +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/operationsListSample.js +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/poolsCreateOrUpdateSample.js +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/poolsDeleteSample.js +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/poolsGetSample.js +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/poolsListSample.js +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/poolsUpdateSample.js +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesCreateSample.js +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesDeleteSample.js +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesGetSample.js +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesListSample.js +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesListVolumesSample.js +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesUpdateSample.js +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsCreateSample.js +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsDeleteSample.js +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsGetSample.js +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsListSample.js +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsRestoreFilesSample.js +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsUpdateSample.js +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesCreateSample.js +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesDeleteSample.js +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesGetMetadataSample.js +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesGetSample.js +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesListByVolumeSample.js +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesUpdateSample.js +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsCreateSample.js +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsDeleteSample.js +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsGetSample.js +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsListByNetAppAccountSample.js +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesCreateSample.js +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesDeleteSample.js +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesGetSample.js +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesListByVolumeSample.js +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesUpdateSample.js +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesAuthorizeReplicationSample.js +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesBreakFileLocksSample.js +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesBreakReplicationSample.js +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesCreateOrUpdateSample.js +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesDeleteReplicationSample.js +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesDeleteSample.js +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesFinalizeRelocationSample.js +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesGetSample.js +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesListGetGroupIdListForLdapUserSample.js +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesListReplicationsSample.js +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesListSample.js +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesPoolChangeSample.js +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesPopulateAvailabilityZoneSample.js +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesReInitializeReplicationSample.js +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesReestablishReplicationSample.js +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesRelocateSample.js +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesReplicationStatusSample.js +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesResetCifsPasswordSample.js +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesResyncReplicationSample.js +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesRevertRelocationSample.js +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/javascript/volumesRevertSample.js +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/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/v18/javascript/accountsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/accountsCreateOrUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/accountsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/accountsCreateOrUpdateSample.js index 9876fda7d207..cf91e75bf6b1 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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/stable/2022-11-01/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/accountsDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/accountsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/accountsDeleteSample.js index f6c4ca56adb5..c4c0ebd02ba7 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/accountsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/accountsGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/accountsGetSample.js index f7579a1e598d..8b1649eec2ad 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsListBySubscriptionSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/accountsListBySubscriptionSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/accountsListBySubscriptionSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/accountsListBySubscriptionSample.js index 6d973a1d7825..024e63a155ea 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsListBySubscriptionSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsListSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/accountsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/accountsListSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/accountsListSample.js index a42ee21f6d7d..c29008dfce2e 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsRenewCredentialsSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/accountsRenewCredentialsSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/accountsRenewCredentialsSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/accountsRenewCredentialsSample.js index 12603e9a81f8..5c8b96d9b245 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsRenewCredentialsSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/accountsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/accountsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/accountsUpdateSample.js index 15bbeae334cc..9f981e4a559f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/accountsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesCreateSample.js index 88d6d8e0e595..666865143a94 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesDeleteSample.js index 55bf23f5b56e..e2cbb8fc4f59 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesGetSample.js index d57113b48436..68e354169241 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesListSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesListSample.js index 0f7293dd3b29..51ed24375883 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/backupPoliciesUpdateSample.js index 7346e10e4559..29fdc83e1a08 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupPoliciesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetVolumeRestoreStatusSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/backupsGetVolumeRestoreStatusSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetVolumeRestoreStatusSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/backupsGetVolumeRestoreStatusSample.js index a7d214defcac..cc5e53039fc5 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetVolumeRestoreStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckFilePathAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckFilePathAvailabilitySample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckFilePathAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckFilePathAvailabilitySample.js index 3962e67bb75d..3ae78a0dd49a 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckFilePathAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckNameAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckNameAvailabilitySample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckNameAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckNameAvailabilitySample.js index 3df1f2289765..dacb18c6f794 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckNameAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckQuotaAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckQuotaAvailabilitySample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckQuotaAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceCheckQuotaAvailabilitySample.js index 2989513d4b2c..5cb99c570140 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceCheckQuotaAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQueryNetworkSiblingSetSample.js similarity index 59% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQueryNetworkSiblingSetSample.js index bc1e22fd2423..5500b8ac87d2 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQueryNetworkSiblingSetSample.js @@ -13,25 +13,30 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Get details of the specified volume group + * This sample demonstrates how to Get details of the specified network sibling set. * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_Get.json + * @summary Get details of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Query.json */ -async function volumeGroupsGet() { +async function networkSiblingSetQuery() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; + const location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); + const result = await client.netAppResource.queryNetworkSiblingSet( + location, + networkSiblingSetId, + subnetId + ); console.log(result); } async function main() { - volumeGroupsGet(); + networkSiblingSetQuery(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQueryRegionInfoSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQueryRegionInfoSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQueryRegionInfoSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQueryRegionInfoSample.js index 554899d63d1e..53656722481c 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQueryRegionInfoSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQuotaLimitsGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQuotaLimitsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQuotaLimitsGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQuotaLimitsGetSample.js index 4aec03213db5..f07e823b5df2 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQuotaLimitsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQuotaLimitsListSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQuotaLimitsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQuotaLimitsListSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceQuotaLimitsListSample.js index 92ef2d67cc7e..9d270777af95 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/netAppResourceQuotaLimitsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceUpdateNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceUpdateNetworkSiblingSetSample.js new file mode 100644 index 000000000000..4a98f56ba708 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v19/javascript/netAppResourceUpdateNetworkSiblingSetSample.js @@ -0,0 +1,46 @@ +/* + * 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 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/stable/2023-05-01/examples/NetworkSiblingSet_Update.json + */ +async function networkFeaturesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; + const networkSiblingSetStateId = "12345_44420.8001578125"; + const networkFeatures = "Standard"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures + ); + console.log(result); +} + +async function main() { + networkFeaturesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/operationsListSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/operationsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/operationsListSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/operationsListSample.js index 58e00aac409d..a5d28c4b1945 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/operationsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/package.json b/sdk/netapp/arm-netapp/samples/v19/javascript/package.json similarity index 100% rename from sdk/netapp/arm-netapp/samples/v18/javascript/package.json rename to sdk/netapp/arm-netapp/samples/v19/javascript/package.json diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/poolsCreateOrUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/poolsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/poolsCreateOrUpdateSample.js index 533edc2e2b03..893ce194d851 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/poolsDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/poolsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/poolsDeleteSample.js index abfba832e58b..3988df2896a0 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/poolsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/poolsGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/poolsGetSample.js index 9841958532b7..0c824f97d62a 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsListSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/poolsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/poolsListSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/poolsListSample.js index 0521ab9612ee..9e38159cadb5 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/poolsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/poolsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/poolsUpdateSample.js index cccf51181810..e71901cbfb5d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/poolsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/sample.env b/sdk/netapp/arm-netapp/samples/v19/javascript/sample.env similarity index 100% rename from sdk/netapp/arm-netapp/samples/v18/javascript/sample.env rename to sdk/netapp/arm-netapp/samples/v19/javascript/sample.env diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesCreateSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesCreateSample.js index e9970a0bb239..76074c3566c4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesDeleteSample.js index c6e81f437873..e55a7776e4f3 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesGetSample.js index 1267c7527cc6..0e5051624d89 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesListSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesListSample.js index 2c7e5ccb9a43..6f77dddae6a4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesListVolumesSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesListVolumesSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesListVolumesSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesListVolumesSample.js index eed2647fbc42..ff7201d4765f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesListVolumesSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesUpdateSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotPoliciesUpdateSample.js index 6fe5537a509f..8518bda908d4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotPoliciesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsCreateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsCreateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsCreateSample.js index 0767b1197a7e..4e07ab28ec96 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsDeleteSample.js index 078191477d83..e3de122a5d6f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsGetSample.js index 4cb0dd9f0c42..b99ca9cf3ee1 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsListSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsListSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsListSample.js index 40d8ca02bd2c..cfa3e58f7fe6 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsRestoreFilesSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsRestoreFilesSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsRestoreFilesSample.js index d75568835bfc..152aaf832803 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsRestoreFilesSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/snapshotsUpdateSample.js index 4914f99cf3b0..5160e3bec744 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/snapshotsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesCreateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesCreateSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesCreateSample.js index e4b22c4cc346..2ee3d3688e7d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesDeleteSample.js index 9e02465d821b..8a36ff8cb05d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesGetMetadataSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesGetMetadataSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesGetMetadataSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesGetMetadataSample.js index 56f31b11f105..1eed02f6c719 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesGetMetadataSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesGetSample.js index f55b63b7de4e..de35798896b4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesListByVolumeSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesListByVolumeSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesListByVolumeSample.js index 7e2911cbea8f..2bcb4e53f9a7 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesListByVolumeSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/subvolumesUpdateSample.js index ba9d62623640..48452d5e13bb 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/subvolumesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsCreateSample.js new file mode 100644 index 000000000000..28a583d37015 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsCreateSample.js @@ -0,0 +1,669 @@ +/* + * 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 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/stable/2023-05-01/examples/VolumeGroups_Create_Oracle.json + */ +async function volumeGroupsCreateOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body = { + groupMetaData: { + applicationIdentifier: "OR2", + applicationType: "ORACLE", + groupDescription: "Volume group", + }, + location: "westus", + volumes: [ + { + name: "test-ora-data1", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data1", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data1", + zones: ["1"], + }, + { + name: "test-ora-data2", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data2", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data2", + zones: ["1"], + }, + { + name: "test-ora-data3", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data3", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data3", + zones: ["1"], + }, + { + name: "test-ora-data4", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data4", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data4", + zones: ["1"], + }, + { + name: "test-ora-data5", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data5", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data5", + zones: ["1"], + }, + { + name: "test-ora-data6", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data6", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data6", + zones: ["1"], + }, + { + name: "test-ora-data7", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data7", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data7", + zones: ["1"], + }, + { + name: "test-ora-data8", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data8", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data8", + zones: ["1"], + }, + { + name: "test-ora-log", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log", + zones: ["1"], + }, + { + name: "test-ora-log-mirror", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log-mirror", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log-mirror", + zones: ["1"], + }, + { + name: "test-ora-binary", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-binary", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-binary", + zones: ["1"], + }, + { + name: "test-ora-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-backup", + zones: ["1"], + }, + ], + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body + ); + console.log(result); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_Create_SapHana.json + */ +async function volumeGroupsCreateSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body = { + groupMetaData: { + applicationIdentifier: "SH9", + applicationType: "SAP-HANA", + groupDescription: "Volume group", + }, + location: "westus", + volumes: [ + { + name: "test-data-mnt00001", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data", + }, + { + name: "test-log-mnt00001", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log", + }, + { + name: "test-shared", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-shared", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "shared", + }, + { + name: "test-data-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data-backup", + }, + { + name: "test-log-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log-backup", + }, + ], + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body + ); + console.log(result); +} + +async function main() { + volumeGroupsCreateOracle(); + volumeGroupsCreateSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsDeleteSample.js index a8ec2c336d6f..10ae34fbdd00 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsGetSample.js new file mode 100644 index 000000000000..c3d888f98160 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsGetSample.js @@ -0,0 +1,56 @@ +/* + * 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 details of the specified volume group + * + * @summary Get details of the specified volume group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json + */ +async function volumeGroupsGetOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); + console.log(result); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + */ +async function volumeGroupsGetSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); + console.log(result); +} + +async function main() { + volumeGroupsGetOracle(); + volumeGroupsGetSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsListByNetAppAccountSample.js similarity index 55% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsListByNetAppAccountSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsListByNetAppAccountSample.js index 97dab5925f58..00916e19b755 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeGroupsListByNetAppAccountSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeGroupsListByNetAppAccountSample.js @@ -16,9 +16,29 @@ 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/stable/2022-11-01/examples/VolumeGroups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_Oracle.json */ -async function volumeGroupsList() { +async function volumeGroupsListOracle() { + 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.volumeGroups.listByNetAppAccount(resourceGroupName, accountName)) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_List_SapHana.json + */ +async function volumeGroupsListSapHana() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; @@ -33,7 +53,8 @@ async function volumeGroupsList() { } async function main() { - volumeGroupsList(); + volumeGroupsListOracle(); + volumeGroupsListSapHana(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesCreateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesCreateSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesCreateSample.js index daabd66f167f..34d9c0137661 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesDeleteSample.js index 42d2fb26759b..184ab4cc346a 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesGetSample.js index 71d5335a4ad5..e32298c815f2 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesListByVolumeSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesListByVolumeSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesListByVolumeSample.js index 139603b0cb0d..74774a86d7e2 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesListByVolumeSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumeQuotaRulesUpdateSample.js index a21b4b453600..cc39bf8c68ee 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumeQuotaRulesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesAuthorizeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesAuthorizeReplicationSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesAuthorizeReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesAuthorizeReplicationSample.js index 95d0e8cc16ff..b57279d33ce0 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesAuthorizeReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesBreakFileLocksSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesBreakFileLocksSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesBreakFileLocksSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesBreakFileLocksSample.js index 9de5bb6ad03d..bd62f7a5cc26 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesBreakFileLocksSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesBreakReplicationSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesBreakReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesBreakReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesBreakReplicationSample.js index 928ec64500da..0e01b08fdae0 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesBreakReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesCreateOrUpdateSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesCreateOrUpdateSample.js index b2e962806eda..bc92679d68ba 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesDeleteReplicationSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesDeleteReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesDeleteReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesDeleteReplicationSample.js index 0c64d39a8373..4672f1978df0 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesDeleteReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesDeleteSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesDeleteSample.js index 25b0109b37d7..95537489ed3e 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesFinalizeRelocationSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesFinalizeRelocationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesFinalizeRelocationSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesFinalizeRelocationSample.js index 86fd2823ec43..d9d68db1a829 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesFinalizeRelocationSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesGetSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesGetSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesGetSample.js index cd47c5ba7ccc..18a2115567f9 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListGetGroupIdListForLdapUserSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesListGetGroupIdListForLdapUserSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesListGetGroupIdListForLdapUserSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesListGetGroupIdListForLdapUserSample.js index 5b7c20730d26..b5629c4ad49f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListGetGroupIdListForLdapUserSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListReplicationsSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesListReplicationsSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesListReplicationsSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesListReplicationsSample.js index 8693e21d165f..04e8431df9d5 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListReplicationsSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesListSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesListSample.js index 9b155dd9fb63..3059b4e43016 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesPoolChangeSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesPoolChangeSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesPoolChangeSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesPoolChangeSample.js index 02f88ba92578..5aae7cfa5467 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesPoolChangeSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetStatusSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesPopulateAvailabilityZoneSample.js similarity index 71% rename from sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetStatusSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesPopulateAvailabilityZoneSample.js index fa88edcf9ce4..05066d1e5c70 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/backupsGetStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesPopulateAvailabilityZoneSample.js @@ -13,12 +13,12 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Get the status of the backup for a volume + * This sample demonstrates how to This operation will populate availability zone information for a volume * - * @summary Get the status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_BackupStatus.json + * @summary This operation will populate availability zone information for a volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PopulateAvailabilityZones.json */ -async function volumesBackupStatus() { +async function volumesPopulateAvailabilityZones() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; @@ -27,7 +27,7 @@ async function volumesBackupStatus() { const volumeName = "volume1"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getStatus( + const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( resourceGroupName, accountName, poolName, @@ -37,7 +37,7 @@ async function volumesBackupStatus() { } async function main() { - volumesBackupStatus(); + volumesPopulateAvailabilityZones(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReInitializeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesReInitializeReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesReInitializeReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesReInitializeReplicationSample.js index 8aea3156e431..57d20e5d4688 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReInitializeReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReestablishReplicationSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesReestablishReplicationSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesReestablishReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesReestablishReplicationSample.js index 6120bc7bcf3e..955d37a4f609 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReestablishReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRelocateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesRelocateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesRelocateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesRelocateSample.js index da1c45e5ca59..0c49963cce0a 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRelocateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReplicationStatusSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesReplicationStatusSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesReplicationStatusSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesReplicationStatusSample.js index b680b778b3c2..14150dd7a1b4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesReplicationStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesResetCifsPasswordSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesResetCifsPasswordSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesResetCifsPasswordSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesResetCifsPasswordSample.js index 58e1c3f857b7..6737dce1e9d9 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesResetCifsPasswordSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesResyncReplicationSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesResyncReplicationSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesResyncReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesResyncReplicationSample.js index 002630544e2e..3487a21b1047 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesResyncReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRevertRelocationSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesRevertRelocationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesRevertRelocationSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesRevertRelocationSample.js index a0892bd30303..3234cc53262a 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRevertRelocationSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRevertSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesRevertSample.js similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesRevertSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesRevertSample.js index b72dbef48026..4901ef33b027 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesRevertSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v19/javascript/volumesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/javascript/volumesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v19/javascript/volumesUpdateSample.js index 1d782c5d63df..d89e4cf5d7ec 100644 --- a/sdk/netapp/arm-netapp/samples/v18/javascript/volumesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/README.md b/sdk/netapp/arm-netapp/samples/v19/typescript/README.md similarity index 71% rename from sdk/netapp/arm-netapp/samples/v18/typescript/README.md rename to sdk/netapp/arm-netapp/samples/v19/typescript/README.md index e7dcaf3e5262..bd923a9c5a83 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/README.md +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/README.md @@ -4,89 +4,82 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accountBackupsDeleteSample.ts][accountbackupsdeletesample] | Delete the specified Backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/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/stable/2022-11-01/examples/Backups_Account_Get.json | -| [accountBackupsListSample.ts][accountbackupslistsample] | List all Backups for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/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/stable/2022-11-01/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Accounts_Delete.json | -| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-01/examples/BackupPolicies_Update.json | -| [backupsCreateSample.ts][backupscreatesample] | Create a backup for the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Create.json | -| [backupsDeleteSample.ts][backupsdeletesample] | Delete a backup of the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Delete.json | -| [backupsGetSample.ts][backupsgetsample] | Gets the specified backup of the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json | -| [backupsGetStatusSample.ts][backupsgetstatussample] | Get the status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_BackupStatus.json | -| [backupsGetVolumeRestoreStatusSample.ts][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_RestoreStatus.json | -| [backupsListSample.ts][backupslistsample] | List all backups for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_List.json | -| [backupsRestoreFilesSample.ts][backupsrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_SingleFileRestore.json | -| [backupsUpdateSample.ts][backupsupdatesample] | Patch a backup for the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/CheckQuotaAvailability.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/2022-11-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/2022-11-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/2022-11-01/examples/QuotaLimits_List.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/2022-11-01/examples/OperationList.json | -| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-01/examples/Pools_List.json | -| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-01/examples/VolumeGroups_Create.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/2022-11-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/2022-11-01/examples/VolumeGroups_Get.json | -| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeGroups_List.json | -| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-01/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Volumes_List.json | -| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_PoolChange.json | -| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-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/2022-11-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/2022-11-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/2022-11-01/examples/Volumes_Revert.json | -| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_Update.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/stable/2023-05-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-05-01/examples/Accounts_Delete.json | +| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-01/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-01/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-01/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-01/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-01/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-01/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-01/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-01/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-01/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-01/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-01/examples/Volumes_Revert.json | +| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Update.json | ## Prerequisites @@ -125,102 +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="" 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/v18/typescript/src/accountBackupsDeleteSample.ts -[accountbackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountBackupsGetSample.ts -[accountbackupslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountBackupsListSample.ts -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsCreateOrUpdateSample.ts -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsDeleteSample.ts -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsGetSample.ts -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsListBySubscriptionSample.ts -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsListSample.ts -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsRenewCredentialsSample.ts -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsUpdateSample.ts -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesCreateSample.ts -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesDeleteSample.ts -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesGetSample.ts -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesListSample.ts -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesUpdateSample.ts -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsCreateSample.ts -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsDeleteSample.ts -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetSample.ts -[backupsgetstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetStatusSample.ts -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetVolumeRestoreStatusSample.ts -[backupslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsListSample.ts -[backupsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsRestoreFilesSample.ts -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsUpdateSample.ts -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckNameAvailabilitySample.ts -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQueryRegionInfoSample.ts -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQuotaLimitsGetSample.ts -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQuotaLimitsListSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/operationsListSample.ts -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsCreateOrUpdateSample.ts -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsDeleteSample.ts -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsGetSample.ts -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsListSample.ts -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsUpdateSample.ts -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesCreateSample.ts -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesDeleteSample.ts -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesGetSample.ts -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesListSample.ts -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesListVolumesSample.ts -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesUpdateSample.ts -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsCreateSample.ts -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsDeleteSample.ts -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsGetSample.ts -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsListSample.ts -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsRestoreFilesSample.ts -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsUpdateSample.ts -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesCreateSample.ts -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesDeleteSample.ts -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesGetMetadataSample.ts -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesGetSample.ts -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesListByVolumeSample.ts -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesUpdateSample.ts -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsCreateSample.ts -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsDeleteSample.ts -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsGetSample.ts -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsListByNetAppAccountSample.ts -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesCreateSample.ts -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesDeleteSample.ts -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesGetSample.ts -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesListByVolumeSample.ts -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesUpdateSample.ts -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesAuthorizeReplicationSample.ts -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesBreakFileLocksSample.ts -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesBreakReplicationSample.ts -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesCreateOrUpdateSample.ts -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesDeleteReplicationSample.ts -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesDeleteSample.ts -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesFinalizeRelocationSample.ts -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesGetSample.ts -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListReplicationsSample.ts -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListSample.ts -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesPoolChangeSample.ts -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReInitializeReplicationSample.ts -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReestablishReplicationSample.ts -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRelocateSample.ts -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReplicationStatusSample.ts -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesResetCifsPasswordSample.ts -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesResyncReplicationSample.ts -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRevertRelocationSample.ts -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRevertSample.ts -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesUpdateSample.ts +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsCreateOrUpdateSample.ts +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsDeleteSample.ts +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsGetSample.ts +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsListBySubscriptionSample.ts +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsListSample.ts +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsRenewCredentialsSample.ts +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsUpdateSample.ts +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesCreateSample.ts +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesDeleteSample.ts +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesGetSample.ts +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesListSample.ts +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesUpdateSample.ts +[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupsGetVolumeRestoreStatusSample.ts +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQueryRegionInfoSample.ts +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQuotaLimitsGetSample.ts +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQuotaLimitsListSample.ts +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/operationsListSample.ts +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsCreateOrUpdateSample.ts +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsDeleteSample.ts +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsGetSample.ts +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsListSample.ts +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsUpdateSample.ts +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesCreateSample.ts +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesDeleteSample.ts +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesGetSample.ts +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesListSample.ts +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesListVolumesSample.ts +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesUpdateSample.ts +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsCreateSample.ts +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsDeleteSample.ts +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsGetSample.ts +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsListSample.ts +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsRestoreFilesSample.ts +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsUpdateSample.ts +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesCreateSample.ts +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesDeleteSample.ts +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesGetMetadataSample.ts +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesGetSample.ts +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesListByVolumeSample.ts +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesUpdateSample.ts +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsCreateSample.ts +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsDeleteSample.ts +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsGetSample.ts +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsListByNetAppAccountSample.ts +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesCreateSample.ts +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesDeleteSample.ts +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesGetSample.ts +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesListByVolumeSample.ts +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesUpdateSample.ts +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesAuthorizeReplicationSample.ts +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesBreakFileLocksSample.ts +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesBreakReplicationSample.ts +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesCreateOrUpdateSample.ts +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesDeleteReplicationSample.ts +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesDeleteSample.ts +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesFinalizeRelocationSample.ts +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesGetSample.ts +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListReplicationsSample.ts +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListSample.ts +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesPoolChangeSample.ts +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesPopulateAvailabilityZoneSample.ts +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReInitializeReplicationSample.ts +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReestablishReplicationSample.ts +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRelocateSample.ts +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReplicationStatusSample.ts +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesResetCifsPasswordSample.ts +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesResyncReplicationSample.ts +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRevertRelocationSample.ts +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRevertSample.ts +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v19/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/v18/typescript/package.json b/sdk/netapp/arm-netapp/samples/v19/typescript/package.json similarity index 100% rename from sdk/netapp/arm-netapp/samples/v18/typescript/package.json rename to sdk/netapp/arm-netapp/samples/v19/typescript/package.json diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/sample.env b/sdk/netapp/arm-netapp/samples/v19/typescript/sample.env similarity index 100% rename from sdk/netapp/arm-netapp/samples/v18/typescript/sample.env rename to sdk/netapp/arm-netapp/samples/v19/typescript/sample.env diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsCreateOrUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsCreateOrUpdateSample.ts index aee7a00401bf..4d013bfbb89a 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -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/stable/2022-11-01/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsDeleteSample.ts index 1504dd230120..33d0741dc550 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsGetSample.ts index a44c99163db7..86ee73e4802f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsListBySubscriptionSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsListBySubscriptionSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsListBySubscriptionSample.ts index 3c7055b41fbb..f691141d212b 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsListBySubscriptionSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsListSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsListSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsListSample.ts index 770b3efa81dd..1ce755109d7a 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsRenewCredentialsSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsRenewCredentialsSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsRenewCredentialsSample.ts index be9608637461..f9f37b1a6b65 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsRenewCredentialsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/accountsUpdateSample.ts index d4ffcfed5c6d..e8ac842fa374 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/accountsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesCreateSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesCreateSample.ts index f6984855101b..3bbd7817334f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesDeleteSample.ts index 2c3ae072e7af..e41ce0088796 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesGetSample.ts index 1a3b67183bba..078b4d62a688 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesListSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesListSample.ts index 6feb17a38788..5f57598adb0f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesUpdateSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/backupPoliciesUpdateSample.ts index d1d2acf57b31..e187044ec1b2 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetVolumeRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/backupsGetVolumeRestoreStatusSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetVolumeRestoreStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/backupsGetVolumeRestoreStatusSample.ts index 711a011b71af..3236bfc61f71 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/backupsGetVolumeRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts index f80430a33c1d..5954626a4465 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckNameAvailabilitySample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckNameAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckNameAvailabilitySample.ts index b7cecff2031b..cf33fb750a6d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts index 5ec414c99ab0..94279fa04f9e 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts similarity index 56% rename from sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts index bf7e6702446c..5c4bba4b7061 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts @@ -15,30 +15,31 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the specified backup for a Netapp Account + * This sample demonstrates how to Get details of the specified network sibling set. * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Account_Get.json + * @summary Get details of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Query.json */ -async function accountBackupsGet() { +async function networkSiblingSetQuery() { 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 location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get( - resourceGroupName, - accountName, - backupName + const result = await client.netAppResource.queryNetworkSiblingSet( + location, + networkSiblingSetId, + subnetId ); console.log(result); } async function main() { - accountBackupsGet(); + networkSiblingSetQuery(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQueryRegionInfoSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQueryRegionInfoSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQueryRegionInfoSample.ts index 79e8f555cb86..75432f6ab7bb 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQueryRegionInfoSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQuotaLimitsGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQuotaLimitsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQuotaLimitsGetSample.ts index 86c67b062cd3..bb254e301aad 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQuotaLimitsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQuotaLimitsListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQuotaLimitsListSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceQuotaLimitsListSample.ts index bb6d4843221d..c194601ae95d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/netAppResourceQuotaLimitsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts similarity index 50% rename from sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts index 56eabb6248fa..148ae9c04c99 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -15,34 +15,35 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the specified backup of the volume + * This sample demonstrates how to Update the network features of the specified network sibling set. * - * @summary Gets the specified backup of the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Backups_Get.json + * @summary Update the network features of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/NetworkSiblingSet_Update.json */ -async function backupsGet() { +async function networkFeaturesUpdate() { 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 backupName = "backup1"; + const location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; + const networkSiblingSetStateId = "12345_44420.8001578125"; + const networkFeatures = "Standard"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName + const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures ); console.log(result); } async function main() { - backupsGet(); + networkFeaturesUpdate(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/operationsListSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/operationsListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/operationsListSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/operationsListSample.ts index 12db4b4eab38..334b22188ff4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/operationsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsCreateOrUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsCreateOrUpdateSample.ts index e081441cc375..60fcdabcaa1f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsDeleteSample.ts index 9a0616dd6386..e6cb91300b74 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsGetSample.ts index 04b14b5ab26d..ce3e361a1e50 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsListSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsListSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsListSample.ts index 8aa88442c313..f49209600485 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/poolsUpdateSample.ts index 08cb2fbc98e6..c333305830a2 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/poolsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesCreateSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesCreateSample.ts index 9fdb98e2adab..7a5b1dba57ad 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesDeleteSample.ts index 204d2ec048fa..a0dbe8a3a8dd 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesGetSample.ts index aa750f131d12..301a9b79c983 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesListSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesListSample.ts index 40d8388c3a76..d021f4cfe9e4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesListVolumesSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesListVolumesSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesListVolumesSample.ts index b4199be4379d..4c51f3e86bd5 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesListVolumesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesUpdateSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotPoliciesUpdateSample.ts index 8c3f3bfd5020..3605b9917084 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsCreateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsCreateSample.ts index 365206653eea..61a67e8db4d3 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsDeleteSample.ts index 8ef6fde285ba..22aed2be43a1 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsGetSample.ts index fb76d8023ed3..2ed101c64a63 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsListSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsListSample.ts index 3c4a97c20f87..1f619512e4fb 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsRestoreFilesSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsRestoreFilesSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsRestoreFilesSample.ts index 7b94cbc6a9b3..93070d6a8169 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsRestoreFilesSample.ts @@ -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/stable/2022-11-01/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/snapshotsUpdateSample.ts index 0ebbc72a6bad..f38fe415d72d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/snapshotsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesCreateSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesCreateSample.ts index a4df2e624f8b..008ef9db5709 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesDeleteSample.ts index 0ef10996d6c6..d33128bf507f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesGetMetadataSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesGetMetadataSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesGetMetadataSample.ts index 5d70c12319d4..b377365b2224 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesGetMetadataSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesGetSample.ts index 68f7df33237a..463e5a6f7080 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesListByVolumeSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesListByVolumeSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesListByVolumeSample.ts index f5514f417cc7..75a1ce1e036d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesUpdateSample.ts index 21c2c5557e41..08c3663f3197 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/subvolumesUpdateSample.ts @@ -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/stable/2022-11-01/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsCreateSample.ts new file mode 100644 index 000000000000..dee85d118c11 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsCreateSample.ts @@ -0,0 +1,673 @@ +/* + * 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 { VolumeGroupDetails, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +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/stable/2023-05-01/examples/VolumeGroups_Create_Oracle.json + */ +async function volumeGroupsCreateOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body: VolumeGroupDetails = { + groupMetaData: { + applicationIdentifier: "OR2", + applicationType: "ORACLE", + groupDescription: "Volume group" + }, + location: "westus", + volumes: [ + { + name: "test-ora-data1", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data1", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data1", + zones: ["1"] + }, + { + name: "test-ora-data2", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data2", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data2", + zones: ["1"] + }, + { + name: "test-ora-data3", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data3", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data3", + zones: ["1"] + }, + { + name: "test-ora-data4", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data4", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data4", + zones: ["1"] + }, + { + name: "test-ora-data5", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data5", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data5", + zones: ["1"] + }, + { + name: "test-ora-data6", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data6", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data6", + zones: ["1"] + }, + { + name: "test-ora-data7", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data7", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data7", + zones: ["1"] + }, + { + name: "test-ora-data8", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data8", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data8", + zones: ["1"] + }, + { + name: "test-ora-log", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log", + zones: ["1"] + }, + { + name: "test-ora-log-mirror", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log-mirror", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log-mirror", + zones: ["1"] + }, + { + name: "test-ora-binary", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-binary", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-binary", + zones: ["1"] + }, + { + name: "test-ora-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-backup", + zones: ["1"] + } + ] + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body + ); + console.log(result); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_Create_SapHana.json + */ +async function volumeGroupsCreateSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body: VolumeGroupDetails = { + groupMetaData: { + applicationIdentifier: "SH9", + applicationType: "SAP-HANA", + groupDescription: "Volume group" + }, + location: "westus", + volumes: [ + { + name: "test-data-mnt00001", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data" + }, + { + name: "test-log-mnt00001", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log" + }, + { + name: "test-shared", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-shared", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "shared" + }, + { + name: "test-data-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data-backup" + }, + { + name: "test-log-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true + } + ] + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log-backup" + } + ] + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body + ); + console.log(result); +} + +async function main() { + volumeGroupsCreateOracle(); + volumeGroupsCreateSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsDeleteSample.ts index 742157246433..72d8a47e7997 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsGetSample.ts new file mode 100644 index 000000000000..b105a170c87b --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsGetSample.ts @@ -0,0 +1,68 @@ +/* + * 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 details of the specified volume group + * + * @summary Get details of the specified volume group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_Get_Oracle.json + */ +async function volumeGroupsGetOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get( + resourceGroupName, + accountName, + volumeGroupName + ); + console.log(result); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_Get_SapHana.json + */ +async function volumeGroupsGetSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get( + resourceGroupName, + accountName, + volumeGroupName + ); + console.log(result); +} + +async function main() { + volumeGroupsGetOracle(); + volumeGroupsGetSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsListByNetAppAccountSample.ts similarity index 55% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsListByNetAppAccountSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsListByNetAppAccountSample.ts index f423f2d2fe12..f86b3e66f004 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeGroupsListByNetAppAccountSample.ts @@ -18,9 +18,33 @@ 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/stable/2022-11-01/examples/VolumeGroups_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeGroups_List_Oracle.json */ -async function volumeGroupsList() { +async function volumeGroupsListOracle() { + 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.volumeGroups.listByNetAppAccount( + resourceGroupName, + accountName + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * 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/stable/2023-05-01/examples/VolumeGroups_List_SapHana.json + */ +async function volumeGroupsListSapHana() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; @@ -39,7 +63,8 @@ async function volumeGroupsList() { } async function main() { - volumeGroupsList(); + volumeGroupsListOracle(); + volumeGroupsListSapHana(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesCreateSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesCreateSample.ts index 57fc7145684b..fd7c4ec1651b 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesDeleteSample.ts index 352128a4f535..201f66cb7a5d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesGetSample.ts index 4dc077929919..f9a08f574a34 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesListByVolumeSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesListByVolumeSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesListByVolumeSample.ts index 3b614983e7d2..c678f0f46e12 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesUpdateSample.ts index 1c6c7ffcee90..a5490d0b51c8 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumeQuotaRulesUpdateSample.ts @@ -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/stable/2022-11-01/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesAuthorizeReplicationSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesAuthorizeReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesAuthorizeReplicationSample.ts index 98eb8c1c9185..afdb586b8f39 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesAuthorizeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesBreakFileLocksSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesBreakFileLocksSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesBreakFileLocksSample.ts index 879d397085c8..b18995c7a729 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesBreakFileLocksSample.ts @@ -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/stable/2022-11-01/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesBreakReplicationSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesBreakReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesBreakReplicationSample.ts index 79e89f8ea498..fce98c6cffb4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesBreakReplicationSample.ts @@ -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/stable/2022-11-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesCreateOrUpdateSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesCreateOrUpdateSample.ts index 64bc4f92d897..6f1e0e6f3a4a 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesDeleteReplicationSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesDeleteReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesDeleteReplicationSample.ts index ca04d2acc422..7cac6bae5cb9 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesDeleteReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesDeleteSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesDeleteSample.ts index c86ee31ee7d4..3f2b6e5b3b47 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesFinalizeRelocationSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesFinalizeRelocationSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesFinalizeRelocationSample.ts index 3469cc4707f8..a6eef130ddd4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesFinalizeRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesGetSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesGetSample.ts index 0a405e42a79f..a48e1c5dc56b 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts index 9cb749ffc763..8aa9ee49096e 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts @@ -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/stable/2022-11-01/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListReplicationsSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListReplicationsSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListReplicationsSample.ts index 4e9e0fecbecb..b707242657e4 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListReplicationsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesListSample.ts index b98cbd29320a..916c1b6d159e 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesPoolChangeSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesPoolChangeSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesPoolChangeSample.ts index 6581711747d0..baf058a58f3f 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesPoolChangeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetStatusSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesPopulateAvailabilityZoneSample.ts similarity index 71% rename from sdk/netapp/arm-netapp/samples-dev/backupsGetStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesPopulateAvailabilityZoneSample.ts index 9faecae9db1e..c1985a3c12fc 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesPopulateAvailabilityZoneSample.ts @@ -15,12 +15,12 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Get the status of the backup for a volume + * This sample demonstrates how to This operation will populate availability zone information for a volume * - * @summary Get the status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2022-11-01/examples/Volumes_BackupStatus.json + * @summary This operation will populate availability zone information for a volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_PopulateAvailabilityZones.json */ -async function volumesBackupStatus() { +async function volumesPopulateAvailabilityZones() { const subscriptionId = process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; @@ -30,7 +30,7 @@ async function volumesBackupStatus() { const volumeName = "volume1"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getStatus( + const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( resourceGroupName, accountName, poolName, @@ -40,7 +40,7 @@ async function volumesBackupStatus() { } async function main() { - volumesBackupStatus(); + volumesPopulateAvailabilityZones(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReInitializeReplicationSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReInitializeReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReInitializeReplicationSample.ts index c8f13cf6917d..0784c89e7068 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReInitializeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReestablishReplicationSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReestablishReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReestablishReplicationSample.ts index 9263da49de44..7d6575cd7e9e 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReestablishReplicationSample.ts @@ -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/stable/2022-11-01/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRelocateSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRelocateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRelocateSample.ts index acac8c375454..334a090c4c3d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRelocateSample.ts @@ -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/stable/2022-11-01/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReplicationStatusSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReplicationStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesReplicationStatusSample.ts index e1cc8bd1800f..700945c9da1c 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesReplicationStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesResetCifsPasswordSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesResetCifsPasswordSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesResetCifsPasswordSample.ts index 741e9cbc767b..e1b9ffd66ccb 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesResetCifsPasswordSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesResyncReplicationSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesResyncReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesResyncReplicationSample.ts index ecec144c8d8d..3fe10211d92d 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesResyncReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRevertRelocationSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRevertRelocationSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRevertRelocationSample.ts index e3938bfc3bfa..6316da080d79 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRevertRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRevertSample.ts similarity index 96% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRevertSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesRevertSample.ts index 63fc2733959a..e5bc335094f9 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesRevertSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v19/typescript/src/volumesUpdateSample.ts index 6c8f50c6e989..e5a415d8cbb9 100644 --- a/sdk/netapp/arm-netapp/samples/v18/typescript/src/volumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v19/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/stable/2022-11-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-05-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v18/typescript/tsconfig.json b/sdk/netapp/arm-netapp/samples/v19/typescript/tsconfig.json similarity index 100% rename from sdk/netapp/arm-netapp/samples/v18/typescript/tsconfig.json rename to sdk/netapp/arm-netapp/samples/v19/typescript/tsconfig.json diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index d09e521116f6..8a6ab71d1c19 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -197,6 +197,105 @@ export interface RegionInfoAvailabilityZoneMappingsItem { isAvailable?: boolean; } +/** Network sibling set query. */ +export interface QueryNetworkSiblingSetRequest { + /** Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ + networkSiblingSetId: string; + /** The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} */ + subnetId: string; +} + +/** Describes the contents of a network sibling set. */ +export interface NetworkSiblingSet { + /** Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ + networkSiblingSetId?: string; + /** The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} */ + subnetId?: string; + /** Network sibling set state Id identifying the current state of the sibling set. */ + networkSiblingSetStateId?: string; + /** Network features available to the volume, or current state of update. */ + networkFeatures?: NetworkFeatures; + /** + * Gets the status of the NetworkSiblingSet at the time the operation was called. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: NetworkSiblingSetProvisioningState; + /** List of NIC information */ + nicInfoList?: NicInfo[]; +} + +/** NIC information and list of volumes for which the NIC has the primary mount ip address. */ +export interface NicInfo { + /** + * ipAddress + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ipAddress?: string; + /** Volume resource Ids */ + volumeResourceIds?: 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; +} + +/** Network sibling set update. */ +export interface UpdateNetworkSiblingSetRequest { + /** Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ + networkSiblingSetId: string; + /** The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes. Example /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} */ + subnetId: string; + /** Network sibling set state Id identifying the current state of the sibling set. */ + networkSiblingSetStateId: string; + /** Network features available to the volume, some such */ + networkFeatures: NetworkFeatures; +} + /** List of NetApp account resources */ export interface NetAppAccountList { /** Multiple NetApp accounts */ @@ -502,8 +601,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. */ @@ -512,20 +609,13 @@ 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; -} - /** Replication properties */ export interface ReplicationObject { - /** Id */ - replicationId?: string; + /** + * Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly replicationId?: string; /** Indicates whether the local volume is the source or destination for the Volume Replication */ endpointType?: EndpointType; /** Schedule */ @@ -584,7 +674,7 @@ export interface VolumePatch { tags?: { [propertyName: string]: string }; /** The service level of the file system */ serviceLevel?: ServiceLevel; - /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume. Specified in bytes. */ + /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. */ usageThreshold?: number; /** Set of export policy rules */ exportPolicy?: VolumePatchPropertiesExportPolicy; @@ -604,8 +694,19 @@ export interface VolumePatch { coolAccess?: boolean; /** Specifies the number of days after which data that is not accessed by clients will be tiered. */ coolnessPeriod?: number; + /** + * coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + */ + coolAccessRetrievalPolicy?: CoolAccessRetrievalPolicy; /** If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots. */ snapshotDirectoryVisible?: boolean; + /** Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume */ + smbAccessBasedEnumeration?: SmbAccessBasedEnumeration; + /** Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume */ + smbNonBrowsable?: SmbNonBrowsable; } /** Set of export policy rules */ @@ -616,8 +717,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; } @@ -648,55 +747,6 @@ export interface GetGroupIdListForLdapUserResponse { groupIdsForLdapUser?: 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; -} - /** Break replication request */ export interface BreakReplicationRequest { /** If replication is in status transferring and you want to force break the replication, set to true */ @@ -873,50 +923,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; -} - /** Restore status */ export interface RestoreStatus { /** @@ -951,57 +957,6 @@ export interface RestoreStatus { readonly totalTransferBytes?: number; } -/** List of Backups */ -export interface BackupsList { - /** A list of Backups */ - value?: Backup[]; -} - -/** Backup patch */ -export interface BackupPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** - * 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 - * 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; - /** - * Volume name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly volumeName?: string; - /** Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups */ - useExistingSnapshot?: boolean; -} - /** List of Backup Policies */ export interface BackupPoliciesList { /** A list of backup policies */ @@ -1191,6 +1146,8 @@ export interface VolumeGroupVolumeProperties { readonly type?: string; /** Resource tags */ tags?: { [propertyName: string]: string }; + /** Availability Zone */ + zones?: string[]; /** * Unique FileSystem Identifier. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1200,7 +1157,7 @@ export interface VolumeGroupVolumeProperties { creationToken: string; /** The service level of the file system */ serviceLevel?: ServiceLevel; - /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume. Specified in bytes. */ + /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. */ usageThreshold: number; /** Set of export policy rules */ exportPolicy?: VolumePropertiesExportPolicy; @@ -1224,7 +1181,7 @@ export interface VolumeGroupVolumeProperties { readonly baremetalTenantId?: string; /** The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes */ subnetId: string; - /** Basic network, or Standard features available to the volume. */ + /** Network features available to the volume, or current state of update. */ networkFeatures?: NetworkFeatures; /** * Network Sibling Set ID for the the group of volumes sharing networking resources. @@ -1255,9 +1212,9 @@ export interface VolumeGroupVolumeProperties { securityStyle?: SecurityStyle; /** Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later */ smbEncryption?: boolean; - /** Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume */ + /** Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume */ smbAccessBasedEnumeration?: SmbAccessBasedEnumeration; - /** Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume */ + /** Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume */ smbNonBrowsable?: SmbNonBrowsable; /** Enables continuously available share property for smb volume. Only applicable for SMB volume */ smbContinuouslyAvailable?: boolean; @@ -1278,6 +1235,13 @@ export interface VolumeGroupVolumeProperties { coolAccess?: boolean; /** Specifies the number of days after which data that is not accessed by clients will be tiered. */ coolnessPeriod?: number; + /** + * coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + */ + coolAccessRetrievalPolicy?: CoolAccessRetrievalPolicy; /** UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. */ unixPermissions?: string; /** @@ -1402,16 +1366,6 @@ export interface SubvolumeModel { provisioningState?: 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; -} - /** Identity for the resource. */ export interface ResourceIdentity { /** @@ -1549,51 +1503,6 @@ export interface Snapshot extends ProxyResource { readonly provisioningState?: string; } -/** Backup of a Volume */ -export interface Backup extends ProxyResource { - /** Resource location */ - location: string; - /** - * 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 - * 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; - /** - * Volume name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly volumeName?: string; - /** Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups */ - useExistingSnapshot?: boolean; -} - /** Subvolume Information properties */ export interface SubvolumeInfo extends ProxyResource { /** Path to the subvolume */ @@ -1691,7 +1600,7 @@ export interface Volume extends TrackedResource { creationToken: string; /** The service level of the file system */ serviceLevel?: ServiceLevel; - /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume. Specified in bytes. */ + /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. */ usageThreshold: number; /** Set of export policy rules */ exportPolicy?: VolumePropertiesExportPolicy; @@ -1715,7 +1624,7 @@ export interface Volume extends TrackedResource { readonly baremetalTenantId?: string; /** The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes */ subnetId: string; - /** Basic network, or Standard features available to the volume. */ + /** Network features available to the volume, or current state of update. */ networkFeatures?: NetworkFeatures; /** * Network Sibling Set ID for the the group of volumes sharing networking resources. @@ -1746,9 +1655,9 @@ export interface Volume extends TrackedResource { securityStyle?: SecurityStyle; /** Enables encryption for in-flight smb3 data. Only applicable for SMB/DualProtocol volume. To be used with swagger version 2020-08-01 or later */ smbEncryption?: boolean; - /** Enables access based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume */ + /** Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume */ smbAccessBasedEnumeration?: SmbAccessBasedEnumeration; - /** Enables non browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume */ + /** Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume */ smbNonBrowsable?: SmbNonBrowsable; /** Enables continuously available share property for smb volume. Only applicable for SMB volume */ smbContinuouslyAvailable?: boolean; @@ -1769,6 +1678,13 @@ export interface Volume extends TrackedResource { coolAccess?: boolean; /** Specifies the number of days after which data that is not accessed by clients will be tiered. */ coolnessPeriod?: number; + /** + * coolAccessRetrievalPolicy determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes. The possible values for this field are: + * Default - Data will be pulled from cool tier to standard storage on random reads. This policy is the default. + * OnRead - All client-driven data read is pulled from cool tier to standard storage on both sequential and random reads. + * Never - No client-driven data is pulled from cool tier to standard storage. + */ + coolAccessRetrievalPolicy?: CoolAccessRetrievalPolicy; /** UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. */ unixPermissions?: string; /** @@ -1914,6 +1830,16 @@ export interface VolumeQuotaRule extends TrackedResource { quotaTarget?: string; } +/** Defines headers for NetAppResource_updateNetworkSiblingSet operation. */ +export interface NetAppResourceUpdateNetworkSiblingSetHeaders { + location?: string; +} + +/** Defines headers for Volumes_populateAvailabilityZone operation. */ +export interface VolumesPopulateAvailabilityZoneHeaders { + location?: string; +} + /** Defines headers for Volumes_breakFileLocks operation. */ export interface VolumesBreakFileLocksHeaders { location?: string; @@ -1924,11 +1850,6 @@ export interface VolumesListGetGroupIdListForLdapUserHeaders { location?: string; } -/** Defines headers for Backups_restoreFiles operation. */ -export interface BackupsRestoreFilesHeaders { - location?: string; -} - /** Known values of {@link MetricAggregationType} that the service accepts. */ export enum KnownMetricAggregationType { /** Average */ @@ -2070,6 +1991,54 @@ export enum KnownRegionStorageToNetworkProximity { */ export type RegionStorageToNetworkProximity = string; +/** Known values of {@link NetworkFeatures} that the service accepts. */ +export enum KnownNetworkFeatures { + /** Basic network features. */ + Basic = "Basic", + /** Standard network features. */ + Standard = "Standard", + /** Updating from Basic to Standard network features. */ + BasicStandard = "Basic_Standard", + /** Updating from Standard to Basic network features. */ + StandardBasic = "Standard_Basic" +} + +/** + * Defines values for NetworkFeatures. \ + * {@link KnownNetworkFeatures} can be used interchangeably with NetworkFeatures, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic**: Basic network features. \ + * **Standard**: Standard network features. \ + * **Basic_Standard**: Updating from Basic to Standard network features. \ + * **Standard_Basic**: Updating from Standard to Basic network features. + */ +export type NetworkFeatures = string; + +/** Known values of {@link NetworkSiblingSetProvisioningState} that the service accepts. */ +export enum KnownNetworkSiblingSetProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Updating */ + Updating = "Updating" +} + +/** + * Defines values for NetworkSiblingSetProvisioningState. \ + * {@link KnownNetworkSiblingSetProvisioningState} can be used interchangeably with NetworkSiblingSetProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Updating** + */ +export type NetworkSiblingSetProvisioningState = string; + /** Known values of {@link ActiveDirectoryStatus} that the service accepts. */ export enum KnownActiveDirectoryStatus { /** Active Directory created but not in use */ @@ -2244,24 +2213,6 @@ export enum KnownChownMode { */ export type ChownMode = string; -/** Known values of {@link NetworkFeatures} that the service accepts. */ -export enum KnownNetworkFeatures { - /** Basic network feature. */ - Basic = "Basic", - /** Standard network feature. */ - Standard = "Standard" -} - -/** - * Defines values for NetworkFeatures. \ - * {@link KnownNetworkFeatures} can be used interchangeably with NetworkFeatures, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Basic**: Basic network feature. \ - * **Standard**: Standard network feature. - */ -export type NetworkFeatures = string; - /** Known values of {@link VolumeStorageToNetworkProximity} that the service accepts. */ export enum KnownVolumeStorageToNetworkProximity { /** Basic storage to network connectivity. */ @@ -2397,6 +2348,27 @@ export enum KnownEncryptionKeySource { */ export type EncryptionKeySource = string; +/** Known values of {@link CoolAccessRetrievalPolicy} that the service accepts. */ +export enum KnownCoolAccessRetrievalPolicy { + /** Default */ + Default = "Default", + /** OnRead */ + OnRead = "OnRead", + /** Never */ + Never = "Never" +} + +/** + * Defines values for CoolAccessRetrievalPolicy. \ + * {@link KnownCoolAccessRetrievalPolicy} can be used interchangeably with CoolAccessRetrievalPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **OnRead** \ + * **Never** + */ +export type CoolAccessRetrievalPolicy = string; + /** Known values of {@link FileAccessLogs} that the service accepts. */ export enum KnownFileAccessLogs { /** fileAccessLogs are enabled */ @@ -2490,24 +2462,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 */ @@ -2535,7 +2489,9 @@ export type Type = string; /** Known values of {@link ApplicationType} that the service accepts. */ export enum KnownApplicationType { /** SAPHana */ - SAPHana = "SAP-HANA" + SAPHana = "SAP-HANA", + /** Oracle */ + Oracle = "ORACLE" } /** @@ -2543,7 +2499,8 @@ export enum KnownApplicationType { * {@link KnownApplicationType} can be used interchangeably with ApplicationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SAP-HANA** + * **SAP-HANA** \ + * **ORACLE** */ export type ApplicationType = string; /** Defines values for ProvisioningState. */ @@ -2591,6 +2548,25 @@ export interface NetAppResourceQueryRegionInfoOptionalParams /** Contains response data for the queryRegionInfo operation. */ export type NetAppResourceQueryRegionInfoResponse = RegionInfo; +/** Optional parameters. */ +export interface NetAppResourceQueryNetworkSiblingSetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the queryNetworkSiblingSet operation. */ +export type NetAppResourceQueryNetworkSiblingSetResponse = NetworkSiblingSet; + +/** Optional parameters. */ +export interface NetAppResourceUpdateNetworkSiblingSetOptionalParams + 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 updateNetworkSiblingSet operation. */ +export type NetAppResourceUpdateNetworkSiblingSetResponse = NetworkSiblingSet; + /** Optional parameters. */ export interface NetAppResourceQuotaLimitsListOptionalParams extends coreClient.OperationOptions {} @@ -2780,6 +2756,18 @@ export interface VolumesDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface VolumesPopulateAvailabilityZoneOptionalParams + 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 populateAvailabilityZone operation. */ +export type VolumesPopulateAvailabilityZoneResponse = Volume; + /** Optional parameters. */ export interface VolumesRevertOptionalParams extends coreClient.OperationOptions { @@ -3041,13 +3029,6 @@ export interface SnapshotPoliciesListVolumesOptionalParams /** Contains response data for the listVolumes operation. */ export type SnapshotPoliciesListVolumesResponse = SnapshotPolicyVolumeList; -/** Optional parameters. */ -export interface BackupsGetStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getStatus operation. */ -export type BackupsGetStatusResponse = BackupStatus; - /** Optional parameters. */ export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient.OperationOptions {} @@ -3055,86 +3036,6 @@ export interface BackupsGetVolumeRestoreStatusOptionalParams /** Contains response data for the getVolumeRestoreStatus operation. */ export type BackupsGetVolumeRestoreStatusResponse = RestoreStatus; -/** Optional parameters. */ -export interface BackupsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type BackupsListResponse = 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; -} - -/** Optional parameters. */ -export interface BackupsRestoreFilesOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface AccountBackupsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type AccountBackupsListResponse = 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; -} - /** Optional parameters. */ export interface BackupPoliciesListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index 823e6f69f520..f15467f13ad9 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -554,6 +554,264 @@ export const RegionInfoAvailabilityZoneMappingsItem: coreClient.CompositeMapper } }; +export const QueryNetworkSiblingSetRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueryNetworkSiblingSetRequest", + modelProperties: { + 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}$" + ), + MaxLength: 36, + MinLength: 36 + }, + serializedName: "networkSiblingSetId", + required: true, + type: { + name: "String" + } + }, + subnetId: { + serializedName: "subnetId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NetworkSiblingSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkSiblingSet", + modelProperties: { + 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}$" + ), + MaxLength: 36, + MinLength: 36 + }, + serializedName: "networkSiblingSetId", + type: { + name: "String" + } + }, + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + networkSiblingSetStateId: { + serializedName: "networkSiblingSetStateId", + type: { + name: "String" + } + }, + networkFeatures: { + defaultValue: "Basic", + serializedName: "networkFeatures", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + nicInfoList: { + serializedName: "nicInfoList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NicInfo" + } + } + } + } + } + } +}; + +export const NicInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NicInfo", + modelProperties: { + ipAddress: { + serializedName: "ipAddress", + readOnly: true, + type: { + name: "String" + } + }, + volumeResourceIds: { + serializedName: "volumeResourceIds", + type: { + name: "Sequence", + element: { + type: { + 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 UpdateNetworkSiblingSetRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateNetworkSiblingSetRequest", + modelProperties: { + 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}$" + ), + MaxLength: 36, + MinLength: 36 + }, + serializedName: "networkSiblingSetId", + required: true, + type: { + name: "String" + } + }, + subnetId: { + serializedName: "subnetId", + required: true, + type: { + name: "String" + } + }, + networkSiblingSetStateId: { + serializedName: "networkSiblingSetStateId", + required: true, + type: { + name: "String" + } + }, + networkFeatures: { + defaultValue: "Basic", + serializedName: "networkFeatures", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const NetAppAccountList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -600,6 +858,9 @@ export const ActiveDirectory: coreClient.CompositeMapper = { } }, password: { + constraints: { + MaxLength: 64 + }, serializedName: "password", type: { name: "String" @@ -1405,13 +1666,6 @@ export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumePropertiesDataProtection", modelProperties: { - backup: { - serializedName: "backup", - type: { - name: "Composite", - className: "VolumeBackupProperties" - } - }, replication: { serializedName: "replication", type: { @@ -1437,54 +1691,28 @@ export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { } }; -export const VolumeBackupProperties: coreClient.CompositeMapper = { +export const ReplicationObject: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VolumeBackupProperties", + className: "ReplicationObject", modelProperties: { - backupPolicyId: { - serializedName: "backupPolicyId", + replicationId: { + serializedName: "replicationId", + readOnly: true, type: { name: "String" } }, - policyEnforced: { - serializedName: "policyEnforced", + endpointType: { + serializedName: "endpointType", type: { - name: "Boolean" + name: "String" } }, - backupEnabled: { - serializedName: "backupEnabled", + replicationSchedule: { + serializedName: "replicationSchedule", type: { - name: "Boolean" - } - } - } - } -}; - -export const ReplicationObject: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ReplicationObject", - modelProperties: { - replicationId: { - serializedName: "replicationId", - type: { - name: "String" - } - }, - endpointType: { - serializedName: "endpointType", - type: { - name: "String" - } - }, - replicationSchedule: { - serializedName: "replicationSchedule", - type: { - name: "String" + name: "String" } }, remoteVolumeResourceId: { @@ -1613,7 +1841,7 @@ export const VolumePatch: coreClient.CompositeMapper = { usageThreshold: { defaultValue: 107374182400, constraints: { - InclusiveMaximum: 549755813888000, + InclusiveMaximum: 2638827906662400, InclusiveMinimum: 107374182400 }, serializedName: "properties.usageThreshold", @@ -1689,11 +1917,30 @@ export const VolumePatch: coreClient.CompositeMapper = { name: "Number" } }, + coolAccessRetrievalPolicy: { + serializedName: "properties.coolAccessRetrievalPolicy", + type: { + name: "String" + } + }, snapshotDirectoryVisible: { serializedName: "properties.snapshotDirectoryVisible", type: { name: "Boolean" } + }, + smbAccessBasedEnumeration: { + serializedName: "properties.smbAccessBasedEnumeration", + nullable: true, + type: { + name: "String" + } + }, + smbNonBrowsable: { + serializedName: "properties.smbNonBrowsable", + type: { + name: "String" + } } } } @@ -1725,13 +1972,6 @@ export const VolumePatchPropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumePatchPropertiesDataProtection", modelProperties: { - backup: { - serializedName: "backup", - type: { - name: "Composite", - className: "VolumeBackupProperties" - } - }, snapshot: { serializedName: "snapshot", type: { @@ -1825,102 +2065,6 @@ export const GetGroupIdListForLdapUserResponse: coreClient.CompositeMapper = { } }; -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 BreakReplicationRequest: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2341,196 +2485,59 @@ export const SnapshotPolicyPatch: coreClient.CompositeMapper = { tags: { serializedName: "tags", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - hourlySchedule: { - serializedName: "properties.hourlySchedule", - type: { - name: "Composite", - className: "HourlySchedule" - } - }, - dailySchedule: { - serializedName: "properties.dailySchedule", - type: { - name: "Composite", - className: "DailySchedule" - } - }, - weeklySchedule: { - serializedName: "properties.weeklySchedule", - type: { - name: "Composite", - className: "WeeklySchedule" - } - }, - monthlySchedule: { - serializedName: "properties.monthlySchedule", - type: { - name: "Composite", - className: "MonthlySchedule" - } - }, - enabled: { - serializedName: "properties.enabled", - type: { - name: "Boolean" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SnapshotPolicyVolumeList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SnapshotPolicyVolumeList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - 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" - } - } - } - } -}; - -export const RestoreStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestoreStatus", - modelProperties: { - healthy: { - serializedName: "healthy", - readOnly: true, + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + hourlySchedule: { + serializedName: "properties.hourlySchedule", type: { - name: "Boolean" + name: "Composite", + className: "HourlySchedule" } }, - relationshipStatus: { - serializedName: "relationshipStatus", - readOnly: true, + dailySchedule: { + serializedName: "properties.dailySchedule", type: { - name: "String" + name: "Composite", + className: "DailySchedule" } }, - mirrorState: { - serializedName: "mirrorState", - readOnly: true, + weeklySchedule: { + serializedName: "properties.weeklySchedule", type: { - name: "String" + name: "Composite", + className: "WeeklySchedule" } }, - unhealthyReason: { - serializedName: "unhealthyReason", - readOnly: true, + monthlySchedule: { + serializedName: "properties.monthlySchedule", type: { - name: "String" + name: "Composite", + className: "MonthlySchedule" } }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, + enabled: { + serializedName: "properties.enabled", type: { - name: "String" + name: "Boolean" } }, - totalTransferBytes: { - serializedName: "totalTransferBytes", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const BackupsList: coreClient.CompositeMapper = { +export const SnapshotPolicyVolumeList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupsList", + className: "SnapshotPolicyVolumeList", modelProperties: { value: { serializedName: "value", @@ -2539,7 +2546,7 @@ export const BackupsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Backup" + className: "Volume" } } } @@ -2548,85 +2555,51 @@ export const BackupsList: coreClient.CompositeMapper = { } }; -export const BackupPatch: coreClient.CompositeMapper = { +export const RestoreStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupPatch", + className: "RestoreStatus", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - backupId: { - 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 - }, - serializedName: "properties.backupId", - readOnly: true, - type: { - name: "String" - } - }, - creationDate: { - serializedName: "properties.creationDate", + healthy: { + serializedName: "healthy", readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", + relationshipStatus: { + serializedName: "relationshipStatus", readOnly: true, type: { name: "String" } }, - size: { - serializedName: "properties.size", + mirrorState: { + serializedName: "mirrorState", readOnly: true, - type: { - name: "Number" - } - }, - label: { - serializedName: "properties.label", type: { name: "String" } }, - backupType: { - serializedName: "properties.backupType", + unhealthyReason: { + serializedName: "unhealthyReason", readOnly: true, type: { name: "String" } }, - failureReason: { - serializedName: "properties.failureReason", + errorMessage: { + serializedName: "errorMessage", readOnly: true, type: { name: "String" } }, - volumeName: { - serializedName: "properties.volumeName", + totalTransferBytes: { + serializedName: "totalTransferBytes", readOnly: true, type: { - name: "String" - } - }, - useExistingSnapshot: { - defaultValue: false, - serializedName: "properties.useExistingSnapshot", - type: { - name: "Boolean" + name: "Number" } } } @@ -3070,6 +3043,21 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + constraints: { + MaxLength: 255, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + }, fileSystemId: { constraints: { Pattern: new RegExp( @@ -3106,7 +3094,7 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { usageThreshold: { defaultValue: 107374182400, constraints: { - InclusiveMaximum: 549755813888000, + InclusiveMaximum: 2638827906662400, InclusiveMinimum: 107374182400 }, serializedName: "properties.usageThreshold", @@ -3264,6 +3252,7 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", + nullable: true, type: { name: "String" } @@ -3332,8 +3321,13 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "Number" } }, + coolAccessRetrievalPolicy: { + serializedName: "properties.coolAccessRetrievalPolicy", + type: { + name: "String" + } + }, unixPermissions: { - defaultValue: "0770", constraints: { MaxLength: 4, MinLength: 4 @@ -3631,51 +3625,6 @@ export const SubvolumeModel: coreClient.CompositeMapper = { } }; -export const BackupRestoreFiles: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupRestoreFiles", - modelProperties: { - fileList: { - constraints: { - MinItems: 1, - MaxItems: 8 - }, - 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 ResourceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3977,92 +3926,6 @@ export const Snapshot: coreClient.CompositeMapper = { } }; -export const Backup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Backup", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - }, - backupId: { - 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 - }, - 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", - readOnly: true, - type: { - name: "String" - } - }, - failureReason: { - serializedName: "properties.failureReason", - readOnly: true, - type: { - name: "String" - } - }, - volumeName: { - serializedName: "properties.volumeName", - readOnly: true, - type: { - name: "String" - } - }, - useExistingSnapshot: { - defaultValue: false, - serializedName: "properties.useExistingSnapshot", - type: { - name: "Boolean" - } - } - } - } -}; - export const SubvolumeInfo: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4311,7 +4174,7 @@ export const Volume: coreClient.CompositeMapper = { usageThreshold: { defaultValue: 107374182400, constraints: { - InclusiveMaximum: 549755813888000, + InclusiveMaximum: 2638827906662400, InclusiveMinimum: 107374182400 }, serializedName: "properties.usageThreshold", @@ -4469,6 +4332,7 @@ export const Volume: coreClient.CompositeMapper = { }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", + nullable: true, type: { name: "String" } @@ -4537,8 +4401,13 @@ export const Volume: coreClient.CompositeMapper = { name: "Number" } }, + coolAccessRetrievalPolicy: { + serializedName: "properties.coolAccessRetrievalPolicy", + type: { + name: "String" + } + }, unixPermissions: { - defaultValue: "0770", constraints: { MaxLength: 4, MinLength: 4 @@ -4874,10 +4743,10 @@ export const VolumeQuotaRule: coreClient.CompositeMapper = { } }; -export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { +export const NetAppResourceUpdateNetworkSiblingSetHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VolumesBreakFileLocksHeaders", + className: "NetAppResourceUpdateNetworkSiblingSetHeaders", modelProperties: { location: { serializedName: "location", @@ -4889,10 +4758,25 @@ export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { } }; -export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMapper = { +export const VolumesPopulateAvailabilityZoneHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VolumesListGetGroupIdListForLdapUserHeaders", + className: "VolumesPopulateAvailabilityZoneHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VolumesBreakFileLocksHeaders", modelProperties: { location: { serializedName: "location", @@ -4904,10 +4788,10 @@ export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMa } }; -export const BackupsRestoreFilesHeaders: coreClient.CompositeMapper = { +export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackupsRestoreFilesHeaders", + className: "VolumesListGetGroupIdListForLdapUserHeaders", modelProperties: { location: { serializedName: "location", diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index f7ac17210053..70f8a06d6f4a 100644 --- a/sdk/netapp/arm-netapp/src/models/parameters.ts +++ b/sdk/netapp/arm-netapp/src/models/parameters.ts @@ -15,6 +15,8 @@ import { ResourceNameAvailabilityRequest as ResourceNameAvailabilityRequestMapper, FilePathAvailabilityRequest as FilePathAvailabilityRequestMapper, QuotaAvailabilityRequest as QuotaAvailabilityRequestMapper, + QueryNetworkSiblingSetRequest as QueryNetworkSiblingSetRequestMapper, + UpdateNetworkSiblingSetRequest as UpdateNetworkSiblingSetRequestMapper, NetAppAccount as NetAppAccountMapper, NetAppAccountPatch as NetAppAccountPatchMapper, CapacityPool as CapacityPoolMapper, @@ -33,9 +35,6 @@ import { SnapshotRestoreFiles as SnapshotRestoreFilesMapper, SnapshotPolicy as SnapshotPolicyMapper, SnapshotPolicyPatch as SnapshotPolicyPatchMapper, - Backup as BackupMapper, - BackupPatch as BackupPatchMapper, - BackupRestoreFiles as BackupRestoreFilesMapper, BackupPolicy as BackupPolicyMapper, BackupPolicyPatch as BackupPolicyPatchMapper, VolumeQuotaRule as VolumeQuotaRuleMapper, @@ -72,7 +71,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-11-01", + defaultValue: "2023-05-01", isConstant: true, serializedName: "api-version", type: { @@ -161,6 +160,36 @@ export const resourceGroup1: OperationParameter = { mapper: QuotaAvailabilityRequestMapper }; +export const networkSiblingSetId: OperationParameter = { + parameterPath: "networkSiblingSetId", + mapper: QueryNetworkSiblingSetRequestMapper +}; + +export const subnetId1: OperationParameter = { + parameterPath: "subnetId", + mapper: QueryNetworkSiblingSetRequestMapper +}; + +export const networkSiblingSetId1: OperationParameter = { + parameterPath: "networkSiblingSetId", + mapper: UpdateNetworkSiblingSetRequestMapper +}; + +export const subnetId2: OperationParameter = { + parameterPath: "subnetId", + mapper: UpdateNetworkSiblingSetRequestMapper +}; + +export const networkSiblingSetStateId: OperationParameter = { + parameterPath: "networkSiblingSetStateId", + mapper: UpdateNetworkSiblingSetRequestMapper +}; + +export const networkFeatures: OperationParameter = { + parameterPath: "networkFeatures", + mapper: UpdateNetworkSiblingSetRequestMapper +}; + export const quotaLimitName: OperationURLParameter = { parameterPath: "quotaLimitName", mapper: { @@ -191,7 +220,7 @@ export const accountName: OperationURLParameter = { parameterPath: "accountName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$") + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,127}$") }, serializedName: "accountName", required: true, @@ -201,12 +230,12 @@ export const accountName: OperationURLParameter = { } }; -export const body3: OperationParameter = { +export const body5: OperationParameter = { parameterPath: "body", mapper: NetAppAccountMapper }; -export const body4: OperationParameter = { +export const body6: OperationParameter = { parameterPath: "body", mapper: NetAppAccountPatchMapper }; @@ -239,12 +268,12 @@ export const poolName: OperationURLParameter = { } }; -export const body5: OperationParameter = { +export const body7: OperationParameter = { parameterPath: "body", mapper: CapacityPoolMapper }; -export const body6: OperationParameter = { +export const body8: OperationParameter = { parameterPath: "body", mapper: CapacityPoolPatchMapper }; @@ -265,12 +294,12 @@ export const volumeName: OperationURLParameter = { } }; -export const body7: OperationParameter = { +export const body9: OperationParameter = { parameterPath: "body", mapper: VolumeMapper }; -export const body8: OperationParameter = { +export const body10: OperationParameter = { parameterPath: "body", mapper: VolumePatchMapper }; @@ -285,42 +314,42 @@ export const forceDelete: OperationQueryParameter = { } }; -export const body9: OperationParameter = { +export const body11: OperationParameter = { parameterPath: "body", mapper: VolumeRevertMapper }; -export const body10: OperationParameter = { +export const body12: OperationParameter = { parameterPath: ["options", "body"], mapper: BreakFileLocksRequestMapper }; -export const body11: OperationParameter = { +export const body13: OperationParameter = { parameterPath: "body", mapper: GetGroupIdListForLdapUserRequestMapper }; -export const body12: OperationParameter = { +export const body14: OperationParameter = { parameterPath: ["options", "body"], mapper: BreakReplicationRequestMapper }; -export const body13: OperationParameter = { +export const body15: OperationParameter = { parameterPath: "body", mapper: ReestablishReplicationRequestMapper }; -export const body14: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", mapper: AuthorizeRequestMapper }; -export const body15: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", mapper: PoolChangeRequestMapper }; -export const body16: OperationParameter = { +export const body18: OperationParameter = { parameterPath: ["options", "body"], mapper: RelocateVolumeRequestMapper }; @@ -336,12 +365,12 @@ export const snapshotName: OperationURLParameter = { } }; -export const body17: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", mapper: SnapshotMapper }; -export const body18: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: { serializedName: "body", @@ -353,7 +382,7 @@ export const body18: OperationParameter = { } }; -export const body19: OperationParameter = { +export const body21: OperationParameter = { parameterPath: "body", mapper: SnapshotRestoreFilesMapper }; @@ -369,43 +398,14 @@ export const snapshotPolicyName: OperationURLParameter = { } }; -export const body20: OperationParameter = { - parameterPath: "body", - mapper: SnapshotPolicyMapper -}; - -export const body21: OperationParameter = { - parameterPath: "body", - mapper: SnapshotPolicyPatchMapper -}; - -export const backupName: OperationURLParameter = { - parameterPath: "backupName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$") - }, - serializedName: "backupName", - required: true, - type: { - name: "String" - } - } -}; - export const body22: OperationParameter = { parameterPath: "body", - mapper: BackupMapper + mapper: SnapshotPolicyMapper }; export const body23: OperationParameter = { - parameterPath: ["options", "body"], - mapper: BackupPatchMapper -}; - -export const body24: OperationParameter = { parameterPath: "body", - mapper: BackupRestoreFilesMapper + mapper: SnapshotPolicyPatchMapper }; export const backupPolicyName: OperationURLParameter = { @@ -419,12 +419,12 @@ export const backupPolicyName: OperationURLParameter = { } }; -export const body25: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", mapper: BackupPolicyMapper }; -export const body26: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", mapper: BackupPolicyPatchMapper }; @@ -440,12 +440,12 @@ export const volumeQuotaRuleName: OperationURLParameter = { } }; -export const body27: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", mapper: VolumeQuotaRuleMapper }; -export const body28: OperationParameter = { +export const body27: OperationParameter = { parameterPath: "body", mapper: VolumeQuotaRulePatchMapper }; @@ -466,7 +466,7 @@ export const volumeGroupName: OperationURLParameter = { } }; -export const body29: OperationParameter = { +export const body28: OperationParameter = { parameterPath: "body", mapper: VolumeGroupDetailsMapper }; @@ -487,12 +487,12 @@ export const subvolumeName: OperationURLParameter = { } }; -export const body30: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", mapper: SubvolumeInfoMapper }; -export const body31: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", mapper: SubvolumePatchRequestMapper }; diff --git a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts index 9224982eb929..5aa3b09b35fa 100644 --- a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts @@ -24,7 +24,6 @@ import { SnapshotsImpl, SnapshotPoliciesImpl, BackupsImpl, - AccountBackupsImpl, BackupPoliciesImpl, VolumeQuotaRulesImpl, VolumeGroupsImpl, @@ -40,7 +39,6 @@ import { Snapshots, SnapshotPolicies, Backups, - AccountBackups, BackupPolicies, VolumeQuotaRules, VolumeGroups, @@ -80,7 +78,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-netapp/18.1.1`; + const packageDetails = `azsdk-js-arm-netapp/19.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -133,7 +131,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-11-01"; + this.apiVersion = options.apiVersion || "2023-05-01"; this.operations = new OperationsImpl(this); this.netAppResource = new NetAppResourceImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsImpl(this); @@ -143,7 +141,6 @@ export class NetAppManagementClient extends coreClient.ServiceClient { 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); @@ -188,7 +185,6 @@ export class NetAppManagementClient extends coreClient.ServiceClient { snapshots: Snapshots; snapshotPolicies: SnapshotPolicies; backups: Backups; - accountBackups: AccountBackups; backupPolicies: BackupPolicies; volumeQuotaRules: VolumeQuotaRules; volumeGroups: VolumeGroups; 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 895a2f05d444..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts +++ /dev/null @@ -1,283 +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, - AccountBackupsListOptionalParams, - AccountBackupsListResponse, - AccountBackupsGetOptionalParams, - AccountBackupsGetResponse, - AccountBackupsDeleteOptionalParams -} 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 list( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(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.listPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: AccountBackupsListResponse; - result = await this._list(resourceGroupName, accountName, options); - yield result.value || []; - } - - private async *listPagingAll( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - 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 _list( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listOperationSpec - ); - } - - /** - * 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, void>> { - 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>(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 listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: {} - }, - 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}/accountBackups/{backupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - default: {} - }, - 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: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupName - ], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/accounts.ts b/sdk/netapp/arm-netapp/src/operations/accounts.ts index 040173104a5a..05e875ec9c8e 100644 --- a/sdk/netapp/arm-netapp/src/operations/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operations/accounts.ts @@ -684,7 +684,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body3, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -731,7 +731,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.body4, + requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts index 0ef06b8974b6..022827097f80 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts @@ -492,7 +492,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body25, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -524,7 +524,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body26, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/backups.ts b/sdk/netapp/arm-netapp/src/operations/backups.ts index 70b1737160ba..8e5bb823e171 100644 --- a/sdk/netapp/arm-netapp/src/operations/backups.ts +++ b/sdk/netapp/arm-netapp/src/operations/backups.ts @@ -6,38 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; 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, - BackupsListOptionalParams, - BackupsListResponse, - BackupsGetStatusOptionalParams, - BackupsGetStatusResponse, BackupsGetVolumeRestoreStatusOptionalParams, - BackupsGetVolumeRestoreStatusResponse, - BackupsGetOptionalParams, - BackupsGetResponse, - BackupsCreateOptionalParams, - BackupsCreateResponse, - BackupsUpdateOptionalParams, - BackupsUpdateResponse, - BackupsDeleteOptionalParams, - BackupRestoreFiles, - BackupsRestoreFilesOptionalParams + BackupsGetVolumeRestoreStatusResponse } from "../models"; -/// /** Class containing Backups operations. */ export class BackupsImpl implements Backups { private readonly client: NetAppManagementClient; @@ -50,109 +28,6 @@ export class BackupsImpl implements Backups { this.client = client; } - /** - * List all backups 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. - */ - public list( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - accountName, - poolName, - volumeName, - 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( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsListOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: BackupsListResponse; - result = await this._list( - resourceGroupName, - accountName, - poolName, - volumeName, - options - ); - yield result.value || []; - } - - private async *listPagingAll( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - accountName, - poolName, - volumeName, - options - )) { - yield* page; - } - } - - /** - * Get the 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. - */ - getStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsGetStatusOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, poolName, volumeName, options }, - getStatusOperationSpec - ); - } - /** * Get the status of the restore for a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -173,531 +48,10 @@ export class BackupsImpl implements Backups { getVolumeRestoreStatusOperationSpec ); } - - /** - * List all backups 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. - */ - private _list( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, poolName, volumeName, options }, - listOperationSpec - ); - } - - /** - * Gets the specified backup of the 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 backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - options - }, - getOperationSpec - ); - } - - /** - * Create a backup for the 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 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, - poolName: string, - volumeName: 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, - poolName, - volumeName, - backupName, - body, - options - }, - spec: createOperationSpec - }); - const poller = await createHttpPoller< - BackupsCreateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Create a backup for the 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 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, - poolName: string, - volumeName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Patch a backup for the 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 backupName The name of the backup - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: 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, - poolName, - volumeName, - 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 for the 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 backupName The name of the backup - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete a backup of the 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 backupName The name of the backup - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise, void>> { - 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, - backupName, - options - }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete a backup of the 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 backupName The name of the backup - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - options - ); - return poller.pollUntilDone(); - } - - /** - * 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 poolName The name of the capacity pool - * @param volumeName The name of the volume - * @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, - poolName: string, - volumeName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsRestoreFilesOptionalParams - ): Promise, void>> { - 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, - backupName, - body, - options - }, - spec: restoreFilesOperationSpec - }); - const poller = await createHttpPoller>(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 poolName The name of the capacity pool - * @param volumeName The name of the volume - * @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, - poolName: string, - volumeName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsRestoreFilesOptionalParams - ): Promise { - const poller = await this.beginRestoreFiles( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body, - options - ); - return poller.pollUntilDone(); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupStatus - }, - default: {} - }, - 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", @@ -720,153 +74,3 @@ const getVolumeRestoreStatusOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: {} - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - default: {} - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - 201: { - bodyMapper: Mappers.Backup - }, - 202: { - bodyMapper: Mappers.Backup - }, - 204: { - bodyMapper: Mappers.Backup - }, - default: {} - }, - requestBody: Parameters.body22, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - 201: { - bodyMapper: Mappers.Backup - }, - 202: { - bodyMapper: Mappers.Backup - }, - 204: { - bodyMapper: Mappers.Backup - }, - default: {} - }, - requestBody: Parameters.body23, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName, - Parameters.backupName - ], - serializer -}; -const restoreFilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}/restoreFiles", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body24, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName, - Parameters.backupName - ], - headerParameters: [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 1fdc2dbd7a93..3452b163b6da 100644 --- a/sdk/netapp/arm-netapp/src/operations/index.ts +++ b/sdk/netapp/arm-netapp/src/operations/index.ts @@ -15,7 +15,6 @@ export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; -export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; export * from "./volumeGroups"; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts index e52545da4bc5..0d1269707fc3 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts @@ -11,6 +11,12 @@ 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 { CheckNameResourceTypes, NetAppResourceCheckNameAvailabilityOptionalParams, @@ -21,7 +27,12 @@ import { NetAppResourceCheckQuotaAvailabilityOptionalParams, NetAppResourceCheckQuotaAvailabilityResponse, NetAppResourceQueryRegionInfoOptionalParams, - NetAppResourceQueryRegionInfoResponse + NetAppResourceQueryRegionInfoResponse, + NetAppResourceQueryNetworkSiblingSetOptionalParams, + NetAppResourceQueryNetworkSiblingSetResponse, + NetworkFeatures, + NetAppResourceUpdateNetworkSiblingSetOptionalParams, + NetAppResourceUpdateNetworkSiblingSetResponse } from "../models"; /** Class containing NetAppResource operations. */ @@ -112,6 +123,149 @@ export class NetAppResourceImpl implements NetAppResource { queryRegionInfoOperationSpec ); } + + /** + * Get details of the specified network sibling set. + * @param location The name of Azure region. + * @param networkSiblingSetId Network Sibling Set ID for a group of volumes sharing networking + * resources in a subnet. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes. Example + * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + * @param options The options parameters. + */ + queryNetworkSiblingSet( + location: string, + networkSiblingSetId: string, + subnetId: string, + options?: NetAppResourceQueryNetworkSiblingSetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, networkSiblingSetId, subnetId, options }, + queryNetworkSiblingSetOperationSpec + ); + } + + /** + * Update the network features of the specified network sibling set. + * @param location The name of Azure region. + * @param networkSiblingSetId Network Sibling Set ID for a group of volumes sharing networking + * resources in a subnet. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes. Example + * /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, some such + * @param options The options parameters. + */ + async beginUpdateNetworkSiblingSet( + location: string, + networkSiblingSetId: string, + subnetId: string, + networkSiblingSetStateId: string, + networkFeatures: NetworkFeatures, + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetAppResourceUpdateNetworkSiblingSetResponse + > + > { + 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: { + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + options + }, + spec: updateNetworkSiblingSetOperationSpec + }); + const poller = await createHttpPoller< + NetAppResourceUpdateNetworkSiblingSetResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Update the network features of the specified network sibling set. + * @param location The name of Azure region. + * @param networkSiblingSetId Network Sibling Set ID for a group of volumes sharing networking + * resources in a subnet. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes. Example + * /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, some such + * @param options The options parameters. + */ + async beginUpdateNetworkSiblingSetAndWait( + location: string, + networkSiblingSetId: string, + subnetId: string, + networkSiblingSetStateId: string, + networkFeatures: NetworkFeatures, + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + ): Promise { + const poller = await this.beginUpdateNetworkSiblingSet( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + options + ); + return poller.pollUntilDone(); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -215,3 +369,72 @@ const queryRegionInfoOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const queryNetworkSiblingSetOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NetworkSiblingSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: { + parameterPath: { + networkSiblingSetId: ["networkSiblingSetId"], + subnetId: ["subnetId"] + }, + mapper: { ...Mappers.QueryNetworkSiblingSetRequest, required: true } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateNetworkSiblingSetOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NetworkSiblingSet + }, + 201: { + bodyMapper: Mappers.NetworkSiblingSet + }, + 202: { + bodyMapper: Mappers.NetworkSiblingSet + }, + 204: { + bodyMapper: Mappers.NetworkSiblingSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: { + parameterPath: { + networkSiblingSetId: ["networkSiblingSetId"], + subnetId: ["subnetId"], + networkSiblingSetStateId: ["networkSiblingSetStateId"], + networkFeatures: ["networkFeatures"] + }, + mapper: { ...Mappers.UpdateNetworkSiblingSetRequest, required: true } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/netapp/arm-netapp/src/operations/pools.ts b/sdk/netapp/arm-netapp/src/operations/pools.ts index 92f5bc4ce3f9..e8ca4ae2cbe4 100644 --- a/sdk/netapp/arm-netapp/src/operations/pools.ts +++ b/sdk/netapp/arm-netapp/src/operations/pools.ts @@ -529,7 +529,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body5, + requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -561,7 +561,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body6, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts index 30275b04f01d..0d37dec2e158 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts @@ -433,7 +433,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body20, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -465,7 +465,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body21, + requestBody: Parameters.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/snapshots.ts b/sdk/netapp/arm-netapp/src/operations/snapshots.ts index 8ded23909f64..b9f511957073 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshots.ts @@ -700,7 +700,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body17, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -734,7 +734,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body18, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -771,7 +771,7 @@ const restoreFilesOperationSpec: coreClient.OperationSpec = { "/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.body19, + requestBody: Parameters.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts index 52f6cd8943af..c446eef73b2e 100644 --- a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts @@ -756,7 +756,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body30, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -790,7 +790,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body31, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts index 459cb7c04522..373390e30cd5 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts @@ -395,7 +395,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body29, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts index a19294146381..9bea00ee605c 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts @@ -588,7 +588,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body27, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -622,7 +622,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body28, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/volumes.ts b/sdk/netapp/arm-netapp/src/operations/volumes.ts index 4c5cbd623fd3..4d2884ae3d8c 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumes.ts @@ -35,6 +35,8 @@ import { VolumesUpdateOptionalParams, VolumesUpdateResponse, VolumesDeleteOptionalParams, + VolumesPopulateAvailabilityZoneOptionalParams, + VolumesPopulateAvailabilityZoneResponse, VolumeRevert, VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, @@ -607,6 +609,107 @@ export class VolumesImpl implements Volumes { return poller.pollUntilDone(); } + /** + * This operation will populate availability zone information 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. + */ + async beginPopulateAvailabilityZone( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesPopulateAvailabilityZoneOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VolumesPopulateAvailabilityZoneResponse + > + > { + 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: populateAvailabilityZoneOperationSpec + }); + const poller = await createHttpPoller< + VolumesPopulateAvailabilityZoneResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * This operation will populate availability zone information 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. + */ + async beginPopulateAvailabilityZoneAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesPopulateAvailabilityZoneOptionalParams + ): Promise { + const poller = await this.beginPopulateAvailabilityZone( + resourceGroupName, + accountName, + poolName, + volumeName, + options + ); + return poller.pollUntilDone(); + } + /** * Revert a volume to the snapshot specified in the body * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2109,7 +2212,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.body7, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2144,7 +2247,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.body8, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2174,12 +2277,45 @@ const deleteOperationSpec: coreClient.OperationSpec = { ], serializer }; +const populateAvailabilityZoneOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.Volume + }, + 201: { + bodyMapper: Mappers.Volume + }, + 202: { + bodyMapper: Mappers.Volume + }, + 204: { + bodyMapper: Mappers.Volume + }, + 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 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.body9, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2214,7 +2350,7 @@ const breakFileLocksOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body10, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2249,7 +2385,7 @@ const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2268,7 +2404,7 @@ const breakReplicationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body12, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2287,7 +2423,7 @@ const reestablishReplicationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body13, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2382,7 +2518,7 @@ const authorizeReplicationOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body14, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2417,7 +2553,7 @@ const poolChangeOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body15, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2436,7 +2572,7 @@ const relocateOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body16, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, 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 31c664fbd508..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts +++ /dev/null @@ -1,72 +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, - AccountBackupsListOptionalParams, - AccountBackupsGetOptionalParams, - AccountBackupsGetResponse, - AccountBackupsDeleteOptionalParams -} 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. - */ - list( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListOptionalParams - ): 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, void>>; - /** - * 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/backups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts index ae20618ae882..e7ad406ae6ea 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts @@ -6,59 +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, - BackupsListOptionalParams, - BackupsGetStatusOptionalParams, - BackupsGetStatusResponse, BackupsGetVolumeRestoreStatusOptionalParams, - BackupsGetVolumeRestoreStatusResponse, - BackupsGetOptionalParams, - BackupsGetResponse, - BackupsCreateOptionalParams, - BackupsCreateResponse, - BackupsUpdateOptionalParams, - BackupsUpdateResponse, - BackupsDeleteOptionalParams, - BackupRestoreFiles, - BackupsRestoreFilesOptionalParams + BackupsGetVolumeRestoreStatusResponse } from "../models"; -/// /** Interface representing a Backups. */ export interface Backups { - /** - * List all backups 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. - */ - list( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the 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. - */ - getStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsGetStatusOptionalParams - ): Promise; /** * Get the status of the restore for a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -74,175 +28,4 @@ export interface Backups { volumeName: string, options?: BackupsGetVolumeRestoreStatusOptionalParams ): Promise; - /** - * Gets the specified backup of the 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 backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsGetOptionalParams - ): Promise; - /** - * Create a backup for the 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 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, - poolName: string, - volumeName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsCreateResponse - > - >; - /** - * Create a backup for the 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 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, - poolName: string, - volumeName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise; - /** - * Patch a backup for the 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 backupName The name of the backup - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUpdateResponse - > - >; - /** - * Patch a backup for the 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 backupName The name of the backup - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise; - /** - * Delete a backup of the 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 backupName The name of the backup - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise, void>>; - /** - * Delete a backup of the 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 backupName The name of the backup - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise; - /** - * 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 poolName The name of the capacity pool - * @param volumeName The name of the volume - * @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, - poolName: string, - volumeName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsRestoreFilesOptionalParams - ): Promise, void>>; - /** - * 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 poolName The name of the capacity pool - * @param volumeName The name of the volume - * @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, - poolName: string, - volumeName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsRestoreFilesOptionalParams - ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts index 1fdc2dbd7a93..3452b163b6da 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts @@ -15,7 +15,6 @@ export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; -export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; export * from "./volumeGroups"; diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts index 9cda50f1af11..e266fa8c7d2c 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { CheckNameResourceTypes, NetAppResourceCheckNameAvailabilityOptionalParams, @@ -16,7 +17,12 @@ import { NetAppResourceCheckQuotaAvailabilityOptionalParams, NetAppResourceCheckQuotaAvailabilityResponse, NetAppResourceQueryRegionInfoOptionalParams, - NetAppResourceQueryRegionInfoResponse + NetAppResourceQueryRegionInfoResponse, + NetAppResourceQueryNetworkSiblingSetOptionalParams, + NetAppResourceQueryNetworkSiblingSetResponse, + NetworkFeatures, + NetAppResourceUpdateNetworkSiblingSetOptionalParams, + NetAppResourceUpdateNetworkSiblingSetResponse } from "../models"; /** Interface representing a NetAppResource. */ @@ -74,4 +80,67 @@ export interface NetAppResource { location: string, options?: NetAppResourceQueryRegionInfoOptionalParams ): Promise; + /** + * Get details of the specified network sibling set. + * @param location The name of Azure region. + * @param networkSiblingSetId Network Sibling Set ID for a group of volumes sharing networking + * resources in a subnet. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes. Example + * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} + * @param options The options parameters. + */ + queryNetworkSiblingSet( + location: string, + networkSiblingSetId: string, + subnetId: string, + options?: NetAppResourceQueryNetworkSiblingSetOptionalParams + ): Promise; + /** + * Update the network features of the specified network sibling set. + * @param location The name of Azure region. + * @param networkSiblingSetId Network Sibling Set ID for a group of volumes sharing networking + * resources in a subnet. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes. Example + * /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, some such + * @param options The options parameters. + */ + beginUpdateNetworkSiblingSet( + location: string, + networkSiblingSetId: string, + subnetId: string, + networkSiblingSetStateId: string, + networkFeatures: NetworkFeatures, + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetAppResourceUpdateNetworkSiblingSetResponse + > + >; + /** + * Update the network features of the specified network sibling set. + * @param location The name of Azure region. + * @param networkSiblingSetId Network Sibling Set ID for a group of volumes sharing networking + * resources in a subnet. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes. Example + * /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, some such + * @param options The options parameters. + */ + beginUpdateNetworkSiblingSetAndWait( + location: string, + networkSiblingSetId: string, + subnetId: string, + networkSiblingSetStateId: string, + networkFeatures: NetworkFeatures, + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts index b1d87219c742..804a09b4dd8a 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts @@ -21,6 +21,8 @@ import { VolumesUpdateOptionalParams, VolumesUpdateResponse, VolumesDeleteOptionalParams, + VolumesPopulateAvailabilityZoneOptionalParams, + VolumesPopulateAvailabilityZoneResponse, VolumeRevert, VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, @@ -199,6 +201,41 @@ export interface Volumes { volumeName: string, options?: VolumesDeleteOptionalParams ): Promise; + /** + * This operation will populate availability zone information 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. + */ + beginPopulateAvailabilityZone( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesPopulateAvailabilityZoneOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VolumesPopulateAvailabilityZoneResponse + > + >; + /** + * This operation will populate availability zone information 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. + */ + beginPopulateAvailabilityZoneAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesPopulateAvailabilityZoneOptionalParams + ): Promise; /** * Revert a volume to the snapshot specified in the body * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/arm-netapp/test/netapp_examples.spec.ts b/sdk/netapp/arm-netapp/test/netapp_examples.spec.ts index 5b329dd8d569..b3cb4c562c23 100644 --- a/sdk/netapp/arm-netapp/test/netapp_examples.spec.ts +++ b/sdk/netapp/arm-netapp/test/netapp_examples.spec.ts @@ -76,18 +76,18 @@ describe("netapp test", () => { it("accounts list test", async function () { const resArray = new Array(); - for await (let item of client.accounts.listBySubscription()) { + for await (let item of client.accounts.list(resourceGroup)) { resArray.push(item); } - assert.equal(resArray.length, 3); + assert.equal(resArray.length, 1); }); it("accounts delete test", async function () { const resArray = new Array(); const res = await client.accounts.beginDeleteAndWait(resourceGroup, accountName, testPollingOptions) - for await (let item of client.accounts.listBySubscription()) { + for await (let item of client.accounts.list(resourceGroup)) { resArray.push(item); } - assert.equal(resArray.length, 2); + assert.equal(resArray.length, 0); }); })