@azure/arm-dataprotection 1.0.0-beta.1 → 1.0.0
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 +1 -1
- package/README.md +1 -1
- package/dist/index.js +706 -1053
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/backupInstancesAdhocBackupSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesListSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesResumeBackupsSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesResumeProtectionSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesStopProtectionSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesSuspendBackupsSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesSyncBackupInstanceSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesTriggerRehydrateSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesTriggerRestoreSample.js +3 -3
- package/dist-esm/samples-dev/backupInstancesValidateForBackupSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesValidateForRestoreSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/backupVaultsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/backupVaultsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/backupVaultsGetInResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsGetInSubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsGetSample.js +2 -2
- package/dist-esm/samples-dev/backupVaultsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/dataProtectionCheckFeatureSupportSample.js +1 -1
- package/dist-esm/samples-dev/dataProtectionOperationsListSample.js +1 -1
- package/dist-esm/samples-dev/deletedBackupInstancesGetSample.js +1 -1
- package/dist-esm/samples-dev/deletedBackupInstancesListSample.js +1 -1
- package/dist-esm/samples-dev/deletedBackupInstancesUndeleteSample.js +1 -1
- package/dist-esm/samples-dev/exportJobsOperationResultGetSample.js +1 -1
- package/dist-esm/samples-dev/exportJobsTriggerSample.js +1 -1
- package/dist-esm/samples-dev/jobsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobsListSample.js +1 -1
- package/dist-esm/samples-dev/operationResultGetSample.js +1 -1
- package/dist-esm/samples-dev/operationStatusBackupVaultContextGetSample.js +1 -1
- package/dist-esm/samples-dev/operationStatusGetSample.js +1 -1
- package/dist-esm/samples-dev/operationStatusResourceGroupContextGetSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsGetSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsListSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsPatchSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsPatchSample.js.map +1 -1
- package/dist-esm/samples-dev/resourceGuardsPutSample.js +1 -1
- package/dist-esm/samples-dev/restorableTimeRangesFindSample.js +1 -1
- package/dist-esm/src/dataProtectionClient.d.ts +2 -4
- package/dist-esm/src/dataProtectionClient.d.ts.map +1 -1
- package/dist-esm/src/dataProtectionClient.js +4 -6
- package/dist-esm/src/dataProtectionClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +86 -121
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +14 -16
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -8
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +119 -171
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -4
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +11 -31
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/backupInstances.d.ts +66 -66
- package/dist-esm/src/operations/backupInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/backupInstances.js +187 -103
- package/dist-esm/src/operations/backupInstances.js.map +1 -1
- package/dist-esm/src/operations/backupPolicies.d.ts +6 -6
- package/dist-esm/src/operations/backupPolicies.js +6 -6
- package/dist-esm/src/operations/backupVaultOperationResults.d.ts +1 -1
- package/dist-esm/src/operations/backupVaultOperationResults.js +1 -1
- package/dist-esm/src/operations/backupVaults.d.ts +21 -14
- package/dist-esm/src/operations/backupVaults.d.ts.map +1 -1
- package/dist-esm/src/operations/backupVaults.js +77 -22
- package/dist-esm/src/operations/backupVaults.js.map +1 -1
- package/dist-esm/src/operations/deletedBackupInstances.d.ts +8 -8
- package/dist-esm/src/operations/deletedBackupInstances.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedBackupInstances.js +16 -12
- package/dist-esm/src/operations/deletedBackupInstances.js.map +1 -1
- package/dist-esm/src/operations/exportJobs.d.ts +4 -4
- package/dist-esm/src/operations/exportJobs.d.ts.map +1 -1
- package/dist-esm/src/operations/exportJobs.js +13 -9
- package/dist-esm/src/operations/exportJobs.js.map +1 -1
- package/dist-esm/src/operations/exportJobsOperationResult.d.ts +1 -1
- package/dist-esm/src/operations/exportJobsOperationResult.js +1 -1
- package/dist-esm/src/operations/index.d.ts +0 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +0 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/jobs.d.ts +4 -4
- package/dist-esm/src/operations/jobs.js +4 -4
- package/dist-esm/src/operations/operationStatusBackupVaultContext.d.ts +1 -1
- package/dist-esm/src/operations/operationStatusBackupVaultContext.js +1 -1
- package/dist-esm/src/operations/operationStatusResourceGroupContext.d.ts +1 -1
- package/dist-esm/src/operations/operationStatusResourceGroupContext.js +1 -1
- package/dist-esm/src/operations/recoveryPoints.d.ts +8 -8
- package/dist-esm/src/operations/recoveryPoints.js +8 -8
- package/dist-esm/src/operations/resourceGuards.d.ts +33 -33
- package/dist-esm/src/operations/resourceGuards.d.ts.map +1 -1
- package/dist-esm/src/operations/resourceGuards.js +35 -32
- package/dist-esm/src/operations/resourceGuards.js.map +1 -1
- package/dist-esm/src/operations/restorableTimeRanges.d.ts +2 -2
- package/dist-esm/src/operations/restorableTimeRanges.js +2 -2
- package/dist-esm/src/operationsInterfaces/backupInstances.d.ts +64 -64
- package/dist-esm/src/operationsInterfaces/backupInstances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/backupVaultOperationResults.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/backupVaults.d.ts +19 -12
- package/dist-esm/src/operationsInterfaces/backupVaults.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/deletedBackupInstances.d.ts +6 -6
- package/dist-esm/src/operationsInterfaces/deletedBackupInstances.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/exportJobs.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/exportJobs.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/exportJobsOperationResult.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/jobs.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/operationStatusBackupVaultContext.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/operationStatusResourceGroupContext.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/resourceGuards.d.ts +19 -19
- package/dist-esm/src/operationsInterfaces/resourceGuards.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/restorableTimeRanges.d.ts +2 -2
- package/dist-esm/test/dataprotection_operations_test.spec.js +3 -3
- package/dist-esm/test/dataprotection_operations_test.spec.js.map +1 -1
- package/package.json +10 -10
- package/review/arm-dataprotection.api.md +72 -164
- package/src/dataProtectionClient.ts +5 -15
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +93 -146
- package/src/models/mappers.ts +129 -185
- package/src/models/parameters.ts +12 -36
- package/src/operations/backupInstances.ts +227 -169
- package/src/operations/backupPolicies.ts +6 -6
- package/src/operations/backupVaultOperationResults.ts +1 -1
- package/src/operations/backupVaults.ts +112 -36
- package/src/operations/deletedBackupInstances.ts +21 -17
- package/src/operations/exportJobs.ts +22 -15
- package/src/operations/exportJobsOperationResult.ts +1 -1
- package/src/operations/index.ts +0 -2
- package/src/operations/jobs.ts +4 -4
- package/src/operations/operationStatusBackupVaultContext.ts +1 -1
- package/src/operations/operationStatusResourceGroupContext.ts +1 -1
- package/src/operations/recoveryPoints.ts +8 -8
- package/src/operations/resourceGuards.ts +37 -34
- package/src/operations/restorableTimeRanges.ts +2 -2
- package/src/operationsInterfaces/backupInstances.ts +70 -70
- package/src/operationsInterfaces/backupPolicies.ts +4 -4
- package/src/operationsInterfaces/backupVaultOperationResults.ts +1 -1
- package/src/operationsInterfaces/backupVaults.ts +25 -14
- package/src/operationsInterfaces/deletedBackupInstances.ts +6 -6
- package/src/operationsInterfaces/exportJobs.ts +5 -5
- package/src/operationsInterfaces/exportJobsOperationResult.ts +1 -1
- package/src/operationsInterfaces/index.ts +0 -2
- package/src/operationsInterfaces/jobs.ts +2 -2
- package/src/operationsInterfaces/operationStatusBackupVaultContext.ts +1 -1
- package/src/operationsInterfaces/operationStatusResourceGroupContext.ts +1 -1
- package/src/operationsInterfaces/recoveryPoints.ts +4 -4
- package/src/operationsInterfaces/resourceGuards.ts +19 -19
- package/src/operationsInterfaces/restorableTimeRanges.ts +2 -2
- package/types/arm-dataprotection.d.ts +225 -322
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.d.ts +0 -2
- package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.js +0 -52
- package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.js.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.js +0 -40
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.js +0 -40
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.js.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.d.ts +0 -2
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.js +0 -53
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.js.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.d.ts +0 -2
- package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.js +0 -45
- package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.js.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.js +0 -46
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.js.map +0 -1
- package/dist-esm/src/operations/backupInstancesExtensionRouting.d.ts +0 -35
- package/dist-esm/src/operations/backupInstancesExtensionRouting.d.ts.map +0 -1
- package/dist-esm/src/operations/backupInstancesExtensionRouting.js +0 -134
- package/dist-esm/src/operations/backupInstancesExtensionRouting.js.map +0 -1
- package/dist-esm/src/operations/dppResourceGuardProxy.d.ts +0 -66
- package/dist-esm/src/operations/dppResourceGuardProxy.d.ts.map +0 -1
- package/dist-esm/src/operations/dppResourceGuardProxy.js +0 -287
- package/dist-esm/src/operations/dppResourceGuardProxy.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.d.ts +0 -12
- package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.js +0 -9
- package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.d.ts +0 -42
- package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.js +0 -9
- package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.js.map +0 -1
- package/src/operations/backupInstancesExtensionRouting.ts +0 -161
- package/src/operations/dppResourceGuardProxy.ts +0 -383
- package/src/operationsInterfaces/backupInstancesExtensionRouting.ts +0 -27
- package/src/operationsInterfaces/dppResourceGuardProxy.ts +0 -88
package/dist/index.js
CHANGED
|
@@ -138,8 +138,8 @@ exports.KnownStorageSettingStoreTypes = void 0;
|
|
|
138
138
|
(function (KnownStorageSettingStoreTypes) {
|
|
139
139
|
/** ArchiveStore */
|
|
140
140
|
KnownStorageSettingStoreTypes["ArchiveStore"] = "ArchiveStore";
|
|
141
|
-
/**
|
|
142
|
-
KnownStorageSettingStoreTypes["
|
|
141
|
+
/** OperationalStore */
|
|
142
|
+
KnownStorageSettingStoreTypes["OperationalStore"] = "OperationalStore";
|
|
143
143
|
/** VaultStore */
|
|
144
144
|
KnownStorageSettingStoreTypes["VaultStore"] = "VaultStore";
|
|
145
145
|
})(exports.KnownStorageSettingStoreTypes || (exports.KnownStorageSettingStoreTypes = {}));
|
|
@@ -153,6 +153,16 @@ exports.KnownStorageSettingTypes = void 0;
|
|
|
153
153
|
/** ZoneRedundant */
|
|
154
154
|
KnownStorageSettingTypes["ZoneRedundant"] = "ZoneRedundant";
|
|
155
155
|
})(exports.KnownStorageSettingTypes || (exports.KnownStorageSettingTypes = {}));
|
|
156
|
+
/** Known values of {@link CrossSubscriptionRestoreState} that the service accepts. */
|
|
157
|
+
exports.KnownCrossSubscriptionRestoreState = void 0;
|
|
158
|
+
(function (KnownCrossSubscriptionRestoreState) {
|
|
159
|
+
/** Disabled */
|
|
160
|
+
KnownCrossSubscriptionRestoreState["Disabled"] = "Disabled";
|
|
161
|
+
/** PermanentlyDisabled */
|
|
162
|
+
KnownCrossSubscriptionRestoreState["PermanentlyDisabled"] = "PermanentlyDisabled";
|
|
163
|
+
/** Enabled */
|
|
164
|
+
KnownCrossSubscriptionRestoreState["Enabled"] = "Enabled";
|
|
165
|
+
})(exports.KnownCrossSubscriptionRestoreState || (exports.KnownCrossSubscriptionRestoreState = {}));
|
|
156
166
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
157
167
|
exports.KnownCreatedByType = void 0;
|
|
158
168
|
(function (KnownCreatedByType) {
|
|
@@ -250,6 +260,8 @@ exports.KnownSourceDataStoreType = void 0;
|
|
|
250
260
|
KnownSourceDataStoreType["ArchiveStore"] = "ArchiveStore";
|
|
251
261
|
/** SnapshotStore */
|
|
252
262
|
KnownSourceDataStoreType["SnapshotStore"] = "SnapshotStore";
|
|
263
|
+
/** OperationalStore */
|
|
264
|
+
KnownSourceDataStoreType["OperationalStore"] = "OperationalStore";
|
|
253
265
|
/** VaultStore */
|
|
254
266
|
KnownSourceDataStoreType["VaultStore"] = "VaultStore";
|
|
255
267
|
})(exports.KnownSourceDataStoreType || (exports.KnownSourceDataStoreType = {}));
|
|
@@ -271,20 +283,6 @@ exports.KnownRestoreSourceDataStoreType = void 0;
|
|
|
271
283
|
/** ArchiveStore */
|
|
272
284
|
KnownRestoreSourceDataStoreType["ArchiveStore"] = "ArchiveStore";
|
|
273
285
|
})(exports.KnownRestoreSourceDataStoreType || (exports.KnownRestoreSourceDataStoreType = {}));
|
|
274
|
-
/** Known values of {@link ResourceGuardProvisioningState} that the service accepts. */
|
|
275
|
-
exports.KnownResourceGuardProvisioningState = void 0;
|
|
276
|
-
(function (KnownResourceGuardProvisioningState) {
|
|
277
|
-
/** Failed */
|
|
278
|
-
KnownResourceGuardProvisioningState["Failed"] = "Failed";
|
|
279
|
-
/** Provisioning */
|
|
280
|
-
KnownResourceGuardProvisioningState["Provisioning"] = "Provisioning";
|
|
281
|
-
/** Succeeded */
|
|
282
|
-
KnownResourceGuardProvisioningState["Succeeded"] = "Succeeded";
|
|
283
|
-
/** Unknown */
|
|
284
|
-
KnownResourceGuardProvisioningState["Unknown"] = "Unknown";
|
|
285
|
-
/** Updating */
|
|
286
|
-
KnownResourceGuardProvisioningState["Updating"] = "Updating";
|
|
287
|
-
})(exports.KnownResourceGuardProvisioningState || (exports.KnownResourceGuardProvisioningState = {}));
|
|
288
286
|
/** Known values of {@link RehydrationStatus} that the service accepts. */
|
|
289
287
|
exports.KnownRehydrationStatus = void 0;
|
|
290
288
|
(function (KnownRehydrationStatus) {
|
|
@@ -498,6 +496,13 @@ const BackupVault = {
|
|
|
498
496
|
type: {
|
|
499
497
|
name: "Boolean"
|
|
500
498
|
}
|
|
499
|
+
},
|
|
500
|
+
featureSettings: {
|
|
501
|
+
serializedName: "featureSettings",
|
|
502
|
+
type: {
|
|
503
|
+
name: "Composite",
|
|
504
|
+
className: "FeatureSettings"
|
|
505
|
+
}
|
|
501
506
|
}
|
|
502
507
|
}
|
|
503
508
|
}
|
|
@@ -645,10 +650,67 @@ const StorageSetting = {
|
|
|
645
650
|
}
|
|
646
651
|
}
|
|
647
652
|
};
|
|
648
|
-
const
|
|
653
|
+
const FeatureSettings = {
|
|
649
654
|
type: {
|
|
650
655
|
name: "Composite",
|
|
651
|
-
className: "
|
|
656
|
+
className: "FeatureSettings",
|
|
657
|
+
modelProperties: {
|
|
658
|
+
crossSubscriptionRestoreSettings: {
|
|
659
|
+
serializedName: "crossSubscriptionRestoreSettings",
|
|
660
|
+
type: {
|
|
661
|
+
name: "Composite",
|
|
662
|
+
className: "CrossSubscriptionRestoreSettings"
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
const CrossSubscriptionRestoreSettings = {
|
|
669
|
+
type: {
|
|
670
|
+
name: "Composite",
|
|
671
|
+
className: "CrossSubscriptionRestoreSettings",
|
|
672
|
+
modelProperties: {
|
|
673
|
+
state: {
|
|
674
|
+
serializedName: "state",
|
|
675
|
+
type: {
|
|
676
|
+
name: "String"
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
const DppIdentityDetails = {
|
|
683
|
+
type: {
|
|
684
|
+
name: "Composite",
|
|
685
|
+
className: "DppIdentityDetails",
|
|
686
|
+
modelProperties: {
|
|
687
|
+
principalId: {
|
|
688
|
+
serializedName: "principalId",
|
|
689
|
+
readOnly: true,
|
|
690
|
+
type: {
|
|
691
|
+
name: "String"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
tenantId: {
|
|
695
|
+
serializedName: "tenantId",
|
|
696
|
+
readOnly: true,
|
|
697
|
+
type: {
|
|
698
|
+
name: "String"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
type: {
|
|
702
|
+
serializedName: "type",
|
|
703
|
+
type: {
|
|
704
|
+
name: "String"
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
const DppBaseTrackedResource = {
|
|
711
|
+
type: {
|
|
712
|
+
name: "Composite",
|
|
713
|
+
className: "DppBaseTrackedResource",
|
|
652
714
|
modelProperties: {
|
|
653
715
|
eTag: {
|
|
654
716
|
serializedName: "eTag",
|
|
@@ -663,13 +725,6 @@ const DppTrackedResource = {
|
|
|
663
725
|
name: "String"
|
|
664
726
|
}
|
|
665
727
|
},
|
|
666
|
-
identity: {
|
|
667
|
-
serializedName: "identity",
|
|
668
|
-
type: {
|
|
669
|
-
name: "Composite",
|
|
670
|
-
className: "DppIdentityDetails"
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
728
|
location: {
|
|
674
729
|
serializedName: "location",
|
|
675
730
|
type: {
|
|
@@ -707,34 +762,6 @@ const DppTrackedResource = {
|
|
|
707
762
|
}
|
|
708
763
|
}
|
|
709
764
|
};
|
|
710
|
-
const DppIdentityDetails = {
|
|
711
|
-
type: {
|
|
712
|
-
name: "Composite",
|
|
713
|
-
className: "DppIdentityDetails",
|
|
714
|
-
modelProperties: {
|
|
715
|
-
principalId: {
|
|
716
|
-
serializedName: "principalId",
|
|
717
|
-
readOnly: true,
|
|
718
|
-
type: {
|
|
719
|
-
name: "String"
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
tenantId: {
|
|
723
|
-
serializedName: "tenantId",
|
|
724
|
-
readOnly: true,
|
|
725
|
-
type: {
|
|
726
|
-
name: "String"
|
|
727
|
-
}
|
|
728
|
-
},
|
|
729
|
-
type: {
|
|
730
|
-
serializedName: "type",
|
|
731
|
-
type: {
|
|
732
|
-
name: "String"
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
765
|
const SystemData = {
|
|
739
766
|
type: {
|
|
740
767
|
name: "Composite",
|
|
@@ -1005,6 +1032,13 @@ const PatchBackupVaultInput = {
|
|
|
1005
1032
|
name: "Composite",
|
|
1006
1033
|
className: "SecuritySettings"
|
|
1007
1034
|
}
|
|
1035
|
+
},
|
|
1036
|
+
featureSettings: {
|
|
1037
|
+
serializedName: "featureSettings",
|
|
1038
|
+
type: {
|
|
1039
|
+
name: "Composite",
|
|
1040
|
+
className: "FeatureSettings"
|
|
1041
|
+
}
|
|
1008
1042
|
}
|
|
1009
1043
|
}
|
|
1010
1044
|
}
|
|
@@ -2610,6 +2644,21 @@ const DppTrackedResourceList = {
|
|
|
2610
2644
|
}
|
|
2611
2645
|
}
|
|
2612
2646
|
};
|
|
2647
|
+
const PatchResourceGuardInput = {
|
|
2648
|
+
type: {
|
|
2649
|
+
name: "Composite",
|
|
2650
|
+
className: "PatchResourceGuardInput",
|
|
2651
|
+
modelProperties: {
|
|
2652
|
+
tags: {
|
|
2653
|
+
serializedName: "tags",
|
|
2654
|
+
type: {
|
|
2655
|
+
name: "Dictionary",
|
|
2656
|
+
value: { type: { name: "String" } }
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
};
|
|
2613
2662
|
const DppBaseResourceList = {
|
|
2614
2663
|
type: {
|
|
2615
2664
|
name: "Composite",
|
|
@@ -2665,103 +2714,6 @@ const DppBaseResource = {
|
|
|
2665
2714
|
}
|
|
2666
2715
|
}
|
|
2667
2716
|
};
|
|
2668
|
-
const ResourceGuardProxyBase = {
|
|
2669
|
-
type: {
|
|
2670
|
-
name: "Composite",
|
|
2671
|
-
className: "ResourceGuardProxyBase",
|
|
2672
|
-
modelProperties: {
|
|
2673
|
-
resourceGuardResourceId: {
|
|
2674
|
-
serializedName: "resourceGuardResourceId",
|
|
2675
|
-
type: {
|
|
2676
|
-
name: "String"
|
|
2677
|
-
}
|
|
2678
|
-
},
|
|
2679
|
-
resourceGuardOperationDetails: {
|
|
2680
|
-
serializedName: "resourceGuardOperationDetails",
|
|
2681
|
-
type: {
|
|
2682
|
-
name: "Sequence",
|
|
2683
|
-
element: {
|
|
2684
|
-
type: {
|
|
2685
|
-
name: "Composite",
|
|
2686
|
-
className: "ResourceGuardOperationDetail"
|
|
2687
|
-
}
|
|
2688
|
-
}
|
|
2689
|
-
}
|
|
2690
|
-
},
|
|
2691
|
-
lastUpdatedTime: {
|
|
2692
|
-
serializedName: "lastUpdatedTime",
|
|
2693
|
-
type: {
|
|
2694
|
-
name: "String"
|
|
2695
|
-
}
|
|
2696
|
-
},
|
|
2697
|
-
description: {
|
|
2698
|
-
serializedName: "description",
|
|
2699
|
-
type: {
|
|
2700
|
-
name: "String"
|
|
2701
|
-
}
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
}
|
|
2705
|
-
};
|
|
2706
|
-
const ResourceGuardOperationDetail = {
|
|
2707
|
-
type: {
|
|
2708
|
-
name: "Composite",
|
|
2709
|
-
className: "ResourceGuardOperationDetail",
|
|
2710
|
-
modelProperties: {
|
|
2711
|
-
vaultCriticalOperation: {
|
|
2712
|
-
serializedName: "vaultCriticalOperation",
|
|
2713
|
-
type: {
|
|
2714
|
-
name: "String"
|
|
2715
|
-
}
|
|
2716
|
-
},
|
|
2717
|
-
defaultResourceRequest: {
|
|
2718
|
-
serializedName: "defaultResourceRequest",
|
|
2719
|
-
type: {
|
|
2720
|
-
name: "String"
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2725
|
-
};
|
|
2726
|
-
const UnlockDeleteRequest = {
|
|
2727
|
-
type: {
|
|
2728
|
-
name: "Composite",
|
|
2729
|
-
className: "UnlockDeleteRequest",
|
|
2730
|
-
modelProperties: {
|
|
2731
|
-
resourceGuardOperationRequests: {
|
|
2732
|
-
serializedName: "resourceGuardOperationRequests",
|
|
2733
|
-
type: {
|
|
2734
|
-
name: "Sequence",
|
|
2735
|
-
element: {
|
|
2736
|
-
type: {
|
|
2737
|
-
name: "String"
|
|
2738
|
-
}
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
},
|
|
2742
|
-
resourceToBeDeleted: {
|
|
2743
|
-
serializedName: "resourceToBeDeleted",
|
|
2744
|
-
type: {
|
|
2745
|
-
name: "String"
|
|
2746
|
-
}
|
|
2747
|
-
}
|
|
2748
|
-
}
|
|
2749
|
-
}
|
|
2750
|
-
};
|
|
2751
|
-
const UnlockDeleteResponse = {
|
|
2752
|
-
type: {
|
|
2753
|
-
name: "Composite",
|
|
2754
|
-
className: "UnlockDeleteResponse",
|
|
2755
|
-
modelProperties: {
|
|
2756
|
-
unlockDeleteExpiryTime: {
|
|
2757
|
-
serializedName: "unlockDeleteExpiryTime",
|
|
2758
|
-
type: {
|
|
2759
|
-
name: "String"
|
|
2760
|
-
}
|
|
2761
|
-
}
|
|
2762
|
-
}
|
|
2763
|
-
}
|
|
2764
|
-
};
|
|
2765
2717
|
const DeleteOption = {
|
|
2766
2718
|
type: {
|
|
2767
2719
|
name: "Composite",
|
|
@@ -3307,6 +3259,12 @@ const TargetDetails = {
|
|
|
3307
3259
|
type: {
|
|
3308
3260
|
name: "String"
|
|
3309
3261
|
}
|
|
3262
|
+
},
|
|
3263
|
+
targetResourceArmId: {
|
|
3264
|
+
serializedName: "targetResourceArmId",
|
|
3265
|
+
type: {
|
|
3266
|
+
name: "String"
|
|
3267
|
+
}
|
|
3310
3268
|
}
|
|
3311
3269
|
}
|
|
3312
3270
|
}
|
|
@@ -3379,15 +3337,15 @@ const SecretStoreResource = {
|
|
|
3379
3337
|
}
|
|
3380
3338
|
}
|
|
3381
3339
|
};
|
|
3382
|
-
const
|
|
3340
|
+
const DppTrackedResource = {
|
|
3383
3341
|
type: {
|
|
3384
3342
|
name: "Composite",
|
|
3385
|
-
className: "
|
|
3386
|
-
modelProperties: Object.assign(Object.assign({},
|
|
3387
|
-
serializedName: "
|
|
3343
|
+
className: "DppTrackedResource",
|
|
3344
|
+
modelProperties: Object.assign(Object.assign({}, DppBaseTrackedResource.type.modelProperties), { identity: {
|
|
3345
|
+
serializedName: "identity",
|
|
3388
3346
|
type: {
|
|
3389
3347
|
name: "Composite",
|
|
3390
|
-
className: "
|
|
3348
|
+
className: "DppIdentityDetails"
|
|
3391
3349
|
}
|
|
3392
3350
|
} })
|
|
3393
3351
|
}
|
|
@@ -3396,7 +3354,7 @@ const ResourceGuardResource = {
|
|
|
3396
3354
|
type: {
|
|
3397
3355
|
name: "Composite",
|
|
3398
3356
|
className: "ResourceGuardResource",
|
|
3399
|
-
modelProperties: Object.assign(Object.assign({},
|
|
3357
|
+
modelProperties: Object.assign(Object.assign({}, DppBaseTrackedResource.type.modelProperties), { properties: {
|
|
3400
3358
|
serializedName: "properties",
|
|
3401
3359
|
type: {
|
|
3402
3360
|
name: "Composite",
|
|
@@ -3513,24 +3471,6 @@ const DeletedBackupInstanceResourceList = {
|
|
|
3513
3471
|
} })
|
|
3514
3472
|
}
|
|
3515
3473
|
};
|
|
3516
|
-
const ResourceGuardProxyBaseResourceList = {
|
|
3517
|
-
type: {
|
|
3518
|
-
name: "Composite",
|
|
3519
|
-
className: "ResourceGuardProxyBaseResourceList",
|
|
3520
|
-
modelProperties: Object.assign(Object.assign({}, DppResourceList.type.modelProperties), { value: {
|
|
3521
|
-
serializedName: "value",
|
|
3522
|
-
type: {
|
|
3523
|
-
name: "Sequence",
|
|
3524
|
-
element: {
|
|
3525
|
-
type: {
|
|
3526
|
-
name: "Composite",
|
|
3527
|
-
className: "ResourceGuardProxyBaseResource"
|
|
3528
|
-
}
|
|
3529
|
-
}
|
|
3530
|
-
}
|
|
3531
|
-
} })
|
|
3532
|
-
}
|
|
3533
|
-
};
|
|
3534
3474
|
const OperationJobExtendedInfo = {
|
|
3535
3475
|
serializedName: "OperationJobExtendedInfo",
|
|
3536
3476
|
type: {
|
|
@@ -3681,19 +3621,6 @@ const DeletedBackupInstanceResource = {
|
|
|
3681
3621
|
} })
|
|
3682
3622
|
}
|
|
3683
3623
|
};
|
|
3684
|
-
const ResourceGuardProxyBaseResource = {
|
|
3685
|
-
type: {
|
|
3686
|
-
name: "Composite",
|
|
3687
|
-
className: "ResourceGuardProxyBaseResource",
|
|
3688
|
-
modelProperties: Object.assign(Object.assign({}, DppResource.type.modelProperties), { properties: {
|
|
3689
|
-
serializedName: "properties",
|
|
3690
|
-
type: {
|
|
3691
|
-
name: "Composite",
|
|
3692
|
-
className: "ResourceGuardProxyBase"
|
|
3693
|
-
}
|
|
3694
|
-
} })
|
|
3695
|
-
}
|
|
3696
|
-
};
|
|
3697
3624
|
const DeletedBackupInstance = {
|
|
3698
3625
|
type: {
|
|
3699
3626
|
name: "Composite",
|
|
@@ -3903,6 +3830,12 @@ const AzureBackupDiscreteRecoveryPoint = {
|
|
|
3903
3830
|
type: {
|
|
3904
3831
|
name: "String"
|
|
3905
3832
|
}
|
|
3833
|
+
}, expiryTime: {
|
|
3834
|
+
serializedName: "expiryTime",
|
|
3835
|
+
readOnly: true,
|
|
3836
|
+
type: {
|
|
3837
|
+
name: "DateTime"
|
|
3838
|
+
}
|
|
3906
3839
|
} })
|
|
3907
3840
|
}
|
|
3908
3841
|
};
|
|
@@ -4462,6 +4395,19 @@ const KubernetesClusterRestoreCriteria = {
|
|
|
4462
4395
|
} })
|
|
4463
4396
|
}
|
|
4464
4397
|
};
|
|
4398
|
+
const BackupVaultResource = {
|
|
4399
|
+
type: {
|
|
4400
|
+
name: "Composite",
|
|
4401
|
+
className: "BackupVaultResource",
|
|
4402
|
+
modelProperties: Object.assign(Object.assign({}, DppTrackedResource.type.modelProperties), { properties: {
|
|
4403
|
+
serializedName: "properties",
|
|
4404
|
+
type: {
|
|
4405
|
+
name: "Composite",
|
|
4406
|
+
className: "BackupVault"
|
|
4407
|
+
}
|
|
4408
|
+
} })
|
|
4409
|
+
}
|
|
4410
|
+
};
|
|
4465
4411
|
const AzureBackupRestoreWithRehydrationRequest = {
|
|
4466
4412
|
serializedName: "AzureBackupRestoreWithRehydrationRequest",
|
|
4467
4413
|
type: {
|
|
@@ -4922,8 +4868,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4922
4868
|
SoftDeleteSettings: SoftDeleteSettings,
|
|
4923
4869
|
ImmutabilitySettings: ImmutabilitySettings,
|
|
4924
4870
|
StorageSetting: StorageSetting,
|
|
4925
|
-
|
|
4871
|
+
FeatureSettings: FeatureSettings,
|
|
4872
|
+
CrossSubscriptionRestoreSettings: CrossSubscriptionRestoreSettings,
|
|
4926
4873
|
DppIdentityDetails: DppIdentityDetails,
|
|
4874
|
+
DppBaseTrackedResource: DppBaseTrackedResource,
|
|
4927
4875
|
SystemData: SystemData,
|
|
4928
4876
|
DppResourceList: DppResourceList,
|
|
4929
4877
|
CloudError: CloudError,
|
|
@@ -4979,12 +4927,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4979
4927
|
ResourceGuard: ResourceGuard,
|
|
4980
4928
|
ResourceGuardOperation: ResourceGuardOperation,
|
|
4981
4929
|
DppTrackedResourceList: DppTrackedResourceList,
|
|
4930
|
+
PatchResourceGuardInput: PatchResourceGuardInput,
|
|
4982
4931
|
DppBaseResourceList: DppBaseResourceList,
|
|
4983
4932
|
DppBaseResource: DppBaseResource,
|
|
4984
|
-
ResourceGuardProxyBase: ResourceGuardProxyBase,
|
|
4985
|
-
ResourceGuardOperationDetail: ResourceGuardOperationDetail,
|
|
4986
|
-
UnlockDeleteRequest: UnlockDeleteRequest,
|
|
4987
|
-
UnlockDeleteResponse: UnlockDeleteResponse,
|
|
4988
4933
|
DeleteOption: DeleteOption,
|
|
4989
4934
|
RecoveryPointsFilters: RecoveryPointsFilters,
|
|
4990
4935
|
AdhocBasedTaggingCriteria: AdhocBasedTaggingCriteria,
|
|
@@ -5006,7 +4951,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5006
4951
|
TargetDetails: TargetDetails,
|
|
5007
4952
|
TaggingCriteria: TaggingCriteria,
|
|
5008
4953
|
SecretStoreResource: SecretStoreResource,
|
|
5009
|
-
|
|
4954
|
+
DppTrackedResource: DppTrackedResource,
|
|
5010
4955
|
ResourceGuardResource: ResourceGuardResource,
|
|
5011
4956
|
BackupVaultResourceList: BackupVaultResourceList,
|
|
5012
4957
|
BaseBackupPolicyResourceList: BaseBackupPolicyResourceList,
|
|
@@ -5014,7 +4959,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5014
4959
|
AzureBackupRecoveryPointResourceList: AzureBackupRecoveryPointResourceList,
|
|
5015
4960
|
AzureBackupJobResourceList: AzureBackupJobResourceList,
|
|
5016
4961
|
DeletedBackupInstanceResourceList: DeletedBackupInstanceResourceList,
|
|
5017
|
-
ResourceGuardProxyBaseResourceList: ResourceGuardProxyBaseResourceList,
|
|
5018
4962
|
OperationJobExtendedInfo: OperationJobExtendedInfo,
|
|
5019
4963
|
FeatureValidationRequest: FeatureValidationRequest,
|
|
5020
4964
|
FeatureValidationResponse: FeatureValidationResponse,
|
|
@@ -5024,7 +4968,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5024
4968
|
AzureBackupJobResource: AzureBackupJobResource,
|
|
5025
4969
|
AzureBackupFindRestorableTimeRangesResponseResource: AzureBackupFindRestorableTimeRangesResponseResource,
|
|
5026
4970
|
DeletedBackupInstanceResource: DeletedBackupInstanceResource,
|
|
5027
|
-
ResourceGuardProxyBaseResource: ResourceGuardProxyBaseResource,
|
|
5028
4971
|
DeletedBackupInstance: DeletedBackupInstance,
|
|
5029
4972
|
AzureOperationalStoreParameters: AzureOperationalStoreParameters,
|
|
5030
4973
|
KubernetesClusterBackupDatasourceParameters: KubernetesClusterBackupDatasourceParameters,
|
|
@@ -5054,6 +4997,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5054
4997
|
KubernetesStorageClassRestoreCriteria: KubernetesStorageClassRestoreCriteria,
|
|
5055
4998
|
KubernetesPVRestoreCriteria: KubernetesPVRestoreCriteria,
|
|
5056
4999
|
KubernetesClusterRestoreCriteria: KubernetesClusterRestoreCriteria,
|
|
5000
|
+
BackupVaultResource: BackupVaultResource,
|
|
5057
5001
|
AzureBackupRestoreWithRehydrationRequest: AzureBackupRestoreWithRehydrationRequest,
|
|
5058
5002
|
OperationResultGetHeaders: OperationResultGetHeaders,
|
|
5059
5003
|
BackupVaultOperationResultsGetHeaders: BackupVaultOperationResultsGetHeaders,
|
|
@@ -5105,7 +5049,7 @@ const $host = {
|
|
|
5105
5049
|
const apiVersion = {
|
|
5106
5050
|
parameterPath: "apiVersion",
|
|
5107
5051
|
mapper: {
|
|
5108
|
-
defaultValue: "
|
|
5052
|
+
defaultValue: "2023-01-01",
|
|
5109
5053
|
isConstant: true,
|
|
5110
5054
|
serializedName: "api-version",
|
|
5111
5055
|
type: {
|
|
@@ -5119,13 +5063,17 @@ const subscriptionId = {
|
|
|
5119
5063
|
serializedName: "subscriptionId",
|
|
5120
5064
|
required: true,
|
|
5121
5065
|
type: {
|
|
5122
|
-
name: "
|
|
5066
|
+
name: "Uuid"
|
|
5123
5067
|
}
|
|
5124
5068
|
}
|
|
5125
5069
|
};
|
|
5126
5070
|
const resourceGroupName = {
|
|
5127
5071
|
parameterPath: "resourceGroupName",
|
|
5128
5072
|
mapper: {
|
|
5073
|
+
constraints: {
|
|
5074
|
+
MaxLength: 90,
|
|
5075
|
+
MinLength: 1
|
|
5076
|
+
},
|
|
5129
5077
|
serializedName: "resourceGroupName",
|
|
5130
5078
|
required: true,
|
|
5131
5079
|
type: {
|
|
@@ -5253,16 +5201,6 @@ const parameters11 = {
|
|
|
5253
5201
|
parameterPath: "parameters",
|
|
5254
5202
|
mapper: ValidateRestoreRequestObject
|
|
5255
5203
|
};
|
|
5256
|
-
const resourceId = {
|
|
5257
|
-
parameterPath: "resourceId",
|
|
5258
|
-
mapper: {
|
|
5259
|
-
serializedName: "resourceId",
|
|
5260
|
-
required: true,
|
|
5261
|
-
type: {
|
|
5262
|
-
name: "String"
|
|
5263
|
-
}
|
|
5264
|
-
}
|
|
5265
|
-
};
|
|
5266
5204
|
const filter = {
|
|
5267
5205
|
parameterPath: ["options", "filter"],
|
|
5268
5206
|
mapper: {
|
|
@@ -5319,6 +5257,10 @@ const resourceGuardsName = {
|
|
|
5319
5257
|
}
|
|
5320
5258
|
}
|
|
5321
5259
|
};
|
|
5260
|
+
const parameters14 = {
|
|
5261
|
+
parameterPath: "parameters",
|
|
5262
|
+
mapper: PatchResourceGuardInput
|
|
5263
|
+
};
|
|
5322
5264
|
const requestName = {
|
|
5323
5265
|
parameterPath: "requestName",
|
|
5324
5266
|
mapper: {
|
|
@@ -5329,24 +5271,6 @@ const requestName = {
|
|
|
5329
5271
|
}
|
|
5330
5272
|
}
|
|
5331
5273
|
};
|
|
5332
|
-
const resourceGuardProxyName = {
|
|
5333
|
-
parameterPath: "resourceGuardProxyName",
|
|
5334
|
-
mapper: {
|
|
5335
|
-
serializedName: "resourceGuardProxyName",
|
|
5336
|
-
required: true,
|
|
5337
|
-
type: {
|
|
5338
|
-
name: "String"
|
|
5339
|
-
}
|
|
5340
|
-
}
|
|
5341
|
-
};
|
|
5342
|
-
const parameters14 = {
|
|
5343
|
-
parameterPath: "parameters",
|
|
5344
|
-
mapper: ResourceGuardProxyBaseResource
|
|
5345
|
-
};
|
|
5346
|
-
const parameters15 = {
|
|
5347
|
-
parameterPath: "parameters",
|
|
5348
|
-
mapper: UnlockDeleteRequest
|
|
5349
|
-
};
|
|
5350
5274
|
|
|
5351
5275
|
/*
|
|
5352
5276
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -5355,25 +5279,17 @@ const parameters15 = {
|
|
|
5355
5279
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
5356
5280
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5357
5281
|
*/
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
});
|
|
5370
|
-
}
|
|
5371
|
-
sendPollRequest(path) {
|
|
5372
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5373
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
5374
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
5375
|
-
});
|
|
5376
|
-
}
|
|
5282
|
+
function createLroSpec(inputs) {
|
|
5283
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
5284
|
+
return {
|
|
5285
|
+
requestMethod: spec.httpMethod,
|
|
5286
|
+
requestPath: spec.path,
|
|
5287
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
5288
|
+
sendPollRequest: (path, options) => {
|
|
5289
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
5290
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
5291
|
+
}
|
|
5292
|
+
};
|
|
5377
5293
|
}
|
|
5378
5294
|
|
|
5379
5295
|
/*
|
|
@@ -5454,7 +5370,7 @@ class BackupVaultsImpl {
|
|
|
5454
5370
|
}
|
|
5455
5371
|
/**
|
|
5456
5372
|
* Returns resource collection belonging to a resource group.
|
|
5457
|
-
* @param resourceGroupName The name of the resource group
|
|
5373
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5458
5374
|
* @param options The options parameters.
|
|
5459
5375
|
*/
|
|
5460
5376
|
listInResourceGroup(resourceGroupName, options) {
|
|
@@ -5521,7 +5437,7 @@ class BackupVaultsImpl {
|
|
|
5521
5437
|
}
|
|
5522
5438
|
/**
|
|
5523
5439
|
* Returns resource collection belonging to a resource group.
|
|
5524
|
-
* @param resourceGroupName The name of the resource group
|
|
5440
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5525
5441
|
* @param options The options parameters.
|
|
5526
5442
|
*/
|
|
5527
5443
|
_getInResourceGroup(resourceGroupName, options) {
|
|
@@ -5529,16 +5445,16 @@ class BackupVaultsImpl {
|
|
|
5529
5445
|
}
|
|
5530
5446
|
/**
|
|
5531
5447
|
* Returns a resource belonging to a resource group.
|
|
5532
|
-
* @param resourceGroupName The name of the resource group
|
|
5448
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5533
5449
|
* @param vaultName The name of the backup vault.
|
|
5534
5450
|
* @param options The options parameters.
|
|
5535
5451
|
*/
|
|
5536
5452
|
get(resourceGroupName, vaultName, options) {
|
|
5537
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, getOperationSpec$
|
|
5453
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, getOperationSpec$c);
|
|
5538
5454
|
}
|
|
5539
5455
|
/**
|
|
5540
5456
|
* Creates or updates a BackupVault resource belonging to a resource group.
|
|
5541
|
-
* @param resourceGroupName The name of the resource group
|
|
5457
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5542
5458
|
* @param vaultName The name of the backup vault.
|
|
5543
5459
|
* @param parameters Request body for operation
|
|
5544
5460
|
* @param options The options parameters.
|
|
@@ -5548,7 +5464,7 @@ class BackupVaultsImpl {
|
|
|
5548
5464
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5549
5465
|
return this.client.sendOperationRequest(args, spec);
|
|
5550
5466
|
});
|
|
5551
|
-
const
|
|
5467
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5552
5468
|
var _a;
|
|
5553
5469
|
let currentRawResponse = undefined;
|
|
5554
5470
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5567,9 +5483,13 @@ class BackupVaultsImpl {
|
|
|
5567
5483
|
}
|
|
5568
5484
|
};
|
|
5569
5485
|
});
|
|
5570
|
-
const lro =
|
|
5571
|
-
|
|
5572
|
-
|
|
5486
|
+
const lro = createLroSpec({
|
|
5487
|
+
sendOperationFn,
|
|
5488
|
+
args: { resourceGroupName, vaultName, parameters, options },
|
|
5489
|
+
spec: createOrUpdateOperationSpec$2
|
|
5490
|
+
});
|
|
5491
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5492
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5573
5493
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5574
5494
|
});
|
|
5575
5495
|
yield poller.poll();
|
|
@@ -5578,7 +5498,7 @@ class BackupVaultsImpl {
|
|
|
5578
5498
|
}
|
|
5579
5499
|
/**
|
|
5580
5500
|
* Creates or updates a BackupVault resource belonging to a resource group.
|
|
5581
|
-
* @param resourceGroupName The name of the resource group
|
|
5501
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5582
5502
|
* @param vaultName The name of the backup vault.
|
|
5583
5503
|
* @param parameters Request body for operation
|
|
5584
5504
|
* @param options The options parameters.
|
|
@@ -5591,17 +5511,63 @@ class BackupVaultsImpl {
|
|
|
5591
5511
|
}
|
|
5592
5512
|
/**
|
|
5593
5513
|
* Deletes a BackupVault resource from the resource group.
|
|
5594
|
-
* @param resourceGroupName The name of the resource group
|
|
5514
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5515
|
+
* @param vaultName The name of the backup vault.
|
|
5516
|
+
* @param options The options parameters.
|
|
5517
|
+
*/
|
|
5518
|
+
beginDelete(resourceGroupName, vaultName, options) {
|
|
5519
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5520
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5521
|
+
return this.client.sendOperationRequest(args, spec);
|
|
5522
|
+
});
|
|
5523
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5524
|
+
var _a;
|
|
5525
|
+
let currentRawResponse = undefined;
|
|
5526
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5527
|
+
const callback = (rawResponse, flatResponse) => {
|
|
5528
|
+
currentRawResponse = rawResponse;
|
|
5529
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5530
|
+
};
|
|
5531
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5532
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
5533
|
+
return {
|
|
5534
|
+
flatResponse,
|
|
5535
|
+
rawResponse: {
|
|
5536
|
+
statusCode: currentRawResponse.status,
|
|
5537
|
+
body: currentRawResponse.parsedBody,
|
|
5538
|
+
headers: currentRawResponse.headers.toJSON()
|
|
5539
|
+
}
|
|
5540
|
+
};
|
|
5541
|
+
});
|
|
5542
|
+
const lro = createLroSpec({
|
|
5543
|
+
sendOperationFn,
|
|
5544
|
+
args: { resourceGroupName, vaultName, options },
|
|
5545
|
+
spec: deleteOperationSpec$3
|
|
5546
|
+
});
|
|
5547
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5548
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5549
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5550
|
+
});
|
|
5551
|
+
yield poller.poll();
|
|
5552
|
+
return poller;
|
|
5553
|
+
});
|
|
5554
|
+
}
|
|
5555
|
+
/**
|
|
5556
|
+
* Deletes a BackupVault resource from the resource group.
|
|
5557
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5595
5558
|
* @param vaultName The name of the backup vault.
|
|
5596
5559
|
* @param options The options parameters.
|
|
5597
5560
|
*/
|
|
5598
|
-
|
|
5599
|
-
return
|
|
5561
|
+
beginDeleteAndWait(resourceGroupName, vaultName, options) {
|
|
5562
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5563
|
+
const poller = yield this.beginDelete(resourceGroupName, vaultName, options);
|
|
5564
|
+
return poller.pollUntilDone();
|
|
5565
|
+
});
|
|
5600
5566
|
}
|
|
5601
5567
|
/**
|
|
5602
5568
|
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a
|
|
5603
5569
|
* resource.
|
|
5604
|
-
* @param resourceGroupName The name of the resource group
|
|
5570
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5605
5571
|
* @param vaultName The name of the backup vault.
|
|
5606
5572
|
* @param parameters Request body for operation
|
|
5607
5573
|
* @param options The options parameters.
|
|
@@ -5611,7 +5577,7 @@ class BackupVaultsImpl {
|
|
|
5611
5577
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5612
5578
|
return this.client.sendOperationRequest(args, spec);
|
|
5613
5579
|
});
|
|
5614
|
-
const
|
|
5580
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5615
5581
|
var _a;
|
|
5616
5582
|
let currentRawResponse = undefined;
|
|
5617
5583
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -5630,9 +5596,13 @@ class BackupVaultsImpl {
|
|
|
5630
5596
|
}
|
|
5631
5597
|
};
|
|
5632
5598
|
});
|
|
5633
|
-
const lro =
|
|
5634
|
-
|
|
5635
|
-
|
|
5599
|
+
const lro = createLroSpec({
|
|
5600
|
+
sendOperationFn,
|
|
5601
|
+
args: { resourceGroupName, vaultName, parameters, options },
|
|
5602
|
+
spec: updateOperationSpec
|
|
5603
|
+
});
|
|
5604
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5605
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5636
5606
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
5637
5607
|
});
|
|
5638
5608
|
yield poller.poll();
|
|
@@ -5642,7 +5612,7 @@ class BackupVaultsImpl {
|
|
|
5642
5612
|
/**
|
|
5643
5613
|
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a
|
|
5644
5614
|
* resource.
|
|
5645
|
-
* @param resourceGroupName The name of the resource group
|
|
5615
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5646
5616
|
* @param vaultName The name of the backup vault.
|
|
5647
5617
|
* @param parameters Request body for operation
|
|
5648
5618
|
* @param options The options parameters.
|
|
@@ -5655,7 +5625,7 @@ class BackupVaultsImpl {
|
|
|
5655
5625
|
}
|
|
5656
5626
|
/**
|
|
5657
5627
|
* API to check for resource name availability
|
|
5658
|
-
* @param resourceGroupName The name of the resource group
|
|
5628
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5659
5629
|
* @param location The location in which uniqueness will be verified.
|
|
5660
5630
|
* @param parameters Check name availability request
|
|
5661
5631
|
* @param options The options parameters.
|
|
@@ -5673,7 +5643,7 @@ class BackupVaultsImpl {
|
|
|
5673
5643
|
}
|
|
5674
5644
|
/**
|
|
5675
5645
|
* GetInResourceGroupNext
|
|
5676
|
-
* @param resourceGroupName The name of the resource group
|
|
5646
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
5677
5647
|
* @param nextLink The nextLink from the previous successful call to the GetInResourceGroup method.
|
|
5678
5648
|
* @param options The options parameters.
|
|
5679
5649
|
*/
|
|
@@ -5682,7 +5652,7 @@ class BackupVaultsImpl {
|
|
|
5682
5652
|
}
|
|
5683
5653
|
}
|
|
5684
5654
|
// Operation Specifications
|
|
5685
|
-
const serializer$
|
|
5655
|
+
const serializer$g = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
5686
5656
|
const getInSubscriptionOperationSpec = {
|
|
5687
5657
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults",
|
|
5688
5658
|
httpMethod: "GET",
|
|
@@ -5697,7 +5667,7 @@ const getInSubscriptionOperationSpec = {
|
|
|
5697
5667
|
queryParameters: [apiVersion],
|
|
5698
5668
|
urlParameters: [$host, subscriptionId],
|
|
5699
5669
|
headerParameters: [accept],
|
|
5700
|
-
serializer: serializer$
|
|
5670
|
+
serializer: serializer$g
|
|
5701
5671
|
};
|
|
5702
5672
|
const getInResourceGroupOperationSpec = {
|
|
5703
5673
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults",
|
|
@@ -5717,9 +5687,9 @@ const getInResourceGroupOperationSpec = {
|
|
|
5717
5687
|
resourceGroupName
|
|
5718
5688
|
],
|
|
5719
5689
|
headerParameters: [accept],
|
|
5720
|
-
serializer: serializer$
|
|
5690
|
+
serializer: serializer$g
|
|
5721
5691
|
};
|
|
5722
|
-
const getOperationSpec$
|
|
5692
|
+
const getOperationSpec$c = {
|
|
5723
5693
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}",
|
|
5724
5694
|
httpMethod: "GET",
|
|
5725
5695
|
responses: {
|
|
@@ -5738,7 +5708,7 @@ const getOperationSpec$d = {
|
|
|
5738
5708
|
vaultName
|
|
5739
5709
|
],
|
|
5740
5710
|
headerParameters: [accept],
|
|
5741
|
-
serializer: serializer$
|
|
5711
|
+
serializer: serializer$g
|
|
5742
5712
|
};
|
|
5743
5713
|
const createOrUpdateOperationSpec$2 = {
|
|
5744
5714
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}",
|
|
@@ -5770,13 +5740,14 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
5770
5740
|
],
|
|
5771
5741
|
headerParameters: [accept, contentType],
|
|
5772
5742
|
mediaType: "json",
|
|
5773
|
-
serializer: serializer$
|
|
5743
|
+
serializer: serializer$g
|
|
5774
5744
|
};
|
|
5775
|
-
const deleteOperationSpec$
|
|
5745
|
+
const deleteOperationSpec$3 = {
|
|
5776
5746
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}",
|
|
5777
5747
|
httpMethod: "DELETE",
|
|
5778
5748
|
responses: {
|
|
5779
5749
|
200: {},
|
|
5750
|
+
201: {},
|
|
5780
5751
|
202: {},
|
|
5781
5752
|
204: {},
|
|
5782
5753
|
default: {
|
|
@@ -5791,7 +5762,7 @@ const deleteOperationSpec$4 = {
|
|
|
5791
5762
|
vaultName
|
|
5792
5763
|
],
|
|
5793
5764
|
headerParameters: [accept],
|
|
5794
|
-
serializer: serializer$
|
|
5765
|
+
serializer: serializer$g
|
|
5795
5766
|
};
|
|
5796
5767
|
const updateOperationSpec = {
|
|
5797
5768
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}",
|
|
@@ -5823,7 +5794,7 @@ const updateOperationSpec = {
|
|
|
5823
5794
|
],
|
|
5824
5795
|
headerParameters: [accept, contentType],
|
|
5825
5796
|
mediaType: "json",
|
|
5826
|
-
serializer: serializer$
|
|
5797
|
+
serializer: serializer$g
|
|
5827
5798
|
};
|
|
5828
5799
|
const checkNameAvailabilityOperationSpec = {
|
|
5829
5800
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/checkNameAvailability",
|
|
@@ -5846,7 +5817,7 @@ const checkNameAvailabilityOperationSpec = {
|
|
|
5846
5817
|
],
|
|
5847
5818
|
headerParameters: [accept, contentType],
|
|
5848
5819
|
mediaType: "json",
|
|
5849
|
-
serializer: serializer$
|
|
5820
|
+
serializer: serializer$g
|
|
5850
5821
|
};
|
|
5851
5822
|
const getInSubscriptionNextOperationSpec = {
|
|
5852
5823
|
path: "{nextLink}",
|
|
@@ -5865,7 +5836,7 @@ const getInSubscriptionNextOperationSpec = {
|
|
|
5865
5836
|
nextLink
|
|
5866
5837
|
],
|
|
5867
5838
|
headerParameters: [accept],
|
|
5868
|
-
serializer: serializer$
|
|
5839
|
+
serializer: serializer$g
|
|
5869
5840
|
};
|
|
5870
5841
|
const getInResourceGroupNextOperationSpec = {
|
|
5871
5842
|
path: "{nextLink}",
|
|
@@ -5885,7 +5856,7 @@ const getInResourceGroupNextOperationSpec = {
|
|
|
5885
5856
|
nextLink
|
|
5886
5857
|
],
|
|
5887
5858
|
headerParameters: [accept],
|
|
5888
|
-
serializer: serializer$
|
|
5859
|
+
serializer: serializer$g
|
|
5889
5860
|
};
|
|
5890
5861
|
|
|
5891
5862
|
/*
|
|
@@ -5911,12 +5882,12 @@ class OperationResultImpl {
|
|
|
5911
5882
|
* @param options The options parameters.
|
|
5912
5883
|
*/
|
|
5913
5884
|
get(operationId, location, options) {
|
|
5914
|
-
return this.client.sendOperationRequest({ operationId, location, options }, getOperationSpec$
|
|
5885
|
+
return this.client.sendOperationRequest({ operationId, location, options }, getOperationSpec$b);
|
|
5915
5886
|
}
|
|
5916
5887
|
}
|
|
5917
5888
|
// Operation Specifications
|
|
5918
|
-
const serializer$
|
|
5919
|
-
const getOperationSpec$
|
|
5889
|
+
const serializer$f = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
5890
|
+
const getOperationSpec$b = {
|
|
5920
5891
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationResults/{operationId}",
|
|
5921
5892
|
httpMethod: "GET",
|
|
5922
5893
|
responses: {
|
|
@@ -5938,7 +5909,7 @@ const getOperationSpec$c = {
|
|
|
5938
5909
|
operationId
|
|
5939
5910
|
],
|
|
5940
5911
|
headerParameters: [accept],
|
|
5941
|
-
serializer: serializer$
|
|
5912
|
+
serializer: serializer$f
|
|
5942
5913
|
};
|
|
5943
5914
|
|
|
5944
5915
|
/*
|
|
@@ -5964,12 +5935,12 @@ class OperationStatusImpl {
|
|
|
5964
5935
|
* @param options The options parameters.
|
|
5965
5936
|
*/
|
|
5966
5937
|
get(location, operationId, options) {
|
|
5967
|
-
return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec$
|
|
5938
|
+
return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec$a);
|
|
5968
5939
|
}
|
|
5969
5940
|
}
|
|
5970
5941
|
// Operation Specifications
|
|
5971
|
-
const serializer$
|
|
5972
|
-
const getOperationSpec$
|
|
5942
|
+
const serializer$e = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
5943
|
+
const getOperationSpec$a = {
|
|
5973
5944
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}",
|
|
5974
5945
|
httpMethod: "GET",
|
|
5975
5946
|
responses: {
|
|
@@ -5988,7 +5959,7 @@ const getOperationSpec$b = {
|
|
|
5988
5959
|
operationId
|
|
5989
5960
|
],
|
|
5990
5961
|
headerParameters: [accept],
|
|
5991
|
-
serializer: serializer$
|
|
5962
|
+
serializer: serializer$e
|
|
5992
5963
|
};
|
|
5993
5964
|
|
|
5994
5965
|
/*
|
|
@@ -6009,18 +5980,18 @@ class OperationStatusBackupVaultContextImpl {
|
|
|
6009
5980
|
}
|
|
6010
5981
|
/**
|
|
6011
5982
|
* Gets the operation status for an operation over a BackupVault's context.
|
|
6012
|
-
* @param resourceGroupName The name of the resource group
|
|
5983
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6013
5984
|
* @param vaultName The name of the backup vault.
|
|
6014
5985
|
* @param operationId
|
|
6015
5986
|
* @param options The options parameters.
|
|
6016
5987
|
*/
|
|
6017
5988
|
get(resourceGroupName, vaultName, operationId, options) {
|
|
6018
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$
|
|
5989
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$9);
|
|
6019
5990
|
}
|
|
6020
5991
|
}
|
|
6021
5992
|
// Operation Specifications
|
|
6022
|
-
const serializer$
|
|
6023
|
-
const getOperationSpec$
|
|
5993
|
+
const serializer$d = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
5994
|
+
const getOperationSpec$9 = {
|
|
6024
5995
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationStatus/{operationId}",
|
|
6025
5996
|
httpMethod: "GET",
|
|
6026
5997
|
responses: {
|
|
@@ -6040,7 +6011,7 @@ const getOperationSpec$a = {
|
|
|
6040
6011
|
operationId
|
|
6041
6012
|
],
|
|
6042
6013
|
headerParameters: [accept],
|
|
6043
|
-
serializer: serializer$
|
|
6014
|
+
serializer: serializer$d
|
|
6044
6015
|
};
|
|
6045
6016
|
|
|
6046
6017
|
/*
|
|
@@ -6061,17 +6032,17 @@ class OperationStatusResourceGroupContextImpl {
|
|
|
6061
6032
|
}
|
|
6062
6033
|
/**
|
|
6063
6034
|
* Gets the operation status for an operation over a ResourceGroup's context.
|
|
6064
|
-
* @param resourceGroupName The name of the resource group
|
|
6035
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6065
6036
|
* @param operationId
|
|
6066
6037
|
* @param options The options parameters.
|
|
6067
6038
|
*/
|
|
6068
6039
|
get(resourceGroupName, operationId, options) {
|
|
6069
|
-
return this.client.sendOperationRequest({ resourceGroupName, operationId, options }, getOperationSpec$
|
|
6040
|
+
return this.client.sendOperationRequest({ resourceGroupName, operationId, options }, getOperationSpec$8);
|
|
6070
6041
|
}
|
|
6071
6042
|
}
|
|
6072
6043
|
// Operation Specifications
|
|
6073
|
-
const serializer$
|
|
6074
|
-
const getOperationSpec$
|
|
6044
|
+
const serializer$c = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
6045
|
+
const getOperationSpec$8 = {
|
|
6075
6046
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/operationStatus/{operationId}",
|
|
6076
6047
|
httpMethod: "GET",
|
|
6077
6048
|
responses: {
|
|
@@ -6090,7 +6061,7 @@ const getOperationSpec$9 = {
|
|
|
6090
6061
|
operationId
|
|
6091
6062
|
],
|
|
6092
6063
|
headerParameters: [accept],
|
|
6093
|
-
serializer: serializer$
|
|
6064
|
+
serializer: serializer$c
|
|
6094
6065
|
};
|
|
6095
6066
|
|
|
6096
6067
|
/*
|
|
@@ -6110,18 +6081,18 @@ class BackupVaultOperationResultsImpl {
|
|
|
6110
6081
|
this.client = client;
|
|
6111
6082
|
}
|
|
6112
6083
|
/**
|
|
6113
|
-
* @param resourceGroupName The name of the resource group
|
|
6084
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6114
6085
|
* @param vaultName The name of the backup vault.
|
|
6115
6086
|
* @param operationId
|
|
6116
6087
|
* @param options The options parameters.
|
|
6117
6088
|
*/
|
|
6118
6089
|
get(resourceGroupName, vaultName, operationId, options) {
|
|
6119
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$
|
|
6090
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$7);
|
|
6120
6091
|
}
|
|
6121
6092
|
}
|
|
6122
6093
|
// Operation Specifications
|
|
6123
|
-
const serializer$
|
|
6124
|
-
const getOperationSpec$
|
|
6094
|
+
const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
6095
|
+
const getOperationSpec$7 = {
|
|
6125
6096
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationResults/{operationId}",
|
|
6126
6097
|
httpMethod: "GET",
|
|
6127
6098
|
responses: {
|
|
@@ -6144,7 +6115,7 @@ const getOperationSpec$8 = {
|
|
|
6144
6115
|
operationId
|
|
6145
6116
|
],
|
|
6146
6117
|
headerParameters: [accept],
|
|
6147
|
-
serializer: serializer$
|
|
6118
|
+
serializer: serializer$b
|
|
6148
6119
|
};
|
|
6149
6120
|
|
|
6150
6121
|
/*
|
|
@@ -6174,7 +6145,7 @@ class DataProtectionImpl {
|
|
|
6174
6145
|
}
|
|
6175
6146
|
}
|
|
6176
6147
|
// Operation Specifications
|
|
6177
|
-
const serializer$
|
|
6148
|
+
const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
6178
6149
|
const checkFeatureSupportOperationSpec = {
|
|
6179
6150
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport",
|
|
6180
6151
|
httpMethod: "POST",
|
|
@@ -6195,7 +6166,7 @@ const checkFeatureSupportOperationSpec = {
|
|
|
6195
6166
|
],
|
|
6196
6167
|
headerParameters: [accept, contentType],
|
|
6197
6168
|
mediaType: "json",
|
|
6198
|
-
serializer: serializer$
|
|
6169
|
+
serializer: serializer$a
|
|
6199
6170
|
};
|
|
6200
6171
|
|
|
6201
6172
|
/*
|
|
@@ -6279,7 +6250,7 @@ class DataProtectionOperationsImpl {
|
|
|
6279
6250
|
* @param options The options parameters.
|
|
6280
6251
|
*/
|
|
6281
6252
|
_list(options) {
|
|
6282
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
6253
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$5);
|
|
6283
6254
|
}
|
|
6284
6255
|
/**
|
|
6285
6256
|
* ListNext
|
|
@@ -6287,12 +6258,12 @@ class DataProtectionOperationsImpl {
|
|
|
6287
6258
|
* @param options The options parameters.
|
|
6288
6259
|
*/
|
|
6289
6260
|
_listNext(nextLink, options) {
|
|
6290
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$
|
|
6261
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$5);
|
|
6291
6262
|
}
|
|
6292
6263
|
}
|
|
6293
6264
|
// Operation Specifications
|
|
6294
|
-
const serializer$
|
|
6295
|
-
const listOperationSpec$
|
|
6265
|
+
const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
6266
|
+
const listOperationSpec$5 = {
|
|
6296
6267
|
path: "/providers/Microsoft.DataProtection/operations",
|
|
6297
6268
|
httpMethod: "GET",
|
|
6298
6269
|
responses: {
|
|
@@ -6306,9 +6277,9 @@ const listOperationSpec$7 = {
|
|
|
6306
6277
|
queryParameters: [apiVersion],
|
|
6307
6278
|
urlParameters: [$host],
|
|
6308
6279
|
headerParameters: [accept],
|
|
6309
|
-
serializer: serializer$
|
|
6280
|
+
serializer: serializer$9
|
|
6310
6281
|
};
|
|
6311
|
-
const listNextOperationSpec$
|
|
6282
|
+
const listNextOperationSpec$5 = {
|
|
6312
6283
|
path: "{nextLink}",
|
|
6313
6284
|
httpMethod: "GET",
|
|
6314
6285
|
responses: {
|
|
@@ -6321,7 +6292,7 @@ const listNextOperationSpec$7 = {
|
|
|
6321
6292
|
},
|
|
6322
6293
|
urlParameters: [$host, nextLink],
|
|
6323
6294
|
headerParameters: [accept],
|
|
6324
|
-
serializer: serializer$
|
|
6295
|
+
serializer: serializer$9
|
|
6325
6296
|
};
|
|
6326
6297
|
|
|
6327
6298
|
/*
|
|
@@ -6343,7 +6314,7 @@ class BackupPoliciesImpl {
|
|
|
6343
6314
|
}
|
|
6344
6315
|
/**
|
|
6345
6316
|
* Returns list of backup policies belonging to a backup vault
|
|
6346
|
-
* @param resourceGroupName The name of the resource group
|
|
6317
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6347
6318
|
* @param vaultName The name of the backup vault.
|
|
6348
6319
|
* @param options The options parameters.
|
|
6349
6320
|
*/
|
|
@@ -6404,26 +6375,26 @@ class BackupPoliciesImpl {
|
|
|
6404
6375
|
}
|
|
6405
6376
|
/**
|
|
6406
6377
|
* Returns list of backup policies belonging to a backup vault
|
|
6407
|
-
* @param resourceGroupName The name of the resource group
|
|
6378
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6408
6379
|
* @param vaultName The name of the backup vault.
|
|
6409
6380
|
* @param options The options parameters.
|
|
6410
6381
|
*/
|
|
6411
6382
|
_list(resourceGroupName, vaultName, options) {
|
|
6412
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$
|
|
6383
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$4);
|
|
6413
6384
|
}
|
|
6414
6385
|
/**
|
|
6415
6386
|
* Gets a backup policy belonging to a backup vault
|
|
6416
|
-
* @param resourceGroupName The name of the resource group
|
|
6387
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6417
6388
|
* @param vaultName The name of the backup vault.
|
|
6418
6389
|
* @param backupPolicyName
|
|
6419
6390
|
* @param options The options parameters.
|
|
6420
6391
|
*/
|
|
6421
6392
|
get(resourceGroupName, vaultName, backupPolicyName, options) {
|
|
6422
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupPolicyName, options }, getOperationSpec$
|
|
6393
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupPolicyName, options }, getOperationSpec$6);
|
|
6423
6394
|
}
|
|
6424
6395
|
/**
|
|
6425
6396
|
* Creates or Updates a backup policy belonging to a backup vault
|
|
6426
|
-
* @param resourceGroupName The name of the resource group
|
|
6397
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6427
6398
|
* @param vaultName The name of the backup vault.
|
|
6428
6399
|
* @param backupPolicyName Name of the policy
|
|
6429
6400
|
* @param parameters Request body for operation
|
|
@@ -6434,28 +6405,28 @@ class BackupPoliciesImpl {
|
|
|
6434
6405
|
}
|
|
6435
6406
|
/**
|
|
6436
6407
|
* Deletes a backup policy belonging to a backup vault
|
|
6437
|
-
* @param resourceGroupName The name of the resource group
|
|
6408
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6438
6409
|
* @param vaultName The name of the backup vault.
|
|
6439
6410
|
* @param backupPolicyName
|
|
6440
6411
|
* @param options The options parameters.
|
|
6441
6412
|
*/
|
|
6442
6413
|
delete(resourceGroupName, vaultName, backupPolicyName, options) {
|
|
6443
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupPolicyName, options }, deleteOperationSpec$
|
|
6414
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupPolicyName, options }, deleteOperationSpec$2);
|
|
6444
6415
|
}
|
|
6445
6416
|
/**
|
|
6446
6417
|
* ListNext
|
|
6447
|
-
* @param resourceGroupName The name of the resource group
|
|
6418
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6448
6419
|
* @param vaultName The name of the backup vault.
|
|
6449
6420
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
6450
6421
|
* @param options The options parameters.
|
|
6451
6422
|
*/
|
|
6452
6423
|
_listNext(resourceGroupName, vaultName, nextLink, options) {
|
|
6453
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$
|
|
6424
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$4);
|
|
6454
6425
|
}
|
|
6455
6426
|
}
|
|
6456
6427
|
// Operation Specifications
|
|
6457
|
-
const serializer$
|
|
6458
|
-
const listOperationSpec$
|
|
6428
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
6429
|
+
const listOperationSpec$4 = {
|
|
6459
6430
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies",
|
|
6460
6431
|
httpMethod: "GET",
|
|
6461
6432
|
responses: {
|
|
@@ -6474,9 +6445,9 @@ const listOperationSpec$6 = {
|
|
|
6474
6445
|
vaultName
|
|
6475
6446
|
],
|
|
6476
6447
|
headerParameters: [accept],
|
|
6477
|
-
serializer: serializer$
|
|
6448
|
+
serializer: serializer$8
|
|
6478
6449
|
};
|
|
6479
|
-
const getOperationSpec$
|
|
6450
|
+
const getOperationSpec$6 = {
|
|
6480
6451
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}",
|
|
6481
6452
|
httpMethod: "GET",
|
|
6482
6453
|
responses: {
|
|
@@ -6496,7 +6467,7 @@ const getOperationSpec$7 = {
|
|
|
6496
6467
|
backupPolicyName
|
|
6497
6468
|
],
|
|
6498
6469
|
headerParameters: [accept],
|
|
6499
|
-
serializer: serializer$
|
|
6470
|
+
serializer: serializer$8
|
|
6500
6471
|
};
|
|
6501
6472
|
const createOrUpdateOperationSpec$1 = {
|
|
6502
6473
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}",
|
|
@@ -6520,9 +6491,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
6520
6491
|
],
|
|
6521
6492
|
headerParameters: [accept, contentType],
|
|
6522
6493
|
mediaType: "json",
|
|
6523
|
-
serializer: serializer$
|
|
6494
|
+
serializer: serializer$8
|
|
6524
6495
|
};
|
|
6525
|
-
const deleteOperationSpec$
|
|
6496
|
+
const deleteOperationSpec$2 = {
|
|
6526
6497
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}",
|
|
6527
6498
|
httpMethod: "DELETE",
|
|
6528
6499
|
responses: {
|
|
@@ -6541,9 +6512,9 @@ const deleteOperationSpec$3 = {
|
|
|
6541
6512
|
backupPolicyName
|
|
6542
6513
|
],
|
|
6543
6514
|
headerParameters: [accept],
|
|
6544
|
-
serializer: serializer$
|
|
6515
|
+
serializer: serializer$8
|
|
6545
6516
|
};
|
|
6546
|
-
const listNextOperationSpec$
|
|
6517
|
+
const listNextOperationSpec$4 = {
|
|
6547
6518
|
path: "{nextLink}",
|
|
6548
6519
|
httpMethod: "GET",
|
|
6549
6520
|
responses: {
|
|
@@ -6562,7 +6533,7 @@ const listNextOperationSpec$6 = {
|
|
|
6562
6533
|
nextLink
|
|
6563
6534
|
],
|
|
6564
6535
|
headerParameters: [accept],
|
|
6565
|
-
serializer: serializer$
|
|
6536
|
+
serializer: serializer$8
|
|
6566
6537
|
};
|
|
6567
6538
|
|
|
6568
6539
|
/*
|
|
@@ -6584,7 +6555,7 @@ class BackupInstancesImpl {
|
|
|
6584
6555
|
}
|
|
6585
6556
|
/**
|
|
6586
6557
|
* Gets a backup instances belonging to a backup vault
|
|
6587
|
-
* @param resourceGroupName The name of the resource group
|
|
6558
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6588
6559
|
* @param vaultName The name of the backup vault.
|
|
6589
6560
|
* @param options The options parameters.
|
|
6590
6561
|
*/
|
|
@@ -6645,28 +6616,28 @@ class BackupInstancesImpl {
|
|
|
6645
6616
|
}
|
|
6646
6617
|
/**
|
|
6647
6618
|
* Gets a backup instances belonging to a backup vault
|
|
6648
|
-
* @param resourceGroupName The name of the resource group
|
|
6619
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6649
6620
|
* @param vaultName The name of the backup vault.
|
|
6650
6621
|
* @param options The options parameters.
|
|
6651
6622
|
*/
|
|
6652
6623
|
_list(resourceGroupName, vaultName, options) {
|
|
6653
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$
|
|
6624
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$3);
|
|
6654
6625
|
}
|
|
6655
6626
|
/**
|
|
6656
6627
|
* Gets a backup instance with name in a backup vault
|
|
6657
|
-
* @param resourceGroupName The name of the resource group
|
|
6628
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6658
6629
|
* @param vaultName The name of the backup vault.
|
|
6659
|
-
* @param backupInstanceName The name of the backup instance
|
|
6630
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6660
6631
|
* @param options The options parameters.
|
|
6661
6632
|
*/
|
|
6662
6633
|
get(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
6663
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec$
|
|
6634
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec$5);
|
|
6664
6635
|
}
|
|
6665
6636
|
/**
|
|
6666
6637
|
* Create or update a backup instance in a backup vault
|
|
6667
|
-
* @param resourceGroupName The name of the resource group
|
|
6638
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6668
6639
|
* @param vaultName The name of the backup vault.
|
|
6669
|
-
* @param backupInstanceName The name of the backup instance
|
|
6640
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6670
6641
|
* @param parameters Request body for operation
|
|
6671
6642
|
* @param options The options parameters.
|
|
6672
6643
|
*/
|
|
@@ -6675,7 +6646,7 @@ class BackupInstancesImpl {
|
|
|
6675
6646
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6676
6647
|
return this.client.sendOperationRequest(args, spec);
|
|
6677
6648
|
});
|
|
6678
|
-
const
|
|
6649
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6679
6650
|
var _a;
|
|
6680
6651
|
let currentRawResponse = undefined;
|
|
6681
6652
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -6694,9 +6665,19 @@ class BackupInstancesImpl {
|
|
|
6694
6665
|
}
|
|
6695
6666
|
};
|
|
6696
6667
|
});
|
|
6697
|
-
const lro =
|
|
6698
|
-
|
|
6699
|
-
|
|
6668
|
+
const lro = createLroSpec({
|
|
6669
|
+
sendOperationFn,
|
|
6670
|
+
args: {
|
|
6671
|
+
resourceGroupName,
|
|
6672
|
+
vaultName,
|
|
6673
|
+
backupInstanceName,
|
|
6674
|
+
parameters,
|
|
6675
|
+
options
|
|
6676
|
+
},
|
|
6677
|
+
spec: createOrUpdateOperationSpec
|
|
6678
|
+
});
|
|
6679
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6680
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6700
6681
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6701
6682
|
});
|
|
6702
6683
|
yield poller.poll();
|
|
@@ -6705,9 +6686,9 @@ class BackupInstancesImpl {
|
|
|
6705
6686
|
}
|
|
6706
6687
|
/**
|
|
6707
6688
|
* Create or update a backup instance in a backup vault
|
|
6708
|
-
* @param resourceGroupName The name of the resource group
|
|
6689
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6709
6690
|
* @param vaultName The name of the backup vault.
|
|
6710
|
-
* @param backupInstanceName The name of the backup instance
|
|
6691
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6711
6692
|
* @param parameters Request body for operation
|
|
6712
6693
|
* @param options The options parameters.
|
|
6713
6694
|
*/
|
|
@@ -6719,9 +6700,9 @@ class BackupInstancesImpl {
|
|
|
6719
6700
|
}
|
|
6720
6701
|
/**
|
|
6721
6702
|
* Delete a backup instance in a backup vault
|
|
6722
|
-
* @param resourceGroupName The name of the resource group
|
|
6703
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6723
6704
|
* @param vaultName The name of the backup vault.
|
|
6724
|
-
* @param backupInstanceName The name of the backup instance
|
|
6705
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6725
6706
|
* @param options The options parameters.
|
|
6726
6707
|
*/
|
|
6727
6708
|
beginDelete(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -6729,7 +6710,7 @@ class BackupInstancesImpl {
|
|
|
6729
6710
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6730
6711
|
return this.client.sendOperationRequest(args, spec);
|
|
6731
6712
|
});
|
|
6732
|
-
const
|
|
6713
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6733
6714
|
var _a;
|
|
6734
6715
|
let currentRawResponse = undefined;
|
|
6735
6716
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -6748,9 +6729,13 @@ class BackupInstancesImpl {
|
|
|
6748
6729
|
}
|
|
6749
6730
|
};
|
|
6750
6731
|
});
|
|
6751
|
-
const lro =
|
|
6752
|
-
|
|
6753
|
-
|
|
6732
|
+
const lro = createLroSpec({
|
|
6733
|
+
sendOperationFn,
|
|
6734
|
+
args: { resourceGroupName, vaultName, backupInstanceName, options },
|
|
6735
|
+
spec: deleteOperationSpec$1
|
|
6736
|
+
});
|
|
6737
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6738
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6754
6739
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6755
6740
|
});
|
|
6756
6741
|
yield poller.poll();
|
|
@@ -6759,9 +6744,9 @@ class BackupInstancesImpl {
|
|
|
6759
6744
|
}
|
|
6760
6745
|
/**
|
|
6761
6746
|
* Delete a backup instance in a backup vault
|
|
6762
|
-
* @param resourceGroupName The name of the resource group
|
|
6747
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6763
6748
|
* @param vaultName The name of the backup vault.
|
|
6764
|
-
* @param backupInstanceName The name of the backup instance
|
|
6749
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6765
6750
|
* @param options The options parameters.
|
|
6766
6751
|
*/
|
|
6767
6752
|
beginDeleteAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -6772,9 +6757,9 @@ class BackupInstancesImpl {
|
|
|
6772
6757
|
}
|
|
6773
6758
|
/**
|
|
6774
6759
|
* Trigger adhoc backup
|
|
6775
|
-
* @param resourceGroupName The name of the resource group
|
|
6760
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6776
6761
|
* @param vaultName The name of the backup vault.
|
|
6777
|
-
* @param backupInstanceName The name of the backup instance
|
|
6762
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6778
6763
|
* @param parameters Request body for operation
|
|
6779
6764
|
* @param options The options parameters.
|
|
6780
6765
|
*/
|
|
@@ -6783,7 +6768,7 @@ class BackupInstancesImpl {
|
|
|
6783
6768
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6784
6769
|
return this.client.sendOperationRequest(args, spec);
|
|
6785
6770
|
});
|
|
6786
|
-
const
|
|
6771
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6787
6772
|
var _a;
|
|
6788
6773
|
let currentRawResponse = undefined;
|
|
6789
6774
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -6802,9 +6787,19 @@ class BackupInstancesImpl {
|
|
|
6802
6787
|
}
|
|
6803
6788
|
};
|
|
6804
6789
|
});
|
|
6805
|
-
const lro =
|
|
6806
|
-
|
|
6807
|
-
|
|
6790
|
+
const lro = createLroSpec({
|
|
6791
|
+
sendOperationFn,
|
|
6792
|
+
args: {
|
|
6793
|
+
resourceGroupName,
|
|
6794
|
+
vaultName,
|
|
6795
|
+
backupInstanceName,
|
|
6796
|
+
parameters,
|
|
6797
|
+
options
|
|
6798
|
+
},
|
|
6799
|
+
spec: adhocBackupOperationSpec
|
|
6800
|
+
});
|
|
6801
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6802
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6808
6803
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6809
6804
|
});
|
|
6810
6805
|
yield poller.poll();
|
|
@@ -6813,9 +6808,9 @@ class BackupInstancesImpl {
|
|
|
6813
6808
|
}
|
|
6814
6809
|
/**
|
|
6815
6810
|
* Trigger adhoc backup
|
|
6816
|
-
* @param resourceGroupName The name of the resource group
|
|
6811
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6817
6812
|
* @param vaultName The name of the backup vault.
|
|
6818
|
-
* @param backupInstanceName The name of the backup instance
|
|
6813
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6819
6814
|
* @param parameters Request body for operation
|
|
6820
6815
|
* @param options The options parameters.
|
|
6821
6816
|
*/
|
|
@@ -6827,7 +6822,7 @@ class BackupInstancesImpl {
|
|
|
6827
6822
|
}
|
|
6828
6823
|
/**
|
|
6829
6824
|
* Validate whether adhoc backup will be successful or not
|
|
6830
|
-
* @param resourceGroupName The name of the resource group
|
|
6825
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6831
6826
|
* @param vaultName The name of the backup vault.
|
|
6832
6827
|
* @param parameters Request body for operation
|
|
6833
6828
|
* @param options The options parameters.
|
|
@@ -6837,7 +6832,7 @@ class BackupInstancesImpl {
|
|
|
6837
6832
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6838
6833
|
return this.client.sendOperationRequest(args, spec);
|
|
6839
6834
|
});
|
|
6840
|
-
const
|
|
6835
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6841
6836
|
var _a;
|
|
6842
6837
|
let currentRawResponse = undefined;
|
|
6843
6838
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -6856,9 +6851,13 @@ class BackupInstancesImpl {
|
|
|
6856
6851
|
}
|
|
6857
6852
|
};
|
|
6858
6853
|
});
|
|
6859
|
-
const lro =
|
|
6860
|
-
|
|
6861
|
-
|
|
6854
|
+
const lro = createLroSpec({
|
|
6855
|
+
sendOperationFn,
|
|
6856
|
+
args: { resourceGroupName, vaultName, parameters, options },
|
|
6857
|
+
spec: validateForBackupOperationSpec
|
|
6858
|
+
});
|
|
6859
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6860
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6862
6861
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6863
6862
|
});
|
|
6864
6863
|
yield poller.poll();
|
|
@@ -6867,7 +6866,7 @@ class BackupInstancesImpl {
|
|
|
6867
6866
|
}
|
|
6868
6867
|
/**
|
|
6869
6868
|
* Validate whether adhoc backup will be successful or not
|
|
6870
|
-
* @param resourceGroupName The name of the resource group
|
|
6869
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6871
6870
|
* @param vaultName The name of the backup vault.
|
|
6872
6871
|
* @param parameters Request body for operation
|
|
6873
6872
|
* @param options The options parameters.
|
|
@@ -6880,9 +6879,9 @@ class BackupInstancesImpl {
|
|
|
6880
6879
|
}
|
|
6881
6880
|
/**
|
|
6882
6881
|
* Get result of backup instance creation operation
|
|
6883
|
-
* @param resourceGroupName The name of the resource group
|
|
6882
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6884
6883
|
* @param vaultName The name of the backup vault.
|
|
6885
|
-
* @param backupInstanceName
|
|
6884
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6886
6885
|
* @param operationId
|
|
6887
6886
|
* @param options The options parameters.
|
|
6888
6887
|
*/
|
|
@@ -6897,9 +6896,9 @@ class BackupInstancesImpl {
|
|
|
6897
6896
|
}
|
|
6898
6897
|
/**
|
|
6899
6898
|
* rehydrate recovery point for restore for a BackupInstance
|
|
6900
|
-
* @param resourceGroupName The name of the resource group
|
|
6899
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6901
6900
|
* @param vaultName The name of the backup vault.
|
|
6902
|
-
* @param backupInstanceName
|
|
6901
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6903
6902
|
* @param parameters Request body for operation
|
|
6904
6903
|
* @param options The options parameters.
|
|
6905
6904
|
*/
|
|
@@ -6908,7 +6907,7 @@ class BackupInstancesImpl {
|
|
|
6908
6907
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6909
6908
|
return this.client.sendOperationRequest(args, spec);
|
|
6910
6909
|
});
|
|
6911
|
-
const
|
|
6910
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6912
6911
|
var _a;
|
|
6913
6912
|
let currentRawResponse = undefined;
|
|
6914
6913
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -6927,9 +6926,19 @@ class BackupInstancesImpl {
|
|
|
6927
6926
|
}
|
|
6928
6927
|
};
|
|
6929
6928
|
});
|
|
6930
|
-
const lro =
|
|
6931
|
-
|
|
6932
|
-
|
|
6929
|
+
const lro = createLroSpec({
|
|
6930
|
+
sendOperationFn,
|
|
6931
|
+
args: {
|
|
6932
|
+
resourceGroupName,
|
|
6933
|
+
vaultName,
|
|
6934
|
+
backupInstanceName,
|
|
6935
|
+
parameters,
|
|
6936
|
+
options
|
|
6937
|
+
},
|
|
6938
|
+
spec: triggerRehydrateOperationSpec
|
|
6939
|
+
});
|
|
6940
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
6941
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6933
6942
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6934
6943
|
});
|
|
6935
6944
|
yield poller.poll();
|
|
@@ -6938,9 +6947,9 @@ class BackupInstancesImpl {
|
|
|
6938
6947
|
}
|
|
6939
6948
|
/**
|
|
6940
6949
|
* rehydrate recovery point for restore for a BackupInstance
|
|
6941
|
-
* @param resourceGroupName The name of the resource group
|
|
6950
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6942
6951
|
* @param vaultName The name of the backup vault.
|
|
6943
|
-
* @param backupInstanceName
|
|
6952
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6944
6953
|
* @param parameters Request body for operation
|
|
6945
6954
|
* @param options The options parameters.
|
|
6946
6955
|
*/
|
|
@@ -6952,9 +6961,9 @@ class BackupInstancesImpl {
|
|
|
6952
6961
|
}
|
|
6953
6962
|
/**
|
|
6954
6963
|
* Triggers restore for a BackupInstance
|
|
6955
|
-
* @param resourceGroupName The name of the resource group
|
|
6964
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6956
6965
|
* @param vaultName The name of the backup vault.
|
|
6957
|
-
* @param backupInstanceName The name of the backup instance
|
|
6966
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6958
6967
|
* @param parameters Request body for operation
|
|
6959
6968
|
* @param options The options parameters.
|
|
6960
6969
|
*/
|
|
@@ -6963,7 +6972,7 @@ class BackupInstancesImpl {
|
|
|
6963
6972
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6964
6973
|
return this.client.sendOperationRequest(args, spec);
|
|
6965
6974
|
});
|
|
6966
|
-
const
|
|
6975
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6967
6976
|
var _a;
|
|
6968
6977
|
let currentRawResponse = undefined;
|
|
6969
6978
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -6982,9 +6991,19 @@ class BackupInstancesImpl {
|
|
|
6982
6991
|
}
|
|
6983
6992
|
};
|
|
6984
6993
|
});
|
|
6985
|
-
const lro =
|
|
6986
|
-
|
|
6987
|
-
|
|
6994
|
+
const lro = createLroSpec({
|
|
6995
|
+
sendOperationFn,
|
|
6996
|
+
args: {
|
|
6997
|
+
resourceGroupName,
|
|
6998
|
+
vaultName,
|
|
6999
|
+
backupInstanceName,
|
|
7000
|
+
parameters,
|
|
7001
|
+
options
|
|
7002
|
+
},
|
|
7003
|
+
spec: triggerRestoreOperationSpec
|
|
7004
|
+
});
|
|
7005
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7006
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6988
7007
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6989
7008
|
});
|
|
6990
7009
|
yield poller.poll();
|
|
@@ -6993,9 +7012,9 @@ class BackupInstancesImpl {
|
|
|
6993
7012
|
}
|
|
6994
7013
|
/**
|
|
6995
7014
|
* Triggers restore for a BackupInstance
|
|
6996
|
-
* @param resourceGroupName The name of the resource group
|
|
7015
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
6997
7016
|
* @param vaultName The name of the backup vault.
|
|
6998
|
-
* @param backupInstanceName The name of the backup instance
|
|
7017
|
+
* @param backupInstanceName The name of the backup instance.
|
|
6999
7018
|
* @param parameters Request body for operation
|
|
7000
7019
|
* @param options The options parameters.
|
|
7001
7020
|
*/
|
|
@@ -7007,9 +7026,9 @@ class BackupInstancesImpl {
|
|
|
7007
7026
|
}
|
|
7008
7027
|
/**
|
|
7009
7028
|
* This operation will resume backups for backup instance
|
|
7010
|
-
* @param resourceGroupName The name of the resource group
|
|
7029
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7011
7030
|
* @param vaultName The name of the backup vault.
|
|
7012
|
-
* @param backupInstanceName
|
|
7031
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7013
7032
|
* @param options The options parameters.
|
|
7014
7033
|
*/
|
|
7015
7034
|
beginResumeBackups(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -7017,7 +7036,7 @@ class BackupInstancesImpl {
|
|
|
7017
7036
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7018
7037
|
return this.client.sendOperationRequest(args, spec);
|
|
7019
7038
|
});
|
|
7020
|
-
const
|
|
7039
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7021
7040
|
var _a;
|
|
7022
7041
|
let currentRawResponse = undefined;
|
|
7023
7042
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -7036,9 +7055,13 @@ class BackupInstancesImpl {
|
|
|
7036
7055
|
}
|
|
7037
7056
|
};
|
|
7038
7057
|
});
|
|
7039
|
-
const lro =
|
|
7040
|
-
|
|
7041
|
-
|
|
7058
|
+
const lro = createLroSpec({
|
|
7059
|
+
sendOperationFn,
|
|
7060
|
+
args: { resourceGroupName, vaultName, backupInstanceName, options },
|
|
7061
|
+
spec: resumeBackupsOperationSpec
|
|
7062
|
+
});
|
|
7063
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7064
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7042
7065
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
7043
7066
|
});
|
|
7044
7067
|
yield poller.poll();
|
|
@@ -7047,9 +7070,9 @@ class BackupInstancesImpl {
|
|
|
7047
7070
|
}
|
|
7048
7071
|
/**
|
|
7049
7072
|
* This operation will resume backups for backup instance
|
|
7050
|
-
* @param resourceGroupName The name of the resource group
|
|
7073
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7051
7074
|
* @param vaultName The name of the backup vault.
|
|
7052
|
-
* @param backupInstanceName
|
|
7075
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7053
7076
|
* @param options The options parameters.
|
|
7054
7077
|
*/
|
|
7055
7078
|
beginResumeBackupsAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -7060,9 +7083,9 @@ class BackupInstancesImpl {
|
|
|
7060
7083
|
}
|
|
7061
7084
|
/**
|
|
7062
7085
|
* This operation will resume protection for a stopped backup instance
|
|
7063
|
-
* @param resourceGroupName The name of the resource group
|
|
7086
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7064
7087
|
* @param vaultName The name of the backup vault.
|
|
7065
|
-
* @param backupInstanceName
|
|
7088
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7066
7089
|
* @param options The options parameters.
|
|
7067
7090
|
*/
|
|
7068
7091
|
beginResumeProtection(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -7070,7 +7093,7 @@ class BackupInstancesImpl {
|
|
|
7070
7093
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7071
7094
|
return this.client.sendOperationRequest(args, spec);
|
|
7072
7095
|
});
|
|
7073
|
-
const
|
|
7096
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7074
7097
|
var _a;
|
|
7075
7098
|
let currentRawResponse = undefined;
|
|
7076
7099
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -7089,9 +7112,13 @@ class BackupInstancesImpl {
|
|
|
7089
7112
|
}
|
|
7090
7113
|
};
|
|
7091
7114
|
});
|
|
7092
|
-
const lro =
|
|
7093
|
-
|
|
7094
|
-
|
|
7115
|
+
const lro = createLroSpec({
|
|
7116
|
+
sendOperationFn,
|
|
7117
|
+
args: { resourceGroupName, vaultName, backupInstanceName, options },
|
|
7118
|
+
spec: resumeProtectionOperationSpec
|
|
7119
|
+
});
|
|
7120
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7121
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7095
7122
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
7096
7123
|
});
|
|
7097
7124
|
yield poller.poll();
|
|
@@ -7100,9 +7127,9 @@ class BackupInstancesImpl {
|
|
|
7100
7127
|
}
|
|
7101
7128
|
/**
|
|
7102
7129
|
* This operation will resume protection for a stopped backup instance
|
|
7103
|
-
* @param resourceGroupName The name of the resource group
|
|
7130
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7104
7131
|
* @param vaultName The name of the backup vault.
|
|
7105
|
-
* @param backupInstanceName
|
|
7132
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7106
7133
|
* @param options The options parameters.
|
|
7107
7134
|
*/
|
|
7108
7135
|
beginResumeProtectionAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -7113,9 +7140,9 @@ class BackupInstancesImpl {
|
|
|
7113
7140
|
}
|
|
7114
7141
|
/**
|
|
7115
7142
|
* This operation will stop protection of a backup instance and data will be held forever
|
|
7116
|
-
* @param resourceGroupName The name of the resource group
|
|
7143
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7117
7144
|
* @param vaultName The name of the backup vault.
|
|
7118
|
-
* @param backupInstanceName
|
|
7145
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7119
7146
|
* @param options The options parameters.
|
|
7120
7147
|
*/
|
|
7121
7148
|
beginStopProtection(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -7123,7 +7150,7 @@ class BackupInstancesImpl {
|
|
|
7123
7150
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7124
7151
|
return this.client.sendOperationRequest(args, spec);
|
|
7125
7152
|
});
|
|
7126
|
-
const
|
|
7153
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7127
7154
|
var _a;
|
|
7128
7155
|
let currentRawResponse = undefined;
|
|
7129
7156
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -7142,9 +7169,13 @@ class BackupInstancesImpl {
|
|
|
7142
7169
|
}
|
|
7143
7170
|
};
|
|
7144
7171
|
});
|
|
7145
|
-
const lro =
|
|
7146
|
-
|
|
7147
|
-
|
|
7172
|
+
const lro = createLroSpec({
|
|
7173
|
+
sendOperationFn,
|
|
7174
|
+
args: { resourceGroupName, vaultName, backupInstanceName, options },
|
|
7175
|
+
spec: stopProtectionOperationSpec
|
|
7176
|
+
});
|
|
7177
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7178
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7148
7179
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
7149
7180
|
});
|
|
7150
7181
|
yield poller.poll();
|
|
@@ -7153,9 +7184,9 @@ class BackupInstancesImpl {
|
|
|
7153
7184
|
}
|
|
7154
7185
|
/**
|
|
7155
7186
|
* This operation will stop protection of a backup instance and data will be held forever
|
|
7156
|
-
* @param resourceGroupName The name of the resource group
|
|
7187
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7157
7188
|
* @param vaultName The name of the backup vault.
|
|
7158
|
-
* @param backupInstanceName
|
|
7189
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7159
7190
|
* @param options The options parameters.
|
|
7160
7191
|
*/
|
|
7161
7192
|
beginStopProtectionAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -7167,9 +7198,9 @@ class BackupInstancesImpl {
|
|
|
7167
7198
|
/**
|
|
7168
7199
|
* This operation will stop backup for a backup instance and retains the backup data as per the policy
|
|
7169
7200
|
* (except latest Recovery point, which will be retained forever)
|
|
7170
|
-
* @param resourceGroupName The name of the resource group
|
|
7201
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7171
7202
|
* @param vaultName The name of the backup vault.
|
|
7172
|
-
* @param backupInstanceName
|
|
7203
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7173
7204
|
* @param options The options parameters.
|
|
7174
7205
|
*/
|
|
7175
7206
|
beginSuspendBackups(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -7177,7 +7208,7 @@ class BackupInstancesImpl {
|
|
|
7177
7208
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7178
7209
|
return this.client.sendOperationRequest(args, spec);
|
|
7179
7210
|
});
|
|
7180
|
-
const
|
|
7211
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7181
7212
|
var _a;
|
|
7182
7213
|
let currentRawResponse = undefined;
|
|
7183
7214
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -7196,9 +7227,13 @@ class BackupInstancesImpl {
|
|
|
7196
7227
|
}
|
|
7197
7228
|
};
|
|
7198
7229
|
});
|
|
7199
|
-
const lro =
|
|
7200
|
-
|
|
7201
|
-
|
|
7230
|
+
const lro = createLroSpec({
|
|
7231
|
+
sendOperationFn,
|
|
7232
|
+
args: { resourceGroupName, vaultName, backupInstanceName, options },
|
|
7233
|
+
spec: suspendBackupsOperationSpec
|
|
7234
|
+
});
|
|
7235
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7236
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7202
7237
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
7203
7238
|
});
|
|
7204
7239
|
yield poller.poll();
|
|
@@ -7208,9 +7243,9 @@ class BackupInstancesImpl {
|
|
|
7208
7243
|
/**
|
|
7209
7244
|
* This operation will stop backup for a backup instance and retains the backup data as per the policy
|
|
7210
7245
|
* (except latest Recovery point, which will be retained forever)
|
|
7211
|
-
* @param resourceGroupName The name of the resource group
|
|
7246
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7212
7247
|
* @param vaultName The name of the backup vault.
|
|
7213
|
-
* @param backupInstanceName
|
|
7248
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7214
7249
|
* @param options The options parameters.
|
|
7215
7250
|
*/
|
|
7216
7251
|
beginSuspendBackupsAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
@@ -7222,9 +7257,9 @@ class BackupInstancesImpl {
|
|
|
7222
7257
|
/**
|
|
7223
7258
|
* Sync backup instance again in case of failure
|
|
7224
7259
|
* This action will retry last failed operation and will bring backup instance to valid state
|
|
7225
|
-
* @param resourceGroupName The name of the resource group
|
|
7260
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7226
7261
|
* @param vaultName The name of the backup vault.
|
|
7227
|
-
* @param backupInstanceName
|
|
7262
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7228
7263
|
* @param parameters Request body for operation
|
|
7229
7264
|
* @param options The options parameters.
|
|
7230
7265
|
*/
|
|
@@ -7233,7 +7268,7 @@ class BackupInstancesImpl {
|
|
|
7233
7268
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7234
7269
|
return this.client.sendOperationRequest(args, spec);
|
|
7235
7270
|
});
|
|
7236
|
-
const
|
|
7271
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7237
7272
|
var _a;
|
|
7238
7273
|
let currentRawResponse = undefined;
|
|
7239
7274
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -7252,9 +7287,19 @@ class BackupInstancesImpl {
|
|
|
7252
7287
|
}
|
|
7253
7288
|
};
|
|
7254
7289
|
});
|
|
7255
|
-
const lro =
|
|
7256
|
-
|
|
7257
|
-
|
|
7290
|
+
const lro = createLroSpec({
|
|
7291
|
+
sendOperationFn,
|
|
7292
|
+
args: {
|
|
7293
|
+
resourceGroupName,
|
|
7294
|
+
vaultName,
|
|
7295
|
+
backupInstanceName,
|
|
7296
|
+
parameters,
|
|
7297
|
+
options
|
|
7298
|
+
},
|
|
7299
|
+
spec: syncBackupInstanceOperationSpec
|
|
7300
|
+
});
|
|
7301
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7302
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7258
7303
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
7259
7304
|
});
|
|
7260
7305
|
yield poller.poll();
|
|
@@ -7264,9 +7309,9 @@ class BackupInstancesImpl {
|
|
|
7264
7309
|
/**
|
|
7265
7310
|
* Sync backup instance again in case of failure
|
|
7266
7311
|
* This action will retry last failed operation and will bring backup instance to valid state
|
|
7267
|
-
* @param resourceGroupName The name of the resource group
|
|
7312
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7268
7313
|
* @param vaultName The name of the backup vault.
|
|
7269
|
-
* @param backupInstanceName
|
|
7314
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7270
7315
|
* @param parameters Request body for operation
|
|
7271
7316
|
* @param options The options parameters.
|
|
7272
7317
|
*/
|
|
@@ -7278,9 +7323,9 @@ class BackupInstancesImpl {
|
|
|
7278
7323
|
}
|
|
7279
7324
|
/**
|
|
7280
7325
|
* Validates if Restore can be triggered for a DataSource
|
|
7281
|
-
* @param resourceGroupName The name of the resource group
|
|
7326
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7282
7327
|
* @param vaultName The name of the backup vault.
|
|
7283
|
-
* @param backupInstanceName The name of the backup instance
|
|
7328
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7284
7329
|
* @param parameters Request body for operation
|
|
7285
7330
|
* @param options The options parameters.
|
|
7286
7331
|
*/
|
|
@@ -7289,7 +7334,7 @@ class BackupInstancesImpl {
|
|
|
7289
7334
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7290
7335
|
return this.client.sendOperationRequest(args, spec);
|
|
7291
7336
|
});
|
|
7292
|
-
const
|
|
7337
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7293
7338
|
var _a;
|
|
7294
7339
|
let currentRawResponse = undefined;
|
|
7295
7340
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -7308,9 +7353,19 @@ class BackupInstancesImpl {
|
|
|
7308
7353
|
}
|
|
7309
7354
|
};
|
|
7310
7355
|
});
|
|
7311
|
-
const lro =
|
|
7312
|
-
|
|
7313
|
-
|
|
7356
|
+
const lro = createLroSpec({
|
|
7357
|
+
sendOperationFn,
|
|
7358
|
+
args: {
|
|
7359
|
+
resourceGroupName,
|
|
7360
|
+
vaultName,
|
|
7361
|
+
backupInstanceName,
|
|
7362
|
+
parameters,
|
|
7363
|
+
options
|
|
7364
|
+
},
|
|
7365
|
+
spec: validateForRestoreOperationSpec
|
|
7366
|
+
});
|
|
7367
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
7368
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7314
7369
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
7315
7370
|
});
|
|
7316
7371
|
yield poller.poll();
|
|
@@ -7319,9 +7374,9 @@ class BackupInstancesImpl {
|
|
|
7319
7374
|
}
|
|
7320
7375
|
/**
|
|
7321
7376
|
* Validates if Restore can be triggered for a DataSource
|
|
7322
|
-
* @param resourceGroupName The name of the resource group
|
|
7377
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7323
7378
|
* @param vaultName The name of the backup vault.
|
|
7324
|
-
* @param backupInstanceName The name of the backup instance
|
|
7379
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7325
7380
|
* @param parameters Request body for operation
|
|
7326
7381
|
* @param options The options parameters.
|
|
7327
7382
|
*/
|
|
@@ -7333,18 +7388,18 @@ class BackupInstancesImpl {
|
|
|
7333
7388
|
}
|
|
7334
7389
|
/**
|
|
7335
7390
|
* ListNext
|
|
7336
|
-
* @param resourceGroupName The name of the resource group
|
|
7391
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7337
7392
|
* @param vaultName The name of the backup vault.
|
|
7338
7393
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
7339
7394
|
* @param options The options parameters.
|
|
7340
7395
|
*/
|
|
7341
7396
|
_listNext(resourceGroupName, vaultName, nextLink, options) {
|
|
7342
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$
|
|
7397
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$3);
|
|
7343
7398
|
}
|
|
7344
7399
|
}
|
|
7345
7400
|
// Operation Specifications
|
|
7346
|
-
const serializer$
|
|
7347
|
-
const listOperationSpec$
|
|
7401
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
7402
|
+
const listOperationSpec$3 = {
|
|
7348
7403
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances",
|
|
7349
7404
|
httpMethod: "GET",
|
|
7350
7405
|
responses: {
|
|
@@ -7363,9 +7418,9 @@ const listOperationSpec$5 = {
|
|
|
7363
7418
|
vaultName
|
|
7364
7419
|
],
|
|
7365
7420
|
headerParameters: [accept],
|
|
7366
|
-
serializer: serializer$
|
|
7421
|
+
serializer: serializer$7
|
|
7367
7422
|
};
|
|
7368
|
-
const getOperationSpec$
|
|
7423
|
+
const getOperationSpec$5 = {
|
|
7369
7424
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
|
|
7370
7425
|
httpMethod: "GET",
|
|
7371
7426
|
responses: {
|
|
@@ -7385,7 +7440,7 @@ const getOperationSpec$6 = {
|
|
|
7385
7440
|
backupInstanceName
|
|
7386
7441
|
],
|
|
7387
7442
|
headerParameters: [accept],
|
|
7388
|
-
serializer: serializer$
|
|
7443
|
+
serializer: serializer$7
|
|
7389
7444
|
};
|
|
7390
7445
|
const createOrUpdateOperationSpec = {
|
|
7391
7446
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
|
|
@@ -7418,9 +7473,9 @@ const createOrUpdateOperationSpec = {
|
|
|
7418
7473
|
],
|
|
7419
7474
|
headerParameters: [accept, contentType],
|
|
7420
7475
|
mediaType: "json",
|
|
7421
|
-
serializer: serializer$
|
|
7476
|
+
serializer: serializer$7
|
|
7422
7477
|
};
|
|
7423
|
-
const deleteOperationSpec$
|
|
7478
|
+
const deleteOperationSpec$1 = {
|
|
7424
7479
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
|
|
7425
7480
|
httpMethod: "DELETE",
|
|
7426
7481
|
responses: {
|
|
@@ -7441,7 +7496,7 @@ const deleteOperationSpec$2 = {
|
|
|
7441
7496
|
backupInstanceName
|
|
7442
7497
|
],
|
|
7443
7498
|
headerParameters: [accept],
|
|
7444
|
-
serializer: serializer$
|
|
7499
|
+
serializer: serializer$7
|
|
7445
7500
|
};
|
|
7446
7501
|
const adhocBackupOperationSpec = {
|
|
7447
7502
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup",
|
|
@@ -7474,7 +7529,7 @@ const adhocBackupOperationSpec = {
|
|
|
7474
7529
|
],
|
|
7475
7530
|
headerParameters: [accept, contentType],
|
|
7476
7531
|
mediaType: "json",
|
|
7477
|
-
serializer: serializer$
|
|
7532
|
+
serializer: serializer$7
|
|
7478
7533
|
};
|
|
7479
7534
|
const validateForBackupOperationSpec = {
|
|
7480
7535
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup",
|
|
@@ -7506,7 +7561,7 @@ const validateForBackupOperationSpec = {
|
|
|
7506
7561
|
],
|
|
7507
7562
|
headerParameters: [accept, contentType],
|
|
7508
7563
|
mediaType: "json",
|
|
7509
|
-
serializer: serializer$
|
|
7564
|
+
serializer: serializer$7
|
|
7510
7565
|
};
|
|
7511
7566
|
const getBackupInstanceOperationResultOperationSpec = {
|
|
7512
7567
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}",
|
|
@@ -7530,7 +7585,7 @@ const getBackupInstanceOperationResultOperationSpec = {
|
|
|
7530
7585
|
backupInstanceName
|
|
7531
7586
|
],
|
|
7532
7587
|
headerParameters: [accept],
|
|
7533
|
-
serializer: serializer$
|
|
7588
|
+
serializer: serializer$7
|
|
7534
7589
|
};
|
|
7535
7590
|
const triggerRehydrateOperationSpec = {
|
|
7536
7591
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/rehydrate",
|
|
@@ -7563,7 +7618,7 @@ const triggerRehydrateOperationSpec = {
|
|
|
7563
7618
|
],
|
|
7564
7619
|
headerParameters: [accept, contentType],
|
|
7565
7620
|
mediaType: "json",
|
|
7566
|
-
serializer: serializer$
|
|
7621
|
+
serializer: serializer$7
|
|
7567
7622
|
};
|
|
7568
7623
|
const triggerRestoreOperationSpec = {
|
|
7569
7624
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore",
|
|
@@ -7596,7 +7651,7 @@ const triggerRestoreOperationSpec = {
|
|
|
7596
7651
|
],
|
|
7597
7652
|
headerParameters: [accept, contentType],
|
|
7598
7653
|
mediaType: "json",
|
|
7599
|
-
serializer: serializer$
|
|
7654
|
+
serializer: serializer$7
|
|
7600
7655
|
};
|
|
7601
7656
|
const resumeBackupsOperationSpec = {
|
|
7602
7657
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups",
|
|
@@ -7619,7 +7674,7 @@ const resumeBackupsOperationSpec = {
|
|
|
7619
7674
|
backupInstanceName
|
|
7620
7675
|
],
|
|
7621
7676
|
headerParameters: [accept],
|
|
7622
|
-
serializer: serializer$
|
|
7677
|
+
serializer: serializer$7
|
|
7623
7678
|
};
|
|
7624
7679
|
const resumeProtectionOperationSpec = {
|
|
7625
7680
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection",
|
|
@@ -7642,7 +7697,7 @@ const resumeProtectionOperationSpec = {
|
|
|
7642
7697
|
backupInstanceName
|
|
7643
7698
|
],
|
|
7644
7699
|
headerParameters: [accept],
|
|
7645
|
-
serializer: serializer$
|
|
7700
|
+
serializer: serializer$7
|
|
7646
7701
|
};
|
|
7647
7702
|
const stopProtectionOperationSpec = {
|
|
7648
7703
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection",
|
|
@@ -7665,7 +7720,7 @@ const stopProtectionOperationSpec = {
|
|
|
7665
7720
|
backupInstanceName
|
|
7666
7721
|
],
|
|
7667
7722
|
headerParameters: [accept],
|
|
7668
|
-
serializer: serializer$
|
|
7723
|
+
serializer: serializer$7
|
|
7669
7724
|
};
|
|
7670
7725
|
const suspendBackupsOperationSpec = {
|
|
7671
7726
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups",
|
|
@@ -7688,7 +7743,7 @@ const suspendBackupsOperationSpec = {
|
|
|
7688
7743
|
backupInstanceName
|
|
7689
7744
|
],
|
|
7690
7745
|
headerParameters: [accept],
|
|
7691
|
-
serializer: serializer$
|
|
7746
|
+
serializer: serializer$7
|
|
7692
7747
|
};
|
|
7693
7748
|
const syncBackupInstanceOperationSpec = {
|
|
7694
7749
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync",
|
|
@@ -7713,7 +7768,7 @@ const syncBackupInstanceOperationSpec = {
|
|
|
7713
7768
|
],
|
|
7714
7769
|
headerParameters: [accept, contentType],
|
|
7715
7770
|
mediaType: "json",
|
|
7716
|
-
serializer: serializer$
|
|
7771
|
+
serializer: serializer$7
|
|
7717
7772
|
};
|
|
7718
7773
|
const validateForRestoreOperationSpec = {
|
|
7719
7774
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateRestore",
|
|
@@ -7746,9 +7801,9 @@ const validateForRestoreOperationSpec = {
|
|
|
7746
7801
|
],
|
|
7747
7802
|
headerParameters: [accept, contentType],
|
|
7748
7803
|
mediaType: "json",
|
|
7749
|
-
serializer: serializer$
|
|
7804
|
+
serializer: serializer$7
|
|
7750
7805
|
};
|
|
7751
|
-
const listNextOperationSpec$
|
|
7806
|
+
const listNextOperationSpec$3 = {
|
|
7752
7807
|
path: "{nextLink}",
|
|
7753
7808
|
httpMethod: "GET",
|
|
7754
7809
|
responses: {
|
|
@@ -7767,7 +7822,7 @@ const listNextOperationSpec$5 = {
|
|
|
7767
7822
|
nextLink
|
|
7768
7823
|
],
|
|
7769
7824
|
headerParameters: [accept],
|
|
7770
|
-
serializer: serializer$
|
|
7825
|
+
serializer: serializer$7
|
|
7771
7826
|
};
|
|
7772
7827
|
|
|
7773
7828
|
/*
|
|
@@ -7778,22 +7833,24 @@ const listNextOperationSpec$5 = {
|
|
|
7778
7833
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7779
7834
|
*/
|
|
7780
7835
|
/// <reference lib="esnext.asynciterable" />
|
|
7781
|
-
/** Class containing
|
|
7782
|
-
class
|
|
7836
|
+
/** Class containing RecoveryPoints operations. */
|
|
7837
|
+
class RecoveryPointsImpl {
|
|
7783
7838
|
/**
|
|
7784
|
-
* Initialize a new instance of the class
|
|
7839
|
+
* Initialize a new instance of the class RecoveryPoints class.
|
|
7785
7840
|
* @param client Reference to the service client
|
|
7786
7841
|
*/
|
|
7787
7842
|
constructor(client) {
|
|
7788
7843
|
this.client = client;
|
|
7789
7844
|
}
|
|
7790
7845
|
/**
|
|
7791
|
-
*
|
|
7792
|
-
* @param
|
|
7846
|
+
* Returns a list of Recovery Points for a DataSource in a vault.
|
|
7847
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7848
|
+
* @param vaultName The name of the backup vault.
|
|
7849
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7793
7850
|
* @param options The options parameters.
|
|
7794
7851
|
*/
|
|
7795
|
-
list(
|
|
7796
|
-
const iter = this.listPagingAll(
|
|
7852
|
+
list(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
7853
|
+
const iter = this.listPagingAll(resourceGroupName, vaultName, backupInstanceName, options);
|
|
7797
7854
|
return {
|
|
7798
7855
|
next() {
|
|
7799
7856
|
return iter.next();
|
|
@@ -7805,23 +7862,23 @@ class BackupInstancesExtensionRoutingImpl {
|
|
|
7805
7862
|
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7806
7863
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
7807
7864
|
}
|
|
7808
|
-
return this.listPagingPage(
|
|
7865
|
+
return this.listPagingPage(resourceGroupName, vaultName, backupInstanceName, options, settings);
|
|
7809
7866
|
}
|
|
7810
7867
|
};
|
|
7811
7868
|
}
|
|
7812
|
-
listPagingPage(
|
|
7869
|
+
listPagingPage(resourceGroupName, vaultName, backupInstanceName, options, settings) {
|
|
7813
7870
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7814
7871
|
let result;
|
|
7815
7872
|
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7816
7873
|
if (!continuationToken) {
|
|
7817
|
-
result = yield tslib.__await(this._list(
|
|
7874
|
+
result = yield tslib.__await(this._list(resourceGroupName, vaultName, backupInstanceName, options));
|
|
7818
7875
|
let page = result.value || [];
|
|
7819
7876
|
continuationToken = result.nextLink;
|
|
7820
7877
|
setContinuationToken(page, continuationToken);
|
|
7821
7878
|
yield yield tslib.__await(page);
|
|
7822
7879
|
}
|
|
7823
7880
|
while (continuationToken) {
|
|
7824
|
-
result = yield tslib.__await(this._listNext(
|
|
7881
|
+
result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, backupInstanceName, continuationToken, options));
|
|
7825
7882
|
continuationToken = result.nextLink;
|
|
7826
7883
|
let page = result.value || [];
|
|
7827
7884
|
setContinuationToken(page, continuationToken);
|
|
@@ -7829,11 +7886,11 @@ class BackupInstancesExtensionRoutingImpl {
|
|
|
7829
7886
|
}
|
|
7830
7887
|
});
|
|
7831
7888
|
}
|
|
7832
|
-
listPagingAll(
|
|
7889
|
+
listPagingAll(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
7833
7890
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
7834
7891
|
var e_1, _a;
|
|
7835
7892
|
try {
|
|
7836
|
-
for (var _b = tslib.__asyncValues(this.listPagingPage(
|
|
7893
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, vaultName, backupInstanceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
7837
7894
|
const page = _c.value;
|
|
7838
7895
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
7839
7896
|
}
|
|
@@ -7848,209 +7905,78 @@ class BackupInstancesExtensionRoutingImpl {
|
|
|
7848
7905
|
});
|
|
7849
7906
|
}
|
|
7850
7907
|
/**
|
|
7851
|
-
*
|
|
7852
|
-
* @param
|
|
7908
|
+
* Returns a list of Recovery Points for a DataSource in a vault.
|
|
7909
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7910
|
+
* @param vaultName The name of the backup vault.
|
|
7911
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7912
|
+
* @param options The options parameters.
|
|
7913
|
+
*/
|
|
7914
|
+
_list(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
7915
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, listOperationSpec$2);
|
|
7916
|
+
}
|
|
7917
|
+
/**
|
|
7918
|
+
* Gets a Recovery Point using recoveryPointId for a Datasource.
|
|
7919
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7920
|
+
* @param vaultName The name of the backup vault.
|
|
7921
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7922
|
+
* @param recoveryPointId
|
|
7853
7923
|
* @param options The options parameters.
|
|
7854
7924
|
*/
|
|
7855
|
-
|
|
7856
|
-
return this.client.sendOperationRequest({
|
|
7925
|
+
get(resourceGroupName, vaultName, backupInstanceName, recoveryPointId, options) {
|
|
7926
|
+
return this.client.sendOperationRequest({
|
|
7927
|
+
resourceGroupName,
|
|
7928
|
+
vaultName,
|
|
7929
|
+
backupInstanceName,
|
|
7930
|
+
recoveryPointId,
|
|
7931
|
+
options
|
|
7932
|
+
}, getOperationSpec$4);
|
|
7857
7933
|
}
|
|
7858
7934
|
/**
|
|
7859
7935
|
* ListNext
|
|
7860
|
-
* @param
|
|
7936
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
7937
|
+
* @param vaultName The name of the backup vault.
|
|
7938
|
+
* @param backupInstanceName The name of the backup instance.
|
|
7861
7939
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
7862
7940
|
* @param options The options parameters.
|
|
7863
7941
|
*/
|
|
7864
|
-
_listNext(
|
|
7865
|
-
return this.client.sendOperationRequest({
|
|
7942
|
+
_listNext(resourceGroupName, vaultName, backupInstanceName, nextLink, options) {
|
|
7943
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, nextLink, options }, listNextOperationSpec$2);
|
|
7866
7944
|
}
|
|
7867
7945
|
}
|
|
7868
7946
|
// Operation Specifications
|
|
7869
|
-
const serializer$
|
|
7870
|
-
const listOperationSpec$
|
|
7871
|
-
path: "/{
|
|
7947
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
7948
|
+
const listOperationSpec$2 = {
|
|
7949
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints",
|
|
7872
7950
|
httpMethod: "GET",
|
|
7873
7951
|
responses: {
|
|
7874
7952
|
200: {
|
|
7875
|
-
bodyMapper:
|
|
7953
|
+
bodyMapper: AzureBackupRecoveryPointResourceList
|
|
7876
7954
|
},
|
|
7877
7955
|
default: {
|
|
7878
7956
|
bodyMapper: CloudError
|
|
7879
7957
|
}
|
|
7880
7958
|
},
|
|
7881
|
-
queryParameters: [
|
|
7882
|
-
|
|
7959
|
+
queryParameters: [
|
|
7960
|
+
apiVersion,
|
|
7961
|
+
filter,
|
|
7962
|
+
skipToken
|
|
7963
|
+
],
|
|
7964
|
+
urlParameters: [
|
|
7965
|
+
$host,
|
|
7966
|
+
subscriptionId,
|
|
7967
|
+
resourceGroupName,
|
|
7968
|
+
vaultName,
|
|
7969
|
+
backupInstanceName
|
|
7970
|
+
],
|
|
7883
7971
|
headerParameters: [accept],
|
|
7884
|
-
serializer: serializer$
|
|
7972
|
+
serializer: serializer$6
|
|
7885
7973
|
};
|
|
7886
|
-
const
|
|
7887
|
-
path: "{
|
|
7974
|
+
const getOperationSpec$4 = {
|
|
7975
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}",
|
|
7888
7976
|
httpMethod: "GET",
|
|
7889
7977
|
responses: {
|
|
7890
7978
|
200: {
|
|
7891
|
-
bodyMapper:
|
|
7892
|
-
},
|
|
7893
|
-
default: {
|
|
7894
|
-
bodyMapper: CloudError
|
|
7895
|
-
}
|
|
7896
|
-
},
|
|
7897
|
-
urlParameters: [$host, nextLink, resourceId],
|
|
7898
|
-
headerParameters: [accept],
|
|
7899
|
-
serializer: serializer$8
|
|
7900
|
-
};
|
|
7901
|
-
|
|
7902
|
-
/*
|
|
7903
|
-
* Copyright (c) Microsoft Corporation.
|
|
7904
|
-
* Licensed under the MIT License.
|
|
7905
|
-
*
|
|
7906
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7907
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7908
|
-
*/
|
|
7909
|
-
/// <reference lib="esnext.asynciterable" />
|
|
7910
|
-
/** Class containing RecoveryPoints operations. */
|
|
7911
|
-
class RecoveryPointsImpl {
|
|
7912
|
-
/**
|
|
7913
|
-
* Initialize a new instance of the class RecoveryPoints class.
|
|
7914
|
-
* @param client Reference to the service client
|
|
7915
|
-
*/
|
|
7916
|
-
constructor(client) {
|
|
7917
|
-
this.client = client;
|
|
7918
|
-
}
|
|
7919
|
-
/**
|
|
7920
|
-
* Returns a list of Recovery Points for a DataSource in a vault.
|
|
7921
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
7922
|
-
* @param vaultName The name of the backup vault.
|
|
7923
|
-
* @param backupInstanceName The name of the backup instance
|
|
7924
|
-
* @param options The options parameters.
|
|
7925
|
-
*/
|
|
7926
|
-
list(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
7927
|
-
const iter = this.listPagingAll(resourceGroupName, vaultName, backupInstanceName, options);
|
|
7928
|
-
return {
|
|
7929
|
-
next() {
|
|
7930
|
-
return iter.next();
|
|
7931
|
-
},
|
|
7932
|
-
[Symbol.asyncIterator]() {
|
|
7933
|
-
return this;
|
|
7934
|
-
},
|
|
7935
|
-
byPage: (settings) => {
|
|
7936
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
7937
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
7938
|
-
}
|
|
7939
|
-
return this.listPagingPage(resourceGroupName, vaultName, backupInstanceName, options, settings);
|
|
7940
|
-
}
|
|
7941
|
-
};
|
|
7942
|
-
}
|
|
7943
|
-
listPagingPage(resourceGroupName, vaultName, backupInstanceName, options, settings) {
|
|
7944
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
7945
|
-
let result;
|
|
7946
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
7947
|
-
if (!continuationToken) {
|
|
7948
|
-
result = yield tslib.__await(this._list(resourceGroupName, vaultName, backupInstanceName, options));
|
|
7949
|
-
let page = result.value || [];
|
|
7950
|
-
continuationToken = result.nextLink;
|
|
7951
|
-
setContinuationToken(page, continuationToken);
|
|
7952
|
-
yield yield tslib.__await(page);
|
|
7953
|
-
}
|
|
7954
|
-
while (continuationToken) {
|
|
7955
|
-
result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, backupInstanceName, continuationToken, options));
|
|
7956
|
-
continuationToken = result.nextLink;
|
|
7957
|
-
let page = result.value || [];
|
|
7958
|
-
setContinuationToken(page, continuationToken);
|
|
7959
|
-
yield yield tslib.__await(page);
|
|
7960
|
-
}
|
|
7961
|
-
});
|
|
7962
|
-
}
|
|
7963
|
-
listPagingAll(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
7964
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
7965
|
-
var e_1, _a;
|
|
7966
|
-
try {
|
|
7967
|
-
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, vaultName, backupInstanceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
7968
|
-
const page = _c.value;
|
|
7969
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
7970
|
-
}
|
|
7971
|
-
}
|
|
7972
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
7973
|
-
finally {
|
|
7974
|
-
try {
|
|
7975
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
7976
|
-
}
|
|
7977
|
-
finally { if (e_1) throw e_1.error; }
|
|
7978
|
-
}
|
|
7979
|
-
});
|
|
7980
|
-
}
|
|
7981
|
-
/**
|
|
7982
|
-
* Returns a list of Recovery Points for a DataSource in a vault.
|
|
7983
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
7984
|
-
* @param vaultName The name of the backup vault.
|
|
7985
|
-
* @param backupInstanceName The name of the backup instance
|
|
7986
|
-
* @param options The options parameters.
|
|
7987
|
-
*/
|
|
7988
|
-
_list(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
7989
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, listOperationSpec$3);
|
|
7990
|
-
}
|
|
7991
|
-
/**
|
|
7992
|
-
* Gets a Recovery Point using recoveryPointId for a Datasource.
|
|
7993
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
7994
|
-
* @param vaultName The name of the backup vault.
|
|
7995
|
-
* @param backupInstanceName The name of the backup instance
|
|
7996
|
-
* @param recoveryPointId
|
|
7997
|
-
* @param options The options parameters.
|
|
7998
|
-
*/
|
|
7999
|
-
get(resourceGroupName, vaultName, backupInstanceName, recoveryPointId, options) {
|
|
8000
|
-
return this.client.sendOperationRequest({
|
|
8001
|
-
resourceGroupName,
|
|
8002
|
-
vaultName,
|
|
8003
|
-
backupInstanceName,
|
|
8004
|
-
recoveryPointId,
|
|
8005
|
-
options
|
|
8006
|
-
}, getOperationSpec$5);
|
|
8007
|
-
}
|
|
8008
|
-
/**
|
|
8009
|
-
* ListNext
|
|
8010
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
8011
|
-
* @param vaultName The name of the backup vault.
|
|
8012
|
-
* @param backupInstanceName The name of the backup instance
|
|
8013
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
8014
|
-
* @param options The options parameters.
|
|
8015
|
-
*/
|
|
8016
|
-
_listNext(resourceGroupName, vaultName, backupInstanceName, nextLink, options) {
|
|
8017
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, nextLink, options }, listNextOperationSpec$3);
|
|
8018
|
-
}
|
|
8019
|
-
}
|
|
8020
|
-
// Operation Specifications
|
|
8021
|
-
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
8022
|
-
const listOperationSpec$3 = {
|
|
8023
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints",
|
|
8024
|
-
httpMethod: "GET",
|
|
8025
|
-
responses: {
|
|
8026
|
-
200: {
|
|
8027
|
-
bodyMapper: AzureBackupRecoveryPointResourceList
|
|
8028
|
-
},
|
|
8029
|
-
default: {
|
|
8030
|
-
bodyMapper: CloudError
|
|
8031
|
-
}
|
|
8032
|
-
},
|
|
8033
|
-
queryParameters: [
|
|
8034
|
-
apiVersion,
|
|
8035
|
-
filter,
|
|
8036
|
-
skipToken
|
|
8037
|
-
],
|
|
8038
|
-
urlParameters: [
|
|
8039
|
-
$host,
|
|
8040
|
-
subscriptionId,
|
|
8041
|
-
resourceGroupName,
|
|
8042
|
-
vaultName,
|
|
8043
|
-
backupInstanceName
|
|
8044
|
-
],
|
|
8045
|
-
headerParameters: [accept],
|
|
8046
|
-
serializer: serializer$7
|
|
8047
|
-
};
|
|
8048
|
-
const getOperationSpec$5 = {
|
|
8049
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}",
|
|
8050
|
-
httpMethod: "GET",
|
|
8051
|
-
responses: {
|
|
8052
|
-
200: {
|
|
8053
|
-
bodyMapper: AzureBackupRecoveryPointResource
|
|
7979
|
+
bodyMapper: AzureBackupRecoveryPointResource
|
|
8054
7980
|
},
|
|
8055
7981
|
default: {
|
|
8056
7982
|
bodyMapper: CloudError
|
|
@@ -8066,9 +7992,9 @@ const getOperationSpec$5 = {
|
|
|
8066
7992
|
recoveryPointId
|
|
8067
7993
|
],
|
|
8068
7994
|
headerParameters: [accept],
|
|
8069
|
-
serializer: serializer$
|
|
7995
|
+
serializer: serializer$6
|
|
8070
7996
|
};
|
|
8071
|
-
const listNextOperationSpec$
|
|
7997
|
+
const listNextOperationSpec$2 = {
|
|
8072
7998
|
path: "{nextLink}",
|
|
8073
7999
|
httpMethod: "GET",
|
|
8074
8000
|
responses: {
|
|
@@ -8088,7 +8014,7 @@ const listNextOperationSpec$3 = {
|
|
|
8088
8014
|
backupInstanceName
|
|
8089
8015
|
],
|
|
8090
8016
|
headerParameters: [accept],
|
|
8091
|
-
serializer: serializer$
|
|
8017
|
+
serializer: serializer$6
|
|
8092
8018
|
};
|
|
8093
8019
|
|
|
8094
8020
|
/*
|
|
@@ -8110,7 +8036,7 @@ class JobsImpl {
|
|
|
8110
8036
|
}
|
|
8111
8037
|
/**
|
|
8112
8038
|
* Returns list of jobs belonging to a backup vault
|
|
8113
|
-
* @param resourceGroupName The name of the resource group
|
|
8039
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8114
8040
|
* @param vaultName The name of the backup vault.
|
|
8115
8041
|
* @param options The options parameters.
|
|
8116
8042
|
*/
|
|
@@ -8171,38 +8097,38 @@ class JobsImpl {
|
|
|
8171
8097
|
}
|
|
8172
8098
|
/**
|
|
8173
8099
|
* Returns list of jobs belonging to a backup vault
|
|
8174
|
-
* @param resourceGroupName The name of the resource group
|
|
8100
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8175
8101
|
* @param vaultName The name of the backup vault.
|
|
8176
8102
|
* @param options The options parameters.
|
|
8177
8103
|
*/
|
|
8178
8104
|
_list(resourceGroupName, vaultName, options) {
|
|
8179
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$
|
|
8105
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$1);
|
|
8180
8106
|
}
|
|
8181
8107
|
/**
|
|
8182
8108
|
* Gets a job with id in a backup vault
|
|
8183
|
-
* @param resourceGroupName The name of the resource group
|
|
8109
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8184
8110
|
* @param vaultName The name of the backup vault.
|
|
8185
8111
|
* @param jobId The Job ID. This is a GUID-formatted string (e.g.
|
|
8186
8112
|
* 00000000-0000-0000-0000-000000000000).
|
|
8187
8113
|
* @param options The options parameters.
|
|
8188
8114
|
*/
|
|
8189
8115
|
get(resourceGroupName, vaultName, jobId, options) {
|
|
8190
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, jobId, options }, getOperationSpec$
|
|
8116
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, jobId, options }, getOperationSpec$3);
|
|
8191
8117
|
}
|
|
8192
8118
|
/**
|
|
8193
8119
|
* ListNext
|
|
8194
|
-
* @param resourceGroupName The name of the resource group
|
|
8120
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8195
8121
|
* @param vaultName The name of the backup vault.
|
|
8196
8122
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
8197
8123
|
* @param options The options parameters.
|
|
8198
8124
|
*/
|
|
8199
8125
|
_listNext(resourceGroupName, vaultName, nextLink, options) {
|
|
8200
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$
|
|
8126
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$1);
|
|
8201
8127
|
}
|
|
8202
8128
|
}
|
|
8203
8129
|
// Operation Specifications
|
|
8204
|
-
const serializer$
|
|
8205
|
-
const listOperationSpec$
|
|
8130
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
8131
|
+
const listOperationSpec$1 = {
|
|
8206
8132
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs",
|
|
8207
8133
|
httpMethod: "GET",
|
|
8208
8134
|
responses: {
|
|
@@ -8221,9 +8147,9 @@ const listOperationSpec$2 = {
|
|
|
8221
8147
|
vaultName
|
|
8222
8148
|
],
|
|
8223
8149
|
headerParameters: [accept],
|
|
8224
|
-
serializer: serializer$
|
|
8150
|
+
serializer: serializer$5
|
|
8225
8151
|
};
|
|
8226
|
-
const getOperationSpec$
|
|
8152
|
+
const getOperationSpec$3 = {
|
|
8227
8153
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}",
|
|
8228
8154
|
httpMethod: "GET",
|
|
8229
8155
|
responses: {
|
|
@@ -8243,9 +8169,9 @@ const getOperationSpec$4 = {
|
|
|
8243
8169
|
jobId
|
|
8244
8170
|
],
|
|
8245
8171
|
headerParameters: [accept],
|
|
8246
|
-
serializer: serializer$
|
|
8172
|
+
serializer: serializer$5
|
|
8247
8173
|
};
|
|
8248
|
-
const listNextOperationSpec$
|
|
8174
|
+
const listNextOperationSpec$1 = {
|
|
8249
8175
|
path: "{nextLink}",
|
|
8250
8176
|
httpMethod: "GET",
|
|
8251
8177
|
responses: {
|
|
@@ -8264,7 +8190,7 @@ const listNextOperationSpec$2 = {
|
|
|
8264
8190
|
nextLink
|
|
8265
8191
|
],
|
|
8266
8192
|
headerParameters: [accept],
|
|
8267
|
-
serializer: serializer$
|
|
8193
|
+
serializer: serializer$5
|
|
8268
8194
|
};
|
|
8269
8195
|
|
|
8270
8196
|
/*
|
|
@@ -8284,9 +8210,9 @@ class RestorableTimeRangesImpl {
|
|
|
8284
8210
|
this.client = client;
|
|
8285
8211
|
}
|
|
8286
8212
|
/**
|
|
8287
|
-
* @param resourceGroupName The name of the resource group
|
|
8213
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8288
8214
|
* @param vaultName The name of the backup vault.
|
|
8289
|
-
* @param backupInstanceName The name of the backup instance
|
|
8215
|
+
* @param backupInstanceName The name of the backup instance.
|
|
8290
8216
|
* @param parameters Request body for operation
|
|
8291
8217
|
* @param options The options parameters.
|
|
8292
8218
|
*/
|
|
@@ -8295,7 +8221,7 @@ class RestorableTimeRangesImpl {
|
|
|
8295
8221
|
}
|
|
8296
8222
|
}
|
|
8297
8223
|
// Operation Specifications
|
|
8298
|
-
const serializer$
|
|
8224
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
8299
8225
|
const findOperationSpec = {
|
|
8300
8226
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges",
|
|
8301
8227
|
httpMethod: "POST",
|
|
@@ -8318,7 +8244,7 @@ const findOperationSpec = {
|
|
|
8318
8244
|
],
|
|
8319
8245
|
headerParameters: [accept, contentType],
|
|
8320
8246
|
mediaType: "json",
|
|
8321
|
-
serializer: serializer$
|
|
8247
|
+
serializer: serializer$4
|
|
8322
8248
|
};
|
|
8323
8249
|
|
|
8324
8250
|
/*
|
|
@@ -8339,7 +8265,7 @@ class ExportJobsImpl {
|
|
|
8339
8265
|
}
|
|
8340
8266
|
/**
|
|
8341
8267
|
* Triggers export of jobs and returns an OperationID to track.
|
|
8342
|
-
* @param resourceGroupName The name of the resource group
|
|
8268
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8343
8269
|
* @param vaultName The name of the backup vault.
|
|
8344
8270
|
* @param options The options parameters.
|
|
8345
8271
|
*/
|
|
@@ -8348,7 +8274,7 @@ class ExportJobsImpl {
|
|
|
8348
8274
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8349
8275
|
return this.client.sendOperationRequest(args, spec);
|
|
8350
8276
|
});
|
|
8351
|
-
const
|
|
8277
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8352
8278
|
var _a;
|
|
8353
8279
|
let currentRawResponse = undefined;
|
|
8354
8280
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -8367,11 +8293,15 @@ class ExportJobsImpl {
|
|
|
8367
8293
|
}
|
|
8368
8294
|
};
|
|
8369
8295
|
});
|
|
8370
|
-
const lro =
|
|
8371
|
-
|
|
8372
|
-
|
|
8296
|
+
const lro = createLroSpec({
|
|
8297
|
+
sendOperationFn,
|
|
8298
|
+
args: { resourceGroupName, vaultName, options },
|
|
8299
|
+
spec: triggerOperationSpec
|
|
8300
|
+
});
|
|
8301
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8302
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8373
8303
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
8374
|
-
|
|
8304
|
+
resourceLocationConfig: "location"
|
|
8375
8305
|
});
|
|
8376
8306
|
yield poller.poll();
|
|
8377
8307
|
return poller;
|
|
@@ -8379,7 +8309,7 @@ class ExportJobsImpl {
|
|
|
8379
8309
|
}
|
|
8380
8310
|
/**
|
|
8381
8311
|
* Triggers export of jobs and returns an OperationID to track.
|
|
8382
|
-
* @param resourceGroupName The name of the resource group
|
|
8312
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8383
8313
|
* @param vaultName The name of the backup vault.
|
|
8384
8314
|
* @param options The options parameters.
|
|
8385
8315
|
*/
|
|
@@ -8391,7 +8321,7 @@ class ExportJobsImpl {
|
|
|
8391
8321
|
}
|
|
8392
8322
|
}
|
|
8393
8323
|
// Operation Specifications
|
|
8394
|
-
const serializer$
|
|
8324
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
8395
8325
|
const triggerOperationSpec = {
|
|
8396
8326
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/exportBackupJobs",
|
|
8397
8327
|
httpMethod: "POST",
|
|
@@ -8420,7 +8350,7 @@ const triggerOperationSpec = {
|
|
|
8420
8350
|
vaultName
|
|
8421
8351
|
],
|
|
8422
8352
|
headerParameters: [accept],
|
|
8423
|
-
serializer: serializer$
|
|
8353
|
+
serializer: serializer$3
|
|
8424
8354
|
};
|
|
8425
8355
|
|
|
8426
8356
|
/*
|
|
@@ -8443,18 +8373,18 @@ class ExportJobsOperationResultImpl {
|
|
|
8443
8373
|
* Gets the operation result of operation triggered by Export Jobs API. If the operation is successful,
|
|
8444
8374
|
* then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported
|
|
8445
8375
|
* jobs in JSON serialized format.
|
|
8446
|
-
* @param resourceGroupName The name of the resource group
|
|
8376
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8447
8377
|
* @param vaultName The name of the backup vault.
|
|
8448
8378
|
* @param operationId OperationID which represents the export job.
|
|
8449
8379
|
* @param options The options parameters.
|
|
8450
8380
|
*/
|
|
8451
8381
|
get(resourceGroupName, vaultName, operationId, options) {
|
|
8452
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$
|
|
8382
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$2);
|
|
8453
8383
|
}
|
|
8454
8384
|
}
|
|
8455
8385
|
// Operation Specifications
|
|
8456
|
-
const serializer$
|
|
8457
|
-
const getOperationSpec$
|
|
8386
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
8387
|
+
const getOperationSpec$2 = {
|
|
8458
8388
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/operations/{operationId}",
|
|
8459
8389
|
httpMethod: "GET",
|
|
8460
8390
|
responses: {
|
|
@@ -8475,7 +8405,7 @@ const getOperationSpec$3 = {
|
|
|
8475
8405
|
operationId
|
|
8476
8406
|
],
|
|
8477
8407
|
headerParameters: [accept],
|
|
8478
|
-
serializer: serializer$
|
|
8408
|
+
serializer: serializer$2
|
|
8479
8409
|
};
|
|
8480
8410
|
|
|
8481
8411
|
/*
|
|
@@ -8497,7 +8427,7 @@ class DeletedBackupInstancesImpl {
|
|
|
8497
8427
|
}
|
|
8498
8428
|
/**
|
|
8499
8429
|
* Gets deleted backup instances belonging to a backup vault
|
|
8500
|
-
* @param resourceGroupName The name of the resource group
|
|
8430
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8501
8431
|
* @param vaultName The name of the backup vault.
|
|
8502
8432
|
* @param options The options parameters.
|
|
8503
8433
|
*/
|
|
@@ -8558,25 +8488,25 @@ class DeletedBackupInstancesImpl {
|
|
|
8558
8488
|
}
|
|
8559
8489
|
/**
|
|
8560
8490
|
* Gets deleted backup instances belonging to a backup vault
|
|
8561
|
-
* @param resourceGroupName The name of the resource group
|
|
8491
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8562
8492
|
* @param vaultName The name of the backup vault.
|
|
8563
8493
|
* @param options The options parameters.
|
|
8564
8494
|
*/
|
|
8565
8495
|
_list(resourceGroupName, vaultName, options) {
|
|
8566
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec
|
|
8496
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec);
|
|
8567
8497
|
}
|
|
8568
8498
|
/**
|
|
8569
8499
|
* Gets a deleted backup instance with name in a backup vault
|
|
8570
|
-
* @param resourceGroupName The name of the resource group
|
|
8500
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8571
8501
|
* @param vaultName The name of the backup vault.
|
|
8572
8502
|
* @param backupInstanceName The name of the deleted backup instance
|
|
8573
8503
|
* @param options The options parameters.
|
|
8574
8504
|
*/
|
|
8575
8505
|
get(resourceGroupName, vaultName, backupInstanceName, options) {
|
|
8576
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec$
|
|
8506
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec$1);
|
|
8577
8507
|
}
|
|
8578
8508
|
/**
|
|
8579
|
-
* @param resourceGroupName The name of the resource group
|
|
8509
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8580
8510
|
* @param vaultName The name of the backup vault.
|
|
8581
8511
|
* @param backupInstanceName The name of the deleted backup instance
|
|
8582
8512
|
* @param options The options parameters.
|
|
@@ -8586,7 +8516,7 @@ class DeletedBackupInstancesImpl {
|
|
|
8586
8516
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8587
8517
|
return this.client.sendOperationRequest(args, spec);
|
|
8588
8518
|
});
|
|
8589
|
-
const
|
|
8519
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
8590
8520
|
var _a;
|
|
8591
8521
|
let currentRawResponse = undefined;
|
|
8592
8522
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
@@ -8605,9 +8535,13 @@ class DeletedBackupInstancesImpl {
|
|
|
8605
8535
|
}
|
|
8606
8536
|
};
|
|
8607
8537
|
});
|
|
8608
|
-
const lro =
|
|
8609
|
-
|
|
8610
|
-
|
|
8538
|
+
const lro = createLroSpec({
|
|
8539
|
+
sendOperationFn,
|
|
8540
|
+
args: { resourceGroupName, vaultName, backupInstanceName, options },
|
|
8541
|
+
spec: undeleteOperationSpec
|
|
8542
|
+
});
|
|
8543
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
8544
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
8611
8545
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
8612
8546
|
});
|
|
8613
8547
|
yield poller.poll();
|
|
@@ -8615,7 +8549,7 @@ class DeletedBackupInstancesImpl {
|
|
|
8615
8549
|
});
|
|
8616
8550
|
}
|
|
8617
8551
|
/**
|
|
8618
|
-
* @param resourceGroupName The name of the resource group
|
|
8552
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8619
8553
|
* @param vaultName The name of the backup vault.
|
|
8620
8554
|
* @param backupInstanceName The name of the deleted backup instance
|
|
8621
8555
|
* @param options The options parameters.
|
|
@@ -8628,18 +8562,18 @@ class DeletedBackupInstancesImpl {
|
|
|
8628
8562
|
}
|
|
8629
8563
|
/**
|
|
8630
8564
|
* ListNext
|
|
8631
|
-
* @param resourceGroupName The name of the resource group
|
|
8565
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8632
8566
|
* @param vaultName The name of the backup vault.
|
|
8633
8567
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
8634
8568
|
* @param options The options parameters.
|
|
8635
8569
|
*/
|
|
8636
8570
|
_listNext(resourceGroupName, vaultName, nextLink, options) {
|
|
8637
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec
|
|
8571
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec);
|
|
8638
8572
|
}
|
|
8639
8573
|
}
|
|
8640
8574
|
// Operation Specifications
|
|
8641
|
-
const serializer$
|
|
8642
|
-
const listOperationSpec
|
|
8575
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
8576
|
+
const listOperationSpec = {
|
|
8643
8577
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances",
|
|
8644
8578
|
httpMethod: "GET",
|
|
8645
8579
|
responses: {
|
|
@@ -8658,9 +8592,9 @@ const listOperationSpec$1 = {
|
|
|
8658
8592
|
vaultName
|
|
8659
8593
|
],
|
|
8660
8594
|
headerParameters: [accept],
|
|
8661
|
-
serializer: serializer$
|
|
8595
|
+
serializer: serializer$1
|
|
8662
8596
|
};
|
|
8663
|
-
const getOperationSpec$
|
|
8597
|
+
const getOperationSpec$1 = {
|
|
8664
8598
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}",
|
|
8665
8599
|
httpMethod: "GET",
|
|
8666
8600
|
responses: {
|
|
@@ -8680,7 +8614,7 @@ const getOperationSpec$2 = {
|
|
|
8680
8614
|
backupInstanceName
|
|
8681
8615
|
],
|
|
8682
8616
|
headerParameters: [accept],
|
|
8683
|
-
serializer: serializer$
|
|
8617
|
+
serializer: serializer$1
|
|
8684
8618
|
};
|
|
8685
8619
|
const undeleteOperationSpec = {
|
|
8686
8620
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete",
|
|
@@ -8703,9 +8637,9 @@ const undeleteOperationSpec = {
|
|
|
8703
8637
|
backupInstanceName
|
|
8704
8638
|
],
|
|
8705
8639
|
headerParameters: [accept],
|
|
8706
|
-
serializer: serializer$
|
|
8640
|
+
serializer: serializer$1
|
|
8707
8641
|
};
|
|
8708
|
-
const listNextOperationSpec
|
|
8642
|
+
const listNextOperationSpec = {
|
|
8709
8643
|
path: "{nextLink}",
|
|
8710
8644
|
httpMethod: "GET",
|
|
8711
8645
|
responses: {
|
|
@@ -8724,7 +8658,7 @@ const listNextOperationSpec$1 = {
|
|
|
8724
8658
|
nextLink
|
|
8725
8659
|
],
|
|
8726
8660
|
headerParameters: [accept],
|
|
8727
|
-
serializer: serializer$
|
|
8661
|
+
serializer: serializer$1
|
|
8728
8662
|
};
|
|
8729
8663
|
|
|
8730
8664
|
/*
|
|
@@ -8805,7 +8739,7 @@ class ResourceGuardsImpl {
|
|
|
8805
8739
|
}
|
|
8806
8740
|
/**
|
|
8807
8741
|
* Returns ResourceGuards collection belonging to a ResourceGroup.
|
|
8808
|
-
* @param resourceGroupName The name of the resource group
|
|
8742
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8809
8743
|
* @param options The options parameters.
|
|
8810
8744
|
*/
|
|
8811
8745
|
listResourcesInResourceGroup(resourceGroupName, options) {
|
|
@@ -8866,7 +8800,7 @@ class ResourceGuardsImpl {
|
|
|
8866
8800
|
/**
|
|
8867
8801
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
8868
8802
|
* ResourceGuard resource.
|
|
8869
|
-
* @param resourceGroupName The name of the resource group
|
|
8803
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8870
8804
|
* @param resourceGuardsName
|
|
8871
8805
|
* @param options The options parameters.
|
|
8872
8806
|
*/
|
|
@@ -8928,7 +8862,7 @@ class ResourceGuardsImpl {
|
|
|
8928
8862
|
/**
|
|
8929
8863
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
8930
8864
|
* ResourceGuard resource.
|
|
8931
|
-
* @param resourceGroupName The name of the resource group
|
|
8865
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8932
8866
|
* @param resourceGuardsName
|
|
8933
8867
|
* @param options The options parameters.
|
|
8934
8868
|
*/
|
|
@@ -8990,7 +8924,7 @@ class ResourceGuardsImpl {
|
|
|
8990
8924
|
/**
|
|
8991
8925
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
8992
8926
|
* ResourceGuard resource.
|
|
8993
|
-
* @param resourceGroupName The name of the resource group
|
|
8927
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
8994
8928
|
* @param resourceGuardsName
|
|
8995
8929
|
* @param options The options parameters.
|
|
8996
8930
|
*/
|
|
@@ -9052,7 +8986,7 @@ class ResourceGuardsImpl {
|
|
|
9052
8986
|
/**
|
|
9053
8987
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9054
8988
|
* ResourceGuard resource.
|
|
9055
|
-
* @param resourceGroupName The name of the resource group
|
|
8989
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9056
8990
|
* @param resourceGuardsName
|
|
9057
8991
|
* @param options The options parameters.
|
|
9058
8992
|
*/
|
|
@@ -9114,7 +9048,7 @@ class ResourceGuardsImpl {
|
|
|
9114
9048
|
/**
|
|
9115
9049
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9116
9050
|
* ResourceGuard resource.
|
|
9117
|
-
* @param resourceGroupName The name of the resource group
|
|
9051
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9118
9052
|
* @param resourceGuardsName
|
|
9119
9053
|
* @param options The options parameters.
|
|
9120
9054
|
*/
|
|
@@ -9176,7 +9110,7 @@ class ResourceGuardsImpl {
|
|
|
9176
9110
|
/**
|
|
9177
9111
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9178
9112
|
* ResourceGuard resource.
|
|
9179
|
-
* @param resourceGroupName The name of the resource group
|
|
9113
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9180
9114
|
* @param resourceGuardsName
|
|
9181
9115
|
* @param options The options parameters.
|
|
9182
9116
|
*/
|
|
@@ -9244,7 +9178,7 @@ class ResourceGuardsImpl {
|
|
|
9244
9178
|
}
|
|
9245
9179
|
/**
|
|
9246
9180
|
* Returns ResourceGuards collection belonging to a ResourceGroup.
|
|
9247
|
-
* @param resourceGroupName The name of the resource group
|
|
9181
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9248
9182
|
* @param options The options parameters.
|
|
9249
9183
|
*/
|
|
9250
9184
|
_getResourcesInResourceGroup(resourceGroupName, options) {
|
|
@@ -9252,36 +9186,36 @@ class ResourceGuardsImpl {
|
|
|
9252
9186
|
}
|
|
9253
9187
|
/**
|
|
9254
9188
|
* Creates or updates a ResourceGuard resource belonging to a resource group.
|
|
9255
|
-
* @param resourceGroupName The name of the resource group
|
|
9189
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9256
9190
|
* @param resourceGuardsName The name of ResourceGuard
|
|
9257
9191
|
* @param parameters Request body for operation
|
|
9258
9192
|
* @param options The options parameters.
|
|
9259
9193
|
*/
|
|
9260
9194
|
put(resourceGroupName, resourceGuardsName, parameters, options) {
|
|
9261
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, parameters, options }, putOperationSpec
|
|
9195
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, parameters, options }, putOperationSpec);
|
|
9262
9196
|
}
|
|
9263
9197
|
/**
|
|
9264
9198
|
* Returns a ResourceGuard belonging to a resource group.
|
|
9265
|
-
* @param resourceGroupName The name of the resource group
|
|
9199
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9266
9200
|
* @param resourceGuardsName The name of ResourceGuard
|
|
9267
9201
|
* @param options The options parameters.
|
|
9268
9202
|
*/
|
|
9269
9203
|
get(resourceGroupName, resourceGuardsName, options) {
|
|
9270
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, options }, getOperationSpec
|
|
9204
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, options }, getOperationSpec);
|
|
9271
9205
|
}
|
|
9272
9206
|
/**
|
|
9273
9207
|
* Deletes a ResourceGuard resource from the resource group.
|
|
9274
|
-
* @param resourceGroupName The name of the resource group
|
|
9208
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9275
9209
|
* @param resourceGuardsName The name of ResourceGuard
|
|
9276
9210
|
* @param options The options parameters.
|
|
9277
9211
|
*/
|
|
9278
9212
|
delete(resourceGroupName, resourceGuardsName, options) {
|
|
9279
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, options }, deleteOperationSpec
|
|
9213
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, options }, deleteOperationSpec);
|
|
9280
9214
|
}
|
|
9281
9215
|
/**
|
|
9282
9216
|
* Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a
|
|
9283
9217
|
* resource.
|
|
9284
|
-
* @param resourceGroupName The name of the resource group
|
|
9218
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9285
9219
|
* @param resourceGuardsName The name of ResourceGuard
|
|
9286
9220
|
* @param parameters Request body for operation
|
|
9287
9221
|
* @param options The options parameters.
|
|
@@ -9292,7 +9226,7 @@ class ResourceGuardsImpl {
|
|
|
9292
9226
|
/**
|
|
9293
9227
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9294
9228
|
* ResourceGuard resource.
|
|
9295
|
-
* @param resourceGroupName The name of the resource group
|
|
9229
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9296
9230
|
* @param resourceGuardsName
|
|
9297
9231
|
* @param options The options parameters.
|
|
9298
9232
|
*/
|
|
@@ -9302,7 +9236,7 @@ class ResourceGuardsImpl {
|
|
|
9302
9236
|
/**
|
|
9303
9237
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9304
9238
|
* ResourceGuard resource.
|
|
9305
|
-
* @param resourceGroupName The name of the resource group
|
|
9239
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9306
9240
|
* @param resourceGuardsName
|
|
9307
9241
|
* @param options The options parameters.
|
|
9308
9242
|
*/
|
|
@@ -9312,7 +9246,7 @@ class ResourceGuardsImpl {
|
|
|
9312
9246
|
/**
|
|
9313
9247
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9314
9248
|
* ResourceGuard resource.
|
|
9315
|
-
* @param resourceGroupName The name of the resource group
|
|
9249
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9316
9250
|
* @param resourceGuardsName
|
|
9317
9251
|
* @param options The options parameters.
|
|
9318
9252
|
*/
|
|
@@ -9322,7 +9256,7 @@ class ResourceGuardsImpl {
|
|
|
9322
9256
|
/**
|
|
9323
9257
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9324
9258
|
* ResourceGuard resource.
|
|
9325
|
-
* @param resourceGroupName The name of the resource group
|
|
9259
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9326
9260
|
* @param resourceGuardsName
|
|
9327
9261
|
* @param options The options parameters.
|
|
9328
9262
|
*/
|
|
@@ -9332,7 +9266,7 @@ class ResourceGuardsImpl {
|
|
|
9332
9266
|
/**
|
|
9333
9267
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9334
9268
|
* ResourceGuard resource.
|
|
9335
|
-
* @param resourceGroupName The name of the resource group
|
|
9269
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9336
9270
|
* @param resourceGuardsName
|
|
9337
9271
|
* @param options The options parameters.
|
|
9338
9272
|
*/
|
|
@@ -9342,7 +9276,7 @@ class ResourceGuardsImpl {
|
|
|
9342
9276
|
/**
|
|
9343
9277
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9344
9278
|
* ResourceGuard resource.
|
|
9345
|
-
* @param resourceGroupName The name of the resource group
|
|
9279
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9346
9280
|
* @param resourceGuardsName
|
|
9347
9281
|
* @param options The options parameters.
|
|
9348
9282
|
*/
|
|
@@ -9352,7 +9286,7 @@ class ResourceGuardsImpl {
|
|
|
9352
9286
|
/**
|
|
9353
9287
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9354
9288
|
* ResourceGuard resource.
|
|
9355
|
-
* @param resourceGroupName The name of the resource group
|
|
9289
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9356
9290
|
* @param resourceGuardsName
|
|
9357
9291
|
* @param requestName
|
|
9358
9292
|
* @param options The options parameters.
|
|
@@ -9363,7 +9297,7 @@ class ResourceGuardsImpl {
|
|
|
9363
9297
|
/**
|
|
9364
9298
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9365
9299
|
* ResourceGuard resource.
|
|
9366
|
-
* @param resourceGroupName The name of the resource group
|
|
9300
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9367
9301
|
* @param resourceGuardsName
|
|
9368
9302
|
* @param requestName
|
|
9369
9303
|
* @param options The options parameters.
|
|
@@ -9374,7 +9308,7 @@ class ResourceGuardsImpl {
|
|
|
9374
9308
|
/**
|
|
9375
9309
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9376
9310
|
* ResourceGuard resource.
|
|
9377
|
-
* @param resourceGroupName The name of the resource group
|
|
9311
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9378
9312
|
* @param resourceGuardsName
|
|
9379
9313
|
* @param requestName
|
|
9380
9314
|
* @param options The options parameters.
|
|
@@ -9385,7 +9319,7 @@ class ResourceGuardsImpl {
|
|
|
9385
9319
|
/**
|
|
9386
9320
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9387
9321
|
* ResourceGuard resource.
|
|
9388
|
-
* @param resourceGroupName The name of the resource group
|
|
9322
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9389
9323
|
* @param resourceGuardsName
|
|
9390
9324
|
* @param requestName
|
|
9391
9325
|
* @param options The options parameters.
|
|
@@ -9396,7 +9330,7 @@ class ResourceGuardsImpl {
|
|
|
9396
9330
|
/**
|
|
9397
9331
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9398
9332
|
* ResourceGuard resource.
|
|
9399
|
-
* @param resourceGroupName The name of the resource group
|
|
9333
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9400
9334
|
* @param resourceGuardsName
|
|
9401
9335
|
* @param requestName
|
|
9402
9336
|
* @param options The options parameters.
|
|
@@ -9407,7 +9341,7 @@ class ResourceGuardsImpl {
|
|
|
9407
9341
|
/**
|
|
9408
9342
|
* Returns collection of operation request objects for a critical operation protected by the given
|
|
9409
9343
|
* ResourceGuard resource.
|
|
9410
|
-
* @param resourceGroupName The name of the resource group
|
|
9344
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9411
9345
|
* @param resourceGuardsName
|
|
9412
9346
|
* @param requestName
|
|
9413
9347
|
* @param options The options parameters.
|
|
@@ -9426,7 +9360,7 @@ class ResourceGuardsImpl {
|
|
|
9426
9360
|
}
|
|
9427
9361
|
/**
|
|
9428
9362
|
* GetResourcesInResourceGroupNext
|
|
9429
|
-
* @param resourceGroupName The name of the resource group
|
|
9363
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9430
9364
|
* @param nextLink The nextLink from the previous successful call to the GetResourcesInResourceGroup
|
|
9431
9365
|
* method.
|
|
9432
9366
|
* @param options The options parameters.
|
|
@@ -9436,7 +9370,7 @@ class ResourceGuardsImpl {
|
|
|
9436
9370
|
}
|
|
9437
9371
|
/**
|
|
9438
9372
|
* GetDisableSoftDeleteRequestsObjectsNext
|
|
9439
|
-
* @param resourceGroupName The name of the resource group
|
|
9373
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9440
9374
|
* @param resourceGuardsName
|
|
9441
9375
|
* @param nextLink The nextLink from the previous successful call to the
|
|
9442
9376
|
* GetDisableSoftDeleteRequestsObjects method.
|
|
@@ -9447,7 +9381,7 @@ class ResourceGuardsImpl {
|
|
|
9447
9381
|
}
|
|
9448
9382
|
/**
|
|
9449
9383
|
* GetDeleteResourceGuardProxyRequestsObjectsNext
|
|
9450
|
-
* @param resourceGroupName The name of the resource group
|
|
9384
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9451
9385
|
* @param resourceGuardsName
|
|
9452
9386
|
* @param nextLink The nextLink from the previous successful call to the
|
|
9453
9387
|
* GetDeleteResourceGuardProxyRequestsObjects method.
|
|
@@ -9458,7 +9392,7 @@ class ResourceGuardsImpl {
|
|
|
9458
9392
|
}
|
|
9459
9393
|
/**
|
|
9460
9394
|
* GetBackupSecurityPINRequestsObjectsNext
|
|
9461
|
-
* @param resourceGroupName The name of the resource group
|
|
9395
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9462
9396
|
* @param resourceGuardsName
|
|
9463
9397
|
* @param nextLink The nextLink from the previous successful call to the
|
|
9464
9398
|
* GetBackupSecurityPINRequestsObjects method.
|
|
@@ -9469,7 +9403,7 @@ class ResourceGuardsImpl {
|
|
|
9469
9403
|
}
|
|
9470
9404
|
/**
|
|
9471
9405
|
* GetDeleteProtectedItemRequestsObjectsNext
|
|
9472
|
-
* @param resourceGroupName The name of the resource group
|
|
9406
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9473
9407
|
* @param resourceGuardsName
|
|
9474
9408
|
* @param nextLink The nextLink from the previous successful call to the
|
|
9475
9409
|
* GetDeleteProtectedItemRequestsObjects method.
|
|
@@ -9480,7 +9414,7 @@ class ResourceGuardsImpl {
|
|
|
9480
9414
|
}
|
|
9481
9415
|
/**
|
|
9482
9416
|
* GetUpdateProtectionPolicyRequestsObjectsNext
|
|
9483
|
-
* @param resourceGroupName The name of the resource group
|
|
9417
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9484
9418
|
* @param resourceGuardsName
|
|
9485
9419
|
* @param nextLink The nextLink from the previous successful call to the
|
|
9486
9420
|
* GetUpdateProtectionPolicyRequestsObjects method.
|
|
@@ -9491,7 +9425,7 @@ class ResourceGuardsImpl {
|
|
|
9491
9425
|
}
|
|
9492
9426
|
/**
|
|
9493
9427
|
* GetUpdateProtectedItemRequestsObjectsNext
|
|
9494
|
-
* @param resourceGroupName The name of the resource group
|
|
9428
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
9495
9429
|
* @param resourceGuardsName
|
|
9496
9430
|
* @param nextLink The nextLink from the previous successful call to the
|
|
9497
9431
|
* GetUpdateProtectedItemRequestsObjects method.
|
|
@@ -9502,7 +9436,7 @@ class ResourceGuardsImpl {
|
|
|
9502
9436
|
}
|
|
9503
9437
|
}
|
|
9504
9438
|
// Operation Specifications
|
|
9505
|
-
const serializer
|
|
9439
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9506
9440
|
const getResourcesInSubscriptionOperationSpec = {
|
|
9507
9441
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/resourceGuards",
|
|
9508
9442
|
httpMethod: "GET",
|
|
@@ -9517,7 +9451,7 @@ const getResourcesInSubscriptionOperationSpec = {
|
|
|
9517
9451
|
queryParameters: [apiVersion],
|
|
9518
9452
|
urlParameters: [$host, subscriptionId],
|
|
9519
9453
|
headerParameters: [accept],
|
|
9520
|
-
serializer
|
|
9454
|
+
serializer
|
|
9521
9455
|
};
|
|
9522
9456
|
const getResourcesInResourceGroupOperationSpec = {
|
|
9523
9457
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards",
|
|
@@ -9537,15 +9471,18 @@ const getResourcesInResourceGroupOperationSpec = {
|
|
|
9537
9471
|
resourceGroupName
|
|
9538
9472
|
],
|
|
9539
9473
|
headerParameters: [accept],
|
|
9540
|
-
serializer
|
|
9474
|
+
serializer
|
|
9541
9475
|
};
|
|
9542
|
-
const putOperationSpec
|
|
9476
|
+
const putOperationSpec = {
|
|
9543
9477
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}",
|
|
9544
9478
|
httpMethod: "PUT",
|
|
9545
9479
|
responses: {
|
|
9546
9480
|
200: {
|
|
9547
9481
|
bodyMapper: ResourceGuardResource
|
|
9548
9482
|
},
|
|
9483
|
+
201: {
|
|
9484
|
+
bodyMapper: ResourceGuardResource
|
|
9485
|
+
},
|
|
9549
9486
|
default: {
|
|
9550
9487
|
bodyMapper: CloudError
|
|
9551
9488
|
}
|
|
@@ -9560,9 +9497,9 @@ const putOperationSpec$1 = {
|
|
|
9560
9497
|
],
|
|
9561
9498
|
headerParameters: [accept, contentType],
|
|
9562
9499
|
mediaType: "json",
|
|
9563
|
-
serializer
|
|
9500
|
+
serializer
|
|
9564
9501
|
};
|
|
9565
|
-
const getOperationSpec
|
|
9502
|
+
const getOperationSpec = {
|
|
9566
9503
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}",
|
|
9567
9504
|
httpMethod: "GET",
|
|
9568
9505
|
responses: {
|
|
@@ -9581,9 +9518,9 @@ const getOperationSpec$1 = {
|
|
|
9581
9518
|
resourceGuardsName
|
|
9582
9519
|
],
|
|
9583
9520
|
headerParameters: [accept],
|
|
9584
|
-
serializer
|
|
9521
|
+
serializer
|
|
9585
9522
|
};
|
|
9586
|
-
const deleteOperationSpec
|
|
9523
|
+
const deleteOperationSpec = {
|
|
9587
9524
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}",
|
|
9588
9525
|
httpMethod: "DELETE",
|
|
9589
9526
|
responses: {
|
|
@@ -9601,7 +9538,7 @@ const deleteOperationSpec$1 = {
|
|
|
9601
9538
|
resourceGuardsName
|
|
9602
9539
|
],
|
|
9603
9540
|
headerParameters: [accept],
|
|
9604
|
-
serializer
|
|
9541
|
+
serializer
|
|
9605
9542
|
};
|
|
9606
9543
|
const patchOperationSpec = {
|
|
9607
9544
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}",
|
|
@@ -9614,7 +9551,7 @@ const patchOperationSpec = {
|
|
|
9614
9551
|
bodyMapper: CloudError
|
|
9615
9552
|
}
|
|
9616
9553
|
},
|
|
9617
|
-
requestBody:
|
|
9554
|
+
requestBody: parameters14,
|
|
9618
9555
|
queryParameters: [apiVersion],
|
|
9619
9556
|
urlParameters: [
|
|
9620
9557
|
$host,
|
|
@@ -9624,7 +9561,7 @@ const patchOperationSpec = {
|
|
|
9624
9561
|
],
|
|
9625
9562
|
headerParameters: [accept, contentType],
|
|
9626
9563
|
mediaType: "json",
|
|
9627
|
-
serializer
|
|
9564
|
+
serializer
|
|
9628
9565
|
};
|
|
9629
9566
|
const getDisableSoftDeleteRequestsObjectsOperationSpec = {
|
|
9630
9567
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/disableSoftDeleteRequests",
|
|
@@ -9645,7 +9582,7 @@ const getDisableSoftDeleteRequestsObjectsOperationSpec = {
|
|
|
9645
9582
|
resourceGuardsName
|
|
9646
9583
|
],
|
|
9647
9584
|
headerParameters: [accept],
|
|
9648
|
-
serializer
|
|
9585
|
+
serializer
|
|
9649
9586
|
};
|
|
9650
9587
|
const getDeleteResourceGuardProxyRequestsObjectsOperationSpec = {
|
|
9651
9588
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteResourceGuardProxyRequests",
|
|
@@ -9666,7 +9603,7 @@ const getDeleteResourceGuardProxyRequestsObjectsOperationSpec = {
|
|
|
9666
9603
|
resourceGuardsName
|
|
9667
9604
|
],
|
|
9668
9605
|
headerParameters: [accept],
|
|
9669
|
-
serializer
|
|
9606
|
+
serializer
|
|
9670
9607
|
};
|
|
9671
9608
|
const getBackupSecurityPINRequestsObjectsOperationSpec = {
|
|
9672
9609
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/getBackupSecurityPINRequests",
|
|
@@ -9687,7 +9624,7 @@ const getBackupSecurityPINRequestsObjectsOperationSpec = {
|
|
|
9687
9624
|
resourceGuardsName
|
|
9688
9625
|
],
|
|
9689
9626
|
headerParameters: [accept],
|
|
9690
|
-
serializer
|
|
9627
|
+
serializer
|
|
9691
9628
|
};
|
|
9692
9629
|
const getDeleteProtectedItemRequestsObjectsOperationSpec = {
|
|
9693
9630
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteProtectedItemRequests",
|
|
@@ -9708,7 +9645,7 @@ const getDeleteProtectedItemRequestsObjectsOperationSpec = {
|
|
|
9708
9645
|
resourceGuardsName
|
|
9709
9646
|
],
|
|
9710
9647
|
headerParameters: [accept],
|
|
9711
|
-
serializer
|
|
9648
|
+
serializer
|
|
9712
9649
|
};
|
|
9713
9650
|
const getUpdateProtectionPolicyRequestsObjectsOperationSpec = {
|
|
9714
9651
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectionPolicyRequests",
|
|
@@ -9729,7 +9666,7 @@ const getUpdateProtectionPolicyRequestsObjectsOperationSpec = {
|
|
|
9729
9666
|
resourceGuardsName
|
|
9730
9667
|
],
|
|
9731
9668
|
headerParameters: [accept],
|
|
9732
|
-
serializer
|
|
9669
|
+
serializer
|
|
9733
9670
|
};
|
|
9734
9671
|
const getUpdateProtectedItemRequestsObjectsOperationSpec = {
|
|
9735
9672
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectedItemRequests",
|
|
@@ -9750,7 +9687,7 @@ const getUpdateProtectedItemRequestsObjectsOperationSpec = {
|
|
|
9750
9687
|
resourceGuardsName
|
|
9751
9688
|
],
|
|
9752
9689
|
headerParameters: [accept],
|
|
9753
|
-
serializer
|
|
9690
|
+
serializer
|
|
9754
9691
|
};
|
|
9755
9692
|
const getDefaultDisableSoftDeleteRequestsObjectOperationSpec = {
|
|
9756
9693
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/disableSoftDeleteRequests/{requestName}",
|
|
@@ -9772,7 +9709,7 @@ const getDefaultDisableSoftDeleteRequestsObjectOperationSpec = {
|
|
|
9772
9709
|
requestName
|
|
9773
9710
|
],
|
|
9774
9711
|
headerParameters: [accept],
|
|
9775
|
-
serializer
|
|
9712
|
+
serializer
|
|
9776
9713
|
};
|
|
9777
9714
|
const getDefaultDeleteResourceGuardProxyRequestsObjectOperationSpec = {
|
|
9778
9715
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteResourceGuardProxyRequests/{requestName}",
|
|
@@ -9794,7 +9731,7 @@ const getDefaultDeleteResourceGuardProxyRequestsObjectOperationSpec = {
|
|
|
9794
9731
|
requestName
|
|
9795
9732
|
],
|
|
9796
9733
|
headerParameters: [accept],
|
|
9797
|
-
serializer
|
|
9734
|
+
serializer
|
|
9798
9735
|
};
|
|
9799
9736
|
const getDefaultBackupSecurityPINRequestsObjectOperationSpec = {
|
|
9800
9737
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/getBackupSecurityPINRequests/{requestName}",
|
|
@@ -9816,7 +9753,7 @@ const getDefaultBackupSecurityPINRequestsObjectOperationSpec = {
|
|
|
9816
9753
|
requestName
|
|
9817
9754
|
],
|
|
9818
9755
|
headerParameters: [accept],
|
|
9819
|
-
serializer
|
|
9756
|
+
serializer
|
|
9820
9757
|
};
|
|
9821
9758
|
const getDefaultDeleteProtectedItemRequestsObjectOperationSpec = {
|
|
9822
9759
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteProtectedItemRequests/{requestName}",
|
|
@@ -9838,7 +9775,7 @@ const getDefaultDeleteProtectedItemRequestsObjectOperationSpec = {
|
|
|
9838
9775
|
requestName
|
|
9839
9776
|
],
|
|
9840
9777
|
headerParameters: [accept],
|
|
9841
|
-
serializer
|
|
9778
|
+
serializer
|
|
9842
9779
|
};
|
|
9843
9780
|
const getDefaultUpdateProtectionPolicyRequestsObjectOperationSpec = {
|
|
9844
9781
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectionPolicyRequests/{requestName}",
|
|
@@ -9860,7 +9797,7 @@ const getDefaultUpdateProtectionPolicyRequestsObjectOperationSpec = {
|
|
|
9860
9797
|
requestName
|
|
9861
9798
|
],
|
|
9862
9799
|
headerParameters: [accept],
|
|
9863
|
-
serializer
|
|
9800
|
+
serializer
|
|
9864
9801
|
};
|
|
9865
9802
|
const getDefaultUpdateProtectedItemRequestsObjectOperationSpec = {
|
|
9866
9803
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectedItemRequests/{requestName}",
|
|
@@ -9882,7 +9819,7 @@ const getDefaultUpdateProtectedItemRequestsObjectOperationSpec = {
|
|
|
9882
9819
|
requestName
|
|
9883
9820
|
],
|
|
9884
9821
|
headerParameters: [accept],
|
|
9885
|
-
serializer
|
|
9822
|
+
serializer
|
|
9886
9823
|
};
|
|
9887
9824
|
const getResourcesInSubscriptionNextOperationSpec = {
|
|
9888
9825
|
path: "{nextLink}",
|
|
@@ -9901,7 +9838,7 @@ const getResourcesInSubscriptionNextOperationSpec = {
|
|
|
9901
9838
|
nextLink
|
|
9902
9839
|
],
|
|
9903
9840
|
headerParameters: [accept],
|
|
9904
|
-
serializer
|
|
9841
|
+
serializer
|
|
9905
9842
|
};
|
|
9906
9843
|
const getResourcesInResourceGroupNextOperationSpec = {
|
|
9907
9844
|
path: "{nextLink}",
|
|
@@ -9921,7 +9858,7 @@ const getResourcesInResourceGroupNextOperationSpec = {
|
|
|
9921
9858
|
nextLink
|
|
9922
9859
|
],
|
|
9923
9860
|
headerParameters: [accept],
|
|
9924
|
-
serializer
|
|
9861
|
+
serializer
|
|
9925
9862
|
};
|
|
9926
9863
|
const getDisableSoftDeleteRequestsObjectsNextOperationSpec = {
|
|
9927
9864
|
path: "{nextLink}",
|
|
@@ -9942,7 +9879,7 @@ const getDisableSoftDeleteRequestsObjectsNextOperationSpec = {
|
|
|
9942
9879
|
resourceGuardsName
|
|
9943
9880
|
],
|
|
9944
9881
|
headerParameters: [accept],
|
|
9945
|
-
serializer
|
|
9882
|
+
serializer
|
|
9946
9883
|
};
|
|
9947
9884
|
const getDeleteResourceGuardProxyRequestsObjectsNextOperationSpec = {
|
|
9948
9885
|
path: "{nextLink}",
|
|
@@ -9963,7 +9900,7 @@ const getDeleteResourceGuardProxyRequestsObjectsNextOperationSpec = {
|
|
|
9963
9900
|
resourceGuardsName
|
|
9964
9901
|
],
|
|
9965
9902
|
headerParameters: [accept],
|
|
9966
|
-
serializer
|
|
9903
|
+
serializer
|
|
9967
9904
|
};
|
|
9968
9905
|
const getBackupSecurityPINRequestsObjectsNextOperationSpec = {
|
|
9969
9906
|
path: "{nextLink}",
|
|
@@ -9984,7 +9921,7 @@ const getBackupSecurityPINRequestsObjectsNextOperationSpec = {
|
|
|
9984
9921
|
resourceGuardsName
|
|
9985
9922
|
],
|
|
9986
9923
|
headerParameters: [accept],
|
|
9987
|
-
serializer
|
|
9924
|
+
serializer
|
|
9988
9925
|
};
|
|
9989
9926
|
const getDeleteProtectedItemRequestsObjectsNextOperationSpec = {
|
|
9990
9927
|
path: "{nextLink}",
|
|
@@ -10005,7 +9942,7 @@ const getDeleteProtectedItemRequestsObjectsNextOperationSpec = {
|
|
|
10005
9942
|
resourceGuardsName
|
|
10006
9943
|
],
|
|
10007
9944
|
headerParameters: [accept],
|
|
10008
|
-
serializer
|
|
9945
|
+
serializer
|
|
10009
9946
|
};
|
|
10010
9947
|
const getUpdateProtectionPolicyRequestsObjectsNextOperationSpec = {
|
|
10011
9948
|
path: "{nextLink}",
|
|
@@ -10026,7 +9963,7 @@ const getUpdateProtectionPolicyRequestsObjectsNextOperationSpec = {
|
|
|
10026
9963
|
resourceGuardsName
|
|
10027
9964
|
],
|
|
10028
9965
|
headerParameters: [accept],
|
|
10029
|
-
serializer
|
|
9966
|
+
serializer
|
|
10030
9967
|
};
|
|
10031
9968
|
const getUpdateProtectedItemRequestsObjectsNextOperationSpec = {
|
|
10032
9969
|
path: "{nextLink}",
|
|
@@ -10047,288 +9984,6 @@ const getUpdateProtectedItemRequestsObjectsNextOperationSpec = {
|
|
|
10047
9984
|
resourceGuardsName
|
|
10048
9985
|
],
|
|
10049
9986
|
headerParameters: [accept],
|
|
10050
|
-
serializer: serializer$1
|
|
10051
|
-
};
|
|
10052
|
-
|
|
10053
|
-
/*
|
|
10054
|
-
* Copyright (c) Microsoft Corporation.
|
|
10055
|
-
* Licensed under the MIT License.
|
|
10056
|
-
*
|
|
10057
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
10058
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10059
|
-
*/
|
|
10060
|
-
/// <reference lib="esnext.asynciterable" />
|
|
10061
|
-
/** Class containing DppResourceGuardProxy operations. */
|
|
10062
|
-
class DppResourceGuardProxyImpl {
|
|
10063
|
-
/**
|
|
10064
|
-
* Initialize a new instance of the class DppResourceGuardProxy class.
|
|
10065
|
-
* @param client Reference to the service client
|
|
10066
|
-
*/
|
|
10067
|
-
constructor(client) {
|
|
10068
|
-
this.client = client;
|
|
10069
|
-
}
|
|
10070
|
-
/**
|
|
10071
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
10072
|
-
* @param vaultName The name of the backup vault.
|
|
10073
|
-
* @param options The options parameters.
|
|
10074
|
-
*/
|
|
10075
|
-
list(resourceGroupName, vaultName, options) {
|
|
10076
|
-
const iter = this.listPagingAll(resourceGroupName, vaultName, options);
|
|
10077
|
-
return {
|
|
10078
|
-
next() {
|
|
10079
|
-
return iter.next();
|
|
10080
|
-
},
|
|
10081
|
-
[Symbol.asyncIterator]() {
|
|
10082
|
-
return this;
|
|
10083
|
-
},
|
|
10084
|
-
byPage: (settings) => {
|
|
10085
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
10086
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
10087
|
-
}
|
|
10088
|
-
return this.listPagingPage(resourceGroupName, vaultName, options, settings);
|
|
10089
|
-
}
|
|
10090
|
-
};
|
|
10091
|
-
}
|
|
10092
|
-
listPagingPage(resourceGroupName, vaultName, options, settings) {
|
|
10093
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
10094
|
-
let result;
|
|
10095
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
10096
|
-
if (!continuationToken) {
|
|
10097
|
-
result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
|
|
10098
|
-
let page = result.value || [];
|
|
10099
|
-
continuationToken = result.nextLink;
|
|
10100
|
-
setContinuationToken(page, continuationToken);
|
|
10101
|
-
yield yield tslib.__await(page);
|
|
10102
|
-
}
|
|
10103
|
-
while (continuationToken) {
|
|
10104
|
-
result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, continuationToken, options));
|
|
10105
|
-
continuationToken = result.nextLink;
|
|
10106
|
-
let page = result.value || [];
|
|
10107
|
-
setContinuationToken(page, continuationToken);
|
|
10108
|
-
yield yield tslib.__await(page);
|
|
10109
|
-
}
|
|
10110
|
-
});
|
|
10111
|
-
}
|
|
10112
|
-
listPagingAll(resourceGroupName, vaultName, options) {
|
|
10113
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
10114
|
-
var e_1, _a;
|
|
10115
|
-
try {
|
|
10116
|
-
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, vaultName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
10117
|
-
const page = _c.value;
|
|
10118
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
10119
|
-
}
|
|
10120
|
-
}
|
|
10121
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
10122
|
-
finally {
|
|
10123
|
-
try {
|
|
10124
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
10125
|
-
}
|
|
10126
|
-
finally { if (e_1) throw e_1.error; }
|
|
10127
|
-
}
|
|
10128
|
-
});
|
|
10129
|
-
}
|
|
10130
|
-
/**
|
|
10131
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
10132
|
-
* @param vaultName The name of the backup vault.
|
|
10133
|
-
* @param options The options parameters.
|
|
10134
|
-
*/
|
|
10135
|
-
_list(resourceGroupName, vaultName, options) {
|
|
10136
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec);
|
|
10137
|
-
}
|
|
10138
|
-
/**
|
|
10139
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
10140
|
-
* @param vaultName The name of the backup vault.
|
|
10141
|
-
* @param resourceGuardProxyName
|
|
10142
|
-
* @param options The options parameters.
|
|
10143
|
-
*/
|
|
10144
|
-
get(resourceGroupName, vaultName, resourceGuardProxyName, options) {
|
|
10145
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, resourceGuardProxyName, options }, getOperationSpec);
|
|
10146
|
-
}
|
|
10147
|
-
/**
|
|
10148
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
10149
|
-
* @param vaultName The name of the backup vault.
|
|
10150
|
-
* @param resourceGuardProxyName
|
|
10151
|
-
* @param parameters Request body for operation
|
|
10152
|
-
* @param options The options parameters.
|
|
10153
|
-
*/
|
|
10154
|
-
put(resourceGroupName, vaultName, resourceGuardProxyName, parameters, options) {
|
|
10155
|
-
return this.client.sendOperationRequest({
|
|
10156
|
-
resourceGroupName,
|
|
10157
|
-
vaultName,
|
|
10158
|
-
resourceGuardProxyName,
|
|
10159
|
-
parameters,
|
|
10160
|
-
options
|
|
10161
|
-
}, putOperationSpec);
|
|
10162
|
-
}
|
|
10163
|
-
/**
|
|
10164
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
10165
|
-
* @param vaultName The name of the backup vault.
|
|
10166
|
-
* @param resourceGuardProxyName
|
|
10167
|
-
* @param options The options parameters.
|
|
10168
|
-
*/
|
|
10169
|
-
delete(resourceGroupName, vaultName, resourceGuardProxyName, options) {
|
|
10170
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, resourceGuardProxyName, options }, deleteOperationSpec);
|
|
10171
|
-
}
|
|
10172
|
-
/**
|
|
10173
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
10174
|
-
* @param vaultName The name of the backup vault.
|
|
10175
|
-
* @param resourceGuardProxyName
|
|
10176
|
-
* @param parameters Request body for operation
|
|
10177
|
-
* @param options The options parameters.
|
|
10178
|
-
*/
|
|
10179
|
-
unlockDelete(resourceGroupName, vaultName, resourceGuardProxyName, parameters, options) {
|
|
10180
|
-
return this.client.sendOperationRequest({
|
|
10181
|
-
resourceGroupName,
|
|
10182
|
-
vaultName,
|
|
10183
|
-
resourceGuardProxyName,
|
|
10184
|
-
parameters,
|
|
10185
|
-
options
|
|
10186
|
-
}, unlockDeleteOperationSpec);
|
|
10187
|
-
}
|
|
10188
|
-
/**
|
|
10189
|
-
* ListNext
|
|
10190
|
-
* @param resourceGroupName The name of the resource group where the backup vault is present.
|
|
10191
|
-
* @param vaultName The name of the backup vault.
|
|
10192
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
10193
|
-
* @param options The options parameters.
|
|
10194
|
-
*/
|
|
10195
|
-
_listNext(resourceGroupName, vaultName, nextLink, options) {
|
|
10196
|
-
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec);
|
|
10197
|
-
}
|
|
10198
|
-
}
|
|
10199
|
-
// Operation Specifications
|
|
10200
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10201
|
-
const listOperationSpec = {
|
|
10202
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies",
|
|
10203
|
-
httpMethod: "GET",
|
|
10204
|
-
responses: {
|
|
10205
|
-
200: {
|
|
10206
|
-
bodyMapper: ResourceGuardProxyBaseResourceList
|
|
10207
|
-
},
|
|
10208
|
-
default: {
|
|
10209
|
-
bodyMapper: CloudError
|
|
10210
|
-
}
|
|
10211
|
-
},
|
|
10212
|
-
queryParameters: [apiVersion],
|
|
10213
|
-
urlParameters: [
|
|
10214
|
-
$host,
|
|
10215
|
-
subscriptionId,
|
|
10216
|
-
resourceGroupName,
|
|
10217
|
-
vaultName
|
|
10218
|
-
],
|
|
10219
|
-
headerParameters: [accept],
|
|
10220
|
-
serializer
|
|
10221
|
-
};
|
|
10222
|
-
const getOperationSpec = {
|
|
10223
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}",
|
|
10224
|
-
httpMethod: "GET",
|
|
10225
|
-
responses: {
|
|
10226
|
-
200: {
|
|
10227
|
-
bodyMapper: ResourceGuardProxyBaseResource
|
|
10228
|
-
},
|
|
10229
|
-
default: {
|
|
10230
|
-
bodyMapper: CloudError
|
|
10231
|
-
}
|
|
10232
|
-
},
|
|
10233
|
-
queryParameters: [apiVersion],
|
|
10234
|
-
urlParameters: [
|
|
10235
|
-
$host,
|
|
10236
|
-
subscriptionId,
|
|
10237
|
-
resourceGroupName,
|
|
10238
|
-
vaultName,
|
|
10239
|
-
resourceGuardProxyName
|
|
10240
|
-
],
|
|
10241
|
-
headerParameters: [accept],
|
|
10242
|
-
serializer
|
|
10243
|
-
};
|
|
10244
|
-
const putOperationSpec = {
|
|
10245
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}",
|
|
10246
|
-
httpMethod: "PUT",
|
|
10247
|
-
responses: {
|
|
10248
|
-
200: {
|
|
10249
|
-
bodyMapper: ResourceGuardProxyBaseResource
|
|
10250
|
-
},
|
|
10251
|
-
default: {
|
|
10252
|
-
bodyMapper: CloudError
|
|
10253
|
-
}
|
|
10254
|
-
},
|
|
10255
|
-
requestBody: parameters14,
|
|
10256
|
-
queryParameters: [apiVersion],
|
|
10257
|
-
urlParameters: [
|
|
10258
|
-
$host,
|
|
10259
|
-
subscriptionId,
|
|
10260
|
-
resourceGroupName,
|
|
10261
|
-
vaultName,
|
|
10262
|
-
resourceGuardProxyName
|
|
10263
|
-
],
|
|
10264
|
-
headerParameters: [accept, contentType],
|
|
10265
|
-
mediaType: "json",
|
|
10266
|
-
serializer
|
|
10267
|
-
};
|
|
10268
|
-
const deleteOperationSpec = {
|
|
10269
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}",
|
|
10270
|
-
httpMethod: "DELETE",
|
|
10271
|
-
responses: {
|
|
10272
|
-
200: {},
|
|
10273
|
-
204: {},
|
|
10274
|
-
default: {
|
|
10275
|
-
bodyMapper: CloudError
|
|
10276
|
-
}
|
|
10277
|
-
},
|
|
10278
|
-
queryParameters: [apiVersion],
|
|
10279
|
-
urlParameters: [
|
|
10280
|
-
$host,
|
|
10281
|
-
subscriptionId,
|
|
10282
|
-
resourceGroupName,
|
|
10283
|
-
vaultName,
|
|
10284
|
-
resourceGuardProxyName
|
|
10285
|
-
],
|
|
10286
|
-
headerParameters: [accept],
|
|
10287
|
-
serializer
|
|
10288
|
-
};
|
|
10289
|
-
const unlockDeleteOperationSpec = {
|
|
10290
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete",
|
|
10291
|
-
httpMethod: "POST",
|
|
10292
|
-
responses: {
|
|
10293
|
-
200: {
|
|
10294
|
-
bodyMapper: UnlockDeleteResponse
|
|
10295
|
-
},
|
|
10296
|
-
default: {
|
|
10297
|
-
bodyMapper: CloudError
|
|
10298
|
-
}
|
|
10299
|
-
},
|
|
10300
|
-
requestBody: parameters15,
|
|
10301
|
-
queryParameters: [apiVersion],
|
|
10302
|
-
urlParameters: [
|
|
10303
|
-
$host,
|
|
10304
|
-
subscriptionId,
|
|
10305
|
-
resourceGroupName,
|
|
10306
|
-
vaultName,
|
|
10307
|
-
resourceGuardProxyName
|
|
10308
|
-
],
|
|
10309
|
-
headerParameters: [accept, contentType],
|
|
10310
|
-
mediaType: "json",
|
|
10311
|
-
serializer
|
|
10312
|
-
};
|
|
10313
|
-
const listNextOperationSpec = {
|
|
10314
|
-
path: "{nextLink}",
|
|
10315
|
-
httpMethod: "GET",
|
|
10316
|
-
responses: {
|
|
10317
|
-
200: {
|
|
10318
|
-
bodyMapper: ResourceGuardProxyBaseResourceList
|
|
10319
|
-
},
|
|
10320
|
-
default: {
|
|
10321
|
-
bodyMapper: CloudError
|
|
10322
|
-
}
|
|
10323
|
-
},
|
|
10324
|
-
urlParameters: [
|
|
10325
|
-
$host,
|
|
10326
|
-
subscriptionId,
|
|
10327
|
-
resourceGroupName,
|
|
10328
|
-
vaultName,
|
|
10329
|
-
nextLink
|
|
10330
|
-
],
|
|
10331
|
-
headerParameters: [accept],
|
|
10332
9987
|
serializer
|
|
10333
9988
|
};
|
|
10334
9989
|
|
|
@@ -10343,7 +9998,7 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
|
|
|
10343
9998
|
/**
|
|
10344
9999
|
* Initializes a new instance of the DataProtectionClient class.
|
|
10345
10000
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
10346
|
-
* @param subscriptionId The subscription
|
|
10001
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
10347
10002
|
* @param options The parameter options
|
|
10348
10003
|
*/
|
|
10349
10004
|
constructor(credentials, subscriptionId, options) {
|
|
@@ -10362,7 +10017,7 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
|
|
|
10362
10017
|
requestContentType: "application/json; charset=utf-8",
|
|
10363
10018
|
credential: credentials
|
|
10364
10019
|
};
|
|
10365
|
-
const packageDetails = `azsdk-js-arm-dataprotection/1.0.0
|
|
10020
|
+
const packageDetails = `azsdk-js-arm-dataprotection/1.0.0`;
|
|
10366
10021
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10367
10022
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10368
10023
|
: `${packageDetails}`;
|
|
@@ -10395,7 +10050,7 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
|
|
|
10395
10050
|
this.subscriptionId = subscriptionId;
|
|
10396
10051
|
// Assigning values to Constant parameters
|
|
10397
10052
|
this.$host = options.$host || "https://management.azure.com";
|
|
10398
|
-
this.apiVersion = options.apiVersion || "
|
|
10053
|
+
this.apiVersion = options.apiVersion || "2023-01-01";
|
|
10399
10054
|
this.backupVaults = new BackupVaultsImpl(this);
|
|
10400
10055
|
this.operationResult = new OperationResultImpl(this);
|
|
10401
10056
|
this.operationStatus = new OperationStatusImpl(this);
|
|
@@ -10406,7 +10061,6 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
|
|
|
10406
10061
|
this.dataProtectionOperations = new DataProtectionOperationsImpl(this);
|
|
10407
10062
|
this.backupPolicies = new BackupPoliciesImpl(this);
|
|
10408
10063
|
this.backupInstances = new BackupInstancesImpl(this);
|
|
10409
|
-
this.backupInstancesExtensionRouting = new BackupInstancesExtensionRoutingImpl(this);
|
|
10410
10064
|
this.recoveryPoints = new RecoveryPointsImpl(this);
|
|
10411
10065
|
this.jobs = new JobsImpl(this);
|
|
10412
10066
|
this.restorableTimeRanges = new RestorableTimeRangesImpl(this);
|
|
@@ -10414,7 +10068,6 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
|
|
|
10414
10068
|
this.exportJobsOperationResult = new ExportJobsOperationResultImpl(this);
|
|
10415
10069
|
this.deletedBackupInstances = new DeletedBackupInstancesImpl(this);
|
|
10416
10070
|
this.resourceGuards = new ResourceGuardsImpl(this);
|
|
10417
|
-
this.dppResourceGuardProxy = new DppResourceGuardProxyImpl(this);
|
|
10418
10071
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
10419
10072
|
}
|
|
10420
10073
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|