From 06ba63d3d4175dae11ba4ea2ec2dbf537b821522 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 1 Sep 2021 11:56:26 +0000 Subject: [PATCH] CodeGen from PR 15881 in Azure/azure-rest-api-specs Merge 84cb213058dae7b83541d552ed4bf7259622f252 into 4dc391780cb36a5c8c5632f5baec0cb8f255fa71 --- .../arm-recoveryservicesbackup/README.md | 61 +- .../arm-recoveryservicesbackup/package.json | 2 +- .../rollup.config.js | 10 +- .../src/models/aadPropertiesMappers.ts | 6 + .../src/models/backupCrrJobDetailsMappers.ts | 6 + .../src/models/backupCrrJobsMappers.ts | 7 + .../src/models/backupEnginesMappers.ts | 7 + .../src/models/backupJobsMappers.ts | 7 + .../models/backupOperationResultsMappers.ts | 5 +- .../src/models/backupPoliciesMappers.ts | 7 + .../models/backupProtectableItemsMappers.ts | 7 + .../models/backupProtectedItemsCrrMappers.ts | 7 + .../src/models/backupProtectedItemsMappers.ts | 7 + .../backupProtectionContainersMappers.ts | 7 + .../models/backupProtectionIntentMappers.ts | 7 + .../backupResourceEncryptionConfigsMappers.ts | 6 + .../backupResourceStorageConfigsMappers.ts | 6 + ...ckupResourceStorageConfigsNonCRRMappers.ts | 231 + .../backupResourceVaultConfigsMappers.ts | 6 + .../src/models/backupWorkloadItemsMappers.ts | 7 + .../src/models/backupsMappers.ts | 6 + .../src/models/crossRegionRestoreMappers.ts | 1 + .../src/models/index.ts | 5184 ++++++++--------- .../itemLevelRecoveryConnectionsMappers.ts | 6 + .../src/models/jobCancellationsMappers.ts | 5 +- .../src/models/jobDetailsMappers.ts | 6 + .../src/models/jobOperationResultsMappers.ts | 5 +- .../src/models/jobsMappers.ts | 5 +- .../src/models/mappers.ts | 3322 ++++++----- .../src/models/operationMappers.ts | 1 + .../src/models/parameters.ts | 50 +- ...vateEndpointConnectionOperationsMappers.ts | 6 + .../models/protectableContainersMappers.ts | 7 + .../protectedItemOperationResultsMappers.ts | 6 + .../src/models/protectedItemsMappers.ts | 6 + ...tectionContainerOperationResultsMappers.ts | 6 + ...ContainerRefreshOperationResultsMappers.ts | 5 +- .../src/models/protectionContainersMappers.ts | 6 + .../protectionIntentOperationsMappers.ts | 6 + .../src/models/protectionPoliciesMappers.ts | 6 + ...protectionPolicyOperationResultsMappers.ts | 6 + .../src/models/recoveryPointsCrrMappers.ts | 7 + .../src/models/recoveryPointsMappers.ts | 7 + ...recoveryPointsRecommendedForMoveMappers.ts | 7 + .../src/models/resourceGuardProxiesMappers.ts | 241 + .../src/models/resourceGuardProxyMappers.ts | 231 + .../src/models/restoresMappers.ts | 6 + .../src/models/securityPINsMappers.ts | 7 +- .../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 | 15 +- .../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/resourceGuardProxies.ts | 141 + .../src/operations/resourceGuardProxy.ts | 300 + .../src/operations/restores.ts | 48 +- .../src/operations/securityPINs.ts | 53 +- .../src/recoveryServicesBackupClient.ts | 221 +- .../recoveryServicesBackupClientContext.ts | 17 +- 106 files changed, 7438 insertions(+), 7237 deletions(-) create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsNonCRRMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/resourceGuardProxiesMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/resourceGuardProxyMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigsNonCRR.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/resourceGuardProxies.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/resourceGuardProxy.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 443dc21651c6..90797f296861 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/feature/v4/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..d46fc04ddd99 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, @@ -195,6 +198,9 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts index f478e80e0f73..d46fc04ddd99 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, @@ -195,6 +198,9 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts index 2a64622f2f0e..3a51d8ccc62f 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, @@ -203,6 +206,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts index 2b141b46a66e..4b7d8b065235 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, @@ -201,6 +204,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 2b141b46a66e..4b7d8b065235 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, @@ -201,6 +204,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, 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..4b7d8b065235 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, @@ -201,6 +204,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 2b141b46a66e..4b7d8b065235 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, @@ -201,6 +204,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts index 2a64622f2f0e..3a51d8ccc62f 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, @@ -203,6 +206,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts index 2b141b46a66e..4b7d8b065235 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, @@ -201,6 +204,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 2b141b46a66e..4b7d8b065235 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, @@ -201,6 +204,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 2b141b46a66e..4b7d8b065235 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, @@ -201,6 +204,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts index f478e80e0f73..d46fc04ddd99 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, @@ -195,6 +198,9 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts index f478e80e0f73..d46fc04ddd99 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, @@ -195,6 +198,9 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, 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..d46fc04ddd99 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsNonCRRMappers.ts @@ -0,0 +1,231 @@ +/* + * 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, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + 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..d46fc04ddd99 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, @@ -195,6 +198,9 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts index 2b141b46a66e..4b7d8b065235 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, @@ -201,6 +204,10 @@ export { RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, + ResourceGuardProxyBaseResourceList, ResourceHealthDetails, ResourceList, RestoreFileSpecs, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index a7719f9e3a6a..050a0322c120 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, @@ -193,6 +196,9 @@ export { RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceGuardOperationDetail, + ResourceGuardProxyBase, + ResourceGuardProxyBaseResource, ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, 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..e8aec007ebac 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. @@ -345,6 +361,10 @@ export interface ProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; } /** @@ -412,6 +432,10 @@ export interface AzureFileshareProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the fileshare represented by this backup item. */ @@ -451,12 +475,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 +552,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 +623,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 +638,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 +672,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. @@ -685,6 +686,10 @@ export interface ProtectionPolicy { * Number of items associated with this policy. */ protectedItemsCount?: number; + /** + * ResourceGuard Operation Requests + */ + resourceGuardOperationRequests?: string[]; } /** @@ -699,6 +704,10 @@ export interface AzureVmWorkloadProtectionPolicy { * Number of items associated with this policy. */ protectedItemsCount?: number; + /** + * ResourceGuard Operation Requests + */ + resourceGuardOperationRequests?: string[]; /** * Type of workload for the backup management. Possible values include: 'Invalid', 'VM', * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', @@ -732,6 +741,10 @@ export interface AzureFileShareProtectionPolicy { * Number of items associated with this policy. */ protectedItemsCount?: number; + /** + * ResourceGuard Operation Requests + */ + resourceGuardOperationRequests?: string[]; /** * Type of workload for the backup management. Possible values include: 'Invalid', 'VM', * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', @@ -756,10 +769,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. @@ -826,6 +836,10 @@ export interface AzureIaaSVMProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the VM represented by this backup item. */ @@ -940,6 +954,10 @@ export interface AzureIaaSClassicComputeVMProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the VM represented by this backup item. */ @@ -1054,6 +1072,10 @@ export interface AzureIaaSComputeVMProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the VM represented by this backup item. */ @@ -1132,7 +1154,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 +1229,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. @@ -1377,6 +1393,10 @@ export interface AzureIaaSVMProtectionPolicy { * Number of items associated with this policy. */ protectedItemsCount?: number; + /** + * ResourceGuard Operation Requests + */ + resourceGuardOperationRequests?: string[]; instantRPDetails?: InstantRPAdditionalDetails; /** * Backup schedule specified as part of backup policy. @@ -1479,6 +1499,10 @@ export interface AzureSqlProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services. */ @@ -1524,6 +1548,10 @@ export interface AzureSqlProtectionPolicy { * Number of items associated with this policy. */ protectedItemsCount?: number; + /** + * ResourceGuard Operation Requests + */ + resourceGuardOperationRequests?: string[]; /** * Retention policy details. */ @@ -1669,11 +1697,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. @@ -1740,6 +1764,10 @@ export interface AzureVmWorkloadProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the DB represented by this backup item. */ @@ -1862,6 +1890,10 @@ export interface AzureVmWorkloadSAPAseDatabaseProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the DB represented by this backup item. */ @@ -1984,6 +2016,10 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the DB represented by this backup item. */ @@ -2106,6 +2142,10 @@ export interface AzureVmWorkloadSQLDatabaseProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the DB represented by this backup item. */ @@ -2298,11 +2338,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 +2372,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 +2410,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 +2579,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 +2622,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 +2698,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 +2778,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 +2833,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 +2990,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 +3266,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. */ @@ -3292,6 +3428,10 @@ export interface DPMProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the managed item */ @@ -3340,10 +3480,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. @@ -3393,6 +3530,10 @@ export interface GenericProtectionPolicy { * Number of items associated with this policy. */ protectedItemsCount?: number; + /** + * ResourceGuard Operation Requests + */ + resourceGuardOperationRequests?: string[]; /** * List of sub-protection policies which includes schedule and retention */ @@ -3407,6 +3548,21 @@ export interface GenericProtectionPolicy { fabricName?: string; } +/** + * Encapsulates Managed Identity related information + */ +export interface IdentityInfo { + /** + * To differentiate if the managed identity is system assigned or user assigned + */ + isSystemAssignedIdentity?: boolean; + /** + * Managed Identity Resource Id + * Optional: Might not be required in the case of system assigned managed identity + */ + managedIdentityResourceId?: string; +} + /** * Base class for backup items. */ @@ -3472,6 +3628,10 @@ export interface GenericProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of the container. */ @@ -3775,6 +3935,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; } /** @@ -4061,6 +4225,10 @@ export interface MabFileFolderProtectedItem { * Flag to identify that deferred deleted DS is to be moved into Pause state */ isRehydrate?: boolean; + /** + * ResourceGuardOperationRequests on which LAC check will be performed + */ + resourceGuardOperationRequests?: string[]; /** * Friendly name of this backup item. */ @@ -4220,6 +4388,10 @@ export interface MabProtectionPolicy { * Number of items associated with this policy. */ protectedItemsCount?: number; + /** + * ResourceGuard Operation Requests + */ + resourceGuardOperationRequests?: string[]; /** * Backup schedule of backup policy. */ @@ -4274,9 +4446,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 +4703,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 +4718,7 @@ export interface ValidateOperationRequest { /** * Contains the possible cases for ValidateRestoreOperationRequest. */ -export type ValidateRestoreOperationRequestUnion = - | ValidateRestoreOperationRequest - | ValidateIaasVMRestoreOperationRequest; +export type ValidateRestoreOperationRequestUnion = ValidateRestoreOperationRequest | ValidateIaasVMRestoreOperationRequest; /** * AzureRestoreValidation request. @@ -4626,6 +4792,10 @@ export interface BackupResourceVaultConfig { * Soft Delete feature state. Possible values include: 'Invalid', 'Enabled', 'Disabled' */ softDeleteFeatureState?: SoftDeleteFeatureState; + /** + * ResourceGuard Operation Requests + */ + resourceGuardOperationRequests?: string[]; } /** @@ -4725,15 +4895,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 +5179,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 +5208,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 +5279,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 +5312,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 +5397,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 +5535,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 +5714,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 +5886,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 +5957,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 +6689,1750 @@ 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 { +export interface BackupStatusRequest { /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - backupManagementType?: BackupManagementType; + resourceType?: DataSourceType; /** - * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', - * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' + * Entire ARM resource id of the resource */ - workloadItemType?: WorkloadItemType; + resourceId?: string; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - */ - workloadType?: WorkloadType; - /** - * 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 { - /** - * Polymorphic Discriminator - */ - containerType: "GenericContainer"; +export interface WorkloadInquiryDetails { /** - * Friendly name of the container. + * Type of the Workload such as SQL, Oracle etc. */ - friendlyName?: string; + type?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Contains the protectable item Count inside this Container. */ - backupManagementType?: BackupManagementType; + itemCount?: number; /** - * Status of registration of the container with the Recovery Services Vault. + * Inquiry validation such as permissions and other backup validations. */ - registrationStatus?: string; + inquiryValidation?: InquiryValidation; +} + +/** + * Details about inquired protectable items under a given container. + */ +export interface InquiryInfo { /** - * Status of health of the container. + * Inquiry Status for this container such as + * InProgress | Failed | Succeeded */ - healthStatus?: string; + status?: string; /** - * Name of the container's fabric + * Error Details if the Status is non-success. */ - fabricName?: string; + errorDetail?: ErrorDetail; /** - * Extended information (not returned in List container API calls) + * Inquiry Details which will have workload specific details. + * For e.g. - For SQL and oracle this will contain different details. */ - extendedInformation?: GenericContainerExtendedInfo; + inquiryDetails?: WorkloadInquiryDetails[]; } /** - * IaaS VM workload-specific backup request. + * This is used to represent the various nodes of the distributed container. */ -export interface IaasVMBackupRequest { +export interface DistributedNodesInfo { /** - * Polymorphic Discriminator + * Name of the node under a distributed container. */ - objectType: "IaasVMBackupRequest"; + nodeName?: string; /** - * Backup copy will expire after the time specified (UTC). + * Status of this Node. + * Failed | Succeeded */ - recoveryPointExpiryTimeInUTC?: Date; + status?: string; + /** + * Error Details if the Status is non-success. + */ + errorDetail?: ErrorDetail; } /** - * Restore files/folders from a backup copy of IaaS VM. + * Extended information of the container. */ -export interface IaasVMILRRegistrationRequest { +export interface AzureWorkloadContainerExtendedInfo { /** - * Polymorphic Discriminator + * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. */ - objectType: "IaasVMILRRegistrationRequest"; + hostServerName?: string; /** - * ID of the IaaS VM backup copy from where the files/folders have to be restored. + * Inquiry Status for the container. */ - recoveryPointId?: string; + inquiryInfo?: InquiryInfo; /** - * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + * List of the nodes in case of distributed container. */ - virtualMachineId?: string; - /** - * iSCSI initiator name. - */ - initiatorName?: string; - /** - * Whether to renew existing registration with the iSCSI server. - */ - renewExistingRegistration?: boolean; + nodesList?: DistributedNodesInfo[]; } /** - * Parameters to Provision ILR API. + * Additional information on backup engine. */ -export interface ILRRequestResource extends Resource { +export interface BackupEngineExtendedInfo { /** - * ILRRequestResource properties + * Database name of backup engine. */ - properties?: ILRRequestUnion; -} - -/** - * Target details for file / folder restore. - */ -export interface InstantItemRecoveryTarget { + databaseName?: string; /** - * List of client scripts. + * Number of protected items in the backup engine. */ - clientScripts?: ClientScriptForConnect[]; -} - -/** - * Additional information of the container. - */ -export interface MabContainerExtendedInfo { + protectedItemsCount?: number; /** - * Time stamp when this container was refreshed. + * Number of protected servers in the backup engine. */ - lastRefreshedAt?: Date; + protectedServersCount?: number; /** - * 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' + * Number of disks in the backup engine. */ - backupItemType?: BackupItemType; + diskCount?: number; /** - * List of backup items associated with this container. + * Disk space used in the backup engine. */ - backupItems?: string[]; + usedDiskSpace?: number; /** - * Backup policy associated with this container. + * Disk space currently available in the backup engine. */ - policyName?: string; + availableDiskSpace?: number; /** - * Latest backup status of this container. + * Last refresh time in the backup engine. */ - lastBackupStatus?: string; + refreshedAt?: Date; + /** + * Protected instances in the backup engine. + */ + azureProtectedInstances?: number; } /** - * MAB workload-specific Health Details. + * The base backup engine class. All workload specific backup engines derive from this class. */ -export interface MABContainerHealthDetails { - /** - * Health Code - */ - code?: number; - /** - * Health Title - */ - title?: string; - /** - * Health Message - */ - message?: string; +export interface BackupEngineBaseResource extends Resource { /** - * Health Recommended Actions + * BackupEngineBaseResource properties */ - recommendations?: string[]; + properties?: BackupEngineBaseUnion; } /** - * Container with items backed up using MAB backup engine. + * Base class for backup request. Workload-specific backup requests are derived from this class. */ -export interface MabContainer { +export interface BackupRequestResource extends Resource { /** - * Polymorphic Discriminator + * BackupRequestResource properties */ - containerType: "Windows"; + properties?: BackupRequestUnion; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEngineQueryObject { /** - * Friendly name of the container. + * attribute to add extended info */ - friendlyName?: string; + expand?: string; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEnginesQueryObject { /** - * Type of backup management for the container. Possible values include: 'Invalid', + * Backup management type for the backup engine. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; - /** - * Status of health of the container. + * Friendly name of the backup engine. */ - healthStatus?: string; + friendlyName?: string; /** - * Can the container be registered one more time. + * Attribute to add extended info. */ - canReRegister?: boolean; + expand?: string; +} + +/** + * The query filters that can be used with the list containers API. + */ +export interface BMSContainerQueryObject { /** - * ContainerID represents the container. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - containerId?: number; + backupManagementType: BackupManagementType; /** - * Number of items backed up in this container. + * Type of container for filter. Possible values include: 'Invalid', 'Unknown', + * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', + * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' */ - protectedItemCount?: number; + containerType?: ContainerType; /** - * Agent version of this container. + * Backup engine name */ - agentVersion?: string; + backupEngineName?: string; /** - * Additional information for this container + * Fabric name for filter */ - extendedInfo?: MabContainerExtendedInfo; + fabricName?: string; /** - * Health details on this mab container. + * Status of registration of this container with the Recovery Services Vault. */ - mabContainerHealthDetails?: MABContainerHealthDetails[]; + status?: string; /** - * Health state of mab container. + * Friendly name of this container. */ - containerHealthState?: string; + friendlyName?: string; } /** - * Error information associated with operation status call. + * The query filters that can be used with the inquire container API. */ -export interface OperationStatusError { - /** - * Error code of the operation failure. - */ - code?: string; +export interface BMSContainersInquiryQueryObject { /** - * Error message displayed if the operation failure. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - message?: string; -} - -/** - * Contains the possible cases for OperationStatusExtendedInfo. - */ -export type OperationStatusExtendedInfoUnion = - | OperationStatusExtendedInfo - | OperationStatusJobExtendedInfo - | OperationStatusJobsExtendedInfo - | OperationStatusProvisionILRExtendedInfo - | OperationStatusRecoveryPointExtendedInfo; - -/** - * Base class for additional information of operation status. - */ -export interface OperationStatusExtendedInfo { + backupManagementType?: BackupManagementType; /** - * Polymorphic Discriminator + * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - objectType: "OperationStatusExtendedInfo"; + workloadType?: WorkloadType; } /** - * Operation status. + * Filters to list items that can be backed up. */ -export interface OperationStatus { - /** - * ID of the operation. - */ - id?: string; - /** - * Name of the operation. - */ - name?: string; +export interface BMSPOQueryObject { /** - * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - status?: OperationStatusValues; + backupManagementType?: BackupManagementType; /** - * Operation start time. Format: ISO-8601. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - startTime?: Date; + workloadType?: WorkloadType; /** - * Operation end time. Format: ISO-8601. + * Full name of the container whose Protectable Objects should be returned. */ - endTime?: Date; + containerName?: string; /** - * Error information related to this operation. + * Backup status query parameter. */ - error?: OperationStatusError; + status?: string; /** - * Additional information associated with this operation. + * Friendly name. */ - properties?: OperationStatusExtendedInfoUnion; + friendlyName?: string; } /** - * Operation status job extended info. + * The query filters that can be used with the refresh container API. */ -export interface OperationStatusJobExtendedInfo { - /** - * Polymorphic Discriminator - */ - objectType: "OperationStatusJobExtendedInfo"; +export interface BMSRefreshContainersQueryObject { /** - * ID of the job created for this protected item. + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - jobId?: string; + backupManagementType?: BackupManagementType; } /** - * Operation status extended info for list of jobs. + * Filters to list items that can be backed up. */ -export interface OperationStatusJobsExtendedInfo { +export interface BMSWorkloadItemQueryObject { /** - * Polymorphic Discriminator + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - objectType: "OperationStatusJobsExtendedInfo"; + backupManagementType?: BackupManagementType; /** - * IDs of the jobs created for the protected item. + * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', + * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' */ - jobIds?: string[]; + workloadItemType?: WorkloadItemType; /** - * Stores all the failed jobs along with the corresponding error codes. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - failedJobsError?: { [propertyName: string]: string }; -} - -/** - * Operation status extended info for ILR provision action. - */ -export interface OperationStatusProvisionILRExtendedInfo { - /** - * Polymorphic Discriminator - */ - objectType: "OperationStatusProvisionILRExtendedInfo"; + workloadType?: WorkloadType; /** - * Target details for file / folder restore. + * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - recoveryTarget?: InstantItemRecoveryTarget; + protectionStatus?: ProtectionStatus; } /** - * Protectable Container Class. + * Client script details for file / folder restore. */ -export interface ProtectableContainerResource extends Resource { +export interface ClientScriptForConnect { /** - * ProtectableContainerResource properties + * File content of the client script for file / folder restore. */ - properties?: ProtectableContainerUnion; -} - -/** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. - */ -export interface ProtectionContainerResource extends Resource { + scriptContent?: string; /** - * ProtectionContainerResource properties + * File extension of the client script for file / folder restore - .ps1 , .sh , etc. */ - properties?: ProtectionContainerUnion; -} - -/** - * The token information details. - */ -export interface TokenInformation { + scriptExtension?: string; /** - * Token value. + * OS type - Windows, Linux etc. for which this file / folder restore client script works. */ - token?: string; + osType?: string; /** - * Expiry time of token. + * URL of Executable from where to source the content. If this is not null then ScriptContent + * should not be used */ - expiryTimeInUtcTicks?: number; + url?: string; /** - * Security PIN + * 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. */ - securityPIN?: string; + scriptNameSuffix?: string; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Container identity information */ -export interface WorkloadItemResource extends Resource { +export interface ContainerIdentityInfo { /** - * WorkloadItemResource properties + * Unique name of the container */ - properties?: WorkloadItemUnion; -} - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadProtectableItemResource extends Resource { + uniqueName?: string; /** - * WorkloadProtectableItemResource properties + * Protection container identity - AAD Tenant */ - properties?: WorkloadProtectableItemUnion; -} - -/** - * RP Rehydration Info - */ -export interface RecoveryPointRehydrationInfo { + aadTenantId?: string; /** - * How long the rehydrated RP should be kept - * Should be ISO8601 Duration format e.g. "P7D" + * Protection container identity - AAD Service Principal */ - rehydrationRetentionDuration?: string; + servicePrincipalClientId?: string; /** - * Rehydration Priority. Possible values include: 'Standard', 'High' + * Protection container identity - Audience */ - rehydrationPriority?: RehydrationPriority; + audience?: string; } /** - * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + * Data Protection Manager (DPM) specific backup engine. */ -export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { +export interface DpmBackupEngine { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; + backupEngineType: "DpmBackupEngine"; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * Friendly name of the backup engine. */ - 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 backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - sourceResourceId?: string; + backupManagementType?: BackupManagementType; /** - * Workload specific property bag. + * Registration status of the backup engine with the Recovery Services Vault. */ - propertyBag?: { [propertyName: string]: string }; + registrationStatus?: string; /** - * Details of target database + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - targetInfo?: TargetRestoreInfo; + backupEngineState?: string; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Backup status of the backup engine. */ - recoveryMode?: RecoveryMode; + healthStatus?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Flag indicating if the backup engine be registered, once already registered. */ - targetVirtualMachineId?: string; + canReRegister?: boolean; /** - * PointInTime value + * ID of the backup engine. */ - pointInTime?: Date; + backupEngineId?: string; /** - * RP Rehydration Info + * Backup engine version */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; -} - -/** - * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. - */ -export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { + dpmVersion?: string; /** - * Polymorphic Discriminator + * Backup agent version */ - objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; + azureBackupAgentVersion?: string; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * To check if backup agent upgrade available */ - recoveryType?: RecoveryType; + isAzureBackupAgentUpgradeAvailable?: boolean; /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + * To check if backup engine upgrade available */ - sourceResourceId?: string; + isDpmUpgradeAvailable?: boolean; /** - * Workload specific property bag. + * Extended info of the backupengine */ - propertyBag?: { [propertyName: string]: string }; + extendedInfo?: BackupEngineExtendedInfo; +} + +/** + * Additional information of the DPMContainer. + */ +export interface DPMContainerExtendedInfo { /** - * Details of target database + * Last refresh time of the DPMContainer. */ - targetInfo?: TargetRestoreInfo; + lastRefreshedAt?: Date; +} + +/** + * Container extended information + */ +export interface GenericContainerExtendedInfo { /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Public key of container cert */ - recoveryMode?: RecoveryMode; + rawCertData?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Container identity information */ - targetVirtualMachineId?: string; + containerIdentityInfo?: ContainerIdentityInfo; /** - * RP Rehydration Info + * Azure Backup Service Endpoints for the container */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + serviceEndpoints?: { [propertyName: string]: string }; } /** - * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. + * Base class for generic container of backup items */ -export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { +export interface GenericContainer { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; - /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' - */ - recoveryType?: RecoveryType; - /** - * Fully qualified ARM ID of the VM on which workload that was running is being recovered. - */ - sourceResourceId?: string; - /** - * Workload specific property bag. - */ - propertyBag?: { [propertyName: string]: string }; + containerType: "GenericContainer"; /** - * Details of target database + * Friendly name of the container. */ - targetInfo?: TargetRestoreInfo; + friendlyName?: string; /** - * Defines whether the current recovery mode is file restore or database restore. Possible values - * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - recoveryMode?: RecoveryMode; + backupManagementType?: BackupManagementType; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Status of registration of the container with the Recovery Services Vault. */ - targetVirtualMachineId?: string; + registrationStatus?: string; /** - * Default option set to true. If this is set to false, alternate data directory must be provided + * Status of health of the container. */ - shouldUseAlternateTargetLocation?: boolean; + healthStatus?: string; /** - * SQL specific property where user can chose to set no-recovery when restore operation is tried + * Name of the container's fabric */ - isNonRecoverable?: boolean; + fabricName?: string; /** - * Data directory details + * Extended information (not returned in List container API calls) */ - alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + extendedInformation?: GenericContainerExtendedInfo; +} + +/** + * IaaS VM workload-specific backup request. + */ +export interface IaasVMBackupRequest { /** - * PointInTime value + * Polymorphic Discriminator */ - pointInTime?: Date; + objectType: "IaasVMBackupRequest"; /** - * RP Rehydration Info + * Backup copy will expire after the time specified (UTC). */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + recoveryPointExpiryTimeInUTC?: Date; } /** - * AzureWorkload SQL-specific restore with integrated rehydration of recovery point + * Restore files/folders from a backup copy of IaaS VM. */ -export interface AzureWorkloadSQLRestoreWithRehydrateRequest { +export interface IaasVMILRRegistrationRequest { /** * Polymorphic Discriminator */ - objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; + objectType: "IaasVMILRRegistrationRequest"; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * ID of the IaaS VM backup copy from where the files/folders have to be restored. */ - recoveryType?: RecoveryType; - /** - * 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; + recoveryPointId?: string; /** - * This is the complete ARM Id of the target VM - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. */ - targetVirtualMachineId?: string; + virtualMachineId?: string; /** - * Default option set to true. If this is set to false, alternate data directory must be provided + * iSCSI initiator name. */ - shouldUseAlternateTargetLocation?: boolean; + initiatorName?: string; /** - * SQL specific property where user can chose to set no-recovery when restore operation is tried + * Whether to renew existing registration with the iSCSI server. */ - isNonRecoverable?: boolean; + renewExistingRegistration?: boolean; +} + +/** + * Parameters to Provision ILR API. + */ +export interface ILRRequestResource extends Resource { /** - * Data directory details + * ILRRequestResource properties */ - alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + properties?: ILRRequestUnion; +} + +/** + * Target details for file / folder restore. + */ +export interface InstantItemRecoveryTarget { /** - * RP Rehydration Info + * List of client scripts. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + clientScripts?: ClientScriptForConnect[]; } /** - * IaaS VM workload-specific restore with integrated rehydration of recovery point. + * Additional information of the container. */ -export interface IaasVMRestoreWithRehydrationRequest { +export interface MabContainerExtendedInfo { /** - * Polymorphic Discriminator + * Time stamp when this container was refreshed. */ - objectType: "IaasVMRestoreWithRehydrationRequest"; + lastRefreshedAt?: Date; /** - * ID of the backup copy to be recovered. + * 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' */ - recoveryPointId?: string; + backupItemType?: BackupItemType; /** - * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', - * 'AlternateLocation', 'RestoreDisks', 'Offline' + * List of backup items associated with this container. */ - recoveryType?: RecoveryType; + backupItems?: string[]; /** - * Fully qualified ARM ID of the VM which is being recovered. + * Backup policy associated with this container. */ - sourceResourceId?: string; + policyName?: string; /** - * This is the complete ARM Id of the VM that will be created. - * For e.g. - * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + * Latest backup status of this container. */ - targetVirtualMachineId?: string; + lastBackupStatus?: string; +} + +/** + * MAB workload-specific Health Details. + */ +export interface MABContainerHealthDetails { /** - * This is the ARM Id of the resource group that you want to create for this Virtual machine and - * other artifacts. - * For e.g. /subscriptions/{subId}/resourcegroups/{rg} + * Health Code */ - targetResourceGroupId?: string; + code?: number; /** - * Fully qualified ARM ID of the storage account to which the VM has to be restored. + * Health Title */ - storageAccountId?: string; + title?: string; /** - * This is the virtual network Id of the vnet that will be attached to the virtual machine. - * User will be validated for join action permissions in the linked access. + * Health Message */ - virtualNetworkId?: string; + message?: string; /** - * 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. + * Health Recommended Actions */ - subnetId?: string; + recommendations?: string[]; +} + +/** + * Container with items backed up using MAB backup engine. + */ +export interface MabContainer { /** - * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This - * applies only to Classic - * Virtual Machines. + * Polymorphic Discriminator */ - targetDomainNameId?: string; + containerType: "Windows"; /** - * Region in which the virtual machine is restored. + * Friendly name of the container. */ - region?: string; + friendlyName?: string; /** - * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual - * Machines. + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - affinityGroup?: string; + backupManagementType?: BackupManagementType; /** - * Should a new cloud service be created while restoring the VM. If this is false, VM will be - * restored to the same - * cloud service as it was at the time of backup. + * Status of registration of the container with the Recovery Services Vault. */ - createNewCloudService?: boolean; + registrationStatus?: string; /** - * Original Storage Account Option + * Status of health of the container. */ - originalStorageAccountOption?: boolean; + healthStatus?: string; /** - * Details needed if the VM was encrypted at the time of backup. + * Can the container be registered one more time. */ - encryptionDetails?: EncryptionDetails; + canReRegister?: boolean; /** - * List of Disk LUNs for partial restore + * ContainerID represents the container. */ - restoreDiskLunList?: number[]; + containerId?: number; /** - * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + * Number of items backed up in this container. */ - restoreWithManagedDisks?: boolean; + protectedItemCount?: number; /** - * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with - * customer managed key. + * Agent version of this container. */ - diskEncryptionSetId?: string; + agentVersion?: string; /** - * Target zone where the VM and its disks should be restored. + * Additional information for this container */ - zones?: string[]; + extendedInfo?: MabContainerExtendedInfo; /** - * RP Rehydration Info + * Health details on this mab container. */ - recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; + mabContainerHealthDetails?: MABContainerHealthDetails[]; + /** + * Health state of mab container. + */ + containerHealthState?: string; } /** - * An interface representing MoveRPAcrossTiersRequest. + * Error information associated with operation status call. */ -export interface MoveRPAcrossTiersRequest { - /** - * Gets the class type. - */ - objectType?: string; +export interface OperationStatusError { /** - * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', - * 'HardenedRP', 'ArchivedRP' + * Error code of the operation failure. */ - sourceTierType?: RecoveryPointTierType; + code?: string; /** - * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', - * 'HardenedRP', 'ArchivedRP' + * Error message displayed if the operation failure. */ - targetTierType?: RecoveryPointTierType; + message?: string; } /** - * ListRecoveryPointsRecommendedForMoveRequest Request + * Contains the possible cases for OperationStatusExtendedInfo. */ -export interface ListRecoveryPointsRecommendedForMoveRequest { - /** - * Gets the class type. - */ - objectType?: string; - /** - * List of Recovery Points excluded from Move - */ - excludedRPList?: string[]; -} +export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo | OperationStatusRecoveryPointExtendedInfo; /** - * The name of usage. + * Base class for additional information of operation status. */ -export interface NameInfo { - /** - * Value of usage. - */ - value?: string; +export interface OperationStatusExtendedInfo { /** - * Localized value of usage. + * Polymorphic Discriminator */ - localizedValue?: string; + objectType: "OperationStatusExtendedInfo"; } /** - * Backup management usages of a vault. + * Operation status. */ -export interface BackupManagementUsage { +export interface OperationStatus { /** - * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' + * ID of the operation. */ - unit?: UsagesUnit; + id?: string; /** - * Quota period of usage. + * Name of the operation. */ - quotaPeriod?: string; + name?: string; /** - * Next reset time of usage. + * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', + * 'Canceled' */ - nextResetTime?: Date; + status?: OperationStatusValues; /** - * Current value of usage. + * Operation start time. Format: ISO-8601. */ - currentValue?: number; + startTime?: Date; /** - * Limit of usage. + * Operation end time. Format: ISO-8601. */ - limit?: number; + endTime?: Date; /** - * Name of usage. + * Error information related to this operation. */ - name?: NameInfo; + error?: OperationStatusError; + /** + * Additional information associated with this operation. + */ + properties?: OperationStatusExtendedInfoUnion; } /** - * Query parameters to fetch backup summaries. + * Operation status job extended info. */ -export interface BMSBackupSummariesQueryObject { +export interface OperationStatusJobExtendedInfo { /** - * Backup management type for this container. Possible values include: 'Invalid', - * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + * Polymorphic Discriminator */ - type?: Type; + objectType: "OperationStatusJobExtendedInfo"; + /** + * ID of the job created for this protected item. + */ + jobId?: string; } /** - * An interface representing AADProperties. + * Operation status extended info for list of jobs. */ -export interface AADProperties { - servicePrincipalClientId?: string; - tenantId?: string; - authority?: string; - audience?: string; - servicePrincipalObjectId?: string; +export interface OperationStatusJobsExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusJobsExtendedInfo"; + /** + * IDs of the jobs created for the protected item. + */ + jobIds?: string[]; + /** + * Stores all the failed jobs along with the corresponding error codes. + */ + failedJobsError?: { [propertyName: string]: string }; } /** - * An interface representing AADPropertiesResource. + * Operation status extended info for ILR provision action. */ -export interface AADPropertiesResource extends Resource { +export interface OperationStatusProvisionILRExtendedInfo { /** - * AADPropertiesResource properties + * Polymorphic Discriminator */ - properties?: AADProperties; + objectType: "OperationStatusProvisionILRExtendedInfo"; + /** + * Target details for file / folder restore. + */ + recoveryTarget?: InstantItemRecoveryTarget; } /** - * The resource storage details. + * Protectable Container Class. */ -export interface BackupResourceConfig { +export interface ProtectableContainerResource extends Resource { /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', - * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + * ProtectableContainerResource properties */ - storageModelType?: StorageType; + properties?: ProtectableContainerUnion; +} + +/** + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainerResource extends Resource { /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', - * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + * ProtectionContainerResource properties */ - storageType?: StorageType; + properties?: ProtectionContainerUnion; +} + +/** + * Base class for get security pin request body + */ +export interface SecurityPinBase { /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * ResourceGuard Operation Requests */ - storageTypeState?: StorageTypeState; + resourceGuardOperationRequests?: string[]; +} + +/** + * The token information details. + */ +export interface TokenInformation { /** - * Opt in details of Cross Region Restore feature. + * Token value. */ - crossRegionRestoreFlag?: boolean; + token?: string; + /** + * Expiry time of token. + */ + expiryTimeInUtcTicks?: number; + /** + * Security PIN + */ + securityPIN?: string; } /** - * Request object for fetching CRR jobs. + * Base class for backup item. Workload-specific backup items are derived from this class. */ -export interface CrrJobRequest { +export interface WorkloadItemResource extends Resource { /** - * Entire ARM resource id of the resource + * WorkloadItemResource properties */ - resourceId?: string; + properties?: WorkloadItemUnion; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItemResource extends Resource { /** - * Job Name of the job to be fetched + * WorkloadProtectableItemResource properties */ - jobName?: string; + properties?: WorkloadProtectableItemUnion; } /** - * Request object for fetching CRR jobs. + * RP Rehydration Info */ -export interface CrrJobRequestResource extends Resource { +export interface RecoveryPointRehydrationInfo { /** - * CrrJobRequestResource properties + * How long the rehydrated RP should be kept + * Should be ISO8601 Duration format e.g. "P7D" */ - properties?: CrrJobRequest; + rehydrationRetentionDuration?: string; + /** + * Rehydration Priority. Possible values include: 'Standard', 'High' + */ + rehydrationPriority?: RehydrationPriority; } /** - * The resource storage details. + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. */ -export interface BackupResourceConfigResource extends Resource { +export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { /** - * BackupResourceConfigResource properties + * Polymorphic Discriminator */ - properties?: BackupResourceConfig; + objectType: "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; + /** + * 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; + /** + * PointInTime value + */ + pointInTime?: Date; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; } /** - * Contains the possible cases for CrrAccessToken. + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. */ -export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; +export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} /** - * An interface representing CrrAccessToken. + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. */ -export interface CrrAccessToken { +export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { /** * Polymorphic Discriminator */ - objectType: "CrrAccessToken"; + objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; /** - * 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[]; + /** + * PointInTime value + */ + pointInTime?: Date; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point + */ +export interface AzureWorkloadSQLRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * IaaS VM workload-specific restore with integrated rehydration of recovery point. + */ +export interface IaasVMRestoreWithRehydrationRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMRestoreWithRehydrationRequest"; + /** + * ID of the backup copy to be recovered. */ recoveryPointId?: string; /** - * Recovery Point Time + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' */ - recoveryPointTime?: string; + recoveryType?: RecoveryType; /** - * Container Unique name + * Fully qualified ARM ID of the VM which is being recovered. */ - containerName?: string; + sourceResourceId?: string; /** - * Container Type + * This is the complete ARM Id of the VM that will be created. + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} */ - containerType?: string; + targetVirtualMachineId?: string; /** - * Backup Management Type + * This is the ARM Id of the resource group that you want to create for this Virtual machine and + * other artifacts. + * For e.g. /subscriptions/{subId}/resourcegroups/{rg} */ - backupManagementType?: string; + targetResourceGroupId?: string; /** - * Datasource Type + * Fully qualified ARM ID of the storage account to which the VM has to be restored. */ - datasourceType?: string; + storageAccountId?: string; /** - * Datasource Friendly Name + * This is the virtual network Id of the vnet that will be attached to the virtual machine. + * User will be validated for join action permissions in the linked access. */ - datasourceName?: string; + virtualNetworkId?: string; /** - * Datasource Id + * Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be + * {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource + * ID used to represent + * the subnet. */ - datasourceId?: string; + subnetId?: string; /** - * Datasource Container Unique Name + * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This + * applies only to Classic + * Virtual Machines. */ - datasourceContainerName?: string; + targetDomainNameId?: string; /** - * CoordinatorServiceStampId to be used by BCM in restore call + * Region in which the virtual machine is restored. */ - coordinatorServiceStampId?: string; + region?: string; /** - * CoordinatorServiceStampUri to be used by BCM in restore call + * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual + * Machines. */ - coordinatorServiceStampUri?: string; + affinityGroup?: string; /** - * ProtectionServiceStampId to be used by BCM in restore call + * Should a new cloud service be created while restoring the VM. If this is false, VM will be + * restored to the same + * cloud service as it was at the time of backup. */ - protectionServiceStampId?: string; + createNewCloudService?: boolean; /** - * ProtectionServiceStampUri to be used by BCM in restore call + * Original Storage Account Option */ - protectionServiceStampUri?: string; + originalStorageAccountOption?: boolean; /** - * Extended Information about the token like FileSpec etc. + * Details needed if the VM was encrypted at the time of backup. */ - tokenExtendedInformation?: string; + encryptionDetails?: EncryptionDetails; /** - * Recovery point Tier Information + * List of Disk LUNs for partial restore */ - rpTierInformation?: { [propertyName: string]: string }; + restoreDiskLunList?: number[]; /** - * Recovery point information: Original SA option + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. */ - rpOriginalSAOption?: boolean; + restoreWithManagedDisks?: boolean; + /** + * DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with + * customer managed key. + */ + diskEncryptionSetId?: string; + /** + * Target zone where the VM and its disks should be restored. + */ + zones?: string[]; + /** + * Managed Identity information required to access customer storage account. + */ + identityInfo?: IdentityInfo; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * An interface representing MoveRPAcrossTiersRequest. + */ +export interface MoveRPAcrossTiersRequest { /** - * Recovery point information: Managed virtual machine + * Gets the class type. */ - rpIsManagedVirtualMachine?: boolean; + objectType?: string; /** - * Recovery point information: VM size description + * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' */ - rpVMSizeDescription?: string; + sourceTierType?: RecoveryPointTierType; /** - * Active region name of BMS Stamp + * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' */ - bMSActiveRegion?: string; + targetTierType?: RecoveryPointTierType; } /** - * An interface representing CrossRegionRestoreRequest. + * ListRecoveryPointsRecommendedForMoveRequest Request */ -export interface CrossRegionRestoreRequest { +export interface ListRecoveryPointsRecommendedForMoveRequest { /** - * Access details for cross region restore + * Gets the class type. */ - crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; + objectType?: string; /** - * Request object for triggering restore + * List of Recovery Points excluded from Move */ - restoreRequest?: RestoreRequestUnion; + excludedRPList?: string[]; } /** - * An interface representing CrossRegionRestoreRequestResource. + * Request body of unlock delete API. */ -export interface CrossRegionRestoreRequestResource extends Resource { +export interface UnlockDeleteRequest { + resourceGuardOperationRequests?: string[]; + resourceToBeDeleted?: string; +} + +/** + * Response of Unlock Delete API. + */ +export interface UnlockDeleteResponse { /** - * CrossRegionRestoreRequestResource properties + * This is the time when unlock delete privileges will get expired. */ - properties?: CrossRegionRestoreRequest; + unlockDeleteExpiryTime?: string; } /** - * An interface representing CrrAccessTokenResource. + * An interface representing ResourceGuardOperationDetail. */ -export interface CrrAccessTokenResource extends Resource { +export interface ResourceGuardOperationDetail { + vaultCriticalOperation?: string; + defaultResourceRequest?: string; +} + +/** + * An interface representing ResourceGuardProxyBase. + */ +export interface ResourceGuardProxyBase { + resourceGuardResourceId?: string; + resourceGuardOperationDetails?: ResourceGuardOperationDetail[]; + lastUpdatedTime?: string; + description?: string; +} + +/** + * An interface representing ResourceGuardProxyBaseResource. + */ +export interface ResourceGuardProxyBaseResource extends Resource { /** - * CrrAccessTokenResource properties + * ResourceGuardProxyBaseResource properties */ - properties?: CrrAccessTokenUnion; + properties?: ResourceGuardProxyBase; } /** - * Filters to list backup items. + * An interface representing AADProperties. */ -export interface BMSAADPropertiesQueryObject { +export interface AADProperties { + servicePrincipalClientId?: string; + tenantId?: string; + authority?: string; + audience?: string; + servicePrincipalObjectId?: string; +} + +/** + * An interface representing AADPropertiesResource. + */ +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 */ @@ -8136,543 +8514,259 @@ export interface WorkloadCrrAccessToken { */ tokenExtendedInformation?: string; /** - * Recovery point Tier Information - */ - rpTierInformation?: { [propertyName: string]: string }; - /** - * Recovery point information: Original SA option - */ - rpOriginalSAOption?: boolean; - /** - * Recovery point information: Managed virtual machine - */ - rpIsManagedVirtualMachine?: boolean; - /** - * Recovery point information: VM size description - */ - rpVMSizeDescription?: string; - /** - * Active region name of BMS Stamp - */ - bMSActiveRegion?: string; - protectableObjectUniqueName?: string; - protectableObjectFriendlyName?: string; - protectableObjectWorkloadType?: string; - protectableObjectProtectionState?: string; - protectableObjectContainerHostOsName?: string; - protectableObjectParentLogicalContainerName?: string; - /** - * Container Id - */ - containerId?: string; - /** - * Policy Name - */ - policyName?: string; - /** - * Policy Id - */ - policyId?: string; -} - -/** - * Contains the possible cases for FeatureSupportRequest. - */ -export type FeatureSupportRequestUnion = - | FeatureSupportRequest - | AzureBackupGoalFeatureSupportRequest - | AzureVMResourceFeatureSupportRequest; - -/** - * Base class for feature request - */ -export interface FeatureSupportRequest { - /** - * Polymorphic Discriminator - */ - featureType: "FeatureSupportRequest"; -} - -/** - * Azure backup goal feature specific request. - */ -export interface AzureBackupGoalFeatureSupportRequest { - /** - * Polymorphic Discriminator - */ - featureType: "AzureBackupGoals"; -} - -/** - * Contains the possible cases for ProtectionIntent. - */ -export type ProtectionIntentUnion = - | ProtectionIntent - | AzureRecoveryServiceVaultProtectionIntentUnion - | AzureResourceProtectionIntent; - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "ProtectionIntent"; - /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. - */ - policyId?: string; - /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; -} - -/** - * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. - */ -export type AzureRecoveryServiceVaultProtectionIntentUnion = - | AzureRecoveryServiceVaultProtectionIntent - | AzureWorkloadAutoProtectionIntentUnion; - -/** - * Azure Recovery Services Vault specific protection intent item. - */ -export interface AzureRecoveryServiceVaultProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "RecoveryServiceVaultItem"; - /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. - */ - policyId?: string; - /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; -} - -/** - * IaaS VM specific backup protection intent item. - */ -export interface AzureResourceProtectionIntent { - /** - * 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. + * Recovery point Tier Information */ - sourceResourceId?: string; + rpTierInformation?: { [propertyName: string]: string }; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Recovery point information: Original SA option */ - itemId?: string; + rpOriginalSAOption?: boolean; /** - * ID of the backup policy with which this item is backed up. + * Recovery point information: Managed virtual machine */ - policyId?: string; + rpIsManagedVirtualMachine?: boolean; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Recovery point information: VM size description */ - protectionState?: ProtectionStatus; + rpVMSizeDescription?: string; /** - * Friendly name of the VM represented by this backup item. + * Active region name of BMS Stamp */ - friendlyName?: string; + bMSActiveRegion?: string; } /** - * AzureResource(IaaS VM) Specific feature support request + * An interface representing CrossRegionRestoreRequest. */ -export interface AzureVMResourceFeatureSupportRequest { - /** - * Polymorphic Discriminator - */ - featureType: "AzureVMResourceBackup"; +export interface CrossRegionRestoreRequest { /** - * Size of the resource: VM size(A/D series etc) in case of IaasVM + * Access details for cross region restore */ - vmSize?: string; + crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; /** - * SKUs (Premium/Managed etc) in case of IaasVM + * Request object for triggering restore */ - vmSku?: string; + restoreRequest?: RestoreRequestUnion; } /** - * Response for feature support requests for Azure IaasVm + * An interface representing CrossRegionRestoreRequestResource. */ -export interface AzureVMResourceFeatureSupportResponse { +export interface CrossRegionRestoreRequestResource extends Resource { /** - * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', - * 'DefaultON', 'NotSupported' + * CrossRegionRestoreRequestResource properties */ - supportStatus?: SupportStatus; + properties?: CrossRegionRestoreRequest; } /** - * Contains the possible cases for AzureWorkloadAutoProtectionIntent. - */ -export type AzureWorkloadAutoProtectionIntentUnion = - | AzureWorkloadAutoProtectionIntent - | AzureWorkloadSQLAutoProtectionIntent; - -/** - * Azure Recovery Services Vault specific protection intent item. + * An interface representing CrrAccessTokenResource. */ -export interface AzureWorkloadAutoProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; - /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. - */ - policyId?: string; +export interface CrrAccessTokenResource extends Resource { /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * CrrAccessTokenResource properties */ - protectionState?: ProtectionStatus; + properties?: CrrAccessTokenUnion; } /** - * Azure Workload SQL Auto Protection intent item. + * Filters to list backup items. */ -export interface AzureWorkloadSQLAutoProtectionIntent { - /** - * Polymorphic Discriminator - */ - protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; +export interface BMSAADPropertiesQueryObject { /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Backup management type for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; - /** - * ARM ID of the resource to be backed up. - */ - sourceResourceId?: string; - /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId - */ - itemId?: string; - /** - * ID of the backup policy with which this item is backed up. - */ - policyId?: string; - /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; - /** - * Workload item type of the item for which intent is to be set. Possible values include: - * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - * 'SAPAseDatabase' - */ - workloadItemType?: WorkloadItemType; } /** - * BackupStatus request. + * Operation status extended info for Updated Recovery Point. */ -export interface BackupStatusRequest { +export interface OperationStatusRecoveryPointExtendedInfo { /** - * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * Polymorphic Discriminator */ - resourceType?: DataSourceType; + objectType: "OperationStatusRecoveryPointExtendedInfo"; /** - * Entire ARM resource id of the resource + * Recovery Point info with updated source snapshot URI */ - resourceId?: string; + updatedRecoveryPoint?: RecoveryPointUnion; /** - * Protectable Item Logical Name + * In case the share is in soft-deleted state, populate this field with deleted backup item */ - poLogicalName?: string; + deletedBackupItemVersion?: string; } /** - * BackupStatus response. + * An interface representing WorkloadCrrAccessToken. */ -export interface BackupStatusResponse { +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. + */ + tokenExtendedInformation?: string; + /** + * Recovery point Tier Information */ - itemType?: IntentItemType; + rpTierInformation?: { [propertyName: string]: string }; /** - * Parent name of the intent + * 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,14 +9036,23 @@ export interface BackupProtectionContainersListOptionalParams extends msRest.Req /** * Optional Parameters. */ -export interface BackupProtectionContainersListNextOptionalParams - extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; } +/** + * Optional Parameters. + */ +export interface SecurityPINsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * security pin request + */ + parameters?: SecurityPinBase; +} + /** * Optional Parameters. */ @@ -9051,52 +9154,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 +9193,79 @@ 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 {} +export interface ProtectionContainerResourceList extends Array, ResourceList { +} /** * @interface - * Operations List response which contains list of available APIs. - * @extends Array + * List of ResourceGuardProxyBase resources + * @extends Array, ResourceList */ -export interface ClientDiscoveryResponse extends Array { - /** - * Link to the next chunk of Response. - */ - nextLink?: string; +export interface ResourceGuardProxyBaseResourceList extends Array, ResourceList { } /** @@ -9206,22 +9274,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..70b2563357af 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"; @@ -43,6 +50,8 @@ export * from "./backupProtectableItems"; export * from "./backupProtectionContainers"; export * from "./securityPINs"; export * from "./recoveryPointsRecommendedForMove"; +export * from "./resourceGuardProxies"; +export * from "./resourceGuardProxy"; export * from "./backupUsageSummariesCRR"; export * from "./aadProperties"; export * from "./crossRegionRestore"; @@ -53,9 +62,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/resourceGuardProxies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/resourceGuardProxies.ts new file mode 100644 index 000000000000..ed2e3204d125 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/resourceGuardProxies.ts @@ -0,0 +1,141 @@ +/* + * 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/resourceGuardProxiesMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a ResourceGuardProxies. */ +export class ResourceGuardProxies { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a ResourceGuardProxies. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * List the ResourceGuardProxies under vault + * @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; + } + + /** + * List the ResourceGuardProxies under vault + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + getNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + getNext(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 + */ + getNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + getNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceGuardProxyBaseResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceGuardProxyBaseResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/resourceGuardProxy.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/resourceGuardProxy.ts new file mode 100644 index 000000000000..85bfeebfe9d3 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/resourceGuardProxy.ts @@ -0,0 +1,300 @@ +/* + * 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/resourceGuardProxyMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a ResourceGuardProxy. */ +export class ResourceGuardProxy { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a ResourceGuardProxy. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Returns ResourceGuardProxy under vault and with the name referenced in request + * @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 resourceGuardProxyName + * @param [options] The optional parameters + * @returns Promise + */ + get(vaultName: string, resourceGroupName: string, resourceGuardProxyName: 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 resourceGuardProxyName + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, resourceGuardProxyName: 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 resourceGuardProxyName + * @param options The optional parameters + * @param callback The callback + */ + get(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + resourceGuardProxyName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Add or Update ResourceGuardProxy under vault + * Secures vault critical operations + * @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 resourceGuardProxyName + * @param [options] The optional parameters + * @returns Promise + */ + put(vaultName: string, resourceGroupName: string, resourceGuardProxyName: 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 resourceGuardProxyName + * @param callback The callback + */ + put(vaultName: string, resourceGroupName: string, resourceGuardProxyName: 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 resourceGuardProxyName + * @param options The optional parameters + * @param callback The callback + */ + put(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + put(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + resourceGuardProxyName, + options + }, + putOperationSpec, + callback) as Promise; + } + + /** + * Delete ResourceGuardProxy under vault + * @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 resourceGuardProxyName + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(vaultName: string, resourceGroupName: string, resourceGuardProxyName: 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 resourceGuardProxyName + * @param callback The callback + */ + deleteMethod(vaultName: string, resourceGroupName: string, resourceGuardProxyName: 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 resourceGuardProxyName + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + resourceGuardProxyName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Secures delete ResourceGuardProxy operations. + * @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 resourceGuardProxyName + * @param parameters Request body for operation + * @param [options] The optional parameters + * @returns Promise + */ + unlockDelete(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, parameters: Models.UnlockDeleteRequest, 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 resourceGuardProxyName + * @param parameters Request body for operation + * @param callback The callback + */ + unlockDelete(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, parameters: Models.UnlockDeleteRequest, 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 resourceGuardProxyName + * @param parameters Request body for operation + * @param options The optional parameters + * @param callback The callback + */ + unlockDelete(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, parameters: Models.UnlockDeleteRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + unlockDelete(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, parameters: Models.UnlockDeleteRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + resourceGuardProxyName, + parameters, + options + }, + unlockDeleteOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceGuardProxyName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceGuardProxyBaseResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const putOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceGuardProxyName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceGuardProxyBaseResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceGuardProxyName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const unlockDeleteOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceGuardProxyName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.UnlockDeleteRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.UnlockDeleteResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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..9c9de35c489f 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?: Models.SecurityPINsGetOptionalParams): 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: Models.SecurityPINsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(vaultName: string, resourceGroupName: string, options?: Models.SecurityPINsGetOptionalParams | 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,25 @@ 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 + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.SecurityPinBase + }, 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..1a073a30028d 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; @@ -54,6 +62,8 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { backupProtectionContainers: operations.BackupProtectionContainers; securityPINs: operations.SecurityPINs; recoveryPointsRecommendedForMove: operations.RecoveryPointsRecommendedForMove; + resourceGuardProxies: operations.ResourceGuardProxies; + resourceGuardProxy: operations.ResourceGuardProxy; backupUsageSummariesCRR: operations.BackupUsageSummariesCRR; aadProperties: operations.AadProperties; crossRegionRestore: operations.CrossRegionRestore; @@ -64,12 +74,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 +86,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 +116,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); @@ -128,6 +131,8 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.backupProtectionContainers = new operations.BackupProtectionContainers(this); this.securityPINs = new operations.SecurityPINs(this); this.recoveryPointsRecommendedForMove = new operations.RecoveryPointsRecommendedForMove(this); + this.resourceGuardProxies = new operations.ResourceGuardProxies(this); + this.resourceGuardProxy = new operations.ResourceGuardProxy(this); this.backupUsageSummariesCRR = new operations.BackupUsageSummariesCRR(this); this.aadProperties = new operations.AadProperties(this); this.crossRegionRestore = new operations.CrossRegionRestore(this); @@ -138,12 +143,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 +154,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 +162,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 +171,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 +181,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, getOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -217,18 +193,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 +207,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 +225,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 +239,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 +248,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginBMSPrepareDataMoveOperationSpec, - options - ); + options); } /** @@ -325,12 +260,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 +269,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginBMSTriggerDataMoveOperationSpec, - options - ); + options); } /** @@ -356,16 +285,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 +298,7 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginMoveRecoveryPointOperationSpec, - options - ); + options); } } @@ -387,16 +306,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 +332,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 +363,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 +394,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 +404,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 51f36052703a..da814175778a 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; } }