@azure/arm-recoveryservices-siterecovery 5.3.0-alpha.20250618.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";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ReplicationProtectionIntents operations. */
|
|
15
14
|
export class ReplicationProtectionIntentsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ReplicationProtectionIntents class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class ReplicationProtectionIntentsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._list(resourceGroupName, resourceName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listNext(resourceGroupName, resourceName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listPagingAll(resourceGroupName, resourceName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listPagingAll(resourceGroupName, resourceName, options) {
|
|
66
|
+
for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Gets the list of ASR replication protection intent objects in the vault.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replicationProtectionIntents.js","sourceRoot":"","sources":["../../../src/operations/replicationProtectionIntents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAK3C;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,O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SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;KACF;IACD,WAAW,EAAE,UAAU,CAAC,MAAM;IAC9B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qCAAqC;SAC1D;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ReplicationProtectionIntents } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SiteRecoveryManagementClient } from \"../siteRecoveryManagementClient.js\";\nimport {\n ReplicationProtectionIntent,\n ReplicationProtectionIntentsListNextOptionalParams,\n ReplicationProtectionIntentsListOptionalParams,\n ReplicationProtectionIntentsListResponse,\n ReplicationProtectionIntentsGetOptionalParams,\n ReplicationProtectionIntentsGetResponse,\n CreateProtectionIntentInput,\n ReplicationProtectionIntentsCreateOptionalParams,\n ReplicationProtectionIntentsCreateResponse,\n ReplicationProtectionIntentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationProtectionIntents operations. */\nexport class ReplicationProtectionIntentsImpl\n implements ReplicationProtectionIntents\n{\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationProtectionIntents class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of ASR replication protection intent objects in the vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: ReplicationProtectionIntentsListOptionalParams,\n ): PagedAsyncIterableIterator<ReplicationProtectionIntent> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: ReplicationProtectionIntentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ReplicationProtectionIntent[]> {\n let result: ReplicationProtectionIntentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, resourceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n resourceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: ReplicationProtectionIntentsListOptionalParams,\n ): AsyncIterableIterator<ReplicationProtectionIntent> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of ASR replication protection intent objects in the vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: ReplicationProtectionIntentsListOptionalParams,\n ): Promise<ReplicationProtectionIntentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the details of an ASR replication protection intent.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param intentObjectName Replication protection intent name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n intentObjectName: string,\n options?: ReplicationProtectionIntentsGetOptionalParams,\n ): Promise<ReplicationProtectionIntentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, intentObjectName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The operation to create an ASR replication protection intent item.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param intentObjectName A name for the replication protection item.\n * @param input Create Protection Intent Input.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n intentObjectName: string,\n input: CreateProtectionIntentInput,\n options?: ReplicationProtectionIntentsCreateOptionalParams,\n ): Promise<ReplicationProtectionIntentsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, intentObjectName, input, options },\n createOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: ReplicationProtectionIntentsListNextOptionalParams,\n ): Promise<ReplicationProtectionIntentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationProtectionIntentCollection,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.takeToken,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationProtectionIntent,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.intentObjectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationProtectionIntent,\n },\n },\n requestBody: Parameters.input9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.intentObjectName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationProtectionIntentCollection,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"replicationProtectionIntents.js","sourceRoot":"","sources":["../../../src/operations/replicationProtectionIntents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAG1B,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CA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C,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qCAAqC;SAC1D;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ReplicationProtectionIntents } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { SiteRecoveryManagementClient } from \"../siteRecoveryManagementClient.js\";\nimport {\n ReplicationProtectionIntent,\n ReplicationProtectionIntentsListNextOptionalParams,\n ReplicationProtectionIntentsListOptionalParams,\n ReplicationProtectionIntentsListResponse,\n ReplicationProtectionIntentsGetOptionalParams,\n ReplicationProtectionIntentsGetResponse,\n CreateProtectionIntentInput,\n ReplicationProtectionIntentsCreateOptionalParams,\n ReplicationProtectionIntentsCreateResponse,\n ReplicationProtectionIntentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationProtectionIntents operations. */\nexport class ReplicationProtectionIntentsImpl\n implements ReplicationProtectionIntents\n{\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationProtectionIntents class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of ASR replication protection intent objects in the vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: ReplicationProtectionIntentsListOptionalParams,\n ): PagedAsyncIterableIterator<ReplicationProtectionIntent> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: ReplicationProtectionIntentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ReplicationProtectionIntent[]> {\n let result: ReplicationProtectionIntentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, resourceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n resourceName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: ReplicationProtectionIntentsListOptionalParams,\n ): AsyncIterableIterator<ReplicationProtectionIntent> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of ASR replication protection intent objects in the vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: ReplicationProtectionIntentsListOptionalParams,\n ): Promise<ReplicationProtectionIntentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the details of an ASR replication protection intent.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param intentObjectName Replication protection intent name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n intentObjectName: string,\n options?: ReplicationProtectionIntentsGetOptionalParams,\n ): Promise<ReplicationProtectionIntentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, intentObjectName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The operation to create an ASR replication protection intent item.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param intentObjectName A name for the replication protection item.\n * @param input Create Protection Intent Input.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n intentObjectName: string,\n input: CreateProtectionIntentInput,\n options?: ReplicationProtectionIntentsCreateOptionalParams,\n ): Promise<ReplicationProtectionIntentsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, intentObjectName, input, options },\n createOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param resourceName The name of the recovery services vault.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: ReplicationProtectionIntentsListNextOptionalParams,\n ): Promise<ReplicationProtectionIntentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationProtectionIntentCollection,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.skipToken,\n Parameters.takeToken,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationProtectionIntent,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.intentObjectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationProtectionIntent,\n },\n },\n requestBody: Parameters.input9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.intentObjectName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationProtectionIntentCollection,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -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 ReplicationRecoveryPlans operations. */
|
|
17
16
|
export class ReplicationRecoveryPlansImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class ReplicationRecoveryPlans class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -39,52 +39,35 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._list(resourceGroupName, resourceName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listNext(resourceGroupName, resourceName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listPagingAll(resourceGroupName, resourceName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
67
|
+
async *listPagingAll(resourceGroupName, resourceName, options) {
|
|
68
|
+
for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
88
71
|
}
|
|
89
72
|
/**
|
|
90
73
|
* Lists the recovery plans in the vault.
|
|
@@ -121,14 +104,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
121
104
|
return this.client.sendOperationRequest(args, spec);
|
|
122
105
|
};
|
|
123
106
|
const sendOperationFn = async (args, spec) => {
|
|
124
|
-
var _a;
|
|
125
107
|
let currentRawResponse = undefined;
|
|
126
|
-
const providedCallback =
|
|
108
|
+
const providedCallback = args.options?.onResponse;
|
|
127
109
|
const callback = (rawResponse, flatResponse) => {
|
|
128
110
|
currentRawResponse = rawResponse;
|
|
129
|
-
providedCallback
|
|
111
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
112
|
+
};
|
|
113
|
+
const updatedArgs = {
|
|
114
|
+
...args,
|
|
115
|
+
options: {
|
|
116
|
+
...args.options,
|
|
117
|
+
onResponse: callback,
|
|
118
|
+
},
|
|
130
119
|
};
|
|
131
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
132
120
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
133
121
|
return {
|
|
134
122
|
flatResponse,
|
|
@@ -151,8 +139,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
151
139
|
spec: createOperationSpec,
|
|
152
140
|
});
|
|
153
141
|
const poller = await createHttpPoller(lro, {
|
|
154
|
-
restoreFrom: options
|
|
155
|
-
intervalInMs: options
|
|
142
|
+
restoreFrom: options?.resumeFrom,
|
|
143
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
156
144
|
});
|
|
157
145
|
await poller.poll();
|
|
158
146
|
return poller;
|
|
@@ -183,14 +171,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
183
171
|
return this.client.sendOperationRequest(args, spec);
|
|
184
172
|
};
|
|
185
173
|
const sendOperationFn = async (args, spec) => {
|
|
186
|
-
var _a;
|
|
187
174
|
let currentRawResponse = undefined;
|
|
188
|
-
const providedCallback =
|
|
175
|
+
const providedCallback = args.options?.onResponse;
|
|
189
176
|
const callback = (rawResponse, flatResponse) => {
|
|
190
177
|
currentRawResponse = rawResponse;
|
|
191
|
-
providedCallback
|
|
178
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
179
|
+
};
|
|
180
|
+
const updatedArgs = {
|
|
181
|
+
...args,
|
|
182
|
+
options: {
|
|
183
|
+
...args.options,
|
|
184
|
+
onResponse: callback,
|
|
185
|
+
},
|
|
192
186
|
};
|
|
193
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
194
187
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
195
188
|
return {
|
|
196
189
|
flatResponse,
|
|
@@ -207,8 +200,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
207
200
|
spec: deleteOperationSpec,
|
|
208
201
|
});
|
|
209
202
|
const poller = await createHttpPoller(lro, {
|
|
210
|
-
restoreFrom: options
|
|
211
|
-
intervalInMs: options
|
|
203
|
+
restoreFrom: options?.resumeFrom,
|
|
204
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
212
205
|
});
|
|
213
206
|
await poller.poll();
|
|
214
207
|
return poller;
|
|
@@ -239,14 +232,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
239
232
|
return this.client.sendOperationRequest(args, spec);
|
|
240
233
|
};
|
|
241
234
|
const sendOperationFn = async (args, spec) => {
|
|
242
|
-
var _a;
|
|
243
235
|
let currentRawResponse = undefined;
|
|
244
|
-
const providedCallback =
|
|
236
|
+
const providedCallback = args.options?.onResponse;
|
|
245
237
|
const callback = (rawResponse, flatResponse) => {
|
|
246
238
|
currentRawResponse = rawResponse;
|
|
247
|
-
providedCallback
|
|
239
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
240
|
+
};
|
|
241
|
+
const updatedArgs = {
|
|
242
|
+
...args,
|
|
243
|
+
options: {
|
|
244
|
+
...args.options,
|
|
245
|
+
onResponse: callback,
|
|
246
|
+
},
|
|
248
247
|
};
|
|
249
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
250
248
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
251
249
|
return {
|
|
252
250
|
flatResponse,
|
|
@@ -269,8 +267,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
269
267
|
spec: updateOperationSpec,
|
|
270
268
|
});
|
|
271
269
|
const poller = await createHttpPoller(lro, {
|
|
272
|
-
restoreFrom: options
|
|
273
|
-
intervalInMs: options
|
|
270
|
+
restoreFrom: options?.resumeFrom,
|
|
271
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
274
272
|
});
|
|
275
273
|
await poller.poll();
|
|
276
274
|
return poller;
|
|
@@ -301,14 +299,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
301
299
|
return this.client.sendOperationRequest(args, spec);
|
|
302
300
|
};
|
|
303
301
|
const sendOperationFn = async (args, spec) => {
|
|
304
|
-
var _a;
|
|
305
302
|
let currentRawResponse = undefined;
|
|
306
|
-
const providedCallback =
|
|
303
|
+
const providedCallback = args.options?.onResponse;
|
|
307
304
|
const callback = (rawResponse, flatResponse) => {
|
|
308
305
|
currentRawResponse = rawResponse;
|
|
309
|
-
providedCallback
|
|
306
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
307
|
+
};
|
|
308
|
+
const updatedArgs = {
|
|
309
|
+
...args,
|
|
310
|
+
options: {
|
|
311
|
+
...args.options,
|
|
312
|
+
onResponse: callback,
|
|
313
|
+
},
|
|
310
314
|
};
|
|
311
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
312
315
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
313
316
|
return {
|
|
314
317
|
flatResponse,
|
|
@@ -325,8 +328,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
325
328
|
spec: failoverCancelOperationSpec,
|
|
326
329
|
});
|
|
327
330
|
const poller = await createHttpPoller(lro, {
|
|
328
|
-
restoreFrom: options
|
|
329
|
-
intervalInMs: options
|
|
331
|
+
restoreFrom: options?.resumeFrom,
|
|
332
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
330
333
|
});
|
|
331
334
|
await poller.poll();
|
|
332
335
|
return poller;
|
|
@@ -356,14 +359,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
356
359
|
return this.client.sendOperationRequest(args, spec);
|
|
357
360
|
};
|
|
358
361
|
const sendOperationFn = async (args, spec) => {
|
|
359
|
-
var _a;
|
|
360
362
|
let currentRawResponse = undefined;
|
|
361
|
-
const providedCallback =
|
|
363
|
+
const providedCallback = args.options?.onResponse;
|
|
362
364
|
const callback = (rawResponse, flatResponse) => {
|
|
363
365
|
currentRawResponse = rawResponse;
|
|
364
|
-
providedCallback
|
|
366
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
367
|
+
};
|
|
368
|
+
const updatedArgs = {
|
|
369
|
+
...args,
|
|
370
|
+
options: {
|
|
371
|
+
...args.options,
|
|
372
|
+
onResponse: callback,
|
|
373
|
+
},
|
|
365
374
|
};
|
|
366
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
367
375
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
368
376
|
return {
|
|
369
377
|
flatResponse,
|
|
@@ -380,8 +388,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
380
388
|
spec: failoverCommitOperationSpec,
|
|
381
389
|
});
|
|
382
390
|
const poller = await createHttpPoller(lro, {
|
|
383
|
-
restoreFrom: options
|
|
384
|
-
intervalInMs: options
|
|
391
|
+
restoreFrom: options?.resumeFrom,
|
|
392
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
385
393
|
});
|
|
386
394
|
await poller.poll();
|
|
387
395
|
return poller;
|
|
@@ -412,14 +420,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
412
420
|
return this.client.sendOperationRequest(args, spec);
|
|
413
421
|
};
|
|
414
422
|
const sendOperationFn = async (args, spec) => {
|
|
415
|
-
var _a;
|
|
416
423
|
let currentRawResponse = undefined;
|
|
417
|
-
const providedCallback =
|
|
424
|
+
const providedCallback = args.options?.onResponse;
|
|
418
425
|
const callback = (rawResponse, flatResponse) => {
|
|
419
426
|
currentRawResponse = rawResponse;
|
|
420
|
-
providedCallback
|
|
427
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
428
|
+
};
|
|
429
|
+
const updatedArgs = {
|
|
430
|
+
...args,
|
|
431
|
+
options: {
|
|
432
|
+
...args.options,
|
|
433
|
+
onResponse: callback,
|
|
434
|
+
},
|
|
421
435
|
};
|
|
422
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
423
436
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
424
437
|
return {
|
|
425
438
|
flatResponse,
|
|
@@ -442,8 +455,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
442
455
|
spec: plannedFailoverOperationSpec,
|
|
443
456
|
});
|
|
444
457
|
const poller = await createHttpPoller(lro, {
|
|
445
|
-
restoreFrom: options
|
|
446
|
-
intervalInMs: options
|
|
458
|
+
restoreFrom: options?.resumeFrom,
|
|
459
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
447
460
|
});
|
|
448
461
|
await poller.poll();
|
|
449
462
|
return poller;
|
|
@@ -475,14 +488,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
475
488
|
return this.client.sendOperationRequest(args, spec);
|
|
476
489
|
};
|
|
477
490
|
const sendOperationFn = async (args, spec) => {
|
|
478
|
-
var _a;
|
|
479
491
|
let currentRawResponse = undefined;
|
|
480
|
-
const providedCallback =
|
|
492
|
+
const providedCallback = args.options?.onResponse;
|
|
481
493
|
const callback = (rawResponse, flatResponse) => {
|
|
482
494
|
currentRawResponse = rawResponse;
|
|
483
|
-
providedCallback
|
|
495
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
496
|
+
};
|
|
497
|
+
const updatedArgs = {
|
|
498
|
+
...args,
|
|
499
|
+
options: {
|
|
500
|
+
...args.options,
|
|
501
|
+
onResponse: callback,
|
|
502
|
+
},
|
|
484
503
|
};
|
|
485
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
486
504
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
487
505
|
return {
|
|
488
506
|
flatResponse,
|
|
@@ -499,8 +517,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
499
517
|
spec: reprotectOperationSpec,
|
|
500
518
|
});
|
|
501
519
|
const poller = await createHttpPoller(lro, {
|
|
502
|
-
restoreFrom: options
|
|
503
|
-
intervalInMs: options
|
|
520
|
+
restoreFrom: options?.resumeFrom,
|
|
521
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
504
522
|
});
|
|
505
523
|
await poller.poll();
|
|
506
524
|
return poller;
|
|
@@ -532,14 +550,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
532
550
|
return this.client.sendOperationRequest(args, spec);
|
|
533
551
|
};
|
|
534
552
|
const sendOperationFn = async (args, spec) => {
|
|
535
|
-
var _a;
|
|
536
553
|
let currentRawResponse = undefined;
|
|
537
|
-
const providedCallback =
|
|
554
|
+
const providedCallback = args.options?.onResponse;
|
|
538
555
|
const callback = (rawResponse, flatResponse) => {
|
|
539
556
|
currentRawResponse = rawResponse;
|
|
540
|
-
providedCallback
|
|
557
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
558
|
+
};
|
|
559
|
+
const updatedArgs = {
|
|
560
|
+
...args,
|
|
561
|
+
options: {
|
|
562
|
+
...args.options,
|
|
563
|
+
onResponse: callback,
|
|
564
|
+
},
|
|
541
565
|
};
|
|
542
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
543
566
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
544
567
|
return {
|
|
545
568
|
flatResponse,
|
|
@@ -562,8 +585,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
562
585
|
spec: testFailoverOperationSpec,
|
|
563
586
|
});
|
|
564
587
|
const poller = await createHttpPoller(lro, {
|
|
565
|
-
restoreFrom: options
|
|
566
|
-
intervalInMs: options
|
|
588
|
+
restoreFrom: options?.resumeFrom,
|
|
589
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
567
590
|
});
|
|
568
591
|
await poller.poll();
|
|
569
592
|
return poller;
|
|
@@ -595,14 +618,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
595
618
|
return this.client.sendOperationRequest(args, spec);
|
|
596
619
|
};
|
|
597
620
|
const sendOperationFn = async (args, spec) => {
|
|
598
|
-
var _a;
|
|
599
621
|
let currentRawResponse = undefined;
|
|
600
|
-
const providedCallback =
|
|
622
|
+
const providedCallback = args.options?.onResponse;
|
|
601
623
|
const callback = (rawResponse, flatResponse) => {
|
|
602
624
|
currentRawResponse = rawResponse;
|
|
603
|
-
providedCallback
|
|
625
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
626
|
+
};
|
|
627
|
+
const updatedArgs = {
|
|
628
|
+
...args,
|
|
629
|
+
options: {
|
|
630
|
+
...args.options,
|
|
631
|
+
onResponse: callback,
|
|
632
|
+
},
|
|
604
633
|
};
|
|
605
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
606
634
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
607
635
|
return {
|
|
608
636
|
flatResponse,
|
|
@@ -625,8 +653,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
625
653
|
spec: testFailoverCleanupOperationSpec,
|
|
626
654
|
});
|
|
627
655
|
const poller = await createHttpPoller(lro, {
|
|
628
|
-
restoreFrom: options
|
|
629
|
-
intervalInMs: options
|
|
656
|
+
restoreFrom: options?.resumeFrom,
|
|
657
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
630
658
|
});
|
|
631
659
|
await poller.poll();
|
|
632
660
|
return poller;
|
|
@@ -658,14 +686,19 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
658
686
|
return this.client.sendOperationRequest(args, spec);
|
|
659
687
|
};
|
|
660
688
|
const sendOperationFn = async (args, spec) => {
|
|
661
|
-
var _a;
|
|
662
689
|
let currentRawResponse = undefined;
|
|
663
|
-
const providedCallback =
|
|
690
|
+
const providedCallback = args.options?.onResponse;
|
|
664
691
|
const callback = (rawResponse, flatResponse) => {
|
|
665
692
|
currentRawResponse = rawResponse;
|
|
666
|
-
providedCallback
|
|
693
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
694
|
+
};
|
|
695
|
+
const updatedArgs = {
|
|
696
|
+
...args,
|
|
697
|
+
options: {
|
|
698
|
+
...args.options,
|
|
699
|
+
onResponse: callback,
|
|
700
|
+
},
|
|
667
701
|
};
|
|
668
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
669
702
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
670
703
|
return {
|
|
671
704
|
flatResponse,
|
|
@@ -688,8 +721,8 @@ export class ReplicationRecoveryPlansImpl {
|
|
|
688
721
|
spec: unplannedFailoverOperationSpec,
|
|
689
722
|
});
|
|
690
723
|
const poller = await createHttpPoller(lro, {
|
|
691
|
-
restoreFrom: options
|
|
692
|
-
intervalInMs: options
|
|
724
|
+
restoreFrom: options?.resumeFrom,
|
|
725
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
693
726
|
});
|
|
694
727
|
await poller.poll();
|
|
695
728
|
return poller;
|