From 53eb3ff539cd06f42b8c334304402b61e0871bd7 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 21 May 2021 09:47:27 +0000 Subject: [PATCH] CodeGen from PR 14286 in Azure/azure-rest-api-specs Merge 19b2ec0bb152a6450b846170595feafda3ef84df into ae6770af3f89e13b00b15f5e643dc3ff31d8ddbd --- .../src/azureNetAppFilesManagementClient.ts | 7 +- ...azureNetAppFilesManagementClientContext.ts | 23 +- sdk/netapp/arm-netapp/src/models/index.ts | 1132 ++++++++--------- sdk/netapp/arm-netapp/src/models/mappers.ts | 14 +- .../arm-netapp/src/models/parameters.ts | 4 +- .../src/operations/accountBackups.ts | 126 +- .../src/operations/backupPolicies.ts | 208 +-- .../arm-netapp/src/operations/backups.ts | 282 ++-- 8 files changed, 766 insertions(+), 1030 deletions(-) diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts index 82a2c2d44234..3ef6dd954b72 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; @@ -34,11 +35,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); diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts index 5bbfba9f82a6..f5f787af0214 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-02-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..7de4259da576 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -1848,7 +1848,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 +1892,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 +1933,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 +1944,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 +1955,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 +1963,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 +1971,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 +1979,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 +1987,7 @@ export type ServiceLevel = "Standard" | "Premium" | "Ultra"; * @readonly * @enum {string} */ -export type QosType = "Auto" | "Manual"; +export type QosType = 'Auto' | 'Manual'; /** * Defines values for EndpointType. @@ -1997,7 +1995,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 +2003,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 +2011,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 +2019,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 +2027,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 +2035,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 +2045,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 +2065,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 +2085,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 +2105,16 @@ 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; + }; }; /** @@ -2127,16 +2125,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 +2145,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 +2165,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 +2185,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 +2205,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 +2225,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 +2245,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 +2265,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 +2285,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 +2305,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 +2325,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 +2345,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 +2365,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 +2385,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 +2405,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 +2425,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 +2445,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 +2465,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 +2485,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 +2505,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 +2525,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 +2545,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 +2565,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 +2585,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 +2605,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 +2625,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 +2645,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 +2665,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 +2685,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 +2705,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 +2725,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 +2745,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 +2765,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 +2785,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 +2805,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 +2825,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 +2845,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 +2865,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 +2885,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 +2905,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 +2925,16 @@ 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; + }; }; /** @@ -2947,16 +2945,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 +2965,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 +2985,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 +3005,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 +3025,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 +3045,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 +3065,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 +3085,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 +3105,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..39abaa866cbe 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -348,7 +348,7 @@ export const ActiveDirectory: msRest.CompositeMapper = { }, organizationalUnit: { serializedName: "organizationalUnit", - defaultValue: "CN=Computers", + defaultValue: 'CN=Computers', type: { name: "String" } @@ -728,7 +728,7 @@ export const CapacityPool: msRest.CompositeMapper = { serviceLevel: { required: true, serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } @@ -756,7 +756,7 @@ export const CapacityPool: msRest.CompositeMapper = { }, qosType: { serializedName: "properties.qosType", - defaultValue: "Auto", + defaultValue: 'Auto', type: { name: "String" } @@ -822,7 +822,7 @@ export const CapacityPoolPatch: msRest.CompositeMapper = { }, qosType: { serializedName: "properties.qosType", - defaultValue: "Auto", + defaultValue: 'Auto', type: { name: "String" } @@ -1195,7 +1195,7 @@ export const Volume: msRest.CompositeMapper = { }, serviceLevel: { serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } @@ -1322,7 +1322,7 @@ export const Volume: msRest.CompositeMapper = { }, securityStyle: { serializedName: "properties.securityStyle", - defaultValue: "unix", + defaultValue: 'unix', type: { name: "String" } @@ -1531,7 +1531,7 @@ export const VolumePatch: msRest.CompositeMapper = { }, serviceLevel: { serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index 1122f17062b4..0a3792675ade 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,7 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", - defaultValue: "2021-02-01", + defaultValue: '2021-02-01', type: { name: "String" } 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: {},