@azure/arm-dataprotection 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +10451 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesAdhocBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesAdhocBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesAdhocBackupSample.js +46 -0
- package/dist-esm/samples-dev/backupInstancesAdhocBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesCreateOrUpdateSample.js +85 -0
- package/dist-esm/samples-dev/backupInstancesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/backupInstancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.js +52 -0
- package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.js +41 -0
- package/dist-esm/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesGetSample.js +40 -0
- package/dist-esm/samples-dev/backupInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesListSample.js +53 -0
- package/dist-esm/samples-dev/backupInstancesListSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesResumeBackupsSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesResumeBackupsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesResumeBackupsSample.js +40 -0
- package/dist-esm/samples-dev/backupInstancesResumeBackupsSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesResumeProtectionSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesResumeProtectionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesResumeProtectionSample.js +40 -0
- package/dist-esm/samples-dev/backupInstancesResumeProtectionSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesStopProtectionSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesStopProtectionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesStopProtectionSample.js +40 -0
- package/dist-esm/samples-dev/backupInstancesStopProtectionSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesSuspendBackupsSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesSuspendBackupsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesSuspendBackupsSample.js +40 -0
- package/dist-esm/samples-dev/backupInstancesSuspendBackupsSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesSyncBackupInstanceSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesSyncBackupInstanceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesSyncBackupInstanceSample.js +43 -0
- package/dist-esm/samples-dev/backupInstancesSyncBackupInstanceSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesTriggerRehydrateSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesTriggerRehydrateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesTriggerRehydrateSample.js +45 -0
- package/dist-esm/samples-dev/backupInstancesTriggerRehydrateSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesTriggerRestoreSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesTriggerRestoreSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesTriggerRestoreSample.js +163 -0
- package/dist-esm/samples-dev/backupInstancesTriggerRestoreSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesValidateForBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesValidateForBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesValidateForBackupSample.js +73 -0
- package/dist-esm/samples-dev/backupInstancesValidateForBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/backupInstancesValidateForRestoreSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupInstancesValidateForRestoreSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupInstancesValidateForRestoreSample.js +78 -0
- package/dist-esm/samples-dev/backupInstancesValidateForRestoreSample.js.map +1 -0
- package/dist-esm/samples-dev/backupPoliciesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupPoliciesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupPoliciesCreateOrUpdateSample.js +119 -0
- package/dist-esm/samples-dev/backupPoliciesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/backupPoliciesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupPoliciesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupPoliciesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/backupPoliciesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/backupPoliciesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupPoliciesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupPoliciesGetSample.js +40 -0
- package/dist-esm/samples-dev/backupPoliciesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/backupPoliciesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupPoliciesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupPoliciesListSample.js +53 -0
- package/dist-esm/samples-dev/backupPoliciesListSample.js.map +1 -0
- package/dist-esm/samples-dev/backupVaultOperationResultsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupVaultOperationResultsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupVaultOperationResultsGetSample.js +40 -0
- package/dist-esm/samples-dev/backupVaultOperationResultsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/backupVaultsCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/backupVaultsCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupVaultsCheckNameAvailabilitySample.js +43 -0
- package/dist-esm/samples-dev/backupVaultsCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/backupVaultsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupVaultsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupVaultsCreateOrUpdateSample.js +84 -0
- package/dist-esm/samples-dev/backupVaultsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/backupVaultsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupVaultsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupVaultsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/backupVaultsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/backupVaultsGetInResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupVaultsGetInResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupVaultsGetInResourceGroupSample.js +52 -0
- package/dist-esm/samples-dev/backupVaultsGetInResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/backupVaultsGetInSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupVaultsGetInSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupVaultsGetInSubscriptionSample.js +51 -0
- package/dist-esm/samples-dev/backupVaultsGetInSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/backupVaultsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupVaultsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupVaultsGetSample.js +58 -0
- package/dist-esm/samples-dev/backupVaultsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/backupVaultsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/backupVaultsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/backupVaultsUpdateSample.js +47 -0
- package/dist-esm/samples-dev/backupVaultsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/dataProtectionCheckFeatureSupportSample.d.ts +2 -0
- package/dist-esm/samples-dev/dataProtectionCheckFeatureSupportSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dataProtectionCheckFeatureSupportSample.js +42 -0
- package/dist-esm/samples-dev/dataProtectionCheckFeatureSupportSample.js.map +1 -0
- package/dist-esm/samples-dev/dataProtectionOperationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/dataProtectionOperationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dataProtectionOperationsListSample.js +51 -0
- package/dist-esm/samples-dev/dataProtectionOperationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/deletedBackupInstancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/deletedBackupInstancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletedBackupInstancesGetSample.js +40 -0
- package/dist-esm/samples-dev/deletedBackupInstancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/deletedBackupInstancesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/deletedBackupInstancesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletedBackupInstancesListSample.js +53 -0
- package/dist-esm/samples-dev/deletedBackupInstancesListSample.js.map +1 -0
- package/dist-esm/samples-dev/deletedBackupInstancesUndeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/deletedBackupInstancesUndeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletedBackupInstancesUndeleteSample.js +40 -0
- package/dist-esm/samples-dev/deletedBackupInstancesUndeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.js +40 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.js +40 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.js.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.d.ts +2 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.js +53 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.js.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.d.ts +2 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.js +45 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.js.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.js +46 -0
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/exportJobsOperationResultGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/exportJobsOperationResultGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/exportJobsOperationResultGetSample.js +40 -0
- package/dist-esm/samples-dev/exportJobsOperationResultGetSample.js.map +1 -0
- package/dist-esm/samples-dev/exportJobsTriggerSample.d.ts +2 -0
- package/dist-esm/samples-dev/exportJobsTriggerSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/exportJobsTriggerSample.js +39 -0
- package/dist-esm/samples-dev/exportJobsTriggerSample.js.map +1 -0
- package/dist-esm/samples-dev/jobsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/jobsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jobsGetSample.js +40 -0
- package/dist-esm/samples-dev/jobsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/jobsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/jobsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/jobsListSample.js +53 -0
- package/dist-esm/samples-dev/jobsListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationResultGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationResultGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationResultGetSample.js +39 -0
- package/dist-esm/samples-dev/operationResultGetSample.js.map +1 -0
- package/dist-esm/samples-dev/operationStatusBackupVaultContextGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationStatusBackupVaultContextGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationStatusBackupVaultContextGetSample.js +40 -0
- package/dist-esm/samples-dev/operationStatusBackupVaultContextGetSample.js.map +1 -0
- package/dist-esm/samples-dev/operationStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationStatusGetSample.js +39 -0
- package/dist-esm/samples-dev/operationStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/operationStatusResourceGroupContextGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationStatusResourceGroupContextGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationStatusResourceGroupContextGetSample.js +39 -0
- package/dist-esm/samples-dev/operationStatusResourceGroupContextGetSample.js.map +1 -0
- package/dist-esm/samples-dev/recoveryPointsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/recoveryPointsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recoveryPointsGetSample.js +41 -0
- package/dist-esm/samples-dev/recoveryPointsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/recoveryPointsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/recoveryPointsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/recoveryPointsListSample.js +54 -0
- package/dist-esm/samples-dev/recoveryPointsListSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/resourceGuardsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.js +53 -0
- package/dist-esm/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.js +40 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.js +40 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.js +40 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.js +40 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.js +40 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.js +40 -0
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.js +53 -0
- package/dist-esm/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.js +53 -0
- package/dist-esm/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.js +53 -0
- package/dist-esm/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.js +52 -0
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.js +51 -0
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetSample.js +39 -0
- package/dist-esm/samples-dev/resourceGuardsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.js +53 -0
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.js +53 -0
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsPatchSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsPatchSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsPatchSample.js +40 -0
- package/dist-esm/samples-dev/resourceGuardsPatchSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsPutSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceGuardsPutSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceGuardsPutSample.js +43 -0
- package/dist-esm/samples-dev/resourceGuardsPutSample.js.map +1 -0
- package/dist-esm/samples-dev/restorableTimeRangesFindSample.d.ts +2 -0
- package/dist-esm/samples-dev/restorableTimeRangesFindSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/restorableTimeRangesFindSample.js +45 -0
- package/dist-esm/samples-dev/restorableTimeRangesFindSample.js.map +1 -0
- package/dist-esm/src/dataProtectionClient.d.ts +38 -0
- package/dist-esm/src/dataProtectionClient.d.ts.map +1 -0
- package/dist-esm/src/dataProtectionClient.js +118 -0
- package/dist-esm/src/dataProtectionClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2716 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +372 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +207 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +4480 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +38 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +276 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/backupInstances.d.ts +264 -0
- package/dist-esm/src/operations/backupInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/backupInstances.js +1212 -0
- package/dist-esm/src/operations/backupInstances.js.map +1 -0
- package/dist-esm/src/operations/backupInstancesExtensionRouting.d.ts +35 -0
- package/dist-esm/src/operations/backupInstancesExtensionRouting.d.ts.map +1 -0
- package/dist-esm/src/operations/backupInstancesExtensionRouting.js +134 -0
- package/dist-esm/src/operations/backupInstancesExtensionRouting.js.map +1 -0
- package/dist-esm/src/operations/backupPolicies.d.ts +63 -0
- package/dist-esm/src/operations/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/backupPolicies.js +246 -0
- package/dist-esm/src/operations/backupPolicies.js.map +1 -0
- package/dist-esm/src/operations/backupVaultOperationResults.d.ts +20 -0
- package/dist-esm/src/operations/backupVaultOperationResults.d.ts.map +1 -0
- package/dist-esm/src/operations/backupVaultOperationResults.js +57 -0
- package/dist-esm/src/operations/backupVaultOperationResults.js.map +1 -0
- package/dist-esm/src/operations/backupVaults.d.ts +110 -0
- package/dist-esm/src/operations/backupVaults.d.ts.map +1 -0
- package/dist-esm/src/operations/backupVaults.js +519 -0
- package/dist-esm/src/operations/backupVaults.js.map +1 -0
- package/dist-esm/src/operations/dataProtection.d.ts +20 -0
- package/dist-esm/src/operations/dataProtection.d.ts.map +1 -0
- package/dist-esm/src/operations/dataProtection.js +54 -0
- package/dist-esm/src/operations/dataProtection.js.map +1 -0
- package/dist-esm/src/operations/dataProtectionOperations.d.ts +32 -0
- package/dist-esm/src/operations/dataProtectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/dataProtectionOperations.js +131 -0
- package/dist-esm/src/operations/dataProtectionOperations.js.map +1 -0
- package/dist-esm/src/operations/deletedBackupInstances.d.ts +61 -0
- package/dist-esm/src/operations/deletedBackupInstances.d.ts.map +1 -0
- package/dist-esm/src/operations/deletedBackupInstances.js +256 -0
- package/dist-esm/src/operations/deletedBackupInstances.js.map +1 -0
- package/dist-esm/src/operations/dppResourceGuardProxy.d.ts +66 -0
- package/dist-esm/src/operations/dppResourceGuardProxy.d.ts.map +1 -0
- package/dist-esm/src/operations/dppResourceGuardProxy.js +287 -0
- package/dist-esm/src/operations/dppResourceGuardProxy.js.map +1 -0
- package/dist-esm/src/operations/exportJobs.d.ts +28 -0
- package/dist-esm/src/operations/exportJobs.d.ts.map +1 -0
- package/dist-esm/src/operations/exportJobs.js +108 -0
- package/dist-esm/src/operations/exportJobs.js.map +1 -0
- package/dist-esm/src/operations/exportJobsOperationResult.d.ts +23 -0
- package/dist-esm/src/operations/exportJobsOperationResult.d.ts.map +1 -0
- package/dist-esm/src/operations/exportJobsOperationResult.js +58 -0
- package/dist-esm/src/operations/exportJobsOperationResult.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +20 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +27 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/jobs.d.ts +47 -0
- package/dist-esm/src/operations/jobs.d.ts.map +1 -0
- package/dist-esm/src/operations/jobs.js +181 -0
- package/dist-esm/src/operations/jobs.js.map +1 -0
- package/dist-esm/src/operations/operationResult.d.ts +20 -0
- package/dist-esm/src/operations/operationResult.d.ts.map +1 -0
- package/dist-esm/src/operations/operationResult.js +56 -0
- package/dist-esm/src/operations/operationResult.js.map +1 -0
- package/dist-esm/src/operations/operationStatus.d.ts +20 -0
- package/dist-esm/src/operations/operationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/operationStatus.js +53 -0
- package/dist-esm/src/operations/operationStatus.js.map +1 -0
- package/dist-esm/src/operations/operationStatusBackupVaultContext.d.ts +21 -0
- package/dist-esm/src/operations/operationStatusBackupVaultContext.d.ts.map +1 -0
- package/dist-esm/src/operations/operationStatusBackupVaultContext.js +55 -0
- package/dist-esm/src/operations/operationStatusBackupVaultContext.js.map +1 -0
- package/dist-esm/src/operations/operationStatusResourceGroupContext.d.ts +20 -0
- package/dist-esm/src/operations/operationStatusResourceGroupContext.d.ts.map +1 -0
- package/dist-esm/src/operations/operationStatusResourceGroupContext.js +53 -0
- package/dist-esm/src/operations/operationStatusResourceGroupContext.js.map +1 -0
- package/dist-esm/src/operations/recoveryPoints.d.ts +50 -0
- package/dist-esm/src/operations/recoveryPoints.d.ts.map +1 -0
- package/dist-esm/src/operations/recoveryPoints.js +197 -0
- package/dist-esm/src/operations/recoveryPoints.js.map +1 -0
- package/dist-esm/src/operations/resourceGuards.d.ts +302 -0
- package/dist-esm/src/operations/resourceGuards.d.ts.map +1 -0
- package/dist-esm/src/operations/resourceGuards.js +1328 -0
- package/dist-esm/src/operations/resourceGuards.js.map +1 -0
- package/dist-esm/src/operations/restorableTimeRanges.d.ts +21 -0
- package/dist-esm/src/operations/restorableTimeRanges.d.ts.map +1 -0
- package/dist-esm/src/operations/restorableTimeRanges.js +57 -0
- package/dist-esm/src/operations/restorableTimeRanges.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupInstances.d.ts +239 -0
- package/dist-esm/src/operationsInterfaces/backupInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupVaultOperationResults.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/backupVaultOperationResults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupVaultOperationResults.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupVaultOperationResults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupVaults.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/backupVaults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/backupVaults.js +9 -0
- package/dist-esm/src/operationsInterfaces/backupVaults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataProtection.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/dataProtection.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataProtection.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataProtection.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataProtectionOperations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/dataProtectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataProtectionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataProtectionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedBackupInstances.d.ts +36 -0
- package/dist-esm/src/operationsInterfaces/deletedBackupInstances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedBackupInstances.js +9 -0
- package/dist-esm/src/operationsInterfaces/deletedBackupInstances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.js +9 -0
- package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/exportJobs.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/exportJobs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/exportJobs.js +9 -0
- package/dist-esm/src/operationsInterfaces/exportJobs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/exportJobsOperationResult.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/exportJobsOperationResult.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/exportJobsOperationResult.js +9 -0
- package/dist-esm/src/operationsInterfaces/exportJobsOperationResult.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +27 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/jobs.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/jobs.js +9 -0
- package/dist-esm/src/operationsInterfaces/jobs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationResult.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationResult.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationResult.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationResult.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationStatus.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationStatusBackupVaultContext.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/operationStatusBackupVaultContext.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationStatusBackupVaultContext.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationStatusBackupVaultContext.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationStatusResourceGroupContext.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationStatusResourceGroupContext.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationStatusResourceGroupContext.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationStatusResourceGroupContext.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts +23 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/recoveryPoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceGuards.d.ts +150 -0
- package/dist-esm/src/operationsInterfaces/resourceGuards.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/resourceGuards.js +9 -0
- package/dist-esm/src/operationsInterfaces/resourceGuards.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/restorableTimeRanges.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/restorableTimeRanges.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/restorableTimeRanges.js +9 -0
- package/dist-esm/src/operationsInterfaces/restorableTimeRanges.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/dataprotection_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/dataprotection_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/dataprotection_operations_test.spec.js +116 -0
- package/dist-esm/test/dataprotection_operations_test.spec.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-dataprotection.api.md +2381 -0
- package/rollup.config.js +122 -0
- package/src/dataProtectionClient.ts +224 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +3161 -0
- package/src/models/mappers.ts +4839 -0
- package/src/models/parameters.ts +334 -0
- package/src/operations/backupInstances.ts +1775 -0
- package/src/operations/backupInstancesExtensionRouting.ts +161 -0
- package/src/operations/backupPolicies.ts +328 -0
- package/src/operations/backupVaultOperationResults.ts +78 -0
- package/src/operations/backupVaults.ts +689 -0
- package/src/operations/dataProtection.ts +74 -0
- package/src/operations/dataProtectionOperations.ts +149 -0
- package/src/operations/deletedBackupInstances.ts +350 -0
- package/src/operations/dppResourceGuardProxy.ts +383 -0
- package/src/operations/exportJobs.ts +154 -0
- package/src/operations/exportJobsOperationResult.ts +79 -0
- package/src/operations/index.ts +27 -0
- package/src/operations/jobs.ts +239 -0
- package/src/operations/operationResult.ts +75 -0
- package/src/operations/operationStatus.ts +72 -0
- package/src/operations/operationStatusBackupVaultContext.ts +76 -0
- package/src/operations/operationStatusResourceGroupContext.ts +73 -0
- package/src/operations/recoveryPoints.ts +274 -0
- package/src/operations/resourceGuards.ts +1791 -0
- package/src/operations/restorableTimeRanges.ts +79 -0
- package/src/operationsInterfaces/backupInstances.ts +456 -0
- package/src/operationsInterfaces/backupInstancesExtensionRouting.ts +27 -0
- package/src/operationsInterfaces/backupPolicies.ts +75 -0
- package/src/operationsInterfaces/backupVaultOperationResults.ts +28 -0
- package/src/operationsInterfaces/backupVaults.ts +146 -0
- package/src/operationsInterfaces/dataProtection.ts +28 -0
- package/src/operationsInterfaces/dataProtectionOperations.ts +25 -0
- package/src/operationsInterfaces/deletedBackupInstances.ts +70 -0
- package/src/operationsInterfaces/dppResourceGuardProxy.ts +88 -0
- package/src/operationsInterfaces/exportJobs.ts +44 -0
- package/src/operationsInterfaces/exportJobsOperationResult.ts +31 -0
- package/src/operationsInterfaces/index.ts +27 -0
- package/src/operationsInterfaces/jobs.ts +45 -0
- package/src/operationsInterfaces/operationResult.ts +27 -0
- package/src/operationsInterfaces/operationStatus.ts +27 -0
- package/src/operationsInterfaces/operationStatusBackupVaultContext.ts +29 -0
- package/src/operationsInterfaces/operationStatusResourceGroupContext.ts +27 -0
- package/src/operationsInterfaces/recoveryPoints.ts +48 -0
- package/src/operationsInterfaces/resourceGuards.ts +271 -0
- package/src/operationsInterfaces/restorableTimeRanges.ts +31 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-dataprotection.d.ts +3891 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,1212 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { LroEngine } from "@azure/core-lro";
|
|
14
|
+
import { LroImpl } from "../lroImpl";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing BackupInstances operations. */
|
|
17
|
+
export class BackupInstancesImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class BackupInstances class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Gets a backup instances belonging to a backup vault
|
|
27
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
28
|
+
* @param vaultName The name of the backup vault.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(resourceGroupName, vaultName, options) {
|
|
32
|
+
const iter = this.listPagingAll(resourceGroupName, vaultName, options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: (settings) => {
|
|
41
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
42
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
|
+
}
|
|
44
|
+
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
49
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = yield __await(this._list(resourceGroupName, vaultName, options));
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield yield __await(page);
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = yield __await(this._listNext(resourceGroupName, vaultName, continuationToken, options));
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield yield __await(page);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
listPagingAll(resourceGroupName, vaultName, options) {
|
|
69
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
70
|
+
var e_1, _a;
|
|
71
|
+
try {
|
|
72
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, vaultName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
73
|
+
const page = _c.value;
|
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
+
finally {
|
|
79
|
+
try {
|
|
80
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
81
|
+
}
|
|
82
|
+
finally { if (e_1) throw e_1.error; }
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Gets a backup instances belonging to a backup vault
|
|
88
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
89
|
+
* @param vaultName The name of the backup vault.
|
|
90
|
+
* @param options The options parameters.
|
|
91
|
+
*/
|
|
92
|
+
_list(resourceGroupName, vaultName, options) {
|
|
93
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Gets a backup instance with name in a backup vault
|
|
97
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
98
|
+
* @param vaultName The name of the backup vault.
|
|
99
|
+
* @param backupInstanceName The name of the backup instance
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
get(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
103
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Create or update a backup instance in a backup vault
|
|
107
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
108
|
+
* @param vaultName The name of the backup vault.
|
|
109
|
+
* @param backupInstanceName The name of the backup instance
|
|
110
|
+
* @param parameters Request body for operation
|
|
111
|
+
* @param options The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
beginCreateOrUpdate(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
return this.client.sendOperationRequest(args, spec);
|
|
117
|
+
});
|
|
118
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
var _a;
|
|
120
|
+
let currentRawResponse = undefined;
|
|
121
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
122
|
+
const callback = (rawResponse, flatResponse) => {
|
|
123
|
+
currentRawResponse = rawResponse;
|
|
124
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
125
|
+
};
|
|
126
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
127
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
128
|
+
return {
|
|
129
|
+
flatResponse,
|
|
130
|
+
rawResponse: {
|
|
131
|
+
statusCode: currentRawResponse.status,
|
|
132
|
+
body: currentRawResponse.parsedBody,
|
|
133
|
+
headers: currentRawResponse.headers.toJSON()
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
});
|
|
137
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, parameters, options }, createOrUpdateOperationSpec);
|
|
138
|
+
const poller = new LroEngine(lro, {
|
|
139
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
140
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
141
|
+
});
|
|
142
|
+
yield poller.poll();
|
|
143
|
+
return poller;
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Create or update a backup instance in a backup vault
|
|
148
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
149
|
+
* @param vaultName The name of the backup vault.
|
|
150
|
+
* @param backupInstanceName The name of the backup instance
|
|
151
|
+
* @param parameters Request body for operation
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
beginCreateOrUpdateAndWait(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, vaultName, backupInstanceName, parameters, options);
|
|
157
|
+
return poller.pollUntilDone();
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Delete a backup instance in a backup vault
|
|
162
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
163
|
+
* @param vaultName The name of the backup vault.
|
|
164
|
+
* @param backupInstanceName The name of the backup instance
|
|
165
|
+
* @param options The options parameters.
|
|
166
|
+
*/
|
|
167
|
+
beginDelete(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
return this.client.sendOperationRequest(args, spec);
|
|
171
|
+
});
|
|
172
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
var _a;
|
|
174
|
+
let currentRawResponse = undefined;
|
|
175
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
176
|
+
const callback = (rawResponse, flatResponse) => {
|
|
177
|
+
currentRawResponse = rawResponse;
|
|
178
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
179
|
+
};
|
|
180
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
181
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
182
|
+
return {
|
|
183
|
+
flatResponse,
|
|
184
|
+
rawResponse: {
|
|
185
|
+
statusCode: currentRawResponse.status,
|
|
186
|
+
body: currentRawResponse.parsedBody,
|
|
187
|
+
headers: currentRawResponse.headers.toJSON()
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, options }, deleteOperationSpec);
|
|
192
|
+
const poller = new LroEngine(lro, {
|
|
193
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
194
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
195
|
+
});
|
|
196
|
+
yield poller.poll();
|
|
197
|
+
return poller;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Delete a backup instance in a backup vault
|
|
202
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
203
|
+
* @param vaultName The name of the backup vault.
|
|
204
|
+
* @param backupInstanceName The name of the backup instance
|
|
205
|
+
* @param options The options parameters.
|
|
206
|
+
*/
|
|
207
|
+
beginDeleteAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
const poller = yield this.beginDelete(resourceGroupName, vaultName, backupInstanceName, options);
|
|
210
|
+
return poller.pollUntilDone();
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Trigger adhoc backup
|
|
215
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
216
|
+
* @param vaultName The name of the backup vault.
|
|
217
|
+
* @param backupInstanceName The name of the backup instance
|
|
218
|
+
* @param parameters Request body for operation
|
|
219
|
+
* @param options The options parameters.
|
|
220
|
+
*/
|
|
221
|
+
beginAdhocBackup(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
return this.client.sendOperationRequest(args, spec);
|
|
225
|
+
});
|
|
226
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
var _a;
|
|
228
|
+
let currentRawResponse = undefined;
|
|
229
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
230
|
+
const callback = (rawResponse, flatResponse) => {
|
|
231
|
+
currentRawResponse = rawResponse;
|
|
232
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
233
|
+
};
|
|
234
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
235
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
236
|
+
return {
|
|
237
|
+
flatResponse,
|
|
238
|
+
rawResponse: {
|
|
239
|
+
statusCode: currentRawResponse.status,
|
|
240
|
+
body: currentRawResponse.parsedBody,
|
|
241
|
+
headers: currentRawResponse.headers.toJSON()
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
});
|
|
245
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, parameters, options }, adhocBackupOperationSpec);
|
|
246
|
+
const poller = new LroEngine(lro, {
|
|
247
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
248
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
249
|
+
});
|
|
250
|
+
yield poller.poll();
|
|
251
|
+
return poller;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Trigger adhoc backup
|
|
256
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
257
|
+
* @param vaultName The name of the backup vault.
|
|
258
|
+
* @param backupInstanceName The name of the backup instance
|
|
259
|
+
* @param parameters Request body for operation
|
|
260
|
+
* @param options The options parameters.
|
|
261
|
+
*/
|
|
262
|
+
beginAdhocBackupAndWait(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
const poller = yield this.beginAdhocBackup(resourceGroupName, vaultName, backupInstanceName, parameters, options);
|
|
265
|
+
return poller.pollUntilDone();
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Validate whether adhoc backup will be successful or not
|
|
270
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
271
|
+
* @param vaultName The name of the backup vault.
|
|
272
|
+
* @param parameters Request body for operation
|
|
273
|
+
* @param options The options parameters.
|
|
274
|
+
*/
|
|
275
|
+
beginValidateForBackup(resourceGroupName, vaultName, parameters, options) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
return this.client.sendOperationRequest(args, spec);
|
|
279
|
+
});
|
|
280
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
281
|
+
var _a;
|
|
282
|
+
let currentRawResponse = undefined;
|
|
283
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
284
|
+
const callback = (rawResponse, flatResponse) => {
|
|
285
|
+
currentRawResponse = rawResponse;
|
|
286
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
287
|
+
};
|
|
288
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
289
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
290
|
+
return {
|
|
291
|
+
flatResponse,
|
|
292
|
+
rawResponse: {
|
|
293
|
+
statusCode: currentRawResponse.status,
|
|
294
|
+
body: currentRawResponse.parsedBody,
|
|
295
|
+
headers: currentRawResponse.headers.toJSON()
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
});
|
|
299
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, parameters, options }, validateForBackupOperationSpec);
|
|
300
|
+
const poller = new LroEngine(lro, {
|
|
301
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
302
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
303
|
+
});
|
|
304
|
+
yield poller.poll();
|
|
305
|
+
return poller;
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Validate whether adhoc backup will be successful or not
|
|
310
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
311
|
+
* @param vaultName The name of the backup vault.
|
|
312
|
+
* @param parameters Request body for operation
|
|
313
|
+
* @param options The options parameters.
|
|
314
|
+
*/
|
|
315
|
+
beginValidateForBackupAndWait(resourceGroupName, vaultName, parameters, options) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
const poller = yield this.beginValidateForBackup(resourceGroupName, vaultName, parameters, options);
|
|
318
|
+
return poller.pollUntilDone();
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Get result of backup instance creation operation
|
|
323
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
324
|
+
* @param vaultName The name of the backup vault.
|
|
325
|
+
* @param backupInstanceName
|
|
326
|
+
* @param operationId
|
|
327
|
+
* @param options The options parameters.
|
|
328
|
+
*/
|
|
329
|
+
getBackupInstanceOperationResult(resourceGroupName, vaultName, backupInstanceName, operationId, options) {
|
|
330
|
+
return this.client.sendOperationRequest({
|
|
331
|
+
resourceGroupName,
|
|
332
|
+
vaultName,
|
|
333
|
+
backupInstanceName,
|
|
334
|
+
operationId,
|
|
335
|
+
options
|
|
336
|
+
}, getBackupInstanceOperationResultOperationSpec);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* rehydrate recovery point for restore for a BackupInstance
|
|
340
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
341
|
+
* @param vaultName The name of the backup vault.
|
|
342
|
+
* @param backupInstanceName
|
|
343
|
+
* @param parameters Request body for operation
|
|
344
|
+
* @param options The options parameters.
|
|
345
|
+
*/
|
|
346
|
+
beginTriggerRehydrate(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
return this.client.sendOperationRequest(args, spec);
|
|
350
|
+
});
|
|
351
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
352
|
+
var _a;
|
|
353
|
+
let currentRawResponse = undefined;
|
|
354
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
355
|
+
const callback = (rawResponse, flatResponse) => {
|
|
356
|
+
currentRawResponse = rawResponse;
|
|
357
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
358
|
+
};
|
|
359
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
360
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
361
|
+
return {
|
|
362
|
+
flatResponse,
|
|
363
|
+
rawResponse: {
|
|
364
|
+
statusCode: currentRawResponse.status,
|
|
365
|
+
body: currentRawResponse.parsedBody,
|
|
366
|
+
headers: currentRawResponse.headers.toJSON()
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
});
|
|
370
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, parameters, options }, triggerRehydrateOperationSpec);
|
|
371
|
+
const poller = new LroEngine(lro, {
|
|
372
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
373
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
374
|
+
});
|
|
375
|
+
yield poller.poll();
|
|
376
|
+
return poller;
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* rehydrate recovery point for restore for a BackupInstance
|
|
381
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
382
|
+
* @param vaultName The name of the backup vault.
|
|
383
|
+
* @param backupInstanceName
|
|
384
|
+
* @param parameters Request body for operation
|
|
385
|
+
* @param options The options parameters.
|
|
386
|
+
*/
|
|
387
|
+
beginTriggerRehydrateAndWait(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
+
const poller = yield this.beginTriggerRehydrate(resourceGroupName, vaultName, backupInstanceName, parameters, options);
|
|
390
|
+
return poller.pollUntilDone();
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Triggers restore for a BackupInstance
|
|
395
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
396
|
+
* @param vaultName The name of the backup vault.
|
|
397
|
+
* @param backupInstanceName The name of the backup instance
|
|
398
|
+
* @param parameters Request body for operation
|
|
399
|
+
* @param options The options parameters.
|
|
400
|
+
*/
|
|
401
|
+
beginTriggerRestore(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
403
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
return this.client.sendOperationRequest(args, spec);
|
|
405
|
+
});
|
|
406
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
407
|
+
var _a;
|
|
408
|
+
let currentRawResponse = undefined;
|
|
409
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
410
|
+
const callback = (rawResponse, flatResponse) => {
|
|
411
|
+
currentRawResponse = rawResponse;
|
|
412
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
413
|
+
};
|
|
414
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
415
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
416
|
+
return {
|
|
417
|
+
flatResponse,
|
|
418
|
+
rawResponse: {
|
|
419
|
+
statusCode: currentRawResponse.status,
|
|
420
|
+
body: currentRawResponse.parsedBody,
|
|
421
|
+
headers: currentRawResponse.headers.toJSON()
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
});
|
|
425
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, parameters, options }, triggerRestoreOperationSpec);
|
|
426
|
+
const poller = new LroEngine(lro, {
|
|
427
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
428
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
429
|
+
});
|
|
430
|
+
yield poller.poll();
|
|
431
|
+
return poller;
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Triggers restore for a BackupInstance
|
|
436
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
437
|
+
* @param vaultName The name of the backup vault.
|
|
438
|
+
* @param backupInstanceName The name of the backup instance
|
|
439
|
+
* @param parameters Request body for operation
|
|
440
|
+
* @param options The options parameters.
|
|
441
|
+
*/
|
|
442
|
+
beginTriggerRestoreAndWait(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
443
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
444
|
+
const poller = yield this.beginTriggerRestore(resourceGroupName, vaultName, backupInstanceName, parameters, options);
|
|
445
|
+
return poller.pollUntilDone();
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* This operation will resume backups for backup instance
|
|
450
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
451
|
+
* @param vaultName The name of the backup vault.
|
|
452
|
+
* @param backupInstanceName
|
|
453
|
+
* @param options The options parameters.
|
|
454
|
+
*/
|
|
455
|
+
beginResumeBackups(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
456
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
457
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
458
|
+
return this.client.sendOperationRequest(args, spec);
|
|
459
|
+
});
|
|
460
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
461
|
+
var _a;
|
|
462
|
+
let currentRawResponse = undefined;
|
|
463
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
464
|
+
const callback = (rawResponse, flatResponse) => {
|
|
465
|
+
currentRawResponse = rawResponse;
|
|
466
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
467
|
+
};
|
|
468
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
469
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
470
|
+
return {
|
|
471
|
+
flatResponse,
|
|
472
|
+
rawResponse: {
|
|
473
|
+
statusCode: currentRawResponse.status,
|
|
474
|
+
body: currentRawResponse.parsedBody,
|
|
475
|
+
headers: currentRawResponse.headers.toJSON()
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
});
|
|
479
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, options }, resumeBackupsOperationSpec);
|
|
480
|
+
const poller = new LroEngine(lro, {
|
|
481
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
482
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
483
|
+
});
|
|
484
|
+
yield poller.poll();
|
|
485
|
+
return poller;
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* This operation will resume backups for backup instance
|
|
490
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
491
|
+
* @param vaultName The name of the backup vault.
|
|
492
|
+
* @param backupInstanceName
|
|
493
|
+
* @param options The options parameters.
|
|
494
|
+
*/
|
|
495
|
+
beginResumeBackupsAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
496
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
497
|
+
const poller = yield this.beginResumeBackups(resourceGroupName, vaultName, backupInstanceName, options);
|
|
498
|
+
return poller.pollUntilDone();
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* This operation will resume protection for a stopped backup instance
|
|
503
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
504
|
+
* @param vaultName The name of the backup vault.
|
|
505
|
+
* @param backupInstanceName
|
|
506
|
+
* @param options The options parameters.
|
|
507
|
+
*/
|
|
508
|
+
beginResumeProtection(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
510
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
return this.client.sendOperationRequest(args, spec);
|
|
512
|
+
});
|
|
513
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
var _a;
|
|
515
|
+
let currentRawResponse = undefined;
|
|
516
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
517
|
+
const callback = (rawResponse, flatResponse) => {
|
|
518
|
+
currentRawResponse = rawResponse;
|
|
519
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
520
|
+
};
|
|
521
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
522
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
523
|
+
return {
|
|
524
|
+
flatResponse,
|
|
525
|
+
rawResponse: {
|
|
526
|
+
statusCode: currentRawResponse.status,
|
|
527
|
+
body: currentRawResponse.parsedBody,
|
|
528
|
+
headers: currentRawResponse.headers.toJSON()
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
});
|
|
532
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, options }, resumeProtectionOperationSpec);
|
|
533
|
+
const poller = new LroEngine(lro, {
|
|
534
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
535
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
536
|
+
});
|
|
537
|
+
yield poller.poll();
|
|
538
|
+
return poller;
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* This operation will resume protection for a stopped backup instance
|
|
543
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
544
|
+
* @param vaultName The name of the backup vault.
|
|
545
|
+
* @param backupInstanceName
|
|
546
|
+
* @param options The options parameters.
|
|
547
|
+
*/
|
|
548
|
+
beginResumeProtectionAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
const poller = yield this.beginResumeProtection(resourceGroupName, vaultName, backupInstanceName, options);
|
|
551
|
+
return poller.pollUntilDone();
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* This operation will stop protection of a backup instance and data will be held forever
|
|
556
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
557
|
+
* @param vaultName The name of the backup vault.
|
|
558
|
+
* @param backupInstanceName
|
|
559
|
+
* @param options The options parameters.
|
|
560
|
+
*/
|
|
561
|
+
beginStopProtection(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
564
|
+
return this.client.sendOperationRequest(args, spec);
|
|
565
|
+
});
|
|
566
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
567
|
+
var _a;
|
|
568
|
+
let currentRawResponse = undefined;
|
|
569
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
570
|
+
const callback = (rawResponse, flatResponse) => {
|
|
571
|
+
currentRawResponse = rawResponse;
|
|
572
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
573
|
+
};
|
|
574
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
575
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
576
|
+
return {
|
|
577
|
+
flatResponse,
|
|
578
|
+
rawResponse: {
|
|
579
|
+
statusCode: currentRawResponse.status,
|
|
580
|
+
body: currentRawResponse.parsedBody,
|
|
581
|
+
headers: currentRawResponse.headers.toJSON()
|
|
582
|
+
}
|
|
583
|
+
};
|
|
584
|
+
});
|
|
585
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, options }, stopProtectionOperationSpec);
|
|
586
|
+
const poller = new LroEngine(lro, {
|
|
587
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
588
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
589
|
+
});
|
|
590
|
+
yield poller.poll();
|
|
591
|
+
return poller;
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* This operation will stop protection of a backup instance and data will be held forever
|
|
596
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
597
|
+
* @param vaultName The name of the backup vault.
|
|
598
|
+
* @param backupInstanceName
|
|
599
|
+
* @param options The options parameters.
|
|
600
|
+
*/
|
|
601
|
+
beginStopProtectionAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
602
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
603
|
+
const poller = yield this.beginStopProtection(resourceGroupName, vaultName, backupInstanceName, options);
|
|
604
|
+
return poller.pollUntilDone();
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* This operation will stop backup for a backup instance and retains the backup data as per the policy
|
|
609
|
+
* (except latest Recovery point, which will be retained forever)
|
|
610
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
611
|
+
* @param vaultName The name of the backup vault.
|
|
612
|
+
* @param backupInstanceName
|
|
613
|
+
* @param options The options parameters.
|
|
614
|
+
*/
|
|
615
|
+
beginSuspendBackups(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
616
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
617
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
618
|
+
return this.client.sendOperationRequest(args, spec);
|
|
619
|
+
});
|
|
620
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
621
|
+
var _a;
|
|
622
|
+
let currentRawResponse = undefined;
|
|
623
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
624
|
+
const callback = (rawResponse, flatResponse) => {
|
|
625
|
+
currentRawResponse = rawResponse;
|
|
626
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
627
|
+
};
|
|
628
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
629
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
630
|
+
return {
|
|
631
|
+
flatResponse,
|
|
632
|
+
rawResponse: {
|
|
633
|
+
statusCode: currentRawResponse.status,
|
|
634
|
+
body: currentRawResponse.parsedBody,
|
|
635
|
+
headers: currentRawResponse.headers.toJSON()
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
});
|
|
639
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, options }, suspendBackupsOperationSpec);
|
|
640
|
+
const poller = new LroEngine(lro, {
|
|
641
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
642
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
643
|
+
});
|
|
644
|
+
yield poller.poll();
|
|
645
|
+
return poller;
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* This operation will stop backup for a backup instance and retains the backup data as per the policy
|
|
650
|
+
* (except latest Recovery point, which will be retained forever)
|
|
651
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
652
|
+
* @param vaultName The name of the backup vault.
|
|
653
|
+
* @param backupInstanceName
|
|
654
|
+
* @param options The options parameters.
|
|
655
|
+
*/
|
|
656
|
+
beginSuspendBackupsAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
658
|
+
const poller = yield this.beginSuspendBackups(resourceGroupName, vaultName, backupInstanceName, options);
|
|
659
|
+
return poller.pollUntilDone();
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Sync backup instance again in case of failure
|
|
664
|
+
* This action will retry last failed operation and will bring backup instance to valid state
|
|
665
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
666
|
+
* @param vaultName The name of the backup vault.
|
|
667
|
+
* @param backupInstanceName
|
|
668
|
+
* @param parameters Request body for operation
|
|
669
|
+
* @param options The options parameters.
|
|
670
|
+
*/
|
|
671
|
+
beginSyncBackupInstance(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
672
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
673
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
674
|
+
return this.client.sendOperationRequest(args, spec);
|
|
675
|
+
});
|
|
676
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
677
|
+
var _a;
|
|
678
|
+
let currentRawResponse = undefined;
|
|
679
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
680
|
+
const callback = (rawResponse, flatResponse) => {
|
|
681
|
+
currentRawResponse = rawResponse;
|
|
682
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
683
|
+
};
|
|
684
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
685
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
686
|
+
return {
|
|
687
|
+
flatResponse,
|
|
688
|
+
rawResponse: {
|
|
689
|
+
statusCode: currentRawResponse.status,
|
|
690
|
+
body: currentRawResponse.parsedBody,
|
|
691
|
+
headers: currentRawResponse.headers.toJSON()
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
});
|
|
695
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, parameters, options }, syncBackupInstanceOperationSpec);
|
|
696
|
+
const poller = new LroEngine(lro, {
|
|
697
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
698
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
699
|
+
});
|
|
700
|
+
yield poller.poll();
|
|
701
|
+
return poller;
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Sync backup instance again in case of failure
|
|
706
|
+
* This action will retry last failed operation and will bring backup instance to valid state
|
|
707
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
708
|
+
* @param vaultName The name of the backup vault.
|
|
709
|
+
* @param backupInstanceName
|
|
710
|
+
* @param parameters Request body for operation
|
|
711
|
+
* @param options The options parameters.
|
|
712
|
+
*/
|
|
713
|
+
beginSyncBackupInstanceAndWait(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
714
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
715
|
+
const poller = yield this.beginSyncBackupInstance(resourceGroupName, vaultName, backupInstanceName, parameters, options);
|
|
716
|
+
return poller.pollUntilDone();
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Validates if Restore can be triggered for a DataSource
|
|
721
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
722
|
+
* @param vaultName The name of the backup vault.
|
|
723
|
+
* @param backupInstanceName The name of the backup instance
|
|
724
|
+
* @param parameters Request body for operation
|
|
725
|
+
* @param options The options parameters.
|
|
726
|
+
*/
|
|
727
|
+
beginValidateForRestore(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
728
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
729
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
730
|
+
return this.client.sendOperationRequest(args, spec);
|
|
731
|
+
});
|
|
732
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
733
|
+
var _a;
|
|
734
|
+
let currentRawResponse = undefined;
|
|
735
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
736
|
+
const callback = (rawResponse, flatResponse) => {
|
|
737
|
+
currentRawResponse = rawResponse;
|
|
738
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
739
|
+
};
|
|
740
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
741
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
742
|
+
return {
|
|
743
|
+
flatResponse,
|
|
744
|
+
rawResponse: {
|
|
745
|
+
statusCode: currentRawResponse.status,
|
|
746
|
+
body: currentRawResponse.parsedBody,
|
|
747
|
+
headers: currentRawResponse.headers.toJSON()
|
|
748
|
+
}
|
|
749
|
+
};
|
|
750
|
+
});
|
|
751
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, parameters, options }, validateForRestoreOperationSpec);
|
|
752
|
+
const poller = new LroEngine(lro, {
|
|
753
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
754
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
755
|
+
});
|
|
756
|
+
yield poller.poll();
|
|
757
|
+
return poller;
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Validates if Restore can be triggered for a DataSource
|
|
762
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
763
|
+
* @param vaultName The name of the backup vault.
|
|
764
|
+
* @param backupInstanceName The name of the backup instance
|
|
765
|
+
* @param parameters Request body for operation
|
|
766
|
+
* @param options The options parameters.
|
|
767
|
+
*/
|
|
768
|
+
beginValidateForRestoreAndWait(resourceGroupName, vaultName, backupInstanceName, parameters, options) {
|
|
769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
770
|
+
const poller = yield this.beginValidateForRestore(resourceGroupName, vaultName, backupInstanceName, parameters, options);
|
|
771
|
+
return poller.pollUntilDone();
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* ListNext
|
|
776
|
+
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
777
|
+
* @param vaultName The name of the backup vault.
|
|
778
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
779
|
+
* @param options The options parameters.
|
|
780
|
+
*/
|
|
781
|
+
_listNext(resourceGroupName, vaultName, nextLink, options) {
|
|
782
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
// Operation Specifications
|
|
786
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
787
|
+
const listOperationSpec = {
|
|
788
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances",
|
|
789
|
+
httpMethod: "GET",
|
|
790
|
+
responses: {
|
|
791
|
+
200: {
|
|
792
|
+
bodyMapper: Mappers.BackupInstanceResourceList
|
|
793
|
+
},
|
|
794
|
+
default: {
|
|
795
|
+
bodyMapper: Mappers.CloudError
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
queryParameters: [Parameters.apiVersion],
|
|
799
|
+
urlParameters: [
|
|
800
|
+
Parameters.$host,
|
|
801
|
+
Parameters.subscriptionId,
|
|
802
|
+
Parameters.resourceGroupName,
|
|
803
|
+
Parameters.vaultName
|
|
804
|
+
],
|
|
805
|
+
headerParameters: [Parameters.accept],
|
|
806
|
+
serializer
|
|
807
|
+
};
|
|
808
|
+
const getOperationSpec = {
|
|
809
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
|
|
810
|
+
httpMethod: "GET",
|
|
811
|
+
responses: {
|
|
812
|
+
200: {
|
|
813
|
+
bodyMapper: Mappers.BackupInstanceResource
|
|
814
|
+
},
|
|
815
|
+
default: {
|
|
816
|
+
bodyMapper: Mappers.CloudError
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
queryParameters: [Parameters.apiVersion],
|
|
820
|
+
urlParameters: [
|
|
821
|
+
Parameters.$host,
|
|
822
|
+
Parameters.subscriptionId,
|
|
823
|
+
Parameters.resourceGroupName,
|
|
824
|
+
Parameters.vaultName,
|
|
825
|
+
Parameters.backupInstanceName
|
|
826
|
+
],
|
|
827
|
+
headerParameters: [Parameters.accept],
|
|
828
|
+
serializer
|
|
829
|
+
};
|
|
830
|
+
const createOrUpdateOperationSpec = {
|
|
831
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
|
|
832
|
+
httpMethod: "PUT",
|
|
833
|
+
responses: {
|
|
834
|
+
200: {
|
|
835
|
+
bodyMapper: Mappers.BackupInstanceResource
|
|
836
|
+
},
|
|
837
|
+
201: {
|
|
838
|
+
bodyMapper: Mappers.BackupInstanceResource
|
|
839
|
+
},
|
|
840
|
+
202: {
|
|
841
|
+
bodyMapper: Mappers.BackupInstanceResource
|
|
842
|
+
},
|
|
843
|
+
204: {
|
|
844
|
+
bodyMapper: Mappers.BackupInstanceResource
|
|
845
|
+
},
|
|
846
|
+
default: {
|
|
847
|
+
bodyMapper: Mappers.CloudError
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
requestBody: Parameters.parameters5,
|
|
851
|
+
queryParameters: [Parameters.apiVersion],
|
|
852
|
+
urlParameters: [
|
|
853
|
+
Parameters.$host,
|
|
854
|
+
Parameters.subscriptionId,
|
|
855
|
+
Parameters.resourceGroupName,
|
|
856
|
+
Parameters.vaultName,
|
|
857
|
+
Parameters.backupInstanceName
|
|
858
|
+
],
|
|
859
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
860
|
+
mediaType: "json",
|
|
861
|
+
serializer
|
|
862
|
+
};
|
|
863
|
+
const deleteOperationSpec = {
|
|
864
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
|
|
865
|
+
httpMethod: "DELETE",
|
|
866
|
+
responses: {
|
|
867
|
+
200: {},
|
|
868
|
+
201: {},
|
|
869
|
+
202: {},
|
|
870
|
+
204: {},
|
|
871
|
+
default: {
|
|
872
|
+
bodyMapper: Mappers.CloudError
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
queryParameters: [Parameters.apiVersion],
|
|
876
|
+
urlParameters: [
|
|
877
|
+
Parameters.$host,
|
|
878
|
+
Parameters.subscriptionId,
|
|
879
|
+
Parameters.resourceGroupName,
|
|
880
|
+
Parameters.vaultName,
|
|
881
|
+
Parameters.backupInstanceName
|
|
882
|
+
],
|
|
883
|
+
headerParameters: [Parameters.accept],
|
|
884
|
+
serializer
|
|
885
|
+
};
|
|
886
|
+
const adhocBackupOperationSpec = {
|
|
887
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup",
|
|
888
|
+
httpMethod: "POST",
|
|
889
|
+
responses: {
|
|
890
|
+
200: {
|
|
891
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
892
|
+
},
|
|
893
|
+
201: {
|
|
894
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
895
|
+
},
|
|
896
|
+
202: {
|
|
897
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
898
|
+
},
|
|
899
|
+
204: {
|
|
900
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
901
|
+
},
|
|
902
|
+
default: {
|
|
903
|
+
bodyMapper: Mappers.CloudError
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
requestBody: Parameters.parameters6,
|
|
907
|
+
queryParameters: [Parameters.apiVersion],
|
|
908
|
+
urlParameters: [
|
|
909
|
+
Parameters.$host,
|
|
910
|
+
Parameters.subscriptionId,
|
|
911
|
+
Parameters.resourceGroupName,
|
|
912
|
+
Parameters.vaultName,
|
|
913
|
+
Parameters.backupInstanceName
|
|
914
|
+
],
|
|
915
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
916
|
+
mediaType: "json",
|
|
917
|
+
serializer
|
|
918
|
+
};
|
|
919
|
+
const validateForBackupOperationSpec = {
|
|
920
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup",
|
|
921
|
+
httpMethod: "POST",
|
|
922
|
+
responses: {
|
|
923
|
+
200: {
|
|
924
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
925
|
+
},
|
|
926
|
+
201: {
|
|
927
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
928
|
+
},
|
|
929
|
+
202: {
|
|
930
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
931
|
+
},
|
|
932
|
+
204: {
|
|
933
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
934
|
+
},
|
|
935
|
+
default: {
|
|
936
|
+
bodyMapper: Mappers.CloudError
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
requestBody: Parameters.parameters7,
|
|
940
|
+
queryParameters: [Parameters.apiVersion],
|
|
941
|
+
urlParameters: [
|
|
942
|
+
Parameters.$host,
|
|
943
|
+
Parameters.subscriptionId,
|
|
944
|
+
Parameters.resourceGroupName,
|
|
945
|
+
Parameters.vaultName
|
|
946
|
+
],
|
|
947
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
948
|
+
mediaType: "json",
|
|
949
|
+
serializer
|
|
950
|
+
};
|
|
951
|
+
const getBackupInstanceOperationResultOperationSpec = {
|
|
952
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}",
|
|
953
|
+
httpMethod: "GET",
|
|
954
|
+
responses: {
|
|
955
|
+
200: {
|
|
956
|
+
bodyMapper: Mappers.BackupInstanceResource
|
|
957
|
+
},
|
|
958
|
+
202: {},
|
|
959
|
+
default: {
|
|
960
|
+
bodyMapper: Mappers.CloudError
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
queryParameters: [Parameters.apiVersion],
|
|
964
|
+
urlParameters: [
|
|
965
|
+
Parameters.$host,
|
|
966
|
+
Parameters.subscriptionId,
|
|
967
|
+
Parameters.resourceGroupName,
|
|
968
|
+
Parameters.vaultName,
|
|
969
|
+
Parameters.operationId,
|
|
970
|
+
Parameters.backupInstanceName
|
|
971
|
+
],
|
|
972
|
+
headerParameters: [Parameters.accept],
|
|
973
|
+
serializer
|
|
974
|
+
};
|
|
975
|
+
const triggerRehydrateOperationSpec = {
|
|
976
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/rehydrate",
|
|
977
|
+
httpMethod: "POST",
|
|
978
|
+
responses: {
|
|
979
|
+
200: {
|
|
980
|
+
headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders
|
|
981
|
+
},
|
|
982
|
+
201: {
|
|
983
|
+
headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders
|
|
984
|
+
},
|
|
985
|
+
202: {
|
|
986
|
+
headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders
|
|
987
|
+
},
|
|
988
|
+
204: {
|
|
989
|
+
headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders
|
|
990
|
+
},
|
|
991
|
+
default: {
|
|
992
|
+
bodyMapper: Mappers.CloudError
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
requestBody: Parameters.parameters8,
|
|
996
|
+
queryParameters: [Parameters.apiVersion],
|
|
997
|
+
urlParameters: [
|
|
998
|
+
Parameters.$host,
|
|
999
|
+
Parameters.subscriptionId,
|
|
1000
|
+
Parameters.resourceGroupName,
|
|
1001
|
+
Parameters.vaultName,
|
|
1002
|
+
Parameters.backupInstanceName
|
|
1003
|
+
],
|
|
1004
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1005
|
+
mediaType: "json",
|
|
1006
|
+
serializer
|
|
1007
|
+
};
|
|
1008
|
+
const triggerRestoreOperationSpec = {
|
|
1009
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore",
|
|
1010
|
+
httpMethod: "POST",
|
|
1011
|
+
responses: {
|
|
1012
|
+
200: {
|
|
1013
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
1014
|
+
},
|
|
1015
|
+
201: {
|
|
1016
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
1017
|
+
},
|
|
1018
|
+
202: {
|
|
1019
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
1020
|
+
},
|
|
1021
|
+
204: {
|
|
1022
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
1023
|
+
},
|
|
1024
|
+
default: {
|
|
1025
|
+
bodyMapper: Mappers.CloudError
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
requestBody: Parameters.parameters9,
|
|
1029
|
+
queryParameters: [Parameters.apiVersion],
|
|
1030
|
+
urlParameters: [
|
|
1031
|
+
Parameters.$host,
|
|
1032
|
+
Parameters.subscriptionId,
|
|
1033
|
+
Parameters.resourceGroupName,
|
|
1034
|
+
Parameters.vaultName,
|
|
1035
|
+
Parameters.backupInstanceName
|
|
1036
|
+
],
|
|
1037
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1038
|
+
mediaType: "json",
|
|
1039
|
+
serializer
|
|
1040
|
+
};
|
|
1041
|
+
const resumeBackupsOperationSpec = {
|
|
1042
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups",
|
|
1043
|
+
httpMethod: "POST",
|
|
1044
|
+
responses: {
|
|
1045
|
+
200: {},
|
|
1046
|
+
201: {},
|
|
1047
|
+
202: {},
|
|
1048
|
+
204: {},
|
|
1049
|
+
default: {
|
|
1050
|
+
bodyMapper: Mappers.CloudError
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
queryParameters: [Parameters.apiVersion],
|
|
1054
|
+
urlParameters: [
|
|
1055
|
+
Parameters.$host,
|
|
1056
|
+
Parameters.subscriptionId,
|
|
1057
|
+
Parameters.resourceGroupName,
|
|
1058
|
+
Parameters.vaultName,
|
|
1059
|
+
Parameters.backupInstanceName
|
|
1060
|
+
],
|
|
1061
|
+
headerParameters: [Parameters.accept],
|
|
1062
|
+
serializer
|
|
1063
|
+
};
|
|
1064
|
+
const resumeProtectionOperationSpec = {
|
|
1065
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection",
|
|
1066
|
+
httpMethod: "POST",
|
|
1067
|
+
responses: {
|
|
1068
|
+
200: {},
|
|
1069
|
+
201: {},
|
|
1070
|
+
202: {},
|
|
1071
|
+
204: {},
|
|
1072
|
+
default: {
|
|
1073
|
+
bodyMapper: Mappers.CloudError
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
queryParameters: [Parameters.apiVersion],
|
|
1077
|
+
urlParameters: [
|
|
1078
|
+
Parameters.$host,
|
|
1079
|
+
Parameters.subscriptionId,
|
|
1080
|
+
Parameters.resourceGroupName,
|
|
1081
|
+
Parameters.vaultName,
|
|
1082
|
+
Parameters.backupInstanceName
|
|
1083
|
+
],
|
|
1084
|
+
headerParameters: [Parameters.accept],
|
|
1085
|
+
serializer
|
|
1086
|
+
};
|
|
1087
|
+
const stopProtectionOperationSpec = {
|
|
1088
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection",
|
|
1089
|
+
httpMethod: "POST",
|
|
1090
|
+
responses: {
|
|
1091
|
+
200: {},
|
|
1092
|
+
201: {},
|
|
1093
|
+
202: {},
|
|
1094
|
+
204: {},
|
|
1095
|
+
default: {
|
|
1096
|
+
bodyMapper: Mappers.CloudError
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
queryParameters: [Parameters.apiVersion],
|
|
1100
|
+
urlParameters: [
|
|
1101
|
+
Parameters.$host,
|
|
1102
|
+
Parameters.subscriptionId,
|
|
1103
|
+
Parameters.resourceGroupName,
|
|
1104
|
+
Parameters.vaultName,
|
|
1105
|
+
Parameters.backupInstanceName
|
|
1106
|
+
],
|
|
1107
|
+
headerParameters: [Parameters.accept],
|
|
1108
|
+
serializer
|
|
1109
|
+
};
|
|
1110
|
+
const suspendBackupsOperationSpec = {
|
|
1111
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups",
|
|
1112
|
+
httpMethod: "POST",
|
|
1113
|
+
responses: {
|
|
1114
|
+
200: {},
|
|
1115
|
+
201: {},
|
|
1116
|
+
202: {},
|
|
1117
|
+
204: {},
|
|
1118
|
+
default: {
|
|
1119
|
+
bodyMapper: Mappers.CloudError
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
queryParameters: [Parameters.apiVersion],
|
|
1123
|
+
urlParameters: [
|
|
1124
|
+
Parameters.$host,
|
|
1125
|
+
Parameters.subscriptionId,
|
|
1126
|
+
Parameters.resourceGroupName,
|
|
1127
|
+
Parameters.vaultName,
|
|
1128
|
+
Parameters.backupInstanceName
|
|
1129
|
+
],
|
|
1130
|
+
headerParameters: [Parameters.accept],
|
|
1131
|
+
serializer
|
|
1132
|
+
};
|
|
1133
|
+
const syncBackupInstanceOperationSpec = {
|
|
1134
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync",
|
|
1135
|
+
httpMethod: "POST",
|
|
1136
|
+
responses: {
|
|
1137
|
+
200: {},
|
|
1138
|
+
201: {},
|
|
1139
|
+
202: {},
|
|
1140
|
+
204: {},
|
|
1141
|
+
default: {
|
|
1142
|
+
bodyMapper: Mappers.CloudError
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
requestBody: Parameters.parameters10,
|
|
1146
|
+
queryParameters: [Parameters.apiVersion],
|
|
1147
|
+
urlParameters: [
|
|
1148
|
+
Parameters.$host,
|
|
1149
|
+
Parameters.subscriptionId,
|
|
1150
|
+
Parameters.resourceGroupName,
|
|
1151
|
+
Parameters.vaultName,
|
|
1152
|
+
Parameters.backupInstanceName
|
|
1153
|
+
],
|
|
1154
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1155
|
+
mediaType: "json",
|
|
1156
|
+
serializer
|
|
1157
|
+
};
|
|
1158
|
+
const validateForRestoreOperationSpec = {
|
|
1159
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateRestore",
|
|
1160
|
+
httpMethod: "POST",
|
|
1161
|
+
responses: {
|
|
1162
|
+
200: {
|
|
1163
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
1164
|
+
},
|
|
1165
|
+
201: {
|
|
1166
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
1167
|
+
},
|
|
1168
|
+
202: {
|
|
1169
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
1170
|
+
},
|
|
1171
|
+
204: {
|
|
1172
|
+
bodyMapper: Mappers.OperationJobExtendedInfo
|
|
1173
|
+
},
|
|
1174
|
+
default: {
|
|
1175
|
+
bodyMapper: Mappers.CloudError
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
requestBody: Parameters.parameters11,
|
|
1179
|
+
queryParameters: [Parameters.apiVersion],
|
|
1180
|
+
urlParameters: [
|
|
1181
|
+
Parameters.$host,
|
|
1182
|
+
Parameters.subscriptionId,
|
|
1183
|
+
Parameters.resourceGroupName,
|
|
1184
|
+
Parameters.vaultName,
|
|
1185
|
+
Parameters.backupInstanceName
|
|
1186
|
+
],
|
|
1187
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1188
|
+
mediaType: "json",
|
|
1189
|
+
serializer
|
|
1190
|
+
};
|
|
1191
|
+
const listNextOperationSpec = {
|
|
1192
|
+
path: "{nextLink}",
|
|
1193
|
+
httpMethod: "GET",
|
|
1194
|
+
responses: {
|
|
1195
|
+
200: {
|
|
1196
|
+
bodyMapper: Mappers.BackupInstanceResourceList
|
|
1197
|
+
},
|
|
1198
|
+
default: {
|
|
1199
|
+
bodyMapper: Mappers.CloudError
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
urlParameters: [
|
|
1203
|
+
Parameters.$host,
|
|
1204
|
+
Parameters.subscriptionId,
|
|
1205
|
+
Parameters.resourceGroupName,
|
|
1206
|
+
Parameters.vaultName,
|
|
1207
|
+
Parameters.nextLink
|
|
1208
|
+
],
|
|
1209
|
+
headerParameters: [Parameters.accept],
|
|
1210
|
+
serializer
|
|
1211
|
+
};
|
|
1212
|
+
//# sourceMappingURL=backupInstances.js.map
|