@azure/arm-recoveryservices-siterecovery 5.3.0-alpha.20250618.1 → 5.3.0-alpha.20250718.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +2903 -1357
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/clusterRecoveryPointOperations.js +1 -0
  6. package/dist/browser/operations/clusterRecoveryPointOperations.js.map +1 -1
  7. package/dist/browser/operations/clusterRecoveryPoints.js +23 -40
  8. package/dist/browser/operations/clusterRecoveryPoints.js.map +1 -1
  9. package/dist/browser/operations/migrationRecoveryPoints.js +23 -40
  10. package/dist/browser/operations/migrationRecoveryPoints.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/recoveryPoints.js +23 -40
  14. package/dist/browser/operations/recoveryPoints.js.map +1 -1
  15. package/dist/browser/operations/replicationAlertSettings.js +23 -40
  16. package/dist/browser/operations/replicationAlertSettings.js.map +1 -1
  17. package/dist/browser/operations/replicationAppliances.js +23 -40
  18. package/dist/browser/operations/replicationAppliances.js.map +1 -1
  19. package/dist/browser/operations/replicationEligibilityResultsOperations.js +1 -0
  20. package/dist/browser/operations/replicationEligibilityResultsOperations.js.map +1 -1
  21. package/dist/browser/operations/replicationEvents.js +23 -40
  22. package/dist/browser/operations/replicationEvents.js.map +1 -1
  23. package/dist/browser/operations/replicationFabrics.js +111 -88
  24. package/dist/browser/operations/replicationFabrics.js.map +1 -1
  25. package/dist/browser/operations/replicationJobs.js +67 -64
  26. package/dist/browser/operations/replicationJobs.js.map +1 -1
  27. package/dist/browser/operations/replicationLogicalNetworks.js +23 -40
  28. package/dist/browser/operations/replicationLogicalNetworks.js.map +1 -1
  29. package/dist/browser/operations/replicationMigrationItems.js +144 -133
  30. package/dist/browser/operations/replicationMigrationItems.js.map +1 -1
  31. package/dist/browser/operations/replicationNetworkMappings.js +78 -97
  32. package/dist/browser/operations/replicationNetworkMappings.js.map +1 -1
  33. package/dist/browser/operations/replicationNetworks.js +45 -79
  34. package/dist/browser/operations/replicationNetworks.js.map +1 -1
  35. package/dist/browser/operations/replicationPolicies.js +56 -58
  36. package/dist/browser/operations/replicationPolicies.js.map +1 -1
  37. package/dist/browser/operations/replicationProtectableItems.js +23 -40
  38. package/dist/browser/operations/replicationProtectableItems.js.map +1 -1
  39. package/dist/browser/operations/replicationProtectedItems.js +254 -193
  40. package/dist/browser/operations/replicationProtectedItems.js.map +1 -1
  41. package/dist/browser/operations/replicationProtectionClusters.js +133 -127
  42. package/dist/browser/operations/replicationProtectionClusters.js.map +1 -1
  43. package/dist/browser/operations/replicationProtectionContainerMappings.js +89 -103
  44. package/dist/browser/operations/replicationProtectionContainerMappings.js.map +1 -1
  45. package/dist/browser/operations/replicationProtectionContainers.js +100 -109
  46. package/dist/browser/operations/replicationProtectionContainers.js.map +1 -1
  47. package/dist/browser/operations/replicationProtectionIntents.js +23 -40
  48. package/dist/browser/operations/replicationProtectionIntents.js.map +1 -1
  49. package/dist/browser/operations/replicationRecoveryPlans.js +133 -100
  50. package/dist/browser/operations/replicationRecoveryPlans.js.map +1 -1
  51. package/dist/browser/operations/replicationRecoveryServicesProviders.js +89 -103
  52. package/dist/browser/operations/replicationRecoveryServicesProviders.js.map +1 -1
  53. package/dist/browser/operations/replicationStorageClassificationMappings.js +67 -91
  54. package/dist/browser/operations/replicationStorageClassificationMappings.js.map +1 -1
  55. package/dist/browser/operations/replicationStorageClassifications.js +45 -79
  56. package/dist/browser/operations/replicationStorageClassifications.js.map +1 -1
  57. package/dist/browser/operations/replicationVaultHealth.js +12 -6
  58. package/dist/browser/operations/replicationVaultHealth.js.map +1 -1
  59. package/dist/browser/operations/replicationVaultSetting.js +34 -46
  60. package/dist/browser/operations/replicationVaultSetting.js.map +1 -1
  61. package/dist/browser/operations/replicationvCenters.js +78 -97
  62. package/dist/browser/operations/replicationvCenters.js.map +1 -1
  63. package/dist/browser/operations/supportedOperatingSystemsOperations.js +1 -0
  64. package/dist/browser/operations/supportedOperatingSystemsOperations.js.map +1 -1
  65. package/dist/browser/operations/targetComputeSizes.js +23 -40
  66. package/dist/browser/operations/targetComputeSizes.js.map +1 -1
  67. package/dist/browser/pagingHelper.js +2 -4
  68. package/dist/browser/pagingHelper.js.map +1 -1
  69. package/dist/browser/siteRecoveryManagementClient.js +44 -5
  70. package/dist/browser/siteRecoveryManagementClient.js.map +1 -1
  71. package/dist/commonjs/lroImpl.js +7 -3
  72. package/dist/commonjs/lroImpl.js.map +1 -1
  73. package/dist/commonjs/models/mappers.js +2903 -1357
  74. package/dist/commonjs/models/mappers.js.map +1 -1
  75. package/dist/commonjs/operations/clusterRecoveryPointOperations.js +1 -0
  76. package/dist/commonjs/operations/clusterRecoveryPointOperations.js.map +1 -1
  77. package/dist/commonjs/operations/clusterRecoveryPoints.js +23 -39
  78. package/dist/commonjs/operations/clusterRecoveryPoints.js.map +1 -1
  79. package/dist/commonjs/operations/migrationRecoveryPoints.js +23 -39
  80. package/dist/commonjs/operations/migrationRecoveryPoints.js.map +1 -1
  81. package/dist/commonjs/operations/operations.js +23 -39
  82. package/dist/commonjs/operations/operations.js.map +1 -1
  83. package/dist/commonjs/operations/recoveryPoints.js +23 -39
  84. package/dist/commonjs/operations/recoveryPoints.js.map +1 -1
  85. package/dist/commonjs/operations/replicationAlertSettings.js +23 -39
  86. package/dist/commonjs/operations/replicationAlertSettings.js.map +1 -1
  87. package/dist/commonjs/operations/replicationAppliances.js +23 -39
  88. package/dist/commonjs/operations/replicationAppliances.js.map +1 -1
  89. package/dist/commonjs/operations/replicationEligibilityResultsOperations.js +1 -0
  90. package/dist/commonjs/operations/replicationEligibilityResultsOperations.js.map +1 -1
  91. package/dist/commonjs/operations/replicationEvents.js +23 -39
  92. package/dist/commonjs/operations/replicationEvents.js.map +1 -1
  93. package/dist/commonjs/operations/replicationFabrics.js +111 -87
  94. package/dist/commonjs/operations/replicationFabrics.js.map +1 -1
  95. package/dist/commonjs/operations/replicationJobs.js +67 -63
  96. package/dist/commonjs/operations/replicationJobs.js.map +1 -1
  97. package/dist/commonjs/operations/replicationLogicalNetworks.js +23 -39
  98. package/dist/commonjs/operations/replicationLogicalNetworks.js.map +1 -1
  99. package/dist/commonjs/operations/replicationMigrationItems.js +144 -132
  100. package/dist/commonjs/operations/replicationMigrationItems.js.map +1 -1
  101. package/dist/commonjs/operations/replicationNetworkMappings.js +78 -96
  102. package/dist/commonjs/operations/replicationNetworkMappings.js.map +1 -1
  103. package/dist/commonjs/operations/replicationNetworks.js +45 -78
  104. package/dist/commonjs/operations/replicationNetworks.js.map +1 -1
  105. package/dist/commonjs/operations/replicationPolicies.js +56 -57
  106. package/dist/commonjs/operations/replicationPolicies.js.map +1 -1
  107. package/dist/commonjs/operations/replicationProtectableItems.js +23 -39
  108. package/dist/commonjs/operations/replicationProtectableItems.js.map +1 -1
  109. package/dist/commonjs/operations/replicationProtectedItems.js +254 -192
  110. package/dist/commonjs/operations/replicationProtectedItems.js.map +1 -1
  111. package/dist/commonjs/operations/replicationProtectionClusters.js +133 -126
  112. package/dist/commonjs/operations/replicationProtectionClusters.js.map +1 -1
  113. package/dist/commonjs/operations/replicationProtectionContainerMappings.js +89 -102
  114. package/dist/commonjs/operations/replicationProtectionContainerMappings.js.map +1 -1
  115. package/dist/commonjs/operations/replicationProtectionContainers.js +100 -108
  116. package/dist/commonjs/operations/replicationProtectionContainers.js.map +1 -1
  117. package/dist/commonjs/operations/replicationProtectionIntents.js +23 -39
  118. package/dist/commonjs/operations/replicationProtectionIntents.js.map +1 -1
  119. package/dist/commonjs/operations/replicationRecoveryPlans.js +133 -99
  120. package/dist/commonjs/operations/replicationRecoveryPlans.js.map +1 -1
  121. package/dist/commonjs/operations/replicationRecoveryServicesProviders.js +89 -102
  122. package/dist/commonjs/operations/replicationRecoveryServicesProviders.js.map +1 -1
  123. package/dist/commonjs/operations/replicationStorageClassificationMappings.js +67 -90
  124. package/dist/commonjs/operations/replicationStorageClassificationMappings.js.map +1 -1
  125. package/dist/commonjs/operations/replicationStorageClassifications.js +45 -78
  126. package/dist/commonjs/operations/replicationStorageClassifications.js.map +1 -1
  127. package/dist/commonjs/operations/replicationVaultHealth.js +12 -6
  128. package/dist/commonjs/operations/replicationVaultHealth.js.map +1 -1
  129. package/dist/commonjs/operations/replicationVaultSetting.js +34 -45
  130. package/dist/commonjs/operations/replicationVaultSetting.js.map +1 -1
  131. package/dist/commonjs/operations/replicationvCenters.js +78 -96
  132. package/dist/commonjs/operations/replicationvCenters.js.map +1 -1
  133. package/dist/commonjs/operations/supportedOperatingSystemsOperations.js +1 -0
  134. package/dist/commonjs/operations/supportedOperatingSystemsOperations.js.map +1 -1
  135. package/dist/commonjs/operations/targetComputeSizes.js +23 -39
  136. package/dist/commonjs/operations/targetComputeSizes.js.map +1 -1
  137. package/dist/commonjs/pagingHelper.js +2 -4
  138. package/dist/commonjs/pagingHelper.js.map +1 -1
  139. package/dist/commonjs/siteRecoveryManagementClient.js +44 -5
  140. package/dist/commonjs/siteRecoveryManagementClient.js.map +1 -1
  141. package/dist/commonjs/tsdoc-metadata.json +11 -11
  142. package/dist/esm/lroImpl.js +7 -3
  143. package/dist/esm/lroImpl.js.map +1 -1
  144. package/dist/esm/models/mappers.js +2903 -1357
  145. package/dist/esm/models/mappers.js.map +1 -1
  146. package/dist/esm/operations/clusterRecoveryPointOperations.js +1 -0
  147. package/dist/esm/operations/clusterRecoveryPointOperations.js.map +1 -1
  148. package/dist/esm/operations/clusterRecoveryPoints.js +23 -40
  149. package/dist/esm/operations/clusterRecoveryPoints.js.map +1 -1
  150. package/dist/esm/operations/migrationRecoveryPoints.js +23 -40
  151. package/dist/esm/operations/migrationRecoveryPoints.js.map +1 -1
  152. package/dist/esm/operations/operations.js +23 -40
  153. package/dist/esm/operations/operations.js.map +1 -1
  154. package/dist/esm/operations/recoveryPoints.js +23 -40
  155. package/dist/esm/operations/recoveryPoints.js.map +1 -1
  156. package/dist/esm/operations/replicationAlertSettings.js +23 -40
  157. package/dist/esm/operations/replicationAlertSettings.js.map +1 -1
  158. package/dist/esm/operations/replicationAppliances.js +23 -40
  159. package/dist/esm/operations/replicationAppliances.js.map +1 -1
  160. package/dist/esm/operations/replicationEligibilityResultsOperations.js +1 -0
  161. package/dist/esm/operations/replicationEligibilityResultsOperations.js.map +1 -1
  162. package/dist/esm/operations/replicationEvents.js +23 -40
  163. package/dist/esm/operations/replicationEvents.js.map +1 -1
  164. package/dist/esm/operations/replicationFabrics.js +111 -88
  165. package/dist/esm/operations/replicationFabrics.js.map +1 -1
  166. package/dist/esm/operations/replicationJobs.js +67 -64
  167. package/dist/esm/operations/replicationJobs.js.map +1 -1
  168. package/dist/esm/operations/replicationLogicalNetworks.js +23 -40
  169. package/dist/esm/operations/replicationLogicalNetworks.js.map +1 -1
  170. package/dist/esm/operations/replicationMigrationItems.js +144 -133
  171. package/dist/esm/operations/replicationMigrationItems.js.map +1 -1
  172. package/dist/esm/operations/replicationNetworkMappings.js +78 -97
  173. package/dist/esm/operations/replicationNetworkMappings.js.map +1 -1
  174. package/dist/esm/operations/replicationNetworks.js +45 -79
  175. package/dist/esm/operations/replicationNetworks.js.map +1 -1
  176. package/dist/esm/operations/replicationPolicies.js +56 -58
  177. package/dist/esm/operations/replicationPolicies.js.map +1 -1
  178. package/dist/esm/operations/replicationProtectableItems.js +23 -40
  179. package/dist/esm/operations/replicationProtectableItems.js.map +1 -1
  180. package/dist/esm/operations/replicationProtectedItems.js +254 -193
  181. package/dist/esm/operations/replicationProtectedItems.js.map +1 -1
  182. package/dist/esm/operations/replicationProtectionClusters.js +133 -127
  183. package/dist/esm/operations/replicationProtectionClusters.js.map +1 -1
  184. package/dist/esm/operations/replicationProtectionContainerMappings.js +89 -103
  185. package/dist/esm/operations/replicationProtectionContainerMappings.js.map +1 -1
  186. package/dist/esm/operations/replicationProtectionContainers.js +100 -109
  187. package/dist/esm/operations/replicationProtectionContainers.js.map +1 -1
  188. package/dist/esm/operations/replicationProtectionIntents.js +23 -40
  189. package/dist/esm/operations/replicationProtectionIntents.js.map +1 -1
  190. package/dist/esm/operations/replicationRecoveryPlans.js +133 -100
  191. package/dist/esm/operations/replicationRecoveryPlans.js.map +1 -1
  192. package/dist/esm/operations/replicationRecoveryServicesProviders.js +89 -103
  193. package/dist/esm/operations/replicationRecoveryServicesProviders.js.map +1 -1
  194. package/dist/esm/operations/replicationStorageClassificationMappings.js +67 -91
  195. package/dist/esm/operations/replicationStorageClassificationMappings.js.map +1 -1
  196. package/dist/esm/operations/replicationStorageClassifications.js +45 -79
  197. package/dist/esm/operations/replicationStorageClassifications.js.map +1 -1
  198. package/dist/esm/operations/replicationVaultHealth.js +12 -6
  199. package/dist/esm/operations/replicationVaultHealth.js.map +1 -1
  200. package/dist/esm/operations/replicationVaultSetting.js +34 -46
  201. package/dist/esm/operations/replicationVaultSetting.js.map +1 -1
  202. package/dist/esm/operations/replicationvCenters.js +78 -97
  203. package/dist/esm/operations/replicationvCenters.js.map +1 -1
  204. package/dist/esm/operations/supportedOperatingSystemsOperations.js +1 -0
  205. package/dist/esm/operations/supportedOperatingSystemsOperations.js.map +1 -1
  206. package/dist/esm/operations/targetComputeSizes.js +23 -40
  207. package/dist/esm/operations/targetComputeSizes.js.map +1 -1
  208. package/dist/esm/pagingHelper.js +2 -4
  209. package/dist/esm/pagingHelper.js.map +1 -1
  210. package/dist/esm/siteRecoveryManagementClient.js +44 -5
  211. package/dist/esm/siteRecoveryManagementClient.js.map +1 -1
  212. package/dist/react-native/lroImpl.js +7 -3
  213. package/dist/react-native/lroImpl.js.map +1 -1
  214. package/dist/react-native/models/mappers.js +2903 -1357
  215. package/dist/react-native/models/mappers.js.map +1 -1
  216. package/dist/react-native/operations/clusterRecoveryPointOperations.js +1 -0
  217. package/dist/react-native/operations/clusterRecoveryPointOperations.js.map +1 -1
  218. package/dist/react-native/operations/clusterRecoveryPoints.js +23 -40
  219. package/dist/react-native/operations/clusterRecoveryPoints.js.map +1 -1
  220. package/dist/react-native/operations/migrationRecoveryPoints.js +23 -40
  221. package/dist/react-native/operations/migrationRecoveryPoints.js.map +1 -1
  222. package/dist/react-native/operations/operations.js +23 -40
  223. package/dist/react-native/operations/operations.js.map +1 -1
  224. package/dist/react-native/operations/recoveryPoints.js +23 -40
  225. package/dist/react-native/operations/recoveryPoints.js.map +1 -1
  226. package/dist/react-native/operations/replicationAlertSettings.js +23 -40
  227. package/dist/react-native/operations/replicationAlertSettings.js.map +1 -1
  228. package/dist/react-native/operations/replicationAppliances.js +23 -40
  229. package/dist/react-native/operations/replicationAppliances.js.map +1 -1
  230. package/dist/react-native/operations/replicationEligibilityResultsOperations.js +1 -0
  231. package/dist/react-native/operations/replicationEligibilityResultsOperations.js.map +1 -1
  232. package/dist/react-native/operations/replicationEvents.js +23 -40
  233. package/dist/react-native/operations/replicationEvents.js.map +1 -1
  234. package/dist/react-native/operations/replicationFabrics.js +111 -88
  235. package/dist/react-native/operations/replicationFabrics.js.map +1 -1
  236. package/dist/react-native/operations/replicationJobs.js +67 -64
  237. package/dist/react-native/operations/replicationJobs.js.map +1 -1
  238. package/dist/react-native/operations/replicationLogicalNetworks.js +23 -40
  239. package/dist/react-native/operations/replicationLogicalNetworks.js.map +1 -1
  240. package/dist/react-native/operations/replicationMigrationItems.js +144 -133
  241. package/dist/react-native/operations/replicationMigrationItems.js.map +1 -1
  242. package/dist/react-native/operations/replicationNetworkMappings.js +78 -97
  243. package/dist/react-native/operations/replicationNetworkMappings.js.map +1 -1
  244. package/dist/react-native/operations/replicationNetworks.js +45 -79
  245. package/dist/react-native/operations/replicationNetworks.js.map +1 -1
  246. package/dist/react-native/operations/replicationPolicies.js +56 -58
  247. package/dist/react-native/operations/replicationPolicies.js.map +1 -1
  248. package/dist/react-native/operations/replicationProtectableItems.js +23 -40
  249. package/dist/react-native/operations/replicationProtectableItems.js.map +1 -1
  250. package/dist/react-native/operations/replicationProtectedItems.js +254 -193
  251. package/dist/react-native/operations/replicationProtectedItems.js.map +1 -1
  252. package/dist/react-native/operations/replicationProtectionClusters.js +133 -127
  253. package/dist/react-native/operations/replicationProtectionClusters.js.map +1 -1
  254. package/dist/react-native/operations/replicationProtectionContainerMappings.js +89 -103
  255. package/dist/react-native/operations/replicationProtectionContainerMappings.js.map +1 -1
  256. package/dist/react-native/operations/replicationProtectionContainers.js +100 -109
  257. package/dist/react-native/operations/replicationProtectionContainers.js.map +1 -1
  258. package/dist/react-native/operations/replicationProtectionIntents.js +23 -40
  259. package/dist/react-native/operations/replicationProtectionIntents.js.map +1 -1
  260. package/dist/react-native/operations/replicationRecoveryPlans.js +133 -100
  261. package/dist/react-native/operations/replicationRecoveryPlans.js.map +1 -1
  262. package/dist/react-native/operations/replicationRecoveryServicesProviders.js +89 -103
  263. package/dist/react-native/operations/replicationRecoveryServicesProviders.js.map +1 -1
  264. package/dist/react-native/operations/replicationStorageClassificationMappings.js +67 -91
  265. package/dist/react-native/operations/replicationStorageClassificationMappings.js.map +1 -1
  266. package/dist/react-native/operations/replicationStorageClassifications.js +45 -79
  267. package/dist/react-native/operations/replicationStorageClassifications.js.map +1 -1
  268. package/dist/react-native/operations/replicationVaultHealth.js +12 -6
  269. package/dist/react-native/operations/replicationVaultHealth.js.map +1 -1
  270. package/dist/react-native/operations/replicationVaultSetting.js +34 -46
  271. package/dist/react-native/operations/replicationVaultSetting.js.map +1 -1
  272. package/dist/react-native/operations/replicationvCenters.js +78 -97
  273. package/dist/react-native/operations/replicationvCenters.js.map +1 -1
  274. package/dist/react-native/operations/supportedOperatingSystemsOperations.js +1 -0
  275. package/dist/react-native/operations/supportedOperatingSystemsOperations.js.map +1 -1
  276. package/dist/react-native/operations/targetComputeSizes.js +23 -40
  277. package/dist/react-native/operations/targetComputeSizes.js.map +1 -1
  278. package/dist/react-native/pagingHelper.js +2 -4
  279. package/dist/react-native/pagingHelper.js.map +1 -1
  280. package/dist/react-native/siteRecoveryManagementClient.js +44 -5
  281. package/dist/react-native/siteRecoveryManagementClient.js.map +1 -1
  282. package/package.json +2 -2
  283. /package/review/{arm-recoveryservices-siterecovery.api.md → arm-recoveryservices-siterecovery-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"replicationNetworks.js","sourceRoot":"","sources":["../../../src/operations/replicationNetworks.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IAGlC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,wBAAwB,CAC7B,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,OAAmE;QAEnE,MAAM,IAAI,GAAG,IAAI,CAAC,iCAAiC,CACjD,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,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,kCAAkC,CAC5C,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,kCAAkC,CAC/C,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,OAAmE,EACnE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A6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;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 { ReplicationNetworks } 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 Network,\n ReplicationNetworksListByReplicationFabricsNextOptionalParams,\n ReplicationNetworksListByReplicationFabricsOptionalParams,\n ReplicationNetworksListByReplicationFabricsResponse,\n ReplicationNetworksListNextOptionalParams,\n ReplicationNetworksListOptionalParams,\n ReplicationNetworksListResponse,\n ReplicationNetworksGetOptionalParams,\n ReplicationNetworksGetResponse,\n ReplicationNetworksListByReplicationFabricsNextResponse,\n ReplicationNetworksListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationNetworks operations. */\nexport class ReplicationNetworksImpl implements ReplicationNetworks {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationNetworks class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the networks available for a fabric.\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 Fabric name.\n * @param options The options parameters.\n */\n public listByReplicationFabrics(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n options?: ReplicationNetworksListByReplicationFabricsOptionalParams,\n ): PagedAsyncIterableIterator<Network> {\n const iter = this.listByReplicationFabricsPagingAll(\n resourceGroupName,\n resourceName,\n fabricName,\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.listByReplicationFabricsPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByReplicationFabricsPagingPage(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n options?: ReplicationNetworksListByReplicationFabricsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Network[]> {\n let result: ReplicationNetworksListByReplicationFabricsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReplicationFabrics(\n resourceGroupName,\n resourceName,\n fabricName,\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._listByReplicationFabricsNext(\n resourceGroupName,\n resourceName,\n fabricName,\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 *listByReplicationFabricsPagingAll(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n options?: ReplicationNetworksListByReplicationFabricsOptionalParams,\n ): AsyncIterableIterator<Network> {\n for await (const page of this.listByReplicationFabricsPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the networks available in a 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?: ReplicationNetworksListOptionalParams,\n ): PagedAsyncIterableIterator<Network> {\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?: ReplicationNetworksListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Network[]> {\n let result: ReplicationNetworksListResponse;\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?: ReplicationNetworksListOptionalParams,\n ): AsyncIterableIterator<Network> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the networks available for a fabric.\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 Fabric name.\n * @param options The options parameters.\n */\n private _listByReplicationFabrics(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n options?: ReplicationNetworksListByReplicationFabricsOptionalParams,\n ): Promise<ReplicationNetworksListByReplicationFabricsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, fabricName, options },\n listByReplicationFabricsOperationSpec,\n );\n }\n\n /**\n * Gets the details of a network.\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 Server Id.\n * @param networkName Primary network name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n networkName: string,\n options?: ReplicationNetworksGetOptionalParams,\n ): Promise<ReplicationNetworksGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, fabricName, networkName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists the networks available in a 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?: ReplicationNetworksListOptionalParams,\n ): Promise<ReplicationNetworksListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListByReplicationFabricsNext\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 Fabric name.\n * @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics\n * method.\n * @param options The options parameters.\n */\n private _listByReplicationFabricsNext(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n nextLink: string,\n options?: ReplicationNetworksListByReplicationFabricsNextOptionalParams,\n ): Promise<ReplicationNetworksListByReplicationFabricsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, fabricName, nextLink, options },\n listByReplicationFabricsNextOperationSpec,\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?: ReplicationNetworksListNextOptionalParams,\n ): Promise<ReplicationNetworksListNextResponse> {\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 listByReplicationFabricsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkCollection,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.fabricName,\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}/replicationNetworks/{networkName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Network,\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.networkName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkCollection,\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 listByReplicationFabricsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkCollection,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceName,\n Parameters.fabricName,\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.NetworkCollection,\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":"replicationNetworks.js","sourceRoot":"","sources":["../../../src/operations/replicationNetworks.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IACjB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,wBAAwB,CAC7B,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,OAAmE;QAEnE,MAAM,IAAI,GAAG,IAAI,CAAC,iCAAiC,CACjD,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,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,EAAE,WAAW,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ACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;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 { ReplicationNetworks } 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 Network,\n ReplicationNetworksListByReplicationFabricsNextOptionalParams,\n ReplicationNetworksListByReplicationFabricsOptionalParams,\n ReplicationNetworksListByReplicationFabricsResponse,\n ReplicationNetworksListNextOptionalParams,\n ReplicationNetworksListOptionalParams,\n ReplicationNetworksListResponse,\n ReplicationNetworksGetOptionalParams,\n ReplicationNetworksGetResponse,\n ReplicationNetworksListByReplicationFabricsNextResponse,\n ReplicationNetworksListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationNetworks operations. */\nexport class ReplicationNetworksImpl implements ReplicationNetworks {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationNetworks class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the networks available for a fabric.\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 Fabric name.\n * @param options The options parameters.\n */\n public listByReplicationFabrics(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n options?: ReplicationNetworksListByReplicationFabricsOptionalParams,\n ): PagedAsyncIterableIterator<Network> {\n const iter = this.listByReplicationFabricsPagingAll(\n resourceGroupName,\n resourceName,\n fabricName,\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.listByReplicationFabricsPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByReplicationFabricsPagingPage(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n options?: ReplicationNetworksListByReplicationFabricsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Network[]> {\n let result: ReplicationNetworksListByReplicationFabricsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReplicationFabrics(\n resourceGroupName,\n resourceName,\n fabricName,\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._listByReplicationFabricsNext(\n resourceGroupName,\n resourceName,\n fabricName,\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 *listByReplicationFabricsPagingAll(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n options?: ReplicationNetworksListByReplicationFabricsOptionalParams,\n ): AsyncIterableIterator<Network> {\n for await (const page of this.listByReplicationFabricsPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the networks available in a 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?: ReplicationNetworksListOptionalParams,\n ): PagedAsyncIterableIterator<Network> {\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?: ReplicationNetworksListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Network[]> {\n let result: ReplicationNetworksListResponse;\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?: ReplicationNetworksListOptionalParams,\n ): AsyncIterableIterator<Network> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the networks available for a fabric.\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 Fabric name.\n * @param options The options parameters.\n */\n private _listByReplicationFabrics(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n options?: ReplicationNetworksListByReplicationFabricsOptionalParams,\n ): Promise<ReplicationNetworksListByReplicationFabricsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, fabricName, options },\n listByReplicationFabricsOperationSpec,\n );\n }\n\n /**\n * Gets the details of a network.\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 Server Id.\n * @param networkName Primary network name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n networkName: string,\n options?: ReplicationNetworksGetOptionalParams,\n ): Promise<ReplicationNetworksGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, fabricName, networkName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists the networks available in a 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?: ReplicationNetworksListOptionalParams,\n ): Promise<ReplicationNetworksListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListByReplicationFabricsNext\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 Fabric name.\n * @param nextLink The nextLink from the previous successful call to the ListByReplicationFabrics\n * method.\n * @param options The options parameters.\n */\n private _listByReplicationFabricsNext(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n nextLink: string,\n options?: ReplicationNetworksListByReplicationFabricsNextOptionalParams,\n ): Promise<ReplicationNetworksListByReplicationFabricsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, fabricName, nextLink, options },\n listByReplicationFabricsNextOperationSpec,\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?: ReplicationNetworksListNextOptionalParams,\n ): Promise<ReplicationNetworksListNextResponse> {\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 listByReplicationFabricsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkCollection,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.fabricName,\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}/replicationNetworks/{networkName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Network,\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.networkName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkCollection,\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 listByReplicationFabricsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.NetworkCollection,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceName,\n Parameters.fabricName,\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.NetworkCollection,\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"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing ReplicationPolicies operations. */
20
20
  class ReplicationPoliciesImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class ReplicationPolicies class.
23
24
  * @param client Reference to the service client
@@ -42,52 +43,35 @@ class ReplicationPoliciesImpl {
42
43
  return this;
43
44
  },
44
45
  byPage: (settings) => {
45
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ if (settings?.maxPageSize) {
46
47
  throw new Error("maxPageSize is not supported by this operation.");
47
48
  }
48
49
  return this.listPagingPage(resourceGroupName, resourceName, options, settings);
49
50
  },
50
51
  };
51
52
  }
52
- listPagingPage(resourceGroupName, resourceName, options, settings) {
53
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
54
- let result;
55
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
- if (!continuationToken) {
57
- result = yield tslib_1.__await(this._list(resourceGroupName, resourceName, options));
58
- let page = result.value || [];
59
- continuationToken = result.nextLink;
60
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
- yield yield tslib_1.__await(page);
62
- }
63
- while (continuationToken) {
64
- result = yield tslib_1.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
65
- continuationToken = result.nextLink;
66
- let page = result.value || [];
67
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
- yield yield tslib_1.__await(page);
69
- }
70
- });
53
+ async *listPagingPage(resourceGroupName, resourceName, options, settings) {
54
+ let result;
55
+ let continuationToken = settings?.continuationToken;
56
+ if (!continuationToken) {
57
+ result = await this._list(resourceGroupName, resourceName, options);
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield page;
62
+ }
63
+ while (continuationToken) {
64
+ result = await this._listNext(resourceGroupName, resourceName, continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield page;
69
+ }
71
70
  }
72
- listPagingAll(resourceGroupName, resourceName, options) {
73
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
74
- var _a, e_1, _b, _c;
75
- try {
76
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
- _c = _f.value;
78
- _d = false;
79
- const page = _c;
80
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
- }
82
- }
83
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
- finally {
85
- try {
86
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
- }
88
- finally { if (e_1) throw e_1.error; }
89
- }
90
- });
71
+ async *listPagingAll(resourceGroupName, resourceName, options) {
72
+ for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
73
+ yield* page;
74
+ }
91
75
  }
