@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
@@ -1 +1 @@
1
- {"version":3,"file":"recoveryPoints.js","sourceRoot":"","sources":["../../../src/operations/recoveryPoints.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;AAYtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,+BAA+B,CACpC,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,uBAA+B,EAC/B,2BAAmC,EACnC,OAAqE;QAErE,MAAM,IAAI,GAAG,IAAI,CAAC,wCAAwC,CACxD,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,y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,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,uBAAuB;QAClC,UAAU,CAAC,2BAA2B;KACvC;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 { RecoveryPoints } 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 RecoveryPoint,\n RecoveryPointsListByReplicationProtectedItemsNextOptionalParams,\n RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n RecoveryPointsListByReplicationProtectedItemsResponse,\n RecoveryPointsGetOptionalParams,\n RecoveryPointsGetResponse,\n RecoveryPointsListByReplicationProtectedItemsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RecoveryPoints operations. */\nexport class RecoveryPointsImpl implements RecoveryPoints {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class RecoveryPoints class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the available recovery points for a replication protected 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 fabricName The fabric name.\n * @param protectionContainerName The protection container name.\n * @param replicatedProtectedItemName The replication protected item name.\n * @param options The options parameters.\n */\n public listByReplicationProtectedItems(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n ): PagedAsyncIterableIterator<RecoveryPoint> {\n const iter = this.listByReplicationProtectedItemsPagingAll(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n );\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.listByReplicationProtectedItemsPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByReplicationProtectedItemsPagingPage(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecoveryPoint[]> {\n let result: RecoveryPointsListByReplicationProtectedItemsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReplicationProtectedItems(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByReplicationProtectedItemsNext(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\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 *listByReplicationProtectedItemsPagingAll(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n ): AsyncIterableIterator<RecoveryPoint> {\n for await (const page of this.listByReplicationProtectedItemsPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the available recovery points for a replication protected 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 fabricName The fabric name.\n * @param protectionContainerName The protection container name.\n * @param replicatedProtectedItemName The replication protected item name.\n * @param options The options parameters.\n */\n private _listByReplicationProtectedItems(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n ): Promise<RecoveryPointsListByReplicationProtectedItemsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n },\n listByReplicationProtectedItemsOperationSpec,\n );\n }\n\n /**\n * Get the details of specified recovery point.\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 fabricName The fabric name.\n * @param protectionContainerName The protection container name.\n * @param replicatedProtectedItemName The replication protected item name.\n * @param recoveryPointName The recovery point name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n recoveryPointName: string,\n options?: RecoveryPointsGetOptionalParams,\n ): Promise<RecoveryPointsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n recoveryPointName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListByReplicationProtectedItemsNext\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 fabricName The fabric name.\n * @param protectionContainerName The protection container name.\n * @param replicatedProtectedItemName The replication protected item name.\n * @param nextLink The nextLink from the previous successful call to the\n * ListByReplicationProtectedItems method.\n * @param options The options parameters.\n */\n private _listByReplicationProtectedItemsNext(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n nextLink: string,\n options?: RecoveryPointsListByReplicationProtectedItemsNextOptionalParams,\n ): Promise<RecoveryPointsListByReplicationProtectedItemsNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n nextLink,\n options,\n },\n listByReplicationProtectedItemsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByReplicationProtectedItemsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointCollection,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.fabricName,\n Parameters.protectionContainerName,\n Parameters.replicatedProtectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints/{recoveryPointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPoint,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.fabricName,\n Parameters.protectionContainerName,\n Parameters.replicatedProtectedItemName,\n Parameters.recoveryPointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByReplicationProtectedItemsNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointCollection,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceName,\n Parameters.fabricName,\n Parameters.protectionContainerName,\n Parameters.replicatedProtectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}
1
+ {"version":3,"file":"recoveryPoints.js","sourceRoot":"","sources":["../../../src/operations/recoveryPoints.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;AAYtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,+BAA+B,CACpC,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,uBAA+B,EAC/B,2BAAmC,EACnC,OAAqE;QAErE,MA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U,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,uBAAuB;QAClC,UAAU,CAAC,2BAA2B;QACtC,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gDAAgD,GACpD;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,uBAAuB;QAClC,UAAU,CAAC,2BAA2B;KACvC;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 { RecoveryPoints } 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 RecoveryPoint,\n RecoveryPointsListByReplicationProtectedItemsNextOptionalParams,\n RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n RecoveryPointsListByReplicationProtectedItemsResponse,\n RecoveryPointsGetOptionalParams,\n RecoveryPointsGetResponse,\n RecoveryPointsListByReplicationProtectedItemsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RecoveryPoints operations. */\nexport class RecoveryPointsImpl implements RecoveryPoints {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class RecoveryPoints class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the available recovery points for a replication protected 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 fabricName The fabric name.\n * @param protectionContainerName The protection container name.\n * @param replicatedProtectedItemName The replication protected item name.\n * @param options The options parameters.\n */\n public listByReplicationProtectedItems(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n ): PagedAsyncIterableIterator<RecoveryPoint> {\n const iter = this.listByReplicationProtectedItemsPagingAll(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n );\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.listByReplicationProtectedItemsPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByReplicationProtectedItemsPagingPage(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<RecoveryPoint[]> {\n let result: RecoveryPointsListByReplicationProtectedItemsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReplicationProtectedItems(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByReplicationProtectedItemsNext(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\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 *listByReplicationProtectedItemsPagingAll(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n ): AsyncIterableIterator<RecoveryPoint> {\n for await (const page of this.listByReplicationProtectedItemsPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the available recovery points for a replication protected 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 fabricName The fabric name.\n * @param protectionContainerName The protection container name.\n * @param replicatedProtectedItemName The replication protected item name.\n * @param options The options parameters.\n */\n private _listByReplicationProtectedItems(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n options?: RecoveryPointsListByReplicationProtectedItemsOptionalParams,\n ): Promise<RecoveryPointsListByReplicationProtectedItemsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n options,\n },\n listByReplicationProtectedItemsOperationSpec,\n );\n }\n\n /**\n * Get the details of specified recovery point.\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 fabricName The fabric name.\n * @param protectionContainerName The protection container name.\n * @param replicatedProtectedItemName The replication protected item name.\n * @param recoveryPointName The recovery point name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n recoveryPointName: string,\n options?: RecoveryPointsGetOptionalParams,\n ): Promise<RecoveryPointsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n recoveryPointName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListByReplicationProtectedItemsNext\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 fabricName The fabric name.\n * @param protectionContainerName The protection container name.\n * @param replicatedProtectedItemName The replication protected item name.\n * @param nextLink The nextLink from the previous successful call to the\n * ListByReplicationProtectedItems method.\n * @param options The options parameters.\n */\n private _listByReplicationProtectedItemsNext(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n replicatedProtectedItemName: string,\n nextLink: string,\n options?: RecoveryPointsListByReplicationProtectedItemsNextOptionalParams,\n ): Promise<RecoveryPointsListByReplicationProtectedItemsNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n replicatedProtectedItemName,\n nextLink,\n options,\n },\n listByReplicationProtectedItemsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByReplicationProtectedItemsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointCollection,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.fabricName,\n Parameters.protectionContainerName,\n Parameters.replicatedProtectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/recoveryPoints/{recoveryPointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPoint,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.fabricName,\n Parameters.protectionContainerName,\n Parameters.replicatedProtectedItemName,\n Parameters.recoveryPointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByReplicationProtectedItemsNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecoveryPointCollection,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceName,\n Parameters.fabricName,\n Parameters.protectionContainerName,\n Parameters.replicatedProtectedItemName,\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";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing ReplicationAlertSettings operations. */
15
14
  export class ReplicationAlertSettingsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class ReplicationAlertSettings class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class ReplicationAlertSettingsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(resourceGroupName, resourceName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
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 email notification(alert) configurations for the vault.
@@ -1 +1 @@
1
- {"version":3,"file":"replicationAlertSettings.js","sourceRoot":"","sources":["../../../src/operations/replicationAlertSettings.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,4DAA4D;AAC5D,MAAM,OAAO,4BAA4B;IAGvC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAoD;QAEpD,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,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Ae,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,eAAe;SACpC;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 { ReplicationAlertSettings } 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 Alert,\n ReplicationAlertSettingsListNextOptionalParams,\n ReplicationAlertSettingsListOptionalParams,\n ReplicationAlertSettingsListResponse,\n ReplicationAlertSettingsGetOptionalParams,\n ReplicationAlertSettingsGetResponse,\n ConfigureAlertRequest,\n ReplicationAlertSettingsCreateOptionalParams,\n ReplicationAlertSettingsCreateResponse,\n ReplicationAlertSettingsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationAlertSettings operations. */\nexport class ReplicationAlertSettingsImpl implements ReplicationAlertSettings {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationAlertSettings 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 email notification(alert) configurations for 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?: ReplicationAlertSettingsListOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\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?: ReplicationAlertSettingsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: ReplicationAlertSettingsListResponse;\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?: ReplicationAlertSettingsListOptionalParams,\n ): AsyncIterableIterator<Alert> {\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 email notification(alert) configurations for 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?: ReplicationAlertSettingsListOptionalParams,\n ): Promise<ReplicationAlertSettingsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the details of the specified email notification(alert) configuration.\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 alertSettingName The name of the email notification configuration.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n alertSettingName: string,\n options?: ReplicationAlertSettingsGetOptionalParams,\n ): Promise<ReplicationAlertSettingsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, alertSettingName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update an email notification(alert) configuration.\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 alertSettingName The name of the email notification(alert) configuration.\n * @param request The input to configure the email notification(alert).\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n alertSettingName: string,\n request: ConfigureAlertRequest,\n options?: ReplicationAlertSettingsCreateOptionalParams,\n ): Promise<ReplicationAlertSettingsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, alertSettingName, request, 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?: ReplicationAlertSettingsListNextOptionalParams,\n ): Promise<ReplicationAlertSettingsListNextResponse> {\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}/replicationAlertSettings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertCollection,\n },\n },\n queryParameters: [Parameters.apiVersion],\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}/replicationAlertSettings/{alertSettingName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.alertSettingName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert,\n },\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.alertSettingName,\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.AlertCollection,\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":"replicationAlertSettings.js","sourceRoot":"","sources":["../../../src/operations/replicationAlertSettings.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,4DAA4D;AAC5D,MAAM,OAAO,4BAA4B;IACtB,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,OAAoD;QAEpD,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,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EAC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;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 { ReplicationAlertSettings } 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 Alert,\n ReplicationAlertSettingsListNextOptionalParams,\n ReplicationAlertSettingsListOptionalParams,\n ReplicationAlertSettingsListResponse,\n ReplicationAlertSettingsGetOptionalParams,\n ReplicationAlertSettingsGetResponse,\n ConfigureAlertRequest,\n ReplicationAlertSettingsCreateOptionalParams,\n ReplicationAlertSettingsCreateResponse,\n ReplicationAlertSettingsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationAlertSettings operations. */\nexport class ReplicationAlertSettingsImpl implements ReplicationAlertSettings {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationAlertSettings 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 email notification(alert) configurations for 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?: ReplicationAlertSettingsListOptionalParams,\n ): PagedAsyncIterableIterator<Alert> {\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?: ReplicationAlertSettingsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Alert[]> {\n let result: ReplicationAlertSettingsListResponse;\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?: ReplicationAlertSettingsListOptionalParams,\n ): AsyncIterableIterator<Alert> {\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 email notification(alert) configurations for 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?: ReplicationAlertSettingsListOptionalParams,\n ): Promise<ReplicationAlertSettingsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the details of the specified email notification(alert) configuration.\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 alertSettingName The name of the email notification configuration.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n alertSettingName: string,\n options?: ReplicationAlertSettingsGetOptionalParams,\n ): Promise<ReplicationAlertSettingsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, alertSettingName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update an email notification(alert) configuration.\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 alertSettingName The name of the email notification(alert) configuration.\n * @param request The input to configure the email notification(alert).\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n alertSettingName: string,\n request: ConfigureAlertRequest,\n options?: ReplicationAlertSettingsCreateOptionalParams,\n ): Promise<ReplicationAlertSettingsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, alertSettingName, request, 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?: ReplicationAlertSettingsListNextOptionalParams,\n ): Promise<ReplicationAlertSettingsListNextResponse> {\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}/replicationAlertSettings\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertCollection,\n },\n },\n queryParameters: [Parameters.apiVersion],\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}/replicationAlertSettings/{alertSettingName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.alertSettingName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAlertSettings/{alertSettingName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert,\n },\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.alertSettingName,\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.AlertCollection,\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";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing ReplicationAppliances operations. */
15
14
  export class ReplicationAppliancesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class ReplicationAppliances class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class ReplicationAppliancesImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(resourceGroupName, resourceName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
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 Azure Site Recovery appliances for the vault.
@@ -1 +1 @@
1
- {"version":3,"file":"replicationAppliances.js","sourceRoot":"","sources":["../../../src/operations/replicationAppliances.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;AAUtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAA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UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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,mBAAmB;SACxC;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 { ReplicationAppliances } 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 ReplicationAppliance,\n ReplicationAppliancesListNextOptionalParams,\n ReplicationAppliancesListOptionalParams,\n ReplicationAppliancesListResponse,\n ReplicationAppliancesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationAppliances operations. */\nexport class ReplicationAppliancesImpl implements ReplicationAppliances {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationAppliances 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 Azure Site Recovery appliances for 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?: ReplicationAppliancesListOptionalParams,\n ): PagedAsyncIterableIterator<ReplicationAppliance> {\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?: ReplicationAppliancesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ReplicationAppliance[]> {\n let result: ReplicationAppliancesListResponse;\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?: ReplicationAppliancesListOptionalParams,\n ): AsyncIterableIterator<ReplicationAppliance> {\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 Azure Site Recovery appliances for 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?: ReplicationAppliancesListOptionalParams,\n ): Promise<ReplicationAppliancesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\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?: ReplicationAppliancesListNextOptionalParams,\n ): Promise<ReplicationAppliancesListNextResponse> {\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}/replicationAppliances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplianceCollection,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplianceCollection,\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":"replicationAppliances.js","sourceRoot":"","sources":["../../../src/operations/replicationAppliances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;A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C,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,qJAAqJ;IAC3J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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,mBAAmB;SACxC;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 { ReplicationAppliances } 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 ReplicationAppliance,\n ReplicationAppliancesListNextOptionalParams,\n ReplicationAppliancesListOptionalParams,\n ReplicationAppliancesListResponse,\n ReplicationAppliancesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationAppliances operations. */\nexport class ReplicationAppliancesImpl implements ReplicationAppliances {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationAppliances 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 Azure Site Recovery appliances for 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?: ReplicationAppliancesListOptionalParams,\n ): PagedAsyncIterableIterator<ReplicationAppliance> {\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?: ReplicationAppliancesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ReplicationAppliance[]> {\n let result: ReplicationAppliancesListResponse;\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?: ReplicationAppliancesListOptionalParams,\n ): AsyncIterableIterator<ReplicationAppliance> {\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 Azure Site Recovery appliances for 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?: ReplicationAppliancesListOptionalParams,\n ): Promise<ReplicationAppliancesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\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?: ReplicationAppliancesListNextOptionalParams,\n ): Promise<ReplicationAppliancesListNextResponse> {\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}/replicationAppliances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplianceCollection,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplianceCollection,\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"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing ReplicationEligibilityResultsOperations operations. */
12
12
  export class ReplicationEligibilityResultsOperationsImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class ReplicationEligibilityResultsOperations class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"replicationEligibilityResultsOperations.js","sourceRoot":"","sources":["../../../src/operations/replicationEligibilityResultsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,2EAA2E;AAC3E,MAAM,OAAO,2CAA2C;IAKtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,iBAAyB,EACzB,kBAA0B,EAC1B,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAClD,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,kBAA0B,EAC1B,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAClD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,wMAAwM;IAC9M,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uCAAuC;SAC5D;KACF;IACD,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,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,gNAAgN;IACtN,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;KACF;IACD,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,kBAAkB;KAC9B;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 { ReplicationEligibilityResultsOperations } 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 ReplicationEligibilityResultsListOptionalParams,\n ReplicationEligibilityResultsListResponse,\n ReplicationEligibilityResultsGetOptionalParams,\n ReplicationEligibilityResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ReplicationEligibilityResultsOperations operations. */\nexport class ReplicationEligibilityResultsOperationsImpl\n implements ReplicationEligibilityResultsOperations\n{\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationEligibilityResultsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Validates whether a given VM can be protected or not in which case returns list of errors.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param virtualMachineName Virtual Machine name.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ReplicationEligibilityResultsListOptionalParams,\n ): Promise<ReplicationEligibilityResultsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Validates whether a given VM can be protected or not in which case returns list of errors.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param virtualMachineName Virtual Machine name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ReplicationEligibilityResultsGetOptionalParams,\n ): Promise<ReplicationEligibilityResultsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, options },\n getOperationSpec,\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.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationEligibilityResultsCollection,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationEligibilityResults,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"replicationEligibilityResultsOperations.js","sourceRoot":"","sources":["../../../src/operations/replicationEligibilityResultsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,2EAA2E;AAC3E,MAAM,OAAO,2CAA2C;IAGrC,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,iBAAyB,EACzB,kBAA0B,EAC1B,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAClD,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,kBAA0B,EAC1B,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAClD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,wMAAwM;IAC9M,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uCAAuC;SAC5D;KACF;IACD,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,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,gNAAgN;IACtN,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;KACF;IACD,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,kBAAkB;KAC9B;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 { ReplicationEligibilityResultsOperations } 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 ReplicationEligibilityResultsListOptionalParams,\n ReplicationEligibilityResultsListResponse,\n ReplicationEligibilityResultsGetOptionalParams,\n ReplicationEligibilityResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ReplicationEligibilityResultsOperations operations. */\nexport class ReplicationEligibilityResultsOperationsImpl\n implements ReplicationEligibilityResultsOperations\n{\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationEligibilityResultsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Validates whether a given VM can be protected or not in which case returns list of errors.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param virtualMachineName Virtual Machine name.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ReplicationEligibilityResultsListOptionalParams,\n ): Promise<ReplicationEligibilityResultsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Validates whether a given VM can be protected or not in which case returns list of errors.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param virtualMachineName Virtual Machine name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n virtualMachineName: string,\n options?: ReplicationEligibilityResultsGetOptionalParams,\n ): Promise<ReplicationEligibilityResultsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, virtualMachineName, options },\n getOperationSpec,\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.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationEligibilityResultsCollection,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.virtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}/providers/Microsoft.RecoveryServices/replicationEligibilityResults/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReplicationEligibilityResults,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.virtualMachineName,\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";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing ReplicationEvents operations. */
15
14
  export class ReplicationEventsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class ReplicationEvents class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class ReplicationEventsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(resourceGroupName, resourceName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
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 Azure Site Recovery events for the vault.
@@ -1 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U,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,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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,eAAe;SACpC;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 { ReplicationEvents } 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 Event,\n ReplicationEventsListNextOptionalParams,\n ReplicationEventsListOptionalParams,\n ReplicationEventsListResponse,\n ReplicationEventsGetOptionalParams,\n ReplicationEventsGetResponse,\n ReplicationEventsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationEvents operations. */\nexport class ReplicationEventsImpl implements ReplicationEvents {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationEvents 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 Azure Site Recovery events for 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?: ReplicationEventsListOptionalParams,\n ): PagedAsyncIterableIterator<Event> {\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?: ReplicationEventsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Event[]> {\n let result: ReplicationEventsListResponse;\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?: ReplicationEventsListOptionalParams,\n ): AsyncIterableIterator<Event> {\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 Azure Site Recovery events for 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?: ReplicationEventsListOptionalParams,\n ): Promise<ReplicationEventsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * The operation to get the details of an Azure Site recovery event.\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 eventName The name of the Azure Site Recovery event.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n eventName: string,\n options?: ReplicationEventsGetOptionalParams,\n ): Promise<ReplicationEventsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, eventName, options },\n getOperationSpec,\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?: ReplicationEventsListNextOptionalParams,\n ): Promise<ReplicationEventsListNextResponse> {\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}/replicationEvents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventCollection,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\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}/replicationEvents/{eventName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Event,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.eventName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventCollection,\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":"replicationEvents.js","sourceRoot":"","sources":["../../../src/operations/replicationEvents.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;AAYtD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IACf,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,OAA6C;QAE7C,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,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EA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,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,6JAA6J;IACnK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,KAAK;SAC1B;KACF;IACD,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,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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,eAAe;SACpC;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 { ReplicationEvents } 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 Event,\n ReplicationEventsListNextOptionalParams,\n ReplicationEventsListOptionalParams,\n ReplicationEventsListResponse,\n ReplicationEventsGetOptionalParams,\n ReplicationEventsGetResponse,\n ReplicationEventsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationEvents operations. */\nexport class ReplicationEventsImpl implements ReplicationEvents {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationEvents 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 Azure Site Recovery events for 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?: ReplicationEventsListOptionalParams,\n ): PagedAsyncIterableIterator<Event> {\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?: ReplicationEventsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Event[]> {\n let result: ReplicationEventsListResponse;\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?: ReplicationEventsListOptionalParams,\n ): AsyncIterableIterator<Event> {\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 Azure Site Recovery events for 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?: ReplicationEventsListOptionalParams,\n ): Promise<ReplicationEventsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * The operation to get the details of an Azure Site recovery event.\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 eventName The name of the Azure Site Recovery event.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n eventName: string,\n options?: ReplicationEventsGetOptionalParams,\n ): Promise<ReplicationEventsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, eventName, options },\n getOperationSpec,\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?: ReplicationEventsListNextOptionalParams,\n ): Promise<ReplicationEventsListNextResponse> {\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}/replicationEvents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventCollection,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\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}/replicationEvents/{eventName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Event,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.eventName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventCollection,\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"]}