diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index 7924c707fce7..9637ba0677cd 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md @@ -1,11 +1,11 @@ ## Azure RecoveryServicesBackupClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for RecoveryServicesBackupClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for RecoveryServicesBackupClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -14,18 +14,15 @@ 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-recoveryservicesbackup` 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 --save @azure/arm-recoveryservicesbackup @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. +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 @@ -39,8 +36,7 @@ npm install --save @azure/arm-recoveryservicesbackup @azure/identity 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 get backupResourceVaultConfigs as an example written in JavaScript. +#### nodejs - Authentication, client creation, and get protectionIntent as an example written in JavaScript. ##### Sample code @@ -55,24 +51,22 @@ const creds = new DefaultAzureCredential(); const client = new RecoveryServicesBackupClient(creds, subscriptionId); const vaultName = "testvaultName"; const resourceGroupName = "testresourceGroupName"; -client.backupResourceVaultConfigs - .get(vaultName, resourceGroupName) - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); +const fabricName = "testfabricName"; +const intentObjectName = "testintentObjectName"; +client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).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 get backupResourceVaultConfigs as an example written in JavaScript. +#### browser - Authentication, client creation, and get protectionIntent as an example written in JavaScript. 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. + - 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 @@ -90,26 +84,23 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const subscriptionId = ""; // Create credentials using the `@azure/identity` package. // Please note that you can also use credentials from the `@azure/ms-rest-browserauth` package instead. - const credential = new InteractiveBrowserCredential({ + const credential = new InteractiveBrowserCredential( + { clientId: "", tenant: "" }); - const client = new Azure.ArmRecoveryservicesbackup.RecoveryServicesBackupClient( - creds, - subscriptionId - ); + const client = new Azure.ArmRecoveryservicesbackup.RecoveryServicesBackupClient(creds, subscriptionId); const vaultName = "testvaultName"; const resourceGroupName = "testresourceGroupName"; - client.backupResourceVaultConfigs - .get(vaultName, resourceGroupName) - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); + const fabricName = "testfabricName"; + const intentObjectName = "testintentObjectName"; + client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => { + console.log("The result is:"); + console.log(result); + }).catch((err) => { + console.log("An error occurred:"); + console.error(err); + }); diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json index b31758dbafb6..1cb10942f505 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/recoveryservicesbackup/arm-recoveryservicesbackup", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js index ea6687ad2d1a..bb0c6fd4e76b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js @@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps"; */ const config = { input: "./esm/recoveryServicesBackupClient.js", - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-recoveryservicesbackup.js", format: "umd", @@ -25,7 +28,10 @@ const config = { * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, - plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()] + plugins: [ + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() + ] }; export default config; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts index 2a64622f2f0e..8dcca4c6198d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts index 841f64f3c0bd..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts @@ -6,4 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { discriminators, CloudError } from "../models/mappers"; +export { + discriminators, + CloudError +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts index 2a64622f2f0e..8dcca4c6198d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index a7719f9e3a6a..3806152dfa7e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts index 3b9a9f884247..5d2e7379fea6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts @@ -25,6 +25,7 @@ export { ErrorAdditionalInfo, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, NewErrorResponse, NewErrorResponseError, RecoveryPointRehydrationInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index 4d1ebf9b4cf2..c2a81ad6a450 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts @@ -30,7 +30,7 @@ export interface BackupResourceEncryptionConfig { subscriptionId?: string; /** * Possible values include: 'Invalid', 'NotEnabled', 'PartiallySucceeded', 'PartiallyFailed', - * 'Failed', 'Succeeded' + * 'Failed', 'Succeeded', 'Initialized', 'FirstInitialization' */ lastUpdateStatus?: LastUpdateStatus; /** @@ -39,6 +39,20 @@ export interface BackupResourceEncryptionConfig { infrastructureEncryptionState?: InfrastructureEncryptionState; } +/** + * An interface representing BackupResourceEncryptionConfigExtended. + */ +export interface BackupResourceEncryptionConfigExtended extends BackupResourceEncryptionConfig { + /** + * User Assigned Identity Id + */ + userAssignedIdentity?: string; + /** + * bool to indicate whether to use system Assigned Identity or not + */ + useSystemAssignedIdentity?: boolean; +} + /** * ARM Resource. */ @@ -72,6 +86,16 @@ export interface Resource extends BaseResource { eTag?: string; } +/** + * An interface representing BackupResourceEncryptionConfigExtendedResource. + */ +export interface BackupResourceEncryptionConfigExtendedResource extends Resource { + /** + * BackupResourceEncryptionConfigExtendedResource properties + */ + properties?: BackupResourceEncryptionConfigExtended; +} + /** * An interface representing BackupResourceEncryptionConfigResource. */ @@ -270,15 +294,7 @@ export interface AzureFileshareProtectedItemExtendedInfo { /** * Contains the possible cases for ProtectedItem. */ -export type ProtectedItemUnion = - | ProtectedItem - | AzureFileshareProtectedItem - | AzureIaaSVMProtectedItemUnion - | AzureSqlProtectedItem - | AzureVmWorkloadProtectedItemUnion - | DPMProtectedItem - | GenericProtectedItem - | MabFileFolderProtectedItem; +export type ProtectedItemUnion = ProtectedItem | AzureFileshareProtectedItem | AzureIaaSVMProtectedItemUnion | AzureSqlProtectedItem | AzureVmWorkloadProtectedItemUnion | DPMProtectedItem | GenericProtectedItem | MabFileFolderProtectedItem; /** * Base class for backup items. @@ -451,12 +467,7 @@ export interface AzureFileshareProtectedItem { /** * Contains the possible cases for RecoveryPoint. */ -export type RecoveryPointUnion = - | RecoveryPoint - | AzureFileShareRecoveryPoint - | AzureWorkloadRecoveryPointUnion - | GenericRecoveryPoint - | IaasVMRecoveryPoint; +export type RecoveryPointUnion = RecoveryPoint | AzureFileShareRecoveryPoint | AzureWorkloadRecoveryPointUnion | GenericRecoveryPoint | IaasVMRecoveryPoint; /** * Base class for backup copies. Workload-specific backup copies are derived from this class. @@ -533,11 +544,7 @@ export interface TargetAFSRestoreInfo { /** * Contains the possible cases for RestoreRequest. */ -export type RestoreRequestUnion = - | RestoreRequest - | AzureFileShareRestoreRequest - | AzureWorkloadRestoreRequestUnion - | IaasVMRestoreRequestUnion; +export type RestoreRequestUnion = RestoreRequest | AzureFileShareRestoreRequest | AzureWorkloadRestoreRequestUnion | IaasVMRestoreRequestUnion; /** * Base class for restore request. Workload-specific restore requests are derived from this class. @@ -608,11 +615,7 @@ export interface Settings { /** * Contains the possible cases for SchedulePolicy. */ -export type SchedulePolicyUnion = - | SchedulePolicy - | LogSchedulePolicy - | LongTermSchedulePolicy - | SimpleSchedulePolicy; +export type SchedulePolicyUnion = SchedulePolicy | LogSchedulePolicy | LongTermSchedulePolicy | SimpleSchedulePolicy; /** * Base class for backup schedule. @@ -627,10 +630,7 @@ export interface SchedulePolicy { /** * Contains the possible cases for RetentionPolicy. */ -export type RetentionPolicyUnion = - | RetentionPolicy - | LongTermRetentionPolicy - | SimpleRetentionPolicy; +export type RetentionPolicyUnion = RetentionPolicy | LongTermRetentionPolicy | SimpleRetentionPolicy; /** * Base class for retention policy. @@ -664,14 +664,7 @@ export interface SubProtectionPolicy { /** * Contains the possible cases for ProtectionPolicy. */ -export type ProtectionPolicyUnion = - | ProtectionPolicy - | AzureVmWorkloadProtectionPolicy - | AzureFileShareProtectionPolicy - | AzureIaaSVMProtectionPolicy - | AzureSqlProtectionPolicy - | GenericProtectionPolicy - | MabProtectionPolicy; +export type ProtectionPolicyUnion = ProtectionPolicy | AzureVmWorkloadProtectionPolicy | AzureFileShareProtectionPolicy | AzureIaaSVMProtectionPolicy | AzureSqlProtectionPolicy | GenericProtectionPolicy | MabProtectionPolicy; /** * Base class for backup policy. Workload-specific backup policies are derived from this class. @@ -756,10 +749,7 @@ export interface AzureFileShareProtectionPolicy { /** * Contains the possible cases for AzureIaaSVMProtectedItem. */ -export type AzureIaaSVMProtectedItemUnion = - | AzureIaaSVMProtectedItem - | AzureIaaSClassicComputeVMProtectedItem - | AzureIaaSComputeVMProtectedItem; +export type AzureIaaSVMProtectedItemUnion = AzureIaaSVMProtectedItem | AzureIaaSClassicComputeVMProtectedItem | AzureIaaSComputeVMProtectedItem; /** * IaaS VM workload-specific backup item. @@ -1132,7 +1122,8 @@ export interface AzureIaaSVMErrorInfo { /** * Azure IaaS VM workload-specific Health Details. */ -export interface AzureIaaSVMHealthDetails extends ResourceHealthDetails {} +export interface AzureIaaSVMHealthDetails extends ResourceHealthDetails { +} /** * Azure IaaS VM workload-specific job task details. @@ -1206,14 +1197,7 @@ export interface AzureIaaSVMJobExtendedInfo { /** * Contains the possible cases for Job. */ -export type JobUnion = - | Job - | AzureIaaSVMJob - | AzureStorageJob - | AzureWorkloadJob - | DpmJob - | MabJob - | VaultJob; +export type JobUnion = Job | AzureIaaSVMJob | AzureStorageJob | AzureWorkloadJob | DpmJob | MabJob | VaultJob; /** * Defines workload agnostic properties for a job. @@ -1669,11 +1653,7 @@ export interface AzureVmWorkloadProtectedItemExtendedInfo { /** * Contains the possible cases for AzureVmWorkloadProtectedItem. */ -export type AzureVmWorkloadProtectedItemUnion = - | AzureVmWorkloadProtectedItem - | AzureVmWorkloadSAPAseDatabaseProtectedItem - | AzureVmWorkloadSAPHanaDatabaseProtectedItem - | AzureVmWorkloadSQLDatabaseProtectedItem; +export type AzureVmWorkloadProtectedItemUnion = AzureVmWorkloadProtectedItem | AzureVmWorkloadSAPAseDatabaseProtectedItem | AzureVmWorkloadSAPHanaDatabaseProtectedItem | AzureVmWorkloadSQLDatabaseProtectedItem; /** * Azure VM workload-specific protected item. @@ -2298,11 +2278,7 @@ export interface PointInTimeRange { /** * Contains the possible cases for AzureWorkloadRecoveryPoint. */ -export type AzureWorkloadRecoveryPointUnion = - | AzureWorkloadRecoveryPoint - | AzureWorkloadPointInTimeRecoveryPointUnion - | AzureWorkloadSAPHanaRecoveryPoint - | AzureWorkloadSQLRecoveryPointUnion; +export type AzureWorkloadRecoveryPointUnion = AzureWorkloadRecoveryPoint | AzureWorkloadPointInTimeRecoveryPointUnion | AzureWorkloadSAPHanaRecoveryPoint | AzureWorkloadSQLRecoveryPointUnion; /** * Workload specific recovery point, specifically encapsulates full/diff recovery point @@ -2336,9 +2312,7 @@ export interface AzureWorkloadRecoveryPoint { /** * Contains the possible cases for AzureWorkloadPointInTimeRecoveryPoint. */ -export type AzureWorkloadPointInTimeRecoveryPointUnion = - | AzureWorkloadPointInTimeRecoveryPoint - | AzureWorkloadSAPHanaPointInTimeRecoveryPoint; +export type AzureWorkloadPointInTimeRecoveryPointUnion = AzureWorkloadPointInTimeRecoveryPoint | AzureWorkloadSAPHanaPointInTimeRecoveryPoint; /** * Recovery point specific to PointInTime @@ -2376,11 +2350,7 @@ export interface AzureWorkloadPointInTimeRecoveryPoint { /** * Contains the possible cases for AzureWorkloadRestoreRequest. */ -export type AzureWorkloadRestoreRequestUnion = - | AzureWorkloadRestoreRequest - | AzureWorkloadPointInTimeRestoreRequest - | AzureWorkloadSAPHanaRestoreRequestUnion - | AzureWorkloadSQLRestoreRequestUnion; +export type AzureWorkloadRestoreRequestUnion = AzureWorkloadRestoreRequest | AzureWorkloadPointInTimeRestoreRequest | AzureWorkloadSAPHanaRestoreRequestUnion | AzureWorkloadSQLRestoreRequestUnion; /** * AzureWorkload-specific restore. @@ -2549,10 +2519,7 @@ export interface AzureWorkloadSAPHanaPointInTimeRecoveryPoint { /** * Contains the possible cases for AzureWorkloadSAPHanaRestoreRequest. */ -export type AzureWorkloadSAPHanaRestoreRequestUnion = - | AzureWorkloadSAPHanaRestoreRequest - | AzureWorkloadSAPHanaPointInTimeRestoreRequestUnion - | AzureWorkloadSAPHanaRestoreWithRehydrateRequest; +export type AzureWorkloadSAPHanaRestoreRequestUnion = AzureWorkloadSAPHanaRestoreRequest | AzureWorkloadSAPHanaPointInTimeRestoreRequestUnion | AzureWorkloadSAPHanaRestoreWithRehydrateRequest; /** * AzureWorkload SAP Hana-specific restore. @@ -2595,9 +2562,7 @@ export interface AzureWorkloadSAPHanaRestoreRequest { /** * Contains the possible cases for AzureWorkloadSAPHanaPointInTimeRestoreRequest. */ -export type AzureWorkloadSAPHanaPointInTimeRestoreRequestUnion = - | AzureWorkloadSAPHanaPointInTimeRestoreRequest - | AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest; +export type AzureWorkloadSAPHanaPointInTimeRestoreRequestUnion = AzureWorkloadSAPHanaPointInTimeRestoreRequest | AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest; /** * AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore @@ -2673,9 +2638,7 @@ export interface AzureWorkloadSAPHanaRecoveryPoint { /** * Contains the possible cases for AzureWorkloadSQLRecoveryPoint. */ -export type AzureWorkloadSQLRecoveryPointUnion = - | AzureWorkloadSQLRecoveryPoint - | AzureWorkloadSQLPointInTimeRecoveryPoint; +export type AzureWorkloadSQLRecoveryPointUnion = AzureWorkloadSQLRecoveryPoint | AzureWorkloadSQLPointInTimeRecoveryPoint; /** * SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint along with @@ -2755,10 +2718,7 @@ export interface AzureWorkloadSQLPointInTimeRecoveryPoint { /** * Contains the possible cases for AzureWorkloadSQLRestoreRequest. */ -export type AzureWorkloadSQLRestoreRequestUnion = - | AzureWorkloadSQLRestoreRequest - | AzureWorkloadSQLPointInTimeRestoreRequestUnion - | AzureWorkloadSQLRestoreWithRehydrateRequest; +export type AzureWorkloadSQLRestoreRequestUnion = AzureWorkloadSQLRestoreRequest | AzureWorkloadSQLPointInTimeRestoreRequestUnion | AzureWorkloadSQLRestoreWithRehydrateRequest; /** * AzureWorkload SQL -specific restore. Specifically for full/diff restore @@ -2813,9 +2773,7 @@ export interface AzureWorkloadSQLRestoreRequest { /** * Contains the possible cases for AzureWorkloadSQLPointInTimeRestoreRequest. */ -export type AzureWorkloadSQLPointInTimeRestoreRequestUnion = - | AzureWorkloadSQLPointInTimeRestoreRequest - | AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest; +export type AzureWorkloadSQLPointInTimeRestoreRequestUnion = AzureWorkloadSQLPointInTimeRestoreRequest | AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest; /** * AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore @@ -2972,6 +2930,89 @@ export interface BMSRPQueryObject { moveReadyRPOnly?: boolean; } +/** + * Localized display information of an operation. + */ +export interface ClientDiscoveryDisplay { + /** + * Name of the provider for display purposes + */ + provider?: string; + /** + * ResourceType for which this Operation can be performed. + */ + resource?: string; + /** + * Operations Name itself. + */ + operation?: string; + /** + * Description of the operation having details of what operation is about. + */ + description?: string; +} + +/** + * Class to represent shoebox log specification in json client discovery. + */ +export interface ClientDiscoveryForLogSpecification { + /** + * Name for shoebox log specification. + */ + name?: string; + /** + * Localized display name + */ + displayName?: string; + /** + * blob duration of shoebox log specification + */ + blobDuration?: string; +} + +/** + * Class to represent shoebox service specification in json client discovery. + */ +export interface ClientDiscoveryForServiceSpecification { + /** + * List of log specifications of this operation. + */ + logSpecifications?: ClientDiscoveryForLogSpecification[]; +} + +/** + * Class to represent shoebox properties in json client discovery. + */ +export interface ClientDiscoveryForProperties { + /** + * Operation properties. + */ + serviceSpecification?: ClientDiscoveryForServiceSpecification; +} + +/** + * Available operation details. + */ +export interface ClientDiscoveryValueForSingleApi { + /** + * Name of the Operation. + */ + name?: string; + /** + * Contains the localized display information for this particular operation + */ + display?: ClientDiscoveryDisplay; + /** + * The intended executor of the operation;governs the display of the operation in the RBAC UX and + * the audit logs UX + */ + origin?: string; + /** + * ShoeBox properties for the given operation. + */ + properties?: ClientDiscoveryForProperties; +} + /** * Disk information */ @@ -3340,10 +3381,7 @@ export interface EncryptionDetails { /** * Contains the possible cases for OperationResultInfoBase. */ -export type OperationResultInfoBaseUnion = - | OperationResultInfoBase - | ExportJobsOperationResultInfo - | OperationResultInfo; +export type OperationResultInfoBaseUnion = OperationResultInfoBase | ExportJobsOperationResultInfo | OperationResultInfo; /** * Base class for operation result info. @@ -3407,6 +3445,21 @@ export interface GenericProtectionPolicy { fabricName?: string; } +/** + * Encapsulates Managed Identity related information + */ +export interface IdentityInfo { + /** + * To differentiate if the managed identity is system assigned or user assigned + */ + isSystemAssignedIdentity?: boolean; + /** + * Managed Identity Resource Id + * Optional: Might not be required in the case of system assigned managed identity + */ + managedIdentityResourceId?: string; +} + /** * Base class for backup items. */ @@ -3775,6 +3828,10 @@ export interface IaasVMRestoreRequest { * Target zone where the VM and its disks should be restored. */ zones?: string[]; + /** + * Managed Identity information required to access customer storage account. + */ + identityInfo?: IdentityInfo; } /** @@ -4274,9 +4331,7 @@ export interface PrepareDataMoveRequest { /** * Contains the possible cases for VaultStorageConfigOperationResultResponse. */ -export type VaultStorageConfigOperationResultResponseUnion = - | VaultStorageConfigOperationResultResponse - | PrepareDataMoveResponse; +export type VaultStorageConfigOperationResultResponseUnion = VaultStorageConfigOperationResultResponse | PrepareDataMoveResponse; /** * Operation result response for Vault Storage Config @@ -4533,9 +4588,7 @@ export interface SimpleSchedulePolicy { /** * Contains the possible cases for ValidateOperationRequest. */ -export type ValidateOperationRequestUnion = - | ValidateOperationRequest - | ValidateRestoreOperationRequestUnion; +export type ValidateOperationRequestUnion = ValidateOperationRequest | ValidateRestoreOperationRequestUnion; /** * Base class for validate operation request. @@ -4550,9 +4603,7 @@ export interface ValidateOperationRequest { /** * Contains the possible cases for ValidateRestoreOperationRequest. */ -export type ValidateRestoreOperationRequestUnion = - | ValidateRestoreOperationRequest - | ValidateIaasVMRestoreOperationRequest; +export type ValidateRestoreOperationRequestUnion = ValidateRestoreOperationRequest | ValidateIaasVMRestoreOperationRequest; /** * AzureRestoreValidation request. @@ -4725,15 +4776,7 @@ export interface VaultJob { /** * Contains the possible cases for ProtectionContainer. */ -export type ProtectionContainerUnion = - | ProtectionContainer - | AzureSqlContainer - | AzureStorageContainer - | AzureWorkloadContainerUnion - | DpmContainerUnion - | GenericContainer - | IaaSVMContainerUnion - | MabContainer; +export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; /** * Base class for container with backup items. Containers with specific workloads are derived from @@ -5017,11 +5060,7 @@ export interface AzureBackupServerEngine { /** * Contains the possible cases for BackupRequest. */ -export type BackupRequestUnion = - | BackupRequest - | AzureFileShareBackupRequest - | AzureWorkloadBackupRequest - | IaasVMBackupRequest; +export type BackupRequestUnion = BackupRequest | AzureFileShareBackupRequest | AzureWorkloadBackupRequest | IaasVMBackupRequest; /** * Base class for backup request. Workload-specific backup requests are derived from this class. @@ -5050,11 +5089,7 @@ export interface AzureFileShareBackupRequest { /** * Contains the possible cases for WorkloadProtectableItem. */ -export type WorkloadProtectableItemUnion = - | WorkloadProtectableItem - | AzureFileShareProtectableItem - | AzureVmWorkloadProtectableItemUnion - | IaaSVMProtectableItemUnion; +export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; /** * Base class for backup item. Workload-specific backup items are derived from this class. @@ -5125,10 +5160,7 @@ export interface AzureFileShareProtectableItem { /** * Contains the possible cases for ILRRequest. */ -export type ILRRequestUnion = - | ILRRequest - | AzureFileShareProvisionILRRequest - | IaasVMILRRegistrationRequest; +export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; /** * Parameters to Provision ILR API. @@ -5161,10 +5193,7 @@ export interface AzureFileShareProvisionILRRequest { /** * Contains the possible cases for IaaSVMContainer. */ -export type IaaSVMContainerUnion = - | IaaSVMContainer - | AzureIaaSClassicComputeVMContainer - | AzureIaaSComputeVMContainer; +export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; /** * IaaS VM workload-specific container. @@ -5249,10 +5278,7 @@ export interface AzureIaaSClassicComputeVMContainer { /** * Contains the possible cases for IaaSVMProtectableItem. */ -export type IaaSVMProtectableItemUnion = - | IaaSVMProtectableItem - | AzureIaaSClassicComputeVMProtectableItem - | AzureIaaSComputeVMProtectableItem; +export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; /** * IaaS VM workload-specific backup item. @@ -5390,10 +5416,7 @@ export interface AzureIaaSComputeVMProtectableItem { /** * Contains the possible cases for AzureWorkloadContainer. */ -export type AzureWorkloadContainerUnion = - | AzureWorkloadContainer - | AzureSQLAGWorkloadContainerProtectionContainer - | AzureVMAppContainerProtectionContainer; +export type AzureWorkloadContainerUnion = AzureWorkloadContainer | AzureSQLAGWorkloadContainerProtectionContainer | AzureVMAppContainerProtectionContainer; /** * Container for the workloads running inside Azure Compute or Classic Compute. @@ -5572,10 +5595,7 @@ export interface AzureStorageContainer { /** * Contains the possible cases for ProtectableContainer. */ -export type ProtectableContainerUnion = - | ProtectableContainer - | AzureStorageProtectableContainer - | AzureVMAppContainerProtectableContainer; +export type ProtectableContainerUnion = ProtectableContainer | AzureStorageProtectableContainer | AzureVMAppContainerProtectableContainer; /** * Protectable Container Class. @@ -5747,14 +5767,7 @@ export interface WorkloadItem { /** * Contains the possible cases for AzureVmWorkloadItem. */ -export type AzureVmWorkloadItemUnion = - | AzureVmWorkloadItem - | AzureVmWorkloadSAPAseDatabaseWorkloadItem - | AzureVmWorkloadSAPAseSystemWorkloadItem - | AzureVmWorkloadSAPHanaDatabaseWorkloadItem - | AzureVmWorkloadSAPHanaSystemWorkloadItem - | AzureVmWorkloadSQLDatabaseWorkloadItem - | AzureVmWorkloadSQLInstanceWorkloadItem; +export type AzureVmWorkloadItemUnion = AzureVmWorkloadItem | AzureVmWorkloadSAPAseDatabaseWorkloadItem | AzureVmWorkloadSAPAseSystemWorkloadItem | AzureVmWorkloadSAPHanaDatabaseWorkloadItem | AzureVmWorkloadSAPHanaSystemWorkloadItem | AzureVmWorkloadSQLDatabaseWorkloadItem | AzureVmWorkloadSQLInstanceWorkloadItem; /** * Azure VM workload-specific workload item. @@ -5825,14 +5838,7 @@ export interface PreBackupValidation { /** * Contains the possible cases for AzureVmWorkloadProtectableItem. */ -export type AzureVmWorkloadProtectableItemUnion = - | AzureVmWorkloadProtectableItem - | AzureVmWorkloadSAPAseSystemProtectableItem - | AzureVmWorkloadSAPHanaDatabaseProtectableItem - | AzureVmWorkloadSAPHanaSystemProtectableItem - | AzureVmWorkloadSQLAvailabilityGroupProtectableItem - | AzureVmWorkloadSQLDatabaseProtectableItem - | AzureVmWorkloadSQLInstanceProtectableItem; +export type AzureVmWorkloadProtectableItemUnion = AzureVmWorkloadProtectableItem | AzureVmWorkloadSAPAseSystemProtectableItem | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; /** * Azure VM workload-specific protectable item. @@ -6564,1497 +6570,1729 @@ export interface AzureWorkloadBackupRequest { } /** - * Validation for inquired protectable items under a given container. + * Contains the possible cases for FeatureSupportRequest. */ -export interface InquiryValidation { - /** - * Status for the Inquiry Validation. - */ - status?: string; +export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; + +/** + * Base class for feature request + */ +export interface FeatureSupportRequest { /** - * Error Detail in case the status is non-success. + * Polymorphic Discriminator */ - errorDetail?: ErrorDetail; + featureType: "FeatureSupportRequest"; +} + +/** + * Azure backup goal feature specific request. + */ +export interface AzureBackupGoalFeatureSupportRequest { /** - * Error Additional Detail in case the status is non-success. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly additionalDetail?: string; + featureType: "AzureBackupGoals"; } /** - * Details of an inquired protectable item. + * Contains the possible cases for ProtectionIntent. */ -export interface WorkloadInquiryDetails { +export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; + +/** + * Base class for backup ProtectionIntent. + */ +export interface ProtectionIntent { /** - * Type of the Workload such as SQL, Oracle etc. + * Polymorphic Discriminator */ - type?: string; + protectionIntentItemType: "ProtectionIntent"; /** - * Contains the protectable item Count inside this Container. + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - itemCount?: number; + backupManagementType?: BackupManagementType; /** - * Inquiry validation such as permissions and other backup validations. + * ARM ID of the resource to be backed up. */ - inquiryValidation?: InquiryValidation; -} - -/** - * Details about inquired protectable items under a given container. - */ -export interface InquiryInfo { + sourceResourceId?: string; /** - * Inquiry Status for this container such as - * InProgress | Failed | Succeeded + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - status?: string; + itemId?: string; /** - * Error Details if the Status is non-success. + * ID of the backup policy with which this item is backed up. */ - errorDetail?: ErrorDetail; + policyId?: string; /** - * Inquiry Details which will have workload specific details. - * For e.g. - For SQL and oracle this will contain different details. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - inquiryDetails?: WorkloadInquiryDetails[]; + protectionState?: ProtectionStatus; } /** - * This is used to represent the various nodes of the distributed container. + * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. */ -export interface DistributedNodesInfo { +export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; + +/** + * Azure Recovery Services Vault specific protection intent item. + */ +export interface AzureRecoveryServiceVaultProtectionIntent { /** - * Name of the node under a distributed container. + * Polymorphic Discriminator */ - nodeName?: string; + protectionIntentItemType: "RecoveryServiceVaultItem"; /** - * Status of this Node. - * Failed | Succeeded + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - status?: string; + backupManagementType?: BackupManagementType; /** - * Error Details if the Status is non-success. + * ARM ID of the resource to be backed up. */ - errorDetail?: ErrorDetail; -} - -/** - * Extended information of the container. - */ -export interface AzureWorkloadContainerExtendedInfo { + sourceResourceId?: string; /** - * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - hostServerName?: string; + itemId?: string; /** - * Inquiry Status for the container. + * ID of the backup policy with which this item is backed up. */ - inquiryInfo?: InquiryInfo; + policyId?: string; /** - * List of the nodes in case of distributed container. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - nodesList?: DistributedNodesInfo[]; + protectionState?: ProtectionStatus; } /** - * Additional information on backup engine. + * IaaS VM specific backup protection intent item. */ -export interface BackupEngineExtendedInfo { +export interface AzureResourceProtectionIntent { /** - * Database name of backup engine. + * Polymorphic Discriminator */ - databaseName?: string; + protectionIntentItemType: "AzureResourceItem"; /** - * Number of protected items in the backup engine. + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - protectedItemsCount?: number; + backupManagementType?: BackupManagementType; /** - * Number of protected servers in the backup engine. + * ARM ID of the resource to be backed up. */ - protectedServersCount?: number; + sourceResourceId?: string; /** - * Number of disks in the backup engine. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - diskCount?: number; + itemId?: string; /** - * Disk space used in the backup engine. + * ID of the backup policy with which this item is backed up. */ - usedDiskSpace?: number; + policyId?: string; /** - * Disk space currently available in the backup engine. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - availableDiskSpace?: number; + protectionState?: ProtectionStatus; /** - * Last refresh time in the backup engine. + * Friendly name of the VM represented by this backup item. */ - refreshedAt?: Date; - /** - * Protected instances in the backup engine. - */ - azureProtectedInstances?: number; + friendlyName?: string; } /** - * The base backup engine class. All workload specific backup engines derive from this class. + * AzureResource(IaaS VM) Specific feature support request */ -export interface BackupEngineBaseResource extends Resource { +export interface AzureVMResourceFeatureSupportRequest { /** - * BackupEngineBaseResource properties + * Polymorphic Discriminator */ - properties?: BackupEngineBaseUnion; + featureType: "AzureVMResourceBackup"; + /** + * Size of the resource: VM size(A/D series etc) in case of IaasVM + */ + vmSize?: string; + /** + * SKUs (Premium/Managed etc) in case of IaasVM + */ + vmSku?: string; } /** - * Base class for backup request. Workload-specific backup requests are derived from this class. + * Response for feature support requests for Azure IaasVm */ -export interface BackupRequestResource extends Resource { +export interface AzureVMResourceFeatureSupportResponse { /** - * BackupRequestResource properties + * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', + * 'DefaultON', 'NotSupported' */ - properties?: BackupRequestUnion; + supportStatus?: SupportStatus; } /** - * Query parameters to fetch list of backup engines. + * Contains the possible cases for AzureWorkloadAutoProtectionIntent. */ -export interface BMSBackupEngineQueryObject { - /** - * attribute to add extended info - */ - expand?: string; -} +export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; /** - * Query parameters to fetch list of backup engines. + * Azure Recovery Services Vault specific protection intent item. */ -export interface BMSBackupEnginesQueryObject { +export interface AzureWorkloadAutoProtectionIntent { /** - * Backup management type for the backup engine. Possible values include: 'Invalid', + * Polymorphic Discriminator + */ + protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; + /** + * Type of backup management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Friendly name of the backup engine. + * ARM ID of the resource to be backed up. */ - friendlyName?: string; + sourceResourceId?: string; /** - * Attribute to add extended info. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - expand?: string; + itemId?: string; + /** + * ID of the backup policy with which this item is backed up. + */ + policyId?: string; + /** + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; } /** - * The query filters that can be used with the list containers API. + * Azure Workload SQL Auto Protection intent item. */ -export interface BMSContainerQueryObject { +export interface AzureWorkloadSQLAutoProtectionIntent { /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * Polymorphic Discriminator + */ + protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; + /** + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ - backupManagementType: BackupManagementType; + backupManagementType?: BackupManagementType; /** - * Type of container for filter. Possible values include: 'Invalid', 'Unknown', - * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', - * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' + * ARM ID of the resource to be backed up. */ - containerType?: ContainerType; + sourceResourceId?: string; /** - * Backup engine name + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - backupEngineName?: string; + itemId?: string; /** - * Fabric name for filter + * ID of the backup policy with which this item is backed up. */ - fabricName?: string; + policyId?: string; /** - * Status of registration of this container with the Recovery Services Vault. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - status?: string; + protectionState?: ProtectionStatus; /** - * Friendly name of this container. + * Workload item type of the item for which intent is to be set. Possible values include: + * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', + * 'SAPAseDatabase' */ - friendlyName?: string; + workloadItemType?: WorkloadItemType; } /** - * The query filters that can be used with the inquire container API. + * The name of usage. */ -export interface BMSContainersInquiryQueryObject { +export interface NameInfo { /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Value of usage. */ - backupManagementType?: BackupManagementType; + value?: string; /** - * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', - * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Localized value of usage. */ - workloadType?: WorkloadType; + localizedValue?: string; } /** - * Filters to list items that can be backed up. + * Backup management usages of a vault. */ -export interface BMSPOQueryObject { +export interface BackupManagementUsage { /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond' */ - backupManagementType?: BackupManagementType; + unit?: UsagesUnit; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Quota period of usage. */ - workloadType?: WorkloadType; + quotaPeriod?: string; /** - * Full name of the container whose Protectable Objects should be returned. + * Next reset time of usage. */ - containerName?: string; + nextResetTime?: Date; /** - * Backup status query parameter. + * Current value of usage. */ - status?: string; + currentValue?: number; /** - * Friendly name. + * Limit of usage. */ - friendlyName?: string; -} - -/** - * The query filters that can be used with the refresh container API. - */ -export interface BMSRefreshContainersQueryObject { + limit?: number; /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Name of usage. */ - backupManagementType?: BackupManagementType; + name?: NameInfo; } /** - * Filters to list items that can be backed up. + * BackupStatus request. */ -export interface BMSWorkloadItemQueryObject { - /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; +export interface BackupStatusRequest { /** - * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', - * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' + * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - workloadItemType?: WorkloadItemType; + resourceType?: DataSourceType; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Entire ARM resource id of the resource */ - workloadType?: WorkloadType; + resourceId?: string; /** - * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Protectable Item Logical Name */ - protectionStatus?: ProtectionStatus; + poLogicalName?: string; } /** - * Client script details for file / folder restore. + * BackupStatus response. */ -export interface ClientScriptForConnect { +export interface BackupStatusResponse { /** - * File content of the client script for file / folder restore. + * Specifies whether the container is registered or not. Possible values include: 'Invalid', + * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' */ - scriptContent?: string; + protectionStatus?: ProtectionStatus; /** - * File extension of the client script for file / folder restore - .ps1 , .sh , etc. + * Specifies the arm resource id of the vault */ - scriptExtension?: string; + vaultId?: string; /** - * OS type - Windows, Linux etc. for which this file / folder restore client script works. + * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' */ - osType?: string; + fabricName?: FabricName; /** - * URL of Executable from where to source the content. If this is not null then ScriptContent - * should not be used + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;csname;vmname. */ - url?: string; + containerName?: string; /** - * Mandatory suffix that should be added to the name of script that is given for download to - * user. - * If its null or empty then , ignore it. + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. */ - scriptNameSuffix?: string; -} - -/** - * Container identity information - */ -export interface ContainerIdentityInfo { + protectedItemName?: string; /** - * Unique name of the container + * ErrorCode in case of intent failed */ - uniqueName?: string; + errorCode?: string; /** - * Protection container identity - AAD Tenant + * ErrorMessage in case of intent failed. */ - aadTenantId?: string; + errorMessage?: string; /** - * Protection container identity - AAD Service Principal + * Specifies the policy name which is used for protection */ - servicePrincipalClientId?: string; + policyName?: string; /** - * Protection container identity - Audience + * Container registration status */ - audience?: string; + registrationStatus?: string; } /** - * Data Protection Manager (DPM) specific backup engine. + * Query parameters to fetch backup summaries. */ -export interface DpmBackupEngine { - /** - * Polymorphic Discriminator - */ - backupEngineType: "DpmBackupEngine"; - /** - * Friendly name of the backup engine. - */ - friendlyName?: string; +export interface BMSBackupSummariesQueryObject { /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Backup management type for this container. Possible values include: 'Invalid', + * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' */ - backupManagementType?: BackupManagementType; + type?: Type; +} + +/** + * Contract to validate if backup can be enabled on the given resource in a given vault and given + * configuration. + * It will validate followings + * 1. Vault capacity + * 2. VM is already protected + * 3. Any VM related configuration passed in properties. + */ +export interface PreValidateEnableBackupRequest { /** - * Registration status of the backup engine with the Recovery Services Vault. + * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', + * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', + * 'SAPHanaDatabase', 'SAPAseDatabase' */ - registrationStatus?: string; + resourceType?: DataSourceType; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + * ARM Virtual Machine Id */ - backupEngineState?: string; + resourceId?: string; /** - * Backup status of the backup engine. + * ARM id of the Recovery Services Vault */ - healthStatus?: string; + vaultId?: string; /** - * Flag indicating if the backup engine be registered, once already registered. + * Configuration of VM if any needs to be validated like OS type etc */ - canReRegister?: boolean; + properties?: string; +} + +/** + * Response contract for enable backup validation request + */ +export interface PreValidateEnableBackupResponse { /** - * ID of the backup engine. + * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' */ - backupEngineId?: string; + status?: ValidationStatus; /** - * Backup engine version + * Response error code */ - dpmVersion?: string; + errorCode?: string; /** - * Backup agent version + * Response error message */ - azureBackupAgentVersion?: string; + errorMessage?: string; /** - * To check if backup agent upgrade available + * Recommended action for user */ - isAzureBackupAgentUpgradeAvailable?: boolean; + recommendation?: string; /** - * To check if backup engine upgrade available + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required + * for portal */ - isDpmUpgradeAvailable?: boolean; + containerName?: string; /** - * Extended info of the backupengine + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is + * required for portal */ - extendedInfo?: BackupEngineExtendedInfo; + protectedItemName?: string; } /** - * Additional information of the DPMContainer. + * Filters to list protection intent. */ -export interface DPMContainerExtendedInfo { +export interface ProtectionIntentQueryObject { /** - * Last refresh time of the DPMContainer. + * Backup management type for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - lastRefreshedAt?: Date; -} - -/** - * Container extended information - */ -export interface GenericContainerExtendedInfo { + backupManagementType?: BackupManagementType; /** - * Public key of container cert + * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', + * 'SQLAvailabilityGroupContainer' */ - rawCertData?: string; + itemType?: IntentItemType; /** - * Container identity information + * Parent name of the intent */ - containerIdentityInfo?: ContainerIdentityInfo; + parentName?: string; /** - * Azure Backup Service Endpoints for the container + * Item name of the intent */ - serviceEndpoints?: { [propertyName: string]: string }; + itemName?: string; } /** - * Base class for generic container of backup items + * Base class for backup ProtectionIntent. */ -export interface GenericContainer { +export interface ProtectionIntentResource extends Resource { /** - * Polymorphic Discriminator + * ProtectionIntentResource properties */ - containerType: "GenericContainer"; + properties?: ProtectionIntentUnion; +} + +/** + * Validation for inquired protectable items under a given container. + */ +export interface InquiryValidation { /** - * Friendly name of the container. + * Status for the Inquiry Validation. */ - friendlyName?: string; + status?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Error Detail in case the status is non-success. */ - backupManagementType?: BackupManagementType; + errorDetail?: ErrorDetail; /** - * Status of registration of the container with the Recovery Services Vault. + * Error Additional Detail in case the status is non-success. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - registrationStatus?: string; + readonly additionalDetail?: string; +} + +/** + * Details of an inquired protectable item. + */ +export interface WorkloadInquiryDetails { /** - * Status of health of the container. + * Type of the Workload such as SQL, Oracle etc. */ - healthStatus?: string; + type?: string; /** - * Name of the container's fabric + * Contains the protectable item Count inside this Container. */ - fabricName?: string; + itemCount?: number; /** - * Extended information (not returned in List container API calls) + * Inquiry validation such as permissions and other backup validations. */ - extendedInformation?: GenericContainerExtendedInfo; + inquiryValidation?: InquiryValidation; } /** - * IaaS VM workload-specific backup request. + * Details about inquired protectable items under a given container. */ -export interface IaasVMBackupRequest { +export interface InquiryInfo { /** - * Polymorphic Discriminator + * Inquiry Status for this container such as + * InProgress | Failed | Succeeded */ - objectType: "IaasVMBackupRequest"; + status?: string; /** - * Backup copy will expire after the time specified (UTC). + * Error Details if the Status is non-success. */ - recoveryPointExpiryTimeInUTC?: Date; + errorDetail?: ErrorDetail; + /** + * Inquiry Details which will have workload specific details. + * For e.g. - For SQL and oracle this will contain different details. + */ + inquiryDetails?: WorkloadInquiryDetails[]; } /** - * Restore files/folders from a backup copy of IaaS VM. + * This is used to represent the various nodes of the distributed container. */ -export interface IaasVMILRRegistrationRequest { - /** - * Polymorphic Discriminator - */ - objectType: "IaasVMILRRegistrationRequest"; - /** - * ID of the IaaS VM backup copy from where the files/folders have to be restored. - */ - recoveryPointId?: string; +export interface DistributedNodesInfo { /** - * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + * Name of the node under a distributed container. */ - virtualMachineId?: string; + nodeName?: string; /** - * iSCSI initiator name. + * Status of this Node. + * Failed | Succeeded */ - initiatorName?: string; + status?: string; /** - * Whether to renew existing registration with the iSCSI server. + * Error Details if the Status is non-success. */ - renewExistingRegistration?: boolean; + errorDetail?: ErrorDetail; } /** - * Parameters to Provision ILR API. + * Extended information of the container. */ -export interface ILRRequestResource extends Resource { +export interface AzureWorkloadContainerExtendedInfo { /** - * ILRRequestResource properties + * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. */ - properties?: ILRRequestUnion; -} - -/** - * Target details for file / folder restore. - */ -export interface InstantItemRecoveryTarget { + hostServerName?: string; /** - * List of client scripts. + * Inquiry Status for the container. */ - clientScripts?: ClientScriptForConnect[]; + inquiryInfo?: InquiryInfo; + /** + * List of the nodes in case of distributed container. + */ + nodesList?: DistributedNodesInfo[]; } /** - * Additional information of the container. + * Additional information on backup engine. */ -export interface MabContainerExtendedInfo { - /** - * Time stamp when this container was refreshed. - */ - lastRefreshedAt?: Date; +export interface BackupEngineExtendedInfo { /** - * Type of backup items associated with this container. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * Database name of backup engine. */ - backupItemType?: BackupItemType; + databaseName?: string; /** - * List of backup items associated with this container. + * Number of protected items in the backup engine. */ - backupItems?: string[]; + protectedItemsCount?: number; /** - * Backup policy associated with this container. + * Number of protected servers in the backup engine. */ - policyName?: string; + protectedServersCount?: number; /** - * Latest backup status of this container. + * Number of disks in the backup engine. */ - lastBackupStatus?: string; -} - -/** - * MAB workload-specific Health Details. - */ -export interface MABContainerHealthDetails { + diskCount?: number; /** - * Health Code + * Disk space used in the backup engine. */ - code?: number; + usedDiskSpace?: number; /** - * Health Title + * Disk space currently available in the backup engine. */ - title?: string; + availableDiskSpace?: number; /** - * Health Message + * Last refresh time in the backup engine. */ - message?: string; + refreshedAt?: Date; /** - * Health Recommended Actions + * Protected instances in the backup engine. */ - recommendations?: string[]; + azureProtectedInstances?: number; } /** - * Container with items backed up using MAB backup engine. + * The base backup engine class. All workload specific backup engines derive from this class. */ -export interface MabContainer { +export interface BackupEngineBaseResource extends Resource { /** - * Polymorphic Discriminator + * BackupEngineBaseResource properties */ - containerType: "Windows"; + properties?: BackupEngineBaseUnion; +} + +/** + * Base class for backup request. Workload-specific backup requests are derived from this class. + */ +export interface BackupRequestResource extends Resource { /** - * Friendly name of the container. + * BackupRequestResource properties */ - friendlyName?: string; + properties?: BackupRequestUnion; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEngineQueryObject { /** - * Type of backup management for the container. Possible values include: 'Invalid', + * attribute to add extended info + */ + expand?: string; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEnginesQueryObject { + /** + * Backup management type for the backup engine. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. + * Friendly name of the backup engine. */ - healthStatus?: string; + friendlyName?: string; /** - * Can the container be registered one more time. + * Attribute to add extended info. */ - canReRegister?: boolean; + expand?: string; +} + +/** + * The query filters that can be used with the list containers API. + */ +export interface BMSContainerQueryObject { /** - * ContainerID represents the container. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - containerId?: number; + backupManagementType: BackupManagementType; /** - * Number of items backed up in this container. + * Type of container for filter. Possible values include: 'Invalid', 'Unknown', + * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', + * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' */ - protectedItemCount?: number; + containerType?: ContainerType; /** - * Agent version of this container. + * Backup engine name */ - agentVersion?: string; + backupEngineName?: string; /** - * Additional information for this container + * Fabric name for filter */ - extendedInfo?: MabContainerExtendedInfo; + fabricName?: string; /** - * Health details on this mab container. + * Status of registration of this container with the Recovery Services Vault. */ - mabContainerHealthDetails?: MABContainerHealthDetails[]; + status?: string; /** - * Health state of mab container. + * Friendly name of this container. */ - containerHealthState?: string; + friendlyName?: string; } /** - * Error information associated with operation status call. + * The query filters that can be used with the inquire container API. */ -export interface OperationStatusError { - /** - * Error code of the operation failure. - */ - code?: string; +export interface BMSContainersInquiryQueryObject { /** - * Error message displayed if the operation failure. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - message?: string; -} - -/** - * Contains the possible cases for OperationStatusExtendedInfo. - */ -export type OperationStatusExtendedInfoUnion = - | OperationStatusExtendedInfo - | OperationStatusJobExtendedInfo - | OperationStatusJobsExtendedInfo - | OperationStatusProvisionILRExtendedInfo - | OperationStatusRecoveryPointExtendedInfo; - -/** - * Base class for additional information of operation status. - */ -export interface OperationStatusExtendedInfo { + backupManagementType?: BackupManagementType; /** - * Polymorphic Discriminator + * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - objectType: "OperationStatusExtendedInfo"; + workloadType?: WorkloadType; } /** - * Operation status. + * Filters to list items that can be backed up. */ -export interface OperationStatus { - /** - * ID of the operation. - */ - id?: string; - /** - * Name of the operation. - */ - name?: string; +export interface BMSPOQueryObject { /** - * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - status?: OperationStatusValues; + backupManagementType?: BackupManagementType; /** - * Operation start time. Format: ISO-8601. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - startTime?: Date; + workloadType?: WorkloadType; /** - * Operation end time. Format: ISO-8601. + * Full name of the container whose Protectable Objects should be returned. */ - endTime?: Date; + containerName?: string; /** - * Error information related to this operation. + * Backup status query parameter. */ - error?: OperationStatusError; + status?: string; /** - * Additional information associated with this operation. + * Friendly name. */ - properties?: OperationStatusExtendedInfoUnion; + friendlyName?: string; } /** - * Operation status job extended info. + * The query filters that can be used with the refresh container API. */ -export interface OperationStatusJobExtendedInfo { - /** - * Polymorphic Discriminator - */ - objectType: "OperationStatusJobExtendedInfo"; +export interface BMSRefreshContainersQueryObject { /** - * ID of the job created for this protected item. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - jobId?: string; + backupManagementType?: BackupManagementType; } /** - * Operation status extended info for list of jobs. + * Filters to list items that can be backed up. */ -export interface OperationStatusJobsExtendedInfo { +export interface BMSWorkloadItemQueryObject { /** - * Polymorphic Discriminator + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - objectType: "OperationStatusJobsExtendedInfo"; + backupManagementType?: BackupManagementType; /** - * IDs of the jobs created for the protected item. + * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', + * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' */ - jobIds?: string[]; + workloadItemType?: WorkloadItemType; /** - * Stores all the failed jobs along with the corresponding error codes. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - failedJobsError?: { [propertyName: string]: string }; + workloadType?: WorkloadType; + /** + * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionStatus?: ProtectionStatus; } /** - * Operation status extended info for ILR provision action. + * Client script details for file / folder restore. */ -export interface OperationStatusProvisionILRExtendedInfo { +export interface ClientScriptForConnect { /** - * Polymorphic Discriminator + * File content of the client script for file / folder restore. */ - objectType: "OperationStatusProvisionILRExtendedInfo"; + scriptContent?: string; /** - * Target details for file / folder restore. + * File extension of the client script for file / folder restore - .ps1 , .sh , etc. */ - recoveryTarget?: InstantItemRecoveryTarget; -} - -/** - * Protectable Container Class. - */ -export interface ProtectableContainerResource extends Resource { + scriptExtension?: string; /** - * ProtectableContainerResource properties + * OS type - Windows, Linux etc. for which this file / folder restore client script works. */ - properties?: ProtectableContainerUnion; -} - -/** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. - */ -export interface ProtectionContainerResource extends Resource { + osType?: string; /** - * ProtectionContainerResource properties + * URL of Executable from where to source the content. If this is not null then ScriptContent + * should not be used */ - properties?: ProtectionContainerUnion; + url?: string; + /** + * Mandatory suffix that should be added to the name of script that is given for download to + * user. + * If its null or empty then , ignore it. + */ + scriptNameSuffix?: string; } /** - * The token information details. + * Container identity information */ -export interface TokenInformation { +export interface ContainerIdentityInfo { /** - * Token value. + * Unique name of the container */ - token?: string; + uniqueName?: string; /** - * Expiry time of token. + * Protection container identity - AAD Tenant */ - expiryTimeInUtcTicks?: number; + aadTenantId?: string; /** - * Security PIN + * Protection container identity - AAD Service Principal */ - securityPIN?: string; -} - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadItemResource extends Resource { + servicePrincipalClientId?: string; /** - * WorkloadItemResource properties + * Protection container identity - Audience */ - properties?: WorkloadItemUnion; + audience?: string; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Data Protection Manager (DPM) specific backup engine. */ -export interface WorkloadProtectableItemResource extends Resource { +export interface DpmBackupEngine { /** - * WorkloadProtectableItemResource properties + * Polymorphic Discriminator */ - properties?: WorkloadProtectableItemUnion; -} - -/** - * RP Rehydration Info - */ -export interface RecoveryPointRehydrationInfo { + backupEngineType: "DpmBackupEngine"; /** - * How long the rehydrated RP should be kept - * Should be ISO8601 Duration format e.g. "P7D" + * Friendly name of the backup engine. */ - rehydrationRetentionDuration?: string; + friendlyName?: string; /** - * Rehydration Priority. Possible values include: 'Standard', 'High' + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - rehydrationPriority?: RehydrationPriority; -} - -/** - * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. - */ -export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { + backupManagementType?: BackupManagementType; /** - * Polymorphic Discriminator + * Registration status of the backup engine with the Recovery Services Vault. */ - objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; + registrationStatus?: string; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - recoveryType?: RecoveryType; + backupEngineState?: string; /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * Backup status of the backup engine. */ - sourceResourceId?: string; + healthStatus?: string; /** - * Workload specific property bag. + * Flag indicating if the backup engine be registered, once already registered. */ - propertyBag?: { [propertyName: string]: string }; + canReRegister?: boolean; /** - * Details of target database + * ID of the backup engine. */ - targetInfo?: TargetRestoreInfo; + backupEngineId?: string; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Backup engine version */ - recoveryMode?: RecoveryMode; + dpmVersion?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Backup agent version */ - targetVirtualMachineId?: string; + azureBackupAgentVersion?: string; /** - * PointInTime value + * To check if backup agent upgrade available */ - pointInTime?: Date; + isAzureBackupAgentUpgradeAvailable?: boolean; /** - * RP Rehydration Info + * To check if backup engine upgrade available */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; } /** - * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + * Additional information of the DPMContainer. */ -export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { - /** - * Polymorphic Discriminator - */ - objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; - /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' - */ - recoveryType?: RecoveryType; - /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. - */ - sourceResourceId?: string; - /** - * Workload specific property bag. - */ - propertyBag?: { [propertyName: string]: string }; +export interface DPMContainerExtendedInfo { /** - * Details of target database + * Last refresh time of the DPMContainer. */ - targetInfo?: TargetRestoreInfo; + lastRefreshedAt?: Date; +} + +/** + * Container extended information + */ +export interface GenericContainerExtendedInfo { /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Public key of container cert */ - recoveryMode?: RecoveryMode; + rawCertData?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Container identity information */ - targetVirtualMachineId?: string; + containerIdentityInfo?: ContainerIdentityInfo; /** - * RP Rehydration Info + * Azure Backup Service Endpoints for the container */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + serviceEndpoints?: { [propertyName: string]: string }; } /** - * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. + * Base class for generic container of backup items */ -export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { +export interface GenericContainer { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; - /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' - */ - recoveryType?: RecoveryType; - /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. - */ - sourceResourceId?: string; - /** - * Workload specific property bag. - */ - propertyBag?: { [propertyName: string]: string }; + containerType: "GenericContainer"; /** - * Details of target database + * Friendly name of the container. */ - targetInfo?: TargetRestoreInfo; + friendlyName?: string; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - recoveryMode?: RecoveryMode; + backupManagementType?: BackupManagementType; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Status of registration of the container with the Recovery Services Vault. */ - targetVirtualMachineId?: string; + registrationStatus?: string; /** - * Default option set to true. If this is set to false, alternate data directory must be provided + * Status of health of the container. */ - shouldUseAlternateTargetLocation?: boolean; + healthStatus?: string; /** - * SQL specific property where user can chose to set no-recovery when restore operation is tried + * Name of the container's fabric */ - isNonRecoverable?: boolean; + fabricName?: string; /** - * Data directory details + * Extended information (not returned in List container API calls) */ - alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + extendedInformation?: GenericContainerExtendedInfo; +} + +/** + * IaaS VM workload-specific backup request. + */ +export interface IaasVMBackupRequest { /** - * PointInTime value + * Polymorphic Discriminator */ - pointInTime?: Date; + objectType: "IaasVMBackupRequest"; /** - * RP Rehydration Info + * Backup copy will expire after the time specified (UTC). */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + recoveryPointExpiryTimeInUTC?: Date; } /** - * AzureWorkload SQL-specific restore with integrated rehydration of recovery point + * Restore files/folders from a backup copy of IaaS VM. */ -export interface AzureWorkloadSQLRestoreWithRehydrateRequest { +export interface IaasVMILRRegistrationRequest { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; + objectType: "IaasVMILRRegistrationRequest"; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * ID of the IaaS VM backup copy from where the files/folders have to be restored. */ - recoveryType?: RecoveryType; + recoveryPointId?: string; /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. */ - sourceResourceId?: string; + virtualMachineId?: string; /** - * Workload specific property bag. + * iSCSI initiator name. */ - propertyBag?: { [propertyName: string]: string }; + initiatorName?: string; /** - * Details of target database + * Whether to renew existing registration with the iSCSI server. */ - targetInfo?: TargetRestoreInfo; + renewExistingRegistration?: boolean; +} + +/** + * Parameters to Provision ILR API. + */ +export interface ILRRequestResource extends Resource { /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * ILRRequestResource properties */ - recoveryMode?: RecoveryMode; + properties?: ILRRequestUnion; +} + +/** + * Target details for file / folder restore. + */ +export interface InstantItemRecoveryTarget { /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * List of client scripts. */ - targetVirtualMachineId?: string; + clientScripts?: ClientScriptForConnect[]; +} + +/** + * Additional information of the container. + */ +export interface MabContainerExtendedInfo { /** - * Default option set to true. If this is set to false, alternate data directory must be provided + * Time stamp when this container was refreshed. */ - shouldUseAlternateTargetLocation?: boolean; + lastRefreshedAt?: Date; /** - * SQL specific property where user can chose to set no-recovery when restore operation is tried + * Type of backup items associated with this container. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - isNonRecoverable?: boolean; + backupItemType?: BackupItemType; /** - * Data directory details + * List of backup items associated with this container. */ - alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + backupItems?: string[]; /** - * RP Rehydration Info + * Backup policy associated with this container. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + policyName?: string; + /** + * Latest backup status of this container. + */ + lastBackupStatus?: string; } /** - * IaaS VM workload-specific restore with integrated rehydration of recovery point. + * MAB workload-specific Health Details. */ -export interface IaasVMRestoreWithRehydrationRequest { - /** - * Polymorphic Discriminator - */ - objectType: "IaasVMRestoreWithRehydrationRequest"; - /** - * ID of the backup copy to be recovered. - */ - recoveryPointId?: string; - /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' - */ - recoveryType?: RecoveryType; - /** - * Fully qualified ARM ID of the VM which is being recovered. - */ - sourceResourceId?: string; +export interface MABContainerHealthDetails { /** - * This is the complete ARM Id of the VM that will be created. - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Health Code */ - targetVirtualMachineId?: string; + code?: number; /** - * This is the ARM Id of the resource group that you want to create for this Virtual machine and - * other artifacts. - * For e.g. /subscriptions/{subId}/resourcegroups/{rg} + * Health Title */ - targetResourceGroupId?: string; + title?: string; /** - * Fully qualified ARM ID of the storage account to which the VM has to be restored. + * Health Message */ - storageAccountId?: string; + message?: string; /** - * This is the virtual network Id of the vnet that will be attached to the virtual machine. - * User will be validated for join action permissions in the linked access. + * Health Recommended Actions */ - virtualNetworkId?: string; + recommendations?: string[]; +} + +/** + * Container with items backed up using MAB backup engine. + */ +export interface MabContainer { /** - * Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be - * {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource - * ID used to represent - * the subnet. + * Polymorphic Discriminator */ - subnetId?: string; + containerType: "Windows"; /** - * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This - * applies only to Classic - * Virtual Machines. + * Friendly name of the container. */ - targetDomainNameId?: string; + friendlyName?: string; /** - * Region in which the virtual machine is restored. + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - region?: string; + backupManagementType?: BackupManagementType; /** - * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual - * Machines. + * Status of registration of the container with the Recovery Services Vault. */ - affinityGroup?: string; + registrationStatus?: string; /** - * Should a new cloud service be created while restoring the VM. If this is false, VM will be - * restored to the same - * cloud service as it was at the time of backup. + * Status of health of the container. */ - createNewCloudService?: boolean; + healthStatus?: string; /** - * Original Storage Account Option + * Can the container be registered one more time. */ - originalStorageAccountOption?: boolean; + canReRegister?: boolean; /** - * Details needed if the VM was encrypted at the time of backup. + * ContainerID represents the container. */ - encryptionDetails?: EncryptionDetails; + containerId?: number; /** - * List of Disk LUNs for partial restore + * Number of items backed up in this container. */ - restoreDiskLunList?: number[]; + protectedItemCount?: number; /** - * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + * Agent version of this container. */ - restoreWithManagedDisks?: boolean; + agentVersion?: string; /** - * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with - * customer managed key. + * Additional information for this container */ - diskEncryptionSetId?: string; + extendedInfo?: MabContainerExtendedInfo; /** - * Target zone where the VM and its disks should be restored. + * Health details on this mab container. */ - zones?: string[]; + mabContainerHealthDetails?: MABContainerHealthDetails[]; /** - * RP Rehydration Info + * Health state of mab container. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + containerHealthState?: string; } /** - * An interface representing MoveRPAcrossTiersRequest. + * Error information associated with operation status call. */ -export interface MoveRPAcrossTiersRequest { - /** - * Gets the class type. - */ - objectType?: string; +export interface OperationStatusError { /** - * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', - * 'HardenedRP', 'ArchivedRP' + * Error code of the operation failure. */ - sourceTierType?: RecoveryPointTierType; + code?: string; /** - * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', - * 'HardenedRP', 'ArchivedRP' + * Error message displayed if the operation failure. */ - targetTierType?: RecoveryPointTierType; + message?: string; } /** - * ListRecoveryPointsRecommendedForMoveRequest Request + * Contains the possible cases for OperationStatusExtendedInfo. */ -export interface ListRecoveryPointsRecommendedForMoveRequest { - /** - * Gets the class type. - */ - objectType?: string; - /** - * List of Recovery Points excluded from Move - */ - excludedRPList?: string[]; -} +export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo | OperationStatusRecoveryPointExtendedInfo; /** - * The name of usage. + * Base class for additional information of operation status. */ -export interface NameInfo { - /** - * Value of usage. - */ - value?: string; +export interface OperationStatusExtendedInfo { /** - * Localized value of usage. + * Polymorphic Discriminator */ - localizedValue?: string; + objectType: "OperationStatusExtendedInfo"; } /** - * Backup management usages of a vault. + * Operation status. */ -export interface BackupManagementUsage { +export interface OperationStatus { /** - * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' + * ID of the operation. */ - unit?: UsagesUnit; + id?: string; /** - * Quota period of usage. + * Name of the operation. */ - quotaPeriod?: string; + name?: string; /** - * Next reset time of usage. + * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', + * 'Canceled' */ - nextResetTime?: Date; + status?: OperationStatusValues; /** - * Current value of usage. + * Operation start time. Format: ISO-8601. */ - currentValue?: number; + startTime?: Date; /** - * Limit of usage. + * Operation end time. Format: ISO-8601. */ - limit?: number; + endTime?: Date; /** - * Name of usage. + * Error information related to this operation. */ - name?: NameInfo; -} - -/** - * Query parameters to fetch backup summaries. - */ -export interface BMSBackupSummariesQueryObject { + error?: OperationStatusError; /** - * Backup management type for this container. Possible values include: 'Invalid', - * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + * Additional information associated with this operation. */ - type?: Type; -} - -/** - * An interface representing AADProperties. - */ -export interface AADProperties { - servicePrincipalClientId?: string; - tenantId?: string; - authority?: string; - audience?: string; - servicePrincipalObjectId?: string; + properties?: OperationStatusExtendedInfoUnion; } /** - * An interface representing AADPropertiesResource. + * Operation status job extended info. */ -export interface AADPropertiesResource extends Resource { +export interface OperationStatusJobExtendedInfo { /** - * AADPropertiesResource properties + * Polymorphic Discriminator */ - properties?: AADProperties; + objectType: "OperationStatusJobExtendedInfo"; + /** + * ID of the job created for this protected item. + */ + jobId?: string; } /** - * The resource storage details. + * Operation status extended info for list of jobs. */ -export interface BackupResourceConfig { - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', - * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' - */ - storageModelType?: StorageType; +export interface OperationStatusJobsExtendedInfo { /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', - * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + * Polymorphic Discriminator */ - storageType?: StorageType; + objectType: "OperationStatusJobsExtendedInfo"; /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * IDs of the jobs created for the protected item. */ - storageTypeState?: StorageTypeState; + jobIds?: string[]; /** - * Opt in details of Cross Region Restore feature. + * Stores all the failed jobs along with the corresponding error codes. */ - crossRegionRestoreFlag?: boolean; + failedJobsError?: { [propertyName: string]: string }; } /** - * Request object for fetching CRR jobs. + * Operation status extended info for ILR provision action. */ -export interface CrrJobRequest { +export interface OperationStatusProvisionILRExtendedInfo { /** - * Entire ARM resource id of the resource + * Polymorphic Discriminator */ - resourceId?: string; + objectType: "OperationStatusProvisionILRExtendedInfo"; /** - * Job Name of the job to be fetched + * Target details for file / folder restore. */ - jobName?: string; + recoveryTarget?: InstantItemRecoveryTarget; } /** - * Request object for fetching CRR jobs. + * Protectable Container Class. */ -export interface CrrJobRequestResource extends Resource { +export interface ProtectableContainerResource extends Resource { /** - * CrrJobRequestResource properties + * ProtectableContainerResource properties */ - properties?: CrrJobRequest; + properties?: ProtectableContainerUnion; } /** - * The resource storage details. - */ -export interface BackupResourceConfigResource extends Resource { + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainerResource extends Resource { /** - * BackupResourceConfigResource properties + * ProtectionContainerResource properties */ - properties?: BackupResourceConfig; + properties?: ProtectionContainerUnion; } /** - * Contains the possible cases for CrrAccessToken. + * The token information details. */ -export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; +export interface TokenInformation { + /** + * Token value. + */ + token?: string; + /** + * Expiry time of token. + */ + expiryTimeInUtcTicks?: number; + /** + * Security PIN + */ + securityPIN?: string; +} /** - * An interface representing CrrAccessToken. + * Base class for backup item. Workload-specific backup items are derived from this class. */ -export interface CrrAccessToken { +export interface WorkloadItemResource extends Resource { + /** + * WorkloadItemResource properties + */ + properties?: WorkloadItemUnion; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItemResource extends Resource { + /** + * WorkloadProtectableItemResource properties + */ + properties?: WorkloadProtectableItemUnion; +} + +/** + * RP Rehydration Info + */ +export interface RecoveryPointRehydrationInfo { + /** + * How long the rehydrated RP should be kept + * Should be ISO8601 Duration format e.g. "P7D" + */ + rehydrationRetentionDuration?: string; + /** + * Rehydration Priority. Possible values include: 'Standard', 'High' + */ + rehydrationPriority?: RehydrationPriority; +} + +/** + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { /** * Polymorphic Discriminator */ - objectType: "CrrAccessToken"; + objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; /** - * Access token used for authentication + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - accessTokenString?: string; + recoveryType?: RecoveryType; /** - * Subscription Id of the source vault + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. */ - subscriptionId?: string; + sourceResourceId?: string; /** - * Resource Group name of the source vault + * Workload specific property bag. */ - resourceGroupName?: string; + propertyBag?: { [propertyName: string]: string }; /** - * Resource Name of the source vault + * Details of target database */ - resourceName?: string; + targetInfo?: TargetRestoreInfo; /** - * Resource Id of the source vault + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' */ - resourceId?: string; + recoveryMode?: RecoveryMode; /** - * Protected item container id + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - protectionContainerId?: number; + targetVirtualMachineId?: string; /** - * Recovery Point Id + * PointInTime value + */ + pointInTime?: Date; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * PointInTime value + */ + pointInTime?: Date; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point + */ +export interface AzureWorkloadSQLRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * IaaS VM workload-specific restore with integrated rehydration of recovery point. + */ +export interface IaasVMRestoreWithRehydrationRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMRestoreWithRehydrationRequest"; + /** + * ID of the backup copy to be recovered. */ recoveryPointId?: string; /** - * Recovery Point Time + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - recoveryPointTime?: string; + recoveryType?: RecoveryType; /** - * Container Unique name + * Fully qualified ARM ID of the VM which is being recovered. */ - containerName?: string; + sourceResourceId?: string; /** - * Container Type + * This is the complete ARM Id of the VM that will be created. + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - containerType?: string; + targetVirtualMachineId?: string; /** - * Backup Management Type + * This is the ARM Id of the resource group that you want to create for this Virtual machine and + * other artifacts. + * For e.g. /subscriptions/{subId}/resourcegroups/{rg} */ - backupManagementType?: string; + targetResourceGroupId?: string; /** - * Datasource Type + * Fully qualified ARM ID of the storage account to which the VM has to be restored. */ - datasourceType?: string; + storageAccountId?: string; /** - * Datasource Friendly Name + * This is the virtual network Id of the vnet that will be attached to the virtual machine. + * User will be validated for join action permissions in the linked access. */ - datasourceName?: string; + virtualNetworkId?: string; /** - * Datasource Id + * Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be + * {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource + * ID used to represent + * the subnet. */ - datasourceId?: string; + subnetId?: string; /** - * Datasource Container Unique Name + * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This + * applies only to Classic + * Virtual Machines. */ - datasourceContainerName?: string; + targetDomainNameId?: string; /** - * CoordinatorServiceStampId to be used by BCM in restore call + * Region in which the virtual machine is restored. */ - coordinatorServiceStampId?: string; + region?: string; /** - * CoordinatorServiceStampUri to be used by BCM in restore call + * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual + * Machines. */ - coordinatorServiceStampUri?: string; + affinityGroup?: string; /** - * ProtectionServiceStampId to be used by BCM in restore call + * Should a new cloud service be created while restoring the VM. If this is false, VM will be + * restored to the same + * cloud service as it was at the time of backup. */ - protectionServiceStampId?: string; + createNewCloudService?: boolean; /** - * ProtectionServiceStampUri to be used by BCM in restore call + * Original Storage Account Option */ - protectionServiceStampUri?: string; + originalStorageAccountOption?: boolean; /** - * Extended Information about the token like FileSpec etc. + * Details needed if the VM was encrypted at the time of backup. */ - tokenExtendedInformation?: string; + encryptionDetails?: EncryptionDetails; /** - * Recovery point Tier Information + * List of Disk LUNs for partial restore */ - rpTierInformation?: { [propertyName: string]: string }; + restoreDiskLunList?: number[]; /** - * Recovery point information: Original SA option + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. */ - rpOriginalSAOption?: boolean; + restoreWithManagedDisks?: boolean; + /** + * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with + * customer managed key. + */ + diskEncryptionSetId?: string; + /** + * Target zone where the VM and its disks should be restored. + */ + zones?: string[]; + /** + * Managed Identity information required to access customer storage account. + */ + identityInfo?: IdentityInfo; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * An interface representing MoveRPAcrossTiersRequest. + */ +export interface MoveRPAcrossTiersRequest { /** - * Recovery point information: Managed virtual machine + * Gets the class type. */ - rpIsManagedVirtualMachine?: boolean; + objectType?: string; /** - * Recovery point information: VM size description + * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' */ - rpVMSizeDescription?: string; + sourceTierType?: RecoveryPointTierType; /** - * Active region name of BMS Stamp + * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' */ - bMSActiveRegion?: string; + targetTierType?: RecoveryPointTierType; } /** - * An interface representing CrossRegionRestoreRequest. + * ListRecoveryPointsRecommendedForMoveRequest Request */ -export interface CrossRegionRestoreRequest { +export interface ListRecoveryPointsRecommendedForMoveRequest { /** - * Access details for cross region restore + * Gets the class type. */ - crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; + objectType?: string; /** - * Request object for triggering restore + * List of Recovery Points excluded from Move */ - restoreRequest?: RestoreRequestUnion; + excludedRPList?: string[]; } /** - * An interface representing CrossRegionRestoreRequestResource. + * An interface representing AADProperties. */ -export interface CrossRegionRestoreRequestResource extends Resource { - /** - * CrossRegionRestoreRequestResource properties - */ - properties?: CrossRegionRestoreRequest; +export interface AADProperties { + servicePrincipalClientId?: string; + tenantId?: string; + authority?: string; + audience?: string; + servicePrincipalObjectId?: string; } /** - * An interface representing CrrAccessTokenResource. + * An interface representing AADPropertiesResource. */ -export interface CrrAccessTokenResource extends Resource { +export interface AADPropertiesResource extends Resource { /** - * CrrAccessTokenResource properties + * AADPropertiesResource properties */ - properties?: CrrAccessTokenUnion; + properties?: AADProperties; } /** - * Filters to list backup items. + * The resource storage details. */ -export interface BMSAADPropertiesQueryObject { +export interface BackupResourceConfig { /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - backupManagementType?: BackupManagementType; + storageModelType?: StorageType; + /** + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + */ + storageType?: StorageType; + /** + * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is + * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + */ + storageTypeState?: StorageTypeState; + /** + * Opt in details of Cross Region Restore feature. + */ + crossRegionRestoreFlag?: boolean; } /** - * Operation status extended info for Updated Recovery Point. + * Request object for fetching CRR jobs. */ -export interface OperationStatusRecoveryPointExtendedInfo { +export interface CrrJobRequest { /** - * Polymorphic Discriminator + * Entire ARM resource id of the resource */ - objectType: "OperationStatusRecoveryPointExtendedInfo"; + resourceId?: string; /** - * Recovery Point info with updated source snapshot URI + * Job Name of the job to be fetched */ - updatedRecoveryPoint?: RecoveryPointUnion; + jobName?: string; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequestResource extends Resource { /** - * In case the share is in soft-deleted state, populate this field with deleted backup item + * CrrJobRequestResource properties */ - deletedBackupItemVersion?: string; + properties?: CrrJobRequest; } /** - * An interface representing WorkloadCrrAccessToken. + * The resource storage details. */ -export interface WorkloadCrrAccessToken { +export interface BackupResourceConfigResource extends Resource { + /** + * BackupResourceConfigResource properties + */ + properties?: BackupResourceConfig; +} + +/** + * Contains the possible cases for CrrAccessToken. + */ +export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; + +/** + * An interface representing CrrAccessToken. + */ +export interface CrrAccessToken { /** * Polymorphic Discriminator */ - objectType: "WorkloadCrrAccessToken"; + objectType: "CrrAccessToken"; /** * Access token used for authentication */ @@ -8126,553 +8364,277 @@ export interface WorkloadCrrAccessToken { /** * ProtectionServiceStampId to be used by BCM in restore call */ - protectionServiceStampId?: string; - /** - * ProtectionServiceStampUri to be used by BCM in restore call - */ - protectionServiceStampUri?: string; - /** - * Extended Information about the token like FileSpec etc. - */ - tokenExtendedInformation?: string; - /** - * Recovery point Tier Information - */ - rpTierInformation?: { [propertyName: string]: string }; - /** - * Recovery point information: Original SA option - */ - rpOriginalSAOption?: boolean; - /** - * Recovery point information: Managed virtual machine - */ - rpIsManagedVirtualMachine?: boolean; - /** - * Recovery point information: VM size description - */ - rpVMSizeDescription?: string; - /** - * Active region name of BMS Stamp - */ - bMSActiveRegion?: string; - protectableObjectUniqueName?: string; - protectableObjectFriendlyName?: string; - protectableObjectWorkloadType?: string; - protectableObjectProtectionState?: string; - protectableObjectContainerHostOsName?: string; - protectableObjectParentLogicalContainerName?: string; - /** - * Container Id - */ - containerId?: string; - /** - * Policy Name - */ - policyName?: string; - /** - * Policy Id - */ - policyId?: string; -} - -/** - * Contains the possible cases for FeatureSupportRequest. - */ -export type FeatureSupportRequestUnion = - | FeatureSupportRequest - | AzureBackupGoalFeatureSupportRequest - | AzureVMResourceFeatureSupportRequest; - -/** - * Base class for feature request - */ -export interface FeatureSupportRequest { - /** - * Polymorphic Discriminator - */ - featureType: "FeatureSupportRequest"; -} - -/** - * Azure backup goal feature specific request. - */ -export interface AzureBackupGoalFeatureSupportRequest { - /** - * Polymorphic Discriminator - */ - featureType: "AzureBackupGoals"; -} - -/** - * Contains the possible cases for ProtectionIntent. - */ -export type ProtectionIntentUnion = - | ProtectionIntent - | AzureRecoveryServiceVaultProtectionIntentUnion - | AzureResourceProtectionIntent; - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "ProtectionIntent"; - /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. - */ - policyId?: string; - /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; -} - -/** - * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. - */ -export type AzureRecoveryServiceVaultProtectionIntentUnion = - | AzureRecoveryServiceVaultProtectionIntent - | AzureWorkloadAutoProtectionIntentUnion; - -/** - * Azure Recovery Services Vault specific protection intent item. - */ -export interface AzureRecoveryServiceVaultProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "RecoveryServiceVaultItem"; - /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. - */ - policyId?: string; + protectionServiceStampId?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * ProtectionServiceStampUri to be used by BCM in restore call */ - protectionState?: ProtectionStatus; -} - -/** - * IaaS VM specific backup protection intent item. - */ -export interface AzureResourceProtectionIntent { + protectionServiceStampUri?: string; /** - * Polymorphic Discriminator + * Extended Information about the token like FileSpec etc. */ - protectionIntentItemType: "AzureResourceItem"; + tokenExtendedInformation?: string; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Recovery point Tier Information */ - backupManagementType?: BackupManagementType; + rpTierInformation?: { [propertyName: string]: string }; /** - * ARM ID of the resource to be backed up. + * Recovery point information: Original SA option */ - sourceResourceId?: string; + rpOriginalSAOption?: boolean; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Recovery point information: Managed virtual machine */ - itemId?: string; + rpIsManagedVirtualMachine?: boolean; /** - * ID of the backup policy with which this item is backed up. + * Recovery point information: VM size description */ - policyId?: string; + rpVMSizeDescription?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Active region name of BMS Stamp */ - protectionState?: ProtectionStatus; + bMSActiveRegion?: string; /** - * Friendly name of the VM represented by this backup item. + * Managed Identity information to be used for accessing customer storage accounts. */ - friendlyName?: string; + identityInfo?: IdentityInfo; } /** - * AzureResource(IaaS VM) Specific feature support request + * An interface representing CrossRegionRestoreRequest. */ -export interface AzureVMResourceFeatureSupportRequest { - /** - * Polymorphic Discriminator - */ - featureType: "AzureVMResourceBackup"; +export interface CrossRegionRestoreRequest { /** - * Size of the resource: VM size(A/D series etc) in case of IaasVM + * Access details for cross region restore */ - vmSize?: string; + crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; /** - * SKUs (Premium/Managed etc) in case of IaasVM + * Request object for triggering restore */ - vmSku?: string; + restoreRequest?: RestoreRequestUnion; } /** - * Response for feature support requests for Azure IaasVm + * An interface representing CrossRegionRestoreRequestResource. */ -export interface AzureVMResourceFeatureSupportResponse { +export interface CrossRegionRestoreRequestResource extends Resource { /** - * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', - * 'DefaultON', 'NotSupported' + * CrossRegionRestoreRequestResource properties */ - supportStatus?: SupportStatus; + properties?: CrossRegionRestoreRequest; } /** - * Contains the possible cases for AzureWorkloadAutoProtectionIntent. + * An interface representing CrrAccessTokenResource. */ -export type AzureWorkloadAutoProtectionIntentUnion = - | AzureWorkloadAutoProtectionIntent - | AzureWorkloadSQLAutoProtectionIntent; +export interface CrrAccessTokenResource extends Resource { + /** + * CrrAccessTokenResource properties + */ + properties?: CrrAccessTokenUnion; +} /** - * Azure Recovery Services Vault specific protection intent item. + * Filters to list backup items. */ -export interface AzureWorkloadAutoProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; +export interface BMSAADPropertiesQueryObject { /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Backup management type for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. - */ - policyId?: string; - /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; } /** - * Azure Workload SQL Auto Protection intent item. + * Operation status extended info for Updated Recovery Point. */ -export interface AzureWorkloadSQLAutoProtectionIntent { +export interface OperationStatusRecoveryPointExtendedInfo { /** * Polymorphic Discriminator */ - protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; - /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. - */ - policyId?: string; + objectType: "OperationStatusRecoveryPointExtendedInfo"; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Recovery Point info with updated source snapshot URI */ - protectionState?: ProtectionStatus; + updatedRecoveryPoint?: RecoveryPointUnion; /** - * Workload item type of the item for which intent is to be set. Possible values include: - * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - * 'SAPAseDatabase' + * In case the share is in soft-deleted state, populate this field with deleted backup item */ - workloadItemType?: WorkloadItemType; + deletedBackupItemVersion?: string; } /** - * BackupStatus request. + * An interface representing WorkloadCrrAccessToken. */ -export interface BackupStatusRequest { - /** - * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' - */ - resourceType?: DataSourceType; +export interface WorkloadCrrAccessToken { /** - * Entire ARM resource id of the resource + * Polymorphic Discriminator */ - resourceId?: string; + objectType: "WorkloadCrrAccessToken"; /** - * Protectable Item Logical Name + * Access token used for authentication */ - poLogicalName?: string; -} - -/** - * BackupStatus response. - */ -export interface BackupStatusResponse { + accessTokenString?: string; /** - * Specifies whether the container is registered or not. Possible values include: 'Invalid', - * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' + * Subscription Id of the source vault */ - protectionStatus?: ProtectionStatus; + subscriptionId?: string; /** - * Specifies the arm resource id of the vault + * Resource Group name of the source vault */ - vaultId?: string; + resourceGroupName?: string; /** - * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' + * Resource Name of the source vault */ - fabricName?: FabricName; + resourceName?: string; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;csname;vmname. + * Resource Id of the source vault */ - containerName?: string; + resourceId?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + * Protected item container id */ - protectedItemName?: string; + protectionContainerId?: number; /** - * ErrorCode in case of intent failed + * Recovery Point Id */ - errorCode?: string; + recoveryPointId?: string; /** - * ErrorMessage in case of intent failed. + * Recovery Point Time */ - errorMessage?: string; + recoveryPointTime?: string; /** - * Specifies the policy name which is used for protection + * Container Unique name */ - policyName?: string; + containerName?: string; /** - * Container registration status + * Container Type */ - registrationStatus?: string; -} - -/** - * Contract to validate if backup can be enabled on the given resource in a given vault and given - * configuration. - * It will validate followings - * 1. Vault capacity - * 2. VM is already protected - * 3. Any VM related configuration passed in properties. - */ -export interface PreValidateEnableBackupRequest { + containerType?: string; /** - * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', - * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', - * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', - * 'SAPHanaDatabase', 'SAPAseDatabase' + * Backup Management Type */ - resourceType?: DataSourceType; + backupManagementType?: string; /** - * ARM Virtual Machine Id + * Datasource Type */ - resourceId?: string; + datasourceType?: string; /** - * ARM id of the Recovery Services Vault + * Datasource Friendly Name */ - vaultId?: string; + datasourceName?: string; /** - * Configuration of VM if any needs to be validated like OS type etc + * Datasource Id */ - properties?: string; -} - -/** - * Response contract for enable backup validation request - */ -export interface PreValidateEnableBackupResponse { + datasourceId?: string; /** - * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' + * Datasource Container Unique Name */ - status?: ValidationStatus; + datasourceContainerName?: string; /** - * Response error code + * CoordinatorServiceStampId to be used by BCM in restore call */ - errorCode?: string; + coordinatorServiceStampId?: string; /** - * Response error message + * CoordinatorServiceStampUri to be used by BCM in restore call */ - errorMessage?: string; + coordinatorServiceStampUri?: string; /** - * Recommended action for user + * ProtectionServiceStampId to be used by BCM in restore call */ - recommendation?: string; + protectionServiceStampId?: string; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - * for portal + * ProtectionServiceStampUri to be used by BCM in restore call */ - containerName?: string; + protectionServiceStampUri?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is - * required for portal + * Extended Information about the token like FileSpec etc. */ - protectedItemName?: string; -} - -/** - * Filters to list protection intent. - */ -export interface ProtectionIntentQueryObject { + tokenExtendedInformation?: string; /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Recovery point Tier Information */ - backupManagementType?: BackupManagementType; + rpTierInformation?: { [propertyName: string]: string }; /** - * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', - * 'SQLAvailabilityGroupContainer' + * Recovery point information: Original SA option */ - itemType?: IntentItemType; + rpOriginalSAOption?: boolean; /** - * Parent name of the intent + * Recovery point information: Managed virtual machine */ - parentName?: string; + rpIsManagedVirtualMachine?: boolean; /** - * Item name of the intent + * Recovery point information: VM size description */ - itemName?: string; -} - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntentResource extends Resource { + rpVMSizeDescription?: string; /** - * ProtectionIntentResource properties + * Active region name of BMS Stamp */ - properties?: ProtectionIntentUnion; -} - -/** - * Localized display information of an operation. - */ -export interface ClientDiscoveryDisplay { + bMSActiveRegion?: string; /** - * Name of the provider for display purposes + * Managed Identity information to be used for accessing customer storage accounts. */ - provider?: string; + identityInfo?: IdentityInfo; + protectableObjectUniqueName?: string; + protectableObjectFriendlyName?: string; + protectableObjectWorkloadType?: string; + protectableObjectProtectionState?: string; + protectableObjectContainerHostOsName?: string; + protectableObjectParentLogicalContainerName?: string; /** - * ResourceType for which this Operation can be performed. + * Container Id */ - resource?: string; + containerId?: string; /** - * Operations Name itself. + * Policy Name */ - operation?: string; + policyName?: string; /** - * Description of the operation having details of what operation is about. + * Policy Id */ - description?: string; + policyId?: string; } /** - * Class to represent shoebox log specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForLogSpecification { - /** - * Name for shoebox log specification. - */ - name?: string; +export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { /** - * Localized display name + * OData filter options. */ - displayName?: string; + filter?: string; /** - * blob duration of shoebox log specification + * skipToken Filter. */ - blobDuration?: string; + skipToken?: string; } /** - * Class to represent shoebox service specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForServiceSpecification { +export interface BackupProtectionIntentListNextOptionalParams extends msRest.RequestOptionsBase { /** - * List of log specifications of this operation. + * OData filter options. */ - logSpecifications?: ClientDiscoveryForLogSpecification[]; -} - -/** - * Class to represent shoebox properties in json client discovery. - */ -export interface ClientDiscoveryForProperties { + filter?: string; /** - * Operation properties. + * skipToken Filter. */ - serviceSpecification?: ClientDiscoveryForServiceSpecification; + skipToken?: string; } /** - * Available operation details. + * Optional Parameters. */ -export interface ClientDiscoveryValueForSingleApi { - /** - * Name of the Operation. - */ - name?: string; - /** - * Contains the localized display information for this particular operation - */ - display?: ClientDiscoveryDisplay; +export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { /** - * The intended executor of the operation;governs the display of the operation in the RBAC UX and - * the audit logs UX + * OData filter options. */ - origin?: string; + filter?: string; /** - * ShoeBox properties for the given operation. + * skipToken Filter. */ - properties?: ClientDiscoveryForProperties; + skipToken?: string; } /** @@ -8942,8 +8904,7 @@ export interface BackupProtectionContainersListOptionalParams extends msRest.Req /** * Optional Parameters. */ -export interface BackupProtectionContainersListNextOptionalParams - extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -9051,52 +9012,38 @@ export interface BackupProtectedItemsCrrListNextOptionalParams extends msRest.Re } /** - * Optional Parameters. + * An interface representing RecoveryServicesBackupClientOptions. */ -export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { - /** - * OData filter options. - */ - filter?: string; - /** - * skipToken Filter. - */ - skipToken?: string; +export interface RecoveryServicesBackupClientOptions extends AzureServiceClientOptions { + baseUri?: string; } /** - * Optional Parameters. + * @interface + * List of ProtectionIntent resources + * @extends Array, ResourceList */ -export interface BackupProtectionIntentListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * OData filter options. - */ - filter?: string; - /** - * skipToken Filter. - */ - skipToken?: string; +export interface ProtectionIntentResourceList extends Array, ResourceList { } /** - * Optional Parameters. + * @interface + * Backup management usage for vault. + * @extends Array */ -export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { - /** - * OData filter options. - */ - filter?: string; - /** - * skipToken Filter. - */ - skipToken?: string; +export interface BackupManagementUsageList extends Array { } /** - * An interface representing RecoveryServicesBackupClientOptions. + * @interface + * Operations List response which contains list of available APIs. + * @extends Array */ -export interface RecoveryServicesBackupClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface ClientDiscoveryResponse extends Array { + /** + * Link to the next chunk of Response. + */ + nextLink?: string; } /** @@ -9104,100 +9051,71 @@ export interface RecoveryServicesBackupClientOptions extends AzureServiceClientO * List of RecoveryPoint resources * @extends Array, ResourceList */ -export interface RecoveryPointResourceList extends Array, ResourceList {} +export interface RecoveryPointResourceList extends Array, ResourceList { +} /** * @interface * List of ProtectionPolicy resources * @extends Array, ResourceList */ -export interface ProtectionPolicyResourceList - extends Array, - ResourceList {} +export interface ProtectionPolicyResourceList extends Array, ResourceList { +} /** * @interface * List of Job resources * @extends Array, ResourceList */ -export interface JobResourceList extends Array, ResourceList {} +export interface JobResourceList extends Array, ResourceList { +} /** * @interface * List of ProtectedItem resources * @extends Array, ResourceList */ -export interface ProtectedItemResourceList extends Array, ResourceList {} +export interface ProtectedItemResourceList extends Array, ResourceList { +} /** * @interface * List of BackupEngineBase resources * @extends Array, ResourceList */ -export interface BackupEngineBaseResourceList - extends Array, - ResourceList {} +export interface BackupEngineBaseResourceList extends Array, ResourceList { +} /** * @interface * List of ProtectableContainer resources * @extends Array, ResourceList */ -export interface ProtectableContainerResourceList - extends Array, - ResourceList {} +export interface ProtectableContainerResourceList extends Array, ResourceList { +} /** * @interface * List of WorkloadItem resources * @extends Array, ResourceList */ -export interface WorkloadItemResourceList extends Array, ResourceList {} +export interface WorkloadItemResourceList extends Array, ResourceList { +} /** * @interface * List of WorkloadProtectableItem resources * @extends Array, ResourceList */ -export interface WorkloadProtectableItemResourceList - extends Array, - ResourceList {} +export interface WorkloadProtectableItemResourceList extends Array, ResourceList { +} /** * @interface * List of ProtectionContainer resources * @extends Array, ResourceList */ -export interface ProtectionContainerResourceList - extends Array, - ResourceList {} - -/** - * @interface - * Backup management usage for vault. - * @extends Array - */ -export interface BackupManagementUsageList extends Array {} - -/** - * @interface - * List of ProtectionIntent resources - * @extends Array, ResourceList - */ -export interface ProtectionIntentResourceList - extends Array, - ResourceList {} - -/** - * @interface - * Operations List response which contains list of available APIs. - * @extends Array - */ -export interface ClientDiscoveryResponse extends Array { - /** - * Link to the next chunk of Response. - */ - nextLink?: string; +export interface ProtectionContainerResourceList extends Array, ResourceList { } /** @@ -9206,22 +9124,16 @@ export interface ClientDiscoveryResponse extends Array */ - get( - azureRegion: string, - options?: Models.AadPropertiesGetOptionalParams - ): Promise; + get(azureRegion: string, options?: Models.AadPropertiesGetOptionalParams): Promise; /** * @param azureRegion Azure region to hit Api * @param callback The callback @@ -45,26 +42,15 @@ export class AadProperties { * @param options The optional parameters * @param callback The callback */ - get( - azureRegion: string, - options: Models.AadPropertiesGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - azureRegion: string, - options?: - | Models.AadPropertiesGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(azureRegion: string, options: Models.AadPropertiesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(azureRegion: string, options?: Models.AadPropertiesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { azureRegion, options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -72,11 +58,18 @@ export class AadProperties { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupAadProperties", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupAadProperties", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AADPropertiesResource diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts index f85b8be8d222..cad106a88dd4 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts @@ -34,12 +34,7 @@ export class BMSPrepareDataMoveOperationResult { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -47,12 +42,7 @@ export class BMSPrepareDataMoveOperationResult { * @param operationId * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -61,22 +51,8 @@ export class BMSPrepareDataMoveOperationResult { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -85,8 +61,7 @@ export class BMSPrepareDataMoveOperationResult { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -94,16 +69,19 @@ export class BMSPrepareDataMoveOperationResult { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VaultStorageConfigOperationResultResponse diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts index 60fd4d0ccd8a..383a74d1df5a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts @@ -32,39 +32,21 @@ export class BackupCrrJobDetails { * @param [options] The optional parameters * @returns Promise */ - get( - azureRegion: string, - parameters: Models.CrrJobRequest, - options?: msRest.RequestOptionsBase - ): Promise; + get(azureRegion: string, parameters: Models.CrrJobRequest, options?: msRest.RequestOptionsBase): Promise; /** * @param azureRegion Azure region to hit Api * @param parameters CRR Job request * @param callback The callback */ - get( - azureRegion: string, - parameters: Models.CrrJobRequest, - callback: msRest.ServiceCallback - ): void; + get(azureRegion: string, parameters: Models.CrrJobRequest, callback: msRest.ServiceCallback): void; /** * @param azureRegion Azure region to hit Api * @param parameters CRR Job request * @param options The optional parameters * @param callback The callback */ - get( - azureRegion: string, - parameters: Models.CrrJobRequest, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - azureRegion: string, - parameters: Models.CrrJobRequest, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(azureRegion: string, parameters: Models.CrrJobRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, parameters: Models.CrrJobRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { azureRegion, @@ -72,8 +54,7 @@ export class BackupCrrJobDetails { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -81,11 +62,17 @@ export class BackupCrrJobDetails { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJob", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJob", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts index 80b8046c906e..2e25ff77a4d9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts @@ -32,41 +32,21 @@ export class BackupCrrJobs { * @param [options] The optional parameters * @returns Promise */ - list( - azureRegion: string, - parameters: Models.CrrJobRequest, - options?: Models.BackupCrrJobsListOptionalParams - ): Promise; + list(azureRegion: string, parameters: Models.CrrJobRequest, options?: Models.BackupCrrJobsListOptionalParams): Promise; /** * @param azureRegion Azure region to hit Api * @param parameters Backup CRR Job request * @param callback The callback */ - list( - azureRegion: string, - parameters: Models.CrrJobRequest, - callback: msRest.ServiceCallback - ): void; + list(azureRegion: string, parameters: Models.CrrJobRequest, callback: msRest.ServiceCallback): void; /** * @param azureRegion Azure region to hit Api * @param parameters Backup CRR Job request * @param options The optional parameters * @param callback The callback */ - list( - azureRegion: string, - parameters: Models.CrrJobRequest, - options: Models.BackupCrrJobsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - azureRegion: string, - parameters: Models.CrrJobRequest, - options?: - | Models.BackupCrrJobsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(azureRegion: string, parameters: Models.CrrJobRequest, options: Models.BackupCrrJobsListOptionalParams, callback: msRest.ServiceCallback): void; + list(azureRegion: string, parameters: Models.CrrJobRequest, options?: Models.BackupCrrJobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { azureRegion, @@ -74,8 +54,7 @@ export class BackupCrrJobs { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -84,10 +63,7 @@ export class BackupCrrJobs { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupCrrJobsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupCrrJobsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -98,26 +74,15 @@ export class BackupCrrJobs { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupCrrJobsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupCrrJobsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupCrrJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupCrrJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -125,11 +90,19 @@ export class BackupCrrJobs { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJobs", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJobs", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -152,9 +125,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "POST", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.JobResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts index 2bf63551c984..c3ebf07f9475 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts @@ -34,22 +34,14 @@ export class BackupEngines { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupEnginesListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupEnginesListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -57,20 +49,8 @@ export class BackupEngines { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupEnginesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupEnginesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupEnginesListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupEnginesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -78,8 +58,7 @@ export class BackupEngines { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,12 +70,7 @@ export class BackupEngines { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - backupEngineName: string, - options?: Models.BackupEnginesGetOptionalParams - ): Promise; + get(vaultName: string, resourceGroupName: string, backupEngineName: string, options?: Models.BackupEnginesGetOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -104,12 +78,7 @@ export class BackupEngines { * @param backupEngineName Name of the backup management server. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - backupEngineName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, backupEngineName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -118,22 +87,8 @@ export class BackupEngines { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - backupEngineName: string, - options: Models.BackupEnginesGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - backupEngineName: string, - options?: - | Models.BackupEnginesGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, backupEngineName: string, options: Models.BackupEnginesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, backupEngineName: string, options?: Models.BackupEnginesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -142,8 +97,7 @@ export class BackupEngines { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -153,43 +107,26 @@ export class BackupEngines { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupEnginesListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupEnginesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupEnginesListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupEnginesListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupEnginesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupEnginesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -197,11 +134,20 @@ export class BackupEngines { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupEngineBaseResourceList @@ -215,16 +161,21 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.backupEngineName ], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupEngineBaseResource @@ -240,9 +191,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupEngineBaseResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts index 0d24d427ed6f..c48c8fdb1802 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts @@ -33,22 +33,14 @@ export class BackupJobs { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupJobsListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupJobsListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,18 +48,8 @@ export class BackupJobs { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupJobsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupJobsListOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupJobsListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupJobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -75,8 +57,7 @@ export class BackupJobs { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,10 +66,7 @@ export class BackupJobs { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupJobsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupJobsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -99,26 +77,15 @@ export class BackupJobs { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupJobsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupJobsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -126,11 +93,20 @@ export class BackupJobs { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.JobResourceList @@ -146,9 +122,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.JobResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts index 886b27e600fa..0bca2942f1ec 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts @@ -39,12 +39,7 @@ export class BackupOperationResults { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -52,12 +47,7 @@ export class BackupOperationResults { * @param operationId OperationID which represents the operation. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -66,20 +56,8 @@ export class BackupOperationResults { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -88,8 +66,7 @@ export class BackupOperationResults { options }, getOperationSpec, - callback - ); + callback); } } @@ -97,16 +74,19 @@ export class BackupOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts index 025fa7015648..9b45cfbb7cc1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts @@ -38,12 +38,7 @@ export class BackupOperationStatuses { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -51,12 +46,7 @@ export class BackupOperationStatuses { * @param operationId OperationID which represents the operation. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -65,20 +55,8 @@ export class BackupOperationStatuses { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -87,8 +65,7 @@ export class BackupOperationStatuses { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -96,16 +73,19 @@ export class BackupOperationStatuses { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationStatus diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts index 75788a204848..802d87edb5b5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts @@ -35,22 +35,14 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupPoliciesListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupPoliciesListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -58,20 +50,8 @@ export class BackupPolicies { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupPoliciesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupPoliciesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupPoliciesListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupPoliciesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -79,8 +59,7 @@ export class BackupPolicies { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,43 +70,26 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupPoliciesListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupPoliciesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupPoliciesListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupPoliciesListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupPoliciesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupPoliciesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -135,11 +97,19 @@ export class BackupPolicies { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionPolicyResourceList @@ -155,9 +125,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionPolicyResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts index b293c1224b78..74f0b4641bff 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts @@ -35,22 +35,14 @@ export class BackupProtectableItems { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupProtectableItemsListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectableItemsListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -58,20 +50,8 @@ export class BackupProtectableItems { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupProtectableItemsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupProtectableItemsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupProtectableItemsListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectableItemsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -79,8 +59,7 @@ export class BackupProtectableItems { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -91,43 +70,26 @@ export class BackupProtectableItems { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupProtectableItemsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectableItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupProtectableItemsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupProtectableItemsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectableItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectableItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -135,11 +97,20 @@ export class BackupProtectableItems { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.WorkloadProtectableItemResourceList @@ -155,9 +126,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.WorkloadProtectableItemResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts index a6f15c15fda2..64ccb9c8d104 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts @@ -33,22 +33,14 @@ export class BackupProtectedItems { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupProtectedItemsListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectedItemsListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupProtectedItems { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupProtectedItemsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupProtectedItemsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupProtectedItemsListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectedItemsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupProtectedItems { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,43 +66,26 @@ export class BackupProtectedItems { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupProtectedItemsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupProtectedItemsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupProtectedItemsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectedItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -131,11 +93,20 @@ export class BackupProtectedItems { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectedItemResourceList @@ -151,9 +122,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectedItemResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts index b99d87e81046..0f444c1f62fc 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts @@ -33,22 +33,14 @@ export class BackupProtectedItemsCrr { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupProtectedItemsCrrListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectedItemsCrrListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupProtectedItemsCrr { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupProtectedItemsCrrListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupProtectedItemsCrrListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupProtectedItemsCrrListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectedItemsCrrListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupProtectedItemsCrr { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,43 +66,26 @@ export class BackupProtectedItemsCrr { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupProtectedItemsCrrListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsCrrListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupProtectedItemsCrrListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupProtectedItemsCrrListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectedItemsCrrListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsCrrListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -131,11 +93,20 @@ export class BackupProtectedItemsCrr { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems/", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems/", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectedItemResourceList @@ -151,9 +122,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectedItemResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts index 5ba9ca489818..9325cecbc2f9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts @@ -33,22 +33,14 @@ export class BackupProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupProtectionContainersListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectionContainersListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupProtectionContainers { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupProtectionContainersListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupProtectionContainersListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupProtectionContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectionContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupProtectionContainers { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,43 +66,26 @@ export class BackupProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupProtectionContainersListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectionContainersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupProtectionContainersListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupProtectionContainersListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectionContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectionContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -131,11 +93,19 @@ export class BackupProtectionContainers { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionContainerResourceList @@ -151,9 +121,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionContainerResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts index b9267af25c08..4a4700e7d5b5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts @@ -33,22 +33,14 @@ export class BackupProtectionIntent { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupProtectionIntentListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectionIntentListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupProtectionIntent { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupProtectionIntentListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupProtectionIntentListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupProtectionIntentListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupProtectionIntentListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupProtectionIntent { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,43 +66,26 @@ export class BackupProtectionIntent { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupProtectionIntentListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectionIntentListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupProtectionIntentListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupProtectionIntentListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupProtectionIntentListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectionIntentListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -131,11 +93,20 @@ export class BackupProtectionIntent { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionIntentResourceList @@ -151,9 +122,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionIntentResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts index 5202dce83827..e7d9f929b0ed 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts @@ -33,22 +33,14 @@ export class BackupResourceEncryptionConfigs { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupResourceEncryptionConfigs { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupResourceEncryptionConfigs { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -90,12 +69,7 @@ export class BackupResourceEncryptionConfigs { * @param [options] The optional parameters * @returns Promise */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceEncryptionConfigResource, - options?: msRest.RequestOptionsBase - ): Promise; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -103,12 +77,7 @@ export class BackupResourceEncryptionConfigs { * @param parameters Vault encryption input config request * @param callback The callback */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceEncryptionConfigResource, - callback: msRest.ServiceCallback - ): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -117,20 +86,8 @@ export class BackupResourceEncryptionConfigs { * @param options The optional parameters * @param callback The callback */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceEncryptionConfigResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceEncryptionConfigResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceEncryptionConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -139,8 +96,7 @@ export class BackupResourceEncryptionConfigs { options }, updateOperationSpec, - callback - ); + callback); } } @@ -148,14 +104,21 @@ export class BackupResourceEncryptionConfigs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { - bodyMapper: Mappers.BackupResourceEncryptionConfigResource + bodyMapper: Mappers.BackupResourceEncryptionConfigExtendedResource }, default: { bodyMapper: Mappers.NewErrorResponse @@ -166,11 +129,18 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts index e74dbc0f4749..ad8882f28b87 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts @@ -33,22 +33,14 @@ export class BackupResourceStorageConfigs { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupResourceStorageConfigs { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupResourceStorageConfigs { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -90,12 +69,7 @@ export class BackupResourceStorageConfigs { * @param [options] The optional parameters * @returns Promise */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceConfigResource, - options?: msRest.RequestOptionsBase - ): Promise; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -103,12 +77,7 @@ export class BackupResourceStorageConfigs { * @param parameters Vault storage config request * @param callback The callback */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceConfigResource, - callback: msRest.ServiceCallback - ): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -117,22 +86,8 @@ export class BackupResourceStorageConfigs { * @param options The optional parameters * @param callback The callback */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceConfigResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceConfigResource, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -141,8 +96,7 @@ export class BackupResourceStorageConfigs { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -154,12 +108,7 @@ export class BackupResourceStorageConfigs { * @param [options] The optional parameters * @returns Promise */ - patch( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceConfigResource, - options?: msRest.RequestOptionsBase - ): Promise; + patch(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -167,12 +116,7 @@ export class BackupResourceStorageConfigs { * @param parameters Vault storage config request * @param callback The callback */ - patch( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceConfigResource, - callback: msRest.ServiceCallback - ): void; + patch(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -181,20 +125,8 @@ export class BackupResourceStorageConfigs { * @param options The optional parameters * @param callback The callback */ - patch( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceConfigResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - patch( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceConfigResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + patch(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + patch(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -203,8 +135,7 @@ export class BackupResourceStorageConfigs { options }, patchOperationSpec, - callback - ); + callback); } } @@ -212,11 +143,18 @@ export class BackupResourceStorageConfigs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupResourceConfigResource @@ -230,11 +168,18 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -255,11 +200,18 @@ const updateOperationSpec: msRest.OperationSpec = { const patchOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts index 6845c7e2b273..ec4af9d145a9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts @@ -33,22 +33,14 @@ export class BackupResourceVaultConfigs { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupResourceVaultConfigs { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupResourceVaultConfigs { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -90,12 +69,7 @@ export class BackupResourceVaultConfigs { * @param [options] The optional parameters * @returns Promise */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceVaultConfigResource, - options?: msRest.RequestOptionsBase - ): Promise; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceVaultConfigResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -103,12 +77,7 @@ export class BackupResourceVaultConfigs { * @param parameters resource config request * @param callback The callback */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceVaultConfigResource, - callback: msRest.ServiceCallback - ): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceVaultConfigResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -117,22 +86,8 @@ export class BackupResourceVaultConfigs { * @param options The optional parameters * @param callback The callback */ - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceVaultConfigResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceVaultConfigResource, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceVaultConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceVaultConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -141,8 +96,7 @@ export class BackupResourceVaultConfigs { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -154,12 +108,7 @@ export class BackupResourceVaultConfigs { * @param [options] The optional parameters * @returns Promise */ - put( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceVaultConfigResource, - options?: msRest.RequestOptionsBase - ): Promise; + put(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceVaultConfigResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -167,12 +116,7 @@ export class BackupResourceVaultConfigs { * @param parameters resource config request * @param callback The callback */ - put( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceVaultConfigResource, - callback: msRest.ServiceCallback - ): void; + put(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceVaultConfigResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -181,22 +125,8 @@ export class BackupResourceVaultConfigs { * @param options The optional parameters * @param callback The callback */ - put( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceVaultConfigResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - put( - vaultName: string, - resourceGroupName: string, - parameters: Models.BackupResourceVaultConfigResource, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + put(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceVaultConfigResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + put(vaultName: string, resourceGroupName: string, parameters: Models.BackupResourceVaultConfigResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -205,8 +135,7 @@ export class BackupResourceVaultConfigs { options }, putOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -214,11 +143,18 @@ export class BackupResourceVaultConfigs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupResourceVaultConfigResource @@ -232,11 +168,18 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -257,11 +200,18 @@ const updateOperationSpec: msRest.OperationSpec = { const putOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts index bcc5944088fb..fa17599358c4 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts @@ -32,39 +32,21 @@ export class BackupStatus { * @param [options] The optional parameters * @returns Promise */ - get( - azureRegion: string, - parameters: Models.BackupStatusRequest, - options?: msRest.RequestOptionsBase - ): Promise; + get(azureRegion: string, parameters: Models.BackupStatusRequest, options?: msRest.RequestOptionsBase): Promise; /** * @param azureRegion Azure region to hit Api * @param parameters Container Backup Status Request * @param callback The callback */ - get( - azureRegion: string, - parameters: Models.BackupStatusRequest, - callback: msRest.ServiceCallback - ): void; + get(azureRegion: string, parameters: Models.BackupStatusRequest, callback: msRest.ServiceCallback): void; /** * @param azureRegion Azure region to hit Api * @param parameters Container Backup Status Request * @param options The optional parameters * @param callback The callback */ - get( - azureRegion: string, - parameters: Models.BackupStatusRequest, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - azureRegion: string, - parameters: Models.BackupStatusRequest, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(azureRegion: string, parameters: Models.BackupStatusRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, parameters: Models.BackupStatusRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { azureRegion, @@ -72,8 +54,7 @@ export class BackupStatus { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -81,11 +62,17 @@ export class BackupStatus { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupStatus", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupStatus", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts index 0255409011fd..3d045f6a2617 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts @@ -33,22 +33,14 @@ export class BackupUsageSummaries { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupUsageSummariesListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupUsageSummariesListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupUsageSummaries { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupUsageSummariesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupUsageSummariesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupUsageSummariesListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupUsageSummariesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupUsageSummaries { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -86,11 +65,20 @@ export class BackupUsageSummaries { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupManagementUsageList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts index 1143f90c5a14..02b7f2a70c77 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts @@ -33,22 +33,14 @@ export class BackupUsageSummariesCRR { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - options?: Models.BackupUsageSummariesCRRListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupUsageSummariesCRRListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,20 +48,8 @@ export class BackupUsageSummariesCRR { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - options: Models.BackupUsageSummariesCRRListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - options?: - | Models.BackupUsageSummariesCRRListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, options: Models.BackupUsageSummariesCRRListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, options?: Models.BackupUsageSummariesCRRListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -77,8 +57,7 @@ export class BackupUsageSummariesCRR { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -86,11 +65,20 @@ export class BackupUsageSummariesCRR { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BackupManagementUsageList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts index 702117027c8b..425b8d90da37 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts @@ -37,13 +37,7 @@ export class BackupWorkloadItems { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options?: Models.BackupWorkloadItemsListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: Models.BackupWorkloadItemsListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -52,13 +46,7 @@ export class BackupWorkloadItems { * @param containerName Name of the container. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -68,24 +56,8 @@ export class BackupWorkloadItems { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options: Models.BackupWorkloadItemsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options?: - | Models.BackupWorkloadItemsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options: Models.BackupWorkloadItemsListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: Models.BackupWorkloadItemsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -95,8 +67,7 @@ export class BackupWorkloadItems { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -107,43 +78,26 @@ export class BackupWorkloadItems { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.BackupWorkloadItemsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.BackupWorkloadItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.BackupWorkloadItemsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.BackupWorkloadItemsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.BackupWorkloadItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupWorkloadItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -151,8 +105,7 @@ export class BackupWorkloadItems { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -160,8 +113,14 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.WorkloadItemResourceList @@ -177,9 +136,17 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter, Parameters.skipToken], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.WorkloadItemResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts index e17b17f12ed7..1f1e35c2e1c1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts @@ -39,15 +39,7 @@ export class Backups { * @param [options] The optional parameters * @returns Promise */ - trigger( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.BackupRequestResource, - options?: msRest.RequestOptionsBase - ): Promise; + trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.BackupRequestResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -58,15 +50,7 @@ export class Backups { * @param parameters resource backup request * @param callback The callback */ - trigger( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.BackupRequestResource, - callback: msRest.ServiceCallback - ): void; + trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.BackupRequestResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -78,26 +62,8 @@ export class Backups { * @param options The optional parameters * @param callback The callback */ - trigger( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.BackupRequestResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - trigger( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.BackupRequestResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.BackupRequestResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.BackupRequestResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -109,8 +75,7 @@ export class Backups { options }, triggerOperationSpec, - callback - ); + callback); } } @@ -118,8 +83,7 @@ export class Backups { const serializer = new msRest.Serializer(Mappers); const triggerOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/backup", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -128,8 +92,12 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts index 293a7830584e..fd5493cb1ff2 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts @@ -34,14 +34,9 @@ export class CrossRegionRestore { * @param [options] The optional parameters * @returns Promise */ - trigger( - azureRegion: string, - parameters: Models.CrossRegionRestoreRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginTrigger(azureRegion, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + trigger(azureRegion: string, parameters: Models.CrossRegionRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginTrigger(azureRegion,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -52,11 +47,7 @@ export class CrossRegionRestore { * @param [options] The optional parameters * @returns Promise */ - beginTrigger( - azureRegion: string, - parameters: Models.CrossRegionRestoreRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginTrigger(azureRegion: string, parameters: Models.CrossRegionRestoreRequest, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { azureRegion, @@ -64,8 +55,7 @@ export class CrossRegionRestore { options }, beginTriggerOperationSpec, - options - ); + options); } } @@ -73,11 +63,17 @@ export class CrossRegionRestore { const serializer = new msRest.Serializer(Mappers); const beginTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrossRegionRestore", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion1], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrossRegionRestore", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts index 058380fe3565..a20e685b63bc 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts @@ -30,11 +30,7 @@ export class CrrOperationResults { * @param [options] The optional parameters * @returns Promise */ - get( - azureRegion: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param azureRegion Azure region to hit Api * @param operationId @@ -47,18 +43,8 @@ export class CrrOperationResults { * @param options The optional parameters * @param callback The callback */ - get( - azureRegion: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - azureRegion: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(azureRegion: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { azureRegion, @@ -66,8 +52,7 @@ export class CrrOperationResults { options }, getOperationSpec, - callback - ); + callback); } } @@ -75,11 +60,18 @@ export class CrrOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationResults/{operationId}", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId, Parameters.operationId], - queryParameters: [Parameters.apiVersion1], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationResults/{operationId}", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts index 585470e30c6c..b398dff30c42 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts @@ -31,39 +31,21 @@ export class CrrOperationStatus { * @param [options] The optional parameters * @returns Promise */ - get( - azureRegion: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param azureRegion Azure region to hit Api * @param operationId * @param callback The callback */ - get( - azureRegion: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(azureRegion: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param azureRegion Azure region to hit Api * @param operationId * @param options The optional parameters * @param callback The callback */ - get( - azureRegion: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - azureRegion: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(azureRegion: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(azureRegion: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { azureRegion, @@ -71,8 +53,7 @@ export class CrrOperationStatus { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -80,11 +61,18 @@ export class CrrOperationStatus { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationsStatus/{operationId}", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId, Parameters.operationId], - queryParameters: [Parameters.apiVersion1], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationsStatus/{operationId}", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationStatus diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts index 42aa67578d76..2675bad2842f 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts @@ -37,12 +37,7 @@ export class ExportJobsOperationResults { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -50,12 +45,7 @@ export class ExportJobsOperationResults { * @param operationId OperationID which represents the export job. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -64,22 +54,8 @@ export class ExportJobsOperationResults { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -88,8 +64,7 @@ export class ExportJobsOperationResults { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -97,16 +72,19 @@ export class ExportJobsOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationResultInfoBaseResource diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts index 21c98f364989..972e5fbe1cf6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts @@ -32,41 +32,21 @@ export class FeatureSupport { * @param [options] The optional parameters * @returns Promise */ - validate( - azureRegion: string, - parameters: Models.FeatureSupportRequestUnion, - options?: msRest.RequestOptionsBase - ): Promise; + validate(azureRegion: string, parameters: Models.FeatureSupportRequestUnion, options?: msRest.RequestOptionsBase): Promise; /** * @param azureRegion Azure region to hit Api * @param parameters Feature support request object * @param callback The callback */ - validate( - azureRegion: string, - parameters: Models.FeatureSupportRequestUnion, - callback: msRest.ServiceCallback - ): void; + validate(azureRegion: string, parameters: Models.FeatureSupportRequestUnion, callback: msRest.ServiceCallback): void; /** * @param azureRegion Azure region to hit Api * @param parameters Feature support request object * @param options The optional parameters * @param callback The callback */ - validate( - azureRegion: string, - parameters: Models.FeatureSupportRequestUnion, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - validate( - azureRegion: string, - parameters: Models.FeatureSupportRequestUnion, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + validate(azureRegion: string, parameters: Models.FeatureSupportRequestUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validate(azureRegion: string, parameters: Models.FeatureSupportRequestUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { azureRegion, @@ -74,8 +54,7 @@ export class FeatureSupport { options }, validateOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -83,11 +62,17 @@ export class FeatureSupport { const serializer = new msRest.Serializer(Mappers); const validateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupValidateFeatures", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupValidateFeatures", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts index 17ae7a676ac6..e70b5e33b300 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts @@ -7,6 +7,12 @@ * regenerated. */ +export * from "./protectionIntentOperations"; +export * from "./backupStatus"; +export * from "./featureSupport"; +export * from "./backupProtectionIntent"; +export * from "./backupUsageSummaries"; +export * from "./operations"; export * from "./backupResourceVaultConfigs"; export * from "./backupResourceEncryptionConfigs"; export * from "./privateEndpointConnectionOperations"; @@ -53,9 +59,3 @@ export * from "./crrOperationStatus"; export * from "./backupResourceStorageConfigs"; export * from "./recoveryPointsCrr"; export * from "./backupProtectedItemsCrr"; -export * from "./protectionIntentOperations"; -export * from "./backupStatus"; -export * from "./featureSupport"; -export * from "./backupProtectionIntent"; -export * from "./backupUsageSummaries"; -export * from "./operations"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts index 82b8dc23495e..bff3da7f66a8 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts @@ -44,16 +44,7 @@ export class ItemLevelRecoveryConnections { * @param [options] The optional parameters * @returns Promise */ - provision( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.ILRRequestResource, - options?: msRest.RequestOptionsBase - ): Promise; + provision(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.ILRRequestResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -67,16 +58,7 @@ export class ItemLevelRecoveryConnections { * @param parameters resource ILR request * @param callback The callback */ - provision( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.ILRRequestResource, - callback: msRest.ServiceCallback - ): void; + provision(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.ILRRequestResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -91,28 +73,8 @@ export class ItemLevelRecoveryConnections { * @param options The optional parameters * @param callback The callback */ - provision( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.ILRRequestResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - provision( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.ILRRequestResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + provision(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.ILRRequestResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + provision(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.ILRRequestResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -125,8 +87,7 @@ export class ItemLevelRecoveryConnections { options }, provisionOperationSpec, - callback - ); + callback); } /** @@ -145,15 +106,7 @@ export class ItemLevelRecoveryConnections { * @param [options] The optional parameters * @returns Promise */ - revoke( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - options?: msRest.RequestOptionsBase - ): Promise; + revoke(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -166,15 +119,7 @@ export class ItemLevelRecoveryConnections { * this backed up data. * @param callback The callback */ - revoke( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - callback: msRest.ServiceCallback - ): void; + revoke(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -188,26 +133,8 @@ export class ItemLevelRecoveryConnections { * @param options The optional parameters * @param callback The callback */ - revoke( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - revoke( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + revoke(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + revoke(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -219,8 +146,7 @@ export class ItemLevelRecoveryConnections { options }, revokeOperationSpec, - callback - ); + callback); } } @@ -228,8 +154,7 @@ export class ItemLevelRecoveryConnections { const serializer = new msRest.Serializer(Mappers); const provisionOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/provisionInstantItemRecovery", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/provisionInstantItemRecovery", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -239,8 +164,12 @@ const provisionOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.recoveryPointId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -259,8 +188,7 @@ const provisionOperationSpec: msRest.OperationSpec = { const revokeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/revokeInstantItemRecovery", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/revokeInstantItemRecovery", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -270,8 +198,12 @@ const revokeOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.recoveryPointId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, default: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts index b10a37d81a88..ccdafd6a982c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts @@ -34,12 +34,7 @@ export class JobCancellations { * @param [options] The optional parameters * @returns Promise */ - trigger( - vaultName: string, - resourceGroupName: string, - jobName: string, - options?: msRest.RequestOptionsBase - ): Promise; + trigger(vaultName: string, resourceGroupName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -47,12 +42,7 @@ export class JobCancellations { * @param jobName Name of the job to cancel. * @param callback The callback */ - trigger( - vaultName: string, - resourceGroupName: string, - jobName: string, - callback: msRest.ServiceCallback - ): void; + trigger(vaultName: string, resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -61,20 +51,8 @@ export class JobCancellations { * @param options The optional parameters * @param callback The callback */ - trigger( - vaultName: string, - resourceGroupName: string, - jobName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - trigger( - vaultName: string, - resourceGroupName: string, - jobName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + trigger(vaultName: string, resourceGroupName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + trigger(vaultName: string, resourceGroupName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -83,8 +61,7 @@ export class JobCancellations { options }, triggerOperationSpec, - callback - ); + callback); } } @@ -92,16 +69,19 @@ export class JobCancellations { const serializer = new msRest.Serializer(Mappers); const triggerOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.jobName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, default: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts index d5ca623db423..2ded9da4738c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts @@ -34,12 +34,7 @@ export class JobDetails { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - jobName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -47,12 +42,7 @@ export class JobDetails { * @param jobName Name of the job whose details are to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - jobName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -61,20 +51,8 @@ export class JobDetails { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - jobName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - jobName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -83,8 +61,7 @@ export class JobDetails { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -92,16 +69,19 @@ export class JobDetails { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.jobName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.JobResource diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts index 18ab36e75100..69aac7aa311b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts @@ -34,13 +34,7 @@ export class JobOperationResults { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - jobName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, jobName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -49,13 +43,7 @@ export class JobOperationResults { * @param operationId OperationID which represents the operation whose result has to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - jobName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, jobName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -65,22 +53,8 @@ export class JobOperationResults { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - jobName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - jobName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, jobName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, jobName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -90,8 +64,7 @@ export class JobOperationResults { options }, getOperationSpec, - callback - ); + callback); } } @@ -99,8 +72,7 @@ export class JobOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -108,8 +80,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.jobName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts index 9c159e961400..5e1656597d12 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts @@ -33,22 +33,14 @@ export class Jobs { * @param [options] The optional parameters * @returns Promise */ - exportMethod( - vaultName: string, - resourceGroupName: string, - options?: Models.JobsExportMethodOptionalParams - ): Promise; + exportMethod(vaultName: string, resourceGroupName: string, options?: Models.JobsExportMethodOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - exportMethod( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + exportMethod(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,18 +48,8 @@ export class Jobs { * @param options The optional parameters * @param callback The callback */ - exportMethod( - vaultName: string, - resourceGroupName: string, - options: Models.JobsExportMethodOptionalParams, - callback: msRest.ServiceCallback - ): void; - exportMethod( - vaultName: string, - resourceGroupName: string, - options?: Models.JobsExportMethodOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + exportMethod(vaultName: string, resourceGroupName: string, options: Models.JobsExportMethodOptionalParams, callback: msRest.ServiceCallback): void; + exportMethod(vaultName: string, resourceGroupName: string, options?: Models.JobsExportMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -75,8 +57,7 @@ export class Jobs { options }, exportMethodOperationSpec, - callback - ); + callback); } } @@ -84,11 +65,19 @@ export class Jobs { const serializer = new msRest.Serializer(Mappers); const exportMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, default: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts index 01f67d0b6b89..33aeb7df4a85 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts @@ -34,12 +34,7 @@ export class Operation { * @param [options] The optional parameters * @returns Promise */ - validate( - vaultName: string, - resourceGroupName: string, - parameters: Models.ValidateOperationRequestUnion, - options?: msRest.RequestOptionsBase - ): Promise; + validate(vaultName: string, resourceGroupName: string, parameters: Models.ValidateOperationRequestUnion, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -47,12 +42,7 @@ export class Operation { * @param parameters resource validate operation request * @param callback The callback */ - validate( - vaultName: string, - resourceGroupName: string, - parameters: Models.ValidateOperationRequestUnion, - callback: msRest.ServiceCallback - ): void; + validate(vaultName: string, resourceGroupName: string, parameters: Models.ValidateOperationRequestUnion, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -61,20 +51,8 @@ export class Operation { * @param options The optional parameters * @param callback The callback */ - validate( - vaultName: string, - resourceGroupName: string, - parameters: Models.ValidateOperationRequestUnion, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - validate( - vaultName: string, - resourceGroupName: string, - parameters: Models.ValidateOperationRequestUnion, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + validate(vaultName: string, resourceGroupName: string, parameters: Models.ValidateOperationRequestUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validate(vaultName: string, resourceGroupName: string, parameters: Models.ValidateOperationRequestUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -83,8 +61,7 @@ export class Operation { options }, validateOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -92,11 +69,18 @@ export class Operation { const serializer = new msRest.Serializer(Mappers); const validateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts index bdcdb85b3a31..126c0cf51ff8 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts @@ -39,21 +39,14 @@ export class Operations { * @param options The optional parameters * @param callback The callback */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -62,41 +55,26 @@ export class Operations { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -105,8 +83,12 @@ const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.RecoveryServices/operations", - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClientDiscoveryResponse @@ -122,9 +104,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClientDiscoveryResponse diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts index 06cc4a74e61b..4c002992b0bb 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts @@ -35,12 +35,7 @@ export class PrivateEndpointConnectionOperations { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -48,12 +43,7 @@ export class PrivateEndpointConnectionOperations { * @param privateEndpointConnectionName The name of the private endpoint connection. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -62,22 +52,8 @@ export class PrivateEndpointConnectionOperations { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -86,8 +62,7 @@ export class PrivateEndpointConnectionOperations { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -100,22 +75,9 @@ export class PrivateEndpointConnectionOperations { * @param [options] The optional parameters * @returns Promise */ - put( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - parameters: Models.PrivateEndpointConnectionResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginPut( - vaultName, - resourceGroupName, - privateEndpointConnectionName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.PrivateEndpointConnectionPutResponse - >; + put(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnectionResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginPut(vaultName,resourceGroupName,privateEndpointConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -127,18 +89,9 @@ export class PrivateEndpointConnectionOperations { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - vaultName, - resourceGroupName, - privateEndpointConnectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(vaultName,resourceGroupName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -151,13 +104,7 @@ export class PrivateEndpointConnectionOperations { * @param [options] The optional parameters * @returns Promise */ - beginPut( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - parameters: Models.PrivateEndpointConnectionResource, - options?: msRest.RequestOptionsBase - ): Promise { + beginPut(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnectionResource, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { vaultName, @@ -167,8 +114,7 @@ export class PrivateEndpointConnectionOperations { options }, beginPutOperationSpec, - options - ); + options); } /** @@ -180,12 +126,7 @@ export class PrivateEndpointConnectionOperations { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { vaultName, @@ -194,8 +135,7 @@ export class PrivateEndpointConnectionOperations { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -203,16 +143,19 @@ export class PrivateEndpointConnectionOperations { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnectionResource @@ -226,16 +169,19 @@ const getOperationSpec: msRest.OperationSpec = { const beginPutOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -259,16 +205,19 @@ const beginPutOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts index e2c39915da65..20d37575ffa8 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts @@ -35,13 +35,7 @@ export class PrivateEndpointOperations { * @param [options] The optional parameters * @returns Promise */ - getOperationStatus( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -50,13 +44,7 @@ export class PrivateEndpointOperations { * @param operationId Operation id * @param callback The callback */ - getOperationStatus( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -66,22 +54,8 @@ export class PrivateEndpointOperations { * @param options The optional parameters * @param callback The callback */ - getOperationStatus( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getOperationStatus( - vaultName: string, - resourceGroupName: string, - privateEndpointConnectionName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -91,8 +65,7 @@ export class PrivateEndpointOperations { options }, getOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -100,8 +73,7 @@ export class PrivateEndpointOperations { const serializer = new msRest.Serializer(Mappers); const getOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -109,8 +81,12 @@ const getOperationStatusOperationSpec: msRest.OperationSpec = { Parameters.privateEndpointConnectionName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationStatus diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts index 8f20b9206463..5600655fd465 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts @@ -34,12 +34,7 @@ export class ProtectableContainers { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - options?: Models.ProtectableContainersListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.ProtectableContainersListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -47,12 +42,7 @@ export class ProtectableContainers { * @param fabricName * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -61,22 +51,8 @@ export class ProtectableContainers { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - options: Models.ProtectableContainersListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - options?: - | Models.ProtectableContainersListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, fabricName: string, options: Models.ProtectableContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.ProtectableContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -85,8 +61,7 @@ export class ProtectableContainers { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -95,43 +70,26 @@ export class ProtectableContainers { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.ProtectableContainersListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.ProtectableContainersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.ProtectableContainersListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.ProtectableContainersListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.ProtectableContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ProtectableContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -139,16 +97,20 @@ export class ProtectableContainers { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.fabricName ], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectableContainerResourceList @@ -164,9 +126,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectableContainerResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts index 4cb7ea3a0604..1c7974cbf442 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts @@ -37,15 +37,7 @@ export class ProtectedItemOperationResults { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,15 +48,7 @@ export class ProtectedItemOperationResults { * @param operationId OperationID which represents the operation whose result needs to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -76,26 +60,8 @@ export class ProtectedItemOperationResults { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -107,8 +73,7 @@ export class ProtectedItemOperationResults { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -116,8 +81,7 @@ export class ProtectedItemOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -127,8 +91,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectedItemResource diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts index 1c59cf116ce5..a4539ff030ea 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts @@ -41,15 +41,7 @@ export class ProtectedItemOperationStatuses { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -60,15 +52,7 @@ export class ProtectedItemOperationStatuses { * @param operationId OperationID represents the operation whose status needs to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -80,26 +64,8 @@ export class ProtectedItemOperationStatuses { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -111,8 +77,7 @@ export class ProtectedItemOperationStatuses { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -120,8 +85,7 @@ export class ProtectedItemOperationStatuses { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -131,8 +95,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationStatus diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts index 057f58807854..dbb4bc244143 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts @@ -38,14 +38,7 @@ export class ProtectedItems { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options?: Models.ProtectedItemsGetOptionalParams - ): Promise; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.ProtectedItemsGetOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -55,14 +48,7 @@ export class ProtectedItems { * @param protectedItemName Backed up item name whose details are to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -73,26 +59,8 @@ export class ProtectedItems { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options: Models.ProtectedItemsGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options?: - | Models.ProtectedItemsGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options: Models.ProtectedItemsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.ProtectedItemsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -103,8 +71,7 @@ export class ProtectedItems { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -122,15 +89,7 @@ export class ProtectedItems { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.ProtectedItemResource, - options?: msRest.RequestOptionsBase - ): Promise; + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ProtectedItemResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -141,15 +100,7 @@ export class ProtectedItems { * @param parameters resource backed up item * @param callback The callback */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.ProtectedItemResource, - callback: msRest.ServiceCallback - ): void; + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ProtectedItemResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -161,26 +112,8 @@ export class ProtectedItems { * @param options The optional parameters * @param callback The callback */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.ProtectedItemResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createOrUpdate( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.ProtectedItemResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ProtectedItemResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ProtectedItemResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -192,8 +125,7 @@ export class ProtectedItems { options }, createOrUpdateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -209,14 +141,7 @@ export class ProtectedItems { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -226,14 +151,7 @@ export class ProtectedItems { * @param protectedItemName Backed up item to be deleted. * @param callback The callback */ - deleteMethod( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - callback: msRest.ServiceCallback - ): void; + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -244,24 +162,8 @@ export class ProtectedItems { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -272,8 +174,7 @@ export class ProtectedItems { options }, deleteMethodOperationSpec, - callback - ); + callback); } } @@ -281,8 +182,7 @@ export class ProtectedItems { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -291,8 +191,13 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectedItemResource @@ -306,8 +211,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -316,8 +220,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -339,8 +247,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -349,8 +256,12 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts index 0a4b0a58d73f..fe6189b3fd39 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts @@ -36,14 +36,7 @@ export class ProtectionContainerOperationResults { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -53,14 +46,7 @@ export class ProtectionContainerOperationResults { * @param operationId Operation ID which represents the operation whose result needs to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -71,26 +57,8 @@ export class ProtectionContainerOperationResults { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - operationId: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -101,8 +69,7 @@ export class ProtectionContainerOperationResults { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -110,8 +77,7 @@ export class ProtectionContainerOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -120,8 +86,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionContainerResource diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts index ff8643406e14..7da6ff9c3fbc 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts @@ -34,13 +34,7 @@ export class ProtectionContainerRefreshOperationResults { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, fabricName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -49,13 +43,7 @@ export class ProtectionContainerRefreshOperationResults { * @param operationId Operation ID associated with the operation whose result needs to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -65,22 +53,8 @@ export class ProtectionContainerRefreshOperationResults { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, fabricName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -90,8 +64,7 @@ export class ProtectionContainerRefreshOperationResults { options }, getOperationSpec, - callback - ); + callback); } } @@ -99,8 +72,7 @@ export class ProtectionContainerRefreshOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -108,8 +80,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, 204: {}, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts index a9328ba5f22e..3a1f6fd8bf8e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts @@ -35,13 +35,7 @@ export class ProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -50,13 +44,7 @@ export class ProtectionContainers { * @param containerName Name of the container whose details need to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -66,24 +54,8 @@ export class ProtectionContainers { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -93,8 +65,7 @@ export class ProtectionContainers { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -111,14 +82,7 @@ export class ProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - register( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - parameters: Models.ProtectionContainerResource, - options?: msRest.RequestOptionsBase - ): Promise; + register(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, parameters: Models.ProtectionContainerResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -128,14 +92,7 @@ export class ProtectionContainers { * @param parameters Request body for operation * @param callback The callback */ - register( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - parameters: Models.ProtectionContainerResource, - callback: msRest.ServiceCallback - ): void; + register(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, parameters: Models.ProtectionContainerResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -146,26 +103,8 @@ export class ProtectionContainers { * @param options The optional parameters * @param callback The callback */ - register( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - parameters: Models.ProtectionContainerResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - register( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - parameters: Models.ProtectionContainerResource, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + register(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, parameters: Models.ProtectionContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + register(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, parameters: Models.ProtectionContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -176,8 +115,7 @@ export class ProtectionContainers { options }, registerOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -194,13 +132,7 @@ export class ProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - unregister( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options?: msRest.RequestOptionsBase - ): Promise; + unregister(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -210,13 +142,7 @@ export class ProtectionContainers { * Services Vault. * @param callback The callback */ - unregister( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + unregister(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -227,22 +153,8 @@ export class ProtectionContainers { * @param options The optional parameters * @param callback The callback */ - unregister( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - unregister( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + unregister(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + unregister(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -252,8 +164,7 @@ export class ProtectionContainers { options }, unregisterOperationSpec, - callback - ); + callback); } /** @@ -268,13 +179,7 @@ export class ProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - inquire( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options?: Models.ProtectionContainersInquireOptionalParams - ): Promise; + inquire(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: Models.ProtectionContainersInquireOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -283,13 +188,7 @@ export class ProtectionContainers { * @param containerName Name of the container in which inquiry needs to be triggered. * @param callback The callback */ - inquire( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - callback: msRest.ServiceCallback - ): void; + inquire(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -299,22 +198,8 @@ export class ProtectionContainers { * @param options The optional parameters * @param callback The callback */ - inquire( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options: Models.ProtectionContainersInquireOptionalParams, - callback: msRest.ServiceCallback - ): void; - inquire( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - options?: Models.ProtectionContainersInquireOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + inquire(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options: Models.ProtectionContainersInquireOptionalParams, callback: msRest.ServiceCallback): void; + inquire(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, options?: Models.ProtectionContainersInquireOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -324,8 +209,7 @@ export class ProtectionContainers { options }, inquireOperationSpec, - callback - ); + callback); } /** @@ -339,12 +223,7 @@ export class ProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - refresh( - vaultName: string, - resourceGroupName: string, - fabricName: string, - options?: Models.ProtectionContainersRefreshOptionalParams - ): Promise; + refresh(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.ProtectionContainersRefreshOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -352,12 +231,7 @@ export class ProtectionContainers { * @param fabricName Fabric name associated the container. * @param callback The callback */ - refresh( - vaultName: string, - resourceGroupName: string, - fabricName: string, - callback: msRest.ServiceCallback - ): void; + refresh(vaultName: string, resourceGroupName: string, fabricName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -366,20 +240,8 @@ export class ProtectionContainers { * @param options The optional parameters * @param callback The callback */ - refresh( - vaultName: string, - resourceGroupName: string, - fabricName: string, - options: Models.ProtectionContainersRefreshOptionalParams, - callback: msRest.ServiceCallback - ): void; - refresh( - vaultName: string, - resourceGroupName: string, - fabricName: string, - options?: Models.ProtectionContainersRefreshOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + refresh(vaultName: string, resourceGroupName: string, fabricName: string, options: Models.ProtectionContainersRefreshOptionalParams, callback: msRest.ServiceCallback): void; + refresh(vaultName: string, resourceGroupName: string, fabricName: string, options?: Models.ProtectionContainersRefreshOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -388,8 +250,7 @@ export class ProtectionContainers { options }, refreshOperationSpec, - callback - ); + callback); } } @@ -397,8 +258,7 @@ export class ProtectionContainers { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -406,8 +266,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionContainerResource @@ -421,8 +285,7 @@ const getOperationSpec: msRest.OperationSpec = { const registerOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -430,8 +293,12 @@ const registerOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -453,8 +320,7 @@ const registerOperationSpec: msRest.OperationSpec = { const unregisterOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -462,8 +328,12 @@ const unregisterOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -477,8 +347,7 @@ const unregisterOperationSpec: msRest.OperationSpec = { const inquireOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -486,8 +355,13 @@ const inquireOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.containerName ], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, default: { @@ -499,16 +373,20 @@ const inquireOperationSpec: msRest.OperationSpec = { const refreshOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.fabricName ], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 202: {}, default: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts index f047cf460784..35c2d7af7097 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts @@ -35,41 +35,21 @@ export class ProtectionIntentOperations { * @param [options] The optional parameters * @returns Promise */ - validate( - azureRegion: string, - parameters: Models.PreValidateEnableBackupRequest, - options?: msRest.RequestOptionsBase - ): Promise; + validate(azureRegion: string, parameters: Models.PreValidateEnableBackupRequest, options?: msRest.RequestOptionsBase): Promise; /** * @param azureRegion Azure region to hit Api * @param parameters Enable backup validation request on Virtual Machine * @param callback The callback */ - validate( - azureRegion: string, - parameters: Models.PreValidateEnableBackupRequest, - callback: msRest.ServiceCallback - ): void; + validate(azureRegion: string, parameters: Models.PreValidateEnableBackupRequest, callback: msRest.ServiceCallback): void; /** * @param azureRegion Azure region to hit Api * @param parameters Enable backup validation request on Virtual Machine * @param options The optional parameters * @param callback The callback */ - validate( - azureRegion: string, - parameters: Models.PreValidateEnableBackupRequest, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - validate( - azureRegion: string, - parameters: Models.PreValidateEnableBackupRequest, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + validate(azureRegion: string, parameters: Models.PreValidateEnableBackupRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validate(azureRegion: string, parameters: Models.PreValidateEnableBackupRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { azureRegion, @@ -77,8 +57,7 @@ export class ProtectionIntentOperations { options }, validateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -93,13 +72,7 @@ export class ProtectionIntentOperations { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -108,13 +81,7 @@ export class ProtectionIntentOperations { * @param intentObjectName Backed up item name whose details are to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -124,22 +91,8 @@ export class ProtectionIntentOperations { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -149,8 +102,7 @@ export class ProtectionIntentOperations { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -164,14 +116,7 @@ export class ProtectionIntentOperations { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - parameters: Models.ProtectionIntentResource, - options?: msRest.RequestOptionsBase - ): Promise; + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, parameters: Models.ProtectionIntentResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -181,14 +126,7 @@ export class ProtectionIntentOperations { * @param parameters resource backed up item * @param callback The callback */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - parameters: Models.ProtectionIntentResource, - callback: msRest.ServiceCallback - ): void; + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, parameters: Models.ProtectionIntentResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -199,24 +137,8 @@ export class ProtectionIntentOperations { * @param options The optional parameters * @param callback The callback */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - parameters: Models.ProtectionIntentResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createOrUpdate( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - parameters: Models.ProtectionIntentResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, parameters: Models.ProtectionIntentResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, parameters: Models.ProtectionIntentResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -227,8 +149,7 @@ export class ProtectionIntentOperations { options }, createOrUpdateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -241,13 +162,7 @@ export class ProtectionIntentOperations { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -256,13 +171,7 @@ export class ProtectionIntentOperations { * @param intentObjectName Intent to be deleted. * @param callback The callback */ - deleteMethod( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - callback: msRest.ServiceCallback - ): void; + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -272,22 +181,8 @@ export class ProtectionIntentOperations { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - vaultName: string, - resourceGroupName: string, - fabricName: string, - intentObjectName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -297,8 +192,7 @@ export class ProtectionIntentOperations { options }, deleteMethodOperationSpec, - callback - ); + callback); } } @@ -306,11 +200,17 @@ export class ProtectionIntentOperations { const serializer = new msRest.Serializer(Mappers); const validateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection", - urlParameters: [Parameters.azureRegion, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection", + urlParameters: [ + Parameters.azureRegion, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -331,8 +231,7 @@ const validateOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -340,8 +239,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.intentObjectName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionIntentResource @@ -355,8 +258,7 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -364,8 +266,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.intentObjectName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -386,8 +292,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", + path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -395,8 +300,12 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.intentObjectName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, default: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts index 519dbbe972b0..ade43e8109c9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts @@ -37,12 +37,7 @@ export class ProtectionPolicies { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -50,12 +45,7 @@ export class ProtectionPolicies { * @param policyName Backup policy information to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, policyName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -64,20 +54,8 @@ export class ProtectionPolicies { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, policyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -86,8 +64,7 @@ export class ProtectionPolicies { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -102,13 +79,7 @@ export class ProtectionPolicies { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - policyName: string, - parameters: Models.ProtectionPolicyResource, - options?: msRest.RequestOptionsBase - ): Promise; + createOrUpdate(vaultName: string, resourceGroupName: string, policyName: string, parameters: Models.ProtectionPolicyResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -117,13 +88,7 @@ export class ProtectionPolicies { * @param parameters resource backup policy * @param callback The callback */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - policyName: string, - parameters: Models.ProtectionPolicyResource, - callback: msRest.ServiceCallback - ): void; + createOrUpdate(vaultName: string, resourceGroupName: string, policyName: string, parameters: Models.ProtectionPolicyResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -133,22 +98,8 @@ export class ProtectionPolicies { * @param options The optional parameters * @param callback The callback */ - createOrUpdate( - vaultName: string, - resourceGroupName: string, - policyName: string, - parameters: Models.ProtectionPolicyResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createOrUpdate( - vaultName: string, - resourceGroupName: string, - policyName: string, - parameters: Models.ProtectionPolicyResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdate(vaultName: string, resourceGroupName: string, policyName: string, parameters: Models.ProtectionPolicyResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(vaultName: string, resourceGroupName: string, policyName: string, parameters: Models.ProtectionPolicyResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -158,8 +109,7 @@ export class ProtectionPolicies { options }, createOrUpdateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -173,18 +123,9 @@ export class ProtectionPolicies { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - vaultName: string, - resourceGroupName: string, - policyName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - vaultName, - resourceGroupName, - policyName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(vaultName,resourceGroupName,policyName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -198,12 +139,7 @@ export class ProtectionPolicies { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - vaultName: string, - resourceGroupName: string, - policyName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { vaultName, @@ -212,8 +148,7 @@ export class ProtectionPolicies { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -221,16 +156,19 @@ export class ProtectionPolicies { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.policyName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionPolicyResource @@ -244,16 +182,19 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.policyName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -275,16 +216,19 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.policyName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 204: {}, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts index 1b22688c49a7..2861f414afaa 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts @@ -35,13 +35,7 @@ export class ProtectionPolicyOperationResults { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, policyName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -50,13 +44,7 @@ export class ProtectionPolicyOperationResults { * @param operationId Operation ID which represents the operation whose result needs to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, policyName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -66,22 +54,8 @@ export class ProtectionPolicyOperationResults { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, policyName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, policyName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -91,8 +65,7 @@ export class ProtectionPolicyOperationResults { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -100,8 +73,7 @@ export class ProtectionPolicyOperationResults { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -109,8 +81,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.policyName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ProtectionPolicyResource diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts index 940441f8973e..0f1ff4a27774 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts @@ -39,13 +39,7 @@ export class ProtectionPolicyOperationStatuses { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, policyName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -54,13 +48,7 @@ export class ProtectionPolicyOperationStatuses { * @param operationId Operation ID which represents an operation whose status needs to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, policyName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -70,22 +58,8 @@ export class ProtectionPolicyOperationStatuses { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - policyName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, policyName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, policyName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -95,8 +69,7 @@ export class ProtectionPolicyOperationStatuses { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -104,8 +77,7 @@ export class ProtectionPolicyOperationStatuses { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -113,8 +85,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.policyName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationStatus diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts index 97030f472517..e28a8b7b39b6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts @@ -36,14 +36,7 @@ export class RecoveryPoints { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options?: Models.RecoveryPointsListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.RecoveryPointsListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -53,14 +46,7 @@ export class RecoveryPoints { * @param protectedItemName Backed up item whose backup copies are to be fetched. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -71,26 +57,8 @@ export class RecoveryPoints { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options: Models.RecoveryPointsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options?: - | Models.RecoveryPointsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options: Models.RecoveryPointsListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.RecoveryPointsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -101,8 +69,7 @@ export class RecoveryPoints { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -119,15 +86,7 @@ export class RecoveryPoints { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -138,15 +97,7 @@ export class RecoveryPoints { * @param recoveryPointId RecoveryPointID represents the backed up data to be fetched. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -158,26 +109,8 @@ export class RecoveryPoints { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -189,8 +122,7 @@ export class RecoveryPoints { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -206,16 +138,7 @@ export class RecoveryPoints { * @param [options] The optional parameters * @returns Promise */ - getAccessToken( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.AADPropertiesResource, - options?: msRest.RequestOptionsBase - ): Promise; + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -227,16 +150,7 @@ export class RecoveryPoints { * @param parameters Get Access Token request * @param callback The callback */ - getAccessToken( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.AADPropertiesResource, - callback: msRest.ServiceCallback - ): void; + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -249,28 +163,8 @@ export class RecoveryPoints { * @param options The optional parameters * @param callback The callback */ - getAccessToken( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.AADPropertiesResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAccessToken( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.AADPropertiesResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAccessToken(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.AADPropertiesResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -283,8 +177,7 @@ export class RecoveryPoints { options }, getAccessTokenOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -293,43 +186,26 @@ export class RecoveryPoints { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.RecoveryPointsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.RecoveryPointsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.RecoveryPointsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.RecoveryPointsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.RecoveryPointsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RecoveryPointsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -337,8 +213,7 @@ export class RecoveryPoints { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -347,8 +222,13 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RecoveryPointResourceList @@ -362,8 +242,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -373,8 +252,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.recoveryPointId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RecoveryPointResource @@ -388,8 +271,7 @@ const getOperationSpec: msRest.OperationSpec = { const getAccessTokenOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/accessToken", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/accessToken", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -399,8 +281,12 @@ const getAccessTokenOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.recoveryPointId ], - queryParameters: [Parameters.apiVersion1], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -424,9 +310,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RecoveryPointResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts index bb3498734070..4fbb081b4346 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts @@ -36,14 +36,7 @@ export class RecoveryPointsCrr { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options?: Models.RecoveryPointsCrrListOptionalParams - ): Promise; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.RecoveryPointsCrrListOptionalParams): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -53,14 +46,7 @@ export class RecoveryPointsCrr { * @param protectedItemName Backed up item whose backup copies are to be fetched. * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -71,26 +57,8 @@ export class RecoveryPointsCrr { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options: Models.RecoveryPointsCrrListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - options?: - | Models.RecoveryPointsCrrListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options: Models.RecoveryPointsCrrListOptionalParams, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, options?: Models.RecoveryPointsCrrListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -101,8 +69,7 @@ export class RecoveryPointsCrr { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -111,43 +78,26 @@ export class RecoveryPointsCrr { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.RecoveryPointsCrrListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.RecoveryPointsCrrListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.RecoveryPointsCrrListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.RecoveryPointsCrrListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.RecoveryPointsCrrListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RecoveryPointsCrrListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -155,8 +105,7 @@ export class RecoveryPointsCrr { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -165,8 +114,13 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [Parameters.apiVersion1, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RecoveryPointResourceList @@ -182,9 +136,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion1, Parameters.filter], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RecoveryPointResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts index bee19d085a56..b87f7d91fa0a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts @@ -37,15 +37,7 @@ export class RecoveryPointsRecommendedForMove { * @param [options] The optional parameters * @returns Promise */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, - options?: msRest.RequestOptionsBase - ): Promise; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,15 +48,7 @@ export class RecoveryPointsRecommendedForMove { * @param parameters List Recovery points Recommended for Move Request * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, - callback: msRest.ServiceCallback - ): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -76,26 +60,8 @@ export class RecoveryPointsRecommendedForMove { * @param options The optional parameters * @param callback The callback */ - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, parameters: Models.ListRecoveryPointsRecommendedForMoveRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -107,8 +73,7 @@ export class RecoveryPointsRecommendedForMove { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -117,41 +82,26 @@ export class RecoveryPointsRecommendedForMove { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -159,8 +109,7 @@ export class RecoveryPointsRecommendedForMove { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPointsRecommendedForMove", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPointsRecommendedForMove", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -169,8 +118,12 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -193,9 +146,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "POST", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RecoveryPointResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts index 4a6ece622308..1baf3c436493 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts @@ -41,26 +41,9 @@ export class Restores { * @param [options] The optional parameters * @returns Promise */ - trigger( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.RestoreRequestResource, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginTrigger( - vaultName, - resourceGroupName, - fabricName, - containerName, - protectedItemName, - recoveryPointId, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginTrigger(vaultName,resourceGroupName,fabricName,containerName,protectedItemName,recoveryPointId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -78,16 +61,7 @@ export class Restores { * @param [options] The optional parameters * @returns Promise */ - beginTrigger( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.RestoreRequestResource, - options?: msRest.RequestOptionsBase - ): Promise { + beginTrigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { vaultName, @@ -100,8 +74,7 @@ export class Restores { options }, beginTriggerOperationSpec, - options - ); + options); } } @@ -109,8 +82,7 @@ export class Restores { const serializer = new msRest.Serializer(Mappers); const beginTriggerOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -120,8 +92,12 @@ const beginTriggerOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.recoveryPointId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts index 59ad1230e3ae..70f02e9e0d44 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts @@ -33,22 +33,14 @@ export class SecurityPINs { * @param [options] The optional parameters * @returns Promise */ - get( - vaultName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + get(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -56,18 +48,8 @@ export class SecurityPINs { * @param options The optional parameters * @param callback The callback */ - get( - vaultName: string, - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - vaultName: string, - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(vaultName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { vaultName, @@ -75,8 +57,7 @@ export class SecurityPINs { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -84,11 +65,18 @@ export class SecurityPINs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.TokenInformation diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts index 10f64ffff184..874339ea17e0 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts @@ -16,8 +16,15 @@ import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { RecoveryServicesBackupClientContext } from "./recoveryServicesBackupClientContext"; + class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { // Operation groups + protectionIntent: operations.ProtectionIntentOperations; + backupStatus: operations.BackupStatus; + featureSupport: operations.FeatureSupport; + backupProtectionIntent: operations.BackupProtectionIntent; + backupUsageSummaries: operations.BackupUsageSummaries; + operations: operations.Operations; backupResourceVaultConfigs: operations.BackupResourceVaultConfigs; backupResourceEncryptionConfigs: operations.BackupResourceEncryptionConfigs; privateEndpointConnection: operations.PrivateEndpointConnectionOperations; @@ -64,12 +71,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { backupResourceStorageConfigs: operations.BackupResourceStorageConfigs; recoveryPointsCrr: operations.RecoveryPointsCrr; backupProtectedItemsCrr: operations.BackupProtectedItemsCrr; - protectionIntent: operations.ProtectionIntentOperations; - backupStatus: operations.BackupStatus; - featureSupport: operations.FeatureSupport; - backupProtectionIntent: operations.BackupProtectionIntent; - backupUsageSummaries: operations.BackupUsageSummaries; - operations: operations.Operations; /** * Initializes a new instance of the RecoveryServicesBackupClient class. @@ -82,12 +83,14 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param subscriptionId The subscription Id. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.RecoveryServicesBackupClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RecoveryServicesBackupClientOptions) { super(credentials, subscriptionId, options); + this.protectionIntent = new operations.ProtectionIntentOperations(this); + this.backupStatus = new operations.BackupStatus(this); + this.featureSupport = new operations.FeatureSupport(this); + this.backupProtectionIntent = new operations.BackupProtectionIntent(this); + this.backupUsageSummaries = new operations.BackupUsageSummaries(this); + this.operations = new operations.Operations(this); this.backupResourceVaultConfigs = new operations.BackupResourceVaultConfigs(this); this.backupResourceEncryptionConfigs = new operations.BackupResourceEncryptionConfigs(this); this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); @@ -109,15 +112,11 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.backupProtectedItems = new operations.BackupProtectedItems(this); this.operation = new operations.Operation(this); this.backupEngines = new operations.BackupEngines(this); - this.protectionContainerRefreshOperationResults = new operations.ProtectionContainerRefreshOperationResults( - this - ); + this.protectionContainerRefreshOperationResults = new operations.ProtectionContainerRefreshOperationResults(this); this.protectableContainers = new operations.ProtectableContainers(this); this.protectionContainers = new operations.ProtectionContainers(this); this.backupWorkloadItems = new operations.BackupWorkloadItems(this); - this.protectionContainerOperationResults = new operations.ProtectionContainerOperationResults( - this - ); + this.protectionContainerOperationResults = new operations.ProtectionContainerOperationResults(this); this.backups = new operations.Backups(this); this.protectedItemOperationStatuses = new operations.ProtectedItemOperationStatuses(this); this.itemLevelRecoveryConnections = new operations.ItemLevelRecoveryConnections(this); @@ -138,12 +137,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.backupResourceStorageConfigs = new operations.BackupResourceStorageConfigs(this); this.recoveryPointsCrr = new operations.RecoveryPointsCrr(this); this.backupProtectedItemsCrr = new operations.BackupProtectedItemsCrr(this); - this.protectionIntent = new operations.ProtectionIntentOperations(this); - this.backupStatus = new operations.BackupStatus(this); - this.featureSupport = new operations.FeatureSupport(this); - this.backupProtectionIntent = new operations.BackupProtectionIntent(this); - this.backupUsageSummaries = new operations.BackupUsageSummaries(this); - this.operations = new operations.Operations(this); } /** @@ -155,12 +148,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param [options] The optional parameters * @returns Promise */ - getOperationStatus( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -168,12 +156,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param operationId * @param callback The callback */ - getOperationStatus( - vaultName: string, - resourceGroupName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -182,20 +165,8 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param options The optional parameters * @param callback The callback */ - getOperationStatus( - vaultName: string, - resourceGroupName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getOperationStatus( - vaultName: string, - resourceGroupName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOperationStatus(vaultName: string, resourceGroupName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.sendOperationRequest( { vaultName, @@ -204,8 +175,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, getOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -217,18 +187,9 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param [options] The optional parameters * @returns Promise */ - bMSPrepareDataMove( - vaultName: string, - resourceGroupName: string, - parameters: Models.PrepareDataMoveRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginBMSPrepareDataMove( - vaultName, - resourceGroupName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + bMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginBMSPrepareDataMove(vaultName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -240,18 +201,9 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param [options] The optional parameters * @returns Promise */ - bMSTriggerDataMove( - vaultName: string, - resourceGroupName: string, - parameters: Models.TriggerDataMoveRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginBMSTriggerDataMove( - vaultName, - resourceGroupName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + bMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: Models.TriggerDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginBMSTriggerDataMove(vaultName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -267,26 +219,9 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param [options] The optional parameters * @returns Promise */ - moveRecoveryPoint( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.MoveRPAcrossTiersRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginMoveRecoveryPoint( - vaultName, - resourceGroupName, - fabricName, - containerName, - protectedItemName, - recoveryPointId, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + moveRecoveryPoint(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.MoveRPAcrossTiersRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginMoveRecoveryPoint(vaultName,resourceGroupName,fabricName,containerName,protectedItemName,recoveryPointId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -298,12 +233,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param [options] The optional parameters * @returns Promise */ - beginBMSPrepareDataMove( - vaultName: string, - resourceGroupName: string, - parameters: Models.PrepareDataMoveRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginBMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { return this.sendLRORequest( { vaultName, @@ -312,8 +242,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginBMSPrepareDataMoveOperationSpec, - options - ); + options); } /** @@ -325,12 +254,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param [options] The optional parameters * @returns Promise */ - beginBMSTriggerDataMove( - vaultName: string, - resourceGroupName: string, - parameters: Models.TriggerDataMoveRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginBMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: Models.TriggerDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { return this.sendLRORequest( { vaultName, @@ -339,8 +263,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginBMSTriggerDataMoveOperationSpec, - options - ); + options); } /** @@ -356,16 +279,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { * @param [options] The optional parameters * @returns Promise */ - beginMoveRecoveryPoint( - vaultName: string, - resourceGroupName: string, - fabricName: string, - containerName: string, - protectedItemName: string, - recoveryPointId: string, - parameters: Models.MoveRPAcrossTiersRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginMoveRecoveryPoint(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.MoveRPAcrossTiersRequest, options?: msRest.RequestOptionsBase): Promise { return this.sendLRORequest( { vaultName, @@ -378,8 +292,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginMoveRecoveryPointOperationSpec, - options - ); + options); } } @@ -387,16 +300,19 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { const serializer = new msRest.Serializer(Mappers); const getOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.operationId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OperationStatus @@ -410,11 +326,18 @@ const getOperationStatusOperationSpec: msRest.OperationSpec = { const beginBMSPrepareDataMoveOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/prepareDataMove", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/prepareDataMove", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -434,11 +357,18 @@ const beginBMSPrepareDataMoveOperationSpec: msRest.OperationSpec = { const beginBMSTriggerDataMoveOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/triggerDataMove", - urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/triggerDataMove", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -458,8 +388,7 @@ const beginBMSTriggerDataMoveOperationSpec: msRest.OperationSpec = { const beginMoveRecoveryPointOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/move", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/move", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, @@ -469,8 +398,12 @@ const beginMoveRecoveryPointOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.recoveryPointId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts index 5accc9b9cae6..e195cfb8c792 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts @@ -30,16 +30,12 @@ export class RecoveryServicesBackupClientContext extends msRestAzure.AzureServic * @param subscriptionId The subscription Id. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.RecoveryServicesBackupClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RecoveryServicesBackupClientOptions) { 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) { @@ -52,7 +48,7 @@ export class RecoveryServicesBackupClientContext extends msRestAzure.AzureServic super(credentials, options); - this.acceptLanguage = "en-US"; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; @@ -62,10 +58,7 @@ export class RecoveryServicesBackupClientContext extends msRestAzure.AzureServic 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; } }