92
76
  /**
93
77
  * Lists the replication policies for a vault.
@@ -124,14 +108,19 @@ class ReplicationPoliciesImpl {
124
108
  return this.client.sendOperationRequest(args, spec);
125
109
  };
126
110
  const sendOperationFn = async (args, spec) => {
127
- var _a;
128
111
  let currentRawResponse = undefined;
129
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
112
+ const providedCallback = args.options?.onResponse;
130
113
  const callback = (rawResponse, flatResponse) => {
131
114
  currentRawResponse = rawResponse;
132
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
115
+ providedCallback?.(rawResponse, flatResponse);
116
+ };
117
+ const updatedArgs = {
118
+ ...args,
119
+ options: {
120
+ ...args.options,
121
+ onResponse: callback,
122
+ },
133
123
  };
134
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
135
124
  const flatResponse = await directSendOperation(updatedArgs, spec);
136
125
  return {
137
126
  flatResponse,
@@ -148,8 +137,8 @@ class ReplicationPoliciesImpl {
148
137
  spec: createOperationSpec,
149
138
  });
150
139
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
151
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
152
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
140
+ restoreFrom: options?.resumeFrom,
141
+ intervalInMs: options?.updateIntervalInMs,
153
142
  });
154
143
  await poller.poll();
155
144
  return poller;
@@ -180,14 +169,19 @@ class ReplicationPoliciesImpl {
180
169
  return this.client.sendOperationRequest(args, spec);
181
170
  };
182
171
  const sendOperationFn = async (args, spec) => {
183
- var _a;
184
172
  let currentRawResponse = undefined;
185
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
173
+ const providedCallback = args.options?.onResponse;
186
174
  const callback = (rawResponse, flatResponse) => {
187
175
  currentRawResponse = rawResponse;
188
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
176
+ providedCallback?.(rawResponse, flatResponse);
177
+ };
178
+ const updatedArgs = {
179
+ ...args,
180
+ options: {
181
+ ...args.options,
182
+ onResponse: callback,
183
+ },
189
184
  };
190
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
191
185
  const flatResponse = await directSendOperation(updatedArgs, spec);
192
186
  return {
193
187
  flatResponse,
@@ -204,8 +198,8 @@ class ReplicationPoliciesImpl {
204
198
  spec: deleteOperationSpec,
205
199
  });
206
200
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
207
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
208
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
201
+ restoreFrom: options?.resumeFrom,
202
+ intervalInMs: options?.updateIntervalInMs,
209
203
  });
210
204
  await poller.poll();
211
205
  return poller;
@@ -236,14 +230,19 @@ class ReplicationPoliciesImpl {
236
230
  return this.client.sendOperationRequest(args, spec);
237
231
  };
238
232
  const sendOperationFn = async (args, spec) => {
239
- var _a;
240
233
  let currentRawResponse = undefined;
241
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
234
+ const providedCallback = args.options?.onResponse;
242
235
  const callback = (rawResponse, flatResponse) => {
243
236
  currentRawResponse = rawResponse;
244
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
237
+ providedCallback?.(rawResponse, flatResponse);
238
+ };
239
+ const updatedArgs = {
240
+ ...args,
241
+ options: {
242
+ ...args.options,
243
+ onResponse: callback,
244
+ },
245
245
  };
246
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
247
246
  const flatResponse = await directSendOperation(updatedArgs, spec);
248
247
  return {
249
248
  flatResponse,
@@ -260,8 +259,8 @@ class ReplicationPoliciesImpl {
260
259
  spec: updateOperationSpec,
261
260
  });
262
261
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
263
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
264
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
262
+ restoreFrom: options?.resumeFrom,
263
+ intervalInMs: options?.updateIntervalInMs,
265
264
  });
266
265
  await poller.poll();
267
266
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"replicationPolicies.js","sourceRoot":"","sources":["../../../src/operations/replicationPolicies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAkB9C,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IAGlC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAA+C;QAE/C,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,YAAoB,EACpB,OAA+C,EAC/C,QAAuB;;YAEvB,IAAI,MAAuC,CAAC;YAC5C,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IA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X,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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 { ReplicationPolicies } 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 SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Policy,\n ReplicationPoliciesListNextOptionalParams,\n ReplicationPoliciesListOptionalParams,\n ReplicationPoliciesListResponse,\n ReplicationPoliciesGetOptionalParams,\n ReplicationPoliciesGetResponse,\n CreatePolicyInput,\n ReplicationPoliciesCreateOptionalParams,\n ReplicationPoliciesCreateResponse,\n ReplicationPoliciesDeleteOptionalParams,\n UpdatePolicyInput,\n ReplicationPoliciesUpdateOptionalParams,\n ReplicationPoliciesUpdateResponse,\n ReplicationPoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationPolicies operations. */\nexport class ReplicationPoliciesImpl implements ReplicationPolicies {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the replication policies for a 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?: ReplicationPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<Policy> {\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?: ReplicationPoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Policy[]> {\n let result: ReplicationPoliciesListResponse;\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?: ReplicationPoliciesListOptionalParams,\n ): AsyncIterableIterator<Policy> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the replication policies for a 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?: ReplicationPoliciesListOptionalParams,\n ): Promise<ReplicationPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the details of a replication policy.\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 policyName Replication policy name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n options?: ReplicationPoliciesGetOptionalParams,\n ): Promise<ReplicationPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, policyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The operation to create a replication policy.\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 policyName Replication policy name.\n * @param input Create policy input.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n input: CreatePolicyInput,\n options?: ReplicationPoliciesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ReplicationPoliciesCreateResponse>,\n ReplicationPoliciesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ReplicationPoliciesCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, resourceName, policyName, input, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ReplicationPoliciesCreateResponse,\n OperationState<ReplicationPoliciesCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to create a replication policy.\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 policyName Replication policy name.\n * @param input Create policy input.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n input: CreatePolicyInput,\n options?: ReplicationPoliciesCreateOptionalParams,\n ): Promise<ReplicationPoliciesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n resourceName,\n policyName,\n input,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to delete a replication policy.\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 policyName Replication policy name.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n options?: ReplicationPoliciesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, resourceName, policyName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to delete a replication policy.\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 policyName Replication policy name.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n options?: ReplicationPoliciesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n policyName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to update a replication policy.\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 policyName Policy Id.\n * @param input Update Policy Input.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n input: UpdatePolicyInput,\n options?: ReplicationPoliciesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ReplicationPoliciesUpdateResponse>,\n ReplicationPoliciesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ReplicationPoliciesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, resourceName, policyName, input, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ReplicationPoliciesUpdateResponse,\n OperationState<ReplicationPoliciesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to update a replication policy.\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 policyName Policy Id.\n * @param input Update Policy Input.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n input: UpdatePolicyInput,\n options?: ReplicationPoliciesUpdateOptionalParams,\n ): Promise<ReplicationPoliciesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n resourceName,\n policyName,\n input,\n options,\n );\n return poller.pollUntilDone();\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?: ReplicationPoliciesListNextOptionalParams,\n ): Promise<ReplicationPoliciesListNextResponse> {\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}/replicationPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PolicyCollection,\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}/replicationPolicies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Policy,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Policy,\n },\n 201: {\n bodyMapper: Mappers.Policy,\n },\n 202: {\n bodyMapper: Mappers.Policy,\n },\n 204: {\n bodyMapper: Mappers.Policy,\n },\n },\n requestBody: Parameters.input7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.policyName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Policy,\n },\n 201: {\n bodyMapper: Mappers.Policy,\n },\n 202: {\n bodyMapper: Mappers.Policy,\n },\n 204: {\n bodyMapper: Mappers.Policy,\n },\n },\n requestBody: Parameters.input8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.policyName,\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.PolicyCollection,\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":"replicationPolicies.js","sourceRoot":"","sources":["../../../src/operations/replicationPolicies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAkB9C,4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AAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,MAAM;SAC3B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,MAAM;SAC3B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,MAAM;SAC3B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,MAAM;SAC3B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,MAAM;IAC9B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,UAAU;KACtB;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,gBAAgB;SACrC;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 { ReplicationPolicies } 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 SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Policy,\n ReplicationPoliciesListNextOptionalParams,\n ReplicationPoliciesListOptionalParams,\n ReplicationPoliciesListResponse,\n ReplicationPoliciesGetOptionalParams,\n ReplicationPoliciesGetResponse,\n CreatePolicyInput,\n ReplicationPoliciesCreateOptionalParams,\n ReplicationPoliciesCreateResponse,\n ReplicationPoliciesDeleteOptionalParams,\n UpdatePolicyInput,\n ReplicationPoliciesUpdateOptionalParams,\n ReplicationPoliciesUpdateResponse,\n ReplicationPoliciesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationPolicies operations. */\nexport class ReplicationPoliciesImpl implements ReplicationPolicies {\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the replication policies for a 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?: ReplicationPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<Policy> {\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?: ReplicationPoliciesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Policy[]> {\n let result: ReplicationPoliciesListResponse;\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?: ReplicationPoliciesListOptionalParams,\n ): AsyncIterableIterator<Policy> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the replication policies for a 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?: ReplicationPoliciesListOptionalParams,\n ): Promise<ReplicationPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the details of a replication policy.\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 policyName Replication policy name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n options?: ReplicationPoliciesGetOptionalParams,\n ): Promise<ReplicationPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, policyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The operation to create a replication policy.\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 policyName Replication policy name.\n * @param input Create policy input.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n input: CreatePolicyInput,\n options?: ReplicationPoliciesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ReplicationPoliciesCreateResponse>,\n ReplicationPoliciesCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ReplicationPoliciesCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, resourceName, policyName, input, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n ReplicationPoliciesCreateResponse,\n OperationState<ReplicationPoliciesCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to create a replication policy.\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 policyName Replication policy name.\n * @param input Create policy input.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n input: CreatePolicyInput,\n options?: ReplicationPoliciesCreateOptionalParams,\n ): Promise<ReplicationPoliciesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n resourceName,\n policyName,\n input,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to delete a replication policy.\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 policyName Replication policy name.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n options?: ReplicationPoliciesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, resourceName, policyName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to delete a replication policy.\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 policyName Replication policy name.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n options?: ReplicationPoliciesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n policyName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * The operation to update a replication policy.\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 policyName Policy Id.\n * @param input Update Policy Input.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n input: UpdatePolicyInput,\n options?: ReplicationPoliciesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ReplicationPoliciesUpdateResponse>,\n ReplicationPoliciesUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ReplicationPoliciesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, resourceName, policyName, input, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ReplicationPoliciesUpdateResponse,\n OperationState<ReplicationPoliciesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * The operation to update a replication policy.\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 policyName Policy Id.\n * @param input Update Policy Input.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n policyName: string,\n input: UpdatePolicyInput,\n options?: ReplicationPoliciesUpdateOptionalParams,\n ): Promise<ReplicationPoliciesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n resourceName,\n policyName,\n input,\n options,\n );\n return poller.pollUntilDone();\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?: ReplicationPoliciesListNextOptionalParams,\n ): Promise<ReplicationPoliciesListNextResponse> {\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}/replicationPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PolicyCollection,\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}/replicationPolicies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Policy,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Policy,\n },\n 201: {\n bodyMapper: Mappers.Policy,\n },\n 202: {\n bodyMapper: Mappers.Policy,\n },\n 204: {\n bodyMapper: Mappers.Policy,\n },\n },\n requestBody: Parameters.input7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.policyName,\n ],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies/{policyName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Policy,\n },\n 201: {\n bodyMapper: Mappers.Policy,\n },\n 202: {\n bodyMapper: Mappers.Policy,\n },\n 204: {\n bodyMapper: Mappers.Policy,\n },\n },\n requestBody: Parameters.input8,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.policyName,\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.PolicyCollection,\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"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing ReplicationProtectableItems operations. */
18
18
  class ReplicationProtectableItemsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class ReplicationProtectableItems class.
