From 95571f44990f8a99b072d6b399202139d94592f4 Mon Sep 17 00:00:00 2001 From: colawwj Date: Thu, 3 Jun 2021 10:19:24 +0800 Subject: [PATCH 1/4] arm-recoveryservicesbackup-v4 --- .../arm-recoveryservicesbackup/LICENSE.txt | 2 +- .../arm-recoveryservicesbackup/README.md | 109 +- .../arm-recoveryservicesbackup/package.json | 9 +- .../rollup.config.js | 4 +- .../src/models/aadPropertiesMappers.ts | 225 + ...MSPrepareDataMoveOperationResultMappers.ts | 16 + .../src/models/backupCrrJobDetailsMappers.ts | 225 + .../src/models/backupCrrJobsMappers.ts | 236 + .../src/models/backupEnginesMappers.ts | 28 +- .../src/models/backupJobsMappers.ts | 28 +- .../models/backupOperationResultsMappers.ts | 4 +- .../models/backupOperationStatusesMappers.ts | 27 +- .../src/models/backupPoliciesMappers.ts | 28 +- .../models/backupProtectableItemsMappers.ts | 28 +- .../models/backupProtectedItemsCrrMappers.ts | 236 + .../src/models/backupProtectedItemsMappers.ts | 28 +- .../backupProtectionContainersMappers.ts | 28 +- .../models/backupProtectionIntentMappers.ts | 28 +- .../backupResourceEncryptionConfigsMappers.ts | 225 + .../backupResourceStorageConfigsMappers.ts | 32 +- .../backupResourceVaultConfigsMappers.ts | 32 +- .../src/models/backupStatusMappers.ts | 4 +- .../models/backupUsageSummariesCRRMappers.ts | 17 + .../src/models/backupUsageSummariesMappers.ts | 4 +- .../src/models/backupWorkloadItemsMappers.ts | 28 +- .../src/models/backupsMappers.ts | 28 +- .../src/models/crossRegionRestoreMappers.ts | 37 + .../src/models/crrOperationResultsMappers.ts | 14 + .../src/models/crrOperationStatusMappers.ts | 43 + .../exportJobsOperationResultsMappers.ts | 4 +- .../src/models/featureSupportMappers.ts | 4 +- .../src/models/index.ts | 5768 +++++++++++------ .../itemLevelRecoveryConnectionsMappers.ts | 28 +- .../src/models/jobCancellationsMappers.ts | 4 +- .../src/models/jobDetailsMappers.ts | 28 +- .../src/models/jobOperationResultsMappers.ts | 4 +- .../src/models/jobsMappers.ts | 4 +- .../src/models/mappers.ts | 4569 ++++++++----- .../src/models/operationMappers.ts | 10 +- .../src/models/operationsMappers.ts | 4 +- .../src/models/parameters.ts | 23 +- ...vateEndpointConnectionOperationsMappers.ts | 31 +- .../privateEndpointOperationsMappers.ts | 43 + .../models/protectableContainersMappers.ts | 28 +- .../protectedItemOperationResultsMappers.ts | 28 +- .../protectedItemOperationStatusesMappers.ts | 27 +- .../src/models/protectedItemsMappers.ts | 28 +- ...tectionContainerOperationResultsMappers.ts | 28 +- ...ContainerRefreshOperationResultsMappers.ts | 4 +- .../src/models/protectionContainersMappers.ts | 28 +- .../protectionIntentOperationsMappers.ts | 28 +- .../src/models/protectionPoliciesMappers.ts | 28 +- ...protectionPolicyOperationResultsMappers.ts | 28 +- ...rotectionPolicyOperationStatusesMappers.ts | 27 +- .../src/models/recoveryPointsCrrMappers.ts | 236 + .../src/models/recoveryPointsMappers.ts | 31 +- ...recoveryPointsRecommendedForMoveMappers.ts | 235 + .../src/models/restoresMappers.ts | 28 +- .../src/models/securityPINsMappers.ts | 4 +- .../src/operations/aadProperties.ts | 82 + .../bMSPrepareDataMoveOperationResult.ts | 95 + .../src/operations/backupCrrJobDetails.ts | 92 + .../src/operations/backupCrrJobs.ts | 148 + .../src/operations/backupEngines.ts | 24 +- .../src/operations/backupJobs.ts | 20 +- .../src/operations/backupOperationResults.ts | 9 +- .../src/operations/backupOperationStatuses.ts | 9 +- .../src/operations/backupPolicies.ts | 19 +- .../src/operations/backupProtectableItems.ts | 20 +- .../src/operations/backupProtectedItems.ts | 20 +- .../src/operations/backupProtectedItemsCrr.ts | 145 + .../operations/backupProtectionContainers.ts | 19 +- .../src/operations/backupProtectionIntent.ts | 18 +- .../backupResourceEncryptionConfigs.ts | 158 + .../backupResourceStorageConfigs.ts | 23 +- .../operations/backupResourceVaultConfigs.ts | 23 +- .../src/operations/backupStatus.ts | 7 +- .../src/operations/backupUsageSummaries.ts | 7 +- .../src/operations/backupUsageSummariesCRR.ts | 91 + .../src/operations/backupWorkloadItems.ts | 20 +- .../src/operations/backups.ts | 9 +- .../src/operations/crossRegionRestore.ts | 92 + .../src/operations/crrOperationResults.ts | 83 + .../src/operations/crrOperationStatus.ts | 85 + .../operations/exportJobsOperationResults.ts | 9 +- .../src/operations/featureSupport.ts | 7 +- .../src/operations/index.ts | 30 +- .../itemLevelRecoveryConnections.ts | 13 +- .../src/operations/jobCancellations.ts | 9 +- .../src/operations/jobDetails.ts | 9 +- .../src/operations/jobOperationResults.ts | 9 +- .../src/operations/jobs.ts | 9 +- .../src/operations/operation.ts | 9 +- .../src/operations/operations.ts | 10 +- .../privateEndpointConnectionOperations.ts | 15 +- .../operations/privateEndpointOperations.ts | 99 + .../src/operations/protectableContainers.ts | 19 +- .../protectedItemOperationResults.ts | 9 +- .../protectedItemOperationStatuses.ts | 9 +- .../src/operations/protectedItems.ts | 18 +- .../protectionContainerOperationResults.ts | 9 +- ...tectionContainerRefreshOperationResults.ts | 9 +- .../src/operations/protectionContainers.ts | 26 +- .../operations/protectionIntentOperations.ts | 13 +- .../src/operations/protectionPolicies.ts | 52 +- .../protectionPolicyOperationResults.ts | 9 +- .../protectionPolicyOperationStatuses.ts | 9 +- .../src/operations/recoveryPoints.ts | 115 +- .../src/operations/recoveryPointsCrr.ts | 158 + .../recoveryPointsRecommendedForMove.ts | 167 + .../src/operations/restores.ts | 46 +- .../src/operations/securityPINs.ts | 9 +- .../src/recoveryServicesBackupClient.ts | 304 +- .../recoveryServicesBackupClientContext.ts | 25 +- 114 files changed, 11344 insertions(+), 4301 deletions(-) create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesCRRMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/privateEndpointOperationsMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsCrrMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/recoveryPointsRecommendedForMoveMappers.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/aadProperties.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts create mode 100644 sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index c9f0c165e927..7a96538fce7b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md @@ -1,96 +1,101 @@ ## Azure RecoveryServicesBackupClient SDK for JavaScript -This package contains an isomorphic SDK for RecoveryServicesBackupClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for RecoveryServicesBackupClient. ### Currently supported environments -- Node.js version 6.x.x or higher +- Node.js version 8.x.x or higher - Browser JavaScript -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-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 @azure/arm-recoveryservicesbackup +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. ### How to use -#### nodejs - Authentication, client creation and get privateEndpointConnection as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +In the below samples, we pass the credential and the Azure subscription id to instantiate the client. +Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +#### nodejs - Authentication, client creation, and get backupResourceVaultConfigs as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { RecoveryServicesBackupClient, RecoveryServicesBackupModels, RecoveryServicesBackupMappers } from "@azure/arm-recoveryservicesbackup"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new RecoveryServicesBackupClient(creds, subscriptionId); - const vaultName = "testvaultName"; - const resourceGroupName = "testresourceGroupName"; - const privateEndpointConnectionName = "testprivateEndpointConnectionName"; - client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new 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); }); ``` -#### browser - Authentication, client creation and get privateEndpointConnection as an example written in JavaScript. +#### browser - Authentication, client creation, and get backupResourceVaultConfigs as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-recoveryservicesbackup sample - - + diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json index e5b38c2b3f82..1cb10942f505 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-recoveryservicesbackup", "author": "Microsoft Corporation", "description": "RecoveryServicesBackupClient Library with typescript type definitions for node.js and browser.", - "version": "6.1.0", + "version": "7.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/recoveryServicesBackupClient.js", "types": "./esm/recoveryServicesBackupClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js index faa841bb5989..bb0c6fd4e76b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts new file mode 100644 index 000000000000..f478e80e0f73 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/aadPropertiesMappers.ts @@ -0,0 +1,225 @@ +/* + * 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, + 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, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts new file mode 100644 index 000000000000..2ac6dde24d4d --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/bMSPrepareDataMoveOperationResultMappers.ts @@ -0,0 +1,16 @@ +/* + * 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, + ErrorAdditionalInfo, + NewErrorResponse, + NewErrorResponseError, + PrepareDataMoveResponse, + VaultStorageConfigOperationResultResponse +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts new file mode 100644 index 000000000000..f478e80e0f73 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobDetailsMappers.ts @@ -0,0 +1,225 @@ +/* + * 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, + 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, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts new file mode 100644 index 000000000000..2a64622f2f0e --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupCrrJobsMappers.ts @@ -0,0 +1,236 @@ +/* + * 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, + BackupEngineBaseResourceList, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + 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, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + JobResourceList, + 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, + ProtectableContainerResourceList, + ProtectedItem, + ProtectedItemResource, + ProtectedItemResourceList, + ProtectionContainer, + ProtectionContainerResource, + ProtectionContainerResourceList, + ProtectionIntent, + ProtectionIntentResource, + ProtectionIntentResourceList, + ProtectionPolicy, + ProtectionPolicyResource, + ProtectionPolicyResourceList, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointResourceList, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + ResourceList, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadItemResourceList, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + WorkloadProtectableItemResourceList, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupEnginesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupJobsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts index 64b4448237fa..3c4862aa38f6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts index e2b2befc32de..08be818858ae 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationStatusesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,13 +8,34 @@ export { discriminators, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, ClientScriptForConnect, CloudError, + DiskInformation, + GenericRecoveryPoint, + IaasVMRecoveryPoint, InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, OperationStatus, OperationStatusError, OperationStatusExtendedInfo, OperationStatusJobExtendedInfo, OperationStatusJobsExtendedInfo, - OperationStatusProvisionILRExtendedInfo + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory } from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectableItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts new file mode 100644 index 000000000000..2a64622f2f0e --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsCrrMappers.ts @@ -0,0 +1,236 @@ +/* + * 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, + BackupEngineBaseResourceList, + BackupEngineExtendedInfo, + BackupRequest, + BackupRequestResource, + BackupResourceConfig, + BackupResourceConfigResource, + BackupResourceEncryptionConfig, + 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, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + JobResourceList, + 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, + ProtectableContainerResourceList, + ProtectedItem, + ProtectedItemResource, + ProtectedItemResourceList, + ProtectionContainer, + ProtectionContainerResource, + ProtectionContainerResourceList, + ProtectionIntent, + ProtectionIntentResource, + ProtectionIntentResourceList, + ProtectionPolicy, + ProtectionPolicyResource, + ProtectionPolicyResourceList, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointResourceList, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + ResourceList, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadItemResourceList, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + WorkloadProtectableItemResourceList, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectedItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionContainersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupProtectionIntentMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts new file mode 100644 index 000000000000..f478e80e0f73 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceEncryptionConfigsMappers.ts @@ -0,0 +1,225 @@ +/* + * 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, + 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, + ILRRequest, + ILRRequestResource, + InquiryInfo, + InquiryValidation, + InstantRPAdditionalDetails, + Job, + JobResource, + KEKDetails, + KeyAndSecretDetails, + KPIResourceHealthDetails, + LogSchedulePolicy, + LongTermRetentionPolicy, + LongTermSchedulePolicy, + MabContainer, + MabContainerExtendedInfo, + MABContainerHealthDetails, + MabErrorInfo, + MabFileFolderProtectedItem, + MabFileFolderProtectedItemExtendedInfo, + MabJob, + MabJobExtendedInfo, + MabJobTaskDetails, + MabProtectionPolicy, + MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, + PointInTimeRange, + PreBackupValidation, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionResource, + PrivateLinkServiceConnectionState, + ProtectableContainer, + ProtectableContainerResource, + ProtectedItem, + ProtectedItemResource, + ProtectionContainer, + ProtectionContainerResource, + ProtectionIntent, + ProtectionIntentResource, + ProtectionPolicy, + ProtectionPolicyResource, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, + RecoveryPointResource, + RecoveryPointTierInformation, + Resource, + ResourceHealthDetails, + RestoreFileSpecs, + RestoreRequest, + RestoreRequestResource, + RetentionDuration, + RetentionPolicy, + SchedulePolicy, + Settings, + SimpleRetentionPolicy, + SimpleSchedulePolicy, + SQLDataDirectory, + SQLDataDirectoryMapping, + SubProtectionPolicy, + TargetAFSRestoreInfo, + TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, + WeeklyRetentionFormat, + WeeklyRetentionSchedule, + WorkloadCrrAccessToken, + WorkloadInquiryDetails, + WorkloadItem, + WorkloadItemResource, + WorkloadProtectableItem, + WorkloadProtectableItemResource, + YearlyRetentionSchedule +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts index 6eeea71e42b2..f478e80e0f73 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceStorageConfigsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,19 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -118,6 +131,7 @@ export { DPMProtectedItem, DPMProtectedItemExtendedInfo, EncryptionDetails, + ErrorAdditionalInfo, ErrorDetail, ExtendedProperties, GenericContainer, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -155,6 +170,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -173,9 +190,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +210,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts index 793cf3485a46..f478e80e0f73 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupResourceVaultConfigsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,19 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, - CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -120,20 +133,19 @@ export { EncryptionDetails, ErrorAdditionalInfo, ErrorDetail, - ErrorResponse, ExtendedProperties, GenericContainer, GenericContainerExtendedInfo, GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -157,6 +170,8 @@ export { MabJobTaskDetails, MabProtectionPolicy, MonthlyRetentionSchedule, + NewErrorResponse, + NewErrorResponseError, PointInTimeRange, PreBackupValidation, PrivateEndpoint, @@ -175,9 +190,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -192,8 +210,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts index eb8ecfd230d1..195ec26f67a5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupStatusMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesCRRMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesCRRMappers.ts new file mode 100644 index 000000000000..387b0f7f5b1d --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesCRRMappers.ts @@ -0,0 +1,17 @@ +/* + * 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, + BackupManagementUsage, + BackupManagementUsageList, + ErrorAdditionalInfo, + NameInfo, + NewErrorResponse, + NewErrorResponseError +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts index 0a5ba2f9e04b..a09f6df2d285 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupUsageSummariesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts index 0923aafa73b5..2b141b46a66e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupWorkloadItemsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineBaseResourceList, @@ -97,12 +103,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -126,13 +140,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -143,6 +157,7 @@ export { JobResourceList, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -180,10 +195,13 @@ export { ProtectionPolicyResourceList, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointResourceList, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, ResourceList, RestoreFileSpecs, RestoreRequest, @@ -199,8 +217,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts index 6eeea71e42b2..a7719f9e3a6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -8,6 +8,8 @@ export { discriminators, + AADProperties, + AADPropertiesResource, AzureBackupServerContainer, AzureBackupServerEngine, AzureFileShareBackupRequest, @@ -81,14 +83,18 @@ export { AzureWorkloadRestoreRequest, AzureWorkloadSAPHanaPointInTimeRecoveryPoint, AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, AzureWorkloadSQLAutoProtectionIntent, AzureWorkloadSQLPointInTimeRecoveryPoint, AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, AzureWorkloadSQLRecoveryPoint, AzureWorkloadSQLRecoveryPointExtendedInfo, AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, BackupEngineBase, BackupEngineBaseResource, BackupEngineExtendedInfo, @@ -96,12 +102,20 @@ export { BackupRequestResource, BackupResourceConfig, BackupResourceConfigResource, + BackupResourceEncryptionConfig, + BackupResourceEncryptionConfigResource, BackupResourceVaultConfig, BackupResourceVaultConfigResource, BaseResource, BEKDetails, CloudError, ContainerIdentityInfo, + CrossRegionRestoreRequest, + CrossRegionRestoreRequestResource, + CrrAccessToken, + CrrAccessTokenResource, + CrrJobRequest, + CrrJobRequestResource, DailyRetentionFormat, DailyRetentionSchedule, Day, @@ -125,13 +139,13 @@ export { GenericProtectedItem, GenericProtectionPolicy, GenericRecoveryPoint, - HealthDetails, IaasVMBackupRequest, IaaSVMContainer, IaasVMILRRegistrationRequest, IaaSVMProtectableItem, IaasVMRecoveryPoint, IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, ILRRequest, ILRRequestResource, InquiryInfo, @@ -141,6 +155,7 @@ export { JobResource, KEKDetails, KeyAndSecretDetails, + KPIResourceHealthDetails, LogSchedulePolicy, LongTermRetentionPolicy, LongTermSchedulePolicy, @@ -173,9 +188,12 @@ export { ProtectionPolicyResource, RecoveryPoint, RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointRehydrationInfo, RecoveryPointResource, RecoveryPointTierInformation, Resource, + ResourceHealthDetails, RestoreFileSpecs, RestoreRequest, RestoreRequestResource, @@ -190,8 +208,12 @@ export { SubProtectionPolicy, TargetAFSRestoreInfo, TargetRestoreInfo, + VaultJob, + VaultJobErrorInfo, + VaultJobExtendedInfo, WeeklyRetentionFormat, WeeklyRetentionSchedule, + WorkloadCrrAccessToken, WorkloadInquiryDetails, WorkloadItem, WorkloadItemResource, diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts new file mode 100644 index 000000000000..3b9a9f884247 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crossRegionRestoreMappers.ts @@ -0,0 +1,37 @@ +/* + * 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, + AzureFileShareRestoreRequest, + AzureWorkloadPointInTimeRestoreRequest, + AzureWorkloadRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreRequest, + AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSAPHanaRestoreRequest, + AzureWorkloadSAPHanaRestoreWithRehydrateRequest, + AzureWorkloadSQLPointInTimeRestoreRequest, + AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, + AzureWorkloadSQLRestoreRequest, + AzureWorkloadSQLRestoreWithRehydrateRequest, + CrossRegionRestoreRequest, + CrrAccessToken, + EncryptionDetails, + ErrorAdditionalInfo, + IaasVMRestoreRequest, + IaasVMRestoreWithRehydrationRequest, + NewErrorResponse, + NewErrorResponseError, + RecoveryPointRehydrationInfo, + RestoreFileSpecs, + RestoreRequest, + SQLDataDirectoryMapping, + TargetAFSRestoreInfo, + TargetRestoreInfo, + WorkloadCrrAccessToken +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts new file mode 100644 index 000000000000..6b281afdf294 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationResultsMappers.ts @@ -0,0 +1,14 @@ +/* + * 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, + ErrorAdditionalInfo, + NewErrorResponse, + NewErrorResponseError +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts new file mode 100644 index 000000000000..61a4fde86431 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/crrOperationStatusMappers.ts @@ -0,0 +1,43 @@ +/* + * 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, + AzureFileShareRecoveryPoint, + AzureWorkloadPointInTimeRecoveryPoint, + AzureWorkloadRecoveryPoint, + AzureWorkloadSAPHanaPointInTimeRecoveryPoint, + AzureWorkloadSAPHanaRecoveryPoint, + AzureWorkloadSQLPointInTimeRecoveryPoint, + AzureWorkloadSQLRecoveryPoint, + AzureWorkloadSQLRecoveryPointExtendedInfo, + BEKDetails, + ClientScriptForConnect, + DiskInformation, + ErrorAdditionalInfo, + GenericRecoveryPoint, + IaasVMRecoveryPoint, + InstantItemRecoveryTarget, + KEKDetails, + KeyAndSecretDetails, + NewErrorResponse, + NewErrorResponseError, + OperationStatus, + OperationStatusError, + OperationStatusExtendedInfo, + OperationStatusJobExtendedInfo, + OperationStatusJobsExtendedInfo, + OperationStatusProvisionILRExtendedInfo, + OperationStatusRecoveryPointExtendedInfo, + PointInTimeRange, + RecoveryPoint, + RecoveryPointDiskConfiguration, + RecoveryPointMoveReadinessInfo, + RecoveryPointTierInformation, + SQLDataDirectory +} from "../models/mappers"; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts index bfdd6ba7cea8..b1eb0d5f7cc9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/exportJobsOperationResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts index 1459a86aad1e..ec3de8eb31f0 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/featureSupportMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index c210583ac571..460f7408d4cf 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -12,67 +12,74 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Error information associated with operation status call. + * An interface representing BackupResourceEncryptionConfig. */ -export interface OperationStatusError { +export interface BackupResourceEncryptionConfig { /** - * Error code of the operation failure. + * Encryption At Rest Type. Possible values include: 'Invalid', 'MicrosoftManaged', + * 'CustomerManaged' */ - code?: string; + encryptionAtRestType?: EncryptionAtRestType; /** - * Error message displayed if the operation failure. + * Key Vault Key URI */ - message?: string; -} - -/** - * Contains the possible cases for OperationStatusExtendedInfo. - */ -export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo; - -/** - * Base class for additional information of operation status. - */ -export interface OperationStatusExtendedInfo { + keyUri?: string; /** - * Polymorphic Discriminator + * Key Vault Subscription Id */ - objectType: "OperationStatusExtendedInfo"; + subscriptionId?: string; + /** + * Possible values include: 'Invalid', 'NotEnabled', 'PartiallySucceeded', 'PartiallyFailed', + * 'Failed', 'Succeeded' + */ + lastUpdateStatus?: LastUpdateStatus; + /** + * Possible values include: 'Invalid', 'Disabled', 'Enabled' + */ + infrastructureEncryptionState?: InfrastructureEncryptionState; } /** - * Operation status. + * ARM Resource. */ -export interface OperationStatus { +export interface Resource extends BaseResource { /** - * ID of the operation. + * Resource Id represents the complete path to the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id?: string; + readonly id?: string; /** - * Name of the operation. + * Resource name associated with the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly name?: string; /** - * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' + * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status?: OperationStatusValues; + readonly type?: string; /** - * Operation start time. Format: ISO-8601. + * Resource location. */ - startTime?: Date; + location?: string; /** - * Operation end time. Format: ISO-8601. + * Resource tags. */ - endTime?: Date; + tags?: { [propertyName: string]: string }; /** - * Error information related to this operation. + * Optional ETag. */ - error?: OperationStatusError; + eTag?: string; +} + +/** + * An interface representing BackupResourceEncryptionConfigResource. + */ +export interface BackupResourceEncryptionConfigResource extends Resource { /** - * Additional information associated with this operation. + * BackupResourceEncryptionConfigResource properties */ - properties?: OperationStatusExtendedInfoUnion; + properties?: BackupResourceEncryptionConfig; } /** @@ -123,39 +130,6 @@ export interface PrivateEndpointConnection { privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; } -/** - * ARM Resource. - */ -export interface Resource extends BaseResource { - /** - * Resource Id represents the complete path to the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name associated with the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Resource location. - */ - location?: string; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; - /** - * Optional ETag. - */ - eTag?: string; -} - /** * Private Endpoint Connection Response Properties */ @@ -183,9 +157,9 @@ export interface ErrorAdditionalInfo { } /** - * The resource management error response. + * The error object. */ -export interface ErrorResponse { +export interface NewErrorResponseError { /** * The error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -205,7 +179,7 @@ export interface ErrorResponse { * The error details. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly details?: ErrorResponse[]; + readonly details?: NewErrorResponse[]; /** * The error additional info. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -213,10 +187,20 @@ export interface ErrorResponse { readonly additionalInfo?: ErrorAdditionalInfo[]; } +/** + * The resource management error response. + */ +export interface NewErrorResponse { + /** + * The error object. + */ + error?: NewErrorResponseError; +} + /** * Health Details for backup items. */ -export interface HealthDetails { +export interface ResourceHealthDetails { /** * Health Code * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -239,6 +223,21 @@ export interface HealthDetails { readonly recommendations?: string[]; } +/** + * KPI Resource Health Details + */ +export interface KPIResourceHealthDetails { + /** + * Resource Health Status. Possible values include: 'Healthy', 'TransientDegraded', + * 'PersistentDegraded', 'TransientUnhealthy', 'PersistentUnhealthy', 'Invalid' + */ + resourceHealthStatus?: ResourceHealthStatus; + /** + * Resource Health Status + */ + resourceHealthDetails?: ResourceHealthDetails[]; +} + /** * Additional information about Azure File Share backup item. */ @@ -418,16 +417,6 @@ export interface AzureFileshareProtectedItem { * 'Protected', 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused' */ protectionState?: ProtectionState; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Last backup operation status. Possible values: Healthy, Unhealthy. */ @@ -436,10 +425,19 @@ export interface AzureFileshareProtectedItem { * Timestamp of the last backup operation on this backup item. */ lastBackupTime?: Date; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Additional information with this backup item. */ extendedInfo?: AzureFileshareProtectedItemExtendedInfo; + /** + * backups running status for this backup item. Possible values include: 'Passed', + * 'ActionRequired', 'ActionSuggested', 'Invalid' + */ + healthStatus?: HealthStatus; } /** @@ -522,7 +520,7 @@ export interface TargetAFSRestoreInfo { /** * Contains the possible cases for RestoreRequest. */ -export type RestoreRequestUnion = RestoreRequest | AzureFileShareRestoreRequest | AzureWorkloadRestoreRequestUnion | IaasVMRestoreRequest; +export type RestoreRequestUnion = RestoreRequest | AzureFileShareRestoreRequest | AzureWorkloadRestoreRequestUnion | IaasVMRestoreRequestUnion; /** * Base class for restore request. Workload-specific restore requests are derived from this class. @@ -626,7 +624,7 @@ export interface RetentionPolicy { export interface SubProtectionPolicy { /** * Type of backup policy type. Possible values include: 'Invalid', 'Full', 'Differential', 'Log', - * 'CopyOnlyFull' + * 'CopyOnlyFull', 'Incremental' */ policyType?: PolicyType; /** @@ -813,14 +811,17 @@ export interface AzureIaaSVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -924,14 +925,17 @@ export interface AzureIaaSClassicComputeVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -1035,14 +1039,17 @@ export interface AzureIaaSComputeVMProtectedItem { protectionState?: ProtectionState; /** * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' + * 'ActionSuggested', 'Invalid' */ healthStatus?: HealthStatus; /** * Health details on this backup item. */ healthDetails?: AzureIaaSVMHealthDetails[]; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; /** * Last backup operation status. */ @@ -1091,7 +1098,7 @@ export interface AzureIaaSVMErrorInfo { /** * Azure IaaS VM workload-specific Health Details. */ -export interface AzureIaaSVMHealthDetails extends HealthDetails { +export interface AzureIaaSVMHealthDetails extends ResourceHealthDetails { } /** @@ -1166,7 +1173,7 @@ export interface AzureIaaSVMJobExtendedInfo { /** * Contains the possible cases for Job. */ -export type JobUnion = Job | AzureIaaSVMJob | AzureStorageJob | AzureWorkloadJob | DpmJob | MabJob; +export type JobUnion = Job | AzureIaaSVMJob | AzureStorageJob | AzureWorkloadJob | DpmJob | MabJob | VaultJob; /** * Defines workload agnostic properties for a job. @@ -1736,20 +1743,14 @@ export interface AzureVmWorkloadProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -1864,20 +1865,14 @@ export interface AzureVmWorkloadSAPAseDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -1992,20 +1987,14 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -2120,20 +2109,14 @@ export interface AzureVmWorkloadSQLDatabaseProtectedItem { * include: 'Invalid', 'Healthy', 'Unhealthy', 'NotReachable', 'IRPending' */ protectedItemHealthStatus?: ProtectedItemHealthStatus; - /** - * Health status of protected item. Possible values include: 'Passed', 'ActionRequired', - * 'ActionSuggested', 'Healthy', 'TransientDegraded', 'PersistentDegraded', 'TransientUnhealthy', - * 'PersistentUnhealthy', 'Invalid' - */ - healthStatus?: HealthStatus; - /** - * Health details on this backup item. - */ - healthDetails?: HealthDetails[]; /** * Additional information for this backup item. */ extendedInfo?: AzureVmWorkloadProtectedItemExtendedInfo; + /** + * Health details of different KPIs + */ + kpisHealths?: { [propertyName: string]: KPIResourceHealthDetails }; } /** @@ -2287,10 +2270,19 @@ export interface AzureWorkloadRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } /** @@ -2312,10 +2304,19 @@ export interface AzureWorkloadPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * List of log ranges */ @@ -2357,6 +2358,12 @@ export interface AzureWorkloadRestoreRequest { * 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; } /** @@ -2389,12 +2396,46 @@ export interface AzureWorkloadPointInTimeRestoreRequest { * 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; } +/** + * Recovery point tier information. + */ +export interface RecoveryPointTierInformation { + /** + * Recovery point tier type. Possible values include: 'Invalid', 'InstantRP', 'HardenedRP', + * 'ArchivedRP' + */ + type?: RecoveryPointTierType; + /** + * Recovery point tier status. Possible values include: 'Invalid', 'Valid', 'Disabled', + * 'Deleted', 'Rehydrated' + */ + status?: RecoveryPointTierStatus; + /** + * Recovery point tier status. + */ + extendedInfo?: { [propertyName: string]: string }; +} + +/** + * An interface representing RecoveryPointMoveReadinessInfo. + */ +export interface RecoveryPointMoveReadinessInfo { + isReadyForMove?: boolean; + additionalInfo?: string; +} + /** * Details about target workload during restore operation. */ @@ -2432,10 +2473,19 @@ export interface AzureWorkloadSAPHanaPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * List of log ranges */ @@ -2445,7 +2495,7 @@ export interface AzureWorkloadSAPHanaPointInTimeRecoveryPoint { /** * Contains the possible cases for AzureWorkloadSAPHanaRestoreRequest. */ -export type AzureWorkloadSAPHanaRestoreRequestUnion = AzureWorkloadSAPHanaRestoreRequest | AzureWorkloadSAPHanaPointInTimeRestoreRequest; +export type AzureWorkloadSAPHanaRestoreRequestUnion = AzureWorkloadSAPHanaRestoreRequest | AzureWorkloadSAPHanaPointInTimeRestoreRequestUnion | AzureWorkloadSAPHanaRestoreWithRehydrateRequest; /** * AzureWorkload SAP Hana-specific restore. @@ -2477,8 +2527,19 @@ export interface AzureWorkloadSAPHanaRestoreRequest { * 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; } +/** + * Contains the possible cases for AzureWorkloadSAPHanaPointInTimeRestoreRequest. + */ +export type AzureWorkloadSAPHanaPointInTimeRestoreRequestUnion = AzureWorkloadSAPHanaPointInTimeRestoreRequest | AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest; + /** * AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore */ @@ -2509,6 +2570,12 @@ export interface AzureWorkloadSAPHanaPointInTimeRestoreRequest { * 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 */ @@ -2529,10 +2596,19 @@ export interface AzureWorkloadSAPHanaRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } /** @@ -2555,10 +2631,19 @@ export interface AzureWorkloadSQLRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint @@ -2581,10 +2666,19 @@ export interface AzureWorkloadSQLPointInTimeRecoveryPoint { */ readonly recoveryPointTimeInUTC?: Date; /** - * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential' + * Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', + * 'Incremental' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: RestorePointType; + /** + * Recovery point tier information. + */ + recoveryPointTierDetails?: RecoveryPointTierInformation[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; /** * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint @@ -2600,7 +2694,7 @@ export interface AzureWorkloadSQLPointInTimeRecoveryPoint { /** * Contains the possible cases for AzureWorkloadSQLRestoreRequest. */ -export type AzureWorkloadSQLRestoreRequestUnion = AzureWorkloadSQLRestoreRequest | AzureWorkloadSQLPointInTimeRestoreRequest; +export type AzureWorkloadSQLRestoreRequestUnion = AzureWorkloadSQLRestoreRequest | AzureWorkloadSQLPointInTimeRestoreRequestUnion | AzureWorkloadSQLRestoreWithRehydrateRequest; /** * AzureWorkload SQL -specific restore. Specifically for full/diff restore @@ -2632,6 +2726,12 @@ export interface AzureWorkloadSQLRestoreRequest { * 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 */ @@ -2646,6 +2746,11 @@ export interface AzureWorkloadSQLRestoreRequest { alternateDirectoryPaths?: SQLDataDirectoryMapping[]; } +/** + * Contains the possible cases for AzureWorkloadSQLPointInTimeRestoreRequest. + */ +export type AzureWorkloadSQLPointInTimeRestoreRequestUnion = AzureWorkloadSQLPointInTimeRestoreRequest | AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest; + /** * AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore */ @@ -2676,6 +2781,12 @@ export interface AzureWorkloadSQLPointInTimeRestoreRequest { * 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 */ @@ -2750,43 +2861,6 @@ export interface SQLDataDirectoryMapping { targetPath?: string; } -/** - * Backup resource vault config details. - */ -export interface BackupResourceVaultConfig { - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - */ - storageModelType?: StorageType; - /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - */ - 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; - /** - * Enabled or Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' - */ - enhancedSecurityState?: EnhancedSecurityState; - /** - * Soft Delete feature state. Possible values include: 'Invalid', 'Enabled', 'Disabled' - */ - softDeleteFeatureState?: SoftDeleteFeatureState; -} - -/** - * Backup resource vault config details. - */ -export interface BackupResourceVaultConfigResource extends Resource { - /** - * BackupResourceVaultConfigResource properties - */ - properties?: BackupResourceVaultConfig; -} - /** * BEK is bitlocker encryption key. */ @@ -2819,13 +2893,17 @@ export interface BMSRPQueryObject { endDate?: Date; /** * RestorePoint type. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', - * 'FullAndDifferential', 'All' + * 'FullAndDifferential', 'All', 'Incremental' */ restorePointQueryType?: RestorePointQueryType; /** * In Get Recovery Point, it tells whether extended information about recovery point is asked. */ extendedInfo?: boolean; + /** + * Whether the RP can be moved to another tier + */ + moveReadyRPOnly?: boolean; } /** @@ -3430,20 +3508,6 @@ export interface KeyAndSecretDetails { encryptionMechanism?: string; } -/** - * Recovery point tier information. - */ -export interface RecoveryPointTierInformation { - /** - * Recovery point tier type. Possible values include: 'Invalid', 'InstantRP', 'HardenedRP' - */ - type?: RecoveryPointTierType; - /** - * Recovery point tier status. Possible values include: 'Invalid', 'Valid', 'Disabled', 'Deleted' - */ - status?: RecoveryPointTierStatus; -} - /** * Disk configuration */ @@ -3532,8 +3596,21 @@ export interface IaasVMRecoveryPoint { * Disk configuration */ recoveryPointDiskConfiguration?: RecoveryPointDiskConfiguration; + /** + * Identifies the zone of the VM at the time of backup. Applicable only for zone-pinned Vms + */ + zones?: string[]; + /** + * Eligibility of RP to be moved to another tier + */ + recoveryPointMoveReadinessInfo?: { [propertyName: string]: RecoveryPointMoveReadinessInfo }; } +/** + * Contains the possible cases for IaasVMRestoreRequest. + */ +export type IaasVMRestoreRequestUnion = IaasVMRestoreRequest | IaasVMRestoreWithRehydrationRequest; + /** * IaaS VM workload-specific restore. */ @@ -3616,6 +3693,19 @@ export interface IaasVMRestoreRequest { * List of Disk LUNs for partial restore */ restoreDiskLunList?: number[]; + /** + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + */ + 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[]; } /** @@ -3636,7 +3726,7 @@ export interface JobQueryObject { /** * Type of operation. Possible values include: 'Invalid', 'Register', 'UnRegister', * 'ConfigureBackup', 'Backup', 'Restore', 'DisableBackup', 'DeleteBackupData', - * 'CrossRegionRestore', 'Undelete' + * 'CrossRegionRestore', 'Undelete', 'UpdateCustomerManagedKey' */ operation?: JobOperationType; /** @@ -4085,6 +4175,96 @@ export interface OperationResultInfo { jobList?: string[]; } +/** + * Prepare DataMove Request + */ +export interface PrepareDataMoveRequest { + /** + * ARM Id of target vault + */ + targetResourceId: string; + /** + * Target Region + */ + targetRegion: string; + /** + * DataMove Level. Possible values include: 'Invalid', 'Vault', 'Container' + */ + dataMoveLevel: DataMoveLevel; + /** + * Source Container ArmIds + * This needs to be populated only if DataMoveLevel is set to container + */ + sourceContainerArmIds?: string[]; + /** + * Ignore the artifacts which are already moved. + */ + ignoreMoved?: boolean; +} + +/** + * Contains the possible cases for VaultStorageConfigOperationResultResponse. + */ +export type VaultStorageConfigOperationResultResponseUnion = VaultStorageConfigOperationResultResponse | PrepareDataMoveResponse; + +/** + * Operation result response for Vault Storage Config + */ +export interface VaultStorageConfigOperationResultResponse { + /** + * Polymorphic Discriminator + */ + objectType: "VaultStorageConfigOperationResultResponse"; +} + +/** + * Prepare DataMove Response + */ +export interface PrepareDataMoveResponse { + /** + * Polymorphic Discriminator + */ + objectType: "PrepareDataMoveResponse"; + /** + * Co-relationId for move operation + */ + correlationId?: string; + /** + * Source Vault Properties + */ + sourceVaultProperties?: { [propertyName: string]: string }; +} + +/** + * Trigger DataMove Request + */ +export interface TriggerDataMoveRequest { + /** + * ARM Id of source vault + */ + sourceResourceId: string; + /** + * Source Region + */ + sourceRegion: string; + /** + * DataMove Level. Possible values include: 'Invalid', 'Vault', 'Container' + */ + dataMoveLevel: DataMoveLevel; + /** + * Correlation Id + */ + correlationId: string; + /** + * Source Container ArmIds + */ + sourceContainerArmIds?: string[]; + /** + * Pause GC + */ + pauseGC?: boolean; +} + /** * This is the base class for operation result responses. */ @@ -4345,515 +4525,558 @@ export interface ValidateOperationsResponse { } /** - * Contains the possible cases for FeatureSupportRequest. + * Backup resource vault config details. */ -export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; +export interface BackupResourceVaultConfig { + /** + * 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; + /** + * Enabled or Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' + */ + enhancedSecurityState?: EnhancedSecurityState; + /** + * Soft Delete feature state. Possible values include: 'Invalid', 'Enabled', 'Disabled' + */ + softDeleteFeatureState?: SoftDeleteFeatureState; +} /** - * Base class for feature request + * Backup resource vault config details. */ -export interface FeatureSupportRequest { +export interface BackupResourceVaultConfigResource extends Resource { /** - * Polymorphic Discriminator + * BackupResourceVaultConfigResource properties */ - featureType: "FeatureSupportRequest"; + properties?: BackupResourceVaultConfig; } /** - * Azure backup goal feature specific request. + * Vault Job specific error information */ -export interface AzureBackupGoalFeatureSupportRequest { +export interface VaultJobErrorInfo { /** - * Polymorphic Discriminator + * Error code. */ - featureType: "AzureBackupGoals"; + errorCode?: number; + /** + * Localized error string. + */ + errorString?: string; + /** + * List of localized recommendations for above error code. + */ + recommendations?: string[]; } /** - * Contains the possible cases for ProtectionIntent. + * Vault Job for CMK - has CMK specific info. */ -export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; +export interface VaultJobExtendedInfo { + /** + * Job properties. + */ + propertyBag?: { [propertyName: string]: string }; +} /** - * Base class for backup ProtectionIntent. + * Vault level Job */ -export interface ProtectionIntent { +export interface VaultJob { /** * Polymorphic Discriminator */ - protectionIntentItemType: "ProtectionIntent"; + jobType: "VaultJob"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the entity on which the current job is executing. + */ + entityFriendlyName?: string; + /** + * Backup management type to execute the current job. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * ARM ID of the resource to be backed up. + * The operation name. */ - sourceResourceId?: string; + operation?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Job status. */ - itemId?: string; + status?: string; /** - * ID of the backup policy with which this item is backed up. + * The start time. */ - policyId?: string; + startTime?: Date; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * The end time. */ - protectionState?: ProtectionStatus; + endTime?: Date; + /** + * ActivityId of job. + */ + activityId?: string; + /** + * Time elapsed during the execution of this job. + */ + duration?: string; + /** + * Gets or sets the state/actions applicable on this job like cancel/retry. + */ + actionsInfo?: JobSupportedAction[]; + /** + * Error details on execution of this job. + */ + errorDetails?: VaultJobErrorInfo[]; + /** + * Additional information about the job. + */ + extendedInfo?: VaultJobExtendedInfo; } /** - * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. + * Contains the possible cases for ProtectionContainer. */ -export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; +export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; /** - * Azure Recovery Services Vault specific protection intent item. + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. */ -export interface AzureRecoveryServiceVaultProtectionIntent { +export interface ProtectionContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "RecoveryServiceVaultItem"; + containerType: "ProtectionContainer"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. 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. + * Status of registration of the container with the Recovery Services Vault. */ - policyId?: string; + registrationStatus?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Status of health of the container. */ - protectionState?: ProtectionStatus; + healthStatus?: string; } /** - * IaaS VM specific backup protection intent item. + * Contains the possible cases for DpmContainer. */ -export interface AzureResourceProtectionIntent { +export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; + +/** + * DPM workload-specific protection container. + */ +export interface DpmContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "AzureResourceItem"; + containerType: "DPMContainer"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * ARM ID of the resource to be backed up. + * Status of registration of the container with the Recovery Services Vault. */ - sourceResourceId?: string; + registrationStatus?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * Status of health of the container. */ - itemId?: string; + healthStatus?: string; /** - * ID of the backup policy with which this item is backed up. + * Specifies whether the container is re-registrable. */ - policyId?: string; + canReRegister?: boolean; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * ID of container. */ - protectionState?: ProtectionStatus; + containerId?: string; /** - * Friendly name of the VM represented by this backup item. + * Number of protected items in the BackupEngine */ - friendlyName?: string; -} - -/** - * AzureResource(IaaS VM) Specific feature support request - */ -export interface AzureVMResourceFeatureSupportRequest { + protectedItemCount?: number; /** - * Polymorphic Discriminator + * Backup engine Agent version */ - featureType: "AzureVMResourceBackup"; + dpmAgentVersion?: string; /** - * Size of the resource: VM size(A/D series etc) in case of IaasVM + * List of BackupEngines protecting the container */ - vmSize?: string; + dpmServers?: string[]; /** - * SKUs (Premium/Managed etc) in case of IaasVM + * To check if upgrade available */ - vmSku?: string; -} - -/** - * Response for feature support requests for Azure IaasVm - */ -export interface AzureVMResourceFeatureSupportResponse { + upgradeAvailable?: boolean; /** - * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', - * 'DefaultON', 'NotSupported' + * Protection status of the container. */ - supportStatus?: SupportStatus; + protectionStatus?: string; + /** + * Extended Info of the container. + */ + extendedInfo?: DPMContainerExtendedInfo; } /** - * Contains the possible cases for AzureWorkloadAutoProtectionIntent. - */ -export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; - -/** - * Azure Recovery Services Vault specific protection intent item. + * AzureBackupServer (DPMVenus) workload-specific protection container. */ -export interface AzureWorkloadAutoProtectionIntent { +export interface AzureBackupServerContainer { /** * Polymorphic Discriminator */ - protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; + containerType: "AzureBackupServerContainer"; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. 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 + * Status of registration of the container with the Recovery Services Vault. */ - itemId?: string; + registrationStatus?: string; /** - * ID of the backup policy with which this item is backed up. + * Status of health of the container. */ - policyId?: string; + healthStatus?: string; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Specifies whether the container is re-registrable. */ - protectionState?: ProtectionStatus; -} - -/** - * Azure Workload SQL Auto Protection intent item. - */ -export interface AzureWorkloadSQLAutoProtectionIntent { + canReRegister?: boolean; /** - * Polymorphic Discriminator + * ID of container. */ - protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; + containerId?: string; /** - * Type of backup management for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Number of protected items in the BackupEngine */ - backupManagementType?: BackupManagementType; + protectedItemCount?: number; /** - * ARM ID of the resource to be backed up. + * Backup engine Agent version */ - sourceResourceId?: string; + dpmAgentVersion?: string; /** - * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId + * List of BackupEngines protecting the container */ - itemId?: string; + dpmServers?: string[]; /** - * ID of the backup policy with which this item is backed up. + * To check if upgrade available */ - policyId?: string; + upgradeAvailable?: boolean; /** - * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Protection status of the container. */ - protectionState?: ProtectionStatus; + protectionStatus?: string; /** - * Workload item type of the item for which intent is to be set. Possible values include: - * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', - * 'SAPAseDatabase' + * Extended Info of the container. */ - workloadItemType?: WorkloadItemType; + extendedInfo?: DPMContainerExtendedInfo; } /** - * The name of usage. + * Contains the possible cases for BackupEngineBase. */ -export interface NameInfo { +export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; + +/** + * The base backup engine class. All workload specific backup engines derive from this class. + */ +export interface BackupEngineBase { /** - * Value of usage. + * Polymorphic Discriminator */ - value?: string; + backupEngineType: "BackupEngineBase"; /** - * Localized value of usage. + * Friendly name of the backup engine. */ - localizedValue?: string; -} - -/** - * Backup management usages of a vault. - */ -export interface BackupManagementUsage { + friendlyName?: string; /** - * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - unit?: UsagesUnit; + backupManagementType?: BackupManagementType; /** - * Quota period of usage. + * Registration status of the backup engine with the Recovery Services Vault. */ - quotaPeriod?: string; + registrationStatus?: string; /** - * Next reset time of usage. + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - nextResetTime?: Date; + backupEngineState?: string; /** - * Current value of usage. + * Backup status of the backup engine. */ - currentValue?: number; + healthStatus?: string; /** - * Limit of usage. + * Flag indicating if the backup engine be registered, once already registered. */ - limit?: number; + canReRegister?: boolean; /** - * Name of usage. + * ID of the backup engine. */ - name?: NameInfo; -} - -/** - * BackupStatus request. - */ -export interface BackupStatusRequest { + backupEngineId?: string; /** - * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * Backup engine version */ - resourceType?: DataSourceType; + dpmVersion?: string; /** - * Entire ARM resource id of the resource + * Backup agent version */ - resourceId?: string; + azureBackupAgentVersion?: string; /** - * Protectable Item Logical Name + * To check if backup agent upgrade available */ - poLogicalName?: string; + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; } /** - * BackupStatus response. + * Backup engine type when Azure Backup Server is used to manage the backups. */ -export interface BackupStatusResponse { +export interface AzureBackupServerEngine { /** - * Specifies whether the container is registered or not. Possible values include: 'Invalid', - * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' + * Polymorphic Discriminator */ - protectionStatus?: ProtectionStatus; + backupEngineType: "AzureBackupServerEngine"; /** - * Specifies the arm resource id of the vault + * Friendly name of the backup engine. */ - vaultId?: string; + friendlyName?: string; /** - * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - fabricName?: FabricName; + backupManagementType?: BackupManagementType; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;csname;vmname. + * Registration status of the backup engine with the Recovery Services Vault. */ - containerName?: string; + registrationStatus?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} */ - protectedItemName?: string; + backupEngineState?: string; /** - * ErrorCode in case of intent failed + * Backup status of the backup engine. */ - errorCode?: string; + healthStatus?: string; /** - * ErrorMessage in case of intent failed. + * Flag indicating if the backup engine be registered, once already registered. */ - errorMessage?: string; + canReRegister?: boolean; /** - * Specifies the policy name which is used for protection + * ID of the backup engine. */ - policyName?: string; + backupEngineId?: string; /** - * Container registration status + * Backup engine version */ - registrationStatus?: string; -} - -/** - * Query parameters to fetch backup summaries. - */ -export interface BMSBackupSummariesQueryObject { + dpmVersion?: string; /** - * Backup management type for this container. Possible values include: 'Invalid', - * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + * Backup agent version */ - 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 { + azureBackupAgentVersion?: 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' + * To check if backup agent upgrade available */ - resourceType?: DataSourceType; + isAzureBackupAgentUpgradeAvailable?: boolean; /** - * ARM Virtual Machine Id + * To check if backup engine upgrade available */ - resourceId?: string; + isDpmUpgradeAvailable?: boolean; /** - * ARM id of the Recovery Services Vault + * Extended info of the backupengine */ - vaultId?: string; + extendedInfo?: BackupEngineExtendedInfo; +} + +/** + * Contains the possible cases for BackupRequest. + */ +export type BackupRequestUnion = BackupRequest | AzureFileShareBackupRequest | AzureWorkloadBackupRequest | IaasVMBackupRequest; + +/** + * Base class for backup request. Workload-specific backup requests are derived from this class. + */ +export interface BackupRequest { /** - * Configuration of VM if any needs to be validated like OS type etc + * Polymorphic Discriminator */ - properties?: string; + objectType: "BackupRequest"; } /** - * Response contract for enable backup validation request + * AzureFileShare workload-specific backup request. */ -export interface PreValidateEnableBackupResponse { +export interface AzureFileShareBackupRequest { /** - * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' + * Polymorphic Discriminator */ - status?: ValidationStatus; + objectType: "AzureFileShareBackupRequest"; /** - * Response error code + * Backup copy will expire after the time specified (UTC). */ - errorCode?: string; + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Contains the possible cases for WorkloadProtectableItem. + */ +export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItem { /** - * Response error message + * Polymorphic Discriminator */ - errorMessage?: string; + protectableItemType: "WorkloadProtectableItem"; /** - * Recommended action for user + * Type of backup management to backup an item. */ - recommendation?: string; + backupManagementType?: string; /** - * Specifies the product specific container name. E.g. - * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - * for portal + * Type of workload for the backup management */ - containerName?: string; + workloadType?: string; /** - * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is - * required for portal + * Friendly name of the backup item. */ - protectedItemName?: string; + friendlyName?: string; + /** + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; } /** - * Filters to list protection intent. + * Protectable item for Azure Fileshare workloads. */ -export interface ProtectionIntentQueryObject { +export interface AzureFileShareProtectableItem { /** - * Backup management type for the backed up item. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + protectableItemType: "AzureFileShare"; /** - * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', - * 'SQLAvailabilityGroupContainer' + * Type of backup management to backup an item. */ - itemType?: IntentItemType; + backupManagementType?: string; /** - * Parent name of the intent + * Type of workload for the backup management */ - parentName?: string; + workloadType?: string; /** - * Item name of the intent + * Friendly name of the backup item. */ - itemName?: string; -} - -/** - * Base class for backup ProtectionIntent. - */ -export interface ProtectionIntentResource extends Resource { + friendlyName?: string; /** - * ProtectionIntentResource properties + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - properties?: ProtectionIntentUnion; + protectionState?: ProtectionStatus; + /** + * Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. + */ + parentContainerFabricId?: string; + /** + * Friendly name of container to which this protectable item belongs. + */ + parentContainerFriendlyName?: string; + /** + * File Share type XSync or XSMB. Possible values include: 'Invalid', 'XSMB', 'XSync' + */ + azureFileShareType?: AzureFileShareType; } /** - * Contains the possible cases for ProtectionContainer. + * Contains the possible cases for ILRRequest. */ -export type ProtectionContainerUnion = ProtectionContainer | AzureSqlContainer | AzureStorageContainer | AzureWorkloadContainerUnion | DpmContainerUnion | GenericContainer | IaaSVMContainerUnion | MabContainer; +export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; /** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. + * Parameters to Provision ILR API. */ -export interface ProtectionContainer { +export interface ILRRequest { /** * Polymorphic Discriminator */ - containerType: "ProtectionContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + objectType: "ILRRequest"; +} + +/** + * Update snapshot Uri with the correct friendly Name of the source Azure file share. + */ +export interface AzureFileShareProvisionILRRequest { /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + objectType: "AzureFileShareProvisionILRRequest"; /** - * Status of registration of the container with the Recovery Services Vault. + * Recovery point ID. */ - registrationStatus?: string; + recoveryPointId?: string; /** - * Status of health of the container. + * Source Storage account ARM Id */ - healthStatus?: string; + sourceResourceId?: string; } /** - * Contains the possible cases for DpmContainer. + * Contains the possible cases for IaaSVMContainer. */ -export type DpmContainerUnion = DpmContainer | AzureBackupServerContainer; +export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; /** - * DPM workload-specific protection container. + * IaaS VM workload-specific container. */ -export interface DpmContainer { +export interface IaaSVMContainer { /** * Polymorphic Discriminator */ - containerType: "DPMContainer"; + containerType: "IaaSVMContainer"; /** * Friendly name of the container. */ @@ -4873,47 +5096,27 @@ export interface DpmContainer { */ healthStatus?: string; /** - * Specifies whether the container is re-registrable. - */ - canReRegister?: boolean; - /** - * ID of container. - */ - containerId?: string; - /** - * Number of protected items in the BackupEngine - */ - protectedItemCount?: number; - /** - * Backup engine Agent version - */ - dpmAgentVersion?: string; - /** - * List of BackupEngines protecting the container - */ - dpmServers?: string[]; - /** - * To check if upgrade available + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - upgradeAvailable?: boolean; + virtualMachineId?: string; /** - * Protection status of the container. + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - protectionStatus?: string; + virtualMachineVersion?: string; /** - * Extended Info of the container. + * Resource group name of Recovery Services Vault. */ - extendedInfo?: DPMContainerExtendedInfo; + resourceGroup?: string; } /** - * AzureBackupServer (DPMVenus) workload-specific protection container. + * IaaS VM workload-specific backup item representing a classic virtual machine. */ -export interface AzureBackupServerContainer { +export interface AzureIaaSClassicComputeVMContainer { /** * Polymorphic Discriminator */ - containerType: "AzureBackupServerContainer"; + containerType: "Microsoft.ClassicCompute/virtualMachines"; /** * Friendly name of the container. */ @@ -4933,310 +5136,405 @@ export interface AzureBackupServerContainer { */ healthStatus?: string; /** - * Specifies whether the container is re-registrable. + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - canReRegister?: boolean; + virtualMachineId?: string; /** - * ID of container. + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - containerId?: string; + virtualMachineVersion?: string; /** - * Number of protected items in the BackupEngine + * Resource group name of Recovery Services Vault. */ - protectedItemCount?: number; + resourceGroup?: string; +} + +/** + * Contains the possible cases for IaaSVMProtectableItem. + */ +export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; + +/** + * IaaS VM workload-specific backup item. + */ +export interface IaaSVMProtectableItem { /** - * Backup engine Agent version + * Polymorphic Discriminator */ - dpmAgentVersion?: string; + protectableItemType: "IaaSVMProtectableItem"; /** - * List of BackupEngines protecting the container + * Type of backup management to backup an item. */ - dpmServers?: string[]; + backupManagementType?: string; /** - * To check if upgrade available + * Type of workload for the backup management */ - upgradeAvailable?: boolean; + workloadType?: string; /** - * Protection status of the container. + * Friendly name of the backup item. */ - protectionStatus?: string; + friendlyName?: string; /** - * Extended Info of the container. + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - extendedInfo?: DPMContainerExtendedInfo; + protectionState?: ProtectionStatus; + /** + * Fully qualified ARM ID of the virtual machine. + */ + virtualMachineId?: string; } /** - * Contains the possible cases for BackupEngineBase. + * IaaS VM workload-specific backup item representing the Classic Compute VM. */ -export type BackupEngineBaseUnion = BackupEngineBase | AzureBackupServerEngine | DpmBackupEngine; +export interface AzureIaaSClassicComputeVMProtectableItem { + /** + * Polymorphic Discriminator + */ + protectableItemType: "Microsoft.ClassicCompute/virtualMachines"; + /** + * Type of backup management to backup an item. + */ + backupManagementType?: string; + /** + * Type of workload for the backup management + */ + workloadType?: string; + /** + * Friendly name of the backup item. + */ + friendlyName?: string; + /** + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; + /** + * Fully qualified ARM ID of the virtual machine. + */ + virtualMachineId?: string; +} /** - * The base backup engine class. All workload specific backup engines derive from this class. + * IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. */ -export interface BackupEngineBase { +export interface AzureIaaSComputeVMContainer { /** * Polymorphic Discriminator */ - backupEngineType: "BackupEngineBase"; + containerType: "Microsoft.Compute/virtualMachines"; /** - * Friendly name of the backup engine. + * Friendly name of the container. */ friendlyName?: string; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Registration status of the backup engine with the Recovery Services Vault. + * Status of registration of the container with the Recovery Services Vault. */ registrationStatus?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + * Status of health of the container. */ - backupEngineState?: string; + healthStatus?: string; /** - * Backup status of the backup engine. + * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */ - healthStatus?: string; + virtualMachineId?: string; /** - * Flag indicating if the backup engine be registered, once already registered. + * Specifies whether the container represents a Classic or an Azure Resource Manager VM. */ - canReRegister?: boolean; + virtualMachineVersion?: string; /** - * ID of the backup engine. + * Resource group name of Recovery Services Vault. */ - backupEngineId?: string; + resourceGroup?: string; +} + +/** + * IaaS VM workload-specific backup item representing the Azure Resource Manager VM. + */ +export interface AzureIaaSComputeVMProtectableItem { /** - * Backup engine version + * Polymorphic Discriminator */ - dpmVersion?: string; + protectableItemType: "Microsoft.Compute/virtualMachines"; /** - * Backup agent version + * Type of backup management to backup an item. */ - azureBackupAgentVersion?: string; + backupManagementType?: string; /** - * To check if backup agent upgrade available + * Type of workload for the backup management */ - isAzureBackupAgentUpgradeAvailable?: boolean; + workloadType?: string; /** - * To check if backup engine upgrade available + * Friendly name of the backup item. */ - isDpmUpgradeAvailable?: boolean; + friendlyName?: string; /** - * Extended info of the backupengine + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - extendedInfo?: BackupEngineExtendedInfo; + protectionState?: ProtectionStatus; + /** + * Fully qualified ARM ID of the virtual machine. + */ + virtualMachineId?: string; } /** - * Backup engine type when Azure Backup Server is used to manage the backups. + * Contains the possible cases for AzureWorkloadContainer. */ -export interface AzureBackupServerEngine { +export type AzureWorkloadContainerUnion = AzureWorkloadContainer | AzureSQLAGWorkloadContainerProtectionContainer | AzureVMAppContainerProtectionContainer; + +/** + * Container for the workloads running inside Azure Compute or Classic Compute. + */ +export interface AzureWorkloadContainer { /** * Polymorphic Discriminator */ - backupEngineType: "AzureBackupServerEngine"; + containerType: "AzureWorkloadContainer"; /** - * Friendly name of the backup engine. + * Friendly name of the container. */ friendlyName?: string; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', + * Type of backup management for the container. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Registration status of the backup engine with the Recovery Services Vault. + * Status of registration of the container with the Recovery Services Vault. */ registrationStatus?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} - */ - backupEngineState?: string; - /** - * Backup status of the backup engine. + * Status of health of the container. */ healthStatus?: string; /** - * Flag indicating if the backup engine be registered, once already registered. - */ - canReRegister?: boolean; - /** - * ID of the backup engine. - */ - backupEngineId?: string; - /** - * Backup engine version + * ARM ID of the virtual machine represented by this Azure Workload Container */ - dpmVersion?: string; + sourceResourceId?: string; /** - * Backup agent version + * Time stamp when this container was updated. */ - azureBackupAgentVersion?: string; + lastUpdatedTime?: Date; /** - * To check if backup agent upgrade available + * Additional details of a workload container. */ - isAzureBackupAgentUpgradeAvailable?: boolean; + extendedInfo?: AzureWorkloadContainerExtendedInfo; /** - * To check if backup engine upgrade available + * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - isDpmUpgradeAvailable?: boolean; + workloadType?: WorkloadType; /** - * Extended info of the backupengine + * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' */ - extendedInfo?: BackupEngineExtendedInfo; + operationType?: OperationType; } /** - * Contains the possible cases for BackupRequest. - */ -export type BackupRequestUnion = BackupRequest | AzureFileShareBackupRequest | AzureWorkloadBackupRequest | IaasVMBackupRequest; - -/** - * Base class for backup request. Workload-specific backup requests are derived from this class. + * Container for SQL workloads under SQL Availability Group. */ -export interface BackupRequest { +export interface AzureSQLAGWorkloadContainerProtectionContainer { /** * Polymorphic Discriminator */ - objectType: "BackupRequest"; -} - -/** - * AzureFileShare workload-specific backup request. - */ -export interface AzureFileShareBackupRequest { + containerType: "SQLAGWorkLoadContainer"; /** - * Polymorphic Discriminator + * Friendly name of the container. */ - objectType: "AzureFileShareBackupRequest"; + friendlyName?: string; /** - * Backup copy will expire after the time specified (UTC). + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - recoveryPointExpiryTimeInUTC?: Date; -} - -/** - * Contains the possible cases for WorkloadProtectableItem. - */ -export type WorkloadProtectableItemUnion = WorkloadProtectableItem | AzureFileShareProtectableItem | AzureVmWorkloadProtectableItemUnion | IaaSVMProtectableItemUnion; - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadProtectableItem { + backupManagementType?: BackupManagementType; /** - * Polymorphic Discriminator + * Status of registration of the container with the Recovery Services Vault. */ - protectableItemType: "WorkloadProtectableItem"; + registrationStatus?: string; /** - * Type of backup management to backup an item. + * Status of health of the container. */ - backupManagementType?: string; + healthStatus?: string; /** - * Type of workload for the backup management + * ARM ID of the virtual machine represented by this Azure Workload Container */ - workloadType?: string; + sourceResourceId?: string; /** - * Friendly name of the backup item. + * Time stamp when this container was updated. */ - friendlyName?: string; + lastUpdatedTime?: Date; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Additional details of a workload container. */ - protectionState?: ProtectionStatus; + extendedInfo?: AzureWorkloadContainerExtendedInfo; + /** + * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' + */ + workloadType?: WorkloadType; + /** + * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' + */ + operationType?: OperationType; } /** - * Protectable item for Azure Fileshare workloads. + * Azure Sql workload-specific container. */ -export interface AzureFileShareProtectableItem { +export interface AzureSqlContainer { /** * Polymorphic Discriminator */ - protectableItemType: "AzureFileShare"; + containerType: "AzureSqlContainer"; /** - * Type of backup management to backup an item. + * Friendly name of the container. */ - backupManagementType?: string; + friendlyName?: string; /** - * Type of workload for the backup management + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - workloadType?: string; + backupManagementType?: BackupManagementType; /** - * Friendly name of the backup item. + * Status of registration of the container with the Recovery Services Vault. */ - friendlyName?: string; + registrationStatus?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Status of health of the container. */ - protectionState?: ProtectionStatus; + healthStatus?: string; +} + +/** + * Azure Storage Account workload-specific container. + */ +export interface AzureStorageContainer { /** - * Full Fabric ID of container to which this protectable item belongs. For example, ARM ID. + * Polymorphic Discriminator */ - parentContainerFabricId?: string; + containerType: "StorageContainer"; /** - * Friendly name of container to which this protectable item belongs. + * Friendly name of the container. */ - parentContainerFriendlyName?: string; + friendlyName?: string; /** - * File Share type XSync or XSMB. Possible values include: 'Invalid', 'XSMB', 'XSync' + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - azureFileShareType?: AzureFileShareType; + backupManagementType?: BackupManagementType; + /** + * Status of registration of the container with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Fully qualified ARM url. + */ + sourceResourceId?: string; + /** + * Storage account version. + */ + storageAccountVersion?: string; + /** + * Resource group name of Recovery Services Vault. + */ + resourceGroup?: string; + /** + * Number of items backed up in this container. + */ + protectedItemCount?: number; } /** - * Contains the possible cases for ILRRequest. + * Contains the possible cases for ProtectableContainer. */ -export type ILRRequestUnion = ILRRequest | AzureFileShareProvisionILRRequest | IaasVMILRRegistrationRequest; +export type ProtectableContainerUnion = ProtectableContainer | AzureStorageProtectableContainer | AzureVMAppContainerProtectableContainer; /** - * Parameters to Provision ILR API. + * Protectable Container Class. */ -export interface ILRRequest { +export interface ProtectableContainer { /** * Polymorphic Discriminator */ - objectType: "ILRRequest"; + protectableContainerType: "ProtectableContainer"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Fabric Id of the container such as ARM Id. + */ + containerId?: string; } /** - * Update snapshot Uri with the correct friendly Name of the source Azure file share. + * Azure Storage-specific protectable containers */ -export interface AzureFileShareProvisionILRRequest { +export interface AzureStorageProtectableContainer { /** * Polymorphic Discriminator */ - objectType: "AzureFileShareProvisionILRRequest"; + protectableContainerType: "StorageContainer"; /** - * Recovery point ID. + * Friendly name of the container. */ - recoveryPointId?: string; + friendlyName?: string; /** - * Source Storage account ARM Id + * Type of backup management for the container. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - sourceResourceId?: string; + backupManagementType?: BackupManagementType; + /** + * Status of health of the container. + */ + healthStatus?: string; + /** + * Fabric Id of the container such as ARM Id. + */ + containerId?: string; } /** - * Contains the possible cases for IaaSVMContainer. - */ -export type IaaSVMContainerUnion = IaaSVMContainer | AzureIaaSClassicComputeVMContainer | AzureIaaSComputeVMContainer; - -/** - * IaaS VM workload-specific container. + * Azure workload-specific container */ -export interface IaaSVMContainer { +export interface AzureVMAppContainerProtectableContainer { /** * Polymorphic Discriminator */ - containerType: "IaaSVMContainer"; + protectableContainerType: "VMAppContainer"; /** * Friendly name of the container. */ @@ -5247,36 +5545,24 @@ export interface IaaSVMContainer { * 'DefaultBackup' */ backupManagementType?: BackupManagementType; - /** - * Status of registration of the container with the Recovery Services Vault. - */ - registrationStatus?: string; /** * Status of health of the container. */ healthStatus?: string; /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. - */ - virtualMachineId?: string; - /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. - */ - virtualMachineVersion?: string; - /** - * Resource group name of Recovery Services Vault. + * Fabric Id of the container such as ARM Id. */ - resourceGroup?: string; + containerId?: string; } /** - * IaaS VM workload-specific backup item representing a classic virtual machine. + * Container for SQL workloads under Azure Virtual Machines. */ -export interface AzureIaaSClassicComputeVMContainer { +export interface AzureVMAppContainerProtectionContainer { /** * Polymorphic Discriminator */ - containerType: "Microsoft.ClassicCompute/virtualMachines"; + containerType: "VMAppContainer"; /** * Friendly name of the container. */ @@ -5296,32 +5582,43 @@ export interface AzureIaaSClassicComputeVMContainer { */ healthStatus?: string; /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + * ARM ID of the virtual machine represented by this Azure Workload Container */ - virtualMachineId?: string; + sourceResourceId?: string; /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. + * Time stamp when this container was updated. */ - virtualMachineVersion?: string; + lastUpdatedTime?: Date; /** - * Resource group name of Recovery Services Vault. + * Additional details of a workload container. */ - resourceGroup?: string; + extendedInfo?: AzureWorkloadContainerExtendedInfo; + /** + * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' + */ + workloadType?: WorkloadType; + /** + * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' + */ + operationType?: OperationType; } /** - * Contains the possible cases for IaaSVMProtectableItem. + * Contains the possible cases for WorkloadItem. */ -export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassicComputeVMProtectableItem | AzureIaaSComputeVMProtectableItem; +export type WorkloadItemUnion = WorkloadItem | AzureVmWorkloadItemUnion; /** - * IaaS VM workload-specific backup item. + * Base class for backup item. Workload-specific backup items are derived from this class. */ -export interface IaaSVMProtectableItem { +export interface WorkloadItem { /** * Polymorphic Discriminator */ - protectableItemType: "IaaSVMProtectableItem"; + workloadItemType: "WorkloadItem"; /** * Type of backup management to backup an item. */ @@ -5339,20 +5636,21 @@ export interface IaaSVMProtectableItem { * 'Protected', 'ProtectionFailed' */ protectionState?: ProtectionStatus; - /** - * Fully qualified ARM ID of the virtual machine. - */ - virtualMachineId?: string; } /** - * IaaS VM workload-specific backup item representing the Classic Compute VM. + * Contains the possible cases for AzureVmWorkloadItem. */ -export interface AzureIaaSClassicComputeVMProtectableItem { +export type AzureVmWorkloadItemUnion = AzureVmWorkloadItem | AzureVmWorkloadSAPAseDatabaseWorkloadItem | AzureVmWorkloadSAPAseSystemWorkloadItem | AzureVmWorkloadSAPHanaDatabaseWorkloadItem | AzureVmWorkloadSAPHanaSystemWorkloadItem | AzureVmWorkloadSQLDatabaseWorkloadItem | AzureVmWorkloadSQLInstanceWorkloadItem; + +/** + * Azure VM workload-specific workload item. + */ +export interface AzureVmWorkloadItem { /** * Polymorphic Discriminator */ - protectableItemType: "Microsoft.ClassicCompute/virtualMachines"; + workloadItemType: "AzureVmWorkloadItem"; /** * Type of backup management to backup an item. */ @@ -5371,59 +5669,59 @@ export interface AzureIaaSClassicComputeVMProtectableItem { */ protectionState?: ProtectionStatus; /** - * Fully qualified ARM ID of the virtual machine. - */ - virtualMachineId?: string; -} - -/** - * IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. - */ -export interface AzureIaaSComputeVMContainer { - /** - * Polymorphic Discriminator + * Name for instance or AG */ - containerType: "Microsoft.Compute/virtualMachines"; + parentName?: string; /** - * Friendly name of the container. + * Host/Cluster Name for instance or AG */ - friendlyName?: string; + serverName?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Indicates if workload item is auto-protectable */ - backupManagementType?: BackupManagementType; + isAutoProtectable?: boolean; /** - * Status of registration of the container with the Recovery Services Vault. + * For instance or AG, indicates number of DB's present */ - registrationStatus?: string; + subinquireditemcount?: number; /** - * Status of health of the container. + * For instance or AG, indicates number of DB's to be protected */ - healthStatus?: string; + subWorkloadItemCount?: number; +} + +/** + * Pre-backup validation for Azure VM Workload provider. + */ +export interface PreBackupValidation { /** - * Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. + * Status of protectable item, i.e. InProgress,Succeeded,Failed. Possible values include: + * 'Invalid', 'Success', 'Failed' */ - virtualMachineId?: string; + status?: InquiryStatus; /** - * Specifies whether the container represents a Classic or an Azure Resource Manager VM. + * Error code of protectable item */ - virtualMachineVersion?: string; + code?: string; /** - * Resource group name of Recovery Services Vault. + * Message corresponding to the error code for the protectable item */ - resourceGroup?: string; + message?: string; } /** - * IaaS VM workload-specific backup item representing the Azure Resource Manager VM. + * Contains the possible cases for AzureVmWorkloadProtectableItem. */ -export interface AzureIaaSComputeVMProtectableItem { +export type AzureVmWorkloadProtectableItemUnion = AzureVmWorkloadProtectableItem | AzureVmWorkloadSAPAseSystemProtectableItem | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; + +/** + * Azure VM workload-specific protectable item. + */ +export interface AzureVmWorkloadProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "Microsoft.Compute/virtualMachines"; + protectableItemType: "AzureVmWorkloadProtectableItem"; /** * Type of backup management to backup an item. */ @@ -5442,375 +5740,262 @@ export interface AzureIaaSComputeVMProtectableItem { */ protectionState?: ProtectionStatus; /** - * Fully qualified ARM ID of the virtual machine. + * Name for instance or AG */ - virtualMachineId?: string; -} - -/** - * Contains the possible cases for AzureWorkloadContainer. - */ -export type AzureWorkloadContainerUnion = AzureWorkloadContainer | AzureSQLAGWorkloadContainerProtectionContainer | AzureVMAppContainerProtectionContainer; - -/** - * Container for the workloads running inside Azure Compute or Classic Compute. - */ -export interface AzureWorkloadContainer { + parentName?: string; /** - * Polymorphic Discriminator - */ - containerType: "AzureWorkloadContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. 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. + * Parent Unique Name is added to provide the service formatted URI Name of the Parent + * Only Applicable for data bases where the parent would be either Instance or a SQL AG. */ - registrationStatus?: string; + parentUniqueName?: string; /** - * Status of health of the container. + * Host/Cluster Name for instance or AG */ - healthStatus?: string; + serverName?: string; /** - * ARM ID of the virtual machine represented by this Azure Workload Container + * Indicates if protectable item is auto-protectable */ - sourceResourceId?: string; + isAutoProtectable?: boolean; /** - * Time stamp when this container was updated. + * Indicates if protectable item is auto-protected */ - lastUpdatedTime?: Date; + isAutoProtected?: boolean; /** - * Additional details of a workload container. + * For instance or AG, indicates number of DB's present */ - extendedInfo?: AzureWorkloadContainerExtendedInfo; + subinquireditemcount?: number; /** - * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * For instance or AG, indicates number of DB's to be protected */ - workloadType?: WorkloadType; + subprotectableitemcount?: number; /** - * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' + * Pre-backup validation for protectable objects */ - operationType?: OperationType; + prebackupvalidation?: PreBackupValidation; } /** - * Container for SQL workloads under SQL Availability Group. + * Azure VM workload-specific workload item representing SAP ASE Database. */ -export interface AzureSQLAGWorkloadContainerProtectionContainer { +export interface AzureVmWorkloadSAPAseDatabaseWorkloadItem { /** * Polymorphic Discriminator */ - containerType: "SQLAGWorkLoadContainer"; + workloadItemType: "SAPAseDatabase"; /** - * Friendly name of the container. + * Type of backup management to backup an item. */ - friendlyName?: string; + backupManagementType?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Type of workload for the backup management */ - backupManagementType?: BackupManagementType; + workloadType?: string; /** - * Status of registration of the container with the Recovery Services Vault. + * Friendly name of the backup item. */ - registrationStatus?: string; + friendlyName?: string; /** - * Status of health of the container. + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - healthStatus?: string; + protectionState?: ProtectionStatus; /** - * ARM ID of the virtual machine represented by this Azure Workload Container + * Name for instance or AG */ - sourceResourceId?: string; + parentName?: string; /** - * Time stamp when this container was updated. + * Host/Cluster Name for instance or AG */ - lastUpdatedTime?: Date; + serverName?: string; /** - * Additional details of a workload container. + * Indicates if workload item is auto-protectable */ - extendedInfo?: AzureWorkloadContainerExtendedInfo; + isAutoProtectable?: boolean; /** - * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * For instance or AG, indicates number of DB's present */ - workloadType?: WorkloadType; + subinquireditemcount?: number; /** - * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' + * For instance or AG, indicates number of DB's to be protected */ - operationType?: OperationType; + subWorkloadItemCount?: number; } /** - * Azure Sql workload-specific container. + * Azure VM workload-specific protectable item representing SAP ASE System. */ -export interface AzureSqlContainer { +export interface AzureVmWorkloadSAPAseSystemProtectableItem { /** * Polymorphic Discriminator */ - containerType: "AzureSqlContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + protectableItemType: "SAPAseSystem"; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Type of backup management to backup an item. */ - backupManagementType?: BackupManagementType; + backupManagementType?: string; /** - * Status of registration of the container with the Recovery Services Vault. + * Type of workload for the backup management */ - registrationStatus?: string; + workloadType?: string; /** - * Status of health of the container. + * Friendly name of the backup item. */ - healthStatus?: string; -} - -/** - * Azure Storage Account workload-specific container. - */ -export interface AzureStorageContainer { + friendlyName?: string; /** - * Polymorphic Discriminator + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - containerType: "StorageContainer"; + protectionState?: ProtectionStatus; /** - * Friendly name of the container. + * Name for instance or AG */ - friendlyName?: string; + parentName?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Parent Unique Name is added to provide the service formatted URI Name of the Parent + * Only Applicable for data bases where the parent would be either Instance or a SQL AG. */ - backupManagementType?: BackupManagementType; + parentUniqueName?: string; /** - * Status of registration of the container with the Recovery Services Vault. + * Host/Cluster Name for instance or AG */ - registrationStatus?: string; + serverName?: string; /** - * Status of health of the container. + * Indicates if protectable item is auto-protectable */ - healthStatus?: string; + isAutoProtectable?: boolean; /** - * Fully qualified ARM url. + * Indicates if protectable item is auto-protected */ - sourceResourceId?: string; + isAutoProtected?: boolean; /** - * Storage account version. + * For instance or AG, indicates number of DB's present */ - storageAccountVersion?: string; + subinquireditemcount?: number; /** - * Resource group name of Recovery Services Vault. + * For instance or AG, indicates number of DB's to be protected */ - resourceGroup?: string; + subprotectableitemcount?: number; /** - * Number of items backed up in this container. + * Pre-backup validation for protectable objects */ - protectedItemCount?: number; + prebackupvalidation?: PreBackupValidation; } /** - * Contains the possible cases for ProtectableContainer. - */ -export type ProtectableContainerUnion = ProtectableContainer | AzureStorageProtectableContainer | AzureVMAppContainerProtectableContainer; - -/** - * Protectable Container Class. + * Azure VM workload-specific workload item representing SAP ASE System. */ -export interface ProtectableContainer { +export interface AzureVmWorkloadSAPAseSystemWorkloadItem { /** * Polymorphic Discriminator */ - protectableContainerType: "ProtectableContainer"; + workloadItemType: "SAPAseSystem"; /** - * Friendly name of the container. + * Type of backup management to backup an item. */ - friendlyName?: string; + backupManagementType?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Type of workload for the backup management */ - backupManagementType?: BackupManagementType; + workloadType?: string; /** - * Status of health of the container. + * Friendly name of the backup item. */ - healthStatus?: string; + friendlyName?: string; /** - * Fabric Id of the container such as ARM Id. + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - containerId?: string; -} - -/** - * Azure Storage-specific protectable containers - */ -export interface AzureStorageProtectableContainer { + protectionState?: ProtectionStatus; /** - * Polymorphic Discriminator + * Name for instance or AG */ - protectableContainerType: "StorageContainer"; + parentName?: string; /** - * Friendly name of the container. + * Host/Cluster Name for instance or AG */ - friendlyName?: string; + serverName?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Indicates if workload item is auto-protectable */ - backupManagementType?: BackupManagementType; + isAutoProtectable?: boolean; /** - * Status of health of the container. + * For instance or AG, indicates number of DB's present */ - healthStatus?: string; + subinquireditemcount?: number; /** - * Fabric Id of the container such as ARM Id. + * For instance or AG, indicates number of DB's to be protected */ - containerId?: string; + subWorkloadItemCount?: number; } /** - * Azure workload-specific container + * Azure VM workload-specific protectable item representing SAP HANA Database. */ -export interface AzureVMAppContainerProtectableContainer { +export interface AzureVmWorkloadSAPHanaDatabaseProtectableItem { /** * Polymorphic Discriminator */ - protectableContainerType: "VMAppContainer"; + protectableItemType: "SAPHanaDatabase"; /** - * Friendly name of the container. + * Type of backup management to backup an item. */ - friendlyName?: string; + backupManagementType?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Type of workload for the backup management */ - backupManagementType?: BackupManagementType; + workloadType?: string; /** - * Status of health of the container. + * Friendly name of the backup item. */ - healthStatus?: string; + friendlyName?: string; /** - * Fabric Id of the container such as ARM Id. + * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', + * 'Protected', 'ProtectionFailed' */ - containerId?: string; -} - -/** - * Container for SQL workloads under Azure Virtual Machines. - */ -export interface AzureVMAppContainerProtectionContainer { + protectionState?: ProtectionStatus; /** - * Polymorphic Discriminator + * Name for instance or AG */ - containerType: "VMAppContainer"; + parentName?: string; /** - * Friendly name of the container. - */ - friendlyName?: string; - /** - * Type of backup management for the container. 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. - */ - healthStatus?: string; - /** - * ARM ID of the virtual machine represented by this Azure Workload Container - */ - sourceResourceId?: string; - /** - * Time stamp when this container was updated. - */ - lastUpdatedTime?: Date; - /** - * Additional details of a workload container. - */ - extendedInfo?: AzureWorkloadContainerExtendedInfo; - /** - * Workload type for which registration was sent. Possible values include: 'Invalid', 'VM', - * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', - * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', - * 'SAPAseDatabase' + * Parent Unique Name is added to provide the service formatted URI Name of the Parent + * Only Applicable for data bases where the parent would be either Instance or a SQL AG. */ - workloadType?: WorkloadType; + parentUniqueName?: string; /** - * Re-Do Operation. Possible values include: 'Invalid', 'Register', 'Reregister' + * Host/Cluster Name for instance or AG */ - operationType?: OperationType; -} - -/** - * Contains the possible cases for WorkloadItem. - */ -export type WorkloadItemUnion = WorkloadItem | AzureVmWorkloadItemUnion; - -/** - * Base class for backup item. Workload-specific backup items are derived from this class. - */ -export interface WorkloadItem { + serverName?: string; /** - * Polymorphic Discriminator + * Indicates if protectable item is auto-protectable */ - workloadItemType: "WorkloadItem"; + isAutoProtectable?: boolean; /** - * Type of backup management to backup an item. + * Indicates if protectable item is auto-protected */ - backupManagementType?: string; + isAutoProtected?: boolean; /** - * Type of workload for the backup management + * For instance or AG, indicates number of DB's present */ - workloadType?: string; + subinquireditemcount?: number; /** - * Friendly name of the backup item. + * For instance or AG, indicates number of DB's to be protected */ - friendlyName?: string; + subprotectableitemcount?: number; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Pre-backup validation for protectable objects */ - protectionState?: ProtectionStatus; + prebackupvalidation?: PreBackupValidation; } /** - * Contains the possible cases for AzureVmWorkloadItem. - */ -export type AzureVmWorkloadItemUnion = AzureVmWorkloadItem | AzureVmWorkloadSAPAseDatabaseWorkloadItem | AzureVmWorkloadSAPAseSystemWorkloadItem | AzureVmWorkloadSAPHanaDatabaseWorkloadItem | AzureVmWorkloadSAPHanaSystemWorkloadItem | AzureVmWorkloadSQLDatabaseWorkloadItem | AzureVmWorkloadSQLInstanceWorkloadItem; - -/** - * Azure VM workload-specific workload item. + * Azure VM workload-specific workload item representing SAP HANA Database. */ -export interface AzureVmWorkloadItem { +export interface AzureVmWorkloadSAPHanaDatabaseWorkloadItem { /** * Polymorphic Discriminator */ - workloadItemType: "AzureVmWorkloadItem"; + workloadItemType: "SAPHanaDatabase"; /** * Type of backup management to backup an item. */ @@ -5851,37 +6036,13 @@ export interface AzureVmWorkloadItem { } /** - * Pre-backup validation for Azure VM Workload provider. - */ -export interface PreBackupValidation { - /** - * Status of protectable item, i.e. InProgress,Succeeded,Failed. Possible values include: - * 'Invalid', 'Success', 'Failed' - */ - status?: InquiryStatus; - /** - * Error code of protectable item - */ - code?: string; - /** - * Message corresponding to the error code for the protectable item - */ - message?: string; -} - -/** - * Contains the possible cases for AzureVmWorkloadProtectableItem. - */ -export type AzureVmWorkloadProtectableItemUnion = AzureVmWorkloadProtectableItem | AzureVmWorkloadSAPAseSystemProtectableItem | AzureVmWorkloadSAPHanaDatabaseProtectableItem | AzureVmWorkloadSAPHanaSystemProtectableItem | AzureVmWorkloadSQLAvailabilityGroupProtectableItem | AzureVmWorkloadSQLDatabaseProtectableItem | AzureVmWorkloadSQLInstanceProtectableItem; - -/** - * Azure VM workload-specific protectable item. + * Azure VM workload-specific protectable item representing SAP HANA System. */ -export interface AzureVmWorkloadProtectableItem { +export interface AzureVmWorkloadSAPHanaSystemProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "AzureVmWorkloadProtectableItem"; + protectableItemType: "SAPHanaSystem"; /** * Type of backup management to backup an item. */ @@ -5935,13 +6096,13 @@ export interface AzureVmWorkloadProtectableItem { } /** - * Azure VM workload-specific workload item representing SAP ASE Database. + * Azure VM workload-specific workload item representing SAP HANA System. */ -export interface AzureVmWorkloadSAPAseDatabaseWorkloadItem { +export interface AzureVmWorkloadSAPHanaSystemWorkloadItem { /** * Polymorphic Discriminator */ - workloadItemType: "SAPAseDatabase"; + workloadItemType: "SAPHanaSystem"; /** * Type of backup management to backup an item. */ @@ -5982,13 +6143,13 @@ export interface AzureVmWorkloadSAPAseDatabaseWorkloadItem { } /** - * Azure VM workload-specific protectable item representing SAP ASE System. + * Azure VM workload-specific protectable item representing SQL Availability Group. */ -export interface AzureVmWorkloadSAPAseSystemProtectableItem { +export interface AzureVmWorkloadSQLAvailabilityGroupProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "SAPAseSystem"; + protectableItemType: "SQLAvailabilityGroupContainer"; /** * Type of backup management to backup an item. */ @@ -6042,60 +6203,13 @@ export interface AzureVmWorkloadSAPAseSystemProtectableItem { } /** - * Azure VM workload-specific workload item representing SAP ASE System. - */ -export interface AzureVmWorkloadSAPAseSystemWorkloadItem { - /** - * Polymorphic Discriminator - */ - workloadItemType: "SAPAseSystem"; - /** - * Type of backup management to backup an item. - */ - backupManagementType?: string; - /** - * Type of workload for the backup management - */ - workloadType?: string; - /** - * Friendly name of the backup item. - */ - friendlyName?: string; - /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' - */ - protectionState?: ProtectionStatus; - /** - * Name for instance or AG - */ - parentName?: string; - /** - * Host/Cluster Name for instance or AG - */ - serverName?: string; - /** - * Indicates if workload item is auto-protectable - */ - isAutoProtectable?: boolean; - /** - * For instance or AG, indicates number of DB's present - */ - subinquireditemcount?: number; - /** - * For instance or AG, indicates number of DB's to be protected - */ - subWorkloadItemCount?: number; -} - -/** - * Azure VM workload-specific protectable item representing SAP HANA Database. + * Azure VM workload-specific protectable item representing SQL Database. */ -export interface AzureVmWorkloadSAPHanaDatabaseProtectableItem { +export interface AzureVmWorkloadSQLDatabaseProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "SAPHanaDatabase"; + protectableItemType: "SQLDataBase"; /** * Type of backup management to backup an item. */ @@ -6149,13 +6263,13 @@ export interface AzureVmWorkloadSAPHanaDatabaseProtectableItem { } /** - * Azure VM workload-specific workload item representing SAP HANA Database. + * Azure VM workload-specific workload item representing SQL Database. */ -export interface AzureVmWorkloadSAPHanaDatabaseWorkloadItem { +export interface AzureVmWorkloadSQLDatabaseWorkloadItem { /** * Polymorphic Discriminator */ - workloadItemType: "SAPHanaDatabase"; + workloadItemType: "SQLDataBase"; /** * Type of backup management to backup an item. */ @@ -6196,13 +6310,13 @@ export interface AzureVmWorkloadSAPHanaDatabaseWorkloadItem { } /** - * Azure VM workload-specific protectable item representing SAP HANA System. + * Azure VM workload-specific protectable item representing SQL Instance. */ -export interface AzureVmWorkloadSAPHanaSystemProtectableItem { +export interface AzureVmWorkloadSQLInstanceProtectableItem { /** * Polymorphic Discriminator */ - protectableItemType: "SAPHanaSystem"; + protectableItemType: "SQLInstance"; /** * Type of backup management to backup an item. */ @@ -6256,13 +6370,13 @@ export interface AzureVmWorkloadSAPHanaSystemProtectableItem { } /** - * Azure VM workload-specific workload item representing SAP HANA System. + * Azure VM workload-specific workload item representing SQL Instance. */ -export interface AzureVmWorkloadSAPHanaSystemWorkloadItem { +export interface AzureVmWorkloadSQLInstanceWorkloadItem { /** * Polymorphic Discriminator */ - workloadItemType: "SAPHanaSystem"; + workloadItemType: "SQLInstance"; /** * Type of backup management to backup an item. */ @@ -6300,1219 +6414,2400 @@ export interface AzureVmWorkloadSAPHanaSystemWorkloadItem { * For instance or AG, indicates number of DB's to be protected */ subWorkloadItemCount?: number; + /** + * Data Directory Paths for default directories + */ + dataDirectoryPaths?: SQLDataDirectory[]; } /** - * Azure VM workload-specific protectable item representing SQL Availability Group. + * AzureWorkload workload-specific backup request. */ -export interface AzureVmWorkloadSQLAvailabilityGroupProtectableItem { +export interface AzureWorkloadBackupRequest { /** * Polymorphic Discriminator */ - protectableItemType: "SQLAvailabilityGroupContainer"; + objectType: "AzureWorkloadBackupRequest"; /** - * Type of backup management to backup an item. + * Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: + * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull', 'Incremental' */ - backupManagementType?: string; + backupType?: BackupType; /** - * Type of workload for the backup management + * Bool for Compression setting */ - workloadType?: string; + enableCompression?: boolean; /** - * Friendly name of the backup item. + * Backup copy will expire after the time specified (UTC). */ - friendlyName?: string; + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Validation for inquired protectable items under a given container. + */ +export interface InquiryValidation { /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Status for the Inquiry Validation. */ - protectionState?: ProtectionStatus; + status?: string; /** - * Name for instance or AG + * Error Detail in case the status is non-success. */ - parentName?: string; + errorDetail?: ErrorDetail; /** - * Parent Unique Name is added to provide the service formatted URI Name of the Parent - * Only Applicable for data bases where the parent would be either Instance or a SQL AG. + * 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.** */ - parentUniqueName?: string; + readonly additionalDetail?: string; +} + +/** + * Details of an inquired protectable item. + */ +export interface WorkloadInquiryDetails { /** - * Host/Cluster Name for instance or AG + * Type of the Workload such as SQL, Oracle etc. */ - serverName?: string; + type?: string; /** - * Indicates if protectable item is auto-protectable + * Contains the protectable item Count inside this Container. */ - isAutoProtectable?: boolean; + itemCount?: number; /** - * Indicates if protectable item is auto-protected + * Inquiry validation such as permissions and other backup validations. */ - isAutoProtected?: boolean; + inquiryValidation?: InquiryValidation; +} + +/** + * Details about inquired protectable items under a given container. + */ +export interface InquiryInfo { /** - * For instance or AG, indicates number of DB's present + * Inquiry Status for this container such as + * InProgress | Failed | Succeeded */ - subinquireditemcount?: number; + status?: string; /** - * For instance or AG, indicates number of DB's to be protected + * Error Details if the Status is non-success. */ - subprotectableitemcount?: number; + errorDetail?: ErrorDetail; /** - * Pre-backup validation for protectable objects + * Inquiry Details which will have workload specific details. + * For e.g. - For SQL and oracle this will contain different details. */ - prebackupvalidation?: PreBackupValidation; + inquiryDetails?: WorkloadInquiryDetails[]; } /** - * Azure VM workload-specific protectable item representing SQL Database. + * This is used to represent the various nodes of the distributed container. */ -export interface AzureVmWorkloadSQLDatabaseProtectableItem { +export interface DistributedNodesInfo { /** - * Polymorphic Discriminator + * Name of the node under a distributed container. */ - protectableItemType: "SQLDataBase"; + nodeName?: string; /** - * Type of backup management to backup an item. + * Status of this Node. + * Failed | Succeeded */ - backupManagementType?: string; + status?: string; /** - * Type of workload for the backup management + * Error Details if the Status is non-success. */ - workloadType?: string; + errorDetail?: ErrorDetail; +} + +/** + * Extended information of the container. + */ +export interface AzureWorkloadContainerExtendedInfo { /** - * Friendly name of the backup item. + * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. + */ + hostServerName?: string; + /** + * Inquiry Status for the container. + */ + inquiryInfo?: InquiryInfo; + /** + * List of the nodes in case of distributed container. + */ + nodesList?: DistributedNodesInfo[]; +} + +/** + * Additional information on backup engine. + */ +export interface BackupEngineExtendedInfo { + /** + * Database name of backup engine. + */ + databaseName?: string; + /** + * Number of protected items in the backup engine. + */ + protectedItemsCount?: number; + /** + * Number of protected servers in the backup engine. + */ + protectedServersCount?: number; + /** + * Number of disks in the backup engine. + */ + diskCount?: number; + /** + * Disk space used in the backup engine. + */ + usedDiskSpace?: number; + /** + * Disk space currently available in the backup engine. + */ + availableDiskSpace?: number; + /** + * Last refresh time in the backup engine. + */ + refreshedAt?: Date; + /** + * Protected instances in the backup engine. + */ + azureProtectedInstances?: number; +} + +/** + * The base backup engine class. All workload specific backup engines derive from this class. + */ +export interface BackupEngineBaseResource extends Resource { + /** + * BackupEngineBaseResource properties + */ + properties?: BackupEngineBaseUnion; +} + +/** + * Base class for backup request. Workload-specific backup requests are derived from this class. + */ +export interface BackupRequestResource extends Resource { + /** + * BackupRequestResource properties + */ + properties?: BackupRequestUnion; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEngineQueryObject { + /** + * attribute to add extended info + */ + expand?: string; +} + +/** + * Query parameters to fetch list of backup engines. + */ +export interface BMSBackupEnginesQueryObject { + /** + * Backup management type for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Friendly name of the backup engine. */ friendlyName?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Attribute to add extended info. */ - protectionState?: ProtectionStatus; + expand?: string; +} + +/** + * The query filters that can be used with the list containers API. + */ +export interface BMSContainerQueryObject { /** - * Name for instance or AG + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - parentName?: string; + backupManagementType: BackupManagementType; /** - * Parent Unique Name is added to provide the service formatted URI Name of the Parent - * Only Applicable for data bases where the parent would be either Instance or a SQL AG. + * Type of container for filter. Possible values include: 'Invalid', 'Unknown', + * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', + * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', + * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' */ - parentUniqueName?: string; + containerType?: ContainerType; /** - * Host/Cluster Name for instance or AG + * Backup engine name */ - serverName?: string; + backupEngineName?: string; /** - * Indicates if protectable item is auto-protectable + * Fabric name for filter */ - isAutoProtectable?: boolean; + fabricName?: string; /** - * Indicates if protectable item is auto-protected + * Status of registration of this container with the Recovery Services Vault. */ - isAutoProtected?: boolean; + status?: string; /** - * For instance or AG, indicates number of DB's present + * Friendly name of this container. */ - subinquireditemcount?: number; + friendlyName?: string; +} + +/** + * The query filters that can be used with the inquire container API. + */ +export interface BMSContainersInquiryQueryObject { /** - * For instance or AG, indicates number of DB's to be protected + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - subprotectableitemcount?: number; + backupManagementType?: BackupManagementType; /** - * Pre-backup validation for protectable objects + * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', + * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', + * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - prebackupvalidation?: PreBackupValidation; + workloadType?: WorkloadType; } /** - * Azure VM workload-specific workload item representing SQL Database. + * Filters to list items that can be backed up. */ -export interface AzureVmWorkloadSQLDatabaseWorkloadItem { +export interface BMSPOQueryObject { /** - * Polymorphic Discriminator + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' */ - workloadItemType: "SQLDataBase"; + backupManagementType?: BackupManagementType; /** - * Type of backup management to backup an item. + * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', + * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', + * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' */ - backupManagementType?: string; + workloadType?: WorkloadType; /** - * Type of workload for the backup management + * Full name of the container whose Protectable Objects should be returned. */ - workloadType?: string; + containerName?: string; /** - * Friendly name of the backup item. + * Backup status query parameter. + */ + status?: string; + /** + * Friendly name. */ friendlyName?: string; +} + +/** + * The query filters that can be used with the refresh container API. + */ +export interface BMSRefreshContainersQueryObject { /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', + * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - protectionState?: ProtectionStatus; + backupManagementType?: BackupManagementType; +} + +/** + * Filters to list items that can be backed up. + */ +export interface BMSWorkloadItemQueryObject { + /** + * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', + * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', + * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' + */ + workloadItemType?: WorkloadItemType; + /** + * 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' + */ + protectionStatus?: ProtectionStatus; +} + +/** + * Client script details for file / folder restore. + */ +export interface ClientScriptForConnect { + /** + * File content of the client script for file / folder restore. + */ + scriptContent?: string; + /** + * File extension of the client script for file / folder restore - .ps1 , .sh , etc. + */ + scriptExtension?: string; + /** + * OS type - Windows, Linux etc. for which this file / folder restore client script works. + */ + osType?: string; + /** + * URL of Executable from where to source the content. If this is not null then ScriptContent + * should not be used + */ + url?: string; + /** + * Mandatory suffix that should be added to the name of script that is given for download to + * user. + * If its null or empty then , ignore it. + */ + scriptNameSuffix?: string; +} + +/** + * Container identity information + */ +export interface ContainerIdentityInfo { + /** + * Unique name of the container + */ + uniqueName?: string; + /** + * Protection container identity - AAD Tenant + */ + aadTenantId?: string; + /** + * Protection container identity - AAD Service Principal + */ + servicePrincipalClientId?: string; + /** + * Protection container identity - Audience + */ + audience?: string; +} + +/** + * Data Protection Manager (DPM) specific backup engine. + */ +export interface DpmBackupEngine { + /** + * Polymorphic Discriminator + */ + backupEngineType: "DpmBackupEngine"; + /** + * Friendly name of the backup engine. + */ + friendlyName?: string; + /** + * Type of backup management for the backup engine. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' + */ + backupManagementType?: BackupManagementType; + /** + * Registration status of the backup engine with the Recovery Services Vault. + */ + registrationStatus?: string; + /** + * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + */ + backupEngineState?: string; + /** + * Backup status of the backup engine. + */ + healthStatus?: string; + /** + * Flag indicating if the backup engine be registered, once already registered. + */ + canReRegister?: boolean; + /** + * ID of the backup engine. + */ + backupEngineId?: string; + /** + * Backup engine version + */ + dpmVersion?: string; + /** + * Backup agent version + */ + azureBackupAgentVersion?: string; + /** + * To check if backup agent upgrade available + */ + isAzureBackupAgentUpgradeAvailable?: boolean; + /** + * To check if backup engine upgrade available + */ + isDpmUpgradeAvailable?: boolean; + /** + * Extended info of the backupengine + */ + extendedInfo?: BackupEngineExtendedInfo; +} + +/** + * Additional information of the DPMContainer. + */ +export interface DPMContainerExtendedInfo { + /** + * Last refresh time of the DPMContainer. + */ + lastRefreshedAt?: Date; +} + +/** + * Container extended information + */ +export interface GenericContainerExtendedInfo { + /** + * Public key of container cert + */ + rawCertData?: string; + /** + * Container identity information + */ + containerIdentityInfo?: ContainerIdentityInfo; + /** + * Azure Backup Service Endpoints for the container + */ + serviceEndpoints?: { [propertyName: string]: string }; +} + +/** + * Base class for generic container of backup items + */ +export interface GenericContainer { + /** + * Polymorphic Discriminator + */ + containerType: "GenericContainer"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. 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. + */ + healthStatus?: string; + /** + * Name of the container's fabric + */ + fabricName?: string; + /** + * Extended information (not returned in List container API calls) + */ + extendedInformation?: GenericContainerExtendedInfo; +} + +/** + * IaaS VM workload-specific backup request. + */ +export interface IaasVMBackupRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMBackupRequest"; + /** + * Backup copy will expire after the time specified (UTC). + */ + recoveryPointExpiryTimeInUTC?: Date; +} + +/** + * Restore files/folders from a backup copy of IaaS VM. + */ +export interface IaasVMILRRegistrationRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMILRRegistrationRequest"; + /** + * ID of the IaaS VM backup copy from where the files/folders have to be restored. + */ + recoveryPointId?: string; + /** + * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + */ + virtualMachineId?: string; + /** + * iSCSI initiator name. + */ + initiatorName?: string; + /** + * Whether to renew existing registration with the iSCSI server. + */ + renewExistingRegistration?: boolean; +} + +/** + * Parameters to Provision ILR API. + */ +export interface ILRRequestResource extends Resource { + /** + * ILRRequestResource properties + */ + properties?: ILRRequestUnion; +} + +/** + * Target details for file / folder restore. + */ +export interface InstantItemRecoveryTarget { + /** + * List of client scripts. + */ + clientScripts?: ClientScriptForConnect[]; +} + +/** + * Additional information of the container. + */ +export interface MabContainerExtendedInfo { + /** + * Time stamp when this container was refreshed. + */ + lastRefreshedAt?: Date; + /** + * Type of backup items associated with this container. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' + */ + backupItemType?: BackupItemType; + /** + * List of backup items associated with this container. + */ + backupItems?: string[]; + /** + * Backup policy associated with this container. + */ + policyName?: string; + /** + * Latest backup status of this container. + */ + lastBackupStatus?: string; +} + +/** + * MAB workload-specific Health Details. + */ +export interface MABContainerHealthDetails { + /** + * Health Code + */ + code?: number; + /** + * Health Title + */ + title?: string; + /** + * Health Message + */ + message?: string; + /** + * Health Recommended Actions + */ + recommendations?: string[]; +} + +/** + * Container with items backed up using MAB backup engine. + */ +export interface MabContainer { + /** + * Polymorphic Discriminator + */ + containerType: "Windows"; + /** + * Friendly name of the container. + */ + friendlyName?: string; + /** + * Type of backup management for the container. 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. + */ + healthStatus?: string; + /** + * Can the container be registered one more time. + */ + canReRegister?: boolean; + /** + * ContainerID represents the container. + */ + containerId?: number; + /** + * Number of items backed up in this container. + */ + protectedItemCount?: number; + /** + * Agent version of this container. + */ + agentVersion?: string; + /** + * Additional information for this container + */ + extendedInfo?: MabContainerExtendedInfo; + /** + * Health details on this mab container. + */ + mabContainerHealthDetails?: MABContainerHealthDetails[]; + /** + * Health state of mab container. + */ + containerHealthState?: string; +} + +/** + * Error information associated with operation status call. + */ +export interface OperationStatusError { + /** + * Error code of the operation failure. + */ + code?: string; + /** + * Error message displayed if the operation failure. + */ + 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 { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusExtendedInfo"; +} + +/** + * Operation status. + */ +export interface OperationStatus { + /** + * ID of the operation. + */ + id?: string; + /** + * Name of the operation. + */ + name?: string; + /** + * Operation status. Possible values include: 'Invalid', 'InProgress', 'Succeeded', 'Failed', + * 'Canceled' + */ + status?: OperationStatusValues; + /** + * Operation start time. Format: ISO-8601. + */ + startTime?: Date; + /** + * Operation end time. Format: ISO-8601. + */ + endTime?: Date; + /** + * Error information related to this operation. + */ + error?: OperationStatusError; + /** + * Additional information associated with this operation. + */ + properties?: OperationStatusExtendedInfoUnion; +} + +/** + * Operation status job extended info. + */ +export interface OperationStatusJobExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusJobExtendedInfo"; + /** + * ID of the job created for this protected item. + */ + jobId?: string; +} + +/** + * Operation status extended info for list of jobs. + */ +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 }; +} + +/** + * Operation status extended info for ILR provision action. + */ +export interface OperationStatusProvisionILRExtendedInfo { + /** + * Polymorphic Discriminator + */ + objectType: "OperationStatusProvisionILRExtendedInfo"; + /** + * Target details for file / folder restore. + */ + recoveryTarget?: InstantItemRecoveryTarget; +} + +/** + * Protectable Container Class. + */ +export interface ProtectableContainerResource extends Resource { + /** + * ProtectableContainerResource properties + */ + properties?: ProtectableContainerUnion; +} + +/** + * Base class for container with backup items. Containers with specific workloads are derived from + * this class. + */ +export interface ProtectionContainerResource extends Resource { + /** + * ProtectionContainerResource properties + */ + properties?: ProtectionContainerUnion; +} + +/** + * The token information details. + */ +export interface TokenInformation { + /** + * Token value. + */ + token?: string; + /** + * Expiry time of token. + */ + expiryTimeInUtcTicks?: number; + /** + * Security PIN + */ + securityPIN?: string; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadItemResource extends Resource { + /** + * WorkloadItemResource properties + */ + properties?: WorkloadItemUnion; +} + +/** + * Base class for backup item. Workload-specific backup items are derived from this class. + */ +export interface WorkloadProtectableItemResource extends Resource { + /** + * WorkloadProtectableItemResource properties + */ + properties?: WorkloadProtectableItemUnion; +} + +/** + * RP Rehydration Info + */ +export interface RecoveryPointRehydrationInfo { + /** + * How long the rehydrated RP should be kept + * Should be ISO8601 Duration format e.g. "P7D" + */ + rehydrationRetentionDuration?: string; + /** + * Rehydration Priority. Possible values include: 'Standard', 'High' + */ + rehydrationPriority?: RehydrationPriority; +} + +/** + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "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; +} + +/** + * AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSAPHanaRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point. + */ +export interface AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * PointInTime value + */ + pointInTime?: Date; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * AzureWorkload SQL-specific restore with integrated rehydration of recovery point + */ +export interface AzureWorkloadSQLRestoreWithRehydrateRequest { + /** + * Polymorphic Discriminator + */ + objectType: "AzureWorkloadSQLRestoreWithRehydrateRequest"; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM on which workload that was running is being recovered. + */ + sourceResourceId?: string; + /** + * Workload specific property bag. + */ + propertyBag?: { [propertyName: string]: string }; + /** + * Details of target database + */ + targetInfo?: TargetRestoreInfo; + /** + * Defines whether the current recovery mode is file restore or database restore. Possible values + * include: 'Invalid', 'FileRecovery', 'WorkloadRecovery' + */ + recoveryMode?: RecoveryMode; + /** + * This is the complete ARM Id of the target VM + * For e.g. + * /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + */ + targetVirtualMachineId?: string; + /** + * Default option set to true. If this is set to false, alternate data directory must be provided + */ + shouldUseAlternateTargetLocation?: boolean; + /** + * SQL specific property where user can chose to set no-recovery when restore operation is tried + */ + isNonRecoverable?: boolean; + /** + * Data directory details + */ + alternateDirectoryPaths?: SQLDataDirectoryMapping[]; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * IaaS VM workload-specific restore with integrated rehydration of recovery point. + */ +export interface IaasVMRestoreWithRehydrationRequest { + /** + * Polymorphic Discriminator + */ + objectType: "IaasVMRestoreWithRehydrationRequest"; + /** + * ID of the backup copy to be recovered. + */ + recoveryPointId?: string; + /** + * Type of this recovery. Possible values include: 'Invalid', 'OriginalLocation', + * 'AlternateLocation', 'RestoreDisks', 'Offline' + */ + recoveryType?: RecoveryType; + /** + * Fully qualified ARM ID of the VM which is being recovered. + */ + sourceResourceId?: string; + /** + * 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} + */ + targetVirtualMachineId?: string; + /** + * This is the ARM Id of the resource group that you want to create for this Virtual machine and + * other artifacts. + * For e.g. /subscriptions/{subId}/resourcegroups/{rg} + */ + targetResourceGroupId?: string; + /** + * Fully qualified ARM ID of the storage account to which the VM has to be restored. + */ + storageAccountId?: 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. + */ + virtualNetworkId?: 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. + */ + subnetId?: string; + /** + * Fully qualified ARM ID of the domain name to be associated to the VM being restored. This + * applies only to Classic + * Virtual Machines. + */ + targetDomainNameId?: string; + /** + * Region in which the virtual machine is restored. + */ + region?: string; + /** + * Affinity group associated to VM to be restored. Used only for Classic Compute Virtual + * Machines. + */ + affinityGroup?: string; + /** + * Should a new cloud service be created while restoring the VM. If this is false, VM will be + * restored to the same + * cloud service as it was at the time of backup. + */ + createNewCloudService?: boolean; + /** + * Original Storage Account Option + */ + originalStorageAccountOption?: boolean; + /** + * Details needed if the VM was encrypted at the time of backup. + */ + encryptionDetails?: EncryptionDetails; + /** + * List of Disk LUNs for partial restore + */ + restoreDiskLunList?: number[]; + /** + * Flag to denote of an Unmanaged disk VM should be restored with Managed disks. + */ + 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[]; + /** + * RP Rehydration Info + */ + recoveryPointRehydrationInfo?: RecoveryPointRehydrationInfo; +} + +/** + * An interface representing MoveRPAcrossTiersRequest. + */ +export interface MoveRPAcrossTiersRequest { + /** + * Gets the class type. + */ + objectType?: string; + /** + * Source tier from where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' + */ + sourceTierType?: RecoveryPointTierType; + /** + * Target tier where RP needs to be moved. Possible values include: 'Invalid', 'InstantRP', + * 'HardenedRP', 'ArchivedRP' + */ + targetTierType?: RecoveryPointTierType; +} + +/** + * ListRecoveryPointsRecommendedForMoveRequest Request + */ +export interface ListRecoveryPointsRecommendedForMoveRequest { + /** + * Gets the class type. + */ + objectType?: string; + /** + * List of Recovery Points excluded from Move + */ + excludedRPList?: string[]; +} + +/** + * The name of usage. + */ +export interface NameInfo { + /** + * Value of usage. + */ + value?: string; + /** + * Localized value of usage. + */ + localizedValue?: string; +} + +/** + * Backup management usages of a vault. + */ +export interface BackupManagementUsage { + /** + * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond' + */ + unit?: UsagesUnit; + /** + * Quota period of usage. + */ + quotaPeriod?: string; + /** + * Next reset time of usage. + */ + nextResetTime?: Date; + /** + * Current value of usage. + */ + currentValue?: number; + /** + * Limit of usage. + */ + limit?: number; + /** + * Name of usage. + */ + name?: NameInfo; +} + +/** + * Query parameters to fetch backup summaries. + */ +export interface BMSBackupSummariesQueryObject { + /** + * Backup management type for this container. Possible values include: 'Invalid', + * 'BackupProtectedItemCountSummary', 'BackupProtectionContainerCountSummary' + */ + type?: Type; +} + +/** + * An interface representing AADProperties. + */ +export interface AADProperties { + servicePrincipalClientId?: string; + tenantId?: string; + authority?: string; + audience?: string; + servicePrincipalObjectId?: string; +} + +/** + * An interface representing AADPropertiesResource. + */ +export interface AADPropertiesResource extends Resource { + /** + * AADPropertiesResource properties + */ + properties?: AADProperties; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfig { + /** + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' + */ + storageModelType?: StorageType; /** - * Name for instance or AG + * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant', + * 'ZoneRedundant', 'ReadAccessGeoZoneRedundant' */ - parentName?: string; + storageType?: StorageType; /** - * Host/Cluster Name for instance or AG + * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is + * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' */ - serverName?: string; + storageTypeState?: StorageTypeState; /** - * Indicates if workload item is auto-protectable + * Opt in details of Cross Region Restore feature. */ - isAutoProtectable?: boolean; + crossRegionRestoreFlag?: boolean; +} + +/** + * Request object for fetching CRR jobs. + */ +export interface CrrJobRequest { /** - * For instance or AG, indicates number of DB's present + * Entire ARM resource id of the resource */ - subinquireditemcount?: number; + resourceId?: string; /** - * For instance or AG, indicates number of DB's to be protected + * Job Name of the job to be fetched */ - subWorkloadItemCount?: number; + jobName?: string; } /** - * Azure VM workload-specific protectable item representing SQL Instance. + * Request object for fetching CRR jobs. */ -export interface AzureVmWorkloadSQLInstanceProtectableItem { +export interface CrrJobRequestResource extends Resource { /** - * Polymorphic Discriminator + * CrrJobRequestResource properties */ - protectableItemType: "SQLInstance"; + properties?: CrrJobRequest; +} + +/** + * The resource storage details. + */ +export interface BackupResourceConfigResource extends Resource { /** - * Type of backup management to backup an item. + * BackupResourceConfigResource properties */ - backupManagementType?: string; + properties?: BackupResourceConfig; +} + +/** + * Contains the possible cases for CrrAccessToken. + */ +export type CrrAccessTokenUnion = CrrAccessToken | WorkloadCrrAccessToken; + +/** + * An interface representing CrrAccessToken. + */ +export interface CrrAccessToken { /** - * Type of workload for the backup management + * Polymorphic Discriminator */ - workloadType?: string; + objectType: "CrrAccessToken"; /** - * Friendly name of the backup item. + * Access token used for authentication */ - friendlyName?: string; + accessTokenString?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Subscription Id of the source vault */ - protectionState?: ProtectionStatus; + subscriptionId?: string; /** - * Name for instance or AG + * Resource Group name of the source vault */ - parentName?: string; + resourceGroupName?: string; /** - * Parent Unique Name is added to provide the service formatted URI Name of the Parent - * Only Applicable for data bases where the parent would be either Instance or a SQL AG. + * Resource Name of the source vault */ - parentUniqueName?: string; + resourceName?: string; /** - * Host/Cluster Name for instance or AG + * Resource Id of the source vault */ - serverName?: string; + resourceId?: string; /** - * Indicates if protectable item is auto-protectable + * Protected item container id */ - isAutoProtectable?: boolean; + protectionContainerId?: number; /** - * Indicates if protectable item is auto-protected + * Recovery Point Id */ - isAutoProtected?: boolean; + recoveryPointId?: string; /** - * For instance or AG, indicates number of DB's present + * Recovery Point Time */ - subinquireditemcount?: number; + recoveryPointTime?: string; /** - * For instance or AG, indicates number of DB's to be protected + * Container Unique name */ - subprotectableitemcount?: number; + containerName?: string; /** - * Pre-backup validation for protectable objects + * Container Type */ - prebackupvalidation?: PreBackupValidation; -} - -/** - * Azure VM workload-specific workload item representing SQL Instance. - */ -export interface AzureVmWorkloadSQLInstanceWorkloadItem { + containerType?: string; /** - * Polymorphic Discriminator + * Backup Management Type */ - workloadItemType: "SQLInstance"; + backupManagementType?: string; /** - * Type of backup management to backup an item. + * Datasource Type */ - backupManagementType?: string; + datasourceType?: string; /** - * Type of workload for the backup management + * Datasource Friendly Name */ - workloadType?: string; + datasourceName?: string; /** - * Friendly name of the backup item. + * Datasource Id */ - friendlyName?: string; + datasourceId?: string; /** - * State of the back up item. Possible values include: 'Invalid', 'NotProtected', 'Protecting', - * 'Protected', 'ProtectionFailed' + * Datasource Container Unique Name */ - protectionState?: ProtectionStatus; + datasourceContainerName?: string; /** - * Name for instance or AG + * CoordinatorServiceStampId to be used by BCM in restore call */ - parentName?: string; + coordinatorServiceStampId?: string; /** - * Host/Cluster Name for instance or AG + * CoordinatorServiceStampUri to be used by BCM in restore call */ - serverName?: string; + coordinatorServiceStampUri?: string; /** - * Indicates if workload item is auto-protectable + * ProtectionServiceStampId to be used by BCM in restore call */ - isAutoProtectable?: boolean; + protectionServiceStampId?: string; /** - * For instance or AG, indicates number of DB's present + * ProtectionServiceStampUri to be used by BCM in restore call */ - subinquireditemcount?: number; + protectionServiceStampUri?: string; /** - * For instance or AG, indicates number of DB's to be protected + * Extended Information about the token like FileSpec etc. */ - subWorkloadItemCount?: number; + tokenExtendedInformation?: string; /** - * Data Directory Paths for default directories + * Recovery point Tier Information */ - dataDirectoryPaths?: SQLDataDirectory[]; -} - -/** - * AzureWorkload workload-specific backup request. - */ -export interface AzureWorkloadBackupRequest { + rpTierInformation?: { [propertyName: string]: string }; /** - * Polymorphic Discriminator + * Recovery point information: Original SA option */ - objectType: "AzureWorkloadBackupRequest"; + rpOriginalSAOption?: boolean; /** - * Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible values include: - * 'Invalid', 'Full', 'Differential', 'Log', 'CopyOnlyFull' + * Recovery point information: Managed virtual machine */ - backupType?: BackupType; + rpIsManagedVirtualMachine?: boolean; /** - * Bool for Compression setting + * Recovery point information: VM size description */ - enableCompression?: boolean; + rpVMSizeDescription?: string; /** - * Backup copy will expire after the time specified (UTC). + * Active region name of BMS Stamp */ - recoveryPointExpiryTimeInUTC?: Date; + bMSActiveRegion?: string; } /** - * Validation for inquired protectable items under a given container. + * An interface representing CrossRegionRestoreRequest. */ -export interface InquiryValidation { - /** - * Status for the Inquiry Validation. - */ - status?: string; +export interface CrossRegionRestoreRequest { /** - * Error Detail in case the status is non-success. + * Access details for cross region restore */ - errorDetail?: ErrorDetail; + crossRegionRestoreAccessDetails?: CrrAccessTokenUnion; /** - * 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.** + * Request object for triggering restore */ - readonly additionalDetail?: string; + restoreRequest?: RestoreRequestUnion; } /** - * Details of an inquired protectable item. + * An interface representing CrossRegionRestoreRequestResource. */ -export interface WorkloadInquiryDetails { +export interface CrossRegionRestoreRequestResource extends Resource { /** - * Type of the Workload such as SQL, Oracle etc. - */ - type?: string; - /** - * Contains the protectable item Count inside this Container. - */ - itemCount?: number; - /** - * Inquiry validation such as permissions and other backup validations. + * CrossRegionRestoreRequestResource properties */ - inquiryValidation?: InquiryValidation; + properties?: CrossRegionRestoreRequest; } /** - * Details about inquired protectable items under a given container. + * An interface representing CrrAccessTokenResource. */ -export interface InquiryInfo { - /** - * Inquiry Status for this container such as - * InProgress | Failed | Succeeded - */ - status?: string; - /** - * Error Details if the Status is non-success. - */ - errorDetail?: ErrorDetail; +export interface CrrAccessTokenResource extends Resource { /** - * Inquiry Details which will have workload specific details. - * For e.g. - For SQL and oracle this will contain different details. + * CrrAccessTokenResource properties */ - inquiryDetails?: WorkloadInquiryDetails[]; + properties?: CrrAccessTokenUnion; } /** - * This is used to represent the various nodes of the distributed container. + * Filters to list backup items. */ -export interface DistributedNodesInfo { - /** - * Name of the node under a distributed container. - */ - nodeName?: string; - /** - * Status of this Node. - * Failed | Succeeded - */ - status?: string; +export interface BMSAADPropertiesQueryObject { /** - * Error Details if the Status is non-success. + * Backup management type for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - errorDetail?: ErrorDetail; + backupManagementType?: BackupManagementType; } /** - * Extended information of the container. + * Operation status extended info for Updated Recovery Point. */ -export interface AzureWorkloadContainerExtendedInfo { +export interface OperationStatusRecoveryPointExtendedInfo { /** - * Host Os Name in case of Stand Alone and Cluster Name in case of distributed container. + * Polymorphic Discriminator */ - hostServerName?: string; + objectType: "OperationStatusRecoveryPointExtendedInfo"; /** - * Inquiry Status for the container. + * Recovery Point info with updated source snapshot URI */ - inquiryInfo?: InquiryInfo; + updatedRecoveryPoint?: RecoveryPointUnion; /** - * List of the nodes in case of distributed container. + * In case the share is in soft-deleted state, populate this field with deleted backup item */ - nodesList?: DistributedNodesInfo[]; + deletedBackupItemVersion?: string; } /** - * Additional information on backup engine. + * An interface representing WorkloadCrrAccessToken. */ -export interface BackupEngineExtendedInfo { - /** - * Database name of backup engine. - */ - databaseName?: string; - /** - * Number of protected items in the backup engine. - */ - protectedItemsCount?: number; +export interface WorkloadCrrAccessToken { /** - * Number of protected servers in the backup engine. + * Polymorphic Discriminator */ - protectedServersCount?: number; + objectType: "WorkloadCrrAccessToken"; /** - * Number of disks in the backup engine. + * Access token used for authentication */ - diskCount?: number; + accessTokenString?: string; /** - * Disk space used in the backup engine. + * Subscription Id of the source vault */ - usedDiskSpace?: number; + subscriptionId?: string; /** - * Disk space currently available in the backup engine. + * Resource Group name of the source vault */ - availableDiskSpace?: number; + resourceGroupName?: string; /** - * Last refresh time in the backup engine. + * Resource Name of the source vault */ - refreshedAt?: Date; + resourceName?: string; /** - * Protected instances in the backup engine. + * Resource Id of the source vault */ - azureProtectedInstances?: number; -} - -/** - * The base backup engine class. All workload specific backup engines derive from this class. - */ -export interface BackupEngineBaseResource extends Resource { + resourceId?: string; /** - * BackupEngineBaseResource properties + * Protected item container id */ - properties?: BackupEngineBaseUnion; -} - -/** - * Base class for backup request. Workload-specific backup requests are derived from this class. - */ -export interface BackupRequestResource extends Resource { + protectionContainerId?: number; /** - * BackupRequestResource properties + * Recovery Point Id */ - properties?: BackupRequestUnion; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfig { + recoveryPointId?: string; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Recovery Point Time */ - storageModelType?: StorageType; + recoveryPointTime?: string; /** - * Storage type. Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' + * Container Unique name */ - storageType?: StorageType; + containerName?: string; /** - * Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' + * Container Type */ - storageTypeState?: StorageTypeState; -} - -/** - * The resource storage details. - */ -export interface BackupResourceConfigResource extends Resource { + containerType?: string; /** - * BackupResourceConfigResource properties + * Backup Management Type */ - properties?: BackupResourceConfig; -} - -/** - * Query parameters to fetch list of backup engines. - */ -export interface BMSBackupEngineQueryObject { + backupManagementType?: string; /** - * attribute to add extended info + * Datasource Type */ - expand?: string; -} - -/** - * Query parameters to fetch list of backup engines. - */ -export interface BMSBackupEnginesQueryObject { + datasourceType?: string; /** - * Backup management type for the backup engine. Possible values include: 'Invalid', - * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Datasource Friendly Name */ - backupManagementType?: BackupManagementType; + datasourceName?: string; /** - * Friendly name of the backup engine. + * Datasource Id */ - friendlyName?: string; + datasourceId?: string; /** - * Attribute to add extended info. + * Datasource Container Unique Name */ - expand?: string; -} - -/** - * The query filters that can be used with the list containers API. - */ -export interface BMSContainerQueryObject { + datasourceContainerName?: string; /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * CoordinatorServiceStampId to be used by BCM in restore call */ - backupManagementType: BackupManagementType; + coordinatorServiceStampId?: string; /** - * Type of container for filter. Possible values include: 'Invalid', 'Unknown', - * 'IaasVMContainer', 'IaasVMServiceContainer', 'DPMContainer', 'AzureBackupServerContainer', - * 'MABContainer', 'Cluster', 'AzureSqlContainer', 'Windows', 'VCenter', 'VMAppContainer', - * 'SQLAGWorkLoadContainer', 'StorageContainer', 'GenericContainer' + * CoordinatorServiceStampUri to be used by BCM in restore call */ - containerType?: ContainerType; + coordinatorServiceStampUri?: string; /** - * Backup engine name + * ProtectionServiceStampId to be used by BCM in restore call */ - backupEngineName?: string; + protectionServiceStampId?: string; /** - * Fabric name for filter + * ProtectionServiceStampUri to be used by BCM in restore call */ - fabricName?: string; + protectionServiceStampUri?: string; /** - * Status of registration of this container with the Recovery Services Vault. + * Extended Information about the token like FileSpec etc. */ - status?: string; + tokenExtendedInformation?: string; /** - * Friendly name of this container. + * Recovery point Tier Information */ - friendlyName?: string; -} - -/** - * The query filters that can be used with the inquire container API. - */ -export interface BMSContainersInquiryQueryObject { + rpTierInformation?: { [propertyName: string]: string }; /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Recovery point information: Original SA option */ - backupManagementType?: BackupManagementType; + rpOriginalSAOption?: boolean; /** - * Workload type for this container. Possible values include: 'Invalid', 'VM', 'FileFolder', - * 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', - * 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Recovery point information: Managed virtual machine */ - workloadType?: WorkloadType; -} - -/** - * Filters to list items that can be backed up. - */ -export interface BMSPOQueryObject { + rpIsManagedVirtualMachine?: boolean; /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' + * Recovery point information: VM size description */ - backupManagementType?: BackupManagementType; + rpVMSizeDescription?: string; /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' + * Active region name of BMS Stamp */ - workloadType?: WorkloadType; + bMSActiveRegion?: string; + protectableObjectUniqueName?: string; + protectableObjectFriendlyName?: string; + protectableObjectWorkloadType?: string; + protectableObjectProtectionState?: string; + protectableObjectContainerHostOsName?: string; + protectableObjectParentLogicalContainerName?: string; /** - * Full name of the container whose Protectable Objects should be returned. + * Container Id */ - containerName?: string; + containerId?: string; /** - * Backup status query parameter. + * Policy Name */ - status?: string; + policyName?: string; /** - * Friendly name. + * Policy Id */ - friendlyName?: string; + policyId?: string; } /** - * The query filters that can be used with the refresh container API. + * Contains the possible cases for FeatureSupportRequest. */ -export interface BMSRefreshContainersQueryObject { +export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; + +/** + * Base class for feature request + */ +export interface FeatureSupportRequest { /** - * Backup management type for this container. Possible values include: 'Invalid', 'AzureIaasVM', - * 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - * 'DefaultBackup' + * Polymorphic Discriminator */ - backupManagementType?: BackupManagementType; + featureType: "FeatureSupportRequest"; } /** - * Filters to list items that can be backed up. + * Azure backup goal feature specific request. */ -export interface BMSWorkloadItemQueryObject { - /** - * Backup management type. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - * 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', 'DefaultBackup' - */ - backupManagementType?: BackupManagementType; - /** - * Workload Item type. Possible values include: 'Invalid', 'SQLInstance', 'SQLDataBase', - * 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', 'SAPAseDatabase' - */ - workloadItemType?: WorkloadItemType; - /** - * Workload type. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', - * 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', 'Client', 'GenericDataSource', - * 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase' - */ - workloadType?: WorkloadType; +export interface AzureBackupGoalFeatureSupportRequest { /** - * Backup status query parameter. Possible values include: 'Invalid', 'NotProtected', - * 'Protecting', 'Protected', 'ProtectionFailed' + * Polymorphic Discriminator */ - protectionStatus?: ProtectionStatus; + featureType: "AzureBackupGoals"; } /** - * Client script details for file / folder restore. + * Contains the possible cases for ProtectionIntent. */ -export interface ClientScriptForConnect { +export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; + +/** + * Base class for backup ProtectionIntent. + */ +export interface ProtectionIntent { /** - * File content of the client script for file / folder restore. + * Polymorphic Discriminator */ - scriptContent?: string; + protectionIntentItemType: "ProtectionIntent"; /** - * File extension of the client script for file / folder restore - .ps1 , .sh , etc. + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - scriptExtension?: string; + backupManagementType?: BackupManagementType; /** - * OS type - Windows, Linux etc. for which this file / folder restore client script works. + * ARM ID of the resource to be backed up. */ - osType?: string; + sourceResourceId?: string; /** - * URL of Executable from where to source the content. If this is not null then ScriptContent - * should not be used + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - url?: string; + itemId?: 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. + * ID of the backup policy with which this item is backed up. */ - scriptNameSuffix?: string; + policyId?: string; + /** + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' + */ + protectionState?: ProtectionStatus; } /** - * Container identity information + * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. */ -export interface ContainerIdentityInfo { - /** - * Unique name of the container - */ - uniqueName?: string; - /** - * Protection container identity - AAD Tenant - */ - aadTenantId?: string; - /** - * Protection container identity - AAD Service Principal - */ - servicePrincipalClientId?: string; - /** - * Protection container identity - Audience - */ - audience?: string; -} +export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; /** - * Data Protection Manager (DPM) specific backup engine. + * Azure Recovery Services Vault specific protection intent item. */ -export interface DpmBackupEngine { +export interface AzureRecoveryServiceVaultProtectionIntent { /** * Polymorphic Discriminator */ - backupEngineType: "DpmBackupEngine"; - /** - * Friendly name of the backup engine. - */ - friendlyName?: string; + protectionIntentItemType: "RecoveryServiceVaultItem"; /** - * Type of backup management for the backup engine. Possible values include: 'Invalid', + * Type of backup management for the backed up item. Possible values include: 'Invalid', * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', * 'DefaultBackup' */ backupManagementType?: BackupManagementType; /** - * Registration status of the backup engine with the Recovery Services Vault. + * ARM ID of the resource to be backed up. */ - registrationStatus?: string; + sourceResourceId?: string; /** - * Status of the backup engine with the Recovery Services Vault. = {Active/Deleting/DeleteFailed} + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - backupEngineState?: string; + itemId?: string; /** - * Backup status of the backup engine. + * ID of the backup policy with which this item is backed up. */ - healthStatus?: string; + policyId?: string; /** - * Flag indicating if the backup engine be registered, once already registered. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - canReRegister?: boolean; + protectionState?: ProtectionStatus; +} + +/** + * IaaS VM specific backup protection intent item. + */ +export interface AzureResourceProtectionIntent { /** - * ID of the backup engine. + * Polymorphic Discriminator */ - backupEngineId?: string; + protectionIntentItemType: "AzureResourceItem"; /** - * Backup engine version + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - dpmVersion?: string; + backupManagementType?: BackupManagementType; /** - * Backup agent version + * ARM ID of the resource to be backed up. */ - azureBackupAgentVersion?: string; + sourceResourceId?: string; /** - * To check if backup agent upgrade available + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - isAzureBackupAgentUpgradeAvailable?: boolean; + itemId?: string; /** - * To check if backup engine upgrade available + * ID of the backup policy with which this item is backed up. */ - isDpmUpgradeAvailable?: boolean; + policyId?: string; /** - * Extended info of the backupengine + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - extendedInfo?: BackupEngineExtendedInfo; -} - -/** - * Additional information of the DPMContainer. - */ -export interface DPMContainerExtendedInfo { + protectionState?: ProtectionStatus; /** - * Last refresh time of the DPMContainer. + * Friendly name of the VM represented by this backup item. */ - lastRefreshedAt?: Date; + friendlyName?: string; } /** - * Container extended information + * AzureResource(IaaS VM) Specific feature support request */ -export interface GenericContainerExtendedInfo { +export interface AzureVMResourceFeatureSupportRequest { /** - * Public key of container cert + * Polymorphic Discriminator */ - rawCertData?: string; + featureType: "AzureVMResourceBackup"; /** - * Container identity information + * Size of the resource: VM size(A/D series etc) in case of IaasVM */ - containerIdentityInfo?: ContainerIdentityInfo; + vmSize?: string; + /** + * SKUs (Premium/Managed etc) in case of IaasVM + */ + vmSku?: string; +} + +/** + * Response for feature support requests for Azure IaasVm + */ +export interface AzureVMResourceFeatureSupportResponse { /** - * Azure Backup Service Endpoints for the container + * Support status of feature. Possible values include: 'Invalid', 'Supported', 'DefaultOFF', + * 'DefaultON', 'NotSupported' */ - serviceEndpoints?: { [propertyName: string]: string }; + supportStatus?: SupportStatus; } /** - * Base class for generic container of backup items + * Contains the possible cases for AzureWorkloadAutoProtectionIntent. */ -export interface GenericContainer { +export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; + +/** + * Azure Recovery Services Vault specific protection intent item. + */ +export interface AzureWorkloadAutoProtectionIntent { /** * Polymorphic Discriminator */ - containerType: "GenericContainer"; - /** - * Friendly name of the container. - */ - friendlyName?: string; + protectionIntentItemType: "AzureWorkloadAutoProtectionIntent"; /** - * Type of backup management for the container. Possible values include: 'Invalid', + * Type of backup management for the backed up item. 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. + * ARM ID of the resource to be backed up. */ - registrationStatus?: string; + sourceResourceId?: string; /** - * Status of health of the container. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - healthStatus?: string; + itemId?: string; /** - * Name of the container's fabric + * ID of the backup policy with which this item is backed up. */ - fabricName?: string; + policyId?: string; /** - * Extended information (not returned in List container API calls) + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - extendedInformation?: GenericContainerExtendedInfo; + protectionState?: ProtectionStatus; } /** - * IaaS VM workload-specific backup request. + * Azure Workload SQL Auto Protection intent item. */ -export interface IaasVMBackupRequest { +export interface AzureWorkloadSQLAutoProtectionIntent { /** * Polymorphic Discriminator */ - objectType: "IaasVMBackupRequest"; + protectionIntentItemType: "AzureWorkloadSQLAutoProtectionIntent"; /** - * Backup copy will expire after the time specified (UTC). + * Type of backup management for the backed up item. Possible values include: 'Invalid', + * 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', + * 'DefaultBackup' */ - recoveryPointExpiryTimeInUTC?: Date; -} - -/** - * Restore files/folders from a backup copy of IaaS VM. - */ -export interface IaasVMILRRegistrationRequest { + backupManagementType?: BackupManagementType; /** - * Polymorphic Discriminator + * ARM ID of the resource to be backed up. */ - objectType: "IaasVMILRRegistrationRequest"; + sourceResourceId?: string; /** - * ID of the IaaS VM backup copy from where the files/folders have to be restored. + * ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId */ - recoveryPointId?: string; + itemId?: string; /** - * Fully qualified ARM ID of the virtual machine whose the files / folders have to be restored. + * ID of the backup policy with which this item is backed up. */ - virtualMachineId?: string; + policyId?: string; /** - * iSCSI initiator name. + * Backup state of this backup item. Possible values include: 'Invalid', 'NotProtected', + * 'Protecting', 'Protected', 'ProtectionFailed' */ - initiatorName?: string; + protectionState?: ProtectionStatus; /** - * Whether to renew existing registration with the iSCSI server. + * Workload item type of the item for which intent is to be set. Possible values include: + * 'Invalid', 'SQLInstance', 'SQLDataBase', 'SAPHanaSystem', 'SAPHanaDatabase', 'SAPAseSystem', + * 'SAPAseDatabase' */ - renewExistingRegistration?: boolean; + workloadItemType?: WorkloadItemType; } /** - * Parameters to Provision ILR API. + * BackupStatus request. */ -export interface ILRRequestResource extends Resource { +export interface BackupStatusRequest { /** - * ILRRequestResource properties + * Container Type - VM, SQLPaaS, DPM, AzureFileShare. Possible values include: 'Invalid', 'VM', + * 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', 'SystemState', + * 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', 'SAPHanaDatabase', + * 'SAPAseDatabase' */ - properties?: ILRRequestUnion; -} - -/** - * Target details for file / folder restore. - */ -export interface InstantItemRecoveryTarget { + resourceType?: DataSourceType; /** - * List of client scripts. + * Entire ARM resource id of the resource */ - clientScripts?: ClientScriptForConnect[]; + resourceId?: string; + /** + * Protectable Item Logical Name + */ + poLogicalName?: string; } /** - * Additional information of the container. + * BackupStatus response. */ -export interface MabContainerExtendedInfo { +export interface BackupStatusResponse { /** - * Time stamp when this container was refreshed. + * Specifies whether the container is registered or not. Possible values include: 'Invalid', + * 'NotProtected', 'Protecting', 'Protected', 'ProtectionFailed' */ - lastRefreshedAt?: Date; + protectionStatus?: ProtectionStatus; /** - * 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' + * Specifies the arm resource id of the vault */ - backupItemType?: BackupItemType; + vaultId?: string; /** - * List of backup items associated with this container. + * Specifies the fabric name - Azure or AD. Possible values include: 'Invalid', 'Azure' */ - backupItems?: string[]; + fabricName?: FabricName; /** - * Backup policy associated with this container. + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;csname;vmname. + */ + containerName?: string; + /** + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;csname;vmname. + */ + protectedItemName?: string; + /** + * ErrorCode in case of intent failed + */ + errorCode?: string; + /** + * ErrorMessage in case of intent failed. + */ + errorMessage?: string; + /** + * Specifies the policy name which is used for protection */ policyName?: string; /** - * Latest backup status of this container. + * Container registration status */ - lastBackupStatus?: string; + registrationStatus?: string; } /** - * MAB workload-specific Health Details. + * 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 MABContainerHealthDetails { +export interface PreValidateEnableBackupRequest { /** - * Health Code + * ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values include: 'Invalid', + * 'VM', 'FileFolder', 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', + * 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', 'AzureFileShare', + * 'SAPHanaDatabase', 'SAPAseDatabase' */ - code?: number; + resourceType?: DataSourceType; /** - * Health Title + * ARM Virtual Machine Id */ - title?: string; + resourceId?: string; /** - * Health Message + * ARM id of the Recovery Services Vault */ - message?: string; + vaultId?: string; /** - * Health Recommended Actions + * Configuration of VM if any needs to be validated like OS type etc */ - recommendations?: string[]; + properties?: string; } /** - * Container with items backed up using MAB backup engine. + * Response contract for enable backup validation request */ -export interface MabContainer { +export interface PreValidateEnableBackupResponse { /** - * Polymorphic Discriminator + * Validation Status. Possible values include: 'Invalid', 'Succeeded', 'Failed' */ - containerType: "Windows"; + status?: ValidationStatus; /** - * Friendly name of the container. + * Response error code */ - friendlyName?: string; + errorCode?: string; /** - * Type of backup management for the container. Possible values include: 'Invalid', + * Response error message + */ + errorMessage?: string; + /** + * Recommended action for user + */ + recommendation?: string; + /** + * Specifies the product specific container name. E.g. + * iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required + * for portal + */ + containerName?: string; + /** + * Specifies the product specific ds name. E.g. vm;iaasvmcontainer;rgname;vmname. This is + * required for portal + */ + protectedItemName?: string; +} + +/** + * Filters to list protection intent. + */ +export interface ProtectionIntentQueryObject { + /** + * Backup management type for the backed up item. 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. + * Type of workload this item represents. Possible values include: 'Invalid', 'SQLInstance', + * 'SQLAvailabilityGroupContainer' */ - registrationStatus?: string; + itemType?: IntentItemType; /** - * Status of health of the container. + * Parent name of the intent */ - healthStatus?: string; + parentName?: string; /** - * Can the container be registered one more time. + * Item name of the intent */ - canReRegister?: boolean; + itemName?: string; +} + +/** + * Base class for backup ProtectionIntent. + */ +export interface ProtectionIntentResource extends Resource { /** - * ContainerID represents the container. + * ProtectionIntentResource properties */ - containerId?: number; + properties?: ProtectionIntentUnion; +} + +/** + * 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; /** - * Number of items backed up in this container. + * Operations Name itself. */ - protectedItemCount?: number; + operation?: string; /** - * Agent version of this container. + * Description of the operation having details of what operation is about. */ - agentVersion?: string; + description?: string; +} + +/** + * Class to represent shoebox log specification in json client discovery. + */ +export interface ClientDiscoveryForLogSpecification { /** - * Additional information for this container + * Name for shoebox log specification. */ - extendedInfo?: MabContainerExtendedInfo; + name?: string; /** - * Health details on this mab container. + * Localized display name */ - mabContainerHealthDetails?: MABContainerHealthDetails[]; + displayName?: string; /** - * Health state of mab container. + * blob duration of shoebox log specification */ - containerHealthState?: string; + blobDuration?: string; } /** - * Operation status job extended info. + * Class to represent shoebox service specification in json client discovery. */ -export interface OperationStatusJobExtendedInfo { +export interface ClientDiscoveryForServiceSpecification { /** - * Polymorphic Discriminator + * List of log specifications of this operation. */ - objectType: "OperationStatusJobExtendedInfo"; + logSpecifications?: ClientDiscoveryForLogSpecification[]; +} + +/** + * Class to represent shoebox properties in json client discovery. + */ +export interface ClientDiscoveryForProperties { /** - * ID of the job created for this protected item. + * Operation properties. */ - jobId?: string; + serviceSpecification?: ClientDiscoveryForServiceSpecification; } /** - * Operation status extended info for list of jobs. + * Available operation details. */ -export interface OperationStatusJobsExtendedInfo { +export interface ClientDiscoveryValueForSingleApi { /** - * Polymorphic Discriminator + * Name of the Operation. */ - objectType: "OperationStatusJobsExtendedInfo"; + name?: string; /** - * IDs of the jobs created for the protected item. + * Contains the localized display information for this particular operation */ - jobIds?: string[]; + display?: ClientDiscoveryDisplay; /** - * Stores all the failed jobs along with the corresponding error codes. + * The intended executor of the operation;governs the display of the operation in the RBAC UX and + * the audit logs UX */ - failedJobsError?: { [propertyName: string]: string }; + origin?: string; + /** + * ShoeBox properties for the given operation. + */ + properties?: ClientDiscoveryForProperties; } /** - * Operation status extended info for ILR provision action. + * Optional Parameters. */ -export interface OperationStatusProvisionILRExtendedInfo { +export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBase { /** - * Polymorphic Discriminator + * OData filter options. */ - objectType: "OperationStatusProvisionILRExtendedInfo"; + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsBase { /** - * Target details for file / folder restore. + * OData filter options. */ - recoveryTarget?: InstantItemRecoveryTarget; + filter?: string; } /** - * Protectable Container Class. + * Optional Parameters. */ -export interface ProtectableContainerResource extends Resource { +export interface RecoveryPointsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * ProtectableContainerResource properties + * OData filter options. */ - properties?: ProtectableContainerUnion; + filter?: string; } /** - * Base class for container with backup items. Containers with specific workloads are derived from - * this class. + * Optional Parameters. */ -export interface ProtectionContainerResource extends Resource { +export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsBase { /** - * ProtectionContainerResource properties + * OData filter options. */ - properties?: ProtectionContainerUnion; + filter?: string; } /** - * The token information details. + * Optional Parameters. */ -export interface TokenInformation { +export interface BackupPoliciesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Token value. + * OData filter options. */ - token?: string; + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase { /** - * Expiry time of token. + * OData filter options. */ - expiryTimeInUtcTicks?: number; + filter?: string; /** - * Security PIN + * skipToken Filter. */ - securityPIN?: string; + skipToken?: string; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Optional Parameters. */ -export interface WorkloadItemResource extends Resource { +export interface BackupJobsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * WorkloadItemResource properties + * OData filter options. */ - properties?: WorkloadItemUnion; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** - * Base class for backup item. Workload-specific backup items are derived from this class. + * Optional Parameters. */ -export interface WorkloadProtectableItemResource extends Resource { +export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBase { /** - * WorkloadProtectableItemResource properties + * OData filter options. */ - properties?: WorkloadProtectableItemUnion; + filter?: string; } /** - * Localized display information of an operation. + * Optional Parameters. */ -export interface ClientDiscoveryDisplay { +export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { /** - * Name of the provider for display purposes + * OData filter options. */ - provider?: string; + filter?: string; /** - * ResourceType for which this Operation can be performed. + * skipToken Filter. */ - resource?: string; + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupProtectedItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Operations Name itself. + * OData filter options. */ - operation?: string; + filter?: string; /** - * Description of the operation having details of what operation is about. + * skipToken Filter. */ - description?: string; + skipToken?: string; } /** - * Class to represent shoebox log specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForLogSpecification { +export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBase { /** - * Name for shoebox log specification. + * OData filter options. */ - name?: string; + filter?: string; /** - * Localized display name + * skipToken Filter. */ - displayName?: string; + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBase { /** - * blob duration of shoebox log specification + * OData filter options. */ - blobDuration?: string; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** - * Class to represent shoebox service specification in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForServiceSpecification { +export interface BackupEnginesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * List of log specifications of this operation. + * OData filter options. */ - logSpecifications?: ClientDiscoveryForLogSpecification[]; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** - * Class to represent shoebox properties in json client discovery. + * Optional Parameters. */ -export interface ClientDiscoveryForProperties { +export interface ProtectableContainersListOptionalParams extends msRest.RequestOptionsBase { /** - * Operation properties. + * OData filter options. */ - serviceSpecification?: ClientDiscoveryForServiceSpecification; + filter?: string; } /** - * Available operation details. + * Optional Parameters. */ -export interface ClientDiscoveryValueForSingleApi { +export interface ProtectableContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Name of the Operation. + * OData filter options. */ - name?: string; + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ProtectionContainersInquireOptionalParams extends msRest.RequestOptionsBase { /** - * Contains the localized display information for this particular operation + * OData filter options. */ - display?: ClientDiscoveryDisplay; + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ProtectionContainersRefreshOptionalParams 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; +} + +/** + * Optional Parameters. + */ +export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOptionsBase { /** - * ShoeBox properties for the given operation. + * OData filter options. */ - properties?: ClientDiscoveryForProperties; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface ProtectedItemsGetOptionalParams extends msRest.RequestOptionsBase { +export interface BackupWorkloadItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ - filter?: string; + filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface RecoveryPointsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectableItemsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface BackupPoliciesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectableItemsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface BackupJobsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; - /** - * skipToken Filter. - */ - skipToken?: string; } /** * Optional Parameters. */ -export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7522,7 +8817,7 @@ export interface JobsExportMethodOptionalParams extends msRest.RequestOptionsBas /** * Optional Parameters. */ -export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupUsageSummariesCRRListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7536,21 +8831,17 @@ export interface BackupProtectedItemsListOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { +export interface AadPropertiesGetOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; - /** - * skipToken Filter. - */ - skipToken?: string; } /** * Optional Parameters. */ -export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupCrrJobsListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7564,7 +8855,7 @@ export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupCrrJobsListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7578,21 +8869,17 @@ export interface BackupEnginesListOptionalParams extends msRest.RequestOptionsBa /** * Optional Parameters. */ -export interface BackupEnginesGetOptionalParams extends msRest.RequestOptionsBase { +export interface RecoveryPointsCrrListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; - /** - * skipToken Filter. - */ - skipToken?: string; } /** * Optional Parameters. */ -export interface ProtectableContainersListOptionalParams extends msRest.RequestOptionsBase { +export interface RecoveryPointsCrrListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7602,27 +8889,35 @@ export interface ProtectableContainersListOptionalParams extends msRest.RequestO /** * Optional Parameters. */ -export interface ProtectionContainersInquireOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectedItemsCrrListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface ProtectionContainersRefreshOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectedItemsCrrListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** * Optional Parameters. */ -export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionIntentListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7636,7 +8931,7 @@ export interface BackupWorkloadItemsListOptionalParams extends msRest.RequestOpt /** * Optional Parameters. */ -export interface BackupProtectableItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionIntentListNextOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -7650,11 +8945,15 @@ export interface BackupProtectableItemsListOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface BackupProtectionContainersListOptionalParams extends msRest.RequestOptionsBase { +export interface BackupUsageSummariesListOptionalParams extends msRest.RequestOptionsBase { /** * OData filter options. */ filter?: string; + /** + * skipToken Filter. + */ + skipToken?: string; } /** @@ -7696,22 +8995,6 @@ export interface JobResourceList extends Array, ResourceList { export interface ProtectedItemResourceList extends Array, ResourceList { } -/** - * @interface - * List of ProtectionIntent resources - * @extends Array, ResourceList - */ -export interface ProtectionIntentResourceList extends Array, ResourceList { -} - -/** - * @interface - * Backup management usage for vault. - * @extends Array - */ -export interface BackupManagementUsageList extends Array { -} - /** * @interface * List of BackupEngineBase resources @@ -7752,6 +9035,22 @@ export interface WorkloadProtectableItemResourceList extends Array, ResourceList { } +/** + * @interface + * Backup management usage for vault. + * @extends Array + */ +export interface BackupManagementUsageList extends Array { +} + +/** + * @interface + * List of ProtectionIntent resources + * @extends Array, ResourceList + */ +export interface ProtectionIntentResourceList extends Array, ResourceList { +} + /** * @interface * Operations List response which contains list of available APIs. @@ -7765,12 +9064,29 @@ export interface ClientDiscoveryResponse extends Array + */ + get(azureRegion: string, options?: Models.AadPropertiesGetOptionalParams): Promise; + /** + * @param azureRegion Azure region to hit Api + * @param callback The callback + */ + get(azureRegion: string, callback: msRest.ServiceCallback): void; + /** + * @param azureRegion Azure region to hit Api + * @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 { + return this.client.sendOperationRequest( + { + azureRegion, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + responses: { + 200: { + bodyMapper: Mappers.AADPropertiesResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts new file mode 100644 index 000000000000..cad106a88dd4 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts @@ -0,0 +1,95 @@ +/* + * 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/bMSPrepareDataMoveOperationResultMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BMSPrepareDataMoveOperationResult. */ +export class BMSPrepareDataMoveOperationResult { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BMSPrepareDataMoveOperationResult. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Fetches Operation Result for Prepare Data Move + * @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 operationId + * @param [options] The optional parameters + * @returns 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 + * present. + * @param operationId + * @param callback The callback + */ + 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 + * present. + * @param operationId + * @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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + operationId, + options + }, + getOperationSpec, + 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}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VaultStorageConfigOperationResultResponse + }, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts new file mode 100644 index 000000000000..383a74d1df5a --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts @@ -0,0 +1,92 @@ +/* + * 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/backupCrrJobDetailsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupCrrJobDetails. */ +export class BackupCrrJobDetails { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupCrrJobDetails. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Get CRR job details from target region. + * @param azureRegion Azure region to hit Api + * @param parameters CRR Job request + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + azureRegion, + parameters, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrrJobRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.JobResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts new file mode 100644 index 000000000000..2e25ff77a4d9 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts @@ -0,0 +1,148 @@ +/* + * 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/backupCrrJobsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupCrrJobs. */ +export class BackupCrrJobs { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupCrrJobs. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Gets the list of CRR jobs from the target region. + * @param azureRegion Azure region to hit Api + * @param parameters Backup CRR Job request + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + azureRegion, + parameters, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets the list of CRR jobs from the target region. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.BackupCrrJobsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + 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.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; + } +} + +// Operation Specifications +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 + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrrJobRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.JobResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +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 + ], + responses: { + 200: { + bodyMapper: Mappers.JobResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts index aecd208b72a9..c3ebf07f9475 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -108,7 +107,7 @@ export class BackupEngines { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupEnginesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -119,8 +118,8 @@ export class BackupEngines { * @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: Models.BackupEnginesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupEnginesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -135,14 +134,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -162,7 +161,7 @@ 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, @@ -170,7 +169,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.backupEngineName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -195,6 +194,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts index c36ed2684408..c48c8fdb1802 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -67,7 +66,7 @@ export class BackupJobs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupJobsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupJobs { * @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: Models.BackupJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -94,14 +93,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts index 7959e5f3dab7..0bca2942f1ec 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -75,7 +74,7 @@ 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, @@ -83,7 +82,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts index fdbf978c1107..9b45cfbb7cc1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -74,7 +73,7 @@ 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, @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts index e7d4484b62fc..802d87edb5b5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -71,7 +70,7 @@ export class BackupPolicies { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupPoliciesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class BackupPolicies { * @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: Models.BackupPoliciesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupPoliciesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -98,14 +97,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -129,6 +128,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts index 2b45cb7cefea..74f0b4641bff 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -71,7 +70,7 @@ export class BackupProtectableItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectableItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class BackupProtectableItems { * @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: Models.BackupProtectableItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectableItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -98,14 +97,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -130,6 +129,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts index 38761446d87f..64ccb9c8d104 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -67,7 +66,7 @@ export class BackupProtectedItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectedItems { * @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: Models.BackupProtectedItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectedItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -94,14 +93,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts new file mode 100644 index 000000000000..0f444c1f62fc --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts @@ -0,0 +1,145 @@ +/* + * 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/backupProtectedItemsCrrMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupProtectedItemsCrr. */ +export class BackupProtectedItemsCrr { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupProtectedItemsCrr. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Provides a pageable list of all items that are backed up within a 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 + */ + 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; + /** + * @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 + */ + 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, + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Provides a pageable list of all items that are backed up within a vault. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectedItemResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +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 + ], + responses: { + 200: { + bodyMapper: Mappers.ProtectedItemResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts index 40cd9b6da050..9325cecbc2f9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -67,7 +66,7 @@ export class BackupProtectionContainers { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectionContainersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectionContainers { * @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: Models.BackupProtectionContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectionContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -94,14 +93,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -125,6 +124,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts index d0aa34265091..779e3f685e6a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -67,7 +66,7 @@ export class BackupProtectionIntent { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupProtectionIntentListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -78,8 +77,8 @@ export class BackupProtectionIntent { * @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: Models.BackupProtectionIntentListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupProtectionIntentListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -101,7 +100,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.filter, Parameters.skipToken ], @@ -126,6 +125,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts new file mode 100644 index 000000000000..a42dd05ebdfa --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts @@ -0,0 +1,158 @@ +/* + * 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/backupResourceEncryptionConfigsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupResourceEncryptionConfigs. */ +export class BackupResourceEncryptionConfigs { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupResourceEncryptionConfigs. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Fetches Vault Encryption 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 encryption 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 parameters Vault encryption input config request + * @param [options] The optional parameters + * @returns 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 + * present. + * @param parameters Vault encryption input config request + * @param callback The callback + */ + 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 + * present. + * @param parameters Vault encryption input config request + * @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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + updateOperationSpec, + 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}/backupEncryptionConfigs/backupResourceEncryptionConfig", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupResourceEncryptionConfigResource + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +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 + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackupResourceEncryptionConfigResource, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts index bc7bed81ac0b..ad8882f28b87 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -144,14 +143,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -161,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -169,14 +168,14 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -193,7 +192,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -201,14 +200,14 @@ const updateOperationSpec: msRest.OperationSpec = { const patchOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -223,7 +222,7 @@ const patchOperationSpec: msRest.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError + 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 c8bedd45887b..ec4af9d145a9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -144,14 +143,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -161,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -169,14 +168,14 @@ const getOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -193,7 +192,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -201,14 +200,14 @@ const updateOperationSpec: msRest.OperationSpec = { const putOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +224,7 @@ const putOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.BackupResourceVaultConfigResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts index e02fed8f3ff8..5d2b83f87afb 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -69,7 +68,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts index 861abc19f3bd..d667e5042194 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -73,7 +72,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.filter, Parameters.skipToken ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts new file mode 100644 index 000000000000..02b7f2a70c77 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts @@ -0,0 +1,91 @@ +/* + * 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/backupUsageSummariesCRRMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a BackupUsageSummariesCRR. */ +export class BackupUsageSummariesCRR { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a BackupUsageSummariesCRR. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Fetches the backup management usage summaries of the 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 + */ + 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; + /** + * @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 + */ + 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, + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + responses: { + 200: { + bodyMapper: Mappers.BackupManagementUsageList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts index 1bb4115b4164..425b8d90da37 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -79,7 +78,7 @@ export class BackupWorkloadItems { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.BackupWorkloadItemsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -90,8 +89,8 @@ export class BackupWorkloadItems { * @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: Models.BackupWorkloadItemsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.BackupWorkloadItemsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -106,7 +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, @@ -115,7 +114,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter, Parameters.skipToken ], @@ -140,6 +139,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skipToken + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts index 57896dba992a..1f1e35c2e1c1 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -84,7 +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, @@ -94,7 +93,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts new file mode 100644 index 000000000000..fd5493cb1ff2 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts @@ -0,0 +1,92 @@ +/* + * 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 msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/crossRegionRestoreMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrossRegionRestore. */ +export class CrossRegionRestore { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrossRegionRestore. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Restores the specified backed up data in a different region as compared to where the + * data is backed up. + * @param azureRegion Azure region to hit Api + * @param parameters resource cross region restore request + * @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()); + } + + /** + * @summary Restores the specified backed up data in a different region as compared to where the + * data is backed up. + * @param azureRegion Azure region to hit Api + * @param parameters resource cross region restore request + * @param [options] The optional parameters + * @returns Promise + */ + beginTrigger(azureRegion: string, parameters: Models.CrossRegionRestoreRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + azureRegion, + parameters, + options + }, + beginTriggerOperationSpec, + options); + } +} + +// Operation Specifications +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 + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CrossRegionRestoreRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts new file mode 100644 index 000000000000..a20e685b63bc --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts @@ -0,0 +1,83 @@ +/* + * 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 Mappers from "../models/crrOperationResultsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrrOperationResults. */ +export class CrrOperationResults { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrrOperationResults. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + azureRegion, + operationId, + options + }, + getOperationSpec, + callback); + } +} + +// Operation Specifications +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 + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts new file mode 100644 index 000000000000..b398dff30c42 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts @@ -0,0 +1,85 @@ +/* + * 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/crrOperationStatusMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a CrrOperationStatus. */ +export class CrrOperationStatus { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a CrrOperationStatus. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @param azureRegion Azure region to hit Api + * @param operationId + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + azureRegion, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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 + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts index 0e74cf5b1efe..2675bad2842f 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -73,7 +72,7 @@ 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, @@ -81,7 +80,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts index ef4c19f8ed09..c91e18bc8952 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -69,7 +68,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts index cff469100f5c..17ae7a676ac6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/index.ts @@ -1,15 +1,17 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 * from "./privateEndpointConnectionOperations"; export * from "./backupResourceVaultConfigs"; +export * from "./backupResourceEncryptionConfigs"; +export * from "./privateEndpointConnectionOperations"; +export * from "./privateEndpointOperations"; +export * from "./bMSPrepareDataMoveOperationResult"; export * from "./protectedItems"; export * from "./protectedItemOperationResults"; export * from "./recoveryPoints"; @@ -25,11 +27,6 @@ export * from "./exportJobsOperationResults"; export * from "./jobs"; export * from "./backupProtectedItems"; export * from "./operation"; -export * from "./protectionIntentOperations"; -export * from "./backupStatus"; -export * from "./featureSupport"; -export * from "./backupProtectionIntent"; -export * from "./backupUsageSummaries"; export * from "./backupEngines"; export * from "./protectionContainerRefreshOperationResults"; export * from "./protectableContainers"; @@ -45,5 +42,20 @@ export * from "./protectionPolicyOperationStatuses"; export * from "./backupProtectableItems"; export * from "./backupProtectionContainers"; export * from "./securityPINs"; +export * from "./recoveryPointsRecommendedForMove"; +export * from "./backupUsageSummariesCRR"; +export * from "./aadProperties"; +export * from "./crossRegionRestore"; +export * from "./backupCrrJobDetails"; +export * from "./backupCrrJobs"; +export * from "./crrOperationResults"; +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 63983e7812a3..bff3da7f66a8 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -155,7 +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, @@ -166,7 +165,7 @@ const provisionOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -189,7 +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, @@ -200,7 +199,7 @@ const revokeOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts index 442f5f77e51f..ccdafd6a982c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -70,7 +69,7 @@ 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, @@ -78,7 +77,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts index bf7a50af9b7f..2ded9da4738c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -70,7 +69,7 @@ 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, @@ -78,7 +77,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.jobName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts index e09087842b60..69aac7aa311b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -73,7 +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, @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts index ccb2e58ba542..5e1656597d12 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -66,14 +65,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts index 80ce96334588..33aeb7df4a85 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -70,14 +69,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts index 6fd0022c8fc0..1b2a56510e81 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.RecoveryServices/operations", queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts index fdb4a5c9916a..4c002992b0bb 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -144,7 +143,7 @@ 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, @@ -162,7 +161,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnectionResource }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse } }, serializer @@ -170,7 +169,7 @@ 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, @@ -206,7 +205,7 @@ 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, @@ -224,7 +223,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts new file mode 100644 index 000000000000..20d37575ffa8 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts @@ -0,0 +1,99 @@ +/* + * 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/privateEndpointOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a PrivateEndpointOperations. */ +export class PrivateEndpointOperations { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a PrivateEndpointOperations. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * @summary Gets the operation status for a private endpoint connection. + * @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 privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @param [options] The optional parameters + * @returns 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 + * present. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @param callback The callback + */ + 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 + * present. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param operationId Operation id + * @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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + privateEndpointConnectionName, + operationId, + options + }, + getOperationStatusOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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}", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationStatus + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts index 92999e8d95de..5600655fd465 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -71,7 +70,7 @@ export class ProtectableContainers { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ProtectableContainersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -82,8 +81,8 @@ export class ProtectableContainers { * @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: Models.ProtectableContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ProtectableContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -98,7 +97,7 @@ 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, @@ -106,7 +105,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -130,6 +129,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts index 480fd2b20e17..1c7974cbf442 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -82,7 +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, @@ -93,7 +92,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts index 62e38f8252fd..a4539ff030ea 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -86,7 +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, @@ -97,7 +96,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts index 7b0982b4c2e7..dbb4bc244143 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -183,7 +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, @@ -193,7 +192,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -212,7 +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, @@ -222,7 +221,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -248,7 +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, @@ -258,12 +257,13 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts index fbfa32adf288..fe6189b3fd39 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -78,7 +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, @@ -88,7 +87,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts index e0d2487aeafb..7da6ff9c3fbc 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -73,7 +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, @@ -82,7 +81,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts index bb1d21630ce3..3a1f6fd8bf8e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -259,7 +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, @@ -268,7 +267,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -286,7 +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, @@ -295,7 +294,7 @@ const registerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -321,7 +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, @@ -330,12 +329,13 @@ const unregisterOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { @@ -347,7 +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, @@ -356,7 +356,7 @@ const inquireOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -373,7 +373,7 @@ 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, @@ -381,7 +381,7 @@ const refreshOperationSpec: msRest.OperationSpec = { Parameters.fabricName ], queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts index be8a96066335..8b0b7b2ac5d7 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -207,7 +206,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +240,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -268,7 +267,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -302,7 +301,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.intentObjectName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts index a43a693d283a..ade43e8109c9 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/protectionPoliciesMappers"; import * as Parameters from "../models/parameters"; @@ -115,7 +115,7 @@ export class ProtectionPolicies { /** * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous * operation. Status of the - * operation can be fetched using GetPolicyOperationResult API. + * operation can be fetched using GetProtectionPolicyOperationResult API. * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. @@ -123,34 +123,32 @@ export class ProtectionPolicies { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(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 - * present. - * @param policyName Backup policy to be deleted. - * @param callback The callback - */ - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, callback: msRest.ServiceCallback): void; + deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(vaultName,resourceGroupName,policyName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** + * Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous + * operation. Status of the + * operation can be fetched using GetProtectionPolicyOperationResult API. * @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 policyName Backup policy to be deleted. - * @param options The optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginDeleteMethod(vaultName: string, resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { vaultName, resourceGroupName, policyName, options }, - deleteMethodOperationSpec, - callback); + beginDeleteMethodOperationSpec, + options); } } @@ -158,7 +156,7 @@ 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, @@ -166,7 +164,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -184,7 +182,7 @@ 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, @@ -192,7 +190,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -216,9 +214,9 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: 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, @@ -226,7 +224,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.policyName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts index 85339f8da461..2861f414afaa 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -74,7 +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, @@ -83,7 +82,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts index 8b487a76d326..0f1ff4a27774 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -78,7 +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, @@ -87,7 +86,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.operationId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts index afd2493318d6..e28a8b7b39b6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -126,13 +125,68 @@ export class RecoveryPoints { callback) as Promise; } + /** + * @summary Returns the Access token for communication between BMS and Protection service + * @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 fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @param parameters Get Access Token request + * @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; + /** + * @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 fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @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; + /** + * @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 fabricName Fabric name associated with the container. + * @param containerName Name of the container. + * @param protectedItemName Name of the Protected Item. + * @param recoveryPointId Recovery Point Id + * @param parameters Get Access Token request + * @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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + recoveryPointId, + parameters, + options + }, + getAccessTokenOperationSpec, + callback) as Promise; + } + /** * Lists the backup copies for the backed up item. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RecoveryPointsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -143,8 +197,8 @@ export class RecoveryPoints { * @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: Models.RecoveryPointsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RecoveryPointsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -159,7 +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, @@ -169,7 +223,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion0, Parameters.filter ], headerParameters: [ @@ -188,7 +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, @@ -199,7 +253,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -215,6 +269,43 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +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", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName, + Parameters.recoveryPointId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AADPropertiesResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CrrAccessTokenResource + }, + 400: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -222,6 +313,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts new file mode 100644 index 000000000000..4fbb081b4346 --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts @@ -0,0 +1,158 @@ +/* + * 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/recoveryPointsCrrMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a RecoveryPointsCrr. */ +export class RecoveryPointsCrr { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a RecoveryPointsCrr. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Lists the backup copies for the backed up item. + * @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 fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @param protectedItemName Backed up item whose backup copies are to be fetched. + * @param [options] The optional parameters + * @returns 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 + * present. + * @param fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @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; + /** + * @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 fabricName Fabric name associated with the backed up item. + * @param containerName Container name associated with the backed up item. + * @param protectedItemName Backed up item whose backup copies are to be fetched. + * @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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the backup copies for the backed up item. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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/", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts new file mode 100644 index 000000000000..b87f7d91fa0a --- /dev/null +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts @@ -0,0 +1,167 @@ +/* + * 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/recoveryPointsRecommendedForMoveMappers"; +import * as Parameters from "../models/parameters"; +import { RecoveryServicesBackupClientContext } from "../recoveryServicesBackupClientContext"; + +/** Class representing a RecoveryPointsRecommendedForMove. */ +export class RecoveryPointsRecommendedForMove { + private readonly client: RecoveryServicesBackupClientContext; + + /** + * Create a RecoveryPointsRecommendedForMove. + * @param {RecoveryServicesBackupClientContext} client Reference to the service client. + */ + constructor(client: RecoveryServicesBackupClientContext) { + this.client = client; + } + + /** + * Lists the recovery points recommended for move to another tier + * @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 fabricName + * @param containerName + * @param protectedItemName + * @param parameters List Recovery points Recommended for Move Request + * @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; + /** + * @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 fabricName + * @param containerName + * @param protectedItemName + * @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; + /** + * @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 fabricName + * @param containerName + * @param protectedItemName + * @param parameters List Recovery points Recommended for Move Request + * @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 { + return this.client.sendOperationRequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + parameters, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the recovery points recommended for move to another tier + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +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", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ListRecoveryPointsRecommendedForMoveRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoveryPointResourceList + }, + 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 4803b35f92f5..1baf3c436493 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/restoresMappers"; import * as Parameters from "../models/parameters"; @@ -41,20 +41,15 @@ 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; - /** - * @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 fabricName Fabric name associated with the backed up items. - * @param containerName Container name associated with the backed up items. - * @param protectedItemName Backed up item to be restored. - * @param recoveryPointId Recovery point ID which represents the backed up data to be restored. - * @param parameters resource restore request - * @param callback The callback - */ - trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, callback: msRest.ServiceCallback): void; + 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()); + } + /** + * Restores the specified backed up data. This is an asynchronous operation. To know the status of + * this API call, use + * GetProtectedItemOperationResult API. * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. @@ -63,12 +58,11 @@ export class Restores { * @param protectedItemName Backed up item to be restored. * @param recoveryPointId Recovery point ID which represents the backed up data to be restored. * @param parameters resource restore request - * @param options The optional parameters - * @param callback The callback + * @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, callback: msRest.ServiceCallback): void; - trigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: Models.RestoreRequestResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + 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, resourceGroupName, @@ -79,16 +73,16 @@ export class Restores { parameters, options }, - triggerOperationSpec, - callback); + beginTriggerOperationSpec, + options); } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const triggerOperationSpec: msRest.OperationSpec = { +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, @@ -99,7 +93,7 @@ const triggerOperationSpec: msRest.OperationSpec = { Parameters.recoveryPointId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts index 3a4768974be5..70f02e9e0d44 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -66,14 +65,14 @@ 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", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts index af400f29edcc..c7754b3c7caa 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -9,6 +8,8 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as Parameters from "./models/parameters"; @@ -18,8 +19,11 @@ import { RecoveryServicesBackupClientContext } from "./recoveryServicesBackupCli class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { // Operation groups - privateEndpointConnection: operations.PrivateEndpointConnectionOperations; backupResourceVaultConfigs: operations.BackupResourceVaultConfigs; + backupResourceEncryptionConfigs: operations.BackupResourceEncryptionConfigs; + privateEndpointConnection: operations.PrivateEndpointConnectionOperations; + privateEndpoint: operations.PrivateEndpointOperations; + bMSPrepareDataMoveOperationResult: operations.BMSPrepareDataMoveOperationResult; protectedItems: operations.ProtectedItems; protectedItemOperationResults: operations.ProtectedItemOperationResults; recoveryPoints: operations.RecoveryPoints; @@ -35,11 +39,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { jobs: operations.Jobs; backupProtectedItems: operations.BackupProtectedItems; operation: operations.Operation; - protectionIntent: operations.ProtectionIntentOperations; - backupStatus: operations.BackupStatus; - featureSupport: operations.FeatureSupport; - backupProtectionIntent: operations.BackupProtectionIntent; - backupUsageSummaries: operations.BackupUsageSummaries; backupEngines: operations.BackupEngines; protectionContainerRefreshOperationResults: operations.ProtectionContainerRefreshOperationResults; protectableContainers: operations.ProtectableContainers; @@ -55,19 +54,42 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { backupProtectableItems: operations.BackupProtectableItems; backupProtectionContainers: operations.BackupProtectionContainers; securityPINs: operations.SecurityPINs; + recoveryPointsRecommendedForMove: operations.RecoveryPointsRecommendedForMove; + backupUsageSummariesCRR: operations.BackupUsageSummariesCRR; + aadProperties: operations.AadProperties; + crossRegionRestore: operations.CrossRegionRestore; + backupCrrJobDetails: operations.BackupCrrJobDetails; + backupCrrJobs: operations.BackupCrrJobs; + crrOperationResults: operations.CrrOperationResults; + crrOperationStatus: operations.CrrOperationStatus; 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. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId The subscription Id. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.RecoveryServicesBackupClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.RecoveryServicesBackupClientOptions) { super(credentials, subscriptionId, options); - this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); this.backupResourceVaultConfigs = new operations.BackupResourceVaultConfigs(this); + this.backupResourceEncryptionConfigs = new operations.BackupResourceEncryptionConfigs(this); + this.privateEndpointConnection = new operations.PrivateEndpointConnectionOperations(this); + this.privateEndpoint = new operations.PrivateEndpointOperations(this); + this.bMSPrepareDataMoveOperationResult = new operations.BMSPrepareDataMoveOperationResult(this); this.protectedItems = new operations.ProtectedItems(this); this.protectedItemOperationResults = new operations.ProtectedItemOperationResults(this); this.recoveryPoints = new operations.RecoveryPoints(this); @@ -83,11 +105,6 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.jobs = new operations.Jobs(this); this.backupProtectedItems = new operations.BackupProtectedItems(this); this.operation = new operations.Operation(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.backupEngines = new operations.BackupEngines(this); this.protectionContainerRefreshOperationResults = new operations.ProtectionContainerRefreshOperationResults(this); this.protectableContainers = new operations.ProtectableContainers(this); @@ -103,64 +120,191 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { this.backupProtectableItems = new operations.BackupProtectableItems(this); this.backupProtectionContainers = new operations.BackupProtectionContainers(this); this.securityPINs = new operations.SecurityPINs(this); + this.recoveryPointsRecommendedForMove = new operations.RecoveryPointsRecommendedForMove(this); + this.backupUsageSummariesCRR = new operations.BackupUsageSummariesCRR(this); + this.aadProperties = new operations.AadProperties(this); + this.crossRegionRestore = new operations.CrossRegionRestore(this); + this.backupCrrJobDetails = new operations.BackupCrrJobDetails(this); + this.backupCrrJobs = new operations.BackupCrrJobs(this); + this.crrOperationResults = new operations.CrrOperationResults(this); + this.crrOperationStatus = new operations.CrrOperationStatus(this); 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); } /** - * @summary Gets the operation status for a private endpoint connection. + * Fetches operation status for data move operation on 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 privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @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, 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 * present. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @param callback The callback */ - getOperationStatus(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: 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 * present. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param operationId Operation id + * @param operationId * @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, 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, resourceGroupName, - privateEndpointConnectionName, operationId, options }, getOperationStatusOperationSpec, callback) as Promise; } + + /** + * Prepares source vault for Data Move operation + * @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 Prepare data move request + * @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()); + } + + /** + * Triggers Data Move Operation on target 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 parameters Trigger data move request + * @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()); + } + + /** + * @summary Move recovery point from one datastore to another store. + * @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 fabricName + * @param containerName + * @param protectedItemName + * @param recoveryPointId + * @param parameters Move Resource Across Tiers Request + * @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()); + } + + /** + * Prepares source vault for Data Move operation + * @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 Prepare data move request + * @param [options] The optional parameters + * @returns Promise + */ + beginBMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: Models.PrepareDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.sendLRORequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + beginBMSPrepareDataMoveOperationSpec, + options); + } + + /** + * Triggers Data Move Operation on target 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 parameters Trigger data move request + * @param [options] The optional parameters + * @returns Promise + */ + beginBMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: Models.TriggerDataMoveRequest, options?: msRest.RequestOptionsBase): Promise { + return this.sendLRORequest( + { + vaultName, + resourceGroupName, + parameters, + options + }, + beginBMSTriggerDataMoveOperationSpec, + options); + } + + /** + * @summary Move recovery point from one datastore to another store. + * @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 fabricName + * @param containerName + * @param protectedItemName + * @param recoveryPointId + * @param parameters Move Resource Across Tiers Request + * @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 { + return this.sendLRORequest( + { + vaultName, + resourceGroupName, + fabricName, + containerName, + protectedItemName, + recoveryPointId, + parameters, + options + }, + beginMoveRecoveryPointOperationSpec, + options); + } } // Operation Specifications 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}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId}", urlParameters: [ Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName, Parameters.operationId ], queryParameters: [ @@ -174,7 +318,103 @@ const getOperationStatusOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationStatus }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +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 + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrepareDataMoveRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +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 + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TriggerDataMoveRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.NewErrorResponse + } + }, + serializer +}; + +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", + urlParameters: [ + Parameters.vaultName, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.fabricName, + Parameters.containerName, + Parameters.protectedItemName, + Parameters.recoveryPointId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.MoveRPAcrossTiersRequest, + required: true + } + }, + responses: { + 202: {}, + default: { + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts index b8a8f744f6cb..e195cfb8c792 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -11,21 +10,27 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-recoveryservicesbackup"; -const packageVersion = "6.1.0"; +const packageVersion = "7.0.0"; export class RecoveryServicesBackupClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; /** * Initializes a new instance of the RecoveryServicesBackupClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId The subscription Id. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, 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.'); } @@ -36,7 +41,7 @@ export class RecoveryServicesBackupClientContext extends msRestAzure.AzureServic if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -50,10 +55,10 @@ export class RecoveryServicesBackupClientContext extends msRestAzure.AzureServic this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + 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; } } From 933e2954380577403028ac813cc37c422ebc13d5 Mon Sep 17 00:00:00 2001 From: colawwj Date: Thu, 3 Jun 2021 10:19:46 +0800 Subject: [PATCH 2/4] arm-recoveryservicesbackup-v4 --- .../arm-recoveryservicesbackup/README.md | 53 +- .../rollup.config.js | 10 +- .../models/backupOperationResultsMappers.ts | 5 +- .../src/models/index.ts | 2045 ++++++++++------- .../src/models/jobCancellationsMappers.ts | 5 +- .../src/models/jobOperationResultsMappers.ts | 5 +- .../src/models/jobsMappers.ts | 5 +- .../src/models/mappers.ts | 332 ++- .../src/models/parameters.ts | 20 +- ...ContainerRefreshOperationResultsMappers.ts | 5 +- .../src/models/securityPINsMappers.ts | 6 +- .../src/operations/aadProperties.ts | 39 +- .../bMSPrepareDataMoveOperationResult.ts | 46 +- .../src/operations/backupCrrJobDetails.ts | 45 +- .../src/operations/backupCrrJobs.ts | 85 +- .../src/operations/backupEngines.ts | 139 +- .../src/operations/backupJobs.ts | 84 +- .../src/operations/backupOperationResults.ts | 44 +- .../src/operations/backupOperationStatuses.ts | 44 +- .../src/operations/backupPolicies.ts | 89 +- .../src/operations/backupProtectableItems.ts | 91 +- .../src/operations/backupProtectedItems.ts | 91 +- .../src/operations/backupProtectedItemsCrr.ts | 91 +- .../operations/backupProtectionContainers.ts | 89 +- .../src/operations/backupProtectionIntent.ts | 91 +- .../backupResourceEncryptionConfigs.ts | 98 +- .../backupResourceStorageConfigs.ts | 150 +- .../operations/backupResourceVaultConfigs.ts | 152 +- .../src/operations/backupStatus.ts | 45 +- .../src/operations/backupUsageSummaries.ts | 50 +- .../src/operations/backupUsageSummariesCRR.ts | 50 +- .../src/operations/backupWorkloadItems.ts | 93 +- .../src/operations/backups.ts | 56 +- .../src/operations/crossRegionRestore.ts | 36 +- .../src/operations/crrOperationResults.ts | 40 +- .../src/operations/crrOperationStatus.ts | 46 +- .../operations/exportJobsOperationResults.ts | 46 +- .../src/operations/featureSupport.ts | 47 +- .../itemLevelRecoveryConnections.ts | 116 +- .../src/operations/jobCancellations.ts | 44 +- .../src/operations/jobDetails.ts | 44 +- .../src/operations/jobOperationResults.ts | 48 +- .../src/operations/jobs.ts | 47 +- .../src/operations/operation.ts | 50 +- .../src/operations/operations.ts | 58 +- .../privateEndpointConnectionOperations.ts | 123 +- .../operations/privateEndpointOperations.ts | 48 +- .../src/operations/protectableContainers.ts | 87 +- .../protectedItemOperationResults.ts | 56 +- .../protectedItemOperationStatuses.ts | 56 +- .../src/operations/protectedItems.ts | 163 +- .../protectionContainerOperationResults.ts | 54 +- ...tectionContainerRefreshOperationResults.ts | 48 +- .../src/operations/protectionContainers.ts | 246 +- .../operations/protectionIntentOperations.ts | 195 +- .../src/operations/protectionPolicies.ts | 128 +- .../protectionPolicyOperationResults.ts | 48 +- .../protectionPolicyOperationStatuses.ts | 48 +- .../src/operations/recoveryPoints.ts | 211 +- .../src/operations/recoveryPointsCrr.ts | 95 +- .../recoveryPointsRecommendedForMove.ts | 93 +- .../src/operations/restores.ts | 48 +- .../src/operations/securityPINs.ts | 46 +- .../src/recoveryServicesBackupClient.ts | 191 +- .../recoveryServicesBackupClientContext.ts | 17 +- 65 files changed, 4434 insertions(+), 2442 deletions(-) diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index 7a96538fce7b..4883ae64daf6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md @@ -14,15 +14,18 @@ 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 @@ -36,6 +39,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ 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. ##### Sample code @@ -51,20 +55,24 @@ 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.backupResourceVaultConfigs + .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. 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 @@ -82,21 +90,26 @@ 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.backupResourceVaultConfigs + .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/rollup.config.js b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js index bb0c6fd4e76b..ea6687ad2d1a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js @@ -7,10 +7,7 @@ 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", @@ -28,10 +25,7 @@ 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/backupOperationResultsMappers.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts index 3c4862aa38f6..841f64f3c0bd 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/backupOperationResultsMappers.ts @@ -6,7 +6,4 @@ * 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/index.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts index 460f7408d4cf..4d1ebf9b4cf2 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/models/index.ts @@ -270,7 +270,15 @@ 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. @@ -443,7 +451,12 @@ 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. @@ -520,7 +533,11 @@ 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. @@ -591,7 +608,11 @@ 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. @@ -606,7 +627,10 @@ 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. @@ -640,7 +664,14 @@ 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. @@ -725,7 +756,10 @@ 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. @@ -1098,8 +1132,7 @@ 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. @@ -1173,7 +1206,14 @@ 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. @@ -1629,7 +1669,11 @@ 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. @@ -2254,7 +2298,11 @@ 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 @@ -2288,7 +2336,9 @@ export interface AzureWorkloadRecoveryPoint { /** * Contains the possible cases for AzureWorkloadPointInTimeRecoveryPoint. */ -export type AzureWorkloadPointInTimeRecoveryPointUnion = AzureWorkloadPointInTimeRecoveryPoint | AzureWorkloadSAPHanaPointInTimeRecoveryPoint; +export type AzureWorkloadPointInTimeRecoveryPointUnion = + | AzureWorkloadPointInTimeRecoveryPoint + | AzureWorkloadSAPHanaPointInTimeRecoveryPoint; /** * Recovery point specific to PointInTime @@ -2326,7 +2376,11 @@ 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. @@ -2495,7 +2549,10 @@ 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. @@ -2538,7 +2595,9 @@ 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 @@ -2614,7 +2673,9 @@ 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 @@ -2694,7 +2755,10 @@ 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 @@ -2749,7 +2813,9 @@ 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 @@ -3274,7 +3340,10 @@ 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. @@ -4205,7 +4274,9 @@ 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 @@ -4462,7 +4533,9 @@ 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. @@ -4477,7 +4550,9 @@ export interface ValidateOperationRequest { /** * Contains the possible cases for ValidateRestoreOperationRequest. */ -export type ValidateRestoreOperationRequestUnion = ValidateRestoreOperationRequest | ValidateIaasVMRestoreOperationRequest; +export type ValidateRestoreOperationRequestUnion = + | ValidateRestoreOperationRequest + | ValidateIaasVMRestoreOperationRequest; /** * AzureRestoreValidation request. @@ -4650,7 +4725,15 @@ 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 @@ -4934,7 +5017,11 @@ 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. @@ -4963,7 +5050,11 @@ 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. @@ -5034,7 +5125,10 @@ 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. @@ -5067,7 +5161,10 @@ 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. @@ -5152,7 +5249,10 @@ 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. @@ -5290,7 +5390,10 @@ 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. @@ -5469,7 +5572,10 @@ export interface AzureStorageContainer { /** * Contains the possible cases for ProtectableContainer. */ -export type ProtectableContainerUnion = ProtectableContainer | AzureStorageProtectableContainer | AzureVMAppContainerProtectableContainer; +export type ProtectableContainerUnion = + | ProtectableContainer + | AzureStorageProtectableContainer + | AzureVMAppContainerProtectableContainer; /** * Protectable Container Class. @@ -5641,7 +5747,14 @@ 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. @@ -5712,7 +5825,14 @@ 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. @@ -7105,7 +7225,12 @@ export interface OperationStatusError { /** * Contains the possible cases for OperationStatusExtendedInfo. */ -export type OperationStatusExtendedInfoUnion = OperationStatusExtendedInfo | OperationStatusJobExtendedInfo | OperationStatusJobsExtendedInfo | OperationStatusProvisionILRExtendedInfo | OperationStatusRecoveryPointExtendedInfo; +export type OperationStatusExtendedInfoUnion = + | OperationStatusExtendedInfo + | OperationStatusJobExtendedInfo + | OperationStatusJobsExtendedInfo + | OperationStatusProvisionILRExtendedInfo + | OperationStatusRecoveryPointExtendedInfo; /** * Base class for additional information of operation status. @@ -8053,7 +8178,10 @@ export interface WorkloadCrrAccessToken { /** * Contains the possible cases for FeatureSupportRequest. */ -export type FeatureSupportRequestUnion = FeatureSupportRequest | AzureBackupGoalFeatureSupportRequest | AzureVMResourceFeatureSupportRequest; +export type FeatureSupportRequestUnion = + | FeatureSupportRequest + | AzureBackupGoalFeatureSupportRequest + | AzureVMResourceFeatureSupportRequest; /** * Base class for feature request @@ -8078,7 +8206,10 @@ export interface AzureBackupGoalFeatureSupportRequest { /** * Contains the possible cases for ProtectionIntent. */ -export type ProtectionIntentUnion = ProtectionIntent | AzureRecoveryServiceVaultProtectionIntentUnion | AzureResourceProtectionIntent; +export type ProtectionIntentUnion = + | ProtectionIntent + | AzureRecoveryServiceVaultProtectionIntentUnion + | AzureResourceProtectionIntent; /** * Base class for backup ProtectionIntent. @@ -8116,7 +8247,9 @@ export interface ProtectionIntent { /** * Contains the possible cases for AzureRecoveryServiceVaultProtectionIntent. */ -export type AzureRecoveryServiceVaultProtectionIntentUnion = AzureRecoveryServiceVaultProtectionIntent | AzureWorkloadAutoProtectionIntentUnion; +export type AzureRecoveryServiceVaultProtectionIntentUnion = + | AzureRecoveryServiceVaultProtectionIntent + | AzureWorkloadAutoProtectionIntentUnion; /** * Azure Recovery Services Vault specific protection intent item. @@ -8220,7 +8353,9 @@ export interface AzureVMResourceFeatureSupportResponse { /** * Contains the possible cases for AzureWorkloadAutoProtectionIntent. */ -export type AzureWorkloadAutoProtectionIntentUnion = AzureWorkloadAutoProtectionIntent | AzureWorkloadSQLAutoProtectionIntent; +export type AzureWorkloadAutoProtectionIntentUnion = + | AzureWorkloadAutoProtectionIntent + | AzureWorkloadSQLAutoProtectionIntent; /** * Azure Recovery Services Vault specific protection intent item. @@ -8807,7 +8942,8 @@ export interface BackupProtectionContainersListOptionalParams extends msRest.Req /** * Optional Parameters. */ -export interface BackupProtectionContainersListNextOptionalParams extends msRest.RequestOptionsBase { +export interface BackupProtectionContainersListNextOptionalParams + extends msRest.RequestOptionsBase { /** * OData filter options. */ @@ -8968,88 +9104,89 @@ 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 { -} +export interface ProtectionContainerResourceList + extends Array, + ResourceList {} /** * @interface * Backup management usage for vault. * @extends Array */ -export interface BackupManagementUsageList extends Array { -} +export interface BackupManagementUsageList extends Array {} /** * @interface * List of ProtectionIntent resources * @extends Array, ResourceList */ -export interface ProtectionIntentResourceList extends Array, ResourceList { -} +export interface ProtectionIntentResourceList + extends Array, + ResourceList {} /** * @interface @@ -9069,7 +9206,7 @@ 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 @@ -42,15 +45,26 @@ 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; } } @@ -58,18 +72,11 @@ 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 cad106a88dd4..f85b8be8d222 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/bMSPrepareDataMoveOperationResult.ts @@ -34,7 +34,12 @@ 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 @@ -42,7 +47,12 @@ 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 @@ -51,8 +61,22 @@ 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, @@ -61,7 +85,8 @@ export class BMSPrepareDataMoveOperationResult { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -69,19 +94,16 @@ 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 383a74d1df5a..60fd4d0ccd8a 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobDetails.ts @@ -32,21 +32,39 @@ 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, @@ -54,7 +72,8 @@ export class BackupCrrJobDetails { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -62,17 +81,11 @@ 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 2e25ff77a4d9..80b8046c906e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupCrrJobs.ts @@ -32,21 +32,41 @@ 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, @@ -54,7 +74,8 @@ export class BackupCrrJobs { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -63,7 +84,10 @@ 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 @@ -74,15 +98,26 @@ 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; } } @@ -90,19 +125,11 @@ 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: { @@ -125,17 +152,9 @@ 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 c3ebf07f9475..2bf63551c984 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupEngines.ts @@ -34,14 +34,22 @@ 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 @@ -49,8 +57,20 @@ 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, @@ -58,7 +78,8 @@ export class BackupEngines { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -70,7 +91,12 @@ 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 @@ -78,7 +104,12 @@ 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 @@ -87,8 +118,22 @@ 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, @@ -97,7 +142,8 @@ export class BackupEngines { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -107,26 +153,43 @@ 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; } } @@ -134,20 +197,11 @@ 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 @@ -161,21 +215,16 @@ 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 @@ -191,17 +240,9 @@ 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 c48c8fdb1802..0d24d427ed6f 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupJobs.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,18 @@ 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, @@ -57,7 +75,8 @@ export class BackupJobs { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -66,7 +85,10 @@ 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 @@ -77,15 +99,26 @@ 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; } } @@ -93,20 +126,11 @@ 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 @@ -122,17 +146,9 @@ 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 0bca2942f1ec..886b27e600fa 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationResults.ts @@ -39,7 +39,12 @@ 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 @@ -47,7 +52,12 @@ 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 @@ -56,8 +66,20 @@ 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, @@ -66,7 +88,8 @@ export class BackupOperationResults { options }, getOperationSpec, - callback); + callback + ); } } @@ -74,19 +97,16 @@ 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 9b45cfbb7cc1..025fa7015648 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupOperationStatuses.ts @@ -38,7 +38,12 @@ 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 @@ -46,7 +51,12 @@ 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 @@ -55,8 +65,20 @@ 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, @@ -65,7 +87,8 @@ export class BackupOperationStatuses { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -73,19 +96,16 @@ 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 802d87edb5b5..75788a204848 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupPolicies.ts @@ -35,14 +35,22 @@ 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 @@ -50,8 +58,20 @@ 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, @@ -59,7 +79,8 @@ export class BackupPolicies { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -70,26 +91,43 @@ 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; } } @@ -97,19 +135,11 @@ 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 @@ -125,16 +155,9 @@ 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 74f0b4641bff..b293c1224b78 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectableItems.ts @@ -35,14 +35,22 @@ 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 @@ -50,8 +58,20 @@ 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, @@ -59,7 +79,8 @@ export class BackupProtectableItems { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -70,26 +91,43 @@ 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; } } @@ -97,20 +135,11 @@ 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 @@ -126,17 +155,9 @@ 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 64ccb9c8d104..a6f15c15fda2 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItems.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupProtectedItems { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -66,26 +87,43 @@ 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; } } @@ -93,20 +131,11 @@ 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 @@ -122,17 +151,9 @@ 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 0f444c1f62fc..b99d87e81046 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectedItemsCrr.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupProtectedItemsCrr { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -66,26 +87,43 @@ 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; } } @@ -93,20 +131,11 @@ 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 @@ -122,17 +151,9 @@ 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 9325cecbc2f9..5ba9ca489818 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionContainers.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupProtectionContainers { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -66,26 +87,43 @@ 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; } } @@ -93,19 +131,11 @@ 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 @@ -121,16 +151,9 @@ 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 779e3f685e6a..b9267af25c08 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupProtectionIntent.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupProtectionIntent { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -66,26 +87,43 @@ 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; } } @@ -93,20 +131,11 @@ 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.apiVersion2, Parameters.filter, Parameters.skipToken], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.ProtectionIntentResourceList @@ -122,17 +151,9 @@ 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.apiVersion2, 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 a42dd05ebdfa..5202dce83827 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceEncryptionConfigs.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupResourceEncryptionConfigs { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -69,7 +90,12 @@ 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 @@ -77,7 +103,12 @@ 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 @@ -86,8 +117,20 @@ 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, @@ -96,7 +139,8 @@ export class BackupResourceEncryptionConfigs { options }, updateOperationSpec, - callback); + callback + ); } } @@ -104,18 +148,11 @@ 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 @@ -129,18 +166,11 @@ 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 ad8882f28b87..e74dbc0f4749 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceStorageConfigs.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupResourceStorageConfigs { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -69,7 +90,12 @@ 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 @@ -77,7 +103,12 @@ 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 @@ -86,8 +117,22 @@ 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, @@ -96,7 +141,8 @@ export class BackupResourceStorageConfigs { options }, updateOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -108,7 +154,12 @@ 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 @@ -116,7 +167,12 @@ 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 @@ -125,8 +181,20 @@ 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, @@ -135,7 +203,8 @@ export class BackupResourceStorageConfigs { options }, patchOperationSpec, - callback); + callback + ); } } @@ -143,18 +212,11 @@ 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 @@ -168,18 +230,11 @@ 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: { @@ -200,18 +255,11 @@ const updateOperationSpec: msRest.OperationSpec = { const patchOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", - urlParameters: [ - Parameters.vaultName, - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig", + urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], + queryParameters: [Parameters.apiVersion1], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts index ec4af9d145a9..6845c7e2b273 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupResourceVaultConfigs.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupResourceVaultConfigs { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -69,7 +90,12 @@ 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 @@ -77,7 +103,12 @@ 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 @@ -86,8 +117,22 @@ 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, @@ -96,7 +141,8 @@ export class BackupResourceVaultConfigs { options }, updateOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -108,7 +154,12 @@ 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 @@ -116,7 +167,12 @@ 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 @@ -125,8 +181,22 @@ 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, @@ -135,7 +205,8 @@ export class BackupResourceVaultConfigs { options }, putOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -143,18 +214,11 @@ 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 @@ -168,18 +232,11 @@ 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: { @@ -200,18 +257,11 @@ 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 5d2b83f87afb..bcc5944088fb 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupStatus.ts @@ -32,21 +32,39 @@ 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, @@ -54,7 +72,8 @@ export class BackupStatus { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -62,17 +81,11 @@ 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.apiVersion2], + 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 d667e5042194..0255409011fd 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummaries.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupUsageSummaries { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -65,20 +86,11 @@ 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.apiVersion2, 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 02b7f2a70c77..1143f90c5a14 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupUsageSummariesCRR.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,20 @@ 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, @@ -57,7 +77,8 @@ export class BackupUsageSummariesCRR { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -65,20 +86,11 @@ 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 425b8d90da37..702117027c8b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backupWorkloadItems.ts @@ -37,7 +37,13 @@ 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 @@ -46,7 +52,13 @@ 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 @@ -56,8 +68,24 @@ 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, @@ -67,7 +95,8 @@ export class BackupWorkloadItems { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -78,26 +107,43 @@ 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; } } @@ -105,7 +151,8 @@ 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, @@ -113,14 +160,8 @@ 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 @@ -136,17 +177,9 @@ 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 1f1e35c2e1c1..e17b17f12ed7 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/backups.ts @@ -39,7 +39,15 @@ 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 @@ -50,7 +58,15 @@ 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 @@ -62,8 +78,26 @@ 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, @@ -75,7 +109,8 @@ export class Backups { options }, triggerOperationSpec, - callback); + callback + ); } } @@ -83,7 +118,8 @@ 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, @@ -92,12 +128,8 @@ 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 fd5493cb1ff2..293a7830584e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crossRegionRestore.ts @@ -34,9 +34,14 @@ 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() + ); } /** @@ -47,7 +52,11 @@ 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, @@ -55,7 +64,8 @@ export class CrossRegionRestore { options }, beginTriggerOperationSpec, - options); + options + ); } } @@ -63,17 +73,11 @@ 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 a20e685b63bc..058380fe3565 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationResults.ts @@ -30,7 +30,11 @@ 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 @@ -43,8 +47,18 @@ 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, @@ -52,7 +66,8 @@ export class CrrOperationResults { options }, getOperationSpec, - callback); + callback + ); } } @@ -60,18 +75,11 @@ 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 b398dff30c42..585470e30c6c 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/crrOperationStatus.ts @@ -31,21 +31,39 @@ 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, @@ -53,7 +71,8 @@ export class CrrOperationStatus { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -61,18 +80,11 @@ 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 2675bad2842f..42aa67578d76 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/exportJobsOperationResults.ts @@ -37,7 +37,12 @@ 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 @@ -45,7 +50,12 @@ 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 @@ -54,8 +64,22 @@ 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, @@ -64,7 +88,8 @@ export class ExportJobsOperationResults { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -72,19 +97,16 @@ 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 c91e18bc8952..21c98f364989 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/featureSupport.ts @@ -32,21 +32,41 @@ 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, @@ -54,7 +74,8 @@ export class FeatureSupport { options }, validateOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -62,17 +83,11 @@ 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.apiVersion2], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts index bff3da7f66a8..82b8dc23495e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/itemLevelRecoveryConnections.ts @@ -44,7 +44,16 @@ 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 @@ -58,7 +67,16 @@ 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 @@ -73,8 +91,28 @@ 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, @@ -87,7 +125,8 @@ export class ItemLevelRecoveryConnections { options }, provisionOperationSpec, - callback); + callback + ); } /** @@ -106,7 +145,15 @@ 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 @@ -119,7 +166,15 @@ 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 @@ -133,8 +188,26 @@ 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, @@ -146,7 +219,8 @@ export class ItemLevelRecoveryConnections { options }, revokeOperationSpec, - callback); + callback + ); } } @@ -154,7 +228,8 @@ 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, @@ -164,12 +239,8 @@ const provisionOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.recoveryPointId ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion0], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { @@ -188,7 +259,8 @@ 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, @@ -198,12 +270,8 @@ 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 ccdafd6a982c..b10a37d81a88 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobCancellations.ts @@ -34,7 +34,12 @@ 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 @@ -42,7 +47,12 @@ 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 @@ -51,8 +61,20 @@ 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, @@ -61,7 +83,8 @@ export class JobCancellations { options }, triggerOperationSpec, - callback); + callback + ); } } @@ -69,19 +92,16 @@ 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 2ded9da4738c..d5ca623db423 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobDetails.ts @@ -34,7 +34,12 @@ 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 @@ -42,7 +47,12 @@ 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 @@ -51,8 +61,20 @@ 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, @@ -61,7 +83,8 @@ export class JobDetails { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -69,19 +92,16 @@ 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 69aac7aa311b..18ab36e75100 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobOperationResults.ts @@ -34,7 +34,13 @@ 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 @@ -43,7 +49,13 @@ 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 @@ -53,8 +65,22 @@ 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, @@ -64,7 +90,8 @@ export class JobOperationResults { options }, getOperationSpec, - callback); + callback + ); } } @@ -72,7 +99,8 @@ 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, @@ -80,12 +108,8 @@ 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 5e1656597d12..9c159e961400 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/jobs.ts @@ -33,14 +33,22 @@ 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 @@ -48,8 +56,18 @@ 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, @@ -57,7 +75,8 @@ export class Jobs { options }, exportMethodOperationSpec, - callback); + callback + ); } } @@ -65,19 +84,11 @@ 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 33aeb7df4a85..01f67d0b6b89 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operation.ts @@ -34,7 +34,12 @@ 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 @@ -42,7 +47,12 @@ 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 @@ -51,8 +61,20 @@ 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, @@ -61,7 +83,8 @@ export class Operation { options }, validateOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -69,18 +92,11 @@ 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 1b2a56510e81..bdcdb85b3a31 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/operations.ts @@ -39,14 +39,21 @@ 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; } /** @@ -55,26 +62,41 @@ 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; } } @@ -83,12 +105,8 @@ 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.apiVersion3], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.ClientDiscoveryResponse @@ -104,15 +122,9 @@ 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.apiVersion3], + 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 4c002992b0bb..06cc4a74e61b 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointConnectionOperations.ts @@ -35,7 +35,12 @@ 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 @@ -43,7 +48,12 @@ 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 @@ -52,8 +62,22 @@ 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, @@ -62,7 +86,8 @@ export class PrivateEndpointConnectionOperations { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -75,9 +100,22 @@ 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; + 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 + >; } /** @@ -89,9 +127,18 @@ 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()); } /** @@ -104,7 +151,13 @@ 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, @@ -114,7 +167,8 @@ export class PrivateEndpointConnectionOperations { options }, beginPutOperationSpec, - options); + options + ); } /** @@ -126,7 +180,12 @@ 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, @@ -135,7 +194,8 @@ export class PrivateEndpointConnectionOperations { options }, beginDeleteMethodOperationSpec, - options); + options + ); } } @@ -143,19 +203,16 @@ 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 @@ -169,19 +226,16 @@ 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: { @@ -205,19 +259,16 @@ 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 20d37575ffa8..e2c39915da65 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/privateEndpointOperations.ts @@ -35,7 +35,13 @@ 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 @@ -44,7 +50,13 @@ 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 @@ -54,8 +66,22 @@ 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, @@ -65,7 +91,8 @@ export class PrivateEndpointOperations { options }, getOperationStatusOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -73,7 +100,8 @@ 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, @@ -81,12 +109,8 @@ 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 5600655fd465..8f20b9206463 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectableContainers.ts @@ -34,7 +34,12 @@ 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 @@ -42,7 +47,12 @@ 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 @@ -51,8 +61,22 @@ 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, @@ -61,7 +85,8 @@ export class ProtectableContainers { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -70,26 +95,43 @@ 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; } } @@ -97,20 +139,16 @@ 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 @@ -126,16 +164,9 @@ 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 1c7974cbf442..4cb7ea3a0604 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationResults.ts @@ -37,7 +37,15 @@ 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 @@ -48,7 +56,15 @@ 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 @@ -60,8 +76,26 @@ 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, @@ -73,7 +107,8 @@ export class ProtectedItemOperationResults { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -81,7 +116,8 @@ 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, @@ -91,12 +127,8 @@ 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 a4539ff030ea..1c59cf116ce5 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItemOperationStatuses.ts @@ -41,7 +41,15 @@ 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 @@ -52,7 +60,15 @@ 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 @@ -64,8 +80,26 @@ 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, @@ -77,7 +111,8 @@ export class ProtectedItemOperationStatuses { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -85,7 +120,8 @@ 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, @@ -95,12 +131,8 @@ 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 dbb4bc244143..057f58807854 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectedItems.ts @@ -38,7 +38,14 @@ 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 @@ -48,7 +55,14 @@ 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 @@ -59,8 +73,26 @@ 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, @@ -71,7 +103,8 @@ export class ProtectedItems { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -89,7 +122,15 @@ 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 @@ -100,7 +141,15 @@ 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 @@ -112,8 +161,26 @@ 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, @@ -125,7 +192,8 @@ export class ProtectedItems { options }, createOrUpdateOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -141,7 +209,14 @@ 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 @@ -151,7 +226,14 @@ 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 @@ -162,8 +244,24 @@ 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, @@ -174,7 +272,8 @@ export class ProtectedItems { options }, deleteMethodOperationSpec, - callback); + callback + ); } } @@ -182,7 +281,8 @@ 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, @@ -191,13 +291,8 @@ 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 @@ -211,7 +306,8 @@ 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, @@ -220,12 +316,8 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion0], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { @@ -247,7 +339,8 @@ 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, @@ -256,12 +349,8 @@ 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 fe6189b3fd39..0a4b0a58d73f 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerOperationResults.ts @@ -36,7 +36,14 @@ 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 @@ -46,7 +53,14 @@ 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 @@ -57,8 +71,26 @@ 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, @@ -69,7 +101,8 @@ export class ProtectionContainerOperationResults { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -77,7 +110,8 @@ 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, @@ -86,12 +120,8 @@ 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 7da6ff9c3fbc..ff8643406e14 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainerRefreshOperationResults.ts @@ -34,7 +34,13 @@ 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 @@ -43,7 +49,13 @@ 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 @@ -53,8 +65,22 @@ 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, @@ -64,7 +90,8 @@ export class ProtectionContainerRefreshOperationResults { options }, getOperationSpec, - callback); + callback + ); } } @@ -72,7 +99,8 @@ 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, @@ -80,12 +108,8 @@ 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 3a1f6fd8bf8e..a9328ba5f22e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionContainers.ts @@ -35,7 +35,13 @@ 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 @@ -44,7 +50,13 @@ 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 @@ -54,8 +66,24 @@ 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, @@ -65,7 +93,8 @@ export class ProtectionContainers { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -82,7 +111,14 @@ 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 @@ -92,7 +128,14 @@ 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 @@ -103,8 +146,26 @@ 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, @@ -115,7 +176,8 @@ export class ProtectionContainers { options }, registerOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -132,7 +194,13 @@ 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 @@ -142,7 +210,13 @@ 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 @@ -153,8 +227,22 @@ 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, @@ -164,7 +252,8 @@ export class ProtectionContainers { options }, unregisterOperationSpec, - callback); + callback + ); } /** @@ -179,7 +268,13 @@ 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 @@ -188,7 +283,13 @@ 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 @@ -198,8 +299,22 @@ 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, @@ -209,7 +324,8 @@ export class ProtectionContainers { options }, inquireOperationSpec, - callback); + callback + ); } /** @@ -223,7 +339,12 @@ 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 @@ -231,7 +352,12 @@ 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 @@ -240,8 +366,20 @@ 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, @@ -250,7 +388,8 @@ export class ProtectionContainers { options }, refreshOperationSpec, - callback); + callback + ); } } @@ -258,7 +397,8 @@ 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, @@ -266,12 +406,8 @@ 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 @@ -285,7 +421,8 @@ 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, @@ -293,12 +430,8 @@ const registerOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.containerName ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion0], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { @@ -320,7 +453,8 @@ 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, @@ -328,12 +462,8 @@ const unregisterOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.containerName ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion0], + headerParameters: [Parameters.acceptLanguage], responses: { 200: {}, 202: {}, @@ -347,7 +477,8 @@ 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, @@ -355,13 +486,8 @@ 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: { @@ -373,20 +499,16 @@ 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 8b0b7b2ac5d7..f047cf460784 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionIntentOperations.ts @@ -35,21 +35,41 @@ 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, @@ -57,7 +77,8 @@ export class ProtectionIntentOperations { options }, validateOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -72,7 +93,13 @@ 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 @@ -81,7 +108,13 @@ 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 @@ -91,8 +124,22 @@ 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, @@ -102,7 +149,8 @@ export class ProtectionIntentOperations { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -116,7 +164,14 @@ 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 @@ -126,7 +181,14 @@ 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 @@ -137,8 +199,24 @@ 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, @@ -149,7 +227,8 @@ export class ProtectionIntentOperations { options }, createOrUpdateOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -162,7 +241,13 @@ 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 @@ -171,7 +256,13 @@ 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 @@ -181,8 +272,22 @@ 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, @@ -192,7 +297,8 @@ export class ProtectionIntentOperations { options }, deleteMethodOperationSpec, - callback); + callback + ); } } @@ -200,17 +306,11 @@ 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.apiVersion2], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { @@ -231,7 +331,8 @@ 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, @@ -239,12 +340,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.intentObjectName ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion2], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.ProtectionIntentResource @@ -258,7 +355,8 @@ 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, @@ -266,12 +364,8 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.intentObjectName ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion2], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { @@ -292,7 +386,8 @@ 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, @@ -300,12 +395,8 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.fabricName, Parameters.intentObjectName ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion2], + 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 ade43e8109c9..519dbbe972b0 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicies.ts @@ -37,7 +37,12 @@ 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 @@ -45,7 +50,12 @@ 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 @@ -54,8 +64,20 @@ 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, @@ -64,7 +86,8 @@ export class ProtectionPolicies { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -79,7 +102,13 @@ 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 @@ -88,7 +117,13 @@ 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 @@ -98,8 +133,22 @@ 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, @@ -109,7 +158,8 @@ export class ProtectionPolicies { options }, createOrUpdateOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -123,9 +173,18 @@ 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()); } /** @@ -139,7 +198,12 @@ 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, @@ -148,7 +212,8 @@ export class ProtectionPolicies { options }, beginDeleteMethodOperationSpec, - options); + options + ); } } @@ -156,19 +221,16 @@ 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 @@ -182,19 +244,16 @@ 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: { @@ -216,19 +275,16 @@ 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 2861f414afaa..1b22688c49a7 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationResults.ts @@ -35,7 +35,13 @@ 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 @@ -44,7 +50,13 @@ 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 @@ -54,8 +66,22 @@ 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, @@ -65,7 +91,8 @@ export class ProtectionPolicyOperationResults { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -73,7 +100,8 @@ 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, @@ -81,12 +109,8 @@ 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 0f1ff4a27774..940441f8973e 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/protectionPolicyOperationStatuses.ts @@ -39,7 +39,13 @@ 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 @@ -48,7 +54,13 @@ 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 @@ -58,8 +70,22 @@ 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, @@ -69,7 +95,8 @@ export class ProtectionPolicyOperationStatuses { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -77,7 +104,8 @@ 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, @@ -85,12 +113,8 @@ 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 e28a8b7b39b6..97030f472517 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPoints.ts @@ -36,7 +36,14 @@ 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 @@ -46,7 +53,14 @@ 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 @@ -57,8 +71,26 @@ 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, @@ -69,7 +101,8 @@ export class RecoveryPoints { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -86,7 +119,15 @@ 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 @@ -97,7 +138,15 @@ 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 @@ -109,8 +158,26 @@ 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, @@ -122,7 +189,8 @@ export class RecoveryPoints { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -138,7 +206,16 @@ 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 @@ -150,7 +227,16 @@ 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 @@ -163,8 +249,28 @@ 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, @@ -177,7 +283,8 @@ export class RecoveryPoints { options }, getAccessTokenOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -186,26 +293,43 @@ 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; } } @@ -213,7 +337,8 @@ 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, @@ -222,13 +347,8 @@ 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 @@ -242,7 +362,8 @@ 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, @@ -252,12 +373,8 @@ 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 @@ -271,7 +388,8 @@ 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, @@ -281,12 +399,8 @@ const getAccessTokenOperationSpec: msRest.OperationSpec = { Parameters.protectedItemName, Parameters.recoveryPointId ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion1], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { @@ -310,16 +424,9 @@ 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 4fbb081b4346..bb3498734070 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsCrr.ts @@ -36,7 +36,14 @@ 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 @@ -46,7 +53,14 @@ 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 @@ -57,8 +71,26 @@ 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, @@ -69,7 +101,8 @@ export class RecoveryPointsCrr { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -78,26 +111,43 @@ 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; } } @@ -105,7 +155,8 @@ 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, @@ -114,13 +165,8 @@ 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 @@ -136,16 +182,9 @@ 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 b87f7d91fa0a..bee19d085a56 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/recoveryPointsRecommendedForMove.ts @@ -37,7 +37,15 @@ 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 @@ -48,7 +56,15 @@ 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 @@ -60,8 +76,26 @@ 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, @@ -73,7 +107,8 @@ export class RecoveryPointsRecommendedForMove { options }, listOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -82,26 +117,41 @@ 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; } } @@ -109,7 +159,8 @@ 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, @@ -118,12 +169,8 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.containerName, Parameters.protectedItemName ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + queryParameters: [Parameters.apiVersion0], + headerParameters: [Parameters.acceptLanguage], requestBody: { parameterPath: "parameters", mapper: { @@ -146,15 +193,9 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "POST", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + urlParameters: [Parameters.nextPageLink], + queryParameters: [Parameters.apiVersion0], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.RecoveryPointResourceList diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts index 1baf3c436493..4a6ece622308 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/restores.ts @@ -41,9 +41,26 @@ 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()); } /** @@ -61,7 +78,16 @@ 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, @@ -74,7 +100,8 @@ export class Restores { options }, beginTriggerOperationSpec, - options); + options + ); } } @@ -82,7 +109,8 @@ 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, @@ -92,12 +120,8 @@ 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 70f02e9e0d44..59ad1230e3ae 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/operations/securityPINs.ts @@ -33,14 +33,22 @@ export class SecurityPINs { * @param [options] The optional parameters * @returns Promise */ - get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + get( + vaultName: string, + resourceGroupName: string, + options?: msRest.RequestOptionsBase + ): Promise; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is * present. * @param callback The callback */ - get(vaultName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + get( + vaultName: string, + resourceGroupName: string, + callback: msRest.ServiceCallback + ): void; /** * @param vaultName The name of the recovery services vault. * @param resourceGroupName The name of the resource group where the recovery services vault is @@ -48,8 +56,18 @@ export class SecurityPINs { * @param options The optional parameters * @param callback The callback */ - get(vaultName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(vaultName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + vaultName: string, + resourceGroupName: string, + options: msRest.RequestOptionsBase, + callback: msRest.ServiceCallback + ): void; + get( + vaultName: string, + resourceGroupName: string, + options?: msRest.RequestOptionsBase | msRest.ServiceCallback, + callback?: msRest.ServiceCallback + ): Promise { return this.client.sendOperationRequest( { vaultName, @@ -57,7 +75,8 @@ export class SecurityPINs { options }, getOperationSpec, - callback) as Promise; + callback + ) as Promise; } } @@ -65,18 +84,11 @@ export class SecurityPINs { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN", - urlParameters: [ - Parameters.vaultName, - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], + path: + "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN", + urlParameters: [Parameters.vaultName, Parameters.resourceGroupName, Parameters.subscriptionId], + queryParameters: [Parameters.apiVersion0], + headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.TokenInformation diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts index c7754b3c7caa..10f64ffff184 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClient.ts @@ -16,7 +16,6 @@ import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { RecoveryServicesBackupClientContext } from "./recoveryServicesBackupClientContext"; - class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { // Operation groups backupResourceVaultConfigs: operations.BackupResourceVaultConfigs; @@ -83,7 +82,11 @@ 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.backupResourceVaultConfigs = new operations.BackupResourceVaultConfigs(this); this.backupResourceEncryptionConfigs = new operations.BackupResourceEncryptionConfigs(this); @@ -106,11 +109,15 @@ 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); @@ -148,7 +155,12 @@ 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 @@ -156,7 +168,12 @@ 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 @@ -165,8 +182,20 @@ 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, @@ -175,7 +204,8 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, getOperationStatusOperationSpec, - callback) as Promise; + callback + ) as Promise; } /** @@ -187,9 +217,18 @@ 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()); } /** @@ -201,9 +240,18 @@ 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()); } /** @@ -219,9 +267,26 @@ 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()); } /** @@ -233,7 +298,12 @@ 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, @@ -242,7 +312,8 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginBMSPrepareDataMoveOperationSpec, - options); + options + ); } /** @@ -254,7 +325,12 @@ 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, @@ -263,7 +339,8 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginBMSTriggerDataMoveOperationSpec, - options); + options + ); } /** @@ -279,7 +356,16 @@ 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, @@ -292,7 +378,8 @@ class RecoveryServicesBackupClient extends RecoveryServicesBackupClientContext { options }, beginMoveRecoveryPointOperationSpec, - options); + options + ); } } @@ -300,19 +387,16 @@ 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 @@ -326,18 +410,11 @@ 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: { @@ -357,18 +434,11 @@ 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: { @@ -388,7 +458,8 @@ 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, @@ -398,12 +469,8 @@ 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 e195cfb8c792..5accc9b9cae6 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/src/recoveryServicesBackupClientContext.ts @@ -30,12 +30,16 @@ 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) { @@ -48,7 +52,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"; @@ -58,7 +62,10 @@ 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; } } From c77c247d608320f989c2d919c61375e79283b739 Mon Sep 17 00:00:00 2001 From: colawwj Date: Thu, 10 Jun 2021 10:20:13 +0800 Subject: [PATCH 3/4] update readme --- sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index 4883ae64daf6..c1e8839cd2b2 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md @@ -1,6 +1,6 @@ ## 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 From cae9e19a4be5a8fb307c088a4588308c8964f144 Mon Sep 17 00:00:00 2001 From: Wei Dong <40835867+dw511214992@users.noreply.github.com> Date: Fri, 11 Jun 2021 09:57:20 +0800 Subject: [PATCH 4/4] Update sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md Co-authored-by: Ramya Rao --- .../arm-recoveryservicesbackup/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md index c1e8839cd2b2..7924c707fce7 100644 --- a/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md @@ -4,8 +4,8 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f ### Currently supported environments -- Node.js version 8.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge, and Firefox. ### Prerequisites