From b3844851a4298cc50ad9a78b159f18f9bb174e59 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 17 Dec 2020 10:09:25 +0000 Subject: [PATCH] CodeGen from PR 11832 in Azure/azure-rest-api-specs Merge 3a1ed3e7b32f3d480cce60e2d85597f55441c8a8 into adfab4370eacdbea9ab8eae0594c4b0849df0b4c --- sdk/netapp/arm-netapp/README.md | 9 ++- sdk/netapp/arm-netapp/rollup.config.js | 4 +- .../src/azureNetAppFilesManagementClient.ts | 5 +- ...azureNetAppFilesManagementClientContext.ts | 7 +-- .../src/models/accountBackupsMappers.ts | 4 +- .../arm-netapp/src/models/accountsMappers.ts | 4 +- .../src/models/backupPoliciesMappers.ts | 4 +- .../arm-netapp/src/models/backupsMappers.ts | 4 +- sdk/netapp/arm-netapp/src/models/index.ts | 43 ++++++++++++- sdk/netapp/arm-netapp/src/models/mappers.ts | 35 ++++++++++- .../src/models/netAppResourceMappers.ts | 4 +- .../src/models/operationsMappers.ts | 4 +- .../arm-netapp/src/models/parameters.ts | 18 ++++-- .../arm-netapp/src/models/poolsMappers.ts | 4 +- .../src/models/snapshotPoliciesMappers.ts | 4 +- .../arm-netapp/src/models/snapshotsMappers.ts | 4 +- .../arm-netapp/src/models/vaultsMappers.ts | 4 +- .../arm-netapp/src/models/volumesMappers.ts | 4 +- .../src/operations/accountBackups.ts | 5 +- .../arm-netapp/src/operations/accounts.ts | 5 +- .../src/operations/backupPolicies.ts | 5 +- .../arm-netapp/src/operations/backups.ts | 5 +- sdk/netapp/arm-netapp/src/operations/index.ts | 5 +- .../src/operations/netAppResource.ts | 5 +- .../arm-netapp/src/operations/operations.ts | 5 +- sdk/netapp/arm-netapp/src/operations/pools.ts | 5 +- .../src/operations/snapshotPolicies.ts | 7 +-- .../arm-netapp/src/operations/snapshots.ts | 5 +- .../arm-netapp/src/operations/vaults.ts | 5 +- .../arm-netapp/src/operations/volumes.ts | 62 +++++++++++++++++-- 30 files changed, 201 insertions(+), 83 deletions(-) diff --git a/sdk/netapp/arm-netapp/README.md b/sdk/netapp/arm-netapp/README.md index 4033a35e6df1..8a76692ba1fe 100644 --- a/sdk/netapp/arm-netapp/README.md +++ b/sdk/netapp/arm-netapp/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-netapp ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +#### nodejs - client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AzureNetAppFilesManagementClient, AzureNetAppFilesManagementModels, AzureNetAppFilesManagementMappers } from "@azure/arm-netapp"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { AzureNetAppFilesManagementClient } = require("@azure/arm-netapp"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/netapp/arm-netapp/rollup.config.js b/sdk/netapp/arm-netapp/rollup.config.js index 3ad715faa090..2d751f3c76a5 100644 --- a/sdk/netapp/arm-netapp/rollup.config.js +++ b/sdk/netapp/arm-netapp/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts index d824db98d0a1..cea717cc0752 100644 --- a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts index a905808cb76a..d9af60c850a7 100644 --- a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts +++ b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -45,7 +44,7 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe super(credentials, options); - this.apiVersion = '2020-07-01'; + this.apiVersion = '2020-09-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/netapp/arm-netapp/src/models/accountBackupsMappers.ts b/sdk/netapp/arm-netapp/src/models/accountBackupsMappers.ts index dd37e5a584b3..e749b6ea3588 100644 --- a/sdk/netapp/arm-netapp/src/models/accountBackupsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/accountBackupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/accountsMappers.ts b/sdk/netapp/arm-netapp/src/models/accountsMappers.ts index 39c4ff0aa102..1deca022b1f2 100644 --- a/sdk/netapp/arm-netapp/src/models/accountsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/accountsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/backupPoliciesMappers.ts b/sdk/netapp/arm-netapp/src/models/backupPoliciesMappers.ts index dd6a8a188428..b7f94c10dcf8 100644 --- a/sdk/netapp/arm-netapp/src/models/backupPoliciesMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/backupPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/backupsMappers.ts b/sdk/netapp/arm-netapp/src/models/backupsMappers.ts index dd37e5a584b3..e749b6ea3588 100644 --- a/sdk/netapp/arm-netapp/src/models/backupsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/backupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index 05eabbd9c0b3..abcc4a890e12 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -264,6 +264,11 @@ export interface ActiveDirectory { * Specifies whether or not the LDAP traffic needs to be signed. */ ldapSigning?: boolean; + /** + * Domain Users in the Active directory to be given SeSecurityPrivilege privilege (Needed for SMB + * Continuously available shares for SQL). A list of unique usernames without domain specifier + */ + securityOperators?: string[]; } /** @@ -737,6 +742,16 @@ export interface Volume extends BaseResource { * The security style of volume. Possible values include: 'ntfs', 'unix' */ 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. Default value: false. + */ + smbEncryption?: boolean; + /** + * Enables continuously available share property for smb volume. Only applicable for SMB volume. + * Default value: false. + */ + smbContinuouslyAvailable?: boolean; /** * Maximum throughput in Mibps that can be achieved by this volume. */ @@ -1727,6 +1742,10 @@ export interface CapacityPoolList extends Array { * @extends Array */ export interface VolumeList extends Array { + /** + * URL to get the next set of results. + */ + nextLink?: string; } /** @@ -2323,6 +2342,26 @@ export type VolumesBeginUpdateResponse = Volume & { }; }; +/** + * Contains response data for the listNext operation. + */ +export type VolumesListNextResponse = VolumeList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VolumeList; + }; +}; + /** * Contains response data for the list operation. */ diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index 57e1e678ea44..cb0934f86c4a 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -408,6 +408,17 @@ export const ActiveDirectory: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + securityOperators: { + serializedName: "securityOperators", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -1214,6 +1225,20 @@ export const Volume: msRest.CompositeMapper = { name: "String" } }, + smbEncryption: { + serializedName: "properties.smbEncryption", + defaultValue: false, + type: { + name: "Boolean" + } + }, + smbContinuouslyAvailable: { + serializedName: "properties.smbContinuouslyAvailable", + defaultValue: false, + type: { + name: "Boolean" + } + }, throughputMibps: { serializedName: "properties.throughputMibps", constraints: { @@ -2703,6 +2728,12 @@ export const VolumeList: msRest.CompositeMapper = { } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } diff --git a/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts b/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts index 871c6134bb70..f3e622778de8 100644 --- a/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/operationsMappers.ts b/sdk/netapp/arm-netapp/src/models/operationsMappers.ts index beff1bb5d45f..7998fd6a0db3 100644 --- a/sdk/netapp/arm-netapp/src/models/operationsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index 5448850d5fa1..790b5dfffa36 100644 --- a/sdk/netapp/arm-netapp/src/models/parameters.ts +++ b/sdk/netapp/arm-netapp/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -35,7 +34,7 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", - defaultValue: '2020-07-01', + defaultValue: '2020-09-01', type: { name: "String" } @@ -71,6 +70,17 @@ export const location: msRest.OperationURLParameter = { } } }; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; export const poolName: msRest.OperationURLParameter = { parameterPath: "poolName", mapper: { diff --git a/sdk/netapp/arm-netapp/src/models/poolsMappers.ts b/sdk/netapp/arm-netapp/src/models/poolsMappers.ts index 6351dc6ca618..1b3dac3c95a4 100644 --- a/sdk/netapp/arm-netapp/src/models/poolsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/poolsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/snapshotPoliciesMappers.ts b/sdk/netapp/arm-netapp/src/models/snapshotPoliciesMappers.ts index dab9fe901ca7..679cafce3b38 100644 --- a/sdk/netapp/arm-netapp/src/models/snapshotPoliciesMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/snapshotPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts b/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts index 21a7e54c35c2..324d59736eac 100644 --- a/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/vaultsMappers.ts b/sdk/netapp/arm-netapp/src/models/vaultsMappers.ts index ced45f4eb84c..f0387390e7d4 100644 --- a/sdk/netapp/arm-netapp/src/models/vaultsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/vaultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/models/volumesMappers.ts b/sdk/netapp/arm-netapp/src/models/volumesMappers.ts index f2c9daa22c5c..df8c03e2beb1 100644 --- a/sdk/netapp/arm-netapp/src/models/volumesMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/volumesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts index fd9e8808d4ea..12d43bb2f8fa 100644 --- a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts +++ b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/accounts.ts b/sdk/netapp/arm-netapp/src/operations/accounts.ts index 6b67e8bff37d..b9e2260b1a59 100644 --- a/sdk/netapp/arm-netapp/src/operations/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operations/accounts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts index 08a9ac7bc63e..60e9383342a7 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/backups.ts b/sdk/netapp/arm-netapp/src/operations/backups.ts index a881c90e66d7..43dbe99e23cd 100644 --- a/sdk/netapp/arm-netapp/src/operations/backups.ts +++ b/sdk/netapp/arm-netapp/src/operations/backups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/index.ts b/sdk/netapp/arm-netapp/src/operations/index.ts index d12b86703bd8..f304f23eabe9 100644 --- a/sdk/netapp/arm-netapp/src/operations/index.ts +++ b/sdk/netapp/arm-netapp/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts index 5e3dce044b44..6cff8b5e5750 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/operations.ts b/sdk/netapp/arm-netapp/src/operations/operations.ts index 429f9f80c805..f257b21ae248 100644 --- a/sdk/netapp/arm-netapp/src/operations/operations.ts +++ b/sdk/netapp/arm-netapp/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/pools.ts b/sdk/netapp/arm-netapp/src/operations/pools.ts index 41eb4a75e645..4f55c77fc733 100644 --- a/sdk/netapp/arm-netapp/src/operations/pools.ts +++ b/sdk/netapp/arm-netapp/src/operations/pools.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts index ee8b414c887a..64861672751f 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -190,7 +189,7 @@ export class SnapshotPolicies { /** * Get volumes associated with snapshot policy - * @summary Get volumes associated with snapshot policy + * @summary Get volumes for snapshot policy * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param snapshotPolicyName The name of the snapshot policy target diff --git a/sdk/netapp/arm-netapp/src/operations/snapshots.ts b/sdk/netapp/arm-netapp/src/operations/snapshots.ts index 829e505751bc..56c2ac26e8d0 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshots.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/vaults.ts b/sdk/netapp/arm-netapp/src/operations/vaults.ts index 641097b4d7e4..6d85268322bd 100644 --- a/sdk/netapp/arm-netapp/src/operations/vaults.ts +++ b/sdk/netapp/arm-netapp/src/operations/vaults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/netapp/arm-netapp/src/operations/volumes.ts b/sdk/netapp/arm-netapp/src/operations/volumes.ts index a30c7ea2ac45..b2c575cb359a 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumes.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -225,7 +224,7 @@ export class Volumes { /** * 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 source to destination. + * will reverse-resync the connection and sync from destination to source. * @summary Resync volume replication * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -422,7 +421,7 @@ export class Volumes { /** * 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 source to destination. + * will reverse-resync the connection and sync from destination to source. * @summary Resync volume replication * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -538,6 +537,35 @@ export class Volumes { beginPoolChangeOperationSpec, options); } + + /** + * List all volumes within the capacity pool + * @summary Describe all volumes + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -944,3 +972,27 @@ const beginPoolChangeOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VolumeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};