21
22
  * @param client Reference to the service client
@@ -42,52 +43,35 @@ class ReplicationProtectableItemsImpl {
42
43
  return this;
43
44
  },
44
45
  byPage: (settings) => {
45
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ if (settings?.maxPageSize) {
46
47
  throw new Error("maxPageSize is not supported by this operation.");
47
48
  }
48
49
  return this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings);
49
50
  },
50
51
  };
51
52
  }
52
- listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings) {
53
- return tslib_1.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
54
- let result;
55
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
- if (!continuationToken) {
57
- result = yield tslib_1.__await(this._listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, options));
58
- let page = result.value || [];
59
- continuationToken = result.nextLink;
60
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
- yield yield tslib_1.__await(page);
62
- }
63
- while (continuationToken) {
64
- result = yield tslib_1.__await(this._listByReplicationProtectionContainersNext(resourceGroupName, resourceName, fabricName, protectionContainerName, continuationToken, options));
65
- continuationToken = result.nextLink;
66
- let page = result.value || [];
67
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
- yield yield tslib_1.__await(page);
69
- }
70
- });
53
+ async *listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options, settings) {
54
+ let result;
55
+ let continuationToken = settings?.continuationToken;
56
+ if (!continuationToken) {
57
+ result = await this._listByReplicationProtectionContainers(resourceGroupName, resourceName, fabricName, protectionContainerName, options);
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield page;
62
+ }
63
+ while (continuationToken) {
64
+ result = await this._listByReplicationProtectionContainersNext(resourceGroupName, resourceName, fabricName, protectionContainerName, continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield page;
69
+ }
71
70
  }
72
- listByReplicationProtectionContainersPagingAll(resourceGroupName, resourceName, fabricName, protectionContainerName, options) {
73
- return tslib_1.__asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingAll_1() {
74
- var _a, e_1, _b, _c;
75
- try {
76
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
- _c = _f.value;
78
- _d = false;
79
- const page = _c;
80
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
- }
82
- }
83
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
- finally {
85
- try {
86
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
- }
88
- finally { if (e_1) throw e_1.error; }
89
- }
90
- });
71
+ async *listByReplicationProtectionContainersPagingAll(resourceGroupName, resourceName, fabricName, protectionContainerName, options) {
72
+ for await (const page of this.listByReplicationProtectionContainersPagingPage(resourceGroupName, resourceName, fabricName, protectionContainerName, options)) {
73
+ yield* page;
74
+ }
91
75
  }
