From a65d11a4e615cae59a021c666bece7ee4ee7fe31 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 19 May 2021 09:55:23 +0000 Subject: [PATCH] CodeGen from PR 14365 in Azure/azure-rest-api-specs Merge cf79b17f2007bd9a4e26320d92f9fb99c713ab37 into d2c9a00f64387ac417831818b4cdb880663a3acc --- .../src/azureNetAppFilesManagementClient.ts | 9 +- ...azureNetAppFilesManagementClientContext.ts | 23 +- sdk/netapp/arm-netapp/src/models/index.ts | 1331 ++++++++++------- sdk/netapp/arm-netapp/src/models/mappers.ts | 245 ++- .../src/models/netAppResourceMappers.ts | 2 + .../arm-netapp/src/models/parameters.ts | 6 +- .../src/models/volumeRestoreStatusMappers.ts | 12 + .../src/operations/accountBackups.ts | 126 +- .../src/operations/backupPolicies.ts | 208 +-- .../arm-netapp/src/operations/backups.ts | 282 +--- sdk/netapp/arm-netapp/src/operations/index.ts | 1 + .../src/operations/netAppResource.ts | 91 +- .../src/operations/volumeRestoreStatus.ts | 97 ++ 13 files changed, 1376 insertions(+), 1057 deletions(-) create mode 100644 sdk/netapp/arm-netapp/src/models/volumeRestoreStatusMappers.ts create mode 100644 sdk/netapp/arm-netapp/src/operations/volumeRestoreStatus.ts diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts index 82a2c2d44234..e230660573de 100644 --- a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts @@ -13,6 +13,7 @@ import * as Mappers from "./models/mappers"; import * as operations from "./operations"; import { AzureNetAppFilesManagementClientContext } from "./azureNetAppFilesManagementClientContext"; + class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientContext { // Operation groups operations: operations.Operations; @@ -23,6 +24,7 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC snapshots: operations.Snapshots; snapshotPolicies: operations.SnapshotPolicies; backups: operations.Backups; + volumeRestoreStatus: operations.VolumeRestoreStatus; accountBackups: operations.AccountBackups; backupPolicies: operations.BackupPolicies; vaults: operations.Vaults; @@ -34,11 +36,7 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials, - subscriptionId: string, - options?: Models.AzureNetAppFilesManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureNetAppFilesManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.netAppResource = new operations.NetAppResource(this); @@ -48,6 +46,7 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC this.snapshots = new operations.Snapshots(this); this.snapshotPolicies = new operations.SnapshotPolicies(this); this.backups = new operations.Backups(this); + this.volumeRestoreStatus = new operations.VolumeRestoreStatus(this); this.accountBackups = new operations.AccountBackups(this); this.backupPolicies = new operations.BackupPolicies(this); this.vaults = new operations.Vaults(this); diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts index 5bbfba9f82a6..ecf3c7caa7f6 100644 --- a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts +++ b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts @@ -26,43 +26,36 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials, - subscriptionId: string, - options?: Models.AzureNetAppFilesManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureNetAppFilesManagementClientOptions) { if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); + throw new Error('\'subscriptionId\' cannot be null.'); } if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = "2021-02-01"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-04-01'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index 25352a78e6f0..d6079403a3b2 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -166,6 +166,21 @@ export interface ResourceNameAvailabilityRequest { resourceGroup: string; } +/** + * File path availability request content - availability is based on the name and the subnetId. + */ +export interface FilePathAvailabilityRequest { + /** + * File path to verify. + */ + name: string; + /** + * The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes + */ + subnetId: string; +} + /** * Quota availability request content. */ @@ -187,6 +202,58 @@ export interface QuotaAvailabilityRequest { resourceGroup: string; } +/** + * Information regarding quota on subscription + */ +export interface SubscriptionQuotaItem { + /** + * The current quota value. + */ + current?: number; + /** + * The default quota value. + */ + default?: number; +} + +/** + * Information regarding quota limits on subscription + */ +export interface QuotaLimitsResponse { + /** + * Subscription identifier. + */ + subscriptionId?: string; + /** + * The quota for maximum number of accounts per subscription. + */ + accountsPerSubscription?: any; + /** + * The quota for maximum number of capacity pools per account. + */ + poolsPerAccount?: any; + /** + * The quota for maximum number of volumes per capacity pool. + */ + volumesPerPool?: any; + /** + * The quota for maximum number of snapshots per volume + */ + snapshotsPerVolume?: any; + /** + * The quota for maximum number of Tebibytes per subscription + */ + totalTiBsPerSubscription?: any; + /** + * The quota for maximum number of data protection volumes per subscription. + */ + totalDPVolumesPerSubscription?: any; + /** + * The quota for maximum number of volumes per subscription. + */ + totalVolumesPerSubscription?: any; +} + /** * Active Directory */ @@ -241,6 +308,11 @@ export interface ActiveDirectory { * usernames without domain specifier */ backupOperators?: string[]; + /** + * Users to be added to the Built-in Administrators active directory group. A list of unique + * usernames without domain specifier + */ + administrators?: string[]; /** * kdc server IP addresses for the active directory machine. This optional parameter is used only * while creating kerberos volume. @@ -474,6 +546,10 @@ export interface CapacityPool extends BaseResource { * 'Auto'. */ qosType?: QosType; + /** + * If enabled (true) the pool can contain cool Access enabled volumes. Default value: false. + */ + coolAccess?: boolean; } /** @@ -582,6 +658,13 @@ export interface ExportPolicyRule { * Has root access to volume. Default value: true. */ hasRootAccess?: boolean; + /** + * This parameter specifies who is authorized to change the ownership of a file. restricted - + * Only root user can change the ownership of the file. unrestricted - Non-root users can change + * ownership of files that they own. Possible values include: 'Restricted', 'Unrestricted'. + * Default value: 'Restricted'. + */ + chownMode?: ChownMode; } /** @@ -831,6 +914,23 @@ export interface Volume extends BaseResource { * Specifies whether LDAP is enabled or not for a given NFS volume. Default value: false. */ ldapEnabled?: boolean; + /** + * Specifies whether Cool Access(tiering) is enabled for the volume. Default value: false. + */ + coolAccess?: boolean; + /** + * Specifies the number of days after which data that is not accessed by clients will be tiered. + */ + coolnessPeriod?: number; + /** + * UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set + * user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for + * the owner of the file: read (4), write (2) and execute (1). Third selects permissions for + * other users in the same group. the fourth for other users not in the group. 0755 - gives + * read/write/execute permissions to owner and read/execute to group and other users. Default + * value: '0770'. + */ + unixPermissions?: string; } /** @@ -1751,6 +1851,57 @@ export interface BackupStatus { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorMessage?: string; + /** + * Displays the last transfer size + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastTransferSize?: number; + /** + * Displays the last transfer type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastTransferType?: string; + /** + * Displays the total bytes transferred + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalTransferBytes?: number; +} + +/** + * Restore status + */ +export interface RestoreStatus { + /** + * Restore health status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly healthy?: boolean; + /** + * Status of the restore SnapMirror relationship. Possible values include: 'Idle', 'Transferring' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly relationshipStatus?: RelationshipStatus; + /** + * The status of the restore. Possible values include: 'Uninitialized', 'Mirrored', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly mirrorState?: MirrorState; + /** + * Reason for the unhealthy restore relationship + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unhealthyReason?: string; + /** + * Displays error message if the restore is in an error state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errorMessage?: string; + /** + * Displays the total bytes transferred + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalTransferBytes?: number; } /** @@ -1848,7 +1999,8 @@ export interface AzureNetAppFilesManagementClientOptions extends AzureServiceCli * URL link to get the next set of results. * @extends Array */ -export interface OperationListResult extends Array {} +export interface OperationListResult extends Array { +} /** * @interface @@ -1891,35 +2043,40 @@ export interface VolumeList extends Array { * List of Snapshots * @extends Array */ -export interface SnapshotsList extends Array {} +export interface SnapshotsList extends Array { +} /** * @interface * List of Snapshot Policies * @extends Array */ -export interface SnapshotPoliciesList extends Array {} +export interface SnapshotPoliciesList extends Array { +} /** * @interface * List of Backups * @extends Array */ -export interface BackupsList extends Array {} +export interface BackupsList extends Array { +} /** * @interface * List of Backup Policies * @extends Array */ -export interface BackupPoliciesList extends Array {} +export interface BackupPoliciesList extends Array { +} /** * @interface * List of Vaults * @extends Array */ -export interface VaultList extends Array {} +export interface VaultList extends Array { +} /** * Defines values for InAvailabilityReasonType. @@ -1927,7 +2084,7 @@ export interface VaultList extends Array {} * @readonly * @enum {string} */ -export type InAvailabilityReasonType = "Invalid" | "AlreadyExists"; +export type InAvailabilityReasonType = 'Invalid' | 'AlreadyExists'; /** * Defines values for CheckNameResourceTypes. @@ -1938,11 +2095,7 @@ export type InAvailabilityReasonType = "Invalid" | "AlreadyExists"; * @readonly * @enum {string} */ -export type CheckNameResourceTypes = - | "Microsoft.NetApp/netAppAccounts" - | "Microsoft.NetApp/netAppAccounts/capacityPools" - | "Microsoft.NetApp/netAppAccounts/capacityPools/volumes" - | "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"; +export type CheckNameResourceTypes = 'Microsoft.NetApp/netAppAccounts' | 'Microsoft.NetApp/netAppAccounts/capacityPools' | 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes' | 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'; /** * Defines values for CheckQuotaNameResourceTypes. @@ -1953,11 +2106,7 @@ export type CheckNameResourceTypes = * @readonly * @enum {string} */ -export type CheckQuotaNameResourceTypes = - | "Microsoft.NetApp/netAppAccounts" - | "Microsoft.NetApp/netAppAccounts/capacityPools" - | "Microsoft.NetApp/netAppAccounts/capacityPools/volumes" - | "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots"; +export type CheckQuotaNameResourceTypes = 'Microsoft.NetApp/netAppAccounts' | 'Microsoft.NetApp/netAppAccounts/capacityPools' | 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes' | 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots'; /** * Defines values for ActiveDirectoryStatus. @@ -1965,7 +2114,7 @@ export type CheckQuotaNameResourceTypes = * @readonly * @enum {string} */ -export type ActiveDirectoryStatus = "Created" | "InUse" | "Deleted" | "Error" | "Updating"; +export type ActiveDirectoryStatus = 'Created' | 'InUse' | 'Deleted' | 'Error' | 'Updating'; /** * Defines values for CreatedByType. @@ -1973,7 +2122,7 @@ export type ActiveDirectoryStatus = "Created" | "InUse" | "Deleted" | "Error" | * @readonly * @enum {string} */ -export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key"; +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** * Defines values for ServiceLevel. @@ -1981,7 +2130,7 @@ export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key"; * @readonly * @enum {string} */ -export type ServiceLevel = "Standard" | "Premium" | "Ultra"; +export type ServiceLevel = 'Standard' | 'Premium' | 'Ultra'; /** * Defines values for QosType. @@ -1989,7 +2138,15 @@ export type ServiceLevel = "Standard" | "Premium" | "Ultra"; * @readonly * @enum {string} */ -export type QosType = "Auto" | "Manual"; +export type QosType = 'Auto' | 'Manual'; + +/** + * Defines values for ChownMode. + * Possible values include: 'Restricted', 'Unrestricted' + * @readonly + * @enum {string} + */ +export type ChownMode = 'Restricted' | 'Unrestricted'; /** * Defines values for EndpointType. @@ -1997,7 +2154,7 @@ export type QosType = "Auto" | "Manual"; * @readonly * @enum {string} */ -export type EndpointType = "src" | "dst"; +export type EndpointType = 'src' | 'dst'; /** * Defines values for ReplicationSchedule. @@ -2005,7 +2162,7 @@ export type EndpointType = "src" | "dst"; * @readonly * @enum {string} */ -export type ReplicationSchedule = "_10minutely" | "hourly" | "daily"; +export type ReplicationSchedule = '_10minutely' | 'hourly' | 'daily'; /** * Defines values for SecurityStyle. @@ -2013,7 +2170,7 @@ export type ReplicationSchedule = "_10minutely" | "hourly" | "daily"; * @readonly * @enum {string} */ -export type SecurityStyle = "ntfs" | "unix"; +export type SecurityStyle = 'ntfs' | 'unix'; /** * Defines values for RelationshipStatus. @@ -2021,7 +2178,7 @@ export type SecurityStyle = "ntfs" | "unix"; * @readonly * @enum {string} */ -export type RelationshipStatus = "Idle" | "Transferring"; +export type RelationshipStatus = 'Idle' | 'Transferring'; /** * Defines values for MirrorState. @@ -2029,7 +2186,7 @@ export type RelationshipStatus = "Idle" | "Transferring"; * @readonly * @enum {string} */ -export type MirrorState = "Uninitialized" | "Mirrored" | "Broken"; +export type MirrorState = 'Uninitialized' | 'Mirrored' | 'Broken'; /** * Defines values for BackupType. @@ -2037,7 +2194,7 @@ export type MirrorState = "Uninitialized" | "Mirrored" | "Broken"; * @readonly * @enum {string} */ -export type BackupType = "Manual" | "Scheduled"; +export type BackupType = 'Manual' | 'Scheduled'; /** * Contains response data for the list operation. @@ -2047,16 +2204,16 @@ export type OperationsListResponse = OperationListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -2067,16 +2224,16 @@ export type NetAppResourceCheckNameAvailabilityResponse = CheckAvailabilityRespo * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CheckAvailabilityResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CheckAvailabilityResponse; + }; }; /** @@ -2087,16 +2244,16 @@ export type NetAppResourceCheckFilePathAvailabilityResponse = CheckAvailabilityR * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CheckAvailabilityResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CheckAvailabilityResponse; + }; }; /** @@ -2107,16 +2264,36 @@ export type NetAppResourceCheckQuotaAvailabilityResponse = CheckAvailabilityResp * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CheckAvailabilityResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CheckAvailabilityResponse; + }; +}; + +/** + * Contains response data for the getQuotaLimits operation. + */ +export type NetAppResourceGetQuotaLimitsResponse = QuotaLimitsResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: QuotaLimitsResponse; + }; }; /** @@ -2127,16 +2304,16 @@ export type AccountsListResponse = NetAppAccountList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NetAppAccountList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetAppAccountList; + }; }; /** @@ -2147,16 +2324,16 @@ export type AccountsGetResponse = NetAppAccount & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NetAppAccount; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetAppAccount; + }; }; /** @@ -2167,16 +2344,16 @@ export type AccountsCreateOrUpdateResponse = NetAppAccount & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NetAppAccount; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetAppAccount; + }; }; /** @@ -2187,16 +2364,16 @@ export type AccountsUpdateResponse = NetAppAccount & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NetAppAccount; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetAppAccount; + }; }; /** @@ -2207,16 +2384,16 @@ export type AccountsBeginCreateOrUpdateResponse = NetAppAccount & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NetAppAccount; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetAppAccount; + }; }; /** @@ -2227,16 +2404,16 @@ export type AccountsBeginUpdateResponse = NetAppAccount & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NetAppAccount; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetAppAccount; + }; }; /** @@ -2247,16 +2424,16 @@ export type AccountsListNextResponse = NetAppAccountList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: NetAppAccountList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetAppAccountList; + }; }; /** @@ -2267,16 +2444,16 @@ export type PoolsListResponse = CapacityPoolList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CapacityPoolList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapacityPoolList; + }; }; /** @@ -2287,16 +2464,16 @@ export type PoolsGetResponse = CapacityPool & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CapacityPool; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapacityPool; + }; }; /** @@ -2307,16 +2484,16 @@ export type PoolsCreateOrUpdateResponse = CapacityPool & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CapacityPool; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapacityPool; + }; }; /** @@ -2327,16 +2504,16 @@ export type PoolsUpdateResponse = CapacityPool & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CapacityPool; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapacityPool; + }; }; /** @@ -2347,16 +2524,16 @@ export type PoolsBeginCreateOrUpdateResponse = CapacityPool & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CapacityPool; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapacityPool; + }; }; /** @@ -2367,16 +2544,16 @@ export type PoolsBeginUpdateResponse = CapacityPool & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CapacityPool; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapacityPool; + }; }; /** @@ -2387,16 +2564,16 @@ export type PoolsListNextResponse = CapacityPoolList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CapacityPoolList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapacityPoolList; + }; }; /** @@ -2407,16 +2584,16 @@ export type VolumesListResponse = VolumeList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VolumeList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VolumeList; + }; }; /** @@ -2427,16 +2604,16 @@ export type VolumesGetResponse = Volume & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Volume; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Volume; + }; }; /** @@ -2447,16 +2624,16 @@ export type VolumesCreateOrUpdateResponse = Volume & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Volume; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Volume; + }; }; /** @@ -2467,16 +2644,16 @@ export type VolumesUpdateResponse = Volume & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Volume; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Volume; + }; }; /** @@ -2487,16 +2664,16 @@ export type VolumesReplicationStatusMethodResponse = ReplicationStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ReplicationStatus; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReplicationStatus; + }; }; /** @@ -2507,16 +2684,16 @@ export type VolumesBeginCreateOrUpdateResponse = Volume & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Volume; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Volume; + }; }; /** @@ -2527,16 +2704,16 @@ export type VolumesBeginUpdateResponse = Volume & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Volume; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Volume; + }; }; /** @@ -2547,16 +2724,16 @@ export type VolumesListNextResponse = VolumeList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VolumeList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VolumeList; + }; }; /** @@ -2567,16 +2744,16 @@ export type SnapshotsListResponse = SnapshotsList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SnapshotsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotsList; + }; }; /** @@ -2587,16 +2764,16 @@ export type SnapshotsGetResponse = Snapshot & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Snapshot; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Snapshot; + }; }; /** @@ -2607,16 +2784,16 @@ export type SnapshotsCreateResponse = Snapshot & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Snapshot; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Snapshot; + }; }; /** @@ -2627,16 +2804,16 @@ export type SnapshotsUpdateResponse = Snapshot & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Snapshot; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Snapshot; + }; }; /** @@ -2647,16 +2824,16 @@ export type SnapshotsBeginCreateResponse = Snapshot & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Snapshot; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Snapshot; + }; }; /** @@ -2667,16 +2844,16 @@ export type SnapshotsBeginUpdateResponse = Snapshot & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Snapshot; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Snapshot; + }; }; /** @@ -2687,16 +2864,16 @@ export type SnapshotPoliciesListResponse = SnapshotPoliciesList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SnapshotPoliciesList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotPoliciesList; + }; }; /** @@ -2707,16 +2884,16 @@ export type SnapshotPoliciesGetResponse = SnapshotPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SnapshotPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotPolicy; + }; }; /** @@ -2727,16 +2904,16 @@ export type SnapshotPoliciesCreateResponse = SnapshotPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SnapshotPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotPolicy; + }; }; /** @@ -2747,16 +2924,16 @@ export type SnapshotPoliciesUpdateResponse = SnapshotPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SnapshotPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotPolicy; + }; }; /** @@ -2767,16 +2944,16 @@ export type SnapshotPoliciesListVolumesResponse = SnapshotPolicyVolumeList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SnapshotPolicyVolumeList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotPolicyVolumeList; + }; }; /** @@ -2787,16 +2964,16 @@ export type SnapshotPoliciesBeginUpdateResponse = SnapshotPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SnapshotPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SnapshotPolicy; + }; }; /** @@ -2807,16 +2984,16 @@ export type BackupsGetStatusResponse = BackupStatus & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupStatus; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupStatus; + }; }; /** @@ -2827,16 +3004,16 @@ export type BackupsListResponse = BackupsList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupsList; + }; }; /** @@ -2847,16 +3024,16 @@ export type BackupsGetResponse = Backup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Backup; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Backup; + }; }; /** @@ -2867,16 +3044,16 @@ export type BackupsCreateResponse = Backup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Backup; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Backup; + }; }; /** @@ -2887,16 +3064,16 @@ export type BackupsUpdateResponse = Backup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Backup; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Backup; + }; }; /** @@ -2907,16 +3084,16 @@ export type BackupsBeginCreateResponse = Backup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Backup; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Backup; + }; }; /** @@ -2927,16 +3104,36 @@ export type BackupsBeginUpdateResponse = Backup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Backup; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Backup; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VolumeRestoreStatusGetResponse = RestoreStatus & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestoreStatus; + }; }; /** @@ -2947,16 +3144,16 @@ export type AccountBackupsListResponse = BackupsList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupsList; + }; }; /** @@ -2967,16 +3164,16 @@ export type AccountBackupsGetResponse = Backup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Backup; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Backup; + }; }; /** @@ -2987,16 +3184,16 @@ export type BackupPoliciesListResponse = BackupPoliciesList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupPoliciesList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupPoliciesList; + }; }; /** @@ -3007,16 +3204,16 @@ export type BackupPoliciesGetResponse = BackupPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupPolicy; + }; }; /** @@ -3027,16 +3224,16 @@ export type BackupPoliciesCreateResponse = BackupPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupPolicy; + }; }; /** @@ -3047,16 +3244,16 @@ export type BackupPoliciesUpdateResponse = BackupPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupPolicy; + }; }; /** @@ -3067,16 +3264,16 @@ export type BackupPoliciesBeginCreateResponse = BackupPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupPolicy; + }; }; /** @@ -3087,16 +3284,16 @@ export type BackupPoliciesBeginUpdateResponse = BackupPolicy & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: BackupPolicy; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupPolicy; + }; }; /** @@ -3107,14 +3304,14 @@ export type VaultsListResponse = VaultList & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: VaultList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VaultList; + }; }; diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index 8bdb1918d71d..07c115b72d9d 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -255,6 +255,30 @@ export const ResourceNameAvailabilityRequest: msRest.CompositeMapper = { } }; +export const FilePathAvailabilityRequest: msRest.CompositeMapper = { + serializedName: "FilePathAvailabilityRequest", + type: { + name: "Composite", + className: "FilePathAvailabilityRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + subnetId: { + required: true, + serializedName: "subnetId", + type: { + name: "String" + } + } + } + } +}; + export const QuotaAvailabilityRequest: msRest.CompositeMapper = { serializedName: "QuotaAvailabilityRequest", type: { @@ -286,6 +310,86 @@ export const QuotaAvailabilityRequest: msRest.CompositeMapper = { } }; +export const SubscriptionQuotaItem: msRest.CompositeMapper = { + serializedName: "SubscriptionQuotaItem", + type: { + name: "Composite", + className: "SubscriptionQuotaItem", + modelProperties: { + current: { + serializedName: "current", + type: { + name: "Number" + } + }, + default: { + serializedName: "default", + type: { + name: "Number" + } + } + } + } +}; + +export const QuotaLimitsResponse: msRest.CompositeMapper = { + serializedName: "QuotaLimitsResponse", + type: { + name: "Composite", + className: "QuotaLimitsResponse", + modelProperties: { + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + accountsPerSubscription: { + serializedName: "accountsPerSubscription", + type: { + name: "Object" + } + }, + poolsPerAccount: { + serializedName: "poolsPerAccount", + type: { + name: "Object" + } + }, + volumesPerPool: { + serializedName: "volumesPerPool", + type: { + name: "Object" + } + }, + snapshotsPerVolume: { + serializedName: "snapshotsPerVolume", + type: { + name: "Object" + } + }, + totalTiBsPerSubscription: { + serializedName: "totalTiBsPerSubscription", + type: { + name: "Object" + } + }, + totalDPVolumesPerSubscription: { + serializedName: "totalDPVolumesPerSubscription", + type: { + name: "Object" + } + }, + totalVolumesPerSubscription: { + serializedName: "totalVolumesPerSubscription", + type: { + name: "Object" + } + } + } + } +}; + export const ActiveDirectory: msRest.CompositeMapper = { serializedName: "activeDirectory", type: { @@ -348,7 +452,7 @@ export const ActiveDirectory: msRest.CompositeMapper = { }, organizationalUnit: { serializedName: "organizationalUnit", - defaultValue: "CN=Computers", + defaultValue: 'CN=Computers', type: { name: "String" } @@ -370,6 +474,17 @@ export const ActiveDirectory: msRest.CompositeMapper = { } } }, + administrators: { + serializedName: "administrators", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, kdcIP: { serializedName: "kdcIP", constraints: { @@ -728,7 +843,7 @@ export const CapacityPool: msRest.CompositeMapper = { serviceLevel: { required: true, serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } @@ -756,10 +871,17 @@ export const CapacityPool: msRest.CompositeMapper = { }, qosType: { serializedName: "properties.qosType", - defaultValue: "Auto", + defaultValue: 'Auto', type: { name: "String" } + }, + coolAccess: { + serializedName: "properties.coolAccess", + defaultValue: false, + type: { + name: "Boolean" + } } } } @@ -822,7 +944,7 @@ export const CapacityPoolPatch: msRest.CompositeMapper = { }, qosType: { serializedName: "properties.qosType", - defaultValue: "Auto", + defaultValue: 'Auto', type: { name: "String" } @@ -927,6 +1049,13 @@ export const ExportPolicyRule: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + chownMode: { + serializedName: "chownMode", + defaultValue: 'Restricted', + type: { + name: "String" + } } } } @@ -1195,7 +1324,7 @@ export const Volume: msRest.CompositeMapper = { }, serviceLevel: { serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } @@ -1322,7 +1451,7 @@ export const Volume: msRest.CompositeMapper = { }, securityStyle: { serializedName: "properties.securityStyle", - defaultValue: "unix", + defaultValue: 'unix', type: { name: "String" } @@ -1364,6 +1493,35 @@ export const Volume: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + coolAccess: { + serializedName: "properties.coolAccess", + defaultValue: false, + type: { + name: "Boolean" + } + }, + coolnessPeriod: { + serializedName: "properties.coolnessPeriod", + constraints: { + InclusiveMaximum: 63, + InclusiveMinimum: 7 + }, + type: { + name: "Number" + } + }, + unixPermissions: { + nullable: true, + serializedName: "properties.unixPermissions", + defaultValue: '0770', + constraints: { + MaxLength: 4, + MinLength: 4 + }, + type: { + name: "String" + } } } } @@ -1531,7 +1689,7 @@ export const VolumePatch: msRest.CompositeMapper = { }, serviceLevel: { serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } @@ -2857,6 +3015,79 @@ export const BackupStatus: msRest.CompositeMapper = { type: { name: "String" } + }, + lastTransferSize: { + readOnly: true, + serializedName: "lastTransferSize", + type: { + name: "Number" + } + }, + lastTransferType: { + readOnly: true, + serializedName: "lastTransferType", + type: { + name: "String" + } + }, + totalTransferBytes: { + readOnly: true, + serializedName: "totalTransferBytes", + type: { + name: "Number" + } + } + } + } +}; + +export const RestoreStatus: msRest.CompositeMapper = { + serializedName: "restoreStatus", + type: { + name: "Composite", + className: "RestoreStatus", + modelProperties: { + healthy: { + readOnly: true, + serializedName: "healthy", + type: { + name: "Boolean" + } + }, + relationshipStatus: { + readOnly: true, + serializedName: "relationshipStatus", + type: { + name: "String" + } + }, + mirrorState: { + readOnly: true, + serializedName: "mirrorState", + type: { + name: "String" + } + }, + unhealthyReason: { + readOnly: true, + serializedName: "unhealthyReason", + type: { + name: "String" + } + }, + errorMessage: { + readOnly: true, + serializedName: "errorMessage", + type: { + name: "String" + } + }, + totalTransferBytes: { + readOnly: true, + serializedName: "totalTransferBytes", + type: { + name: "Number" + } } } } diff --git a/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts b/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts index f3e622778de8..0faf3cbfcd9b 100644 --- a/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts @@ -9,6 +9,8 @@ export { CheckAvailabilityResponse, CloudError, + FilePathAvailabilityRequest, QuotaAvailabilityRequest, + QuotaLimitsResponse, ResourceNameAvailabilityRequest } from "../models/mappers"; diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index 1122f17062b4..42db0c6d334b 100644 --- a/sdk/netapp/arm-netapp/src/models/parameters.ts +++ b/sdk/netapp/arm-netapp/src/models/parameters.ts @@ -13,7 +13,7 @@ export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", mapper: { serializedName: "accept-language", - defaultValue: "en-US", + defaultValue: 'en-US', type: { name: "String" } @@ -34,7 +34,9 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", - defaultValue: "2021-02-01", + constraints: { + MinLength: 1 + }, type: { name: "String" } diff --git a/sdk/netapp/arm-netapp/src/models/volumeRestoreStatusMappers.ts b/sdk/netapp/arm-netapp/src/models/volumeRestoreStatusMappers.ts new file mode 100644 index 000000000000..eb10a292a3f2 --- /dev/null +++ b/sdk/netapp/arm-netapp/src/models/volumeRestoreStatusMappers.ts @@ -0,0 +1,12 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + CloudError, + RestoreStatus +} from "../models/mappers"; diff --git a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts index a09d48852947..75a1b715f5b6 100644 --- a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts +++ b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts @@ -34,39 +34,21 @@ export class AccountBackups { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param callback The callback */ - list( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @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( - 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 { + 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( { resourceGroupName, @@ -74,8 +56,7 @@ export class AccountBackups { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,24 +68,14 @@ export class AccountBackups { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, accountName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param backupName The name of the backup * @param callback The callback */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, accountName: string, backupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -112,20 +83,8 @@ export class AccountBackups { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, accountName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -134,8 +93,7 @@ export class AccountBackups { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -147,18 +105,9 @@ export class AccountBackups { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - accountName, - backupName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, accountName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,backupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -170,12 +119,7 @@ export class AccountBackups { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, accountName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -184,8 +128,7 @@ export class AccountBackups { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -193,11 +136,18 @@ export class AccountBackups { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupsList @@ -211,16 +161,19 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.backupName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Backup @@ -234,16 +187,19 @@ const getOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.backupName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts index e0ed88da0060..089ec70f15c0 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts @@ -34,39 +34,21 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - accountName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param callback The callback */ - list( - resourceGroupName: string, - accountName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; /** * @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( - 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 { + 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( { resourceGroupName, @@ -74,8 +56,7 @@ export class BackupPolicies { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,24 +68,14 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, accountName: string, backupPolicyName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account * @param backupPolicyName Backup policy Name which uniquely identify backup policy. * @param callback The callback */ - get( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, accountName: string, backupPolicyName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -112,20 +83,8 @@ export class BackupPolicies { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, accountName: string, backupPolicyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, backupPolicyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -134,8 +93,7 @@ export class BackupPolicies { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -148,22 +106,9 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - body: Models.BackupPolicy, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - accountName, - backupPolicyName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.BackupPoliciesCreateResponse - >; + create(resourceGroupName: string, accountName: string, backupPolicyName: string, body: Models.BackupPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,accountName,backupPolicyName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -176,22 +121,9 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - body: Models.BackupPolicyPatch, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - accountName, - backupPolicyName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.BackupPoliciesUpdateResponse - >; + update(resourceGroupName: string, accountName: string, backupPolicyName: string, body: Models.BackupPolicyPatch, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,accountName,backupPolicyName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -203,18 +135,9 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - accountName, - backupPolicyName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, accountName: string, backupPolicyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,backupPolicyName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -227,13 +150,7 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - body: Models.BackupPolicy, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, accountName: string, backupPolicyName: string, body: Models.BackupPolicy, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -243,8 +160,7 @@ export class BackupPolicies { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -257,13 +173,7 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - body: Models.BackupPolicyPatch, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, accountName: string, backupPolicyName: string, body: Models.BackupPolicyPatch, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -273,8 +183,7 @@ export class BackupPolicies { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -286,12 +195,7 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - accountName: string, - backupPolicyName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, accountName: string, backupPolicyName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -300,8 +204,7 @@ export class BackupPolicies { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -309,11 +212,18 @@ export class BackupPolicies { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupPoliciesList @@ -327,16 +237,19 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.backupPolicyName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupPolicy @@ -350,16 +263,19 @@ const getOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.backupPolicyName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "body", mapper: { @@ -384,16 +300,19 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.backupPolicyName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "body", mapper: { @@ -417,16 +336,19 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, Parameters.backupPolicyName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/netapp/arm-netapp/src/operations/backups.ts b/sdk/netapp/arm-netapp/src/operations/backups.ts index a6426e453b70..a72cf52524e8 100644 --- a/sdk/netapp/arm-netapp/src/operations/backups.ts +++ b/sdk/netapp/arm-netapp/src/operations/backups.ts @@ -36,13 +36,7 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - getStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -50,13 +44,7 @@ export class Backups { * @param volumeName The name of the volume * @param callback The callback */ - getStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - callback: msRest.ServiceCallback - ): void; + getStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -65,22 +53,8 @@ export class Backups { * @param options The optional parameters * @param callback The callback */ - getStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -90,8 +64,7 @@ export class Backups { options }, getStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -104,13 +77,7 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: 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 resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -118,13 +85,7 @@ export class Backups { * @param volumeName The name of the volume * @param callback The callback */ - list( - resourceGroupName: 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 resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -133,22 +94,8 @@ export class Backups { * @param options The optional parameters * @param callback The callback */ - 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 { + 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( { resourceGroupName, @@ -158,8 +105,7 @@ export class Backups { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -173,14 +119,7 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -189,14 +128,7 @@ export class Backups { * @param backupName The name of the backup * @param callback The callback */ - get( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param accountName The name of the NetApp account @@ -206,24 +138,8 @@ export class Backups { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -234,8 +150,7 @@ export class Backups { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -250,24 +165,9 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - body: Models.Backup, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - body, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise; + create(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: Models.Backup, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,accountName,poolName,volumeName,backupName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -281,22 +181,9 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: Models.BackupsUpdateOptionalParams - ): Promise { - return this.beginUpdate( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise; + update(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: Models.BackupsUpdateOptionalParams): Promise { + return this.beginUpdate(resourceGroupName,accountName,poolName,volumeName,backupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -310,22 +197,9 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - accountName, - poolName, - volumeName, - backupName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,poolName,volumeName,backupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -340,15 +214,7 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - body: Models.Backup, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, body: Models.Backup, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -360,8 +226,7 @@ export class Backups { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -375,14 +240,7 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: Models.BackupsBeginUpdateOptionalParams - ): Promise { + beginUpdate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: Models.BackupsBeginUpdateOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -393,8 +251,7 @@ export class Backups { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -408,14 +265,7 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - backupName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -426,8 +276,7 @@ export class Backups { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -435,8 +284,7 @@ export class Backups { const serializer = new msRest.Serializer(Mappers); const getStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -444,8 +292,12 @@ const getStatusOperationSpec: msRest.OperationSpec = { Parameters.poolName, Parameters.volumeName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupStatus @@ -459,8 +311,7 @@ const getStatusOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -468,8 +319,12 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.poolName, Parameters.volumeName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupsList @@ -483,8 +338,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -493,8 +347,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.volumeName, Parameters.backupName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Backup @@ -508,8 +366,7 @@ const getOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -518,8 +375,12 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.volumeName, Parameters.backupName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "body", mapper: { @@ -544,8 +405,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -554,10 +414,17 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.volumeName, Parameters.backupName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "body"], + parameterPath: [ + "options", + "body" + ], mapper: Mappers.BackupPatch }, responses: { @@ -576,8 +443,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backups/{backupName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -586,8 +452,12 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.volumeName, Parameters.backupName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/netapp/arm-netapp/src/operations/index.ts b/sdk/netapp/arm-netapp/src/operations/index.ts index bd1cd443318d..c09a7b437a54 100644 --- a/sdk/netapp/arm-netapp/src/operations/index.ts +++ b/sdk/netapp/arm-netapp/src/operations/index.ts @@ -15,6 +15,7 @@ export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; +export * from "./volumeRestoreStatus"; export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./vaults"; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts index 6cff8b5e5750..0682077a649e 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts @@ -79,46 +79,36 @@ export class NetAppResource { * Check if a file path is available. * @summary Check file path availability * @param location The location - * @param name Resource name to verify. - * @param type Resource type used for verification. Possible values include: - * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools', - * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes', - * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots' - * @param resourceGroup Resource group name. + * @param name File path to verify. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes * @param [options] The optional parameters * @returns Promise */ - checkFilePathAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase): Promise; + checkFilePathAvailability(location: string, name: string, subnetId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The location - * @param name Resource name to verify. - * @param type Resource type used for verification. Possible values include: - * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools', - * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes', - * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots' - * @param resourceGroup Resource group name. + * @param name File path to verify. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes * @param callback The callback */ - checkFilePathAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, callback: msRest.ServiceCallback): void; + checkFilePathAvailability(location: string, name: string, subnetId: string, callback: msRest.ServiceCallback): void; /** * @param location The location - * @param name Resource name to verify. - * @param type Resource type used for verification. Possible values include: - * 'Microsoft.NetApp/netAppAccounts', 'Microsoft.NetApp/netAppAccounts/capacityPools', - * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes', - * 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots' - * @param resourceGroup Resource group name. + * @param name File path to verify. + * @param subnetId The Azure Resource URI for a delegated subnet. Must have the delegation + * Microsoft.NetApp/volumes * @param options The optional parameters * @param callback The callback */ - checkFilePathAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkFilePathAvailability(location: string, name: string, type: Models.CheckNameResourceTypes, resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkFilePathAvailability(location: string, name: string, subnetId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkFilePathAvailability(location: string, name: string, subnetId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, name, - type, - resourceGroup, + subnetId, options }, checkFilePathAvailabilityOperationSpec, @@ -174,6 +164,31 @@ export class NetAppResource { checkQuotaAvailabilityOperationSpec, callback) as Promise; } + + /** + * Get the default and current limits for quotas + * @summary Get quota limits + * @param [options] The optional parameters + * @returns Promise + */ + getQuotaLimits(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + getQuotaLimits(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getQuotaLimits(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getQuotaLimits(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getQuotaLimitsOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -229,11 +244,10 @@ const checkFilePathAvailabilityOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: { name: "name", - type: "type", - resourceGroup: "resourceGroup" + subnetId: "subnetId" }, mapper: { - ...Mappers.ResourceNameAvailabilityRequest, + ...Mappers.FilePathAvailabilityRequest, required: true } }, @@ -282,3 +296,26 @@ const checkQuotaAvailabilityOperationSpec: msRest.OperationSpec = { }, serializer }; + +const getQuotaLimitsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.NetApp/getQuotaLimits", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.QuotaLimitsResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/netapp/arm-netapp/src/operations/volumeRestoreStatus.ts b/sdk/netapp/arm-netapp/src/operations/volumeRestoreStatus.ts new file mode 100644 index 000000000000..41b923f278f5 --- /dev/null +++ b/sdk/netapp/arm-netapp/src/operations/volumeRestoreStatus.ts @@ -0,0 +1,97 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/volumeRestoreStatusMappers"; +import * as Parameters from "../models/parameters"; +import { AzureNetAppFilesManagementClientContext } from "../azureNetAppFilesManagementClientContext"; + +/** Class representing a VolumeRestoreStatus. */ +export class VolumeRestoreStatus { + private readonly client: AzureNetAppFilesManagementClientContext; + + /** + * Create a VolumeRestoreStatus. + * @param {AzureNetAppFilesManagementClientContext} client Reference to the service client. + */ + constructor(client: AzureNetAppFilesManagementClientContext) { + this.client = client; + } + + /** + * Get the status of the restore for a volume + * @summary Get volume's restore status + * @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(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, callback: msRest.ServiceCallback): void; + /** + * @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(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( + { + resourceGroupName, + accountName, + poolName, + volumeName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.volumeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestoreStatus + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};