From 082deaf4935ac30fcc777b9bf5b2a9732f3dac29 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 21 Jul 2021 07:37:11 +0000 Subject: [PATCH] CodeGen from PR 15285 in Azure/azure-rest-api-specs Merge 2aeff9152eec6c46627987857870e9d27b6e7909 into c2ec03e5faa411e9a6785c15c3ddbd812e67ba7b --- .../arm-recoveryservicesbackup/README.md | 61 +- .../arm-recoveryservicesbackup/package.json | 2 +- .../rollup.config.js | 10 +- .../src/models/aadPropertiesMappers.ts | 3 + .../src/models/backupCrrJobDetailsMappers.ts | 3 + .../src/models/backupCrrJobsMappers.ts | 3 + .../src/models/backupEnginesMappers.ts | 3 + .../src/models/backupJobsMappers.ts | 3 + .../models/backupOperationResultsMappers.ts | 5 +- .../src/models/backupPoliciesMappers.ts | 3 + .../models/backupProtectableItemsMappers.ts | 3 + .../models/backupProtectedItemsCrrMappers.ts | 3 + .../src/models/backupProtectedItemsMappers.ts | 3 + .../backupProtectionContainersMappers.ts | 3 + .../models/backupProtectionIntentMappers.ts | 3 + .../backupResourceEncryptionConfigsMappers.ts | 3 + .../backupResourceStorageConfigsMappers.ts | 3 + ...ckupResourceStorageConfigsNonCRRMappers.ts | 228 + .../backupResourceVaultConfigsMappers.ts | 3 + .../src/models/backupWorkloadItemsMappers.ts | 3 + .../src/models/backupsMappers.ts | 3 + .../src/models/crossRegionRestoreMappers.ts | 1 + .../src/models/index.ts | 4974 ++++++++--------- .../itemLevelRecoveryConnectionsMappers.ts | 3 + .../src/models/jobCancellationsMappers.ts | 5 +- .../src/models/jobDetailsMappers.ts | 3 + .../src/models/jobOperationResultsMappers.ts | 5 +- .../src/models/jobsMappers.ts | 5 +- .../src/models/mappers.ts | 3208 ++++++----- .../src/models/operationMappers.ts | 1 + .../src/models/parameters.ts | 40 +- ...vateEndpointConnectionOperationsMappers.ts | 3 + .../models/protectableContainersMappers.ts | 3 + .../protectedItemOperationResultsMappers.ts | 3 + .../src/models/protectedItemsMappers.ts | 3 + ...tectionContainerOperationResultsMappers.ts | 3 + ...ContainerRefreshOperationResultsMappers.ts | 5 +- .../src/models/protectionContainersMappers.ts | 3 + .../protectionIntentOperationsMappers.ts | 3 + .../src/models/protectionPoliciesMappers.ts | 3 + ...protectionPolicyOperationResultsMappers.ts | 3 + .../src/models/recoveryPointsCrrMappers.ts | 3 + .../src/models/recoveryPointsMappers.ts | 3 + ...recoveryPointsRecommendedForMoveMappers.ts | 3 + .../src/models/restoresMappers.ts | 3 + .../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 +- .../backupResourceStorageConfigsNonCRR.ts | 229 + .../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 | 13 +- .../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 | 217 +- .../recoveryServicesBackupClientContext.ts | 17 +- 102 files changed, 6000 insertions(+), 7304 deletions(-) create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsNonCRRMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigsNonCRR.ts diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index 7924c707fce7..ae92063d4bdd 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 backupResourceStorageConfigsNonCRR as an example written in JavaScript. ##### Sample code @@ -55,24 +51,20 @@ 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); - }); +client.backupResourceStorageConfigsNonCRR.get(vaultName, resourceGroupName).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 backupResourceStorageConfigsNonCRR 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 +82,21 @@ 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); - }); + client.backupResourceStorageConfigsNonCRR.get(vaultName, resourceGroupName).then((result) => { + console.log("The result is:"); + console.log(result); + }).catch((err) => { + console.log("An error occurred:"); + console.error(err); + }); diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json index b31758dbafb6..1cb10942f505 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/recoveryservicesbackup/arm-recoveryservicesbackup", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js index ea6687ad2d1a..bb0c6fd4e76b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js @@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps"; */ const config = { input: "./esm/recoveryServicesBackupClient.js", - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-recoveryservicesbackup.js", format: "umd", @@ -25,7 +28,10 @@ const config = { * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, - plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()] + plugins: [ + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() + ] }; export default config; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts index 2a64622f2f0e..8dcca4c6198d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts index 841f64f3c0bd..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts @@ -6,4 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { discriminators, CloudError } from "../models/mappers"; +export { + discriminators, + CloudError +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts index 2a64622f2f0e..8dcca4c6198d 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsNonCRRMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsNonCRRMappers.ts new file mode 100644 index 000000000000..c7c5f9dff55b --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsNonCRRMappers.ts @@ -0,0 +1,228 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AADProperties, + AADPropertiesResource, + AzureBackupServerContainer, + AzureBackupServerEngine, + AzureFileShareBackupRequest, + AzureFileShareProtectableItem, + AzureFileshareProtectedItem, + AzureFileshareProtectedItemExtendedInfo, + AzureFileShareProtectionPolicy, + AzureFileShareProvisionILRRequest, + AzureFileShareRecoveryPoint, + AzureFileShareRestoreRequest, + AzureIaaSClassicComputeVMContainer, + AzureIaaSClassicComputeVMProtectableItem, + AzureIaaSClassicComputeVMProtectedItem, + AzureIaaSComputeVMContainer, + AzureIaaSComputeVMProtectableItem, + AzureIaaSComputeVMProtectedItem, + AzureIaaSVMErrorInfo, + AzureIaaSVMHealthDetails, + AzureIaaSVMJob, + AzureIaaSVMJobExtendedInfo, + AzureIaaSVMJobTaskDetails, + AzureIaaSVMProtectedItem, + AzureIaaSVMProtectedItemExtendedInfo, + AzureIaaSVMProtectionPolicy, + AzureRecoveryServiceVaultProtectionIntent, + AzureResourceProtectionIntent, + AzureSQLAGWorkloadContainerProtectionContainer, + AzureSqlContainer, + AzureSqlProtectedItem, + AzureSqlProtectedItemExtendedInfo, + AzureSqlProtectionPolicy, + AzureStorageContainer, + AzureStorageErrorInfo, + AzureStorageJob, + AzureStorageJobExtendedInfo, + AzureStorageJobTaskDetails, + AzureStorageProtectableContainer, + AzureVMAppContainerProtectableContainer, + AzureVMAppContainerProtectionContainer, + AzureVmWorkloadItem, + AzureVmWorkloadProtectableItem, + AzureVmWorkloadProtectedItem, + AzureVmWorkloadProtectedItemExtendedInfo, + AzureVmWorkloadProtectionPolicy, + AzureVmWorkloadSAPAseDatabaseProtectedItem, + AzureVmWorkloadSAPAseDatabaseWorkloadItem, + AzureVmWorkloadSAPAseSystemProtectableItem, + AzureVmWorkloadSAPAseSystemWorkloadItem, + AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSAPHanaDatabaseWorkloadItem, + AzureVmWorkloadSAPHanaSystemProtectableItem, + AzureVmWorkloadSAPHanaSystemWorkloadItem, + AzureVmWorkloadSQLAvailabilityGroupProtectableItem, + AzureVmWorkloadSQLDatabaseProtectableItem, + AzureVmWorkloadSQLDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseWorkloadItem, + AzureVmWorkloadSQLInstanceProtectableItem, + AzureVmWorkloadSQLInstanceWorkloadItem, + AzureWorkloadAutoProtectionIntent, + AzureWorkloadBackupRequest, + AzureWorkloadContainer, + AzureWorkloadContainerExtendedInfo, + AzureWorkloadErrorInfo, + AzureWorkloadJob, + AzureWorkloadJobExtendedInfo, + AzureWorkloadJobTaskDetails, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRecoveryPoint, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLAutoProtectionIntent, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + BackupEngineBase, + BackupEngineBaseResource, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, + BackupResourceEncryptionConfigResource, + BackupResourceVaultConfig, + BackupResourceVaultConfigResource, + BaseResource, + BEKDetails, + ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, + DailyRetentionFormat, + DailyRetentionSchedule, + Day, + DiskExclusionProperties, + DiskInformation, + DistributedNodesInfo, + DpmBackupEngine, + DpmContainer, + DPMContainerExtendedInfo, + DpmErrorInfo, + DpmJob, + DpmJobExtendedInfo, + DpmJobTaskDetails, + DPMProtectedItem, + DPMProtectedItemExtendedInfo, + EncryptionDetails, + ErrorAdditionalInfo, + ErrorDetail, + ExtendedProperties, + GenericContainer, + GenericContainerExtendedInfo, + GenericProtectedItem, + GenericProtectionPolicy, + GenericRecoveryPoint, + IaasVMBackupRequest, + IaaSVMContainer, + IaasVMILRRegistrationRequest, + IaaSVMProtectableItem, + IaasVMRecoveryPoint, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + IdentityInfo, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts index f478e80e0f73..c7c5f9dff55b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts index 2b141b46a66e..5e82c5028a61 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts @@ -104,6 +104,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -147,6 +149,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index a7719f9e3a6a..3806152dfa7e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts @@ -103,6 +103,8 @@ export { BackupResourceConfig, BackupResourceConfigResource, BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigExtended, + BackupResourceEncryptionConfigExtendedResource, BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, @@ -146,6 +148,7 @@ export { IaasVMRecoveryPoint, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, ILRRequest, ILRRequestResource, InquiryInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts index 3b9a9f884247..5d2e7379fea6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts @@ -25,6 +25,7 @@ export { ErrorAdditionalInfo, IaasVMRestoreRequest, IaasVMRestoreWithRehydrationRequest, + IdentityInfo, NewErrorResponse, NewErrorResponseError, RecoveryPointRehydrationInfo, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index 4d1ebf9b4cf2..b699ae6787a8 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 */ @@ -3165,6 +3206,41 @@ export interface DpmJob { extendedInfo?: DpmJobExtendedInfo; } +/** + * The resource storage details. + */ +export interface BackupResourceConfig { + /** + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + */ + 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; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfigResource extends Resource { + /** + * BackupResourceConfigResource properties + */ + properties?: BackupResourceConfig; +} + /** * Additional information of DPM Protected item. */ @@ -3340,10 +3416,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. @@ -3675,6 +3748,21 @@ export interface IaasVMRecoveryPoint { recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } +/** + * Encapsulates Managed Identity related information + */ +export interface IdentityInfo { + /** + * To differentiate if the managed identity is system assigned or user assigned + */ + isSystemAssignedIdentity?: boolean; + /** + * Managed Identity Resource Id + * Optional: Might not be required in the case of system assigned managed identity + */ + managedIdentityResourceId?: string; +} + /** * Contains the possible cases for IaasVMRestoreRequest. */ @@ -3775,6 +3863,10 @@ export interface IaasVMRestoreRequest { * Target zone where the VM and its disks should be restored. */ zones?: string[]; + /** + * Managed Identity information required to access customer storage account. + */ + identityInfo?: IdentityInfo; } /** @@ -4274,9 +4366,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 +4623,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 +4638,7 @@ export interface ValidateOperationRequest { /** * Contains the possible cases for ValidateRestoreOperationRequest. */ -export type ValidateRestoreOperationRequestUnion = - | ValidateRestoreOperationRequest - | ValidateIaasVMRestoreOperationRequest; +export type ValidateRestoreOperationRequestUnion = ValidateRestoreOperationRequest | ValidateIaasVMRestoreOperationRequest; /** * AzureRestoreValidation request. @@ -4725,15 +4811,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 +5095,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 +5124,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 +5195,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 +5228,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 +5313,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 +5451,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 +5630,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 +5802,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 +5873,7 @@ export interface PreBackupValidation { /** * Contains the possible cases for AzureVmWorkloadProtectableItem. */ -export type AzureVmWorkloadProtectableItemUnion = - | AzureVmWorkloadProtectableItem - | AzureVmWorkloadSAPAseSystemProtectableItem - | AzureVmWorkloadSAPHanaDatabaseProtectableItem - | AzureVmWorkloadSAPHanaSystemProtectableItem - | AzureVmWorkloadSQLAvailabilityGroupProtectableItem - | AzureVmWorkloadSQLDatabaseProtectableItem - | AzureVmWorkloadSQLInstanceProtectableItem; +export type AzureVmWorkloadProtectableItemUnion = AzureVmWorkloadProtectableItem | AzureVmWorkloadSAPAseSystemProtectableItem | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; /** * Azure VM workload-specific protectable item. @@ -6564,1497 +6605,1694 @@ 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; - /** - * 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' - */ - backupItemType?: BackupItemType; - /** - * List of backup items associated with this container. - */ - backupItems?: string[]; - /** - * Backup policy associated with this container. - */ - policyName?: string; +export interface BMSBackupEngineQueryObject { /** - * Latest backup status of this container. + * attribute to add extended info */ - lastBackupStatus?: string; + expand?: string; } /** - * MAB workload-specific Health Details. + * Query parameters to fetch list of backup engines. */ -export interface MABContainerHealthDetails { - /** - * Health Code - */ - code?: number; +export interface BMSBackupEnginesQueryObject { /** - * Health Title + * Backup management type for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - title?: string; + backupManagementType?: BackupManagementType; /** - * Health Message + * Friendly name of the backup engine. */ - message?: string; + friendlyName?: string; /** - * Health Recommended Actions + * Attribute to add extended info. */ - recommendations?: string[]; + expand?: string; } /** - * Container with items backed up using MAB backup engine. + * The query filters that can be used with the list containers API. */ -export interface MabContainer { - /** - * Polymorphic Discriminator - */ - containerType: "Windows"; +export interface BMSContainerQueryObject { /** - * Friendly name of the container. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - friendlyName?: string; + backupManagementType: BackupManagementType; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Type of container for filter. Possible values include: 'Invalid', 'Unknown', + * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', + * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' */ - backupManagementType?: BackupManagementType; + containerType?: ContainerType; /** - * Status of registration of the container with the Recovery Services Vault. + * Backup engine name */ - registrationStatus?: string; + backupEngineName?: string; /** - * Status of health of the container. + * Fabric name for filter */ - healthStatus?: string; + fabricName?: string; /** - * Can the container be registered one more time. + * Status of registration of this container with the Recovery Services Vault. */ - canReRegister?: boolean; + status?: string; /** - * ContainerID represents the container. + * Friendly name of this container. */ - containerId?: number; + friendlyName?: string; +} + +/** + * The query filters that can be used with the inquire container API. + */ +export interface BMSContainersInquiryQueryObject { /** - * 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; /** - * Agent version of this container. + * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - agentVersion?: string; + workloadType?: WorkloadType; +} + +/** + * Filters to list items that can be backed up. + */ +export interface BMSPOQueryObject { /** - * Additional information for this container + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - extendedInfo?: MabContainerExtendedInfo; + backupManagementType?: BackupManagementType; /** - * 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. + * Full name of the container whose Protectable Objects should be returned. */ - containerHealthState?: string; -} - -/** - * Error information associated with operation status call. - */ -export interface OperationStatusError { + containerName?: string; /** - * Error code of the operation failure. + * Backup status query parameter. */ - code?: string; + status?: string; /** - * Error message displayed if the operation failure. + * Friendly name. */ - message?: string; + friendlyName?: string; } /** - * Contains the possible cases for OperationStatusExtendedInfo. - */ -export type OperationStatusExtendedInfoUnion = - | OperationStatusExtendedInfo - | OperationStatusJobExtendedInfo - | OperationStatusJobsExtendedInfo - | OperationStatusProvisionILRExtendedInfo - | OperationStatusRecoveryPointExtendedInfo; - -/** - * Base class for additional information of operation status. + * The query filters that can be used with the refresh container API. */ -export interface OperationStatusExtendedInfo { +export interface BMSRefreshContainersQueryObject { /** - * Polymorphic Discriminator + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - objectType: "OperationStatusExtendedInfo"; + backupManagementType?: BackupManagementType; } /** - * Operation status. + * Filters to list items that can be backed up. */ -export interface OperationStatus { +export interface BMSWorkloadItemQueryObject { /** - * ID of the operation. + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - id?: string; + backupManagementType?: BackupManagementType; /** - * Name of the operation. + * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', + * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' */ - name?: string; + workloadItemType?: WorkloadItemType; /** - * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - status?: OperationStatusValues; + workloadType?: WorkloadType; /** - * Operation start time. Format: ISO-8601. + * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - startTime?: Date; + protectionStatus?: ProtectionStatus; +} + +/** + * Client script details for file / folder restore. + */ +export interface ClientScriptForConnect { /** - * Operation end time. Format: ISO-8601. + * File content of the client script for file / folder restore. */ - endTime?: Date; + scriptContent?: string; /** - * Error information related to this operation. + * File extension of the client script for file / folder restore - .ps1 , .sh , etc. */ - error?: OperationStatusError; + scriptExtension?: string; /** - * Additional information associated with this operation. + * OS type - Windows, Linux etc. for which this file / folder restore client script works. */ - properties?: OperationStatusExtendedInfoUnion; -} - -/** - * Operation status job extended info. - */ -export interface OperationStatusJobExtendedInfo { + osType?: string; /** - * Polymorphic Discriminator + * URL of Executable from where to source the content. If this is not null then ScriptContent + * should not be used */ - objectType: "OperationStatusJobExtendedInfo"; + url?: string; /** - * ID of the job created for this protected item. + * 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. */ - jobId?: string; + scriptNameSuffix?: string; } /** - * Operation status extended info for list of jobs. + * Container identity information */ -export interface OperationStatusJobsExtendedInfo { +export interface ContainerIdentityInfo { /** - * Polymorphic Discriminator + * Unique name of the container */ - objectType: "OperationStatusJobsExtendedInfo"; + uniqueName?: string; /** - * IDs of the jobs created for the protected item. + * Protection container identity - AAD Tenant */ - jobIds?: string[]; + aadTenantId?: string; /** - * Stores all the failed jobs along with the corresponding error codes. + * Protection container identity - AAD Service Principal */ - failedJobsError?: { [propertyName: string]: string }; + servicePrincipalClientId?: string; + /** + * Protection container identity - Audience + */ + audience?: string; } /** - * Operation status extended info for ILR provision action. + * Data Protection Manager (DPM) specific backup engine. */ -export interface OperationStatusProvisionILRExtendedInfo { +export interface DpmBackupEngine { /** * Polymorphic Discriminator */ - objectType: "OperationStatusProvisionILRExtendedInfo"; + backupEngineType: "DpmBackupEngine"; /** - * Target details for file / folder restore. + * Friendly name of the backup engine. */ - recoveryTarget?: InstantItemRecoveryTarget; -} - -/** - * Protectable Container Class. - */ -export interface ProtectableContainerResource extends Resource { + friendlyName?: string; /** - * ProtectableContainerResource properties + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - properties?: ProtectableContainerUnion; -} - -/** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. - */ -export interface ProtectionContainerResource extends Resource { + backupManagementType?: BackupManagementType; /** - * ProtectionContainerResource properties + * Registration status of the backup engine with the Recovery Services Vault. */ - properties?: ProtectionContainerUnion; -} - -/** - * The token information details. - */ -export interface TokenInformation { + registrationStatus?: string; /** - * Token value. + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - token?: string; + backupEngineState?: string; /** - * Expiry time of token. + * Backup status of the backup engine. */ - expiryTimeInUtcTicks?: number; + healthStatus?: string; /** - * Security PIN + * Flag indicating if the backup engine be registered, once already registered. */ - securityPIN?: string; -} - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadItemResource extends Resource { + canReRegister?: boolean; /** - * WorkloadItemResource properties + * ID of the backup engine. */ - properties?: WorkloadItemUnion; + backupEngineId?: string; + /** + * Backup engine version + */ + dpmVersion?: string; + /** + * Backup agent version + */ + azureBackupAgentVersion?: string; + /** + * To check if backup agent upgrade available + */ + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Additional information of the DPMContainer. */ -export interface WorkloadProtectableItemResource extends Resource { +export interface DPMContainerExtendedInfo { /** - * WorkloadProtectableItemResource properties + * Last refresh time of the DPMContainer. */ - properties?: WorkloadProtectableItemUnion; + lastRefreshedAt?: Date; } /** - * RP Rehydration Info + * Container extended information */ -export interface RecoveryPointRehydrationInfo { +export interface GenericContainerExtendedInfo { /** - * How long the rehydrated RP should be kept - * Should be ISO8601 Duration format e.g. "P7D" + * Public key of container cert */ - rehydrationRetentionDuration?: string; + rawCertData?: string; /** - * Rehydration Priority. Possible values include: 'Standard', 'High' + * Container identity information */ - rehydrationPriority?: RehydrationPriority; + containerIdentityInfo?: ContainerIdentityInfo; + /** + * Azure Backup Service Endpoints for the container + */ + serviceEndpoints?: { [propertyName: string]: string }; } /** - * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + * Base class for generic container of backup items */ -export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { +export interface GenericContainer { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; + containerType: "GenericContainer"; /** - * 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' + * Name of the container's fabric */ - recoveryMode?: RecoveryMode; + fabricName?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Extended information (not returned in List container API calls) */ - targetVirtualMachineId?: string; + extendedInformation?: GenericContainerExtendedInfo; +} + +/** + * IaaS VM workload-specific backup request. + */ +export interface IaasVMBackupRequest { /** - * PointInTime value + * Polymorphic Discriminator */ - pointInTime?: Date; + objectType: "IaasVMBackupRequest"; /** - * RP Rehydration Info + * Backup copy will expire after the time specified (UTC). */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + recoveryPointExpiryTimeInUTC?: Date; } /** - * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + * Restore files/folders from a backup copy of IaaS VM. */ -export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { +export interface IaasVMILRRegistrationRequest { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; - /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' - */ - recoveryType?: RecoveryType; + objectType: "IaasVMILRRegistrationRequest"; /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * ID of the IaaS VM backup copy from where the files/folders have to be restored. */ - sourceResourceId?: string; + recoveryPointId?: string; /** - * Workload specific property bag. + * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. */ - propertyBag?: { [propertyName: string]: string }; + virtualMachineId?: string; /** - * Details of target database + * iSCSI initiator name. */ - targetInfo?: TargetRestoreInfo; + initiatorName?: string; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Whether to renew existing registration with the iSCSI server. */ - recoveryMode?: RecoveryMode; + renewExistingRegistration?: boolean; +} + +/** + * Parameters to Provision ILR API. + */ +export interface ILRRequestResource extends Resource { /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * ILRRequestResource properties */ - targetVirtualMachineId?: string; + properties?: ILRRequestUnion; +} + +/** + * Target details for file / folder restore. + */ +export interface InstantItemRecoveryTarget { /** - * RP Rehydration Info + * List of client scripts. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + clientScripts?: ClientScriptForConnect[]; } /** - * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. + * Additional information of the container. */ -export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { +export interface MabContainerExtendedInfo { /** - * Polymorphic Discriminator + * Time stamp when this container was refreshed. */ - objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; + 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; /** - * Default option set to true. If this is set to false, alternate data directory must be provided + * Health Message */ - shouldUseAlternateTargetLocation?: boolean; + message?: string; /** - * SQL specific property where user can chose to set no-recovery when restore operation is tried + * Health Recommended Actions */ - isNonRecoverable?: boolean; + recommendations?: string[]; +} + +/** + * Container with items backed up using MAB backup engine. + */ +export interface MabContainer { /** - * Data directory details + * Polymorphic Discriminator */ - alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + containerType: "Windows"; /** - * PointInTime value + * Friendly name of the container. */ - pointInTime?: Date; + friendlyName?: string; /** - * RP Rehydration Info + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; -} - -/** - * AzureWorkload SQL-specific restore with integrated rehydration of recovery point - */ -export interface AzureWorkloadSQLRestoreWithRehydrateRequest { + backupManagementType?: BackupManagementType; /** - * Polymorphic Discriminator + * Status of registration of the container with the Recovery Services Vault. */ - objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; + registrationStatus?: string; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * Status of health of the container. */ - recoveryType?: RecoveryType; + healthStatus?: string; /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * Can the container be registered one more time. */ - sourceResourceId?: string; + canReRegister?: boolean; /** - * Workload specific property bag. + * ContainerID represents the container. */ - propertyBag?: { [propertyName: string]: string }; + containerId?: number; /** - * Details of target database + * Number of items backed up in this container. */ - targetInfo?: TargetRestoreInfo; + protectedItemCount?: number; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Agent version of this container. */ - recoveryMode?: RecoveryMode; + agentVersion?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Additional information for this container */ - targetVirtualMachineId?: string; + extendedInfo?: MabContainerExtendedInfo; /** - * Default option set to true. If this is set to false, alternate data directory must be provided + * Health details on this mab container. */ - shouldUseAlternateTargetLocation?: boolean; + mabContainerHealthDetails?: MABContainerHealthDetails[]; /** - * SQL specific property where user can chose to set no-recovery when restore operation is tried + * Health state of mab container. */ - isNonRecoverable?: boolean; + containerHealthState?: string; +} + +/** + * Error information associated with operation status call. + */ +export interface OperationStatusError { /** - * Data directory details + * Error code of the operation failure. */ - alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + code?: string; /** - * RP Rehydration Info + * Error message displayed if the operation failure. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + message?: string; } /** - * IaaS VM workload-specific restore with integrated rehydration of recovery point. + * Contains the possible cases for OperationStatusExtendedInfo. */ -export interface IaasVMRestoreWithRehydrationRequest { +export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo | OperationStatusRecoveryPointExtendedInfo; + +/** + * Base class for additional information of operation status. + */ +export interface OperationStatusExtendedInfo { /** * Polymorphic Discriminator */ - objectType: "IaasVMRestoreWithRehydrationRequest"; - /** - * ID of the backup copy to be recovered. - */ - recoveryPointId?: string; - /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' - */ - recoveryType?: RecoveryType; - /** - * Fully qualified ARM ID of the VM which is being recovered. - */ - sourceResourceId?: string; + objectType: "OperationStatusExtendedInfo"; +} + +/** + * Operation status. + */ +export interface OperationStatus { /** - * 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} + * ID of the operation. */ - targetVirtualMachineId?: string; + id?: string; /** - * 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} + * Name of the operation. */ - targetResourceGroupId?: string; + name?: string; /** - * Fully qualified ARM ID of the storage account to which the VM has to be restored. + * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', + * 'Canceled' */ - storageAccountId?: string; + status?: OperationStatusValues; /** - * 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. + * Operation start time. Format: ISO-8601. */ - virtualNetworkId?: string; + startTime?: Date; /** - * 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. + * Operation end time. Format: ISO-8601. */ - subnetId?: string; + endTime?: Date; /** - * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This - * applies only to Classic - * Virtual Machines. + * Error information related to this operation. */ - targetDomainNameId?: string; + error?: OperationStatusError; /** - * Region in which the virtual machine is restored. + * Additional information associated with this operation. */ - region?: string; + properties?: OperationStatusExtendedInfoUnion; +} + +/** + * Operation status job extended info. + */ +export interface OperationStatusJobExtendedInfo { /** - * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual - * Machines. + * Polymorphic Discriminator */ - affinityGroup?: string; + objectType: "OperationStatusJobExtendedInfo"; /** - * 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. + * ID of the job created for this protected item. */ - createNewCloudService?: boolean; + jobId?: string; +} + +/** + * Operation status extended info for list of jobs. + */ +export interface OperationStatusJobsExtendedInfo { /** - * Original Storage Account Option + * Polymorphic Discriminator */ - originalStorageAccountOption?: boolean; + objectType: "OperationStatusJobsExtendedInfo"; /** - * Details needed if the VM was encrypted at the time of backup. + * IDs of the jobs created for the protected item. */ - encryptionDetails?: EncryptionDetails; + jobIds?: string[]; /** - * List of Disk LUNs for partial restore + * Stores all the failed jobs along with the corresponding error codes. */ - restoreDiskLunList?: number[]; + failedJobsError?: { [propertyName: string]: string }; +} + +/** + * Operation status extended info for ILR provision action. + */ +export interface OperationStatusProvisionILRExtendedInfo { /** - * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + * Polymorphic Discriminator */ - restoreWithManagedDisks?: boolean; + objectType: "OperationStatusProvisionILRExtendedInfo"; /** - * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with - * customer managed key. + * Target details for file / folder restore. */ - diskEncryptionSetId?: string; + recoveryTarget?: InstantItemRecoveryTarget; +} + +/** + * Protectable Container Class. + */ +export interface ProtectableContainerResource extends Resource { /** - * Target zone where the VM and its disks should be restored. + * ProtectableContainerResource properties */ - zones?: string[]; + properties?: ProtectableContainerUnion; +} + +/** + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainerResource extends Resource { /** - * RP Rehydration Info + * ProtectionContainerResource properties */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + properties?: ProtectionContainerUnion; } /** - * An interface representing MoveRPAcrossTiersRequest. + * The token information details. */ -export interface MoveRPAcrossTiersRequest { +export interface TokenInformation { /** - * Gets the class type. + * Token value. */ - objectType?: string; + token?: string; /** - * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', - * 'HardenedRP', 'ArchivedRP' + * Expiry time of token. */ - sourceTierType?: RecoveryPointTierType; + expiryTimeInUtcTicks?: number; /** - * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', - * 'HardenedRP', 'ArchivedRP' + * Security PIN */ - targetTierType?: RecoveryPointTierType; + securityPIN?: string; } /** - * ListRecoveryPointsRecommendedForMoveRequest Request + * Base class for backup item. Workload-specific backup items are derived from this class. */ -export interface ListRecoveryPointsRecommendedForMoveRequest { - /** - * Gets the class type. - */ - objectType?: string; +export interface WorkloadItemResource extends Resource { /** - * List of Recovery Points excluded from Move + * WorkloadItemResource properties */ - excludedRPList?: string[]; + properties?: WorkloadItemUnion; } /** - * The name of usage. + * Base class for backup item. Workload-specific backup items are derived from this class. */ -export interface NameInfo { - /** - * Value of usage. - */ - value?: string; +export interface WorkloadProtectableItemResource extends Resource { /** - * Localized value of usage. + * WorkloadProtectableItemResource properties */ - localizedValue?: string; + properties?: WorkloadProtectableItemUnion; } /** - * Backup management usages of a vault. + * RP Rehydration Info */ -export interface BackupManagementUsage { +export interface RecoveryPointRehydrationInfo { /** - * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' + * How long the rehydrated RP should be kept + * Should be ISO8601 Duration format e.g. "P7D" */ - unit?: UsagesUnit; + rehydrationRetentionDuration?: string; /** - * Quota period of usage. + * Rehydration Priority. Possible values include: 'Standard', 'High' */ - quotaPeriod?: string; + rehydrationPriority?: RehydrationPriority; +} + +/** + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { /** - * Next reset time of usage. + * Polymorphic Discriminator */ - nextResetTime?: Date; + objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; /** - * Current value of usage. + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - currentValue?: number; + recoveryType?: RecoveryType; /** - * Limit of usage. + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. */ - limit?: number; + sourceResourceId?: string; /** - * Name of usage. + * Workload specific property bag. */ - name?: NameInfo; -} - -/** - * Query parameters to fetch backup summaries. - */ -export interface BMSBackupSummariesQueryObject { + propertyBag?: { [propertyName: string]: string }; /** - * Backup management type for this container. Possible values include: 'Invalid', - * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + * Details of target database */ - 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 { + targetInfo?: TargetRestoreInfo; /** - * AADPropertiesResource properties + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' */ - properties?: AADProperties; + 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 + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; } /** - * The resource storage details. + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. */ -export interface BackupResourceConfig { +export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', - * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + * Polymorphic Discriminator */ - storageModelType?: StorageType; + objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', - * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - storageType?: StorageType; + recoveryType?: RecoveryType; /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. */ - storageTypeState?: StorageTypeState; + sourceResourceId?: string; /** - * Opt in details of Cross Region Restore feature. + * Workload specific property bag. */ - crossRegionRestoreFlag?: boolean; -} - -/** - * Request object for fetching CRR jobs. - */ -export interface CrrJobRequest { + propertyBag?: { [propertyName: string]: string }; /** - * Entire ARM resource id of the resource + * Details of target database */ - resourceId?: string; + targetInfo?: TargetRestoreInfo; /** - * Job Name of the job to be fetched + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' */ - jobName?: string; -} - -/** - * Request object for fetching CRR jobs. - */ -export interface CrrJobRequestResource extends Resource { + recoveryMode?: RecoveryMode; /** - * CrrJobRequestResource properties + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - properties?: CrrJobRequest; + targetVirtualMachineId?: string; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; } /** - * The resource storage details. + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. */ -export interface BackupResourceConfigResource extends Resource { +export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { /** - * BackupResourceConfigResource properties + * Polymorphic Discriminator */ - properties?: BackupResourceConfig; + objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * PointInTime value + */ + pointInTime?: Date; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; } /** - * Contains the possible cases for CrrAccessToken. - */ -export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; - -/** - * An interface representing CrrAccessToken. + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point */ -export interface CrrAccessToken { +export interface AzureWorkloadSQLRestoreWithRehydrateRequest { /** * Polymorphic Discriminator */ - objectType: "CrrAccessToken"; + objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; /** - * Access token used for authentication + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - accessTokenString?: string; + recoveryType?: RecoveryType; /** - * Subscription Id of the source vault + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. */ - subscriptionId?: string; + sourceResourceId?: string; /** - * Resource Group name of the source vault + * Workload specific property bag. */ - resourceGroupName?: string; + propertyBag?: { [propertyName: string]: string }; /** - * Resource Name of the source vault + * Details of target database */ - resourceName?: string; + targetInfo?: TargetRestoreInfo; /** - * Resource Id of the source vault + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' */ - resourceId?: string; + recoveryMode?: RecoveryMode; /** - * Protected item container id + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - protectionContainerId?: number; + targetVirtualMachineId?: string; /** - * Recovery Point Id + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * IaaS VM workload-specific restore with integrated rehydration of recovery point. + */ +export interface IaasVMRestoreWithRehydrationRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMRestoreWithRehydrationRequest"; + /** + * ID of the backup copy to be recovered. */ recoveryPointId?: string; /** - * Recovery Point Time + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - recoveryPointTime?: string; + recoveryType?: RecoveryType; /** - * Container Unique name + * Fully qualified ARM ID of the VM which is being recovered. */ - containerName?: string; + sourceResourceId?: string; /** - * Container Type + * This is the complete ARM Id of the VM that will be created. + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - containerType?: string; + targetVirtualMachineId?: string; /** - * Backup Management Type + * This is the ARM Id of the resource group that you want to create for this Virtual machine and + * other artifacts. + * For e.g. /subscriptions/{subId}/resourcegroups/{rg} */ - backupManagementType?: string; + targetResourceGroupId?: string; /** - * Datasource Type + * Fully qualified ARM ID of the storage account to which the VM has to be restored. */ - datasourceType?: string; + storageAccountId?: string; /** - * Datasource Friendly Name + * This is the virtual network Id of the vnet that will be attached to the virtual machine. + * User will be validated for join action permissions in the linked access. */ - datasourceName?: string; + virtualNetworkId?: string; /** - * Datasource Id + * Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be + * {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource + * ID used to represent + * the subnet. */ - datasourceId?: string; + subnetId?: string; /** - * Datasource Container Unique Name + * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This + * applies only to Classic + * Virtual Machines. */ - datasourceContainerName?: string; + targetDomainNameId?: string; /** - * CoordinatorServiceStampId to be used by BCM in restore call + * Region in which the virtual machine is restored. */ - coordinatorServiceStampId?: string; + region?: string; /** - * CoordinatorServiceStampUri to be used by BCM in restore call + * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual + * Machines. */ - coordinatorServiceStampUri?: string; + affinityGroup?: string; /** - * ProtectionServiceStampId to be used by BCM in restore call + * Should a new cloud service be created while restoring the VM. If this is false, VM will be + * restored to the same + * cloud service as it was at the time of backup. */ - protectionServiceStampId?: string; + createNewCloudService?: boolean; /** - * ProtectionServiceStampUri to be used by BCM in restore call + * Original Storage Account Option */ - protectionServiceStampUri?: string; + originalStorageAccountOption?: boolean; /** - * Extended Information about the token like FileSpec etc. + * Details needed if the VM was encrypted at the time of backup. */ - tokenExtendedInformation?: string; + encryptionDetails?: EncryptionDetails; /** - * Recovery point Tier Information + * List of Disk LUNs for partial restore + */ + restoreDiskLunList?: number[]; + /** + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. */ - rpTierInformation?: { [propertyName: string]: string }; + restoreWithManagedDisks?: boolean; /** - * Recovery point information: Original SA option + * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with + * customer managed key. */ - rpOriginalSAOption?: boolean; + diskEncryptionSetId?: string; /** - * Recovery point information: Managed virtual machine + * Target zone where the VM and its disks should be restored. */ - rpIsManagedVirtualMachine?: boolean; + zones?: string[]; /** - * Recovery point information: VM size description + * Managed Identity information required to access customer storage account. */ - rpVMSizeDescription?: string; + identityInfo?: IdentityInfo; /** - * Active region name of BMS Stamp + * RP Rehydration Info */ - bMSActiveRegion?: string; + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; } /** - * An interface representing CrossRegionRestoreRequest. + * An interface representing MoveRPAcrossTiersRequest. */ -export interface CrossRegionRestoreRequest { +export interface MoveRPAcrossTiersRequest { /** - * Access details for cross region restore + * Gets the class type. */ - crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; + objectType?: string; /** - * Request object for triggering restore + * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' */ - restoreRequest?: RestoreRequestUnion; + sourceTierType?: RecoveryPointTierType; + /** + * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' + */ + targetTierType?: RecoveryPointTierType; } /** - * An interface representing CrossRegionRestoreRequestResource. + * ListRecoveryPointsRecommendedForMoveRequest Request */ -export interface CrossRegionRestoreRequestResource extends Resource { +export interface ListRecoveryPointsRecommendedForMoveRequest { /** - * CrossRegionRestoreRequestResource properties + * Gets the class type. */ - properties?: CrossRegionRestoreRequest; + objectType?: string; + /** + * List of Recovery Points excluded from Move + */ + excludedRPList?: string[]; } /** - * An interface representing CrrAccessTokenResource. + * An interface representing AADProperties. */ -export interface CrrAccessTokenResource extends Resource { - /** - * CrrAccessTokenResource properties - */ - properties?: CrrAccessTokenUnion; +export interface AADProperties { + servicePrincipalClientId?: string; + tenantId?: string; + authority?: string; + audience?: string; + servicePrincipalObjectId?: string; } /** - * Filters to list backup items. + * An interface representing AADPropertiesResource. */ -export interface BMSAADPropertiesQueryObject { +export interface AADPropertiesResource extends Resource { /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * AADPropertiesResource properties */ - backupManagementType?: BackupManagementType; + properties?: AADProperties; } /** - * 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. + * Contains the possible cases for CrrAccessToken. */ -export interface WorkloadCrrAccessToken { +export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; + +/** + * An interface representing CrrAccessToken. + */ +export interface CrrAccessToken { /** * Polymorphic Discriminator */ - objectType: "WorkloadCrrAccessToken"; + objectType: "CrrAccessToken"; /** * Access token used for authentication */ @@ -8140,539 +8378,255 @@ export interface WorkloadCrrAccessToken { */ 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 { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "AzureResourceItem"; - /** - * 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 + * 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 { +export interface WorkloadCrrAccessToken { /** - * Specifies whether the container is registered or not. Possible values include: 'Invalid', - * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' + * Polymorphic Discriminator */ - protectionStatus?: ProtectionStatus; + objectType: "WorkloadCrrAccessToken"; /** - * Specifies the arm resource id of the vault + * Access token used for authentication */ - vaultId?: string; + accessTokenString?: string; /** - * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' + * Subscription Id of the source vault */ - fabricName?: FabricName; + subscriptionId?: string; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;csname;vmname. + * Resource Group name of the source vault */ - containerName?: string; + resourceGroupName?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + * Resource Name of the source vault */ - protectedItemName?: string; + resourceName?: string; /** - * ErrorCode in case of intent failed + * Resource Id of the source vault */ - errorCode?: string; + resourceId?: string; /** - * ErrorMessage in case of intent failed. + * Protected item container id */ - errorMessage?: string; + protectionContainerId?: number; /** - * Specifies the policy name which is used for protection + * Recovery Point Id */ - policyName?: string; + recoveryPointId?: string; /** - * Container registration status + * Recovery Point Time */ - 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 { + recoveryPointTime?: string; /** - * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', - * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', - * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', - * 'SAPHanaDatabase', 'SAPAseDatabase' + * Container Unique name */ - resourceType?: DataSourceType; + containerName?: string; /** - * ARM Virtual Machine Id + * Container Type */ - resourceId?: string; + containerType?: string; /** - * ARM id of the Recovery Services Vault + * Backup Management Type */ - vaultId?: string; + backupManagementType?: string; /** - * Configuration of VM if any needs to be validated like OS type etc + * Datasource Type */ - properties?: string; -} - -/** - * Response contract for enable backup validation request - */ -export interface PreValidateEnableBackupResponse { + datasourceType?: string; /** - * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' + * Datasource Friendly Name */ - status?: ValidationStatus; + datasourceName?: string; /** - * Response error code + * Datasource Id */ - errorCode?: string; + datasourceId?: string; /** - * Response error message + * Datasource Container Unique Name */ - errorMessage?: string; + datasourceContainerName?: string; /** - * Recommended action for user + * CoordinatorServiceStampId to be used by BCM in restore call */ - recommendation?: string; + coordinatorServiceStampId?: string; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - * for portal + * CoordinatorServiceStampUri to be used by BCM in restore call */ - containerName?: string; + coordinatorServiceStampUri?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is - * required for portal + * ProtectionServiceStampId to be used by BCM in restore call */ - protectedItemName?: string; -} - -/** - * Filters to list protection intent. - */ -export interface ProtectionIntentQueryObject { + protectionServiceStampId?: string; /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * ProtectionServiceStampUri to be used by BCM in restore call */ - backupManagementType?: BackupManagementType; + protectionServiceStampUri?: string; /** - * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', - * 'SQLAvailabilityGroupContainer' + * Extended Information about the token like FileSpec etc. */ - itemType?: IntentItemType; + tokenExtendedInformation?: string; /** - * Parent name of the intent + * Recovery point Tier Information + */ + rpTierInformation?: { [propertyName: string]: string }; + /** + * Recovery point information: Original SA option */ - parentName?: string; + rpOriginalSAOption?: boolean; /** - * Item name of the intent + * Recovery point information: Managed virtual machine */ - itemName?: string; -} - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntentResource extends Resource { + rpIsManagedVirtualMachine?: boolean; /** - * ProtectionIntentResource properties + * Recovery point information: VM size description */ - properties?: ProtectionIntentUnion; -} - -/** - * Localized display information of an operation. - */ -export interface ClientDiscoveryDisplay { + rpVMSizeDescription?: string; /** - * Name of the provider for display purposes + * Active region name of BMS Stamp */ - provider?: string; + bMSActiveRegion?: string; + protectableObjectUniqueName?: string; + protectableObjectFriendlyName?: string; + protectableObjectWorkloadType?: string; + protectableObjectProtectionState?: string; + protectableObjectContainerHostOsName?: string; + protectableObjectParentLogicalContainerName?: string; /** - * ResourceType for which this Operation can be performed. + * Container Id */ - resource?: string; + containerId?: string; /** - * Operations Name itself. + * Policy Name */ - operation?: string; + policyName?: string; /** - * Description of the operation having details of what operation is about. + * Policy Id */ - description?: string; + policyId?: string; } /** - * Class to represent shoebox log specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForLogSpecification { - /** - * Name for shoebox log specification. - */ - name?: string; +export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { /** - * Localized display name + * OData filter options. */ - displayName?: string; + filter?: string; /** - * blob duration of shoebox log specification + * skipToken Filter. */ - blobDuration?: string; + skipToken?: string; } /** - * Class to represent shoebox service specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForServiceSpecification { +export interface BackupProtectionIntentListNextOptionalParams extends msRest.RequestOptionsBase { /** - * List of log specifications of this operation. + * OData filter options. */ - logSpecifications?: ClientDiscoveryForLogSpecification[]; -} - -/** - * Class to represent shoebox properties in json client discovery. - */ -export interface ClientDiscoveryForProperties { + filter?: string; /** - * Operation properties. + * skipToken Filter. */ - serviceSpecification?: ClientDiscoveryForServiceSpecification; + skipToken?: string; } /** - * Available operation details. + * Optional Parameters. */ -export interface ClientDiscoveryValueForSingleApi { - /** - * Name of the Operation. - */ - name?: string; - /** - * Contains the localized display information for this particular operation - */ - display?: ClientDiscoveryDisplay; +export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { /** - * The intended executor of the operation;governs the display of the operation in the RBAC UX and - * the audit logs UX + * OData filter options. */ - origin?: string; + filter?: string; /** - * ShoeBox properties for the given operation. + * skipToken Filter. */ - properties?: ClientDiscoveryForProperties; + skipToken?: string; } /** @@ -8942,8 +8896,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 +9004,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 +9043,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 +9116,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/backupResourceStorageConfigsNonCRR.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigsNonCRR.ts new file mode 100644 index 000000000000..0cf51240802a --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigsNonCRR.ts @@ -0,0 +1,229 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/backupResourceStorageConfigsNonCRRMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupResourceStorageConfigsNonCRR. */ +export class BackupResourceStorageConfigsNonCRR { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupResourceStorageConfigsNonCRR. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Fetches resource storage config. + * @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 [options] The optional parameters + * @returns 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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates vault storage model type. + * @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 parameters Vault storage config request + * @param [options] The optional parameters + * @returns 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 + * present. + * @param parameters Vault storage config request + * @param callback The callback + */ + 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 + * present. + * @param parameters Vault storage config request + * @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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Updates vault storage model type. + * @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 parameters Vault storage config request + * @param [options] The optional parameters + * @returns 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 + * present. + * @param parameters Vault storage config request + * @param callback The callback + */ + 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 + * present. + * @param parameters Vault storage config request + * @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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + patchOperationSpec, + callback); + } +} + +// Operation Specifications +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.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupResourceConfigResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +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.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackupResourceConfigResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackupResourceConfigResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +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.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackupResourceConfigResource, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; 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..d59a2ca0f959 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts @@ -7,6 +7,13 @@ * regenerated. */ +export * from "./backupResourceStorageConfigsNonCRR"; +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 +60,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..60b9ef93487b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts @@ -16,8 +16,16 @@ import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { RecoveryServicesBackupClientContext } from "./recoveryServicesBackupClientContext"; + class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { // Operation groups + backupResourceStorageConfigsNonCRR: operations.BackupResourceStorageConfigsNonCRR; + 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 +72,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 +84,15 @@ 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.backupResourceStorageConfigsNonCRR = new operations.BackupResourceStorageConfigsNonCRR(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); this.backupResourceVaultConfigs = new operations.BackupResourceVaultConfigs(this); this.backupResourceEncryptionConfigs = new operations.BackupResourceEncryptionConfigs(this); this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); @@ -109,15 +114,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 +139,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 +150,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 +158,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 +167,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 +177,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, getOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -217,18 +189,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 +203,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 +221,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 +235,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 +244,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginBMSPrepareDataMoveOperationSpec, - options - ); + options); } /** @@ -325,12 +256,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 +265,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginBMSTriggerDataMoveOperationSpec, - options - ); + options); } /** @@ -356,16 +281,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 +294,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginMoveRecoveryPointOperationSpec, - options - ); + options); } } @@ -387,16 +302,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 +328,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 +359,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 +390,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 +400,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; } }