92
76
  /**
93
77
  * Lists the protectable items in a protection container.
@@ -1 +1 @@
1
- {"version":3,"file":"replicationProtectableItems.js","sourceRoot":"","sources":["../../../src/operations/replicationProtectableItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAK1C;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,qCAAqC,CAC1C,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,uBAA+B,EAC/B,OAAwF;QAExF,MAAM,IAAI,GAAG,IAAI,CAAC,8CAA8C,CAC9D,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,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,+CAA+C,CACzD,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,OAA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AQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,uBAAuB;KACnC;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 { ReplicationProtectableItems } 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 ProtectableItem,\n ReplicationProtectableItemsListByReplicationProtectionContainersNextOptionalParams,\n ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n ReplicationProtectableItemsListByReplicationProtectionContainersResponse,\n ReplicationProtectableItemsGetOptionalParams,\n ReplicationProtectableItemsGetResponse,\n ReplicationProtectableItemsListByReplicationProtectionContainersNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationProtectableItems operations. */\nexport class ReplicationProtectableItemsImpl\n implements ReplicationProtectableItems\n{\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationProtectableItems class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the protectable items in a protection container.\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 Fabric name.\n * @param protectionContainerName Protection container name.\n * @param options The options parameters.\n */\n public listByReplicationProtectionContainers(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n ): PagedAsyncIterableIterator<ProtectableItem> {\n const iter = this.listByReplicationProtectionContainersPagingAll(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\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.listByReplicationProtectionContainersPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByReplicationProtectionContainersPagingPage(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProtectableItem[]> {\n let result: ReplicationProtectableItemsListByReplicationProtectionContainersResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReplicationProtectionContainers(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\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._listByReplicationProtectionContainersNext(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\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 *listByReplicationProtectionContainersPagingAll(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n ): AsyncIterableIterator<ProtectableItem> {\n for await (const page of this.listByReplicationProtectionContainersPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the protectable items in a protection container.\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 Fabric name.\n * @param protectionContainerName Protection container name.\n * @param options The options parameters.\n */\n private _listByReplicationProtectionContainers(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n ): Promise<ReplicationProtectableItemsListByReplicationProtectionContainersResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n options,\n },\n listByReplicationProtectionContainersOperationSpec,\n );\n }\n\n /**\n * The operation to get the details of a protectable 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 Fabric name.\n * @param protectionContainerName Protection container name.\n * @param protectableItemName Protectable item name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n protectableItemName: string,\n options?: ReplicationProtectableItemsGetOptionalParams,\n ): Promise<ReplicationProtectableItemsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n protectableItemName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListByReplicationProtectionContainersNext\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 Fabric name.\n * @param protectionContainerName Protection container name.\n * @param nextLink The nextLink from the previous successful call to the\n * ListByReplicationProtectionContainers method.\n * @param options The options parameters.\n */\n private _listByReplicationProtectionContainersNext(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n nextLink: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersNextOptionalParams,\n ): Promise<ReplicationProtectableItemsListByReplicationProtectionContainersNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n nextLink,\n options,\n },\n listByReplicationProtectionContainersNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByReplicationProtectionContainersOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableItemCollection,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.take,\n Parameters.skipToken1,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.fabricName,\n Parameters.protectionContainerName,\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}/replicationProtectableItems/{protectableItemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableItem,\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.protectableItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByReplicationProtectionContainersNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableItemCollection,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}
1
+ {"version":3,"file":"replicationProtectableItems.js","sourceRoot":"","sources":["../../../src/operations/replicationProtectableItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAGzB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,qCAAqC,CAC1C,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,uBAA+B,EAC/B,OAAwF;QAExF,MAAM,IAAI,GAAG,IAAI,CAAC,8CAA8C,CAC9D,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,+CAA+C,CACzD,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,+CAA+C,CAC5D,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,uBAA+B,EAC/B,OAAwF,EACxF,QAAuB;QAEvB,IAAI,MAAgF,CAAC;QACrF,IA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ACrB,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACJ,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,2QAA2Q;IACjR,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;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,UAAU;QACrB,UAAU,CAAC,uBAAuB;QAClC,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,sDAAsD,GAC1D;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;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;KACnC;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 { ReplicationProtectableItems } 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 ProtectableItem,\n ReplicationProtectableItemsListByReplicationProtectionContainersNextOptionalParams,\n ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n ReplicationProtectableItemsListByReplicationProtectionContainersResponse,\n ReplicationProtectableItemsGetOptionalParams,\n ReplicationProtectableItemsGetResponse,\n ReplicationProtectableItemsListByReplicationProtectionContainersNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReplicationProtectableItems operations. */\nexport class ReplicationProtectableItemsImpl\n implements ReplicationProtectableItems\n{\n private readonly client: SiteRecoveryManagementClient;\n\n /**\n * Initialize a new instance of the class ReplicationProtectableItems class.\n * @param client Reference to the service client\n */\n constructor(client: SiteRecoveryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the protectable items in a protection container.\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 Fabric name.\n * @param protectionContainerName Protection container name.\n * @param options The options parameters.\n */\n public listByReplicationProtectionContainers(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n ): PagedAsyncIterableIterator<ProtectableItem> {\n const iter = this.listByReplicationProtectionContainersPagingAll(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\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.listByReplicationProtectionContainersPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByReplicationProtectionContainersPagingPage(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProtectableItem[]> {\n let result: ReplicationProtectableItemsListByReplicationProtectionContainersResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReplicationProtectionContainers(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\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._listByReplicationProtectionContainersNext(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\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 *listByReplicationProtectionContainersPagingAll(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n ): AsyncIterableIterator<ProtectableItem> {\n for await (const page of this.listByReplicationProtectionContainersPagingPage(\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the protectable items in a protection container.\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 Fabric name.\n * @param protectionContainerName Protection container name.\n * @param options The options parameters.\n */\n private _listByReplicationProtectionContainers(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersOptionalParams,\n ): Promise<ReplicationProtectableItemsListByReplicationProtectionContainersResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n options,\n },\n listByReplicationProtectionContainersOperationSpec,\n );\n }\n\n /**\n * The operation to get the details of a protectable 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 Fabric name.\n * @param protectionContainerName Protection container name.\n * @param protectableItemName Protectable item name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n protectableItemName: string,\n options?: ReplicationProtectableItemsGetOptionalParams,\n ): Promise<ReplicationProtectableItemsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n protectableItemName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * ListByReplicationProtectionContainersNext\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 Fabric name.\n * @param protectionContainerName Protection container name.\n * @param nextLink The nextLink from the previous successful call to the\n * ListByReplicationProtectionContainers method.\n * @param options The options parameters.\n */\n private _listByReplicationProtectionContainersNext(\n resourceGroupName: string,\n resourceName: string,\n fabricName: string,\n protectionContainerName: string,\n nextLink: string,\n options?: ReplicationProtectableItemsListByReplicationProtectionContainersNextOptionalParams,\n ): Promise<ReplicationProtectableItemsListByReplicationProtectionContainersNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n fabricName,\n protectionContainerName,\n nextLink,\n options,\n },\n listByReplicationProtectionContainersNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByReplicationProtectionContainersOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectableItems\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableItemCollection,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.take,\n Parameters.skipToken1,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.fabricName,\n Parameters.protectionContainerName,\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}/replicationProtectableItems/{protectableItemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableItem,\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.protectableItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByReplicationProtectionContainersNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableItemCollection,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}