@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.
Files changed (283) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +2903 -1357
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/clusterRecoveryPointOperations.js +1 -0
  6. package/dist/browser/operations/clusterRecoveryPointOperations.js.map +1 -1
  7. package/dist/browser/operations/clusterRecoveryPoints.js +23 -40
  8. package/dist/browser/operations/clusterRecoveryPoints.js.map +1 -1
  9. package/dist/browser/operations/migrationRecoveryPoints.js +23 -40
  10. package/dist/browser/operations/migrationRecoveryPoints.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/recoveryPoints.js +23 -40
  14. package/dist/browser/operations/recoveryPoints.js.map +1 -1
  15. package/dist/browser/operations/replicationAlertSettings.js +23 -40
  16. package/dist/browser/operations/replicationAlertSettings.js.map +1 -1
  17. package/dist/browser/operations/replicationAppliances.js +23 -40
  18. package/dist/browser/operations/replicationAppliances.js.map +1 -1
  19. package/dist/browser/operations/replicationEligibilityResultsOperations.js +1 -0
  20. package/dist/browser/operations/replicationEligibilityResultsOperations.js.map +1 -1
  21. package/dist/browser/operations/replicationEvents.js +23 -40
  22. package/dist/browser/operations/replicationEvents.js.map +1 -1
  23. package/dist/browser/operations/replicationFabrics.js +111 -88
  24. package/dist/browser/operations/replicationFabrics.js.map +1 -1
  25. package/dist/browser/operations/replicationJobs.js +67 -64
  26. package/dist/browser/operations/replicationJobs.js.map +1 -1
  27. package/dist/browser/operations/replicationLogicalNetworks.js +23 -40
  28. package/dist/browser/operations/replicationLogicalNetworks.js.map +1 -1
  29. package/dist/browser/operations/replicationMigrationItems.js +144 -133
  30. package/dist/browser/operations/replicationMigrationItems.js.map +1 -1
  31. package/dist/browser/operations/replicationNetworkMappings.js +78 -97
  32. package/dist/browser/operations/replicationNetworkMappings.js.map +1 -1
  33. package/dist/browser/operations/replicationNetworks.js +45 -79
  34. package/dist/browser/operations/replicationNetworks.js.map +1 -1
  35. package/dist/browser/operations/replicationPolicies.js +56 -58
  36. package/dist/browser/operations/replicationPolicies.js.map +1 -1
  37. package/dist/browser/operations/replicationProtectableItems.js +23 -40
  38. package/dist/browser/operations/replicationProtectableItems.js.map +1 -1
  39. package/dist/browser/operations/replicationProtectedItems.js +254 -193
  40. package/dist/browser/operations/replicationProtectedItems.js.map +1 -1
  41. package/dist/browser/operations/replicationProtectionClusters.js +133 -127
  42. package/dist/browser/operations/replicationProtectionClusters.js.map +1 -1
  43. package/dist/browser/operations/replicationProtectionContainerMappings.js +89 -103
  44. package/dist/browser/operations/replicationProtectionContainerMappings.js.map +1 -1
  45. package/dist/browser/operations/replicationProtectionContainers.js +100 -109
  46. package/dist/browser/operations/replicationProtectionContainers.js.map +1 -1
  47. package/dist/browser/operations/replicationProtectionIntents.js +23 -40
  48. package/dist/browser/operations/replicationProtectionIntents.js.map +1 -1
  49. package/dist/browser/operations/replicationRecoveryPlans.js +133 -100
  50. package/dist/browser/operations/replicationRecoveryPlans.js.map +1 -1
  51. package/dist/browser/operations/replicationRecoveryServicesProviders.js +89 -103
  52. package/dist/browser/operations/replicationRecoveryServicesProviders.js.map +1 -1
  53. package/dist/browser/operations/replicationStorageClassificationMappings.js +67 -91
  54. package/dist/browser/operations/replicationStorageClassificationMappings.js.map +1 -1
  55. package/dist/browser/operations/replicationStorageClassifications.js +45 -79
  56. package/dist/browser/operations/replicationStorageClassifications.js.map +1 -1
  57. package/dist/browser/operations/replicationVaultHealth.js +12 -6
  58. package/dist/browser/operations/replicationVaultHealth.js.map +1 -1
  59. package/dist/browser/operations/replicationVaultSetting.js +34 -46
  60. package/dist/browser/operations/replicationVaultSetting.js.map +1 -1
  61. package/dist/browser/operations/replicationvCenters.js +78 -97
  62. package/dist/browser/operations/replicationvCenters.js.map +1 -1
  63. package/dist/browser/operations/supportedOperatingSystemsOperations.js +1 -0
  64. package/dist/browser/operations/supportedOperatingSystemsOperations.js.map +1 -1
  65. package/dist/browser/operations/targetComputeSizes.js +23 -40
  66. package/dist/browser/operations/targetComputeSizes.js.map +1 -1
  67. package/dist/browser/pagingHelper.js +2 -4
  68. package/dist/browser/pagingHelper.js.map +1 -1
  69. package/dist/browser/siteRecoveryManagementClient.js +44 -5
  70. package/dist/browser/siteRecoveryManagementClient.js.map +1 -1
  71. package/dist/commonjs/lroImpl.js +7 -3
  72. package/dist/commonjs/lroImpl.js.map +1 -1
  73. package/dist/commonjs/models/mappers.js +2903 -1357
  74. package/dist/commonjs/models/mappers.js.map +1 -1
  75. package/dist/commonjs/operations/clusterRecoveryPointOperations.js +1 -0
  76. package/dist/commonjs/operations/clusterRecoveryPointOperations.js.map +1 -1
  77. package/dist/commonjs/operations/clusterRecoveryPoints.js +23 -39
  78. package/dist/commonjs/operations/clusterRecoveryPoints.js.map +1 -1
  79. package/dist/commonjs/operations/migrationRecoveryPoints.js +23 -39
  80. package/dist/commonjs/operations/migrationRecoveryPoints.js.map +1 -1
  81. package/dist/commonjs/operations/operations.js +23 -39
  82. package/dist/commonjs/operations/operations.js.map +1 -1
  83. package/dist/commonjs/operations/recoveryPoints.js +23 -39
  84. package/dist/commonjs/operations/recoveryPoints.js.map +1 -1
  85. package/dist/commonjs/operations/replicationAlertSettings.js +23 -39
  86. package/dist/commonjs/operations/replicationAlertSettings.js.map +1 -1
  87. package/dist/commonjs/operations/replicationAppliances.js +23 -39
  88. package/dist/commonjs/operations/replicationAppliances.js.map +1 -1
  89. package/dist/commonjs/operations/replicationEligibilityResultsOperations.js +1 -0
  90. package/dist/commonjs/operations/replicationEligibilityResultsOperations.js.map +1 -1
  91. package/dist/commonjs/operations/replicationEvents.js +23 -39
  92. package/dist/commonjs/operations/replicationEvents.js.map +1 -1
  93. package/dist/commonjs/operations/replicationFabrics.js +111 -87
  94. package/dist/commonjs/operations/replicationFabrics.js.map +1 -1
  95. package/dist/commonjs/operations/replicationJobs.js +67 -63
  96. package/dist/commonjs/operations/replicationJobs.js.map +1 -1
  97. package/dist/commonjs/operations/replicationLogicalNetworks.js +23 -39
  98. package/dist/commonjs/operations/replicationLogicalNetworks.js.map +1 -1
  99. package/dist/commonjs/operations/replicationMigrationItems.js +144 -132
  100. package/dist/commonjs/operations/replicationMigrationItems.js.map +1 -1
  101. package/dist/commonjs/operations/replicationNetworkMappings.js +78 -96
  102. package/dist/commonjs/operations/replicationNetworkMappings.js.map +1 -1
  103. package/dist/commonjs/operations/replicationNetworks.js +45 -78
  104. package/dist/commonjs/operations/replicationNetworks.js.map +1 -1
  105. package/dist/commonjs/operations/replicationPolicies.js +56 -57
  106. package/dist/commonjs/operations/replicationPolicies.js.map +1 -1
  107. package/dist/commonjs/operations/replicationProtectableItems.js +23 -39
  108. package/dist/commonjs/operations/replicationProtectableItems.js.map +1 -1
  109. package/dist/commonjs/operations/replicationProtectedItems.js +254 -192
  110. package/dist/commonjs/operations/replicationProtectedItems.js.map +1 -1
  111. package/dist/commonjs/operations/replicationProtectionClusters.js +133 -126
  112. package/dist/commonjs/operations/replicationProtectionClusters.js.map +1 -1
  113. package/dist/commonjs/operations/replicationProtectionContainerMappings.js +89 -102
  114. package/dist/commonjs/operations/replicationProtectionContainerMappings.js.map +1 -1
  115. package/dist/commonjs/operations/replicationProtectionContainers.js +100 -108
  116. package/dist/commonjs/operations/replicationProtectionContainers.js.map +1 -1
  117. package/dist/commonjs/operations/replicationProtectionIntents.js +23 -39
  118. package/dist/commonjs/operations/replicationProtectionIntents.js.map +1 -1
  119. package/dist/commonjs/operations/replicationRecoveryPlans.js +133 -99
  120. package/dist/commonjs/operations/replicationRecoveryPlans.js.map +1 -1
  121. package/dist/commonjs/operations/replicationRecoveryServicesProviders.js +89 -102
  122. package/dist/commonjs/operations/replicationRecoveryServicesProviders.js.map +1 -1
  123. package/dist/commonjs/operations/replicationStorageClassificationMappings.js +67 -90
  124. package/dist/commonjs/operations/replicationStorageClassificationMappings.js.map +1 -1
  125. package/dist/commonjs/operations/replicationStorageClassifications.js +45 -78
  126. package/dist/commonjs/operations/replicationStorageClassifications.js.map +1 -1
  127. package/dist/commonjs/operations/replicationVaultHealth.js +12 -6
  128. package/dist/commonjs/operations/replicationVaultHealth.js.map +1 -1
  129. package/dist/commonjs/operations/replicationVaultSetting.js +34 -45
  130. package/dist/commonjs/operations/replicationVaultSetting.js.map +1 -1
  131. package/dist/commonjs/operations/replicationvCenters.js +78 -96
  132. package/dist/commonjs/operations/replicationvCenters.js.map +1 -1
  133. package/dist/commonjs/operations/supportedOperatingSystemsOperations.js +1 -0
  134. package/dist/commonjs/operations/supportedOperatingSystemsOperations.js.map +1 -1
  135. package/dist/commonjs/operations/targetComputeSizes.js +23 -39
  136. package/dist/commonjs/operations/targetComputeSizes.js.map +1 -1
  137. package/dist/commonjs/pagingHelper.js +2 -4
  138. package/dist/commonjs/pagingHelper.js.map +1 -1
  139. package/dist/commonjs/siteRecoveryManagementClient.js +44 -5
  140. package/dist/commonjs/siteRecoveryManagementClient.js.map +1 -1
  141. package/dist/commonjs/tsdoc-metadata.json +11 -11
  142. package/dist/esm/lroImpl.js +7 -3
  143. package/dist/esm/lroImpl.js.map +1 -1
  144. package/dist/esm/models/mappers.js +2903 -1357
  145. package/dist/esm/models/mappers.js.map +1 -1
  146. package/dist/esm/operations/clusterRecoveryPointOperations.js +1 -0
  147. package/dist/esm/operations/clusterRecoveryPointOperations.js.map +1 -1
  148. package/dist/esm/operations/clusterRecoveryPoints.js +23 -40
  149. package/dist/esm/operations/clusterRecoveryPoints.js.map +1 -1
  150. package/dist/esm/operations/migrationRecoveryPoints.js +23 -40
  151. package/dist/esm/operations/migrationRecoveryPoints.js.map +1 -1
  152. package/dist/esm/operations/operations.js +23 -40
  153. package/dist/esm/operations/operations.js.map +1 -1
  154. package/dist/esm/operations/recoveryPoints.js +23 -40
  155. package/dist/esm/operations/recoveryPoints.js.map +1 -1
  156. package/dist/esm/operations/replicationAlertSettings.js +23 -40
  157. package/dist/esm/operations/replicationAlertSettings.js.map +1 -1
  158. package/dist/esm/operations/replicationAppliances.js +23 -40
  159. package/dist/esm/operations/replicationAppliances.js.map +1 -1
  160. package/dist/esm/operations/replicationEligibilityResultsOperations.js +1 -0
  161. package/dist/esm/operations/replicationEligibilityResultsOperations.js.map +1 -1
  162. package/dist/esm/operations/replicationEvents.js +23 -40
  163. package/dist/esm/operations/replicationEvents.js.map +1 -1
  164. package/dist/esm/operations/replicationFabrics.js +111 -88
  165. package/dist/esm/operations/replicationFabrics.js.map +1 -1
  166. package/dist/esm/operations/replicationJobs.js +67 -64
  167. package/dist/esm/operations/replicationJobs.js.map +1 -1
  168. package/dist/esm/operations/replicationLogicalNetworks.js +23 -40
  169. package/dist/esm/operations/replicationLogicalNetworks.js.map +1 -1
  170. package/dist/esm/operations/replicationMigrationItems.js +144 -133
  171. package/dist/esm/operations/replicationMigrationItems.js.map +1 -1
  172. package/dist/esm/operations/replicationNetworkMappings.js +78 -97
  173. package/dist/esm/operations/replicationNetworkMappings.js.map +1 -1
  174. package/dist/esm/operations/replicationNetworks.js +45 -79
  175. package/dist/esm/operations/replicationNetworks.js.map +1 -1
  176. package/dist/esm/operations/replicationPolicies.js +56 -58
  177. package/dist/esm/operations/replicationPolicies.js.map +1 -1
  178. package/dist/esm/operations/replicationProtectableItems.js +23 -40
  179. package/dist/esm/operations/replicationProtectableItems.js.map +1 -1
  180. package/dist/esm/operations/replicationProtectedItems.js +254 -193
  181. package/dist/esm/operations/replicationProtectedItems.js.map +1 -1
  182. package/dist/esm/operations/replicationProtectionClusters.js +133 -127
  183. package/dist/esm/operations/replicationProtectionClusters.js.map +1 -1
  184. package/dist/esm/operations/replicationProtectionContainerMappings.js +89 -103
  185. package/dist/esm/operations/replicationProtectionContainerMappings.js.map +1 -1
  186. package/dist/esm/operations/replicationProtectionContainers.js +100 -109
  187. package/dist/esm/operations/replicationProtectionContainers.js.map +1 -1
  188. package/dist/esm/operations/replicationProtectionIntents.js +23 -40
  189. package/dist/esm/operations/replicationProtectionIntents.js.map +1 -1
  190. package/dist/esm/operations/replicationRecoveryPlans.js +133 -100
  191. package/dist/esm/operations/replicationRecoveryPlans.js.map +1 -1
  192. package/dist/esm/operations/replicationRecoveryServicesProviders.js +89 -103
  193. package/dist/esm/operations/replicationRecoveryServicesProviders.js.map +1 -1
  194. package/dist/esm/operations/replicationStorageClassificationMappings.js +67 -91
  195. package/dist/esm/operations/replicationStorageClassificationMappings.js.map +1 -1
  196. package/dist/esm/operations/replicationStorageClassifications.js +45 -79
  197. package/dist/esm/operations/replicationStorageClassifications.js.map +1 -1
  198. package/dist/esm/operations/replicationVaultHealth.js +12 -6
  199. package/dist/esm/operations/replicationVaultHealth.js.map +1 -1
  200. package/dist/esm/operations/replicationVaultSetting.js +34 -46
  201. package/dist/esm/operations/replicationVaultSetting.js.map +1 -1
  202. package/dist/esm/operations/replicationvCenters.js +78 -97
  203. package/dist/esm/operations/replicationvCenters.js.map +1 -1
  204. package/dist/esm/operations/supportedOperatingSystemsOperations.js +1 -0
  205. package/dist/esm/operations/supportedOperatingSystemsOperations.js.map +1 -1
  206. package/dist/esm/operations/targetComputeSizes.js +23 -40
  207. package/dist/esm/operations/targetComputeSizes.js.map +1 -1
  208. package/dist/esm/pagingHelper.js +2 -4
  209. package/dist/esm/pagingHelper.js.map +1 -1
  210. package/dist/esm/siteRecoveryManagementClient.js +44 -5
  211. package/dist/esm/siteRecoveryManagementClient.js.map +1 -1
  212. package/dist/react-native/lroImpl.js +7 -3
  213. package/dist/react-native/lroImpl.js.map +1 -1
  214. package/dist/react-native/models/mappers.js +2903 -1357
  215. package/dist/react-native/models/mappers.js.map +1 -1
  216. package/dist/react-native/operations/clusterRecoveryPointOperations.js +1 -0
  217. package/dist/react-native/operations/clusterRecoveryPointOperations.js.map +1 -1
  218. package/dist/react-native/operations/clusterRecoveryPoints.js +23 -40
  219. package/dist/react-native/operations/clusterRecoveryPoints.js.map +1 -1
  220. package/dist/react-native/operations/migrationRecoveryPoints.js +23 -40
  221. package/dist/react-native/operations/migrationRecoveryPoints.js.map +1 -1
  222. package/dist/react-native/operations/operations.js +23 -40
  223. package/dist/react-native/operations/operations.js.map +1 -1
  224. package/dist/react-native/operations/recoveryPoints.js +23 -40
  225. package/dist/react-native/operations/recoveryPoints.js.map +1 -1
  226. package/dist/react-native/operations/replicationAlertSettings.js +23 -40
  227. package/dist/react-native/operations/replicationAlertSettings.js.map +1 -1
  228. package/dist/react-native/operations/replicationAppliances.js +23 -40
  229. package/dist/react-native/operations/replicationAppliances.js.map +1 -1
  230. package/dist/react-native/operations/replicationEligibilityResultsOperations.js +1 -0
  231. package/dist/react-native/operations/replicationEligibilityResultsOperations.js.map +1 -1
  232. package/dist/react-native/operations/replicationEvents.js +23 -40
  233. package/dist/react-native/operations/replicationEvents.js.map +1 -1
  234. package/dist/react-native/operations/replicationFabrics.js +111 -88
  235. package/dist/react-native/operations/replicationFabrics.js.map +1 -1
  236. package/dist/react-native/operations/replicationJobs.js +67 -64
  237. package/dist/react-native/operations/replicationJobs.js.map +1 -1
  238. package/dist/react-native/operations/replicationLogicalNetworks.js +23 -40
  239. package/dist/react-native/operations/replicationLogicalNetworks.js.map +1 -1
  240. package/dist/react-native/operations/replicationMigrationItems.js +144 -133
  241. package/dist/react-native/operations/replicationMigrationItems.js.map +1 -1
  242. package/dist/react-native/operations/replicationNetworkMappings.js +78 -97
  243. package/dist/react-native/operations/replicationNetworkMappings.js.map +1 -1
  244. package/dist/react-native/operations/replicationNetworks.js +45 -79
  245. package/dist/react-native/operations/replicationNetworks.js.map +1 -1
  246. package/dist/react-native/operations/replicationPolicies.js +56 -58
  247. package/dist/react-native/operations/replicationPolicies.js.map +1 -1
  248. package/dist/react-native/operations/replicationProtectableItems.js +23 -40
  249. package/dist/react-native/operations/replicationProtectableItems.js.map +1 -1
  250. package/dist/react-native/operations/replicationProtectedItems.js +254 -193
  251. package/dist/react-native/operations/replicationProtectedItems.js.map +1 -1
  252. package/dist/react-native/operations/replicationProtectionClusters.js +133 -127
  253. package/dist/react-native/operations/replicationProtectionClusters.js.map +1 -1
  254. package/dist/react-native/operations/replicationProtectionContainerMappings.js +89 -103
  255. package/dist/react-native/operations/replicationProtectionContainerMappings.js.map +1 -1
  256. package/dist/react-native/operations/replicationProtectionContainers.js +100 -109
  257. package/dist/react-native/operations/replicationProtectionContainers.js.map +1 -1
  258. package/dist/react-native/operations/replicationProtectionIntents.js +23 -40
  259. package/dist/react-native/operations/replicationProtectionIntents.js.map +1 -1
  260. package/dist/react-native/operations/replicationRecoveryPlans.js +133 -100
  261. package/dist/react-native/operations/replicationRecoveryPlans.js.map +1 -1
  262. package/dist/react-native/operations/replicationRecoveryServicesProviders.js +89 -103
  263. package/dist/react-native/operations/replicationRecoveryServicesProviders.js.map +1 -1
  264. package/dist/react-native/operations/replicationStorageClassificationMappings.js +67 -91
  265. package/dist/react-native/operations/replicationStorageClassificationMappings.js.map +1 -1
  266. package/dist/react-native/operations/replicationStorageClassifications.js +45 -79
  267. package/dist/react-native/operations/replicationStorageClassifications.js.map +1 -1
  268. package/dist/react-native/operations/replicationVaultHealth.js +12 -6
  269. package/dist/react-native/operations/replicationVaultHealth.js.map +1 -1
  270. package/dist/react-native/operations/replicationVaultSetting.js +34 -46
  271. package/dist/react-native/operations/replicationVaultSetting.js.map +1 -1
  272. package/dist/react-native/operations/replicationvCenters.js +78 -97
  273. package/dist/react-native/operations/replicationvCenters.js.map +1 -1
  274. package/dist/react-native/operations/supportedOperatingSystemsOperations.js +1 -0
  275. package/dist/react-native/operations/supportedOperatingSystemsOperations.js.map +1 -1
  276. package/dist/react-native/operations/targetComputeSizes.js +23 -40
  277. package/dist/react-native/operations/targetComputeSizes.js.map +1 -1
  278. package/dist/react-native/pagingHelper.js +2 -4
  279. package/dist/react-native/pagingHelper.js.map +1 -1
  280. package/dist/react-native/siteRecoveryManagementClient.js +44 -5
  281. package/dist/react-native/siteRecoveryManagementClient.js.map +1 -1
  282. package/package.json +2 -2
  283. /package/review/{arm-recoveryservices-siterecovery.api.md → arm-recoveryservices-siterecovery-node.api.md} +0 -0
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing ReplicationMigrationItems operations. */
20
20
  class ReplicationMigrationItemsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class ReplicationMigrationItems class.
