@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.
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
@@ -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 ReplicationProtectionClusters operations. */
17
16
  export class ReplicationProtectionClustersImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class ReplicationProtectionClusters class.
20
20
  * @param client Reference to the service client
@@ -41,52 +41,35 @@ export class ReplicationProtectionClustersImpl {
41
41
  return this;
42
42
  },
43
43
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
44
+ if (settings?.maxPageSize) {
45
45
  throw new Error("maxPageSize is not supported by this operation.");
46
46
  }
47
47
  return this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings);
48
48
  },
49
49
  };
50
50
  }
51
- listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings) {
52
- return __asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield __await(this._listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield __await(this._listByReplicationProtectionContainersNext(resourceGroupName, resourceName, fabricName, protectionContainerName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- setContinuationToken(page, continuationToken);
67
- yield yield __await(page);
68
- }
69
- });
51
+ async *listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings) {
52
+ let result;
53
+ let continuationToken = settings?.continuationToken;
54
+ if (!continuationToken) {
55
+ result = await this._listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, options);
56
+ let page = result.value || [];
57
+ continuationToken = result.nextLink;
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
61
+ while (continuationToken) {
62
+ result = await this._listByReplicationProtectionContainersNext(resourceGroupName, resourceName, fabricName, protectionContainerName, continuationToken, options);
63
+ continuationToken = result.nextLink;
64
+ let page = result.value || [];
65
+ setContinuationToken(page, continuationToken);
66
+ yield page;
67
+ }
70
68
  }
