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