23
24
  * @param client Reference to the service client
@@ -44,52 +45,35 @@ class ReplicationMigrationItemsImpl {
44
45
  return this;
45
46
  },
46
47
  byPage: (settings) => {
47
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
48
+ if (settings?.maxPageSize) {
48
49
  throw new Error("maxPageSize is not supported by this operation.");
49
50
  }
50
51
  return this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings);
51
52
  },
52
53
  };
53
54
  }
54
- listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings) {
55
- return tslib_1.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
56
- let result;
57
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
58
- if (!continuationToken) {
59
- result = yield tslib_1.__await(this._listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, options));
60
- let page = result.value || [];
61
- continuationToken = result.nextLink;
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- while (continuationToken) {
66
- result = yield tslib_1.__await(this._listByReplicationProtectionContainersNext(resourceGroupName, resourceName, fabricName, protectionContainerName, continuationToken, options));
67
- continuationToken = result.nextLink;
68
- let page = result.value || [];
69
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
70
- yield yield tslib_1.__await(page);
71
- }
72
- });
55
+ async *listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings) {
56
+ let result;
57
+ let continuationToken = settings?.continuationToken;
58
+ if (!continuationToken) {
59
+ result = await this._listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, options);
60
+ let page = result.value || [];
61
+ continuationToken = result.nextLink;
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
65
+ while (continuationToken) {
66
+ result = await this._listByReplicationProtectionContainersNext(resourceGroupName, resourceName, fabricName, protectionContainerName, continuationToken, options);
67
+ continuationToken = result.nextLink;
68
+ let page = result.value || [];
69
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
70
+ yield page;
71
+ }
73
72
  }
