From 0e2b617c0a79c7e329d53b1edf487d8bbcc4a1f4 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 1 Jul 2021 07:50:45 +0000 Subject: [PATCH] CodeGen from PR 15037 in Azure/azure-rest-api-specs fix in readme file for latest sdk generation (#15037) --- .../arm-recoveryservicesbackup/README.md | 65 +- .../arm-recoveryservicesbackup/package.json | 2 +- .../rollup.config.js | 10 +- .../src/models/aadPropertiesMappers.ts | 2 + .../src/models/backupCrrJobDetailsMappers.ts | 2 + .../src/models/backupCrrJobsMappers.ts | 2 + .../src/models/backupEnginesMappers.ts | 2 + .../src/models/backupJobsMappers.ts | 2 + .../models/backupOperationResultsMappers.ts | 5 +- .../src/models/backupPoliciesMappers.ts | 2 + .../models/backupProtectableItemsMappers.ts | 2 + .../models/backupProtectedItemsCrrMappers.ts | 2 + .../src/models/backupProtectedItemsMappers.ts | 2 + .../backupProtectionContainersMappers.ts | 2 + .../models/backupProtectionIntentMappers.ts | 2 + .../backupResourceEncryptionConfigsMappers.ts | 2 + .../backupResourceStorageConfigsMappers.ts | 2 + .../backupResourceVaultConfigsMappers.ts | 2 + .../src/models/backupWorkloadItemsMappers.ts | 2 + .../src/models/backupsMappers.ts | 2 + .../src/models/index.ts | 4919 ++++++++--------- .../itemLevelRecoveryConnectionsMappers.ts | 2 + .../src/models/jobCancellationsMappers.ts | 5 +- .../src/models/jobDetailsMappers.ts | 2 + .../src/models/jobOperationResultsMappers.ts | 5 +- .../src/models/jobsMappers.ts | 5 +- .../src/models/mappers.ts | 3157 ++++++----- .../src/models/parameters.ts | 40 +- ...vateEndpointConnectionOperationsMappers.ts | 2 + .../models/protectableContainersMappers.ts | 2 + .../protectedItemOperationResultsMappers.ts | 2 + .../src/models/protectedItemsMappers.ts | 2 + ...tectionContainerOperationResultsMappers.ts | 2 + ...ContainerRefreshOperationResultsMappers.ts | 5 +- .../src/models/protectionContainersMappers.ts | 2 + .../protectionIntentOperationsMappers.ts | 2 + .../src/models/protectionPoliciesMappers.ts | 2 + ...protectionPolicyOperationResultsMappers.ts | 2 + .../src/models/recoveryPointsCrrMappers.ts | 2 + .../src/models/recoveryPointsMappers.ts | 2 + ...recoveryPointsRecommendedForMoveMappers.ts | 2 + .../src/models/restoresMappers.ts | 2 + .../src/models/securityPINsMappers.ts | 6 +- .../src/operations/aadProperties.ts | 39 +- .../bMSPrepareDataMoveOperationResult.ts | 46 +- .../src/operations/backupCrrJobDetails.ts | 45 +- .../src/operations/backupCrrJobs.ts | 85 +- .../src/operations/backupEngines.ts | 139 +- .../src/operations/backupJobs.ts | 84 +- .../src/operations/backupOperationResults.ts | 44 +- .../src/operations/backupOperationStatuses.ts | 44 +- .../src/operations/backupPolicies.ts | 89 +- .../src/operations/backupProtectableItems.ts | 91 +- .../src/operations/backupProtectedItems.ts | 91 +- .../src/operations/backupProtectedItemsCrr.ts | 91 +- .../operations/backupProtectionContainers.ts | 89 +- .../src/operations/backupProtectionIntent.ts | 91 +- .../backupResourceEncryptionConfigs.ts | 100 +- .../backupResourceStorageConfigs.ts | 150 +- .../operations/backupResourceVaultConfigs.ts | 152 +- .../src/operations/backupStatus.ts | 45 +- .../src/operations/backupUsageSummaries.ts | 50 +- .../src/operations/backupUsageSummariesCRR.ts | 50 +- .../src/operations/backupWorkloadItems.ts | 93 +- .../src/operations/backups.ts | 56 +- .../src/operations/crossRegionRestore.ts | 36 +- .../src/operations/crrOperationResults.ts | 40 +- .../src/operations/crrOperationStatus.ts | 46 +- .../operations/exportJobsOperationResults.ts | 46 +- .../src/operations/featureSupport.ts | 47 +- .../src/operations/index.ts | 12 +- .../itemLevelRecoveryConnections.ts | 116 +- .../src/operations/jobCancellations.ts | 44 +- .../src/operations/jobDetails.ts | 44 +- .../src/operations/jobOperationResults.ts | 48 +- .../src/operations/jobs.ts | 47 +- .../src/operations/operation.ts | 50 +- .../src/operations/operations.ts | 58 +- .../privateEndpointConnectionOperations.ts | 123 +- .../operations/privateEndpointOperations.ts | 48 +- .../src/operations/protectableContainers.ts | 87 +- .../protectedItemOperationResults.ts | 56 +- .../protectedItemOperationStatuses.ts | 56 +- .../src/operations/protectedItems.ts | 163 +- .../protectionContainerOperationResults.ts | 54 +- ...tectionContainerRefreshOperationResults.ts | 48 +- .../src/operations/protectionContainers.ts | 246 +- .../operations/protectionIntentOperations.ts | 195 +- .../src/operations/protectionPolicies.ts | 128 +- .../protectionPolicyOperationResults.ts | 48 +- .../protectionPolicyOperationStatuses.ts | 48 +- .../src/operations/recoveryPoints.ts | 211 +- .../src/operations/recoveryPointsCrr.ts | 95 +- .../recoveryPointsRecommendedForMove.ts | 93 +- .../src/operations/restores.ts | 48 +- .../src/operations/securityPINs.ts | 46 +- .../src/recoveryServicesBackupClient.ts | 215 +- .../recoveryServicesBackupClientContext.ts | 17 +- 98 files changed, 5412 insertions(+), 7297 deletions(-) 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..feff5e37757f 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts index f478e80e0f73..feff5e37757f 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts index 2a64622f2f0e..e2344f05977e 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts index 2b141b46a66e..8540eb0b7f88 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 2b141b46a66e..8540eb0b7f88 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, 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..8540eb0b7f88 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 2b141b46a66e..8540eb0b7f88 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts index 2a64622f2f0e..e2344f05977e 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts index 2b141b46a66e..8540eb0b7f88 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 2b141b46a66e..8540eb0b7f88 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 2b141b46a66e..8540eb0b7f88 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts index f478e80e0f73..feff5e37757f 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts index f478e80e0f73..feff5e37757f 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts index f478e80e0f73..feff5e37757f 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts index 2b141b46a66e..8540eb0b7f88 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index a7719f9e3a6a..74dc9a56dcf4 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, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index 4d1ebf9b4cf2..eb5c12b8ecc1 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. @@ -4274,9 +4312,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 +4569,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 +4584,7 @@ export interface ValidateOperationRequest { /** * Contains the possible cases for ValidateRestoreOperationRequest. */ -export type ValidateRestoreOperationRequestUnion = - | ValidateRestoreOperationRequest - | ValidateIaasVMRestoreOperationRequest; +export type ValidateRestoreOperationRequestUnion = ValidateRestoreOperationRequest | ValidateIaasVMRestoreOperationRequest; /** * AzureRestoreValidation request. @@ -4725,15 +4757,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 +5041,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 +5070,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 +5141,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 +5174,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 +5259,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 +5397,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 +5576,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 +5748,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 +5819,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,1134 +6551,1337 @@ 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 { - /** - * Database name of backup engine. - */ - databaseName?: string; +export interface AzureResourceProtectionIntent { /** - * Number of protected items in the backup engine. + * Polymorphic Discriminator */ - protectedItemsCount?: number; + protectionIntentItemType: "AzureResourceItem"; /** - * Number of protected servers 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' */ - protectedServersCount?: number; + backupManagementType?: BackupManagementType; /** - * Number of disks in the backup engine. + * ARM ID of the resource to be backed up. */ - diskCount?: number; + sourceResourceId?: string; /** - * Disk space used in the backup engine. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - usedDiskSpace?: number; + itemId?: string; /** - * Disk space currently available in the backup engine. + * ID of the backup policy with which this item is backed up. */ - availableDiskSpace?: number; + policyId?: string; /** - * Last refresh time in the backup engine. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - refreshedAt?: Date; + protectionState?: ProtectionStatus; /** - * Protected instances in the backup engine. + * Friendly name of the VM represented by this backup item. */ - 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 { +export interface BMSBackupSummariesQueryObject { /** - * Polymorphic Discriminator + * Backup management type for this container. Possible values include: 'Invalid', + * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' */ - backupEngineType: "DpmBackupEngine"; + 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 { /** - * Friendly name of the backup engine. + * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', + * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', + * 'SAPHanaDatabase', 'SAPAseDatabase' */ - friendlyName?: string; + resourceType?: DataSourceType; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * ARM Virtual Machine Id */ - backupManagementType?: BackupManagementType; + resourceId?: string; /** - * Registration status of the backup engine with the Recovery Services Vault. + * ARM id of the Recovery Services Vault */ - registrationStatus?: string; + vaultId?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + * Configuration of VM if any needs to be validated like OS type etc */ - backupEngineState?: string; + properties?: string; +} + +/** + * Response contract for enable backup validation request + */ +export interface PreValidateEnableBackupResponse { /** - * Backup status of the backup engine. + * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' */ - healthStatus?: string; + status?: ValidationStatus; /** - * Flag indicating if the backup engine be registered, once already registered. + * Response error code */ - canReRegister?: boolean; + errorCode?: string; /** - * ID of the backup engine. + * Response error message */ - backupEngineId?: string; + errorMessage?: string; /** - * Backup engine version + * Recommended action for user */ - dpmVersion?: string; + recommendation?: string; /** - * Backup agent version + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required + * for portal */ - azureBackupAgentVersion?: string; + containerName?: string; /** - * To check if backup agent upgrade available + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is + * required for portal */ - isAzureBackupAgentUpgradeAvailable?: boolean; + protectedItemName?: string; +} + +/** + * Filters to list protection intent. + */ +export interface ProtectionIntentQueryObject { /** - * To check if backup engine upgrade available + * Backup management type for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - isDpmUpgradeAvailable?: boolean; + backupManagementType?: BackupManagementType; /** - * Extended info of the backupengine + * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', + * 'SQLAvailabilityGroupContainer' */ - extendedInfo?: BackupEngineExtendedInfo; + itemType?: IntentItemType; + /** + * Parent name of the intent + */ + parentName?: string; + /** + * Item name of the intent + */ + itemName?: string; } /** - * Additional information of the DPMContainer. + * Base class for backup ProtectionIntent. */ -export interface DPMContainerExtendedInfo { +export interface ProtectionIntentResource extends Resource { /** - * Last refresh time of the DPMContainer. + * ProtectionIntentResource properties */ - lastRefreshedAt?: Date; + properties?: ProtectionIntentUnion; } /** - * Container extended information + * Validation for inquired protectable items under a given container. */ -export interface GenericContainerExtendedInfo { +export interface InquiryValidation { /** - * Public key of container cert + * Status for the Inquiry Validation. */ - rawCertData?: string; + status?: string; /** - * Container identity information + * Error Detail in case the status is non-success. */ - containerIdentityInfo?: ContainerIdentityInfo; + errorDetail?: ErrorDetail; /** - * Azure Backup Service Endpoints for the container + * 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.** */ - serviceEndpoints?: { [propertyName: string]: string }; + readonly additionalDetail?: string; } /** - * Base class for generic container of backup items + * Details of an inquired protectable item. */ -export interface GenericContainer { +export interface WorkloadInquiryDetails { /** - * Polymorphic Discriminator + * Type of the Workload such as SQL, Oracle etc. */ - containerType: "GenericContainer"; + type?: string; /** - * Friendly name of the container. + * Contains the protectable item Count inside this Container. */ - friendlyName?: string; + itemCount?: number; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Inquiry validation such as permissions and other backup validations. */ - backupManagementType?: BackupManagementType; + inquiryValidation?: InquiryValidation; +} + +/** + * Details about inquired protectable items under a given container. + */ +export interface InquiryInfo { /** - * Status of registration of the container with the Recovery Services Vault. + * Inquiry Status for this container such as + * InProgress | Failed | Succeeded */ - registrationStatus?: string; + status?: string; /** - * Status of health of the container. + * Error Details if the Status is non-success. */ - healthStatus?: string; + errorDetail?: ErrorDetail; /** - * Name of the container's fabric + * Inquiry Details which will have workload specific details. + * For e.g. - For SQL and oracle this will contain different details. */ - fabricName?: string; + inquiryDetails?: WorkloadInquiryDetails[]; +} + +/** + * This is used to represent the various nodes of the distributed container. + */ +export interface DistributedNodesInfo { /** - * Extended information (not returned in List container API calls) + * Name of the node under a distributed container. */ - extendedInformation?: GenericContainerExtendedInfo; + nodeName?: string; + /** + * Status of this Node. + * Failed | Succeeded + */ + status?: string; + /** + * Error Details if the Status is non-success. + */ + errorDetail?: ErrorDetail; } /** - * IaaS VM workload-specific backup request. + * Extended information of the container. */ -export interface IaasVMBackupRequest { +export interface AzureWorkloadContainerExtendedInfo { /** - * Polymorphic Discriminator + * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. */ - objectType: "IaasVMBackupRequest"; + hostServerName?: string; /** - * Backup copy will expire after the time specified (UTC). + * Inquiry Status for the container. */ - recoveryPointExpiryTimeInUTC?: Date; + inquiryInfo?: InquiryInfo; + /** + * List of the nodes in case of distributed container. + */ + nodesList?: DistributedNodesInfo[]; } /** - * Restore files/folders from a backup copy of IaaS VM. + * Additional information on backup engine. */ -export interface IaasVMILRRegistrationRequest { +export interface BackupEngineExtendedInfo { /** - * Polymorphic Discriminator + * Database name of backup engine. */ - objectType: "IaasVMILRRegistrationRequest"; + databaseName?: string; /** - * ID of the IaaS VM backup copy from where the files/folders have to be restored. + * Number of protected items in the backup engine. */ - recoveryPointId?: string; + protectedItemsCount?: number; /** - * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + * Number of protected servers in the backup engine. */ - virtualMachineId?: string; + protectedServersCount?: number; /** - * iSCSI initiator name. + * Number of disks in the backup engine. */ - initiatorName?: string; + diskCount?: number; /** - * Whether to renew existing registration with the iSCSI server. + * Disk space used in the backup engine. */ - renewExistingRegistration?: boolean; + usedDiskSpace?: number; + /** + * Disk space currently available in the backup engine. + */ + availableDiskSpace?: number; + /** + * Last refresh time in the backup engine. + */ + refreshedAt?: Date; + /** + * Protected instances in the backup engine. + */ + azureProtectedInstances?: number; } /** - * Parameters to Provision ILR API. + * The base backup engine class. All workload specific backup engines derive from this class. */ -export interface ILRRequestResource extends Resource { +export interface BackupEngineBaseResource extends Resource { /** - * ILRRequestResource properties + * BackupEngineBaseResource properties */ - properties?: ILRRequestUnion; + properties?: BackupEngineBaseUnion; } /** - * Target details for file / folder restore. + * Base class for backup request. Workload-specific backup requests are derived from this class. */ -export interface InstantItemRecoveryTarget { +export interface BackupRequestResource extends Resource { /** - * List of client scripts. + * BackupRequestResource properties */ - clientScripts?: ClientScriptForConnect[]; + properties?: BackupRequestUnion; } /** - * Additional information of the container. + * Query parameters to fetch list of backup engines. */ -export interface MabContainerExtendedInfo { - /** - * Time stamp when this container was refreshed. - */ - lastRefreshedAt?: Date; +export interface BMSBackupEngineQueryObject { /** - * 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' + * attribute to add extended info */ - backupItemType?: BackupItemType; + expand?: string; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEnginesQueryObject { /** - * List of backup items associated with this container. + * Backup management type for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - backupItems?: string[]; + backupManagementType?: BackupManagementType; /** - * Backup policy associated with this container. + * Friendly name of the backup engine. */ - policyName?: string; + friendlyName?: string; /** - * Latest backup status of this container. + * Attribute to add extended info. */ - lastBackupStatus?: string; + expand?: string; } /** - * MAB workload-specific Health Details. + * The query filters that can be used with the list containers API. */ -export interface MABContainerHealthDetails { +export interface BMSContainerQueryObject { /** - * Health Code + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - code?: number; + backupManagementType: BackupManagementType; /** - * Health Title + * Type of container for filter. Possible values include: 'Invalid', 'Unknown', + * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', + * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' */ - title?: string; + containerType?: ContainerType; /** - * Health Message + * Backup engine name */ - message?: string; + backupEngineName?: string; /** - * Health Recommended Actions + * Fabric name for filter */ - recommendations?: string[]; + fabricName?: string; + /** + * Status of registration of this container with the Recovery Services Vault. + */ + status?: string; + /** + * Friendly name of this container. + */ + friendlyName?: string; } /** - * Container with items backed up using MAB backup engine. + * The query filters that can be used with the inquire container API. */ -export interface MabContainer { +export interface BMSContainersInquiryQueryObject { /** - * Polymorphic Discriminator + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - containerType: "Windows"; + backupManagementType?: BackupManagementType; /** - * Friendly name of the container. + * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - friendlyName?: string; + workloadType?: WorkloadType; +} + +/** + * Filters to list items that can be backed up. + */ +export interface BMSPOQueryObject { /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Backup management type. 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. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - registrationStatus?: string; + workloadType?: WorkloadType; /** - * Status of health of the container. + * Full name of the container whose Protectable Objects should be returned. */ - healthStatus?: string; + containerName?: string; /** - * Can the container be registered one more time. + * Backup status query parameter. */ - canReRegister?: boolean; + status?: string; /** - * ContainerID represents the container. + * Friendly name. */ - containerId?: number; + friendlyName?: string; +} + +/** + * The query filters that can be used with the refresh container API. + */ +export interface BMSRefreshContainersQueryObject { /** - * Number of items backed up in this container. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - protectedItemCount?: number; + backupManagementType?: BackupManagementType; +} + +/** + * Filters to list items that can be backed up. + */ +export interface BMSWorkloadItemQueryObject { /** - * Agent version of this container. + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - agentVersion?: string; + backupManagementType?: BackupManagementType; /** - * Additional information for this container + * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', + * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' */ - extendedInfo?: MabContainerExtendedInfo; + workloadItemType?: WorkloadItemType; /** - * Health details on this mab container. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - mabContainerHealthDetails?: MABContainerHealthDetails[]; + workloadType?: WorkloadType; /** - * Health state of mab container. + * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - containerHealthState?: string; + protectionStatus?: ProtectionStatus; } /** - * Error information associated with operation status call. + * Client script details for file / folder restore. */ -export interface OperationStatusError { +export interface ClientScriptForConnect { /** - * Error code of the operation failure. + * File content of the client script for file / folder restore. */ - code?: string; + scriptContent?: string; /** - * Error message displayed if the operation failure. + * File extension of the client script for file / folder restore - .ps1 , .sh , etc. */ - message?: string; + scriptExtension?: string; + /** + * OS type - Windows, Linux etc. for which this file / folder restore client script works. + */ + osType?: string; + /** + * URL of Executable from where to source the content. If this is not null then ScriptContent + * should not be used + */ + 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; } /** - * Contains the possible cases for OperationStatusExtendedInfo. - */ -export type OperationStatusExtendedInfoUnion = - | OperationStatusExtendedInfo - | OperationStatusJobExtendedInfo - | OperationStatusJobsExtendedInfo - | OperationStatusProvisionILRExtendedInfo - | OperationStatusRecoveryPointExtendedInfo; - -/** - * Base class for additional information of operation status. + * Container identity information */ -export interface OperationStatusExtendedInfo { +export interface ContainerIdentityInfo { /** - * Polymorphic Discriminator + * Unique name of the container */ - objectType: "OperationStatusExtendedInfo"; + uniqueName?: string; + /** + * Protection container identity - AAD Tenant + */ + aadTenantId?: string; + /** + * Protection container identity - AAD Service Principal + */ + servicePrincipalClientId?: string; + /** + * Protection container identity - Audience + */ + audience?: string; } /** - * Operation status. + * Data Protection Manager (DPM) specific backup engine. */ -export interface OperationStatus { +export interface DpmBackupEngine { /** - * ID of the operation. + * Polymorphic Discriminator */ - id?: string; + backupEngineType: "DpmBackupEngine"; /** - * Name of the operation. + * Friendly name of the backup engine. */ - name?: string; + friendlyName?: string; /** - * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - status?: OperationStatusValues; + backupManagementType?: BackupManagementType; /** - * Operation start time. Format: ISO-8601. + * Registration status of the backup engine with the Recovery Services Vault. */ - startTime?: Date; + registrationStatus?: string; /** - * Operation end time. Format: ISO-8601. + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - endTime?: Date; + backupEngineState?: string; /** - * Error information related to this operation. + * Backup status of the backup engine. */ - error?: OperationStatusError; + healthStatus?: string; /** - * Additional information associated with this operation. + * Flag indicating if the backup engine be registered, once already registered. */ - properties?: OperationStatusExtendedInfoUnion; -} - -/** - * Operation status job extended info. - */ -export interface OperationStatusJobExtendedInfo { + canReRegister?: boolean; /** - * Polymorphic Discriminator + * ID of the backup engine. */ - objectType: "OperationStatusJobExtendedInfo"; + backupEngineId?: string; /** - * ID of the job created for this protected item. + * Backup engine version */ - jobId?: string; -} - -/** - * Operation status extended info for list of jobs. - */ -export interface OperationStatusJobsExtendedInfo { + dpmVersion?: string; /** - * Polymorphic Discriminator + * Backup agent version */ - objectType: "OperationStatusJobsExtendedInfo"; + azureBackupAgentVersion?: string; /** - * IDs of the jobs created for the protected item. + * To check if backup agent upgrade available */ - jobIds?: string[]; + isAzureBackupAgentUpgradeAvailable?: boolean; /** - * Stores all the failed jobs along with the corresponding error codes. + * To check if backup engine upgrade available */ - failedJobsError?: { [propertyName: string]: string }; + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; } /** - * Operation status extended info for ILR provision action. + * Additional information of the DPMContainer. */ -export interface OperationStatusProvisionILRExtendedInfo { - /** - * Polymorphic Discriminator - */ - objectType: "OperationStatusProvisionILRExtendedInfo"; +export interface DPMContainerExtendedInfo { /** - * Target details for file / folder restore. + * Last refresh time of the DPMContainer. */ - recoveryTarget?: InstantItemRecoveryTarget; + lastRefreshedAt?: Date; } /** - * Protectable Container Class. + * Container extended information */ -export interface ProtectableContainerResource extends Resource { +export interface GenericContainerExtendedInfo { /** - * ProtectableContainerResource properties + * Public key of container cert */ - properties?: ProtectableContainerUnion; -} - -/** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. - */ -export interface ProtectionContainerResource extends Resource { + rawCertData?: string; /** - * ProtectionContainerResource properties + * Container identity information */ - properties?: ProtectionContainerUnion; + containerIdentityInfo?: ContainerIdentityInfo; + /** + * Azure Backup Service Endpoints for the container + */ + serviceEndpoints?: { [propertyName: string]: string }; } /** - * The token information details. + * Base class for generic container of backup items */ -export interface TokenInformation { +export interface GenericContainer { /** - * Token value. + * Polymorphic Discriminator */ - token?: string; + containerType: "GenericContainer"; /** - * Expiry time of token. + * Friendly name of the container. */ - expiryTimeInUtcTicks?: number; + friendlyName?: string; /** - * Security PIN + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - securityPIN?: string; -} - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadItemResource extends Resource { + backupManagementType?: BackupManagementType; /** - * WorkloadItemResource properties + * Status of registration of the container with the Recovery Services Vault. */ - properties?: WorkloadItemUnion; -} - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadProtectableItemResource extends Resource { + registrationStatus?: string; /** - * WorkloadProtectableItemResource properties + * Status of health of the container. */ - properties?: WorkloadProtectableItemUnion; -} - -/** - * RP Rehydration Info - */ -export interface RecoveryPointRehydrationInfo { + healthStatus?: string; /** - * How long the rehydrated RP should be kept - * Should be ISO8601 Duration format e.g. "P7D" + * Name of the container's fabric */ - rehydrationRetentionDuration?: string; + fabricName?: string; /** - * Rehydration Priority. Possible values include: 'Standard', 'High' + * Extended information (not returned in List container API calls) */ - rehydrationPriority?: RehydrationPriority; + extendedInformation?: GenericContainerExtendedInfo; } /** - * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + * IaaS VM workload-specific backup request. */ -export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { +export interface IaasVMBackupRequest { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; + objectType: "IaasVMBackupRequest"; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * Backup copy will expire after the time specified (UTC). */ - recoveryType?: RecoveryType; + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Restore files/folders from a backup copy of IaaS VM. + */ +export interface IaasVMILRRegistrationRequest { /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * Polymorphic Discriminator */ - sourceResourceId?: string; + objectType: "IaasVMILRRegistrationRequest"; /** - * Workload specific property bag. + * ID of the IaaS VM backup copy from where the files/folders have to be restored. */ - propertyBag?: { [propertyName: string]: string }; + recoveryPointId?: string; /** - * Details of target database + * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. */ - targetInfo?: TargetRestoreInfo; + virtualMachineId?: string; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * iSCSI initiator name. */ - recoveryMode?: RecoveryMode; + initiatorName?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Whether to renew existing registration with the iSCSI server. */ - targetVirtualMachineId?: string; + renewExistingRegistration?: boolean; +} + +/** + * Parameters to Provision ILR API. + */ +export interface ILRRequestResource extends Resource { /** - * PointInTime value + * ILRRequestResource properties */ - pointInTime?: Date; + properties?: ILRRequestUnion; +} + +/** + * Target details for file / folder restore. + */ +export interface InstantItemRecoveryTarget { /** - * RP Rehydration Info + * List of client scripts. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + clientScripts?: ClientScriptForConnect[]; } /** - * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + * Additional information of the container. */ -export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { +export interface MabContainerExtendedInfo { /** - * Polymorphic Discriminator + * Time stamp when this container was refreshed. */ - objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; + lastRefreshedAt?: Date; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * 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' */ - recoveryType?: RecoveryType; + backupItemType?: BackupItemType; /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * List of backup items associated with this container. */ - sourceResourceId?: string; + backupItems?: string[]; /** - * Workload specific property bag. + * Backup policy associated with this container. */ - propertyBag?: { [propertyName: string]: string }; + policyName?: string; /** - * Details of target database + * Latest backup status of this container. */ - targetInfo?: TargetRestoreInfo; + lastBackupStatus?: string; +} + +/** + * MAB workload-specific Health Details. + */ +export interface MABContainerHealthDetails { /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Health Code */ - recoveryMode?: RecoveryMode; + code?: number; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Health Title */ - targetVirtualMachineId?: string; + title?: string; /** - * RP Rehydration Info + * Health Message */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + message?: string; + /** + * Health Recommended Actions + */ + recommendations?: string[]; } /** - * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. + * Container with items backed up using MAB backup engine. */ -export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { +export interface MabContainer { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; + containerType: "Windows"; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * Friendly name of the container. */ - recoveryType?: RecoveryType; + friendlyName?: string; /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - sourceResourceId?: string; + backupManagementType?: BackupManagementType; /** - * Workload specific property bag. + * Status of registration of the container with the Recovery Services Vault. */ - propertyBag?: { [propertyName: string]: string }; + registrationStatus?: string; /** - * Details of target database + * Status of health of the container. */ - targetInfo?: TargetRestoreInfo; + healthStatus?: string; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Can the container be registered one more time. */ - recoveryMode?: RecoveryMode; + canReRegister?: boolean; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * ContainerID represents the container. */ - targetVirtualMachineId?: string; + containerId?: number; /** - * Default option set to true. If this is set to false, alternate data directory must be provided + * Number of items backed up in this container. */ - shouldUseAlternateTargetLocation?: boolean; + protectedItemCount?: number; /** - * SQL specific property where user can chose to set no-recovery when restore operation is tried + * Agent version of this container. */ - isNonRecoverable?: boolean; + agentVersion?: string; /** - * Data directory details + * Additional information for this container */ - alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + extendedInfo?: MabContainerExtendedInfo; /** - * PointInTime value + * Health details on this mab container. */ - pointInTime?: Date; + mabContainerHealthDetails?: MABContainerHealthDetails[]; /** - * RP Rehydration Info + * Health state of mab container. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + containerHealthState?: string; } /** - * AzureWorkload SQL-specific restore with integrated rehydration of recovery point + * Error information associated with operation status call. */ -export interface AzureWorkloadSQLRestoreWithRehydrateRequest { - /** - * Polymorphic Discriminator - */ - objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; +export interface OperationStatusError { /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * Error code of the operation failure. */ - recoveryType?: RecoveryType; + code?: string; /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * Error message displayed if the operation failure. */ - sourceResourceId?: string; + 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 { /** - * Workload specific property bag. + * Polymorphic Discriminator */ - propertyBag?: { [propertyName: string]: string }; + objectType: "OperationStatusExtendedInfo"; +} + +/** + * Operation status. + */ +export interface OperationStatus { /** - * Details of target database + * ID of the operation. */ - targetInfo?: TargetRestoreInfo; + id?: string; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Name of the operation. */ - recoveryMode?: RecoveryMode; + name?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', + * 'Canceled' */ - targetVirtualMachineId?: string; + status?: OperationStatusValues; /** - * Default option set to true. If this is set to false, alternate data directory must be provided + * Operation start time. Format: ISO-8601. */ - shouldUseAlternateTargetLocation?: boolean; + startTime?: Date; /** - * SQL specific property where user can chose to set no-recovery when restore operation is tried + * Operation end time. Format: ISO-8601. */ - isNonRecoverable?: boolean; + endTime?: Date; /** - * Data directory details + * Error information related to this operation. */ - alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + error?: OperationStatusError; /** - * RP Rehydration Info + * Additional information associated with this operation. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + properties?: OperationStatusExtendedInfoUnion; } /** - * IaaS VM workload-specific restore with integrated rehydration of recovery point. + * Operation status job extended info. */ -export interface IaasVMRestoreWithRehydrationRequest { +export interface OperationStatusJobExtendedInfo { /** * Polymorphic Discriminator */ - objectType: "IaasVMRestoreWithRehydrationRequest"; + objectType: "OperationStatusJobExtendedInfo"; /** - * ID of the backup copy to be recovered. + * ID of the job created for this protected item. */ - recoveryPointId?: string; + jobId?: string; +} + +/** + * Operation status extended info for list of jobs. + */ +export interface OperationStatusJobsExtendedInfo { /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * Polymorphic Discriminator */ - recoveryType?: RecoveryType; + objectType: "OperationStatusJobsExtendedInfo"; /** - * Fully qualified ARM ID of the VM which is being recovered. + * IDs of the jobs created for the protected item. */ - sourceResourceId?: string; + jobIds?: string[]; /** - * 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} + * Stores all the failed jobs along with the corresponding error codes. */ - targetVirtualMachineId?: string; + failedJobsError?: { [propertyName: string]: string }; +} + +/** + * Operation status extended info for ILR provision action. + */ +export interface OperationStatusProvisionILRExtendedInfo { /** - * 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} + * Polymorphic Discriminator */ - targetResourceGroupId?: string; + objectType: "OperationStatusProvisionILRExtendedInfo"; /** - * Fully qualified ARM ID of the storage account to which the VM has to be restored. + * Target details for file / folder restore. */ - storageAccountId?: string; + recoveryTarget?: InstantItemRecoveryTarget; +} + +/** + * Protectable Container Class. + */ +export interface ProtectableContainerResource extends Resource { /** - * 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. + * ProtectableContainerResource properties */ - virtualNetworkId?: string; + properties?: ProtectableContainerUnion; +} + +/** + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainerResource extends Resource { /** - * 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. + * ProtectionContainerResource properties */ - subnetId?: string; + properties?: ProtectionContainerUnion; +} + +/** + * The token information details. + */ +export interface TokenInformation { /** - * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This - * applies only to Classic - * Virtual Machines. + * Token value. */ - targetDomainNameId?: string; + token?: string; /** - * Region in which the virtual machine is restored. + * Expiry time of token. */ - region?: string; + expiryTimeInUtcTicks?: number; /** - * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual - * Machines. + * Security PIN */ - affinityGroup?: string; + securityPIN?: string; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadItemResource extends Resource { /** - * 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. + * WorkloadItemResource properties */ - createNewCloudService?: boolean; + properties?: WorkloadItemUnion; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItemResource extends Resource { /** - * Original Storage Account Option + * WorkloadProtectableItemResource properties */ - originalStorageAccountOption?: boolean; + properties?: WorkloadProtectableItemUnion; +} + +/** + * RP Rehydration Info + */ +export interface RecoveryPointRehydrationInfo { /** - * Details needed if the VM was encrypted at the time of backup. + * How long the rehydrated RP should be kept + * Should be ISO8601 Duration format e.g. "P7D" */ - encryptionDetails?: EncryptionDetails; + rehydrationRetentionDuration?: string; /** - * List of Disk LUNs for partial restore + * Rehydration Priority. Possible values include: 'Standard', 'High' */ - restoreDiskLunList?: number[]; + rehydrationPriority?: RehydrationPriority; +} + +/** + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { /** - * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + * Polymorphic Discriminator */ - restoreWithManagedDisks?: boolean; + objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; /** - * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with - * customer managed key. + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - diskEncryptionSetId?: string; + recoveryType?: RecoveryType; /** - * Target zone where the VM and its disks should be restored. + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. */ - zones?: string[]; + 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; + /** + * PointInTime value + */ + pointInTime?: Date; /** * RP Rehydration Info */ @@ -7699,362 +7889,387 @@ export interface IaasVMRestoreWithRehydrationRequest { } /** - * An interface representing MoveRPAcrossTiersRequest. + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. */ -export interface MoveRPAcrossTiersRequest { +export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { /** - * Gets the class type. + * Polymorphic Discriminator */ - objectType?: string; + objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; /** - * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', - * 'HardenedRP', 'ArchivedRP' + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - sourceTierType?: RecoveryPointTierType; + recoveryType?: RecoveryType; /** - * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', - * 'HardenedRP', 'ArchivedRP' + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. */ - targetTierType?: RecoveryPointTierType; -} - -/** - * ListRecoveryPointsRecommendedForMoveRequest Request - */ -export interface ListRecoveryPointsRecommendedForMoveRequest { + sourceResourceId?: string; /** - * Gets the class type. + * Workload specific property bag. */ - objectType?: string; + propertyBag?: { [propertyName: string]: string }; /** - * List of Recovery Points excluded from Move + * Details of target database */ - excludedRPList?: string[]; -} - -/** - * The name of usage. - */ -export interface NameInfo { + targetInfo?: TargetRestoreInfo; /** - * Value of usage. + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' */ - value?: string; + recoveryMode?: RecoveryMode; /** - * Localized value of usage. + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - localizedValue?: string; + targetVirtualMachineId?: string; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; } /** - * Backup management usages of a vault. + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. */ -export interface BackupManagementUsage { +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; /** - * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - unit?: UsagesUnit; + targetVirtualMachineId?: string; /** - * Quota period of usage. + * Default option set to true. If this is set to false, alternate data directory must be provided */ - quotaPeriod?: string; + shouldUseAlternateTargetLocation?: boolean; /** - * Next reset time of usage. + * SQL specific property where user can chose to set no-recovery when restore operation is tried */ - nextResetTime?: Date; + isNonRecoverable?: boolean; /** - * Current value of usage. + * Data directory details */ - currentValue?: number; + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; /** - * Limit of usage. + * PointInTime value */ - limit?: number; + pointInTime?: Date; /** - * Name of usage. + * RP Rehydration Info */ - name?: NameInfo; + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; } /** - * Query parameters to fetch backup summaries. + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point */ -export interface BMSBackupSummariesQueryObject { +export interface AzureWorkloadSQLRestoreWithRehydrateRequest { /** - * Backup management type for this container. Possible values include: 'Invalid', - * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + * Polymorphic Discriminator */ - type?: Type; -} - -/** - * An interface representing AADProperties. - */ -export interface AADProperties { - servicePrincipalClientId?: string; - tenantId?: string; - authority?: string; - audience?: string; - servicePrincipalObjectId?: string; -} - -/** - * An interface representing AADPropertiesResource. - */ -export interface AADPropertiesResource extends Resource { + objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; /** - * AADPropertiesResource properties + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - properties?: AADProperties; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfig { + recoveryType?: RecoveryType; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', - * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. */ - storageModelType?: StorageType; + sourceResourceId?: string; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', - * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + * Workload specific property bag. */ - storageType?: StorageType; + propertyBag?: { [propertyName: string]: string }; /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * Details of target database */ - storageTypeState?: StorageTypeState; + targetInfo?: TargetRestoreInfo; /** - * Opt in details of Cross Region Restore feature. + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' */ - crossRegionRestoreFlag?: boolean; -} - -/** - * Request object for fetching CRR jobs. - */ -export interface CrrJobRequest { + recoveryMode?: RecoveryMode; /** - * Entire ARM resource id of the resource + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - resourceId?: string; + targetVirtualMachineId?: string; /** - * Job Name of the job to be fetched + * Default option set to true. If this is set to false, alternate data directory must be provided */ - jobName?: string; -} - -/** - * Request object for fetching CRR jobs. - */ -export interface CrrJobRequestResource extends Resource { + shouldUseAlternateTargetLocation?: boolean; /** - * CrrJobRequestResource properties + * SQL specific property where user can chose to set no-recovery when restore operation is tried */ - properties?: CrrJobRequest; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfigResource extends Resource { + isNonRecoverable?: boolean; /** - * BackupResourceConfigResource properties + * Data directory details */ - properties?: BackupResourceConfig; + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; } /** - * Contains the possible cases for CrrAccessToken. - */ -export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; - -/** - * An interface representing CrrAccessToken. + * IaaS VM workload-specific restore with integrated rehydration of recovery point. */ -export interface CrrAccessToken { +export interface IaasVMRestoreWithRehydrationRequest { /** * Polymorphic Discriminator */ - objectType: "CrrAccessToken"; - /** - * Access token used for authentication - */ - accessTokenString?: string; - /** - * Subscription Id of the source vault - */ - subscriptionId?: string; - /** - * Resource Group name of the source vault - */ - resourceGroupName?: string; + objectType: "IaasVMRestoreWithRehydrationRequest"; /** - * Resource Name of the source vault + * ID of the backup copy to be recovered. */ - resourceName?: string; + recoveryPointId?: string; /** - * Resource Id of the source vault + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - resourceId?: string; + recoveryType?: RecoveryType; /** - * Protected item container id + * Fully qualified ARM ID of the VM which is being recovered. */ - protectionContainerId?: number; + sourceResourceId?: string; /** - * Recovery Point Id + * 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} */ - recoveryPointId?: string; + targetVirtualMachineId?: string; /** - * Recovery Point Time + * 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} */ - recoveryPointTime?: string; + targetResourceGroupId?: string; /** - * Container Unique name + * Fully qualified ARM ID of the storage account to which the VM has to be restored. */ - containerName?: string; + storageAccountId?: string; /** - * Container Type + * 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. */ - containerType?: string; + virtualNetworkId?: string; /** - * Backup Management Type + * 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. */ - backupManagementType?: string; + subnetId?: string; /** - * Datasource Type + * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This + * applies only to Classic + * Virtual Machines. */ - datasourceType?: string; + targetDomainNameId?: string; /** - * Datasource Friendly Name + * Region in which the virtual machine is restored. */ - datasourceName?: string; + region?: string; /** - * Datasource Id + * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual + * Machines. */ - datasourceId?: string; + affinityGroup?: string; /** - * Datasource Container Unique Name + * 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. */ - datasourceContainerName?: string; + createNewCloudService?: boolean; /** - * CoordinatorServiceStampId to be used by BCM in restore call + * Original Storage Account Option */ - coordinatorServiceStampId?: string; + originalStorageAccountOption?: boolean; /** - * CoordinatorServiceStampUri to be used by BCM in restore call + * Details needed if the VM was encrypted at the time of backup. */ - coordinatorServiceStampUri?: string; + encryptionDetails?: EncryptionDetails; /** - * ProtectionServiceStampId to be used by BCM in restore call + * List of Disk LUNs for partial restore */ - protectionServiceStampId?: string; + restoreDiskLunList?: number[]; /** - * ProtectionServiceStampUri to be used by BCM in restore call + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. */ - protectionServiceStampUri?: string; + restoreWithManagedDisks?: boolean; /** - * Extended Information about the token like FileSpec etc. + * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with + * customer managed key. */ - tokenExtendedInformation?: string; + diskEncryptionSetId?: string; /** - * Recovery point Tier Information + * Target zone where the VM and its disks should be restored. */ - rpTierInformation?: { [propertyName: string]: string }; + zones?: string[]; /** - * Recovery point information: Original SA option + * RP Rehydration Info */ - rpOriginalSAOption?: boolean; + 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 */ @@ -8124,555 +8339,271 @@ export interface WorkloadCrrAccessToken { */ coordinatorServiceStampUri?: string; /** - * 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; - /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; -} - -/** - * IaaS VM specific backup protection intent item. - */ -export interface AzureResourceProtectionIntent { + * ProtectionServiceStampId to be used by BCM in restore call + */ + protectionServiceStampId?: string; /** - * Polymorphic Discriminator + * ProtectionServiceStampUri to be used by BCM in restore call */ - protectionIntentItemType: "AzureResourceItem"; + protectionServiceStampUri?: string; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Extended Information about the token like FileSpec etc. */ - backupManagementType?: BackupManagementType; + tokenExtendedInformation?: string; /** - * ARM ID of the resource to be backed up. + * Recovery point Tier Information */ - sourceResourceId?: string; + rpTierInformation?: { [propertyName: string]: string }; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Recovery point information: Original SA option */ - itemId?: string; + rpOriginalSAOption?: boolean; /** - * ID of the backup policy with which this item is backed up. + * Recovery point information: Managed virtual machine */ - policyId?: string; + rpIsManagedVirtualMachine?: boolean; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Recovery point information: VM size description */ - protectionState?: ProtectionStatus; + rpVMSizeDescription?: string; /** - * Friendly name of the VM represented by this backup item. + * Active region name of BMS Stamp */ - friendlyName?: string; + bMSActiveRegion?: string; } /** - * 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. - */ -export type AzureWorkloadAutoProtectionIntentUnion = - | AzureWorkloadAutoProtectionIntent - | AzureWorkloadSQLAutoProtectionIntent; - -/** - * Azure Recovery Services Vault specific protection intent item. + * An interface representing CrrAccessTokenResource. */ -export interface AzureWorkloadAutoProtectionIntent { - /** - * 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; - /** - * 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; +export interface CrrAccessTokenResource extends Resource { /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * CrrAccessTokenResource properties */ - protectionState?: ProtectionStatus; + properties?: CrrAccessTokenUnion; } /** - * Azure Workload SQL Auto Protection intent item. + * Filters to list backup items. */ -export interface AzureWorkloadSQLAutoProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; +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; - /** - * Workload item type of the item for which intent is to be set. Possible values include: - * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - * 'SAPAseDatabase' - */ - workloadItemType?: WorkloadItemType; } /** - * BackupStatus request. + * Operation status extended info for Updated Recovery Point. */ -export interface BackupStatusRequest { +export interface OperationStatusRecoveryPointExtendedInfo { /** - * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * Polymorphic Discriminator */ - resourceType?: DataSourceType; + objectType: "OperationStatusRecoveryPointExtendedInfo"; /** - * Entire ARM resource id of the resource + * Recovery Point info with updated source snapshot URI */ - resourceId?: string; + updatedRecoveryPoint?: RecoveryPointUnion; /** - * Protectable Item Logical Name + * In case the share is in soft-deleted state, populate this field with deleted backup item */ - poLogicalName?: string; + deletedBackupItemVersion?: string; } /** - * BackupStatus response. + * An interface representing WorkloadCrrAccessToken. */ -export interface BackupStatusResponse { - /** - * Specifies whether the container is registered or not. Possible values include: 'Invalid', - * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionStatus?: ProtectionStatus; - /** - * Specifies the arm resource id of the vault - */ - vaultId?: string; +export interface WorkloadCrrAccessToken { /** - * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' + * Polymorphic Discriminator */ - fabricName?: FabricName; + objectType: "WorkloadCrrAccessToken"; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;csname;vmname. + * Access token used for authentication */ - containerName?: string; + accessTokenString?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + * Subscription Id of the source vault */ - protectedItemName?: string; + subscriptionId?: string; /** - * ErrorCode in case of intent failed + * Resource Group name of the source vault */ - errorCode?: string; + resourceGroupName?: string; /** - * ErrorMessage in case of intent failed. + * Resource Name of the source vault */ - errorMessage?: string; + resourceName?: string; /** - * Specifies the policy name which is used for protection + * Resource Id of the source vault */ - policyName?: string; + resourceId?: string; /** - * Container registration status + * Protected item container id */ - 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 { + protectionContainerId?: number; /** - * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', - * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', - * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', - * 'SAPHanaDatabase', 'SAPAseDatabase' + * Recovery Point Id */ - resourceType?: DataSourceType; + recoveryPointId?: string; /** - * ARM Virtual Machine Id + * Recovery Point Time */ - resourceId?: string; + recoveryPointTime?: string; /** - * ARM id of the Recovery Services Vault + * Container Unique name */ - vaultId?: string; + containerName?: string; /** - * Configuration of VM if any needs to be validated like OS type etc + * Container Type */ - properties?: string; -} - -/** - * Response contract for enable backup validation request - */ -export interface PreValidateEnableBackupResponse { + containerType?: string; /** - * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' + * Backup Management Type */ - status?: ValidationStatus; + backupManagementType?: string; /** - * Response error code + * Datasource Type */ - errorCode?: string; + datasourceType?: string; /** - * Response error message + * Datasource Friendly Name */ - errorMessage?: string; + datasourceName?: string; /** - * Recommended action for user + * Datasource Id */ - recommendation?: string; + datasourceId?: string; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - * for portal + * Datasource Container Unique Name */ - containerName?: string; + datasourceContainerName?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is - * required for portal - */ - protectedItemName?: string; -} - -/** - * Filters to list protection intent. - */ -export interface ProtectionIntentQueryObject { + * CoordinatorServiceStampId to be used by BCM in restore call + */ + coordinatorServiceStampId?: string; /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * CoordinatorServiceStampUri to be used by BCM in restore call */ - backupManagementType?: BackupManagementType; + coordinatorServiceStampUri?: string; /** - * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', - * 'SQLAvailabilityGroupContainer' + * ProtectionServiceStampId to be used by BCM in restore call */ - itemType?: IntentItemType; + protectionServiceStampId?: string; /** - * Parent name of the intent + * ProtectionServiceStampUri to be used by BCM in restore call */ - parentName?: string; + protectionServiceStampUri?: string; /** - * Item name of the intent + * Extended Information about the token like FileSpec etc. */ - itemName?: string; -} - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntentResource extends Resource { + tokenExtendedInformation?: string; /** - * ProtectionIntentResource properties + * Recovery point Tier Information */ - properties?: ProtectionIntentUnion; -} - -/** - * Localized display information of an operation. - */ -export interface ClientDiscoveryDisplay { + rpTierInformation?: { [propertyName: string]: string }; /** - * Name of the provider for display purposes + * Recovery point information: Original SA option */ - provider?: string; + rpOriginalSAOption?: boolean; /** - * ResourceType for which this Operation can be performed. + * Recovery point information: Managed virtual machine */ - resource?: string; + rpIsManagedVirtualMachine?: boolean; /** - * Operations Name itself. + * Recovery point information: VM size description */ - operation?: string; + rpVMSizeDescription?: string; /** - * Description of the operation having details of what operation is about. + * Active region name of BMS Stamp */ - description?: string; -} - -/** - * Class to represent shoebox log specification in json client discovery. - */ -export interface ClientDiscoveryForLogSpecification { + bMSActiveRegion?: string; + protectableObjectUniqueName?: string; + protectableObjectFriendlyName?: string; + protectableObjectWorkloadType?: string; + protectableObjectProtectionState?: string; + protectableObjectContainerHostOsName?: string; + protectableObjectParentLogicalContainerName?: string; /** - * Name for shoebox log specification. + * Container Id */ - name?: string; + containerId?: string; /** - * Localized display name + * Policy Name */ - displayName?: string; + policyName?: string; /** - * blob duration of shoebox log specification + * Policy Id */ - blobDuration?: string; + policyId?: string; } /** - * Class to represent shoebox service specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForServiceSpecification { +export interface BackupProtectionIntentListOptionalParams 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 { +export interface BackupProtectionIntentListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Name of the Operation. + * OData filter options. */ - name?: string; + filter?: string; /** - * Contains the localized display information for this particular operation + * skipToken Filter. */ - display?: ClientDiscoveryDisplay; + skipToken?: string; +} + +/** + * Optional Parameters. + */ +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 +8873,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 +8981,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 +9020,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 +9093,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; } }