From 4d5d088d1619fc9707833727aa5084bd97113046 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 7 Jun 2021 09:44:52 +0000 Subject: [PATCH] CodeGen from PR 14365 in Azure/azure-rest-api-specs Merge dd5c5b5398348ab340dcda6ffdacf9646712f3f5 into 10c93ad91d3f44f62f2568a5b480c538a7c15daf --- sdk/netapp/arm-netapp/README.md | 96 +- sdk/netapp/arm-netapp/package.json | 7 +- .../src/azureNetAppFilesManagementClient.ts | 15 +- ...azureNetAppFilesManagementClientContext.ts | 29 +- .../arm-netapp/src/models/backupsMappers.ts | 1 + sdk/netapp/arm-netapp/src/models/index.ts | 1259 +++++++++-------- sdk/netapp/arm-netapp/src/models/mappers.ts | 165 ++- .../src/models/netAppResourceMappers.ts | 1 + .../arm-netapp/src/models/parameters.ts | 6 +- .../src/operations/accountBackups.ts | 126 +- .../src/operations/backupPolicies.ts | 208 +-- .../arm-netapp/src/operations/backups.ts | 350 ++--- .../src/operations/netAppResource.ts | 43 +- 13 files changed, 1201 insertions(+), 1105 deletions(-) diff --git a/sdk/netapp/arm-netapp/README.md b/sdk/netapp/arm-netapp/README.md index 8a76692ba1fe..67bb852b5b07 100644 --- a/sdk/netapp/arm-netapp/README.md +++ b/sdk/netapp/arm-netapp/README.md @@ -1,89 +1,97 @@ ## Azure AzureNetAppFilesManagementClient SDK for JavaScript -This package contains an isomorphic SDK for AzureNetAppFilesManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureNetAppFilesManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher +- Node.js version 8.x.x or higher - Browser JavaScript -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-netapp` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-netapp +npm install --save @azure/arm-netapp @azure/identity ``` +> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. +If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. ### How to use -#### nodejs - client creation and list operations as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +In the below samples, we pass the credential and the Azure subscription id to instantiate the client. +Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { AzureNetAppFilesManagementClient } = require("@azure/arm-netapp"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureNetAppFilesManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new AzureNetAppFilesManagementClient(creds, subscriptionId); +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list operations as an example written in JavaScript. +#### browser - Authentication, client creation, and list operations as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-netapp sample - - + diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index a9753343a091..b04e768c48fb 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -4,8 +4,9 @@ "description": "AzureNetAppFilesManagementClient Library with typescript type definitions for node.js and browser.", "version": "14.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/azureNetAppFilesManagementClient.js", "types": "./esm/azureNetAppFilesManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts index 82a2c2d44234..2eac024bfb72 100644 --- a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClient.ts @@ -8,11 +8,13 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; import { AzureNetAppFilesManagementClientContext } from "./azureNetAppFilesManagementClientContext"; + class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientContext { // Operation groups operations: operations.Operations; @@ -29,16 +31,17 @@ class AzureNetAppFilesManagementClient extends AzureNetAppFilesManagementClientC /** * Initializes a new instance of the AzureNetAppFilesManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure * 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 | TokenCredential, 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..8ceb2828c75a 100644 --- a/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts +++ b/sdk/netapp/arm-netapp/src/azureNetAppFilesManagementClientContext.ts @@ -10,32 +10,34 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-netapp"; const packageVersion = "14.0.0"; export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the AzureNetAppFilesManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure * 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 | TokenCredential, 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) { @@ -48,8 +50,8 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe 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"; @@ -59,10 +61,7 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe 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/backupsMappers.ts b/sdk/netapp/arm-netapp/src/models/backupsMappers.ts index 91a943e21f2c..2f48ce40762e 100644 --- a/sdk/netapp/arm-netapp/src/models/backupsMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/backupsMappers.ts @@ -28,6 +28,7 @@ export { NetAppAccount, NetAppAccountPatch, ReplicationObject, + RestoreStatus, Snapshot, SnapshotPolicy, SystemData, diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index 25352a78e6f0..00998d1717d7 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. */ @@ -241,6 +256,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 +494,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 +606,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 +862,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 +1799,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 +1947,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 +1991,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 +2032,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 +2043,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 +2054,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 +2062,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 +2070,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 +2078,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 +2086,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 +2102,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 +2110,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 +2118,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 +2126,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 +2134,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 +2142,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 +2152,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 +2172,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 +2192,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 +2212,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 +2232,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 +2252,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 +2272,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 +2292,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 +2312,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 +2332,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 +2352,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 +2372,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 +2392,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 +2412,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 +2432,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 +2452,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 +2472,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 +2492,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 +2512,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 +2532,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 +2552,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 +2572,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 +2592,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 +2612,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 +2632,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 +2652,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 +2672,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 +2692,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 +2712,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 +2732,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 +2752,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 +2772,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 +2792,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 +2812,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 +2832,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 +2852,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 +2872,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 +2892,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 +2912,36 @@ 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; + }; +}; + +/** + * Contains response data for the getVolumeRestoreStatus operation. + */ +export type BackupsGetVolumeRestoreStatusResponse = 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; + }; }; /** @@ -2827,16 +2952,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 +2972,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 +2992,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 +3012,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 +3032,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 +3052,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 +3072,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 +3092,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 +3112,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 +3132,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 +3152,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 +3172,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 +3192,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 +3212,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 +3232,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..85a874cda590 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: { @@ -348,7 +372,7 @@ export const ActiveDirectory: msRest.CompositeMapper = { }, organizationalUnit: { serializedName: "organizationalUnit", - defaultValue: "CN=Computers", + defaultValue: 'CN=Computers', type: { name: "String" } @@ -370,6 +394,17 @@ export const ActiveDirectory: msRest.CompositeMapper = { } } }, + administrators: { + serializedName: "administrators", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, kdcIP: { serializedName: "kdcIP", constraints: { @@ -728,7 +763,7 @@ export const CapacityPool: msRest.CompositeMapper = { serviceLevel: { required: true, serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } @@ -756,10 +791,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 +864,7 @@ export const CapacityPoolPatch: msRest.CompositeMapper = { }, qosType: { serializedName: "properties.qosType", - defaultValue: "Auto", + defaultValue: 'Auto', type: { name: "String" } @@ -927,6 +969,13 @@ export const ExportPolicyRule: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + chownMode: { + serializedName: "chownMode", + defaultValue: 'Restricted', + type: { + name: "String" + } } } } @@ -1195,7 +1244,7 @@ export const Volume: msRest.CompositeMapper = { }, serviceLevel: { serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } @@ -1322,7 +1371,7 @@ export const Volume: msRest.CompositeMapper = { }, securityStyle: { serializedName: "properties.securityStyle", - defaultValue: "unix", + defaultValue: 'unix', type: { name: "String" } @@ -1364,6 +1413,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 +1609,7 @@ export const VolumePatch: msRest.CompositeMapper = { }, serviceLevel: { serializedName: "properties.serviceLevel", - defaultValue: "Premium", + defaultValue: 'Premium', type: { name: "String" } @@ -2857,6 +2935,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..7a342d68c8c3 100644 --- a/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts +++ b/sdk/netapp/arm-netapp/src/models/netAppResourceMappers.ts @@ -9,6 +9,7 @@ export { CheckAvailabilityResponse, CloudError, + FilePathAvailabilityRequest, QuotaAvailabilityRequest, 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/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..ab8b56d46fbf 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,48 @@ export class Backups { options }, getStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; + } + + /** + * 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 + */ + getVolumeRestoreStatus(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 + */ + getVolumeRestoreStatus(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 + */ + getVolumeRestoreStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVolumeRestoreStatus(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 + }, + getVolumeRestoreStatusOperationSpec, + callback) as Promise; } /** @@ -104,13 +118,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 +126,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 +135,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 +146,7 @@ export class Backups { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -173,14 +160,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 +169,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 +179,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 +191,7 @@ export class Backups { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -250,24 +206,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 +222,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 +238,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 +255,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 +267,7 @@ export class Backups { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -375,14 +281,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 +292,7 @@ export class Backups { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -408,14 +306,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 +317,7 @@ export class Backups { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -435,8 +325,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 +333,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 @@ -457,10 +350,36 @@ const getStatusOperationSpec: msRest.OperationSpec = { serializer }; +const getVolumeRestoreStatusOperationSpec: 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 +}; + 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 +387,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 +406,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 +415,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 +434,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 +443,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 +473,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 +482,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 +511,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 +520,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/netAppResource.ts b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts index 6cff8b5e5750..4153de10130d 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, @@ -229,11 +219,10 @@ const checkFilePathAvailabilityOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: { name: "name", - type: "type", - resourceGroup: "resourceGroup" + subnetId: "subnetId" }, mapper: { - ...Mappers.ResourceNameAvailabilityRequest, + ...Mappers.FilePathAvailabilityRequest, required: true } },