74
- listByReplicationProtectionContainersPagingAll(resourceGroupName, resourceName, fabricName, protectionContainerName, options) {
75
- return tslib_1.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingAll_1() {
76
- var _a, e_1, _b, _c;
77
- try {
78
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
79
- _c = _f.value;
80
- _d = false;
81
- const page = _c;
82
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
83
- }
84
- }
85
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
86
- finally {
87
- try {
88
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
89
- }
90
- finally { if (e_1) throw e_1.error; }
91
- }
92
- });
73
+ async *listByReplicationProtectionContainersPagingAll(resourceGroupName, resourceName, fabricName, protectionContainerName, options) {
74
+ for await (const page of this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options)) {
75
+ yield* page;
76
+ }
93
77
  }
94
78
  /**
95
79
  * Gets the list of migration items in the vault.
@@ -108,52 +92,35 @@ class ReplicationMigrationItemsImpl {
108
92
  return this;
109
93
  },
110
94
  byPage: (settings) => {
111
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
95
+ if (settings?.maxPageSize) {
112
96
  throw new Error("maxPageSize is not supported by this operation.");
113
97
  }
114
98
  return this.listPagingPage(resourceGroupName, resourceName, options, settings);
115
99
  },
116
100
  };
117
101
  }
118
- listPagingPage(resourceGroupName, resourceName, options, settings) {
119
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
120
- let result;
121
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
122
- if (!continuationToken) {
123
- result = yield tslib_1.__await(this._list(resourceGroupName, resourceName, options));
124
- let page = result.value || [];
125
- continuationToken = result.nextLink;
126
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
- yield yield tslib_1.__await(page);
128
- }
129
- while (continuationToken) {
130
- result = yield tslib_1.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
131
- continuationToken = result.nextLink;
132
- let page = result.value || [];
133
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
134
- yield yield tslib_1.__await(page);
135
- }
136
- });
102
+ async *listPagingPage(resourceGroupName, resourceName, options, settings) {
103
+ let result;
104
+ let continuationToken = settings?.continuationToken;
105
+ if (!continuationToken) {
106
+ result = await this._list(resourceGroupName, resourceName, options);
107
+ let page = result.value || [];
108
+ continuationToken = result.nextLink;
109
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
+ yield page;
111
+ }
112
+ while (continuationToken) {
113
+ result = await this._listNext(resourceGroupName, resourceName, continuationToken, options);
114
+ continuationToken = result.nextLink;
115
+ let page = result.value || [];
116
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
117
+ yield page;
118
+ }
137
119
  }
138
- listPagingAll(resourceGroupName, resourceName, options) {
139
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
140
- var _a, e_2, _b, _c;
141
- try {
142
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
143
- _c = _f.value;
144
- _d = false;
145
- const page = _c;
146
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
147
- }
148
- }
149
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
150
- finally {
151
- try {
152
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
153
- }
154
- finally { if (e_2) throw e_2.error; }
155
- }
156
- });
120
+ async *listPagingAll(resourceGroupName, resourceName, options) {
121
+ for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
122
+ yield* page;
123
+ }
157
124
  }
158
125
  /**
159
126
  * Gets the list of ASR migration items in the protection container.
@@ -209,14 +176,19 @@ class ReplicationMigrationItemsImpl {
209
176
  return this.client.sendOperationRequest(args, spec);
210
177
  };
211
178
  const sendOperationFn = async (args, spec) => {
212
- var _a;
213
179
  let currentRawResponse = undefined;
214
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
180
+ const providedCallback = args.options?.onResponse;
215
181
  const callback = (rawResponse, flatResponse) => {
216
182
  currentRawResponse = rawResponse;
217
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
183
+ providedCallback?.(rawResponse, flatResponse);
184
+ };
185
+ const updatedArgs = {
186
+ ...args,
187
+ options: {
188
+ ...args.options,
189
+ onResponse: callback,
190
+ },
218
191
  };
219
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
220
192
  const flatResponse = await directSendOperation(updatedArgs, spec);
221
193
  return {
222
194
  flatResponse,
@@ -241,8 +213,8 @@ class ReplicationMigrationItemsImpl {
241
213
  spec: createOperationSpec,
242
214
  });
243
215
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
244
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
245
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
216
+ restoreFrom: options?.resumeFrom,
217
+ intervalInMs: options?.updateIntervalInMs,
246
218
  });
247
219
  await poller.poll();
248
220
  return poller;
@@ -277,14 +249,19 @@ class ReplicationMigrationItemsImpl {
277
249
  return this.client.sendOperationRequest(args, spec);
278
250
  };
279
251
  const sendOperationFn = async (args, spec) => {
280
- var _a;
281
252
  let currentRawResponse = undefined;
282
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
253
+ const providedCallback = args.options?.onResponse;
283
254
  const callback = (rawResponse, flatResponse) => {
284
255
  currentRawResponse = rawResponse;
285
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
256
+ providedCallback?.(rawResponse, flatResponse);
257
+ };
258
+ const updatedArgs = {
259
+ ...args,
260
+ options: {
261
+ ...args.options,
262
+ onResponse: callback,
263
+ },
286
264
  };
287
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
288
265
  const flatResponse = await directSendOperation(updatedArgs, spec);
289
266
  return {
290
267
  flatResponse,
@@ -308,8 +285,8 @@ class ReplicationMigrationItemsImpl {
308
285
  spec: deleteOperationSpec,
309
286
  });
310
287
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
311
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
312
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
288
+ restoreFrom: options?.resumeFrom,
289
+ intervalInMs: options?.updateIntervalInMs,
313
290
  });
314
291
  await poller.poll();
315
292
  return poller;
@@ -344,14 +321,19 @@ class ReplicationMigrationItemsImpl {
344
321
  return this.client.sendOperationRequest(args, spec);
345
322
  };
346
323
  const sendOperationFn = async (args, spec) => {
347
- var _a;
348
324
  let currentRawResponse = undefined;
349
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
325
+ const providedCallback = args.options?.onResponse;
350
326
  const callback = (rawResponse, flatResponse) => {
351
327
  currentRawResponse = rawResponse;
352
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
328
+ providedCallback?.(rawResponse, flatResponse);
329
+ };
330
+ const updatedArgs = {
331
+ ...args,
332
+ options: {
333
+ ...args.options,
334
+ onResponse: callback,
335
+ },
353
336
  };
354
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
355
337
  const flatResponse = await directSendOperation(updatedArgs, spec);
356
338
  return {
357
339
  flatResponse,
@@ -376,8 +358,8 @@ class ReplicationMigrationItemsImpl {
376
358
  spec: updateOperationSpec,
377
359
  });
378
360
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
379
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
380
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
361
+ restoreFrom: options?.resumeFrom,
362
+ intervalInMs: options?.updateIntervalInMs,
381
363
  });
382
364
  await poller.poll();
383
365
  return poller;
@@ -413,14 +395,19 @@ class ReplicationMigrationItemsImpl {
413
395
  return this.client.sendOperationRequest(args, spec);
414
396
  };
415
397
  const sendOperationFn = async (args, spec) => {
416
- var _a;
417
398
  let currentRawResponse = undefined;
418
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
399
+ const providedCallback = args.options?.onResponse;
419
400
  const callback = (rawResponse, flatResponse) => {
420
401
  currentRawResponse = rawResponse;
421
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
402
+ providedCallback?.(rawResponse, flatResponse);
403
+ };
404
+ const updatedArgs = {
405
+ ...args,
406
+ options: {
407
+ ...args.options,
408
+ onResponse: callback,
409
+ },
422
410
  };
423
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
424
411
  const flatResponse = await directSendOperation(updatedArgs, spec);
425
412
  return {
426
413
  flatResponse,
@@ -445,8 +432,8 @@ class ReplicationMigrationItemsImpl {
445
432
  spec: migrateOperationSpec,
446
433
  });
447
434
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
448
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
449
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
435
+ restoreFrom: options?.resumeFrom,
436
+ intervalInMs: options?.updateIntervalInMs,
450
437
  });
451
438
  await poller.poll();
452
439
  return poller;
@@ -482,14 +469,19 @@ class ReplicationMigrationItemsImpl {
482
469
  return this.client.sendOperationRequest(args, spec);
483
470
  };
484
471
  const sendOperationFn = async (args, spec) => {
485
- var _a;
486
472
  let currentRawResponse = undefined;
487
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
473
+ const providedCallback = args.options?.onResponse;
488
474
  const callback = (rawResponse, flatResponse) => {
489
475
  currentRawResponse = rawResponse;
490
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
476
+ providedCallback?.(rawResponse, flatResponse);
477
+ };
478
+ const updatedArgs = {
479
+ ...args,
480
+ options: {
481
+ ...args.options,
482
+ onResponse: callback,
483
+ },
491
484
  };
492
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
493
485
  const flatResponse = await directSendOperation(updatedArgs, spec);
494
486
  return {
495
487
  flatResponse,
@@ -514,8 +506,8 @@ class ReplicationMigrationItemsImpl {
514
506
  spec: pauseReplicationOperationSpec,
515
507
  });
516
508
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
517
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
518
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
509
+ restoreFrom: options?.resumeFrom,
510
+ intervalInMs: options?.updateIntervalInMs,
519
511
  });
520
512
  await poller.poll();
521
513
  return poller;
@@ -551,14 +543,19 @@ class ReplicationMigrationItemsImpl {
551
543
  return this.client.sendOperationRequest(args, spec);
552
544
  };
553
545
  const sendOperationFn = async (args, spec) => {
554
- var _a;
555
546
  let currentRawResponse = undefined;
556
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
547
+ const providedCallback = args.options?.onResponse;
557
548
  const callback = (rawResponse, flatResponse) => {
558
549
  currentRawResponse = rawResponse;
559
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
550
+ providedCallback?.(rawResponse, flatResponse);
551
+ };
552
+ const updatedArgs = {
553
+ ...args,
554
+ options: {
555
+ ...args.options,
556
+ onResponse: callback,
557
+ },
560
558
  };
561
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
562
559
  const flatResponse = await directSendOperation(updatedArgs, spec);
563
560
  return {
564
561
  flatResponse,
@@ -583,8 +580,8 @@ class ReplicationMigrationItemsImpl {
583
580
  spec: resumeReplicationOperationSpec,
584
581
  });
585
582
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
586
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
587
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
583
+ restoreFrom: options?.resumeFrom,
584
+ intervalInMs: options?.updateIntervalInMs,
588
585
  });
589
586
  await poller.poll();
590
587
  return poller;
@@ -620,14 +617,19 @@ class ReplicationMigrationItemsImpl {
620
617
  return this.client.sendOperationRequest(args, spec);
621
618
  };
622
619
  const sendOperationFn = async (args, spec) => {
623
- var _a;
624
620
  let currentRawResponse = undefined;
625
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
621
+ const providedCallback = args.options?.onResponse;
626
622
  const callback = (rawResponse, flatResponse) => {
627
623
  currentRawResponse = rawResponse;
628
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
624
+ providedCallback?.(rawResponse, flatResponse);
625
+ };
626
+ const updatedArgs = {
627
+ ...args,
628
+ options: {
629
+ ...args.options,
630
+ onResponse: callback,
631
+ },
629
632
  };
630
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
631
633
  const flatResponse = await directSendOperation(updatedArgs, spec);
632
634
  return {
633
635
  flatResponse,
@@ -652,8 +654,8 @@ class ReplicationMigrationItemsImpl {
652
654
  spec: resyncOperationSpec,
653
655
  });
654
656
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
655
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
656
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
657
+ restoreFrom: options?.resumeFrom,
658
+ intervalInMs: options?.updateIntervalInMs,
657
659
  });
658
660
  await poller.poll();
659
661
  return poller;
@@ -689,14 +691,19 @@ class ReplicationMigrationItemsImpl {
689
691
  return this.client.sendOperationRequest(args, spec);
690
692
  };
691
693
  const sendOperationFn = async (args, spec) => {
692
- var _a;
693
694
  let currentRawResponse = undefined;
694
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
695
+ const providedCallback = args.options?.onResponse;
695
696
  const callback = (rawResponse, flatResponse) => {
696
697
  currentRawResponse = rawResponse;
697
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
698
+ providedCallback?.(rawResponse, flatResponse);
699
+ };
700
+ const updatedArgs = {
701
+ ...args,
702
+ options: {
703
+ ...args.options,
704
+ onResponse: callback,
705
+ },
698
706
  };
699
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
700
707
  const flatResponse = await directSendOperation(updatedArgs, spec);
701
708
  return {
702
709
  flatResponse,
@@ -721,8 +728,8 @@ class ReplicationMigrationItemsImpl {
721
728
  spec: testMigrateOperationSpec,
722
729
  });
723
730
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
724
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
725
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
731
+ restoreFrom: options?.resumeFrom,
732
+ intervalInMs: options?.updateIntervalInMs,
726
733
  });
727
734
  await poller.poll();
728
735
  return poller;
@@ -758,14 +765,19 @@ class ReplicationMigrationItemsImpl {
758
765
  return this.client.sendOperationRequest(args, spec);
759
766
  };
760
767
  const sendOperationFn = async (args, spec) => {
761
- var _a;
762
768
  let currentRawResponse = undefined;
763
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
769
+ const providedCallback = args.options?.onResponse;
764
770
  const callback = (rawResponse, flatResponse) => {
765
771
  currentRawResponse = rawResponse;
766
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
772
+ providedCallback?.(rawResponse, flatResponse);
773
+ };
774
+ const updatedArgs = {
775
+ ...args,
776
+ options: {
777
+ ...args.options,
778
+ onResponse: callback,
779
+ },
767
780
  };
768
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
769
781
  const flatResponse = await directSendOperation(updatedArgs, spec);
770
782
  return {
771
783
  flatResponse,
@@ -790,8 +802,8 @@ class ReplicationMigrationItemsImpl {
790
802
  spec: testMigrateCleanupOperationSpec,
791
803
  });
792
804
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
793
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
794
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
805
+ restoreFrom: options?.resumeFrom,
806
+ intervalInMs: options?.updateIntervalInMs,
795
807
  });
796
808
  await poller.poll();
797
809
  return poller;