diff --git a/packages/@azure/arm-netapp/README.md b/packages/@azure/arm-netapp/README.md index 8af3d9ae825c..32f868df0585 100644 --- a/packages/@azure/arm-netapp/README.md +++ b/packages/@azure/arm-netapp/README.md @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-netapp%2FREADME.png) diff --git a/packages/@azure/arm-netapp/lib/models/accountsMappers.ts b/packages/@azure/arm-netapp/lib/models/accountsMappers.ts index 6518f82d17b7..9d91d70cbe1a 100644 --- a/packages/@azure/arm-netapp/lib/models/accountsMappers.ts +++ b/packages/@azure/arm-netapp/lib/models/accountsMappers.ts @@ -1,21 +1,26 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { + NetAppAccountList, + NetAppAccount, BaseResource, - CapacityPool, - CapacityPoolPatch, + ActiveDirectories, ErrorModel, - NetAppAccount, - NetAppAccountList, NetAppAccountPatch, - Snapshot, - SnapshotPatch, + CapacityPool, + CapacityPoolPatch, Volume, - VolumePatch + ExportPolicyRule, + VolumePatch, + Snapshot, + SnapshotPatch } from "../models/mappers"; + diff --git a/packages/@azure/arm-netapp/lib/models/index.ts b/packages/@azure/arm-netapp/lib/models/index.ts index 61a5245af978..4e15e255047f 100644 --- a/packages/@azure/arm-netapp/lib/models/index.ts +++ b/packages/@azure/arm-netapp/lib/models/index.ts @@ -1,9 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -11,515 +13,760 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; + /** + * @interface + * An interface representing OperationDisplay. * Display metadata associated with the operation. + * */ export interface OperationDisplay { /** - * Service provider: Microsoft NetApp. + * @member {string} [provider] Service provider: Microsoft NetApp. */ provider?: string; /** - * Resource on which the operation is performed etc. + * @member {string} [resource] Resource on which the operation is performed + * etc. */ resource?: string; /** - * Type of operation: get, read, delete, etc. + * @member {string} [operation] Type of operation: get, read, delete, etc. */ operation?: string; /** - * Operation description. + * @member {string} [description] Operation description. */ description?: string; } /** + * @interface + * An interface representing Dimension. * Dimension of blobs, possibly be blob type or access tier. + * */ export interface Dimension { /** - * Display name of dimension. + * @member {string} [name] Display name of dimension. */ name?: string; /** - * Display name of dimension. + * @member {string} [displayName] Display name of dimension. */ displayName?: string; } /** + * @interface + * An interface representing MetricSpecification. * Metric specification of operation. + * */ export interface MetricSpecification { /** - * Name of metric specification. + * @member {string} [name] Name of metric specification. */ name?: string; /** - * Display name of metric specification. + * @member {string} [displayName] Display name of metric specification. */ displayName?: string; /** - * Display description of metric specification. + * @member {string} [displayDescription] Display description of metric + * specification. */ displayDescription?: string; /** - * Unit could be Bytes or Count. + * @member {string} [unit] Unit could be Bytes or Count. */ unit?: string; /** - * Dimensions of blobs, including blob type and access tier. + * @member {Dimension[]} [dimensions] Dimensions of blobs, including blob + * type and access tier. */ dimensions?: Dimension[]; /** - * Aggregation type could be Average. + * @member {string} [aggregationType] Aggregation type could be Average. */ aggregationType?: string; /** - * The property to decide fill gap with zero or not. + * @member {boolean} [fillGapWithZero] The property to decide fill gap with + * zero or not. */ fillGapWithZero?: boolean; /** - * The category this metric specification belong to, could be Capacity. + * @member {string} [category] The category this metric specification belong + * to, could be Capacity. */ category?: string; /** - * Account Resource Id. + * @member {string} [resourceIdDimensionNameOverride] Account Resource Id. */ resourceIdDimensionNameOverride?: string; } /** + * @interface + * An interface representing ServiceSpecification. * One property of operation, include metric specifications. + * */ export interface ServiceSpecification { /** - * Metric specifications of operation. + * @member {MetricSpecification[]} [metricSpecifications] Metric + * specifications of operation. */ metricSpecifications?: MetricSpecification[]; } /** + * @interface + * An interface representing Operation. * Microsoft.NetApp REST API operation definition. + * */ export interface Operation { /** - * Operation name: {provider}/{resource}/{operation} + * @member {string} [name] Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * Display metadata associated with the operation. + * @member {OperationDisplay} [display] Display metadata associated with the + * operation. */ display?: OperationDisplay; /** - * The origin of operations. + * @member {string} [origin] The origin of operations. */ origin?: string; /** - * One property of operation, include metric specifications. + * @member {ServiceSpecification} [serviceSpecification] One property of + * operation, include metric specifications. */ serviceSpecification?: ServiceSpecification; } /** + * @interface + * An interface representing ActiveDirectories. + * Active Directories + * + */ +export interface ActiveDirectories { + /** + * @member {string} [activeDirectoryId] Id of the Active Directory + */ + activeDirectoryId?: string; + /** + * @member {string} [username] Username of Active Directory domain + * administrator + */ + username?: string; + /** + * @member {string} [password] Plain text password of Active Directory domain + * administrator + */ + password?: string; + /** + * @member {string} [domain] Name of the Active Directory domain + */ + domain?: string; + /** + * @member {string} [dNS] Comma separated list of DNS server IP addresses for + * the Active Directory domain + */ + dNS?: string; + /** + * @member {string} [status] Status of the Active Directory + */ + status?: string; + /** + * @member {string} [sMBServerName] NetBIOS name of the SMB server. This name + * will be registered as a computer account in the AD and used to mount + * volumes + */ + sMBServerName?: string; + /** + * @member {string} [organizationalUnit] The Organizational Unit (OU) within + * the Windows Active Directory + */ + organizationalUnit?: string; +} + +/** + * @interface + * An interface representing NetAppAccount. * NetApp account resource + * + * @extends BaseResource */ export interface NetAppAccount extends BaseResource { /** - * Resource location + * @member {string} location Resource location */ location: string; /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly name?: string; /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly type?: string; /** - * Resource tags + * @member {any} [tags] Resource tags */ tags?: any; /** - * Azure lifecycle management - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [provisioningState] Azure lifecycle management + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly provisioningState?: string; + /** + * @member {ActiveDirectories} [activeDirectories] Active Directories + */ + activeDirectories?: ActiveDirectories; } /** + * @interface + * An interface representing NetAppAccountPatch. * NetApp account patch resource + * + * @extends BaseResource */ export interface NetAppAccountPatch extends BaseResource { /** - * Resource tags + * @member {string} [location] Resource location + */ + location?: string; + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {any} [tags] Resource tags */ tags?: any; + /** + * @member {string} [provisioningState] Azure lifecycle management + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {ActiveDirectories} [activeDirectories] Active Directories + */ + activeDirectories?: ActiveDirectories; } /** + * @interface + * An interface representing CapacityPool. * Capacity pool resource + * + * @extends BaseResource */ export interface CapacityPool extends BaseResource { /** - * Resource location + * @member {string} location Resource location */ location: string; /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly name?: string; /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly type?: string; /** - * Resource tags + * @member {any} [tags] Resource tags */ tags?: any; /** - * poolId. UUID v4 used to identify the Pool - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [poolId] poolId. UUID v4 used to identify the Pool + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly poolId?: string; /** - * size. Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must - * be multiply of 4398046511104). Default value: 4398046511104. + * @member {number} [size] size. Provisioned size of the pool (in bytes). + * Allowed values are in 4TiB chunks (value must be multiply of + * 4398046511104). Default value: 4398046511104 . */ size?: number; /** - * serviceLevel. The service level of the file system. Possible values include: 'Standard', - * 'Premium', 'Extreme'. Default value: 'Premium'. + * @member {ServiceLevel} [serviceLevel] serviceLevel. The service level of + * the file system. Possible values include: 'Standard', 'Premium', 'Ultra'. + * Default value: 'Premium' . */ serviceLevel?: ServiceLevel; /** - * Azure lifecycle management - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [provisioningState] Azure lifecycle management + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly provisioningState?: string; } /** + * @interface + * An interface representing CapacityPoolPatch. * Capacity pool patch resource + * + * @extends BaseResource */ export interface CapacityPoolPatch extends BaseResource { /** - * Resource tags + * @member {string} [location] Resource location + */ + location?: string; + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {any} [tags] Resource tags */ tags?: any; + /** + * @member {number} [size] size. Provisioned size of the pool (in bytes). + * Allowed values are in 4TiB chunks (value must be multiply of + * 4398046511104). Default value: 4398046511104 . + */ + size?: number; + /** + * @member {ServiceLevel} [serviceLevel] serviceLevel. The service level of + * the file system. Possible values include: 'Standard', 'Premium', 'Ultra'. + * Default value: 'Premium' . + */ + serviceLevel?: ServiceLevel; +} + +/** + * @interface + * An interface representing ExportPolicyRule. + * Volume Export Policy Rule + * + */ +export interface ExportPolicyRule { + /** + * @member {number} [ruleIndex] Order index + */ + ruleIndex?: number; + /** + * @member {boolean} [unixReadOnly] Read only access + */ + unixReadOnly?: boolean; + /** + * @member {boolean} [unixReadWrite] Read and write access + */ + unixReadWrite?: boolean; + /** + * @member {boolean} [cifs] Allows CIFS protocol + */ + cifs?: boolean; + /** + * @member {boolean} [nfsv3] Allows NFSv3 protocol + */ + nfsv3?: boolean; + /** + * @member {boolean} [nfsv4] Allows NFSv4 protocol + */ + nfsv4?: boolean; + /** + * @member {string} [allowedClients] Client ingress specification as comma + * separated string with IPv4 CIDRs, IPv4 host addresses and host names + */ + allowedClients?: string; } /** + * @interface + * An interface representing Volume. * Volume resource + * + * @extends BaseResource */ export interface Volume extends BaseResource { /** - * Resource location + * @member {string} location Resource location */ location: string; /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly name?: string; /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly type?: string; /** - * Resource tags + * @member {any} [tags] Resource tags */ tags?: any; /** - * FileSystem ID. Unique FileSystem Identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [fileSystemId] FileSystem ID. Unique FileSystem + * Identifier. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly fileSystemId?: string; /** - * Creation Token or File Path. A unique file path for the volume. Used when creating mount - * targets + * @member {string} creationToken Creation Token or File Path. A unique file + * path for the volume. Used when creating mount targets */ creationToken: string; /** - * serviceLevel. The service level of the file system. Possible values include: 'Standard', - * 'Premium', 'Extreme'. Default value: 'Premium'. + * @member {ServiceLevel} serviceLevel serviceLevel. The service level of the + * file system. Possible values include: 'Standard', 'Premium', 'Ultra'. + * Default value: 'Premium' . */ serviceLevel: ServiceLevel; /** - * usageThreshold. 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. Default value: - * 107374182400. + * @member {number} [usageThreshold] usageThreshold. 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. Default value: + * 107374182400 . */ usageThreshold?: number; /** - * Azure lifecycle management - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {ExportPolicyRule} [exportPolicy] Export policy rule + */ + exportPolicy?: ExportPolicyRule; + /** + * @member {string} [provisioningState] Azure lifecycle management + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly provisioningState?: string; /** - * The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/volumes + * @member {string} [subnetId] The Azure Resource URI for a delegated subnet. + * Must have the delegation Microsoft.NetApp/volumes */ subnetId?: string; } /** + * @interface + * An interface representing VolumePatch. * Volume patch resource + * + * @extends BaseResource */ export interface VolumePatch extends BaseResource { /** - * Resource location + * @member {string} [location] Resource location */ location?: string; /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly name?: string; /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly type?: string; /** - * Resource tags + * @member {any} [tags] Resource tags */ tags?: any; /** - * serviceLevel. The service level of the file system. Possible values include: 'Standard', - * 'Premium', 'Extreme'. Default value: 'Premium'. + * @member {ServiceLevel} [serviceLevel] serviceLevel. The service level of + * the file system. Possible values include: 'Standard', 'Premium', 'Ultra'. + * Default value: 'Premium' . */ serviceLevel?: ServiceLevel; /** - * usageThreshold. 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. Default value: - * 107374182400. + * @member {number} [usageThreshold] usageThreshold. 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. Default value: + * 107374182400 . */ usageThreshold?: number; + /** + * @member {ExportPolicyRule} [exportPolicy] Export policy rule + */ + exportPolicy?: ExportPolicyRule; } /** + * @interface + * An interface representing MountTarget. * Mount Target + * */ export interface MountTarget { /** - * Resource location + * @member {string} location Resource location */ location: string; /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly name?: string; /** - * Resource tags + * @member {any} [tags] Resource tags */ tags?: any; /** - * mountTargetId. UUID v4 used to identify the MountTarget - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [mountTargetId] mountTargetId. UUID v4 used to identify + * the MountTarget + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly mountTargetId?: string; /** - * fileSystemId. UUID v4 used to identify the MountTarget + * @member {string} fileSystemId fileSystemId. UUID v4 used to identify the + * MountTarget */ fileSystemId: string; /** - * ipAddress. The mount target's IPv4 address - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [ipAddress] ipAddress. The mount target's IPv4 address + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly ipAddress?: string; /** - * vlanid. Vlan Id + * @member {string} [subnet] subnet. The subnet */ - vlanId?: number; + subnet?: string; /** - * startIp. The start of IPv4 address range to use when creating a new mount target + * @member {string} [startIp] startIp. The start of IPv4 address range to use + * when creating a new mount target */ startIp?: string; /** - * startIp. The end of IPv4 address range to use when creating a new mount target + * @member {string} [endIp] endIp. The end of IPv4 address range to use when + * creating a new mount target */ endIp?: string; /** - * gateway. The gateway of the IPv4 address range to use when creating a new mount target + * @member {string} [gateway] gateway. The gateway of the IPv4 address range + * to use when creating a new mount target */ gateway?: string; /** - * netmask. The netmask of the IPv4 address range to use when creating a new mount target + * @member {string} [netmask] netmask. The netmask of the IPv4 address range + * to use when creating a new mount target */ netmask?: string; /** - * Azure lifecycle management - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [smbServerFqdn] smbServerFQDN. The SMB server's Fully + * Qualified Domain Name, FQDN + */ + smbServerFqdn?: string; + /** + * @member {string} [provisioningState] Azure lifecycle management + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly provisioningState?: string; } /** + * @interface + * An interface representing Snapshot. * Snapshot of a Volume + * + * @extends BaseResource */ export interface Snapshot extends BaseResource { /** - * Resource location + * @member {string} location Resource location */ location: string; /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly name?: string; /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly type?: string; /** - * Resource tags + * @member {any} [tags] Resource tags */ tags?: any; /** - * snapshotId. UUID v4 used to identify the Snapshot - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [snapshotId] snapshotId. UUID v4 used to identify the + * Snapshot + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly snapshotId?: string; /** - * fileSystemId. UUID v4 used to identify the FileSystem + * @member {string} fileSystemId fileSystemId. UUID v4 used to identify the + * FileSystem */ fileSystemId: string; /** - * name. The creation date of the snapshot - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {Date} [creationDate] name. The creation date of the snapshot + * **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.** + * @member {string} [provisioningState] Azure lifecycle management + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly provisioningState?: string; } /** + * @interface + * An interface representing SnapshotPatch. * Snapshot patch + * + * @extends BaseResource */ export interface SnapshotPatch extends BaseResource { /** - * Resource tags + * @member {any} [tags] Resource tags */ tags?: any; } /** + * @interface + * An interface representing ErrorModel. * Error response describing why the operation failed. + * */ export interface ErrorModel { /** - * Error code + * @member {string} code Error code */ code: string; /** - * Detailed error message + * @member {string} message Detailed error message */ message: string; } /** + * @interface + * An interface representing SnapshotsUpdateOptionalParams. * Optional Parameters. - */ -export interface AccountsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Resource tags - */ - tags?: any; -} - -/** - * Optional Parameters. - */ -export interface AccountsUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Resource tags - */ - tags?: any; -} - -/** - * Optional Parameters. - */ -export interface AccountsBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Resource tags - */ - tags?: any; -} - -/** - * Optional Parameters. - */ -export interface PoolsUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Resource tags - */ - tags?: any; -} - -/** - * Optional Parameters. + * + * @extends RequestOptionsBase */ export interface SnapshotsUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * Resource tags + * @member {any} [tags] Resource tags */ tags?: any; } /** + * @interface * An interface representing AzureNetAppFilesManagementClientOptions. + * @extends AzureServiceClientOptions */ export interface AzureNetAppFilesManagementClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ baseUri?: string; } + /** * @interface - * Result of the request to list Cloud Volume operations. It contains a list of operations and a - * URL link to get the next set of results. + * An interface representing the OperationListResult. + * Result of the request to list Cloud Volume operations. It contains a list of + * operations and a URL link to get the next set of results. + * * @extends Array */ export interface OperationListResult extends Array { @@ -527,7 +774,9 @@ export interface OperationListResult extends Array { /** * @interface + * An interface representing the NetAppAccountList. * List of NetApp account resources + * * @extends Array */ export interface NetAppAccountList extends Array { @@ -535,7 +784,9 @@ export interface NetAppAccountList extends Array { /** * @interface + * An interface representing the CapacityPoolList. * List of capacity pool resources + * * @extends Array */ export interface CapacityPoolList extends Array { @@ -543,7 +794,9 @@ export interface CapacityPoolList extends Array { /** * @interface + * An interface representing the VolumeList. * List of volume resources + * * @extends Array */ export interface VolumeList extends Array { @@ -551,7 +804,9 @@ export interface VolumeList extends Array { /** * @interface + * An interface representing the MountTargetList. * List of Mount Targets + * * @extends Array */ export interface MountTargetList extends Array { @@ -559,7 +814,9 @@ export interface MountTargetList extends Array { /** * @interface + * An interface representing the SnapshotsList. * List of Snapshots + * * @extends Array */ export interface SnapshotsList extends Array { @@ -567,11 +824,11 @@ export interface SnapshotsList extends Array { /** * Defines values for ServiceLevel. - * Possible values include: 'Standard', 'Premium', 'Extreme' + * Possible values include: 'Standard', 'Premium', 'Ultra' * @readonly * @enum {string} */ -export type ServiceLevel = 'Standard' | 'Premium' | 'Extreme'; +export type ServiceLevel = 'Standard' | 'Premium' | 'Ultra'; /** * Contains response data for the list operation. @@ -585,7 +842,6 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -605,7 +861,6 @@ export type AccountsListResponse = NetAppAccountList & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -625,7 +880,6 @@ export type AccountsGetResponse = NetAppAccount & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -645,7 +899,6 @@ export type AccountsCreateOrUpdateResponse = NetAppAccount & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -665,7 +918,6 @@ export type AccountsUpdateResponse = NetAppAccount & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -685,7 +937,6 @@ export type AccountsBeginCreateOrUpdateResponse = NetAppAccount & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -705,7 +956,6 @@ export type PoolsListResponse = CapacityPoolList & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -725,7 +975,6 @@ export type PoolsGetResponse = CapacityPool & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -745,7 +994,6 @@ export type PoolsCreateOrUpdateResponse = CapacityPool & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -765,7 +1013,6 @@ export type PoolsUpdateResponse = CapacityPool & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -785,7 +1032,6 @@ export type PoolsBeginCreateOrUpdateResponse = CapacityPool & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -805,7 +1051,6 @@ export type VolumesListResponse = VolumeList & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -825,7 +1070,6 @@ export type VolumesGetResponse = Volume & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -845,7 +1089,6 @@ export type VolumesCreateOrUpdateResponse = Volume & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -865,7 +1108,6 @@ export type VolumesUpdateResponse = Volume & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -885,7 +1127,6 @@ export type VolumesBeginCreateOrUpdateResponse = Volume & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -905,7 +1146,6 @@ export type MountTargetsListResponse = MountTargetList & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -925,7 +1165,6 @@ export type SnapshotsListResponse = SnapshotsList & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -945,7 +1184,6 @@ export type SnapshotsGetResponse = Snapshot & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -965,7 +1203,6 @@ export type SnapshotsCreateResponse = Snapshot & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -985,7 +1222,6 @@ export type SnapshotsUpdateResponse = Snapshot & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -1005,7 +1241,6 @@ export type SnapshotsBeginCreateResponse = Snapshot & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ diff --git a/packages/@azure/arm-netapp/lib/models/mappers.ts b/packages/@azure/arm-netapp/lib/models/mappers.ts index 568ba3bff542..0aff098b57c4 100644 --- a/packages/@azure/arm-netapp/lib/models/mappers.ts +++ b/packages/@azure/arm-netapp/lib/models/mappers.ts @@ -1,9 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -196,6 +198,64 @@ export const Operation: msRest.CompositeMapper = { } }; +export const ActiveDirectories: msRest.CompositeMapper = { + serializedName: "activeDirectories", + type: { + name: "Composite", + className: "ActiveDirectories", + modelProperties: { + activeDirectoryId: { + serializedName: "activeDirectoryId", + type: { + name: "String" + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + domain: { + serializedName: "domain", + type: { + name: "String" + } + }, + dNS: { + serializedName: "dNS", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + sMBServerName: { + serializedName: "sMBServerName", + type: { + name: "String" + } + }, + organizationalUnit: { + serializedName: "organizationalUnit", + type: { + name: "String" + } + } + } + } +}; + export const NetAppAccount: msRest.CompositeMapper = { serializedName: "netAppAccount", type: { @@ -242,6 +302,13 @@ export const NetAppAccount: msRest.CompositeMapper = { type: { name: "String" } + }, + activeDirectories: { + serializedName: "properties.activeDirectories", + type: { + name: "Composite", + className: "ActiveDirectories" + } } } } @@ -253,11 +320,52 @@ export const NetAppAccountPatch: msRest.CompositeMapper = { name: "Composite", className: "NetAppAccountPatch", modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { name: "Object" } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + activeDirectories: { + serializedName: "properties.activeDirectories", + type: { + name: "Composite", + className: "ActiveDirectories" + } } } } @@ -350,11 +458,108 @@ export const CapacityPoolPatch: msRest.CompositeMapper = { name: "Composite", className: "CapacityPoolPatch", modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { name: "Object" } + }, + size: { + serializedName: "properties.size", + defaultValue: 4398046511104, + constraints: { + InclusiveMaximum: 549755813888000, + InclusiveMinimum: 4398046511104 + }, + type: { + name: "Number" + } + }, + serviceLevel: { + serializedName: "properties.serviceLevel", + defaultValue: 'Premium', + type: { + name: "String" + } + } + } + } +}; + +export const ExportPolicyRule: msRest.CompositeMapper = { + serializedName: "exportPolicyRule", + type: { + name: "Composite", + className: "ExportPolicyRule", + modelProperties: { + ruleIndex: { + serializedName: "ruleIndex", + type: { + name: "Number" + } + }, + unixReadOnly: { + serializedName: "unixReadOnly", + type: { + name: "Boolean" + } + }, + unixReadWrite: { + serializedName: "unixReadWrite", + type: { + name: "Boolean" + } + }, + cifs: { + serializedName: "cifs", + type: { + name: "Boolean" + } + }, + nfsv3: { + serializedName: "nfsv3", + type: { + name: "Boolean" + } + }, + nfsv4: { + serializedName: "nfsv4", + type: { + name: "Boolean" + } + }, + allowedClients: { + serializedName: "allowedClients", + type: { + name: "String" + } } } } @@ -438,6 +643,13 @@ export const Volume: msRest.CompositeMapper = { name: "Number" } }, + exportPolicy: { + serializedName: "properties.exportPolicy", + type: { + name: "Composite", + className: "ExportPolicyRule" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -511,6 +723,13 @@ export const VolumePatch: msRest.CompositeMapper = { type: { name: "Number" } + }, + exportPolicy: { + serializedName: "properties.exportPolicy", + type: { + name: "Composite", + className: "ExportPolicyRule" + } } } } @@ -580,10 +799,10 @@ export const MountTarget: msRest.CompositeMapper = { name: "String" } }, - vlanId: { - serializedName: "properties.vlanId", + subnet: { + serializedName: "properties.subnet", type: { - name: "Number" + name: "String" } }, startIp: { @@ -610,6 +829,12 @@ export const MountTarget: msRest.CompositeMapper = { name: "String" } }, + smbServerFqdn: { + serializedName: "properties.smbServerFqdn", + type: { + name: "String" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", diff --git a/packages/@azure/arm-netapp/lib/models/mountTargetsMappers.ts b/packages/@azure/arm-netapp/lib/models/mountTargetsMappers.ts index c0a1da2a797b..8e1c6f7f9853 100644 --- a/packages/@azure/arm-netapp/lib/models/mountTargetsMappers.ts +++ b/packages/@azure/arm-netapp/lib/models/mountTargetsMappers.ts @@ -1,13 +1,16 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - ErrorModel, + MountTargetList, MountTarget, - MountTargetList + ErrorModel } from "../models/mappers"; + diff --git a/packages/@azure/arm-netapp/lib/models/operationsMappers.ts b/packages/@azure/arm-netapp/lib/models/operationsMappers.ts index f31bbf06e939..76efe7592d9d 100644 --- a/packages/@azure/arm-netapp/lib/models/operationsMappers.ts +++ b/packages/@azure/arm-netapp/lib/models/operationsMappers.ts @@ -1,17 +1,20 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - Dimension, - ErrorModel, - MetricSpecification, + OperationListResult, Operation, OperationDisplay, - OperationListResult, - ServiceSpecification + ServiceSpecification, + MetricSpecification, + Dimension, + ErrorModel } from "../models/mappers"; + diff --git a/packages/@azure/arm-netapp/lib/models/parameters.ts b/packages/@azure/arm-netapp/lib/models/parameters.ts index d352293435e4..85849dd84ec0 100644 --- a/packages/@azure/arm-netapp/lib/models/parameters.ts +++ b/packages/@azure/arm-netapp/lib/models/parameters.ts @@ -51,11 +51,16 @@ export const poolName: msRest.OperationURLParameter = { } } }; -export const resourceGroup: msRest.OperationURLParameter = { - parameterPath: "resourceGroup", +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { required: true, - serializedName: "resourceGroup", + serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, type: { name: "String" } diff --git a/packages/@azure/arm-netapp/lib/models/poolsMappers.ts b/packages/@azure/arm-netapp/lib/models/poolsMappers.ts index 06756b2adab6..5abc928cce7b 100644 --- a/packages/@azure/arm-netapp/lib/models/poolsMappers.ts +++ b/packages/@azure/arm-netapp/lib/models/poolsMappers.ts @@ -1,21 +1,26 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { - BaseResource, - CapacityPool, CapacityPoolList, - CapacityPoolPatch, + CapacityPool, + BaseResource, ErrorModel, + CapacityPoolPatch, NetAppAccount, + ActiveDirectories, NetAppAccountPatch, - Snapshot, - SnapshotPatch, Volume, - VolumePatch + ExportPolicyRule, + VolumePatch, + Snapshot, + SnapshotPatch } from "../models/mappers"; + diff --git a/packages/@azure/arm-netapp/lib/models/snapshotsMappers.ts b/packages/@azure/arm-netapp/lib/models/snapshotsMappers.ts index bcb073de9356..7dc7a6598cd4 100644 --- a/packages/@azure/arm-netapp/lib/models/snapshotsMappers.ts +++ b/packages/@azure/arm-netapp/lib/models/snapshotsMappers.ts @@ -1,21 +1,26 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { + SnapshotsList, + Snapshot, BaseResource, - CapacityPool, - CapacityPoolPatch, ErrorModel, + SnapshotPatch, NetAppAccount, + ActiveDirectories, NetAppAccountPatch, - Snapshot, - SnapshotPatch, - SnapshotsList, + CapacityPool, + CapacityPoolPatch, Volume, + ExportPolicyRule, VolumePatch } from "../models/mappers"; + diff --git a/packages/@azure/arm-netapp/lib/models/volumesMappers.ts b/packages/@azure/arm-netapp/lib/models/volumesMappers.ts index 63a1637eb1ba..5790bbe9ba32 100644 --- a/packages/@azure/arm-netapp/lib/models/volumesMappers.ts +++ b/packages/@azure/arm-netapp/lib/models/volumesMappers.ts @@ -1,21 +1,26 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Licensed under the MIT License. See License.txt in the project root for + * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { + VolumeList, + Volume, BaseResource, - CapacityPool, - CapacityPoolPatch, + ExportPolicyRule, ErrorModel, + VolumePatch, NetAppAccount, + ActiveDirectories, NetAppAccountPatch, + CapacityPool, + CapacityPoolPatch, Snapshot, - SnapshotPatch, - Volume, - VolumeList, - VolumePatch + SnapshotPatch } from "../models/mappers"; + diff --git a/packages/@azure/arm-netapp/lib/operations/accounts.ts b/packages/@azure/arm-netapp/lib/operations/accounts.ts index ac51eb0718d8..767d0684c3bb 100644 --- a/packages/@azure/arm-netapp/lib/operations/accounts.ts +++ b/packages/@azure/arm-netapp/lib/operations/accounts.ts @@ -29,26 +29,26 @@ export class Accounts { /** * Lists all NetApp accounts in the resource group - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param [options] The optional parameters * @returns Promise */ - list(resourceGroup: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param callback The callback */ - list(resourceGroup: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - list(resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, options }, listOperationSpec, @@ -57,29 +57,29 @@ export class Accounts { /** * Get the NetApp account - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param [options] The optional parameters * @returns Promise */ - get(resourceGroup: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param callback The callback */ - get(resourceGroup: string, accountName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param options The optional parameters * @param callback The callback */ - get(resourceGroup: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroup: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, options }, @@ -89,54 +89,58 @@ export class Accounts { /** * Create or update a NetApp account - * @param resourceGroup The name of the resource group. + * @param body NetApp Account 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 location Resource location * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroup: string, accountName: string, location: string, options?: Models.AccountsCreateOrUpdateOptionalParams): Promise { - return this.beginCreateOrUpdate(resourceGroup,accountName,location,options) + createOrUpdate(body: Models.NetAppAccount, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(body,resourceGroupName,accountName,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * Delete a NetApp account - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroup: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroup,accountName,options) + deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } /** * Patch a NetApp account - * @param resourceGroup The name of the resource group. + * @param body NetApp Account 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 [options] The optional parameters * @returns Promise */ - update(resourceGroup: string, accountName: string, options?: Models.AccountsUpdateOptionalParams): Promise; + update(body: Models.NetAppAccountPatch, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param body NetApp Account 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 callback The callback */ - update(resourceGroup: string, accountName: string, callback: msRest.ServiceCallback): void; + update(body: Models.NetAppAccountPatch, resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param body NetApp Account 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 options The optional parameters * @param callback The callback */ - update(resourceGroup: string, accountName: string, options: Models.AccountsUpdateOptionalParams, callback: msRest.ServiceCallback): void; - update(resourceGroup: string, accountName: string, options?: Models.AccountsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(body: Models.NetAppAccountPatch, resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(body: Models.NetAppAccountPatch, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + body, + resourceGroupName, accountName, options }, @@ -146,18 +150,18 @@ export class Accounts { /** * Create or update a NetApp account - * @param resourceGroup The name of the resource group. + * @param body NetApp Account 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 location Resource location * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroup: string, accountName: string, location: string, options?: Models.AccountsBeginCreateOrUpdateOptionalParams): Promise { + beginCreateOrUpdate(body: Models.NetAppAccount, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { - resourceGroup, + body, + resourceGroupName, accountName, - location, options }, beginCreateOrUpdateOperationSpec, @@ -166,15 +170,15 @@ export class Accounts { /** * Delete a NetApp account - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroup: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { - resourceGroup, + resourceGroupName, accountName, options }, @@ -187,10 +191,10 @@ export class Accounts { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup + Parameters.resourceGroupName ], queryParameters: [ Parameters.apiVersion @@ -211,10 +215,10 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName ], queryParameters: [ @@ -236,10 +240,10 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName ], queryParameters: [ @@ -249,12 +253,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: { - tags: [ - "options", - "tags" - ] - }, + parameterPath: "body", mapper: { ...Mappers.NetAppAccountPatch, required: true @@ -273,10 +272,10 @@ const updateOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName ], queryParameters: [ @@ -286,13 +285,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: { - location: "location", - tags: [ - "options", - "tags" - ] - }, + parameterPath: "body", mapper: { ...Mappers.NetAppAccount, required: true @@ -312,10 +305,10 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName ], queryParameters: [ diff --git a/packages/@azure/arm-netapp/lib/operations/mountTargets.ts b/packages/@azure/arm-netapp/lib/operations/mountTargets.ts index 9c9ca115a7e5..cfdbfb83ffba 100644 --- a/packages/@azure/arm-netapp/lib/operations/mountTargets.ts +++ b/packages/@azure/arm-netapp/lib/operations/mountTargets.ts @@ -28,35 +28,35 @@ export class MountTargets { /** * List mount targets - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @returns Promise */ - list(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume * @param callback The callback */ - list(resourceGroup: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @param callback The callback */ - list(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -71,10 +71,10 @@ export class MountTargets { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName diff --git a/packages/@azure/arm-netapp/lib/operations/pools.ts b/packages/@azure/arm-netapp/lib/operations/pools.ts index 74551a910c93..ee8ddf39b7ef 100644 --- a/packages/@azure/arm-netapp/lib/operations/pools.ts +++ b/packages/@azure/arm-netapp/lib/operations/pools.ts @@ -29,29 +29,29 @@ export class Pools { /** * Lists all capacity pools in the NetApp Account - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param [options] The optional parameters * @returns Promise */ - list(resourceGroup: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param callback The callback */ - list(resourceGroup: string, accountName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param options The optional parameters * @param callback The callback */ - list(resourceGroup: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroup: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, options }, @@ -61,32 +61,32 @@ export class Pools { /** * Get a capacity pool - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param [options] The optional parameters * @returns Promise */ - get(resourceGroup: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param callback The callback */ - get(resourceGroup: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param options The optional parameters * @param callback The callback */ - get(resourceGroup: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroup: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, poolName, options @@ -98,45 +98,49 @@ export class Pools { /** * Create or Update a capacity pool * @param body Capacity pool object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(body: Models.CapacityPool, resourceGroup: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(body,resourceGroup,accountName,poolName,options) + createOrUpdate(body: Models.CapacityPool, resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(body,resourceGroupName,accountName,poolName,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * Patch a capacity pool - * @param resourceGroup The name of the resource group. + * @param body Capacity pool 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 poolName The name of the capacity pool * @param [options] The optional parameters * @returns Promise */ - update(resourceGroup: string, accountName: string, poolName: string, options?: Models.PoolsUpdateOptionalParams): Promise; + update(body: Models.CapacityPoolPatch, resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param body Capacity pool 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 poolName The name of the capacity pool * @param callback The callback */ - update(resourceGroup: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; + update(body: Models.CapacityPoolPatch, resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param body Capacity pool 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 poolName The name of the capacity pool * @param options The optional parameters * @param callback The callback */ - update(resourceGroup: string, accountName: string, poolName: string, options: Models.PoolsUpdateOptionalParams, callback: msRest.ServiceCallback): void; - update(resourceGroup: string, accountName: string, poolName: string, options?: Models.PoolsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(body: Models.CapacityPoolPatch, resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(body: Models.CapacityPoolPatch, resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + body, + resourceGroupName, accountName, poolName, options @@ -147,31 +151,31 @@ export class Pools { /** * Delete a capacity pool - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroup: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroup,accountName,poolName,options) + deleteMethod(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,poolName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } /** * Create or Update a capacity pool * @param body Capacity pool object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(body: Models.CapacityPool, resourceGroup: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(body: Models.CapacityPool, resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { body, - resourceGroup, + resourceGroupName, accountName, poolName, options @@ -182,16 +186,16 @@ export class Pools { /** * Delete a capacity pool - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroup: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { - resourceGroup, + resourceGroupName, accountName, poolName, options @@ -205,10 +209,10 @@ export class Pools { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName ], queryParameters: [ @@ -230,10 +234,10 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName ], @@ -256,10 +260,10 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName ], @@ -270,12 +274,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: { - tags: [ - "options", - "tags" - ] - }, + parameterPath: "body", mapper: { ...Mappers.CapacityPoolPatch, required: true @@ -294,10 +293,10 @@ const updateOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName ], @@ -331,10 +330,10 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName ], diff --git a/packages/@azure/arm-netapp/lib/operations/snapshots.ts b/packages/@azure/arm-netapp/lib/operations/snapshots.ts index a28d115edb6d..2e0072aa6f52 100644 --- a/packages/@azure/arm-netapp/lib/operations/snapshots.ts +++ b/packages/@azure/arm-netapp/lib/operations/snapshots.ts @@ -29,35 +29,35 @@ export class Snapshots { /** * List snapshots - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @returns Promise */ - list(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume * @param callback The callback */ - list(resourceGroup: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @param callback The callback */ - list(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -69,7 +69,7 @@ export class Snapshots { /** * Get a snapshot - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume @@ -77,18 +77,18 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 callback The callback */ - get(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume @@ -96,11 +96,11 @@ export class Snapshots { * @param options The optional parameters * @param callback The callback */ - get(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -114,7 +114,7 @@ export class Snapshots { /** * Create a snapshot * @param body Snapshot object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume @@ -122,14 +122,14 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - create(body: Models.Snapshot, resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(body,resourceGroup,accountName,poolName,volumeName,snapshotName,options) + create(body: Models.Snapshot, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(body,resourceGroupName,accountName,poolName,volumeName,snapshotName,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * Patch a snapshot - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume @@ -137,18 +137,18 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - update(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: Models.SnapshotsUpdateOptionalParams): Promise; + update(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: Models.SnapshotsUpdateOptionalParams): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 callback The callback */ - update(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume @@ -156,11 +156,11 @@ export class Snapshots { * @param options The optional parameters * @param callback The callback */ - update(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options: Models.SnapshotsUpdateOptionalParams, callback: msRest.ServiceCallback): void; - update(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: Models.SnapshotsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options: Models.SnapshotsUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: Models.SnapshotsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -173,7 +173,7 @@ export class Snapshots { /** * Delete snapshot - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume @@ -181,15 +181,15 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroup,accountName,poolName,volumeName,snapshotName,options) + deleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,poolName,volumeName,snapshotName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } /** * Create a snapshot * @param body Snapshot object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume @@ -197,11 +197,11 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - beginCreate(body: Models.Snapshot, resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { + beginCreate(body: Models.Snapshot, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { body, - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -214,7 +214,7 @@ export class Snapshots { /** * Delete snapshot - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume @@ -222,10 +222,10 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroup: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -241,10 +241,10 @@ export class Snapshots { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName @@ -268,10 +268,10 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName, @@ -296,10 +296,10 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName, @@ -336,10 +336,10 @@ const updateOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName, @@ -372,10 +372,10 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName, @@ -388,6 +388,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { diff --git a/packages/@azure/arm-netapp/lib/operations/volumes.ts b/packages/@azure/arm-netapp/lib/operations/volumes.ts index 09558d4252c1..ec16285ba3f2 100644 --- a/packages/@azure/arm-netapp/lib/operations/volumes.ts +++ b/packages/@azure/arm-netapp/lib/operations/volumes.ts @@ -29,32 +29,32 @@ export class Volumes { /** * List volumes - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param [options] The optional parameters * @returns Promise */ - list(resourceGroup: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param callback The callback */ - list(resourceGroup: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, poolName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param options The optional parameters * @param callback The callback */ - list(resourceGroup: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroup: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, accountName: string, poolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, poolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, poolName, options @@ -65,35 +65,35 @@ export class Volumes { /** * Get a volume - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @returns Promise */ - get(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume * @param callback The callback */ - get(resourceGroup: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @param callback The callback */ - get(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -106,53 +106,53 @@ export class Volumes { /** * Create or update a volume * @param body Volume object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @returns Promise */ - createOrUpdate(body: Models.Volume, resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(body,resourceGroup,accountName,poolName,volumeName,options) + createOrUpdate(body: Models.Volume, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(body,resourceGroupName,accountName,poolName,volumeName,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * Patch a volume * @param body Volume object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @returns Promise */ - update(body: Models.VolumePatch, resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; + update(body: Models.VolumePatch, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param body Volume object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param poolName The name of the capacity pool * @param volumeName The name of the volume * @param callback The callback */ - update(body: Models.VolumePatch, resourceGroup: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; + update(body: Models.VolumePatch, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; /** * @param body Volume object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @param callback The callback */ - update(body: Models.VolumePatch, resourceGroup: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(body: Models.VolumePatch, resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(body: Models.VolumePatch, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(body: Models.VolumePatch, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { body, - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -164,33 +164,33 @@ export class Volumes { /** * Delete a volume - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @returns Promise */ - deleteMethod(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroup,accountName,poolName,volumeName,options) + deleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,poolName,volumeName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } /** * Create or update a volume * @param body Volume object supplied in the body of the operation. - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @returns Promise */ - beginCreateOrUpdate(body: Models.Volume, resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(body: Models.Volume, resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { body, - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -202,17 +202,17 @@ export class Volumes { /** * Delete a volume - * @param resourceGroup The name of the resource group. + * @param resourceGroupName The name of the resource group. * @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 optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroup: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { - resourceGroup, + resourceGroupName, accountName, poolName, volumeName, @@ -227,10 +227,10 @@ export class Volumes { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName ], @@ -253,10 +253,10 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName @@ -280,10 +280,10 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName @@ -314,10 +314,10 @@ const updateOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName @@ -352,10 +352,10 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroup, + Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, Parameters.volumeName diff --git a/packages/@azure/arm-netapp/package.json b/packages/@azure/arm-netapp/package.json index d9b1d1eac3bc..72bddd62c28e 100644 --- a/packages/@azure/arm-netapp/package.json +++ b/packages/@azure/arm-netapp/package.json @@ -4,8 +4,8 @@ "description": "AzureNetAppFilesManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.6.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -44,7 +44,6 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", - "README.md", "rollup.config.js", "tsconfig.json" ], @@ -53,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-netapp.js.map'\" -o ./dist/arm-netapp.min.js ./dist/arm-netapp.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "autoPublish": true + "sideEffects": false }