From 050f0807c564afb4b65d8b4d8237b660c8414051 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 18 Aug 2021 09:59:30 +0000 Subject: [PATCH] CodeGen from PR 15011 in Azure/azure-rest-api-specs [NetAppFiles] Anf 13322 net app files api version 2021 06 01 (#15011) * Api version bump * Apply 2021-06-01 changes * Update readme * Change default on enum * Add s360 fixes * Add missing systemdata * Change defaultUserQuotaInKiBs default to 0 Co-authored-by: Audunn Baldvinsson --- sdk/netapp/arm-netapp/README.md | 4 +- sdk/netapp/arm-netapp/package.json | 2 +- ...azureNetAppFilesManagementClientContext.ts | 2 +- sdk/netapp/arm-netapp/src/models/index.ts | 215 +++++++++++++++--- sdk/netapp/arm-netapp/src/models/mappers.ts | 187 +++++++++++++-- .../arm-netapp/src/operations/accounts.ts | 101 ++++++++ .../src/operations/snapshotPolicies.ts | 26 +-- .../arm-netapp/src/operations/snapshots.ts | 18 +- 8 files changed, 484 insertions(+), 71 deletions(-) diff --git a/sdk/netapp/arm-netapp/README.md b/sdk/netapp/arm-netapp/README.md index ddef6dafc283..fe67c97774de 100644 --- a/sdk/netapp/arm-netapp/README.md +++ b/sdk/netapp/arm-netapp/README.md @@ -1,11 +1,11 @@ ## Azure AzureNetAppFilesManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureNetAppFilesManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureNetAppFilesManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index 809e8b9e4d76..523426dd7c2f 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/netapp/arm-netapp", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/netapp/arm-netapp", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts index d39de604487d..45d8dcecd347 100644 --- a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts +++ b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts @@ -50,7 +50,7 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe super(credentials, options); - this.apiVersion = '2021-04-01'; + this.apiVersion = '2021-06-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/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index 9adc686414fc..46f904664f1a 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -67,6 +67,26 @@ export interface MetricSpecification { * Unit could be Bytes or Count. */ unit?: string; + /** + * Support metric aggregation type. + */ + supportedAggregationTypes?: MetricAggregationType[]; + /** + * The supported time grain types for the metrics. + */ + supportedTimeGrainTypes?: string[]; + /** + * The internal metric name. + */ + internalMetricName?: string; + /** + * The source MDM account. + */ + sourceMdmAccount?: string; + /** + * The source MDM namespace. + */ + sourceMdmNamespace?: string; /** * Dimensions of blobs, including blob type and access tier. */ @@ -361,6 +381,11 @@ export interface NetAppAccount extends BaseResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; /** * Resource type * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -450,6 +475,11 @@ export interface CapacityPool extends BaseResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; /** * Resource type * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -470,8 +500,8 @@ export interface CapacityPool extends BaseResource { */ size: number; /** - * serviceLevel. The service level of the file system. Possible values include: 'Standard', - * 'Premium', 'Ultra'. Default value: 'Premium'. + * serviceLevel. Possible values include: 'Standard', 'Premium', 'Ultra', 'StandardZRS'. Default + * value: 'Premium'. */ serviceLevel: ServiceLevel; /** @@ -498,6 +528,12 @@ export interface CapacityPool extends BaseResource { * If enabled (true) the pool can contain cool Access enabled volumes. Default value: false. */ coolAccess?: boolean; + /** + * encryptionType. Encryption type of the capacity pool, set encryption type for data at rest for + * this pool and all volumes in it. This value can only be set when creating new pool. Possible + * values include: 'Single', 'Double'. Default value: 'Single'. + */ + encryptionType?: EncryptionType; } /** @@ -746,6 +782,11 @@ export interface Volume extends BaseResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; /** * Resource type * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -766,8 +807,8 @@ export interface Volume extends BaseResource { */ creationToken: string; /** - * serviceLevel. The service level of the file system. Possible values include: 'Standard', - * 'Premium', 'Ultra'. Default value: 'Premium'. + * serviceLevel. Possible values include: 'Standard', 'Premium', 'Ultra', 'StandardZRS'. Default + * value: 'Premium'. */ serviceLevel?: ServiceLevel; /** @@ -875,9 +916,34 @@ export interface Volume extends BaseResource { * 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. + * read/write/execute permissions to owner and read/execute to group and other users. Default + * value: '0770'. */ unixPermissions?: string; + /** + * When a volume is being restored from another volume's snapshot, will show the percentage + * completion of this cloning process. When this value is empty/null there is no cloning process + * currently happening on this volume. This value will update every 5 minutes during cloning. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly cloneProgress?: number; + /** + * avsDataStore. Specifies whether the volume is enabled for Azure VMware Solution (AVS) + * datastore purpose. Possible values include: 'Enabled', 'Disabled'. Default value: 'Disabled'. + */ + avsDataStore?: AvsDataStore; + /** + * Specifies if default quota is enabled for the volume. Default value: false. + */ + isDefaultQuotaEnabled?: boolean; + /** + * Default user quota for volume in KiBs. Minimum 4 KiBs. Default value: 4. + */ + defaultUserQuotaInKiBs?: number; + /** + * Default group quota for volume in KiBs. Minimum 4 KiBs. Default value: 4. + */ + defaultGroupQuotaInKiBs?: number; } /** @@ -980,8 +1046,8 @@ export interface VolumePatch extends BaseResource { */ tags?: { [propertyName: string]: string }; /** - * serviceLevel. The service level of the file system. Possible values include: 'Standard', - * 'Premium', 'Ultra'. Default value: 'Premium'. + * serviceLevel. Possible values include: 'Standard', 'Premium', 'Ultra', 'StandardZRS'. Default + * value: 'Premium'. */ serviceLevel?: ServiceLevel; /** @@ -1003,6 +1069,18 @@ export interface VolumePatch extends BaseResource { * replication */ dataProtection?: VolumePatchPropertiesDataProtection; + /** + * Specifies if default quota is enabled for the volume. Default value: false. + */ + isDefaultQuotaEnabled?: boolean; + /** + * Default user quota for volume in KiBs. Minimum 4 KiBs. Default value: 0. + */ + defaultUserQuotaInKiBs?: number; + /** + * Default group quota for volume in KiBs. Minimum 4 KiBs. Default value: 0. + */ + defaultGroupQuotaInKiBs?: number; } /** @@ -1203,6 +1281,11 @@ export interface SnapshotPolicy extends BaseResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; /** * Resource type * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1557,6 +1640,11 @@ export interface BackupPolicy extends BaseResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; /** * Resource type * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1571,6 +1659,11 @@ export interface BackupPolicy extends BaseResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name1?: string; + /** + * Backup Policy Resource ID + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backupPolicyId?: string; /** * Azure lifecycle management * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1588,22 +1681,20 @@ export interface BackupPolicy extends BaseResource { * Monthly backups count to keep */ monthlyBackupsToKeep?: number; - /** - * Yearly backups count to keep - */ - yearlyBackupsToKeep?: number; /** * Volumes using current backup policy + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - volumesAssigned?: number; + readonly volumesAssigned?: number; /** * The property to decide policy is enabled or not */ enabled?: boolean; /** * A list of volumes assigned to this policy + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - volumeBackups?: VolumeBackups[]; + readonly volumeBackups?: VolumeBackups[]; } /** @@ -1638,6 +1729,11 @@ export interface BackupPolicyDetails extends BaseResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name1?: string; + /** + * Backup Policy Resource ID + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backupPolicyId?: string; /** * Azure lifecycle management * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1655,22 +1751,20 @@ export interface BackupPolicyDetails extends BaseResource { * Monthly backups count to keep */ monthlyBackupsToKeep?: number; - /** - * Yearly backups count to keep - */ - yearlyBackupsToKeep?: number; /** * Volumes using current backup policy + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - volumesAssigned?: number; + readonly volumesAssigned?: number; /** * The property to decide policy is enabled or not */ enabled?: boolean; /** * A list of volumes assigned to this policy + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - volumeBackups?: VolumeBackups[]; + readonly volumeBackups?: VolumeBackups[]; } /** @@ -1705,6 +1799,11 @@ export interface BackupPolicyPatch extends BaseResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name1?: string; + /** + * Backup Policy Resource ID + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backupPolicyId?: string; /** * Azure lifecycle management * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1722,22 +1821,20 @@ export interface BackupPolicyPatch extends BaseResource { * Monthly backups count to keep */ monthlyBackupsToKeep?: number; - /** - * Yearly backups count to keep - */ - yearlyBackupsToKeep?: number; /** * Volumes using current backup policy + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - volumesAssigned?: number; + readonly volumesAssigned?: number; /** * The property to decide policy is enabled or not */ enabled?: boolean; /** * A list of volumes assigned to this policy + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - volumeBackups?: VolumeBackups[]; + readonly volumeBackups?: VolumeBackups[]; } /** @@ -2025,6 +2122,14 @@ export interface BackupPoliciesList extends Array { export interface VaultList extends Array { } +/** + * Defines values for MetricAggregationType. + * Possible values include: 'Average' + * @readonly + * @enum {string} + */ +export type MetricAggregationType = 'Average'; + /** * Defines values for InAvailabilityReasonType. * Possible values include: 'Invalid', 'AlreadyExists' @@ -2073,11 +2178,11 @@ export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** * Defines values for ServiceLevel. - * Possible values include: 'Standard', 'Premium', 'Ultra' + * Possible values include: 'Standard', 'Premium', 'Ultra', 'StandardZRS' * @readonly * @enum {string} */ -export type ServiceLevel = 'Standard' | 'Premium' | 'Ultra'; +export type ServiceLevel = 'Standard' | 'Premium' | 'Ultra' | 'StandardZRS'; /** * Defines values for QosType. @@ -2087,6 +2192,14 @@ export type ServiceLevel = 'Standard' | 'Premium' | 'Ultra'; */ export type QosType = 'Auto' | 'Manual'; +/** + * Defines values for EncryptionType. + * Possible values include: 'Single', 'Double' + * @readonly + * @enum {string} + */ +export type EncryptionType = 'Single' | 'Double'; + /** * Defines values for ChownMode. * Possible values include: 'Restricted', 'Unrestricted' @@ -2119,6 +2232,14 @@ export type ReplicationSchedule = '_10minutely' | 'hourly' | 'daily'; */ export type SecurityStyle = 'ntfs' | 'unix'; +/** + * Defines values for AvsDataStore. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type AvsDataStore = 'Enabled' | 'Disabled'; + /** * Defines values for RelationshipStatus. * Possible values include: 'Idle', 'Transferring' @@ -2223,6 +2344,26 @@ export type NetAppResourceCheckQuotaAvailabilityResponse = CheckAvailabilityResp }; }; +/** + * Contains response data for the listBySubscription operation. + */ +export type AccountsListBySubscriptionResponse = NetAppAccountList & { + /** + * 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: NetAppAccountList; + }; +}; + /** * Contains response data for the list operation. */ @@ -2343,6 +2484,26 @@ export type AccountsBeginUpdateResponse = NetAppAccount & { }; }; +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type AccountsListBySubscriptionNextResponse = NetAppAccountList & { + /** + * 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: NetAppAccountList; + }; +}; + /** * Contains response data for the listNext operation. */ diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index f5c41af29a2c..6e414efb511b 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -98,6 +98,46 @@ export const MetricSpecification: msRest.CompositeMapper = { name: "String" } }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + internalMetricName: { + serializedName: "internalMetricName", + type: { + name: "String" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + }, dimensions: { serializedName: "dimensions", type: { @@ -562,6 +602,13 @@ export const NetAppAccount: msRest.CompositeMapper = { name: "String" } }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -719,6 +766,13 @@ export const CapacityPool: msRest.CompositeMapper = { name: "String" } }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -802,6 +856,14 @@ export const CapacityPool: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + encryptionType: { + nullable: true, + serializedName: "properties.encryptionType", + defaultValue: 'Single', + type: { + name: "String" + } } } } @@ -1200,6 +1262,13 @@ export const Volume: msRest.CompositeMapper = { name: "String" } }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -1299,6 +1368,7 @@ export const Volume: msRest.CompositeMapper = { } }, backupId: { + nullable: true, serializedName: "properties.backupId", constraints: { MaxLength: 36, @@ -1434,6 +1504,7 @@ export const Volume: msRest.CompositeMapper = { unixPermissions: { nullable: true, serializedName: "properties.unixPermissions", + defaultValue: '0770', constraints: { MaxLength: 4, MinLength: 4 @@ -1441,6 +1512,42 @@ export const Volume: msRest.CompositeMapper = { type: { name: "String" } + }, + cloneProgress: { + nullable: true, + readOnly: true, + serializedName: "properties.cloneProgress", + type: { + name: "Number" + } + }, + avsDataStore: { + serializedName: "properties.avsDataStore", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + isDefaultQuotaEnabled: { + serializedName: "properties.isDefaultQuotaEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + defaultUserQuotaInKiBs: { + serializedName: "properties.defaultUserQuotaInKiBs", + defaultValue: 4, + type: { + name: "Number" + } + }, + defaultGroupQuotaInKiBs: { + serializedName: "properties.defaultGroupQuotaInKiBs", + defaultValue: 4, + type: { + name: "Number" + } } } } @@ -1647,6 +1754,27 @@ export const VolumePatch: msRest.CompositeMapper = { name: "Composite", className: "VolumePatchPropertiesDataProtection" } + }, + isDefaultQuotaEnabled: { + serializedName: "properties.isDefaultQuotaEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + defaultUserQuotaInKiBs: { + serializedName: "properties.defaultUserQuotaInKiBs", + defaultValue: 0, + type: { + name: "Number" + } + }, + defaultGroupQuotaInKiBs: { + serializedName: "properties.defaultGroupQuotaInKiBs", + defaultValue: 0, + type: { + name: "Number" + } } } } @@ -1971,6 +2099,13 @@ export const SnapshotPolicy: msRest.CompositeMapper = { name: "String" } }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -2546,6 +2681,13 @@ export const BackupPolicy: msRest.CompositeMapper = { name: "String" } }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -2571,6 +2713,13 @@ export const BackupPolicy: msRest.CompositeMapper = { name: "String" } }, + backupPolicyId: { + readOnly: true, + serializedName: "properties.backupPolicyId", + type: { + name: "String" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -2596,13 +2745,8 @@ export const BackupPolicy: msRest.CompositeMapper = { name: "Number" } }, - yearlyBackupsToKeep: { - serializedName: "properties.yearlyBackupsToKeep", - type: { - name: "Number" - } - }, volumesAssigned: { + readOnly: true, serializedName: "properties.volumesAssigned", type: { name: "Number" @@ -2615,6 +2759,7 @@ export const BackupPolicy: msRest.CompositeMapper = { } }, volumeBackups: { + readOnly: true, serializedName: "properties.volumeBackups", type: { name: "Sequence", @@ -2681,6 +2826,13 @@ export const BackupPolicyDetails: msRest.CompositeMapper = { name: "String" } }, + backupPolicyId: { + readOnly: true, + serializedName: "properties.backupPolicyId", + type: { + name: "String" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -2706,13 +2858,8 @@ export const BackupPolicyDetails: msRest.CompositeMapper = { name: "Number" } }, - yearlyBackupsToKeep: { - serializedName: "properties.yearlyBackupsToKeep", - type: { - name: "Number" - } - }, volumesAssigned: { + readOnly: true, serializedName: "properties.volumesAssigned", type: { name: "Number" @@ -2725,6 +2872,7 @@ export const BackupPolicyDetails: msRest.CompositeMapper = { } }, volumeBackups: { + readOnly: true, serializedName: "properties.volumeBackups", type: { name: "Sequence", @@ -2791,6 +2939,13 @@ export const BackupPolicyPatch: msRest.CompositeMapper = { name: "String" } }, + backupPolicyId: { + readOnly: true, + serializedName: "properties.backupPolicyId", + type: { + name: "String" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -2816,13 +2971,8 @@ export const BackupPolicyPatch: msRest.CompositeMapper = { name: "Number" } }, - yearlyBackupsToKeep: { - serializedName: "properties.yearlyBackupsToKeep", - type: { - name: "Number" - } - }, volumesAssigned: { + readOnly: true, serializedName: "properties.volumesAssigned", type: { name: "Number" @@ -2835,6 +2985,7 @@ export const BackupPolicyPatch: msRest.CompositeMapper = { } }, volumeBackups: { + readOnly: true, serializedName: "properties.volumeBackups", type: { name: "Sequence", diff --git a/sdk/netapp/arm-netapp/src/operations/accounts.ts b/sdk/netapp/arm-netapp/src/operations/accounts.ts index 22be6b79a9ce..48ca8b8dc2be 100644 --- a/sdk/netapp/arm-netapp/src/operations/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operations/accounts.ts @@ -26,6 +26,31 @@ export class Accounts { this.client = client; } + /** + * List and describe all NetApp accounts in the subscription. + * @summary Describe all NetApp Accounts in a subscription + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + /** * List and describe all NetApp accounts in the resource group. * @summary Describe all NetApp Accounts in a resource group @@ -190,6 +215,35 @@ export class Accounts { options); } + /** + * List and describe all NetApp accounts in the subscription. + * @summary Describe all NetApp Accounts in a subscription + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(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 + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + /** * List and describe all NetApp accounts in the resource group. * @summary Describe all NetApp Accounts in a resource group @@ -222,6 +276,29 @@ export class Accounts { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetAppAccountList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts", @@ -365,6 +442,30 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetAppAccountList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts index 1e5b9c72c5f8..9b371b001191 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts @@ -62,7 +62,7 @@ export class SnapshotPolicies { * Get a 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 + * @param snapshotPolicyName The name of the snapshot policy * @param [options] The optional parameters * @returns Promise */ @@ -70,14 +70,14 @@ export class SnapshotPolicies { /** * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param callback The callback */ get(resourceGroupName: string, accountName: string, snapshotPolicyName: string, callback: msRest.ServiceCallback): void; /** * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param options The optional parameters * @param callback The callback */ @@ -99,7 +99,7 @@ export class SnapshotPolicies { * @param body Snapshot policy object supplied in the body of the operation. * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param [options] The optional parameters * @returns Promise */ @@ -108,7 +108,7 @@ export class SnapshotPolicies { * @param body Snapshot policy object supplied in the body of the operation. * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param callback The callback */ create(body: Models.SnapshotPolicy, resourceGroupName: string, accountName: string, snapshotPolicyName: string, callback: msRest.ServiceCallback): void; @@ -116,7 +116,7 @@ export class SnapshotPolicies { * @param body Snapshot policy object supplied in the body of the operation. * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param options The optional parameters * @param callback The callback */ @@ -139,7 +139,7 @@ export class SnapshotPolicies { * @param body Snapshot policy object supplied in the body of the operation. * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param [options] The optional parameters * @returns Promise */ @@ -152,7 +152,7 @@ export class SnapshotPolicies { * Delete 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 + * @param snapshotPolicyName The name of the snapshot policy * @param [options] The optional parameters * @returns Promise */ @@ -166,7 +166,7 @@ export class SnapshotPolicies { * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param [options] The optional parameters * @returns Promise */ @@ -174,14 +174,14 @@ export class SnapshotPolicies { /** * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param callback The callback */ listVolumes(resourceGroupName: string, accountName: string, snapshotPolicyName: string, callback: msRest.ServiceCallback): void; /** * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param options The optional parameters * @param callback The callback */ @@ -203,7 +203,7 @@ export class SnapshotPolicies { * @param body Snapshot policy object supplied in the body of the operation. * @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 + * @param snapshotPolicyName The name of the snapshot policy * @param [options] The optional parameters * @returns Promise */ @@ -224,7 +224,7 @@ export class SnapshotPolicies { * Delete 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 + * @param snapshotPolicyName The name of the snapshot policy * @param [options] The optional parameters * @returns Promise */ diff --git a/sdk/netapp/arm-netapp/src/operations/snapshots.ts b/sdk/netapp/arm-netapp/src/operations/snapshots.ts index 56c2ac26e8d0..dc0664066415 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshots.ts @@ -74,7 +74,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param [options] The optional parameters * @returns Promise */ @@ -84,7 +84,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param callback The callback */ get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, callback: msRest.ServiceCallback): void; @@ -93,7 +93,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param options The optional parameters * @param callback The callback */ @@ -119,7 +119,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param location Resource location * @param [options] The optional parameters * @returns Promise @@ -137,7 +137,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param [options] The optional parameters * @returns Promise */ @@ -153,7 +153,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param [options] The optional parameters * @returns Promise */ @@ -169,7 +169,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param location Resource location * @param [options] The optional parameters * @returns Promise @@ -197,7 +197,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param [options] The optional parameters * @returns Promise */ @@ -223,7 +223,7 @@ export class Snapshots { * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume - * @param snapshotName The name of the mount target + * @param snapshotName The name of the snapshot * @param [options] The optional parameters * @returns Promise */