71
- listByReplicationProtectionContainersPagingAll(resourceGroupName, resourceName, fabricName, protectionContainerName, options) {
72
- return __asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = __asyncValues(this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
69
+ async *listByReplicationProtectionContainersPagingAll(resourceGroupName, resourceName, fabricName, protectionContainerName, options) {
70
+ for await (const page of this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options)) {
71
+ yield* page;
72
+ }
90
73
  }
91
74
  /**
92
75
  * Gets the list of ASR replication protected clusters in the vault.
@@ -105,52 +88,35 @@ export class ReplicationProtectionClustersImpl {
105
88
  return this;
106
89
  },
107
90
  byPage: (settings) => {
108
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
91
+ if (settings?.maxPageSize) {
109
92
  throw new Error("maxPageSize is not supported by this operation.");
110
93
  }
111
94
  return this.listPagingPage(resourceGroupName, resourceName, options, settings);
112
95
  },
113
96
  };
114
97
  }
115
- listPagingPage(resourceGroupName, resourceName, options, settings) {
116
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
117
- let result;
118
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
119
- if (!continuationToken) {
120
- result = yield __await(this._list(resourceGroupName, resourceName, options));
121
- let page = result.value || [];
122
- continuationToken = result.nextLink;
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- while (continuationToken) {
127
- result = yield __await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
128
- continuationToken = result.nextLink;
129
- let page = result.value || [];
130
- setContinuationToken(page, continuationToken);
131
- yield yield __await(page);
132
- }
133
- });
98
+ async *listPagingPage(resourceGroupName, resourceName, options, settings) {
99
+ let result;
100
+ let continuationToken = settings?.continuationToken;
101
+ if (!continuationToken) {
102
+ result = await this._list(resourceGroupName, resourceName, options);
103
+ let page = result.value || [];
104
+ continuationToken = result.nextLink;
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
108
+ while (continuationToken) {
109
+ result = await this._listNext(resourceGroupName, resourceName, continuationToken, options);
110
+ continuationToken = result.nextLink;
111
+ let page = result.value || [];
112
+ setContinuationToken(page, continuationToken);
113
+ yield page;
114
+ }
134
115
  }
135
- listPagingAll(resourceGroupName, resourceName, options) {
136
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
137
- var _a, e_2, _b, _c;
138
- try {
139
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
140
- _c = _f.value;
141
- _d = false;
142
- const page = _c;
143
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
144
- }
145
- }
146
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
147
- finally {
148
- try {
149
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
150
- }
151
- finally { if (e_2) throw e_2.error; }
152
- }
153
- });
116
+ async *listPagingAll(resourceGroupName, resourceName, options) {
117
+ for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
118
+ yield* page;
119
+ }
154
120
  }
155
121
  /**
156
122
  * Gets the list of ASR replication protected clusters in the protection container.
@@ -206,14 +172,19 @@ export class ReplicationProtectionClustersImpl {
206
172
  return this.client.sendOperationRequest(args, spec);
207
173
  };
208
174
  const sendOperationFn = async (args, spec) => {
209
- var _a;
210
175
  let currentRawResponse = undefined;
211
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
176
+ const providedCallback = args.options?.onResponse;
212
177
  const callback = (rawResponse, flatResponse) => {
213
178
  currentRawResponse = rawResponse;
214
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
179
+ providedCallback?.(rawResponse, flatResponse);
180
+ };
181
+ const updatedArgs = {
182
+ ...args,
183
+ options: {
184
+ ...args.options,
185
+ onResponse: callback,
186
+ },
215
187
  };
216
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
217
188
  const flatResponse = await directSendOperation(updatedArgs, spec);
218
189
  return {
219
190
  flatResponse,
@@ -238,8 +209,8 @@ export class ReplicationProtectionClustersImpl {
238
209
  spec: createOperationSpec,
239
210
  });
240
211
  const poller = await createHttpPoller(lro, {
241
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
242
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
212
+ restoreFrom: options?.resumeFrom,
213
+ intervalInMs: options?.updateIntervalInMs,
243
214
  });
244
215
  await poller.poll();
245
216
  return poller;
@@ -276,14 +247,19 @@ export class ReplicationProtectionClustersImpl {
276
247
  return this.client.sendOperationRequest(args, spec);
277
248
  };
278
249
  const sendOperationFn = async (args, spec) => {
279
- var _a;
280
250
  let currentRawResponse = undefined;
281
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
251
+ const providedCallback = args.options?.onResponse;
282
252
  const callback = (rawResponse, flatResponse) => {
283
253
  currentRawResponse = rawResponse;
284
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
254
+ providedCallback?.(rawResponse, flatResponse);
255
+ };
256
+ const updatedArgs = {
257
+ ...args,
258
+ options: {
259
+ ...args.options,
260
+ onResponse: callback,
261
+ },
285
262
  };
286
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
287
263
  const flatResponse = await directSendOperation(updatedArgs, spec);
288
264
  return {
289
265
  flatResponse,
@@ -307,8 +283,8 @@ export class ReplicationProtectionClustersImpl {
307
283
  spec: purgeOperationSpec,
308
284
  });
309
285
  const poller = await createHttpPoller(lro, {
310
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
311
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
286
+ restoreFrom: options?.resumeFrom,
287
+ intervalInMs: options?.updateIntervalInMs,
312
288
  resourceLocationConfig: "location",
313
289
  });
314
290
  await poller.poll();
@@ -346,14 +322,19 @@ export class ReplicationProtectionClustersImpl {
346
322
  return this.client.sendOperationRequest(args, spec);
347
323
  };
348
324
  const sendOperationFn = async (args, spec) => {
349
- var _a;
350
325
  let currentRawResponse = undefined;
351
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
326
+ const providedCallback = args.options?.onResponse;
352
327
  const callback = (rawResponse, flatResponse) => {
353
328
  currentRawResponse = rawResponse;
354
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
329
+ providedCallback?.(rawResponse, flatResponse);
330
+ };
331
+ const updatedArgs = {
332
+ ...args,
333
+ options: {
334
+ ...args.options,
335
+ onResponse: callback,
336
+ },
355
337
  };
356
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
357
338
  const flatResponse = await directSendOperation(updatedArgs, spec);
358
339
  return {
359
340
  flatResponse,
@@ -378,8 +359,8 @@ export class ReplicationProtectionClustersImpl {
378
359
  spec: applyRecoveryPointOperationSpec,
379
360
  });
380
361
  const poller = await createHttpPoller(lro, {
381
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
382
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
362
+ restoreFrom: options?.resumeFrom,
363
+ intervalInMs: options?.updateIntervalInMs,
383
364
  resourceLocationConfig: "location",
384
365
  });
385
366
  await poller.poll();
@@ -415,14 +396,19 @@ export class ReplicationProtectionClustersImpl {
415
396
  return this.client.sendOperationRequest(args, spec);
416
397
  };
417
398
  const sendOperationFn = async (args, spec) => {
418
- var _a;
419
399
  let currentRawResponse = undefined;
420
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
400
+ const providedCallback = args.options?.onResponse;
421
401
  const callback = (rawResponse, flatResponse) => {
422
402
  currentRawResponse = rawResponse;
423
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
403
+ providedCallback?.(rawResponse, flatResponse);
404
+ };
405
+ const updatedArgs = {
406
+ ...args,
407
+ options: {
408
+ ...args.options,
409
+ onResponse: callback,
410
+ },
424
411
  };
425
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
426
412
  const flatResponse = await directSendOperation(updatedArgs, spec);
427
413
  return {
428
414
  flatResponse,
@@ -446,8 +432,8 @@ export class ReplicationProtectionClustersImpl {
446
432
  spec: failoverCommitOperationSpec,
447
433
  });
448
434
  const poller = await createHttpPoller(lro, {
449
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
450
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
435
+ restoreFrom: options?.resumeFrom,
436
+ intervalInMs: options?.updateIntervalInMs,
451
437
  resourceLocationConfig: "location",
452
438
  });
453
439
  await poller.poll();
@@ -504,14 +490,19 @@ export class ReplicationProtectionClustersImpl {
504
490
  return this.client.sendOperationRequest(args, spec);
505
491
  };
506
492
  const sendOperationFn = async (args, spec) => {
507
- var _a;
508
493
  let currentRawResponse = undefined;
509
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
494
+ const providedCallback = args.options?.onResponse;
510
495
  const callback = (rawResponse, flatResponse) => {
511
496
  currentRawResponse = rawResponse;
512
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
497
+ providedCallback?.(rawResponse, flatResponse);
498
+ };
499
+ const updatedArgs = {
500
+ ...args,
501
+ options: {
502
+ ...args.options,
503
+ onResponse: callback,
504
+ },
513
505
  };
514
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
515
506
  const flatResponse = await directSendOperation(updatedArgs, spec);
516
507
  return {
517
508
  flatResponse,
@@ -535,8 +526,8 @@ export class ReplicationProtectionClustersImpl {
535
526
  spec: repairReplicationOperationSpec,
536
527
  });
537
528
  const poller = await createHttpPoller(lro, {
538
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
539
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
529
+ restoreFrom: options?.resumeFrom,
530
+ intervalInMs: options?.updateIntervalInMs,
540
531
  resourceLocationConfig: "location",
541
532
  });
542
533
  await poller.poll();
@@ -572,14 +563,19 @@ export class ReplicationProtectionClustersImpl {
572
563
  return this.client.sendOperationRequest(args, spec);
573
564
  };
574
565
  const sendOperationFn = async (args, spec) => {
575
- var _a;
576
566
  let currentRawResponse = undefined;
577
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
567
+ const providedCallback = args.options?.onResponse;
578
568
  const callback = (rawResponse, flatResponse) => {
579
569
  currentRawResponse = rawResponse;
580
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
570
+ providedCallback?.(rawResponse, flatResponse);
571
+ };
572
+ const updatedArgs = {
573
+ ...args,
574
+ options: {
575
+ ...args.options,
576
+ onResponse: callback,
577
+ },
581
578
  };
582
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
583
579
  const flatResponse = await directSendOperation(updatedArgs, spec);
584
580
  return {
585
581
  flatResponse,
@@ -604,8 +600,8 @@ export class ReplicationProtectionClustersImpl {
604
600
  spec: testFailoverOperationSpec,
605
601
  });
606
602
  const poller = await createHttpPoller(lro, {
607
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
608
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
603
+ restoreFrom: options?.resumeFrom,
604
+ intervalInMs: options?.updateIntervalInMs,
609
605
  resourceLocationConfig: "location",
610
606
  });
611
607
  await poller.poll();
@@ -642,14 +638,19 @@ export class ReplicationProtectionClustersImpl {
642
638
  return this.client.sendOperationRequest(args, spec);
643
639
  };
644
640
  const sendOperationFn = async (args, spec) => {
645
- var _a;
646
641
  let currentRawResponse = undefined;
647
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
642
+ const providedCallback = args.options?.onResponse;
648
643
  const callback = (rawResponse, flatResponse) => {
649
644
  currentRawResponse = rawResponse;
650
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
645
+ providedCallback?.(rawResponse, flatResponse);
646
+ };
647
+ const updatedArgs = {
648
+ ...args,
649
+ options: {
650
+ ...args.options,
651
+ onResponse: callback,
652
+ },
651
653
  };
652
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
653
654
  const flatResponse = await directSendOperation(updatedArgs, spec);
654
655
  return {
655
656
  flatResponse,
@@ -674,8 +675,8 @@ export class ReplicationProtectionClustersImpl {
674
675
  spec: testFailoverCleanupOperationSpec,
675
676
  });
676
677
  const poller = await createHttpPoller(lro, {
677
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
678
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
678
+ restoreFrom: options?.resumeFrom,
679
+ intervalInMs: options?.updateIntervalInMs,
679
680
  resourceLocationConfig: "location",
680
681
  });
681
682
  await poller.poll();
@@ -712,14 +713,19 @@ export class ReplicationProtectionClustersImpl {
712
713
  return this.client.sendOperationRequest(args, spec);
713
714
  };
714
715
  const sendOperationFn = async (args, spec) => {
715
- var _a;
716
716
  let currentRawResponse = undefined;
717
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
717
+ const providedCallback = args.options?.onResponse;
718
718
  const callback = (rawResponse, flatResponse) => {
719
719
  currentRawResponse = rawResponse;
720
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
720
+ providedCallback?.(rawResponse, flatResponse);
721
+ };
722
+ const updatedArgs = {
723
+ ...args,
724
+ options: {
725
+ ...args.options,
726
+ onResponse: callback,
727
+ },
721
728
  };
722
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
723
729
  const flatResponse = await directSendOperation(updatedArgs, spec);
724
730
  return {
725
731
  flatResponse,
@@ -744,8 +750,8 @@ export class ReplicationProtectionClustersImpl {
744
750
  spec: unplannedFailoverOperationSpec,
745
751
  });
746
752
  const poller = await createHttpPoller(lro, {
747
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
748
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
753
+ restoreFrom: options?.resumeFrom,
754
+ intervalInMs: options?.updateIntervalInMs,
749
755
  resourceLocationConfig: "location",
750
756
  });
751
757
  await poller.poll();