@azure/arm-recoveryservices-siterecovery 5.3.0-alpha.20250619.1 → 5.3.0-alpha.20250718.2
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/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +2903 -1357
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/clusterRecoveryPointOperations.js +1 -0
- package/dist/browser/operations/clusterRecoveryPointOperations.js.map +1 -1
- package/dist/browser/operations/clusterRecoveryPoints.js +23 -40
- package/dist/browser/operations/clusterRecoveryPoints.js.map +1 -1
- package/dist/browser/operations/migrationRecoveryPoints.js +23 -40
- package/dist/browser/operations/migrationRecoveryPoints.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/recoveryPoints.js +23 -40
- package/dist/browser/operations/recoveryPoints.js.map +1 -1
- package/dist/browser/operations/replicationAlertSettings.js +23 -40
- package/dist/browser/operations/replicationAlertSettings.js.map +1 -1
- package/dist/browser/operations/replicationAppliances.js +23 -40
- package/dist/browser/operations/replicationAppliances.js.map +1 -1
- package/dist/browser/operations/replicationEligibilityResultsOperations.js +1 -0
- package/dist/browser/operations/replicationEligibilityResultsOperations.js.map +1 -1
- package/dist/browser/operations/replicationEvents.js +23 -40
- package/dist/browser/operations/replicationEvents.js.map +1 -1
- package/dist/browser/operations/replicationFabrics.js +111 -88
- package/dist/browser/operations/replicationFabrics.js.map +1 -1
- package/dist/browser/operations/replicationJobs.js +67 -64
- package/dist/browser/operations/replicationJobs.js.map +1 -1
- package/dist/browser/operations/replicationLogicalNetworks.js +23 -40
- package/dist/browser/operations/replicationLogicalNetworks.js.map +1 -1
- package/dist/browser/operations/replicationMigrationItems.js +144 -133
- package/dist/browser/operations/replicationMigrationItems.js.map +1 -1
- package/dist/browser/operations/replicationNetworkMappings.js +78 -97
- package/dist/browser/operations/replicationNetworkMappings.js.map +1 -1
- package/dist/browser/operations/replicationNetworks.js +45 -79
- package/dist/browser/operations/replicationNetworks.js.map +1 -1
- package/dist/browser/operations/replicationPolicies.js +56 -58
- package/dist/browser/operations/replicationPolicies.js.map +1 -1
- package/dist/browser/operations/replicationProtectableItems.js +23 -40
- package/dist/browser/operations/replicationProtectableItems.js.map +1 -1
- package/dist/browser/operations/replicationProtectedItems.js +254 -193
- package/dist/browser/operations/replicationProtectedItems.js.map +1 -1
- package/dist/browser/operations/replicationProtectionClusters.js +133 -127
- package/dist/browser/operations/replicationProtectionClusters.js.map +1 -1
- package/dist/browser/operations/replicationProtectionContainerMappings.js +89 -103
- package/dist/browser/operations/replicationProtectionContainerMappings.js.map +1 -1
- package/dist/browser/operations/replicationProtectionContainers.js +100 -109
- package/dist/browser/operations/replicationProtectionContainers.js.map +1 -1
- package/dist/browser/operations/replicationProtectionIntents.js +23 -40
- package/dist/browser/operations/replicationProtectionIntents.js.map +1 -1
- package/dist/browser/operations/replicationRecoveryPlans.js +133 -100
- package/dist/browser/operations/replicationRecoveryPlans.js.map +1 -1
- package/dist/browser/operations/replicationRecoveryServicesProviders.js +89 -103
- package/dist/browser/operations/replicationRecoveryServicesProviders.js.map +1 -1
- package/dist/browser/operations/replicationStorageClassificationMappings.js +67 -91
- package/dist/browser/operations/replicationStorageClassificationMappings.js.map +1 -1
- package/dist/browser/operations/replicationStorageClassifications.js +45 -79
- package/dist/browser/operations/replicationStorageClassifications.js.map +1 -1
- package/dist/browser/operations/replicationVaultHealth.js +12 -6
- package/dist/browser/operations/replicationVaultHealth.js.map +1 -1
- package/dist/browser/operations/replicationVaultSetting.js +34 -46
- package/dist/browser/operations/replicationVaultSetting.js.map +1 -1
- package/dist/browser/operations/replicationvCenters.js +78 -97
- package/dist/browser/operations/replicationvCenters.js.map +1 -1
- package/dist/browser/operations/supportedOperatingSystemsOperations.js +1 -0
- package/dist/browser/operations/supportedOperatingSystemsOperations.js.map +1 -1
- package/dist/browser/operations/targetComputeSizes.js +23 -40
- package/dist/browser/operations/targetComputeSizes.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/siteRecoveryManagementClient.js +44 -5
- package/dist/browser/siteRecoveryManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +2903 -1357
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/clusterRecoveryPointOperations.js +1 -0
- package/dist/commonjs/operations/clusterRecoveryPointOperations.js.map +1 -1
- package/dist/commonjs/operations/clusterRecoveryPoints.js +23 -39
- package/dist/commonjs/operations/clusterRecoveryPoints.js.map +1 -1
- package/dist/commonjs/operations/migrationRecoveryPoints.js +23 -39
- package/dist/commonjs/operations/migrationRecoveryPoints.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/recoveryPoints.js +23 -39
- package/dist/commonjs/operations/recoveryPoints.js.map +1 -1
- package/dist/commonjs/operations/replicationAlertSettings.js +23 -39
- package/dist/commonjs/operations/replicationAlertSettings.js.map +1 -1
- package/dist/commonjs/operations/replicationAppliances.js +23 -39
- package/dist/commonjs/operations/replicationAppliances.js.map +1 -1
- package/dist/commonjs/operations/replicationEligibilityResultsOperations.js +1 -0
- package/dist/commonjs/operations/replicationEligibilityResultsOperations.js.map +1 -1
- package/dist/commonjs/operations/replicationEvents.js +23 -39
- package/dist/commonjs/operations/replicationEvents.js.map +1 -1
- package/dist/commonjs/operations/replicationFabrics.js +111 -87
- package/dist/commonjs/operations/replicationFabrics.js.map +1 -1
- package/dist/commonjs/operations/replicationJobs.js +67 -63
- package/dist/commonjs/operations/replicationJobs.js.map +1 -1
- package/dist/commonjs/operations/replicationLogicalNetworks.js +23 -39
- package/dist/commonjs/operations/replicationLogicalNetworks.js.map +1 -1
- package/dist/commonjs/operations/replicationMigrationItems.js +144 -132
- package/dist/commonjs/operations/replicationMigrationItems.js.map +1 -1
- package/dist/commonjs/operations/replicationNetworkMappings.js +78 -96
- package/dist/commonjs/operations/replicationNetworkMappings.js.map +1 -1
- package/dist/commonjs/operations/replicationNetworks.js +45 -78
- package/dist/commonjs/operations/replicationNetworks.js.map +1 -1
- package/dist/commonjs/operations/replicationPolicies.js +56 -57
- package/dist/commonjs/operations/replicationPolicies.js.map +1 -1
- package/dist/commonjs/operations/replicationProtectableItems.js +23 -39
- package/dist/commonjs/operations/replicationProtectableItems.js.map +1 -1
- package/dist/commonjs/operations/replicationProtectedItems.js +254 -192
- package/dist/commonjs/operations/replicationProtectedItems.js.map +1 -1
- package/dist/commonjs/operations/replicationProtectionClusters.js +133 -126
- package/dist/commonjs/operations/replicationProtectionClusters.js.map +1 -1
- package/dist/commonjs/operations/replicationProtectionContainerMappings.js +89 -102
- package/dist/commonjs/operations/replicationProtectionContainerMappings.js.map +1 -1
- package/dist/commonjs/operations/replicationProtectionContainers.js +100 -108
- package/dist/commonjs/operations/replicationProtectionContainers.js.map +1 -1
- package/dist/commonjs/operations/replicationProtectionIntents.js +23 -39
- package/dist/commonjs/operations/replicationProtectionIntents.js.map +1 -1
- package/dist/commonjs/operations/replicationRecoveryPlans.js +133 -99
- package/dist/commonjs/operations/replicationRecoveryPlans.js.map +1 -1
- package/dist/commonjs/operations/replicationRecoveryServicesProviders.js +89 -102
- package/dist/commonjs/operations/replicationRecoveryServicesProviders.js.map +1 -1
- package/dist/commonjs/operations/replicationStorageClassificationMappings.js +67 -90
- package/dist/commonjs/operations/replicationStorageClassificationMappings.js.map +1 -1
- package/dist/commonjs/operations/replicationStorageClassifications.js +45 -78
- package/dist/commonjs/operations/replicationStorageClassifications.js.map +1 -1
- package/dist/commonjs/operations/replicationVaultHealth.js +12 -6
- package/dist/commonjs/operations/replicationVaultHealth.js.map +1 -1
- package/dist/commonjs/operations/replicationVaultSetting.js +34 -45
- package/dist/commonjs/operations/replicationVaultSetting.js.map +1 -1
- package/dist/commonjs/operations/replicationvCenters.js +78 -96
- package/dist/commonjs/operations/replicationvCenters.js.map +1 -1
- package/dist/commonjs/operations/supportedOperatingSystemsOperations.js +1 -0
- package/dist/commonjs/operations/supportedOperatingSystemsOperations.js.map +1 -1
- package/dist/commonjs/operations/targetComputeSizes.js +23 -39
- package/dist/commonjs/operations/targetComputeSizes.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/siteRecoveryManagementClient.js +44 -5
- package/dist/commonjs/siteRecoveryManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +2903 -1357
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/clusterRecoveryPointOperations.js +1 -0
- package/dist/esm/operations/clusterRecoveryPointOperations.js.map +1 -1
- package/dist/esm/operations/clusterRecoveryPoints.js +23 -40
- package/dist/esm/operations/clusterRecoveryPoints.js.map +1 -1
- package/dist/esm/operations/migrationRecoveryPoints.js +23 -40
- package/dist/esm/operations/migrationRecoveryPoints.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/recoveryPoints.js +23 -40
- package/dist/esm/operations/recoveryPoints.js.map +1 -1
- package/dist/esm/operations/replicationAlertSettings.js +23 -40
- package/dist/esm/operations/replicationAlertSettings.js.map +1 -1
- package/dist/esm/operations/replicationAppliances.js +23 -40
- package/dist/esm/operations/replicationAppliances.js.map +1 -1
- package/dist/esm/operations/replicationEligibilityResultsOperations.js +1 -0
- package/dist/esm/operations/replicationEligibilityResultsOperations.js.map +1 -1
- package/dist/esm/operations/replicationEvents.js +23 -40
- package/dist/esm/operations/replicationEvents.js.map +1 -1
- package/dist/esm/operations/replicationFabrics.js +111 -88
- package/dist/esm/operations/replicationFabrics.js.map +1 -1
- package/dist/esm/operations/replicationJobs.js +67 -64
- package/dist/esm/operations/replicationJobs.js.map +1 -1
- package/dist/esm/operations/replicationLogicalNetworks.js +23 -40
- package/dist/esm/operations/replicationLogicalNetworks.js.map +1 -1
- package/dist/esm/operations/replicationMigrationItems.js +144 -133
- package/dist/esm/operations/replicationMigrationItems.js.map +1 -1
- package/dist/esm/operations/replicationNetworkMappings.js +78 -97
- package/dist/esm/operations/replicationNetworkMappings.js.map +1 -1
- package/dist/esm/operations/replicationNetworks.js +45 -79
- package/dist/esm/operations/replicationNetworks.js.map +1 -1
- package/dist/esm/operations/replicationPolicies.js +56 -58
- package/dist/esm/operations/replicationPolicies.js.map +1 -1
- package/dist/esm/operations/replicationProtectableItems.js +23 -40
- package/dist/esm/operations/replicationProtectableItems.js.map +1 -1
- package/dist/esm/operations/replicationProtectedItems.js +254 -193
- package/dist/esm/operations/replicationProtectedItems.js.map +1 -1
- package/dist/esm/operations/replicationProtectionClusters.js +133 -127
- package/dist/esm/operations/replicationProtectionClusters.js.map +1 -1
- package/dist/esm/operations/replicationProtectionContainerMappings.js +89 -103
- package/dist/esm/operations/replicationProtectionContainerMappings.js.map +1 -1
- package/dist/esm/operations/replicationProtectionContainers.js +100 -109
- package/dist/esm/operations/replicationProtectionContainers.js.map +1 -1
- package/dist/esm/operations/replicationProtectionIntents.js +23 -40
- package/dist/esm/operations/replicationProtectionIntents.js.map +1 -1
- package/dist/esm/operations/replicationRecoveryPlans.js +133 -100
- package/dist/esm/operations/replicationRecoveryPlans.js.map +1 -1
- package/dist/esm/operations/replicationRecoveryServicesProviders.js +89 -103
- package/dist/esm/operations/replicationRecoveryServicesProviders.js.map +1 -1
- package/dist/esm/operations/replicationStorageClassificationMappings.js +67 -91
- package/dist/esm/operations/replicationStorageClassificationMappings.js.map +1 -1
- package/dist/esm/operations/replicationStorageClassifications.js +45 -79
- package/dist/esm/operations/replicationStorageClassifications.js.map +1 -1
- package/dist/esm/operations/replicationVaultHealth.js +12 -6
- package/dist/esm/operations/replicationVaultHealth.js.map +1 -1
- package/dist/esm/operations/replicationVaultSetting.js +34 -46
- package/dist/esm/operations/replicationVaultSetting.js.map +1 -1
- package/dist/esm/operations/replicationvCenters.js +78 -97
- package/dist/esm/operations/replicationvCenters.js.map +1 -1
- package/dist/esm/operations/supportedOperatingSystemsOperations.js +1 -0
- package/dist/esm/operations/supportedOperatingSystemsOperations.js.map +1 -1
- package/dist/esm/operations/targetComputeSizes.js +23 -40
- package/dist/esm/operations/targetComputeSizes.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/siteRecoveryManagementClient.js +44 -5
- package/dist/esm/siteRecoveryManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +2903 -1357
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/clusterRecoveryPointOperations.js +1 -0
- package/dist/react-native/operations/clusterRecoveryPointOperations.js.map +1 -1
- package/dist/react-native/operations/clusterRecoveryPoints.js +23 -40
- package/dist/react-native/operations/clusterRecoveryPoints.js.map +1 -1
- package/dist/react-native/operations/migrationRecoveryPoints.js +23 -40
- package/dist/react-native/operations/migrationRecoveryPoints.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/recoveryPoints.js +23 -40
- package/dist/react-native/operations/recoveryPoints.js.map +1 -1
- package/dist/react-native/operations/replicationAlertSettings.js +23 -40
- package/dist/react-native/operations/replicationAlertSettings.js.map +1 -1
- package/dist/react-native/operations/replicationAppliances.js +23 -40
- package/dist/react-native/operations/replicationAppliances.js.map +1 -1
- package/dist/react-native/operations/replicationEligibilityResultsOperations.js +1 -0
- package/dist/react-native/operations/replicationEligibilityResultsOperations.js.map +1 -1
- package/dist/react-native/operations/replicationEvents.js +23 -40
- package/dist/react-native/operations/replicationEvents.js.map +1 -1
- package/dist/react-native/operations/replicationFabrics.js +111 -88
- package/dist/react-native/operations/replicationFabrics.js.map +1 -1
- package/dist/react-native/operations/replicationJobs.js +67 -64
- package/dist/react-native/operations/replicationJobs.js.map +1 -1
- package/dist/react-native/operations/replicationLogicalNetworks.js +23 -40
- package/dist/react-native/operations/replicationLogicalNetworks.js.map +1 -1
- package/dist/react-native/operations/replicationMigrationItems.js +144 -133
- package/dist/react-native/operations/replicationMigrationItems.js.map +1 -1
- package/dist/react-native/operations/replicationNetworkMappings.js +78 -97
- package/dist/react-native/operations/replicationNetworkMappings.js.map +1 -1
- package/dist/react-native/operations/replicationNetworks.js +45 -79
- package/dist/react-native/operations/replicationNetworks.js.map +1 -1
- package/dist/react-native/operations/replicationPolicies.js +56 -58
- package/dist/react-native/operations/replicationPolicies.js.map +1 -1
- package/dist/react-native/operations/replicationProtectableItems.js +23 -40
- package/dist/react-native/operations/replicationProtectableItems.js.map +1 -1
- package/dist/react-native/operations/replicationProtectedItems.js +254 -193
- package/dist/react-native/operations/replicationProtectedItems.js.map +1 -1
- package/dist/react-native/operations/replicationProtectionClusters.js +133 -127
- package/dist/react-native/operations/replicationProtectionClusters.js.map +1 -1
- package/dist/react-native/operations/replicationProtectionContainerMappings.js +89 -103
- package/dist/react-native/operations/replicationProtectionContainerMappings.js.map +1 -1
- package/dist/react-native/operations/replicationProtectionContainers.js +100 -109
- package/dist/react-native/operations/replicationProtectionContainers.js.map +1 -1
- package/dist/react-native/operations/replicationProtectionIntents.js +23 -40
- package/dist/react-native/operations/replicationProtectionIntents.js.map +1 -1
- package/dist/react-native/operations/replicationRecoveryPlans.js +133 -100
- package/dist/react-native/operations/replicationRecoveryPlans.js.map +1 -1
- package/dist/react-native/operations/replicationRecoveryServicesProviders.js +89 -103
- package/dist/react-native/operations/replicationRecoveryServicesProviders.js.map +1 -1
- package/dist/react-native/operations/replicationStorageClassificationMappings.js +67 -91
- package/dist/react-native/operations/replicationStorageClassificationMappings.js.map +1 -1
- package/dist/react-native/operations/replicationStorageClassifications.js +45 -79
- package/dist/react-native/operations/replicationStorageClassifications.js.map +1 -1
- package/dist/react-native/operations/replicationVaultHealth.js +12 -6
- package/dist/react-native/operations/replicationVaultHealth.js.map +1 -1
- package/dist/react-native/operations/replicationVaultSetting.js +34 -46
- package/dist/react-native/operations/replicationVaultSetting.js.map +1 -1
- package/dist/react-native/operations/replicationvCenters.js +78 -97
- package/dist/react-native/operations/replicationvCenters.js.map +1 -1
- package/dist/react-native/operations/supportedOperatingSystemsOperations.js +1 -0
- package/dist/react-native/operations/supportedOperatingSystemsOperations.js.map +1 -1
- package/dist/react-native/operations/targetComputeSizes.js +23 -40
- package/dist/react-native/operations/targetComputeSizes.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/siteRecoveryManagementClient.js +44 -5
- package/dist/react-native/siteRecoveryManagementClient.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-recoveryservices-siterecovery.api.md → arm-recoveryservices-siterecovery-node.api.md} +0 -0
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing ReplicationProtectedItems operations. */
|
|
17
16
|
export class ReplicationProtectedItemsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class ReplicationProtectedItems class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -41,52 +41,35 @@ export class ReplicationProtectedItemsImpl {
|
|
|
41
41
|
return this;
|
|
42
42
|
},
|
|
43
43
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
45
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
46
|
}
|
|
47
47
|
return this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings);
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
51
|
+
async *listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listByReplicationProtectionContainersNext(resourceGroupName, resourceName, fabricName, protectionContainerName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
setContinuationToken(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
70
68
|
}
|
|
71
|
-
listByReplicationProtectionContainersPagingAll(resourceGroupName, resourceName, fabricName, protectionContainerName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = __asyncValues(this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
69
|
+
async *listByReplicationProtectionContainersPagingAll(resourceGroupName, resourceName, fabricName, protectionContainerName, options) {
|
|
70
|
+
for await (const page of this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
90
73
|
}
|
|
91
74
|
/**
|
|
92
75
|
* Gets the list of ASR replication protected items in the vault.
|
|
@@ -105,52 +88,35 @@ export class ReplicationProtectedItemsImpl {
|
|
|
105
88
|
return this;
|
|
106
89
|
},
|
|
107
90
|
byPage: (settings) => {
|
|
108
|
-
if (settings
|
|
91
|
+
if (settings?.maxPageSize) {
|
|
109
92
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
110
93
|
}
|
|
111
94
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
112
95
|
},
|
|
113
96
|
};
|
|
114
97
|
}
|
|
115
|
-
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
});
|
|
98
|
+
async *listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
99
|
+
let result;
|
|
100
|
+
let continuationToken = settings?.continuationToken;
|
|
101
|
+
if (!continuationToken) {
|
|
102
|
+
result = await this._list(resourceGroupName, resourceName, options);
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
108
|
+
while (continuationToken) {
|
|
109
|
+
result = await this._listNext(resourceGroupName, resourceName, continuationToken, options);
|
|
110
|
+
continuationToken = result.nextLink;
|
|
111
|
+
let page = result.value || [];
|
|
112
|
+
setContinuationToken(page, continuationToken);
|
|
113
|
+
yield page;
|
|
114
|
+
}
|
|
134
115
|
}
|
|
135
|
-
listPagingAll(resourceGroupName, resourceName, options) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
140
|
-
_c = _f.value;
|
|
141
|
-
_d = false;
|
|
142
|
-
const page = _c;
|
|
143
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
147
|
-
finally {
|
|
148
|
-
try {
|
|
149
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
150
|
-
}
|
|
151
|
-
finally { if (e_2) throw e_2.error; }
|
|
152
|
-
}
|
|
153
|
-
});
|
|
116
|
+
async *listPagingAll(resourceGroupName, resourceName, options) {
|
|
117
|
+
for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
|
|
118
|
+
yield* page;
|
|
119
|
+
}
|
|
154
120
|
}
|
|
155
121
|
/**
|
|
156
122
|
* Gets the list of ASR replication protected items in the protection container.
|
|
@@ -206,14 +172,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
206
172
|
return this.client.sendOperationRequest(args, spec);
|
|
207
173
|
};
|
|
208
174
|
const sendOperationFn = async (args, spec) => {
|
|
209
|
-
var _a;
|
|
210
175
|
let currentRawResponse = undefined;
|
|
211
|
-
const providedCallback =
|
|
176
|
+
const providedCallback = args.options?.onResponse;
|
|
212
177
|
const callback = (rawResponse, flatResponse) => {
|
|
213
178
|
currentRawResponse = rawResponse;
|
|
214
|
-
providedCallback
|
|
179
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
180
|
+
};
|
|
181
|
+
const updatedArgs = {
|
|
182
|
+
...args,
|
|
183
|
+
options: {
|
|
184
|
+
...args.options,
|
|
185
|
+
onResponse: callback,
|
|
186
|
+
},
|
|
215
187
|
};
|
|
216
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
217
188
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
218
189
|
return {
|
|
219
190
|
flatResponse,
|
|
@@ -238,8 +209,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
238
209
|
spec: createOperationSpec,
|
|
239
210
|
});
|
|
240
211
|
const poller = await createHttpPoller(lro, {
|
|
241
|
-
restoreFrom: options
|
|
242
|
-
intervalInMs: options
|
|
212
|
+
restoreFrom: options?.resumeFrom,
|
|
213
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
243
214
|
});
|
|
244
215
|
await poller.poll();
|
|
245
216
|
return poller;
|
|
@@ -276,14 +247,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
276
247
|
return this.client.sendOperationRequest(args, spec);
|
|
277
248
|
};
|
|
278
249
|
const sendOperationFn = async (args, spec) => {
|
|
279
|
-
var _a;
|
|
280
250
|
let currentRawResponse = undefined;
|
|
281
|
-
const providedCallback =
|
|
251
|
+
const providedCallback = args.options?.onResponse;
|
|
282
252
|
const callback = (rawResponse, flatResponse) => {
|
|
283
253
|
currentRawResponse = rawResponse;
|
|
284
|
-
providedCallback
|
|
254
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
255
|
+
};
|
|
256
|
+
const updatedArgs = {
|
|
257
|
+
...args,
|
|
258
|
+
options: {
|
|
259
|
+
...args.options,
|
|
260
|
+
onResponse: callback,
|
|
261
|
+
},
|
|
285
262
|
};
|
|
286
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
287
263
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
288
264
|
return {
|
|
289
265
|
flatResponse,
|
|
@@ -307,8 +283,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
307
283
|
spec: purgeOperationSpec,
|
|
308
284
|
});
|
|
309
285
|
const poller = await createHttpPoller(lro, {
|
|
310
|
-
restoreFrom: options
|
|
311
|
-
intervalInMs: options
|
|
286
|
+
restoreFrom: options?.resumeFrom,
|
|
287
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
312
288
|
});
|
|
313
289
|
await poller.poll();
|
|
314
290
|
return poller;
|
|
@@ -345,14 +321,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
345
321
|
return this.client.sendOperationRequest(args, spec);
|
|
346
322
|
};
|
|
347
323
|
const sendOperationFn = async (args, spec) => {
|
|
348
|
-
var _a;
|
|
349
324
|
let currentRawResponse = undefined;
|
|
350
|
-
const providedCallback =
|
|
325
|
+
const providedCallback = args.options?.onResponse;
|
|
351
326
|
const callback = (rawResponse, flatResponse) => {
|
|
352
327
|
currentRawResponse = rawResponse;
|
|
353
|
-
providedCallback
|
|
328
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
329
|
+
};
|
|
330
|
+
const updatedArgs = {
|
|
331
|
+
...args,
|
|
332
|
+
options: {
|
|
333
|
+
...args.options,
|
|
334
|
+
onResponse: callback,
|
|
335
|
+
},
|
|
354
336
|
};
|
|
355
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
356
337
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
357
338
|
return {
|
|
358
339
|
flatResponse,
|
|
@@ -377,8 +358,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
377
358
|
spec: updateOperationSpec,
|
|
378
359
|
});
|
|
379
360
|
const poller = await createHttpPoller(lro, {
|
|
380
|
-
restoreFrom: options
|
|
381
|
-
intervalInMs: options
|
|
361
|
+
restoreFrom: options?.resumeFrom,
|
|
362
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
382
363
|
});
|
|
383
364
|
await poller.poll();
|
|
384
365
|
return poller;
|
|
@@ -414,14 +395,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
414
395
|
return this.client.sendOperationRequest(args, spec);
|
|
415
396
|
};
|
|
416
397
|
const sendOperationFn = async (args, spec) => {
|
|
417
|
-
var _a;
|
|
418
398
|
let currentRawResponse = undefined;
|
|
419
|
-
const providedCallback =
|
|
399
|
+
const providedCallback = args.options?.onResponse;
|
|
420
400
|
const callback = (rawResponse, flatResponse) => {
|
|
421
401
|
currentRawResponse = rawResponse;
|
|
422
|
-
providedCallback
|
|
402
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
403
|
+
};
|
|
404
|
+
const updatedArgs = {
|
|
405
|
+
...args,
|
|
406
|
+
options: {
|
|
407
|
+
...args.options,
|
|
408
|
+
onResponse: callback,
|
|
409
|
+
},
|
|
423
410
|
};
|
|
424
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
425
411
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
426
412
|
return {
|
|
427
413
|
flatResponse,
|
|
@@ -446,8 +432,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
446
432
|
spec: addDisksOperationSpec,
|
|
447
433
|
});
|
|
448
434
|
const poller = await createHttpPoller(lro, {
|
|
449
|
-
restoreFrom: options
|
|
450
|
-
intervalInMs: options
|
|
435
|
+
restoreFrom: options?.resumeFrom,
|
|
436
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
451
437
|
});
|
|
452
438
|
await poller.poll();
|
|
453
439
|
return poller;
|
|
@@ -483,14 +469,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
483
469
|
return this.client.sendOperationRequest(args, spec);
|
|
484
470
|
};
|
|
485
471
|
const sendOperationFn = async (args, spec) => {
|
|
486
|
-
var _a;
|
|
487
472
|
let currentRawResponse = undefined;
|
|
488
|
-
const providedCallback =
|
|
473
|
+
const providedCallback = args.options?.onResponse;
|
|
489
474
|
const callback = (rawResponse, flatResponse) => {
|
|
490
475
|
currentRawResponse = rawResponse;
|
|
491
|
-
providedCallback
|
|
476
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
477
|
+
};
|
|
478
|
+
const updatedArgs = {
|
|
479
|
+
...args,
|
|
480
|
+
options: {
|
|
481
|
+
...args.options,
|
|
482
|
+
onResponse: callback,
|
|
483
|
+
},
|
|
492
484
|
};
|
|
493
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
494
485
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
495
486
|
return {
|
|
496
487
|
flatResponse,
|
|
@@ -515,8 +506,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
515
506
|
spec: applyRecoveryPointOperationSpec,
|
|
516
507
|
});
|
|
517
508
|
const poller = await createHttpPoller(lro, {
|
|
518
|
-
restoreFrom: options
|
|
519
|
-
intervalInMs: options
|
|
509
|
+
restoreFrom: options?.resumeFrom,
|
|
510
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
520
511
|
});
|
|
521
512
|
await poller.poll();
|
|
522
513
|
return poller;
|
|
@@ -551,14 +542,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
551
542
|
return this.client.sendOperationRequest(args, spec);
|
|
552
543
|
};
|
|
553
544
|
const sendOperationFn = async (args, spec) => {
|
|
554
|
-
var _a;
|
|
555
545
|
let currentRawResponse = undefined;
|
|
556
|
-
const providedCallback =
|
|
546
|
+
const providedCallback = args.options?.onResponse;
|
|
557
547
|
const callback = (rawResponse, flatResponse) => {
|
|
558
548
|
currentRawResponse = rawResponse;
|
|
559
|
-
providedCallback
|
|
549
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
550
|
+
};
|
|
551
|
+
const updatedArgs = {
|
|
552
|
+
...args,
|
|
553
|
+
options: {
|
|
554
|
+
...args.options,
|
|
555
|
+
onResponse: callback,
|
|
556
|
+
},
|
|
560
557
|
};
|
|
561
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
562
558
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
563
559
|
return {
|
|
564
560
|
flatResponse,
|
|
@@ -582,8 +578,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
582
578
|
spec: failoverCancelOperationSpec,
|
|
583
579
|
});
|
|
584
580
|
const poller = await createHttpPoller(lro, {
|
|
585
|
-
restoreFrom: options
|
|
586
|
-
intervalInMs: options
|
|
581
|
+
restoreFrom: options?.resumeFrom,
|
|
582
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
587
583
|
});
|
|
588
584
|
await poller.poll();
|
|
589
585
|
return poller;
|
|
@@ -617,14 +613,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
617
613
|
return this.client.sendOperationRequest(args, spec);
|
|
618
614
|
};
|
|
619
615
|
const sendOperationFn = async (args, spec) => {
|
|
620
|
-
var _a;
|
|
621
616
|
let currentRawResponse = undefined;
|
|
622
|
-
const providedCallback =
|
|
617
|
+
const providedCallback = args.options?.onResponse;
|
|
623
618
|
const callback = (rawResponse, flatResponse) => {
|
|
624
619
|
currentRawResponse = rawResponse;
|
|
625
|
-
providedCallback
|
|
620
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
621
|
+
};
|
|
622
|
+
const updatedArgs = {
|
|
623
|
+
...args,
|
|
624
|
+
options: {
|
|
625
|
+
...args.options,
|
|
626
|
+
onResponse: callback,
|
|
627
|
+
},
|
|
626
628
|
};
|
|
627
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
628
629
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
629
630
|
return {
|
|
630
631
|
flatResponse,
|
|
@@ -648,8 +649,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
648
649
|
spec: failoverCommitOperationSpec,
|
|
649
650
|
});
|
|
650
651
|
const poller = await createHttpPoller(lro, {
|
|
651
|
-
restoreFrom: options
|
|
652
|
-
intervalInMs: options
|
|
652
|
+
restoreFrom: options?.resumeFrom,
|
|
653
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
653
654
|
});
|
|
654
655
|
await poller.poll();
|
|
655
656
|
return poller;
|
|
@@ -684,14 +685,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
684
685
|
return this.client.sendOperationRequest(args, spec);
|
|
685
686
|
};
|
|
686
687
|
const sendOperationFn = async (args, spec) => {
|
|
687
|
-
var _a;
|
|
688
688
|
let currentRawResponse = undefined;
|
|
689
|
-
const providedCallback =
|
|
689
|
+
const providedCallback = args.options?.onResponse;
|
|
690
690
|
const callback = (rawResponse, flatResponse) => {
|
|
691
691
|
currentRawResponse = rawResponse;
|
|
692
|
-
providedCallback
|
|
692
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
693
|
+
};
|
|
694
|
+
const updatedArgs = {
|
|
695
|
+
...args,
|
|
696
|
+
options: {
|
|
697
|
+
...args.options,
|
|
698
|
+
onResponse: callback,
|
|
699
|
+
},
|
|
693
700
|
};
|
|
694
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
695
701
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
696
702
|
return {
|
|
697
703
|
flatResponse,
|
|
@@ -716,8 +722,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
716
722
|
spec: plannedFailoverOperationSpec,
|
|
717
723
|
});
|
|
718
724
|
const poller = await createHttpPoller(lro, {
|
|
719
|
-
restoreFrom: options
|
|
720
|
-
intervalInMs: options
|
|
725
|
+
restoreFrom: options?.resumeFrom,
|
|
726
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
721
727
|
});
|
|
722
728
|
await poller.poll();
|
|
723
729
|
return poller;
|
|
@@ -754,14 +760,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
754
760
|
return this.client.sendOperationRequest(args, spec);
|
|
755
761
|
};
|
|
756
762
|
const sendOperationFn = async (args, spec) => {
|
|
757
|
-
var _a;
|
|
758
763
|
let currentRawResponse = undefined;
|
|
759
|
-
const providedCallback =
|
|
764
|
+
const providedCallback = args.options?.onResponse;
|
|
760
765
|
const callback = (rawResponse, flatResponse) => {
|
|
761
766
|
currentRawResponse = rawResponse;
|
|
762
|
-
providedCallback
|
|
767
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
768
|
+
};
|
|
769
|
+
const updatedArgs = {
|
|
770
|
+
...args,
|
|
771
|
+
options: {
|
|
772
|
+
...args.options,
|
|
773
|
+
onResponse: callback,
|
|
774
|
+
},
|
|
763
775
|
};
|
|
764
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
765
776
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
766
777
|
return {
|
|
767
778
|
flatResponse,
|
|
@@ -786,8 +797,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
786
797
|
spec: deleteOperationSpec,
|
|
787
798
|
});
|
|
788
799
|
const poller = await createHttpPoller(lro, {
|
|
789
|
-
restoreFrom: options
|
|
790
|
-
intervalInMs: options
|
|
800
|
+
restoreFrom: options?.resumeFrom,
|
|
801
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
791
802
|
});
|
|
792
803
|
await poller.poll();
|
|
793
804
|
return poller;
|
|
@@ -824,14 +835,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
824
835
|
return this.client.sendOperationRequest(args, spec);
|
|
825
836
|
};
|
|
826
837
|
const sendOperationFn = async (args, spec) => {
|
|
827
|
-
var _a;
|
|
828
838
|
let currentRawResponse = undefined;
|
|
829
|
-
const providedCallback =
|
|
839
|
+
const providedCallback = args.options?.onResponse;
|
|
830
840
|
const callback = (rawResponse, flatResponse) => {
|
|
831
841
|
currentRawResponse = rawResponse;
|
|
832
|
-
providedCallback
|
|
842
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
843
|
+
};
|
|
844
|
+
const updatedArgs = {
|
|
845
|
+
...args,
|
|
846
|
+
options: {
|
|
847
|
+
...args.options,
|
|
848
|
+
onResponse: callback,
|
|
849
|
+
},
|
|
833
850
|
};
|
|
834
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
835
851
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
836
852
|
return {
|
|
837
853
|
flatResponse,
|
|
@@ -856,8 +872,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
856
872
|
spec: removeDisksOperationSpec,
|
|
857
873
|
});
|
|
858
874
|
const poller = await createHttpPoller(lro, {
|
|
859
|
-
restoreFrom: options
|
|
860
|
-
intervalInMs: options
|
|
875
|
+
restoreFrom: options?.resumeFrom,
|
|
876
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
861
877
|
});
|
|
862
878
|
await poller.poll();
|
|
863
879
|
return poller;
|
|
@@ -893,14 +909,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
893
909
|
return this.client.sendOperationRequest(args, spec);
|
|
894
910
|
};
|
|
895
911
|
const sendOperationFn = async (args, spec) => {
|
|
896
|
-
var _a;
|
|
897
912
|
let currentRawResponse = undefined;
|
|
898
|
-
const providedCallback =
|
|
913
|
+
const providedCallback = args.options?.onResponse;
|
|
899
914
|
const callback = (rawResponse, flatResponse) => {
|
|
900
915
|
currentRawResponse = rawResponse;
|
|
901
|
-
providedCallback
|
|
916
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
917
|
+
};
|
|
918
|
+
const updatedArgs = {
|
|
919
|
+
...args,
|
|
920
|
+
options: {
|
|
921
|
+
...args.options,
|
|
922
|
+
onResponse: callback,
|
|
923
|
+
},
|
|
902
924
|
};
|
|
903
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
904
925
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
905
926
|
return {
|
|
906
927
|
flatResponse,
|
|
@@ -924,8 +945,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
924
945
|
spec: repairReplicationOperationSpec,
|
|
925
946
|
});
|
|
926
947
|
const poller = await createHttpPoller(lro, {
|
|
927
|
-
restoreFrom: options
|
|
928
|
-
intervalInMs: options
|
|
948
|
+
restoreFrom: options?.resumeFrom,
|
|
949
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
929
950
|
});
|
|
930
951
|
await poller.poll();
|
|
931
952
|
return poller;
|
|
@@ -961,14 +982,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
961
982
|
return this.client.sendOperationRequest(args, spec);
|
|
962
983
|
};
|
|
963
984
|
const sendOperationFn = async (args, spec) => {
|
|
964
|
-
var _a;
|
|
965
985
|
let currentRawResponse = undefined;
|
|
966
|
-
const providedCallback =
|
|
986
|
+
const providedCallback = args.options?.onResponse;
|
|
967
987
|
const callback = (rawResponse, flatResponse) => {
|
|
968
988
|
currentRawResponse = rawResponse;
|
|
969
|
-
providedCallback
|
|
989
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
990
|
+
};
|
|
991
|
+
const updatedArgs = {
|
|
992
|
+
...args,
|
|
993
|
+
options: {
|
|
994
|
+
...args.options,
|
|
995
|
+
onResponse: callback,
|
|
996
|
+
},
|
|
970
997
|
};
|
|
971
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
972
998
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
973
999
|
return {
|
|
974
1000
|
flatResponse,
|
|
@@ -993,8 +1019,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
993
1019
|
spec: reprotectOperationSpec,
|
|
994
1020
|
});
|
|
995
1021
|
const poller = await createHttpPoller(lro, {
|
|
996
|
-
restoreFrom: options
|
|
997
|
-
intervalInMs: options
|
|
1022
|
+
restoreFrom: options?.resumeFrom,
|
|
1023
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
998
1024
|
});
|
|
999
1025
|
await poller.poll();
|
|
1000
1026
|
return poller;
|
|
@@ -1030,14 +1056,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1030
1056
|
return this.client.sendOperationRequest(args, spec);
|
|
1031
1057
|
};
|
|
1032
1058
|
const sendOperationFn = async (args, spec) => {
|
|
1033
|
-
var _a;
|
|
1034
1059
|
let currentRawResponse = undefined;
|
|
1035
|
-
const providedCallback =
|
|
1060
|
+
const providedCallback = args.options?.onResponse;
|
|
1036
1061
|
const callback = (rawResponse, flatResponse) => {
|
|
1037
1062
|
currentRawResponse = rawResponse;
|
|
1038
|
-
providedCallback
|
|
1063
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1064
|
+
};
|
|
1065
|
+
const updatedArgs = {
|
|
1066
|
+
...args,
|
|
1067
|
+
options: {
|
|
1068
|
+
...args.options,
|
|
1069
|
+
onResponse: callback,
|
|
1070
|
+
},
|
|
1039
1071
|
};
|
|
1040
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1041
1072
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1042
1073
|
return {
|
|
1043
1074
|
flatResponse,
|
|
@@ -1062,8 +1093,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1062
1093
|
spec: resolveHealthErrorsOperationSpec,
|
|
1063
1094
|
});
|
|
1064
1095
|
const poller = await createHttpPoller(lro, {
|
|
1065
|
-
restoreFrom: options
|
|
1066
|
-
intervalInMs: options
|
|
1096
|
+
restoreFrom: options?.resumeFrom,
|
|
1097
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1067
1098
|
});
|
|
1068
1099
|
await poller.poll();
|
|
1069
1100
|
return poller;
|
|
@@ -1099,14 +1130,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1099
1130
|
return this.client.sendOperationRequest(args, spec);
|
|
1100
1131
|
};
|
|
1101
1132
|
const sendOperationFn = async (args, spec) => {
|
|
1102
|
-
var _a;
|
|
1103
1133
|
let currentRawResponse = undefined;
|
|
1104
|
-
const providedCallback =
|
|
1134
|
+
const providedCallback = args.options?.onResponse;
|
|
1105
1135
|
const callback = (rawResponse, flatResponse) => {
|
|
1106
1136
|
currentRawResponse = rawResponse;
|
|
1107
|
-
providedCallback
|
|
1137
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1138
|
+
};
|
|
1139
|
+
const updatedArgs = {
|
|
1140
|
+
...args,
|
|
1141
|
+
options: {
|
|
1142
|
+
...args.options,
|
|
1143
|
+
onResponse: callback,
|
|
1144
|
+
},
|
|
1108
1145
|
};
|
|
1109
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1110
1146
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1111
1147
|
return {
|
|
1112
1148
|
flatResponse,
|
|
@@ -1131,8 +1167,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1131
1167
|
spec: switchProviderOperationSpec,
|
|
1132
1168
|
});
|
|
1133
1169
|
const poller = await createHttpPoller(lro, {
|
|
1134
|
-
restoreFrom: options
|
|
1135
|
-
intervalInMs: options
|
|
1170
|
+
restoreFrom: options?.resumeFrom,
|
|
1171
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1136
1172
|
resourceLocationConfig: "azure-async-operation",
|
|
1137
1173
|
});
|
|
1138
1174
|
await poller.poll();
|
|
@@ -1169,14 +1205,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1169
1205
|
return this.client.sendOperationRequest(args, spec);
|
|
1170
1206
|
};
|
|
1171
1207
|
const sendOperationFn = async (args, spec) => {
|
|
1172
|
-
var _a;
|
|
1173
1208
|
let currentRawResponse = undefined;
|
|
1174
|
-
const providedCallback =
|
|
1209
|
+
const providedCallback = args.options?.onResponse;
|
|
1175
1210
|
const callback = (rawResponse, flatResponse) => {
|
|
1176
1211
|
currentRawResponse = rawResponse;
|
|
1177
|
-
providedCallback
|
|
1212
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1213
|
+
};
|
|
1214
|
+
const updatedArgs = {
|
|
1215
|
+
...args,
|
|
1216
|
+
options: {
|
|
1217
|
+
...args.options,
|
|
1218
|
+
onResponse: callback,
|
|
1219
|
+
},
|
|
1178
1220
|
};
|
|
1179
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1180
1221
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1181
1222
|
return {
|
|
1182
1223
|
flatResponse,
|
|
@@ -1201,8 +1242,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1201
1242
|
spec: testFailoverOperationSpec,
|
|
1202
1243
|
});
|
|
1203
1244
|
const poller = await createHttpPoller(lro, {
|
|
1204
|
-
restoreFrom: options
|
|
1205
|
-
intervalInMs: options
|
|
1245
|
+
restoreFrom: options?.resumeFrom,
|
|
1246
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1206
1247
|
});
|
|
1207
1248
|
await poller.poll();
|
|
1208
1249
|
return poller;
|
|
@@ -1238,14 +1279,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1238
1279
|
return this.client.sendOperationRequest(args, spec);
|
|
1239
1280
|
};
|
|
1240
1281
|
const sendOperationFn = async (args, spec) => {
|
|
1241
|
-
var _a;
|
|
1242
1282
|
let currentRawResponse = undefined;
|
|
1243
|
-
const providedCallback =
|
|
1283
|
+
const providedCallback = args.options?.onResponse;
|
|
1244
1284
|
const callback = (rawResponse, flatResponse) => {
|
|
1245
1285
|
currentRawResponse = rawResponse;
|
|
1246
|
-
providedCallback
|
|
1286
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1287
|
+
};
|
|
1288
|
+
const updatedArgs = {
|
|
1289
|
+
...args,
|
|
1290
|
+
options: {
|
|
1291
|
+
...args.options,
|
|
1292
|
+
onResponse: callback,
|
|
1293
|
+
},
|
|
1247
1294
|
};
|
|
1248
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1249
1295
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1250
1296
|
return {
|
|
1251
1297
|
flatResponse,
|
|
@@ -1270,8 +1316,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1270
1316
|
spec: testFailoverCleanupOperationSpec,
|
|
1271
1317
|
});
|
|
1272
1318
|
const poller = await createHttpPoller(lro, {
|
|
1273
|
-
restoreFrom: options
|
|
1274
|
-
intervalInMs: options
|
|
1319
|
+
restoreFrom: options?.resumeFrom,
|
|
1320
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1275
1321
|
});
|
|
1276
1322
|
await poller.poll();
|
|
1277
1323
|
return poller;
|
|
@@ -1307,14 +1353,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1307
1353
|
return this.client.sendOperationRequest(args, spec);
|
|
1308
1354
|
};
|
|
1309
1355
|
const sendOperationFn = async (args, spec) => {
|
|
1310
|
-
var _a;
|
|
1311
1356
|
let currentRawResponse = undefined;
|
|
1312
|
-
const providedCallback =
|
|
1357
|
+
const providedCallback = args.options?.onResponse;
|
|
1313
1358
|
const callback = (rawResponse, flatResponse) => {
|
|
1314
1359
|
currentRawResponse = rawResponse;
|
|
1315
|
-
providedCallback
|
|
1360
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1361
|
+
};
|
|
1362
|
+
const updatedArgs = {
|
|
1363
|
+
...args,
|
|
1364
|
+
options: {
|
|
1365
|
+
...args.options,
|
|
1366
|
+
onResponse: callback,
|
|
1367
|
+
},
|
|
1316
1368
|
};
|
|
1317
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1318
1369
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1319
1370
|
return {
|
|
1320
1371
|
flatResponse,
|
|
@@ -1339,8 +1390,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1339
1390
|
spec: unplannedFailoverOperationSpec,
|
|
1340
1391
|
});
|
|
1341
1392
|
const poller = await createHttpPoller(lro, {
|
|
1342
|
-
restoreFrom: options
|
|
1343
|
-
intervalInMs: options
|
|
1393
|
+
restoreFrom: options?.resumeFrom,
|
|
1394
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1344
1395
|
});
|
|
1345
1396
|
await poller.poll();
|
|
1346
1397
|
return poller;
|
|
@@ -1376,14 +1427,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1376
1427
|
return this.client.sendOperationRequest(args, spec);
|
|
1377
1428
|
};
|
|
1378
1429
|
const sendOperationFn = async (args, spec) => {
|
|
1379
|
-
var _a;
|
|
1380
1430
|
let currentRawResponse = undefined;
|
|
1381
|
-
const providedCallback =
|
|
1431
|
+
const providedCallback = args.options?.onResponse;
|
|
1382
1432
|
const callback = (rawResponse, flatResponse) => {
|
|
1383
1433
|
currentRawResponse = rawResponse;
|
|
1384
|
-
providedCallback
|
|
1434
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1435
|
+
};
|
|
1436
|
+
const updatedArgs = {
|
|
1437
|
+
...args,
|
|
1438
|
+
options: {
|
|
1439
|
+
...args.options,
|
|
1440
|
+
onResponse: callback,
|
|
1441
|
+
},
|
|
1385
1442
|
};
|
|
1386
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1387
1443
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1388
1444
|
return {
|
|
1389
1445
|
flatResponse,
|
|
@@ -1408,8 +1464,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1408
1464
|
spec: updateApplianceOperationSpec,
|
|
1409
1465
|
});
|
|
1410
1466
|
const poller = await createHttpPoller(lro, {
|
|
1411
|
-
restoreFrom: options
|
|
1412
|
-
intervalInMs: options
|
|
1467
|
+
restoreFrom: options?.resumeFrom,
|
|
1468
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1413
1469
|
});
|
|
1414
1470
|
await poller.poll();
|
|
1415
1471
|
return poller;
|
|
@@ -1447,14 +1503,19 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1447
1503
|
return this.client.sendOperationRequest(args, spec);
|
|
1448
1504
|
};
|
|
1449
1505
|
const sendOperationFn = async (args, spec) => {
|
|
1450
|
-
var _a;
|
|
1451
1506
|
let currentRawResponse = undefined;
|
|
1452
|
-
const providedCallback =
|
|
1507
|
+
const providedCallback = args.options?.onResponse;
|
|
1453
1508
|
const callback = (rawResponse, flatResponse) => {
|
|
1454
1509
|
currentRawResponse = rawResponse;
|
|
1455
|
-
providedCallback
|
|
1510
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1511
|
+
};
|
|
1512
|
+
const updatedArgs = {
|
|
1513
|
+
...args,
|
|
1514
|
+
options: {
|
|
1515
|
+
...args.options,
|
|
1516
|
+
onResponse: callback,
|
|
1517
|
+
},
|
|
1456
1518
|
};
|
|
1457
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1458
1519
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1459
1520
|
return {
|
|
1460
1521
|
flatResponse,
|
|
@@ -1479,8 +1540,8 @@ export class ReplicationProtectedItemsImpl {
|
|
|
1479
1540
|
spec: updateMobilityServiceOperationSpec,
|
|
1480
1541
|
});
|
|
1481
1542
|
const poller = await createHttpPoller(lro, {
|
|
1482
|
-
restoreFrom: options
|
|
1483
|
-
intervalInMs: options
|
|
1543
|
+
restoreFrom: options?.resumeFrom,
|
|
1544
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1484
1545
|
resourceLocationConfig: "location",
|
|
1485
1546
|
});
|
|
1486
1547
|
await poller.poll();
|