@azure/arm-recoveryservices-siterecovery 0.1.0 → 4.0.0

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 (579) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +21 -21
  4. package/README.md +98 -96
  5. package/dist/index.js +32127 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/index.d.ts +5 -0
  10. package/dist-esm/src/index.d.ts.map +1 -0
  11. package/dist-esm/src/index.js +12 -0
  12. package/dist-esm/src/index.js.map +1 -0
  13. package/dist-esm/src/lroImpl.d.ts +16 -0
  14. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  15. package/dist-esm/src/lroImpl.js +29 -0
  16. package/dist-esm/src/lroImpl.js.map +1 -0
  17. package/dist-esm/src/models/index.d.ts +9867 -0
  18. package/dist-esm/src/models/index.d.ts.map +1 -0
  19. package/dist-esm/src/models/index.js +382 -0
  20. package/dist-esm/src/models/index.js.map +1 -0
  21. package/dist-esm/src/models/mappers.d.ts +722 -0
  22. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  23. package/dist-esm/src/models/mappers.js +19684 -0
  24. package/dist-esm/src/models/mappers.js.map +1 -0
  25. package/dist-esm/src/models/parameters.d.ts +90 -0
  26. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  27. package/dist-esm/src/models/parameters.js +593 -0
  28. package/dist-esm/src/models/parameters.js.map +1 -0
  29. package/{esm → dist-esm/src}/operations/index.d.ts +7 -0
  30. package/dist-esm/src/operations/index.d.ts.map +1 -0
  31. package/dist-esm/src/operations/index.js +36 -0
  32. package/dist-esm/src/operations/index.js.map +1 -0
  33. package/dist-esm/src/operations/migrationRecoveryPoints.d.ts +51 -0
  34. package/dist-esm/src/operations/migrationRecoveryPoints.d.ts.map +1 -0
  35. package/dist-esm/src/operations/migrationRecoveryPoints.js +186 -0
  36. package/dist-esm/src/operations/migrationRecoveryPoints.js.map +1 -0
  37. package/dist-esm/src/operations/operations.d.ts +32 -0
  38. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  39. package/dist-esm/src/operations/operations.js +123 -0
  40. package/dist-esm/src/operations/operations.js.map +1 -0
  41. package/dist-esm/src/operations/recoveryPoints.d.ts +51 -0
  42. package/dist-esm/src/operations/recoveryPoints.d.ts.map +1 -0
  43. package/dist-esm/src/operations/recoveryPoints.js +191 -0
  44. package/dist-esm/src/operations/recoveryPoints.js.map +1 -0
  45. package/dist-esm/src/operations/replicationAlertSettings.d.ts +45 -0
  46. package/dist-esm/src/operations/replicationAlertSettings.d.ts.map +1 -0
  47. package/dist-esm/src/operations/replicationAlertSettings.js +182 -0
  48. package/dist-esm/src/operations/replicationAlertSettings.js.map +1 -0
  49. package/dist-esm/src/operations/replicationAppliances.d.ts +32 -0
  50. package/dist-esm/src/operations/replicationAppliances.d.ts.map +1 -0
  51. package/dist-esm/src/operations/replicationAppliances.js +125 -0
  52. package/dist-esm/src/operations/replicationAppliances.js.map +1 -0
  53. package/dist-esm/src/operations/replicationEligibilityResultsOperations.d.ts +25 -0
  54. package/dist-esm/src/operations/replicationEligibilityResultsOperations.d.ts.map +1 -0
  55. package/dist-esm/src/operations/replicationEligibilityResultsOperations.js +75 -0
  56. package/dist-esm/src/operations/replicationEligibilityResultsOperations.js.map +1 -0
  57. package/dist-esm/src/operations/replicationEvents.d.ts +38 -0
  58. package/dist-esm/src/operations/replicationEvents.d.ts.map +1 -0
  59. package/dist-esm/src/operations/replicationEvents.js +152 -0
  60. package/dist-esm/src/operations/replicationEvents.js.map +1 -0
  61. package/dist-esm/src/operations/replicationFabrics.d.ts +129 -0
  62. package/dist-esm/src/operations/replicationFabrics.d.ts.map +1 -0
  63. package/dist-esm/src/operations/replicationFabrics.js +649 -0
  64. package/dist-esm/src/operations/replicationFabrics.js.map +1 -0
  65. package/dist-esm/src/operations/replicationJobs.d.ts +89 -0
  66. package/dist-esm/src/operations/replicationJobs.d.ts.map +1 -0
  67. package/dist-esm/src/operations/replicationJobs.js +459 -0
  68. package/dist-esm/src/operations/replicationJobs.js.map +1 -0
  69. package/dist-esm/src/operations/replicationLogicalNetworks.d.ts +43 -0
  70. package/dist-esm/src/operations/replicationLogicalNetworks.d.ts.map +1 -0
  71. package/dist-esm/src/operations/replicationLogicalNetworks.js +160 -0
  72. package/dist-esm/src/operations/replicationLogicalNetworks.js.map +1 -0
  73. package/dist-esm/src/operations/replicationMigrationItems.d.ts +190 -0
  74. package/dist-esm/src/operations/replicationMigrationItems.d.ts.map +1 -0
  75. package/dist-esm/src/operations/replicationMigrationItems.js +902 -0
  76. package/dist-esm/src/operations/replicationMigrationItems.js.map +1 -0
  77. package/dist-esm/src/operations/replicationNetworkMappings.d.ts +118 -0
  78. package/dist-esm/src/operations/replicationNetworkMappings.d.ts.map +1 -0
  79. package/dist-esm/src/operations/replicationNetworkMappings.js +506 -0
  80. package/dist-esm/src/operations/replicationNetworkMappings.js.map +1 -0
  81. package/dist-esm/src/operations/replicationNetworks.d.ts +61 -0
  82. package/dist-esm/src/operations/replicationNetworks.d.ts.map +1 -0
  83. package/dist-esm/src/operations/replicationNetworks.js +260 -0
  84. package/dist-esm/src/operations/replicationNetworks.js.map +1 -0
  85. package/dist-esm/src/operations/replicationPolicies.d.ts +79 -0
  86. package/dist-esm/src/operations/replicationPolicies.d.ts.map +1 -0
  87. package/dist-esm/src/operations/replicationPolicies.js +373 -0
  88. package/dist-esm/src/operations/replicationPolicies.js.map +1 -0
  89. package/dist-esm/src/operations/replicationProtectableItems.d.ts +47 -0
  90. package/dist-esm/src/operations/replicationProtectableItems.d.ts.map +1 -0
  91. package/dist-esm/src/operations/replicationProtectableItems.js +177 -0
  92. package/dist-esm/src/operations/replicationProtectableItems.js.map +1 -0
  93. package/dist-esm/src/operations/replicationProtectedItems.d.ts +412 -0
  94. package/dist-esm/src/operations/replicationProtectedItems.d.ts.map +1 -0
  95. package/dist-esm/src/operations/replicationProtectedItems.js +1977 -0
  96. package/dist-esm/src/operations/replicationProtectedItems.js.map +1 -0
  97. package/dist-esm/src/operations/replicationProtectionContainerMappings.d.ts +136 -0
  98. package/dist-esm/src/operations/replicationProtectionContainerMappings.d.ts.map +1 -0
  99. package/dist-esm/src/operations/replicationProtectionContainerMappings.js +596 -0
  100. package/dist-esm/src/operations/replicationProtectionContainerMappings.js.map +1 -0
  101. package/dist-esm/src/operations/replicationProtectionContainers.d.ts +124 -0
  102. package/dist-esm/src/operations/replicationProtectionContainers.d.ts.map +1 -0
  103. package/dist-esm/src/operations/replicationProtectionContainers.js +577 -0
  104. package/dist-esm/src/operations/replicationProtectionContainers.js.map +1 -0
  105. package/dist-esm/src/operations/replicationProtectionIntents.d.ts +45 -0
  106. package/dist-esm/src/operations/replicationProtectionIntents.d.ts.map +1 -0
  107. package/dist-esm/src/operations/replicationProtectionIntents.js +190 -0
  108. package/dist-esm/src/operations/replicationProtectionIntents.js.map +1 -0
  109. package/dist-esm/src/operations/replicationRecoveryPlans.d.ts +171 -0
  110. package/dist-esm/src/operations/replicationRecoveryPlans.d.ts.map +1 -0
  111. package/dist-esm/src/operations/replicationRecoveryPlans.js +914 -0
  112. package/dist-esm/src/operations/replicationRecoveryPlans.js.map +1 -0
  113. package/dist-esm/src/operations/replicationRecoveryServicesProviders.d.ts +120 -0
  114. package/dist-esm/src/operations/replicationRecoveryServicesProviders.d.ts.map +1 -0
  115. package/dist-esm/src/operations/replicationRecoveryServicesProviders.js +550 -0
  116. package/dist-esm/src/operations/replicationRecoveryServicesProviders.js.map +1 -0
  117. package/dist-esm/src/operations/replicationStorageClassificationMappings.d.ts +100 -0
  118. package/dist-esm/src/operations/replicationStorageClassificationMappings.d.ts.map +1 -0
  119. package/dist-esm/src/operations/replicationStorageClassificationMappings.js +437 -0
  120. package/dist-esm/src/operations/replicationStorageClassificationMappings.js.map +1 -0
  121. package/dist-esm/src/operations/replicationStorageClassifications.d.ts +61 -0
  122. package/dist-esm/src/operations/replicationStorageClassifications.d.ts.map +1 -0
  123. package/dist-esm/src/operations/replicationStorageClassifications.js +260 -0
  124. package/dist-esm/src/operations/replicationStorageClassifications.js.map +1 -0
  125. package/dist-esm/src/operations/replicationVaultHealth.d.ts +29 -0
  126. package/dist-esm/src/operations/replicationVaultHealth.d.ts.map +1 -0
  127. package/dist-esm/src/operations/replicationVaultHealth.js +123 -0
  128. package/dist-esm/src/operations/replicationVaultHealth.js.map +1 -0
  129. package/dist-esm/src/operations/replicationVaultSetting.d.ts +53 -0
  130. package/dist-esm/src/operations/replicationVaultSetting.d.ts.map +1 -0
  131. package/dist-esm/src/operations/replicationVaultSetting.js +233 -0
  132. package/dist-esm/src/operations/replicationVaultSetting.js.map +1 -0
  133. package/dist-esm/src/operations/replicationvCenters.d.ts +108 -0
  134. package/dist-esm/src/operations/replicationvCenters.d.ts.map +1 -0
  135. package/dist-esm/src/operations/replicationvCenters.js +490 -0
  136. package/dist-esm/src/operations/replicationvCenters.js.map +1 -0
  137. package/dist-esm/src/operations/supportedOperatingSystemsOperations.d.ts +18 -0
  138. package/dist-esm/src/operations/supportedOperatingSystemsOperations.d.ts.map +1 -0
  139. package/dist-esm/src/operations/supportedOperatingSystemsOperations.js +48 -0
  140. package/dist-esm/src/operations/supportedOperatingSystemsOperations.js.map +1 -0
  141. package/dist-esm/src/operations/targetComputeSizes.d.ts +42 -0
  142. package/dist-esm/src/operations/targetComputeSizes.d.ts.map +1 -0
  143. package/dist-esm/src/operations/targetComputeSizes.js +152 -0
  144. package/dist-esm/src/operations/targetComputeSizes.js.map +1 -0
  145. package/{esm/operations/index.js → dist-esm/src/operationsInterfaces/index.d.ts} +8 -10
  146. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/index.js +36 -0
  148. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  149. package/dist-esm/src/operationsInterfaces/migrationRecoveryPoints.d.ts +23 -0
  150. package/dist-esm/src/operationsInterfaces/migrationRecoveryPoints.d.ts.map +1 -0
  151. package/dist-esm/src/operationsInterfaces/migrationRecoveryPoints.js +9 -0
  152. package/dist-esm/src/operationsInterfaces/migrationRecoveryPoints.js.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  154. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  156. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  157. package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts +23 -0
  158. package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts.map +1 -0
  159. package/dist-esm/src/operationsInterfaces/recoveryPoints.js +9 -0
  160. package/dist-esm/src/operationsInterfaces/recoveryPoints.js.map +1 -0
  161. package/dist-esm/src/operationsInterfaces/replicationAlertSettings.d.ts +24 -0
  162. package/dist-esm/src/operationsInterfaces/replicationAlertSettings.d.ts.map +1 -0
  163. package/dist-esm/src/operationsInterfaces/replicationAlertSettings.js +9 -0
  164. package/dist-esm/src/operationsInterfaces/replicationAlertSettings.js.map +1 -0
  165. package/dist-esm/src/operationsInterfaces/replicationAppliances.d.ts +11 -0
  166. package/dist-esm/src/operationsInterfaces/replicationAppliances.d.ts.map +1 -0
  167. package/dist-esm/src/operationsInterfaces/replicationAppliances.js +9 -0
  168. package/dist-esm/src/operationsInterfaces/replicationAppliances.js.map +1 -0
  169. package/dist-esm/src/operationsInterfaces/replicationEligibilityResultsOperations.d.ts +17 -0
  170. package/dist-esm/src/operationsInterfaces/replicationEligibilityResultsOperations.d.ts.map +1 -0
  171. package/dist-esm/src/operationsInterfaces/replicationEligibilityResultsOperations.js +9 -0
  172. package/dist-esm/src/operationsInterfaces/replicationEligibilityResultsOperations.js.map +1 -0
  173. package/dist-esm/src/operationsInterfaces/replicationEvents.d.ts +17 -0
  174. package/dist-esm/src/operationsInterfaces/replicationEvents.d.ts.map +1 -0
  175. package/dist-esm/src/operationsInterfaces/replicationEvents.js +9 -0
  176. package/dist-esm/src/operationsInterfaces/replicationEvents.js.map +1 -0
  177. package/dist-esm/src/operationsInterfaces/replicationFabrics.d.ts +108 -0
  178. package/dist-esm/src/operationsInterfaces/replicationFabrics.d.ts.map +1 -0
  179. package/dist-esm/src/operationsInterfaces/replicationFabrics.js +9 -0
  180. package/dist-esm/src/operationsInterfaces/replicationFabrics.js.map +1 -0
  181. package/dist-esm/src/operationsInterfaces/replicationJobs.d.ts +68 -0
  182. package/dist-esm/src/operationsInterfaces/replicationJobs.d.ts.map +1 -0
  183. package/dist-esm/src/operationsInterfaces/replicationJobs.js +9 -0
  184. package/dist-esm/src/operationsInterfaces/replicationJobs.js.map +1 -0
  185. package/dist-esm/src/operationsInterfaces/replicationLogicalNetworks.d.ts +19 -0
  186. package/dist-esm/src/operationsInterfaces/replicationLogicalNetworks.d.ts.map +1 -0
  187. package/dist-esm/src/operationsInterfaces/replicationLogicalNetworks.js +9 -0
  188. package/dist-esm/src/operationsInterfaces/replicationLogicalNetworks.js.map +1 -0
  189. package/dist-esm/src/operationsInterfaces/replicationMigrationItems.d.ts +151 -0
  190. package/dist-esm/src/operationsInterfaces/replicationMigrationItems.d.ts.map +1 -0
  191. package/dist-esm/src/operationsInterfaces/replicationMigrationItems.js +9 -0
  192. package/dist-esm/src/operationsInterfaces/replicationMigrationItems.js.map +1 -0
  193. package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.d.ts +79 -0
  194. package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.d.ts.map +1 -0
  195. package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.js +9 -0
  196. package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.js.map +1 -0
  197. package/dist-esm/src/operationsInterfaces/replicationNetworks.d.ts +24 -0
  198. package/dist-esm/src/operationsInterfaces/replicationNetworks.d.ts.map +1 -0
  199. package/dist-esm/src/operationsInterfaces/replicationNetworks.js +9 -0
  200. package/dist-esm/src/operationsInterfaces/replicationNetworks.js.map +1 -0
  201. package/dist-esm/src/operationsInterfaces/replicationPolicies.d.ts +58 -0
  202. package/dist-esm/src/operationsInterfaces/replicationPolicies.d.ts.map +1 -0
  203. package/dist-esm/src/operationsInterfaces/replicationPolicies.js +9 -0
  204. package/dist-esm/src/operationsInterfaces/replicationPolicies.js.map +1 -0
  205. package/dist-esm/src/operationsInterfaces/replicationProtectableItems.d.ts +21 -0
  206. package/dist-esm/src/operationsInterfaces/replicationProtectableItems.d.ts.map +1 -0
  207. package/dist-esm/src/operationsInterfaces/replicationProtectableItems.js +9 -0
  208. package/dist-esm/src/operationsInterfaces/replicationProtectableItems.js.map +1 -0
  209. package/dist-esm/src/operationsInterfaces/replicationProtectedItems.d.ts +373 -0
  210. package/dist-esm/src/operationsInterfaces/replicationProtectedItems.d.ts.map +1 -0
  211. package/dist-esm/src/operationsInterfaces/replicationProtectedItems.js +9 -0
  212. package/dist-esm/src/operationsInterfaces/replicationProtectedItems.js.map +1 -0
  213. package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.d.ts +97 -0
  214. package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.d.ts.map +1 -0
  215. package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.js +9 -0
  216. package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.js.map +1 -0
  217. package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.d.ts +87 -0
  218. package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.d.ts.map +1 -0
  219. package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.js +9 -0
  220. package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.js.map +1 -0
  221. package/dist-esm/src/operationsInterfaces/replicationProtectionIntents.d.ts +24 -0
  222. package/dist-esm/src/operationsInterfaces/replicationProtectionIntents.d.ts.map +1 -0
  223. package/dist-esm/src/operationsInterfaces/replicationProtectionIntents.js +9 -0
  224. package/dist-esm/src/operationsInterfaces/replicationProtectionIntents.js.map +1 -0
  225. package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.d.ts +150 -0
  226. package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.d.ts.map +1 -0
  227. package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.js +9 -0
  228. package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.js.map +1 -0
  229. package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.d.ts +83 -0
  230. package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.d.ts.map +1 -0
  231. package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.js +9 -0
  232. package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.js.map +1 -0
  233. package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.d.ts +61 -0
  234. package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.d.ts.map +1 -0
  235. package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.js +9 -0
  236. package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.js.map +1 -0
  237. package/dist-esm/src/operationsInterfaces/replicationStorageClassifications.d.ts +24 -0
  238. package/dist-esm/src/operationsInterfaces/replicationStorageClassifications.d.ts.map +1 -0
  239. package/dist-esm/src/operationsInterfaces/replicationStorageClassifications.js +9 -0
  240. package/dist-esm/src/operationsInterfaces/replicationStorageClassifications.js.map +1 -0
  241. package/dist-esm/src/operationsInterfaces/replicationVaultHealth.d.ts +21 -0
  242. package/dist-esm/src/operationsInterfaces/replicationVaultHealth.d.ts.map +1 -0
  243. package/dist-esm/src/operationsInterfaces/replicationVaultHealth.js +9 -0
  244. package/dist-esm/src/operationsInterfaces/replicationVaultHealth.js.map +1 -0
  245. package/dist-esm/src/operationsInterfaces/replicationVaultSetting.d.ts +32 -0
  246. package/dist-esm/src/operationsInterfaces/replicationVaultSetting.d.ts.map +1 -0
  247. package/dist-esm/src/operationsInterfaces/replicationVaultSetting.js +9 -0
  248. package/dist-esm/src/operationsInterfaces/replicationVaultSetting.js.map +1 -0
  249. package/dist-esm/src/operationsInterfaces/replicationvCenters.d.ts +71 -0
  250. package/dist-esm/src/operationsInterfaces/replicationvCenters.d.ts.map +1 -0
  251. package/dist-esm/src/operationsInterfaces/replicationvCenters.js +9 -0
  252. package/dist-esm/src/operationsInterfaces/replicationvCenters.js.map +1 -0
  253. package/dist-esm/src/operationsInterfaces/supportedOperatingSystemsOperations.d.ts +10 -0
  254. package/dist-esm/src/operationsInterfaces/supportedOperatingSystemsOperations.d.ts.map +1 -0
  255. package/dist-esm/src/operationsInterfaces/supportedOperatingSystemsOperations.js +9 -0
  256. package/dist-esm/src/operationsInterfaces/supportedOperatingSystemsOperations.js.map +1 -0
  257. package/dist-esm/src/operationsInterfaces/targetComputeSizes.d.ts +14 -0
  258. package/dist-esm/src/operationsInterfaces/targetComputeSizes.d.ts.map +1 -0
  259. package/dist-esm/src/operationsInterfaces/targetComputeSizes.js +9 -0
  260. package/dist-esm/src/operationsInterfaces/targetComputeSizes.js.map +1 -0
  261. package/dist-esm/src/siteRecoveryManagementClient.d.ts +50 -0
  262. package/dist-esm/src/siteRecoveryManagementClient.d.ts.map +1 -0
  263. package/dist-esm/src/siteRecoveryManagementClient.js +89 -0
  264. package/dist-esm/src/siteRecoveryManagementClient.js.map +1 -0
  265. package/dist-esm/test/sampleTest.d.ts +2 -0
  266. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  267. package/dist-esm/test/sampleTest.js +40 -0
  268. package/dist-esm/test/sampleTest.js.map +1 -0
  269. package/package.json +79 -34
  270. package/review/arm-recoveryservices-siterecovery.api.md +7219 -0
  271. package/rollup.config.js +184 -27
  272. package/src/index.ts +12 -0
  273. package/src/lroImpl.ts +34 -0
  274. package/src/models/index.ts +11124 -0
  275. package/src/models/mappers.ts +21728 -0
  276. package/src/models/parameters.ts +736 -0
  277. package/{lib → src}/operations/index.ts +10 -5
  278. package/src/operations/migrationRecoveryPoints.ts +263 -0
  279. package/src/operations/operations.ts +141 -0
  280. package/src/operations/recoveryPoints.ts +266 -0
  281. package/src/operations/replicationAlertSettings.ts +222 -0
  282. package/src/operations/replicationAppliances.ts +143 -0
  283. package/src/operations/replicationEligibilityResultsOperations.ts +104 -0
  284. package/src/operations/replicationEvents.ts +180 -0
  285. package/src/operations/replicationFabrics.ts +907 -0
  286. package/src/operations/replicationJobs.ts +623 -0
  287. package/src/operations/replicationLogicalNetworks.ts +205 -0
  288. package/src/operations/replicationMigrationItems.ts +1292 -0
  289. package/src/operations/replicationNetworkMappings.ts +708 -0
  290. package/src/operations/replicationNetworks.ts +313 -0
  291. package/src/operations/replicationPolicies.ts +500 -0
  292. package/src/operations/replicationProtectableItems.ts +246 -0
  293. package/src/operations/replicationProtectedItems.ts +2903 -0
  294. package/src/operations/replicationProtectionContainerMappings.ts +842 -0
  295. package/src/operations/replicationProtectionContainers.ts +799 -0
  296. package/src/operations/replicationProtectionIntents.ts +231 -0
  297. package/src/operations/replicationRecoveryPlans.ts +1300 -0
  298. package/src/operations/replicationRecoveryServicesProviders.ts +750 -0
  299. package/src/operations/replicationStorageClassificationMappings.ts +599 -0
  300. package/src/operations/replicationStorageClassifications.ts +318 -0
  301. package/src/operations/replicationVaultHealth.ts +163 -0
  302. package/src/operations/replicationVaultSetting.ts +297 -0
  303. package/src/operations/replicationvCenters.ts +658 -0
  304. package/src/operations/supportedOperatingSystemsOperations.ts +63 -0
  305. package/src/operations/targetComputeSizes.ts +214 -0
  306. package/src/operationsInterfaces/index.ts +36 -0
  307. package/src/operationsInterfaces/migrationRecoveryPoints.ts +48 -0
  308. package/src/operationsInterfaces/operations.ts +22 -0
  309. package/src/operationsInterfaces/recoveryPoints.ts +48 -0
  310. package/src/operationsInterfaces/replicationAlertSettings.ts +50 -0
  311. package/src/operationsInterfaces/replicationAppliances.ts +25 -0
  312. package/src/operationsInterfaces/replicationEligibilityResultsOperations.ts +36 -0
  313. package/src/operationsInterfaces/replicationEvents.ts +36 -0
  314. package/src/operationsInterfaces/replicationFabrics.ts +209 -0
  315. package/src/operationsInterfaces/replicationJobs.ts +143 -0
  316. package/src/operationsInterfaces/replicationLogicalNetworks.ts +40 -0
  317. package/src/operationsInterfaces/replicationMigrationItems.ts +308 -0
  318. package/src/operationsInterfaces/replicationNetworkMappings.ts +156 -0
  319. package/src/operationsInterfaces/replicationNetworks.ts +48 -0
  320. package/src/operationsInterfaces/replicationPolicies.ts +116 -0
  321. package/src/operationsInterfaces/replicationProtectableItems.ts +44 -0
  322. package/src/operationsInterfaces/replicationProtectedItems.ts +757 -0
  323. package/src/operationsInterfaces/replicationProtectionContainerMappings.ts +188 -0
  324. package/src/operationsInterfaces/replicationProtectionContainers.ts +178 -0
  325. package/src/operationsInterfaces/replicationProtectionIntents.ts +50 -0
  326. package/src/operationsInterfaces/replicationRecoveryPlans.ts +311 -0
  327. package/src/operationsInterfaces/replicationRecoveryServicesProviders.ts +160 -0
  328. package/src/operationsInterfaces/replicationStorageClassificationMappings.ts +120 -0
  329. package/src/operationsInterfaces/replicationStorageClassifications.ts +48 -0
  330. package/src/operationsInterfaces/replicationVaultHealth.ts +45 -0
  331. package/src/operationsInterfaces/replicationVaultSetting.ts +67 -0
  332. package/src/operationsInterfaces/replicationvCenters.ts +140 -0
  333. package/src/operationsInterfaces/supportedOperatingSystemsOperations.ts +23 -0
  334. package/src/operationsInterfaces/targetComputeSizes.ts +31 -0
  335. package/src/siteRecoveryManagementClient.ts +220 -0
  336. package/tsconfig.json +4 -4
  337. package/types/arm-recoveryservices-siterecovery.d.ts +12535 -0
  338. package/types/tsdoc-metadata.json +11 -0
  339. package/dist/arm-recoveryservices-siterecovery.js +0 -21612
  340. package/dist/arm-recoveryservices-siterecovery.js.map +0 -1
  341. package/dist/arm-recoveryservices-siterecovery.min.js +0 -1
  342. package/dist/arm-recoveryservices-siterecovery.min.js.map +0 -1
  343. package/esm/models/index.d.ts +0 -12202
  344. package/esm/models/index.d.ts.map +0 -1
  345. package/esm/models/index.js +0 -10
  346. package/esm/models/index.js.map +0 -1
  347. package/esm/models/mappers.d.ts +0 -458
  348. package/esm/models/mappers.d.ts.map +0 -1
  349. package/esm/models/mappers.js +0 -11364
  350. package/esm/models/mappers.js.map +0 -1
  351. package/esm/models/operationsMappers.d.ts +0 -2
  352. package/esm/models/operationsMappers.d.ts.map +0 -1
  353. package/esm/models/operationsMappers.js +0 -11
  354. package/esm/models/operationsMappers.js.map +0 -1
  355. package/esm/models/parameters.d.ts +0 -29
  356. package/esm/models/parameters.d.ts.map +0 -1
  357. package/esm/models/parameters.js +0 -285
  358. package/esm/models/parameters.js.map +0 -1
  359. package/esm/models/recoveryPointsMappers.d.ts +0 -2
  360. package/esm/models/recoveryPointsMappers.d.ts.map +0 -1
  361. package/esm/models/recoveryPointsMappers.js +0 -11
  362. package/esm/models/recoveryPointsMappers.js.map +0 -1
  363. package/esm/models/replicationAlertSettingsMappers.d.ts +0 -2
  364. package/esm/models/replicationAlertSettingsMappers.d.ts.map +0 -1
  365. package/esm/models/replicationAlertSettingsMappers.js +0 -11
  366. package/esm/models/replicationAlertSettingsMappers.js.map +0 -1
  367. package/esm/models/replicationEventsMappers.d.ts +0 -2
  368. package/esm/models/replicationEventsMappers.d.ts.map +0 -1
  369. package/esm/models/replicationEventsMappers.js +0 -11
  370. package/esm/models/replicationEventsMappers.js.map +0 -1
  371. package/esm/models/replicationFabricsMappers.d.ts +0 -2
  372. package/esm/models/replicationFabricsMappers.d.ts.map +0 -1
  373. package/esm/models/replicationFabricsMappers.js +0 -11
  374. package/esm/models/replicationFabricsMappers.js.map +0 -1
  375. package/esm/models/replicationJobsMappers.d.ts +0 -2
  376. package/esm/models/replicationJobsMappers.d.ts.map +0 -1
  377. package/esm/models/replicationJobsMappers.js +0 -11
  378. package/esm/models/replicationJobsMappers.js.map +0 -1
  379. package/esm/models/replicationLogicalNetworksMappers.d.ts +0 -2
  380. package/esm/models/replicationLogicalNetworksMappers.d.ts.map +0 -1
  381. package/esm/models/replicationLogicalNetworksMappers.js +0 -11
  382. package/esm/models/replicationLogicalNetworksMappers.js.map +0 -1
  383. package/esm/models/replicationNetworkMappingsMappers.d.ts +0 -2
  384. package/esm/models/replicationNetworkMappingsMappers.d.ts.map +0 -1
  385. package/esm/models/replicationNetworkMappingsMappers.js +0 -11
  386. package/esm/models/replicationNetworkMappingsMappers.js.map +0 -1
  387. package/esm/models/replicationNetworksMappers.d.ts +0 -2
  388. package/esm/models/replicationNetworksMappers.d.ts.map +0 -1
  389. package/esm/models/replicationNetworksMappers.js +0 -11
  390. package/esm/models/replicationNetworksMappers.js.map +0 -1
  391. package/esm/models/replicationPoliciesMappers.d.ts +0 -2
  392. package/esm/models/replicationPoliciesMappers.d.ts.map +0 -1
  393. package/esm/models/replicationPoliciesMappers.js +0 -11
  394. package/esm/models/replicationPoliciesMappers.js.map +0 -1
  395. package/esm/models/replicationProtectableItemsMappers.d.ts +0 -2
  396. package/esm/models/replicationProtectableItemsMappers.d.ts.map +0 -1
  397. package/esm/models/replicationProtectableItemsMappers.js +0 -11
  398. package/esm/models/replicationProtectableItemsMappers.js.map +0 -1
  399. package/esm/models/replicationProtectedItemsMappers.d.ts +0 -2
  400. package/esm/models/replicationProtectedItemsMappers.d.ts.map +0 -1
  401. package/esm/models/replicationProtectedItemsMappers.js +0 -11
  402. package/esm/models/replicationProtectedItemsMappers.js.map +0 -1
  403. package/esm/models/replicationProtectionContainerMappingsMappers.d.ts +0 -2
  404. package/esm/models/replicationProtectionContainerMappingsMappers.d.ts.map +0 -1
  405. package/esm/models/replicationProtectionContainerMappingsMappers.js +0 -11
  406. package/esm/models/replicationProtectionContainerMappingsMappers.js.map +0 -1
  407. package/esm/models/replicationProtectionContainersMappers.d.ts +0 -2
  408. package/esm/models/replicationProtectionContainersMappers.d.ts.map +0 -1
  409. package/esm/models/replicationProtectionContainersMappers.js +0 -11
  410. package/esm/models/replicationProtectionContainersMappers.js.map +0 -1
  411. package/esm/models/replicationRecoveryPlansMappers.d.ts +0 -2
  412. package/esm/models/replicationRecoveryPlansMappers.d.ts.map +0 -1
  413. package/esm/models/replicationRecoveryPlansMappers.js +0 -11
  414. package/esm/models/replicationRecoveryPlansMappers.js.map +0 -1
  415. package/esm/models/replicationRecoveryServicesProvidersMappers.d.ts +0 -2
  416. package/esm/models/replicationRecoveryServicesProvidersMappers.d.ts.map +0 -1
  417. package/esm/models/replicationRecoveryServicesProvidersMappers.js +0 -11
  418. package/esm/models/replicationRecoveryServicesProvidersMappers.js.map +0 -1
  419. package/esm/models/replicationStorageClassificationMappingsMappers.d.ts +0 -2
  420. package/esm/models/replicationStorageClassificationMappingsMappers.d.ts.map +0 -1
  421. package/esm/models/replicationStorageClassificationMappingsMappers.js +0 -11
  422. package/esm/models/replicationStorageClassificationMappingsMappers.js.map +0 -1
  423. package/esm/models/replicationStorageClassificationsMappers.d.ts +0 -2
  424. package/esm/models/replicationStorageClassificationsMappers.d.ts.map +0 -1
  425. package/esm/models/replicationStorageClassificationsMappers.js +0 -11
  426. package/esm/models/replicationStorageClassificationsMappers.js.map +0 -1
  427. package/esm/models/replicationVaultHealthMappers.d.ts +0 -2
  428. package/esm/models/replicationVaultHealthMappers.d.ts.map +0 -1
  429. package/esm/models/replicationVaultHealthMappers.js +0 -11
  430. package/esm/models/replicationVaultHealthMappers.js.map +0 -1
  431. package/esm/models/replicationvCentersMappers.d.ts +0 -2
  432. package/esm/models/replicationvCentersMappers.d.ts.map +0 -1
  433. package/esm/models/replicationvCentersMappers.js +0 -11
  434. package/esm/models/replicationvCentersMappers.js.map +0 -1
  435. package/esm/models/targetComputeSizesMappers.d.ts +0 -2
  436. package/esm/models/targetComputeSizesMappers.d.ts.map +0 -1
  437. package/esm/models/targetComputeSizesMappers.js +0 -11
  438. package/esm/models/targetComputeSizesMappers.js.map +0 -1
  439. package/esm/operations/index.d.ts.map +0 -1
  440. package/esm/operations/index.js.map +0 -1
  441. package/esm/operations/operations.d.ts +0 -48
  442. package/esm/operations/operations.d.ts.map +0 -1
  443. package/esm/operations/operations.js +0 -81
  444. package/esm/operations/operations.js.map +0 -1
  445. package/esm/operations/recoveryPoints.d.ts +0 -85
  446. package/esm/operations/recoveryPoints.d.ts.map +0 -1
  447. package/esm/operations/recoveryPoints.js +0 -125
  448. package/esm/operations/recoveryPoints.js.map +0 -1
  449. package/esm/operations/replicationAlertSettings.d.ts +0 -89
  450. package/esm/operations/replicationAlertSettings.d.ts.map +0 -1
  451. package/esm/operations/replicationAlertSettings.js +0 -150
  452. package/esm/operations/replicationAlertSettings.js.map +0 -1
  453. package/esm/operations/replicationEvents.d.ts +0 -67
  454. package/esm/operations/replicationEvents.d.ts.map +0 -1
  455. package/esm/operations/replicationEvents.js +0 -114
  456. package/esm/operations/replicationEvents.js.map +0 -1
  457. package/esm/operations/replicationFabrics.d.ts +0 -186
  458. package/esm/operations/replicationFabrics.d.ts.map +0 -1
  459. package/esm/operations/replicationFabrics.js +0 -479
  460. package/esm/operations/replicationFabrics.js.map +0 -1
  461. package/esm/operations/replicationJobs.d.ts +0 -134
  462. package/esm/operations/replicationJobs.d.ts.map +0 -1
  463. package/esm/operations/replicationJobs.js +0 -325
  464. package/esm/operations/replicationJobs.js.map +0 -1
  465. package/esm/operations/replicationLogicalNetworks.d.ts +0 -73
  466. package/esm/operations/replicationLogicalNetworks.d.ts.map +0 -1
  467. package/esm/operations/replicationLogicalNetworks.js +0 -117
  468. package/esm/operations/replicationLogicalNetworks.js.map +0 -1
  469. package/esm/operations/replicationNetworkMappings.d.ts +0 -179
  470. package/esm/operations/replicationNetworkMappings.d.ts.map +0 -1
  471. package/esm/operations/replicationNetworkMappings.js +0 -363
  472. package/esm/operations/replicationNetworkMappings.js.map +0 -1
  473. package/esm/operations/replicationNetworks.d.ts +0 -108
  474. package/esm/operations/replicationNetworks.d.ts.map +0 -1
  475. package/esm/operations/replicationNetworks.js +0 -172
  476. package/esm/operations/replicationNetworks.js.map +0 -1
  477. package/esm/operations/replicationPolicies.d.ts +0 -120
  478. package/esm/operations/replicationPolicies.d.ts.map +0 -1
  479. package/esm/operations/replicationPolicies.js +0 -276
  480. package/esm/operations/replicationPolicies.js.map +0 -1
  481. package/esm/operations/replicationProtectableItems.d.ts +0 -81
  482. package/esm/operations/replicationProtectableItems.d.ts.map +0 -1
  483. package/esm/operations/replicationProtectableItems.js +0 -122
  484. package/esm/operations/replicationProtectableItems.js.map +0 -1
  485. package/esm/operations/replicationProtectedItems.d.ts +0 -410
  486. package/esm/operations/replicationProtectedItems.d.ts.map +0 -1
  487. package/esm/operations/replicationProtectedItems.js +0 -1013
  488. package/esm/operations/replicationProtectedItems.js.map +0 -1
  489. package/esm/operations/replicationProtectionContainerMappings.d.ts +0 -203
  490. package/esm/operations/replicationProtectionContainerMappings.d.ts.map +0 -1
  491. package/esm/operations/replicationProtectionContainerMappings.js +0 -426
  492. package/esm/operations/replicationProtectionContainerMappings.js.map +0 -1
  493. package/esm/operations/replicationProtectionContainers.d.ts +0 -191
  494. package/esm/operations/replicationProtectionContainers.d.ts.map +0 -1
  495. package/esm/operations/replicationProtectionContainers.js +0 -412
  496. package/esm/operations/replicationProtectionContainers.js.map +0 -1
  497. package/esm/operations/replicationRecoveryPlans.d.ts +0 -224
  498. package/esm/operations/replicationRecoveryPlans.d.ts.map +0 -1
  499. package/esm/operations/replicationRecoveryPlans.js +0 -604
  500. package/esm/operations/replicationRecoveryPlans.js.map +0 -1
  501. package/esm/operations/replicationRecoveryServicesProviders.d.ts +0 -172
  502. package/esm/operations/replicationRecoveryServicesProviders.d.ts.map +0 -1
  503. package/esm/operations/replicationRecoveryServicesProviders.js +0 -336
  504. package/esm/operations/replicationRecoveryServicesProviders.js.map +0 -1
  505. package/esm/operations/replicationStorageClassificationMappings.d.ts +0 -159
  506. package/esm/operations/replicationStorageClassificationMappings.d.ts.map +0 -1
  507. package/esm/operations/replicationStorageClassificationMappings.js +0 -298
  508. package/esm/operations/replicationStorageClassificationMappings.js.map +0 -1
  509. package/esm/operations/replicationStorageClassifications.d.ts +0 -108
  510. package/esm/operations/replicationStorageClassifications.d.ts.map +0 -1
  511. package/esm/operations/replicationStorageClassifications.js +0 -172
  512. package/esm/operations/replicationStorageClassifications.js.map +0 -1
  513. package/esm/operations/replicationVaultHealth.d.ts +0 -42
  514. package/esm/operations/replicationVaultHealth.d.ts.map +0 -1
  515. package/esm/operations/replicationVaultHealth.js +0 -100
  516. package/esm/operations/replicationVaultHealth.js.map +0 -1
  517. package/esm/operations/replicationvCenters.d.ts +0 -167
  518. package/esm/operations/replicationvCenters.d.ts.map +0 -1
  519. package/esm/operations/replicationvCenters.js +0 -347
  520. package/esm/operations/replicationvCenters.js.map +0 -1
  521. package/esm/operations/targetComputeSizes.d.ts +0 -57
  522. package/esm/operations/targetComputeSizes.d.ts.map +0 -1
  523. package/esm/operations/targetComputeSizes.js +0 -88
  524. package/esm/operations/targetComputeSizes.js.map +0 -1
  525. package/esm/siteRecoveryManagementClient.d.ts +0 -41
  526. package/esm/siteRecoveryManagementClient.d.ts.map +0 -1
  527. package/esm/siteRecoveryManagementClient.js +0 -56
  528. package/esm/siteRecoveryManagementClient.js.map +0 -1
  529. package/esm/siteRecoveryManagementClientContext.d.ts +0 -21
  530. package/esm/siteRecoveryManagementClientContext.d.ts.map +0 -1
  531. package/esm/siteRecoveryManagementClientContext.js +0 -67
  532. package/esm/siteRecoveryManagementClientContext.js.map +0 -1
  533. package/lib/models/index.ts +0 -12736
  534. package/lib/models/mappers.ts +0 -12507
  535. package/lib/models/operationsMappers.ts +0 -18
  536. package/lib/models/parameters.ts +0 -287
  537. package/lib/models/recoveryPointsMappers.ts +0 -169
  538. package/lib/models/replicationAlertSettingsMappers.ts +0 -171
  539. package/lib/models/replicationEventsMappers.ts +0 -169
  540. package/lib/models/replicationFabricsMappers.ts +0 -178
  541. package/lib/models/replicationJobsMappers.ts +0 -172
  542. package/lib/models/replicationLogicalNetworksMappers.ts +0 -169
  543. package/lib/models/replicationNetworkMappingsMappers.ts +0 -181
  544. package/lib/models/replicationNetworksMappers.ts +0 -169
  545. package/lib/models/replicationPoliciesMappers.ts +0 -181
  546. package/lib/models/replicationProtectableItemsMappers.ts +0 -169
  547. package/lib/models/replicationProtectedItemsMappers.ts +0 -226
  548. package/lib/models/replicationProtectionContainerMappingsMappers.ts +0 -180
  549. package/lib/models/replicationProtectionContainersMappers.ts +0 -184
  550. package/lib/models/replicationRecoveryPlansMappers.ts +0 -187
  551. package/lib/models/replicationRecoveryServicesProvidersMappers.ts +0 -169
  552. package/lib/models/replicationStorageClassificationMappingsMappers.ts +0 -171
  553. package/lib/models/replicationStorageClassificationsMappers.ts +0 -169
  554. package/lib/models/replicationVaultHealthMappers.ts +0 -168
  555. package/lib/models/replicationvCentersMappers.ts +0 -173
  556. package/lib/models/targetComputeSizesMappers.ts +0 -19
  557. package/lib/operations/operations.ts +0 -129
  558. package/lib/operations/recoveryPoints.ts +0 -215
  559. package/lib/operations/replicationAlertSettings.ts +0 -251
  560. package/lib/operations/replicationEvents.ts +0 -186
  561. package/lib/operations/replicationFabrics.ts +0 -602
  562. package/lib/operations/replicationJobs.ts +0 -427
  563. package/lib/operations/replicationLogicalNetworks.ts +0 -195
  564. package/lib/operations/replicationNetworkMappings.ts +0 -516
  565. package/lib/operations/replicationNetworks.ts +0 -295
  566. package/lib/operations/replicationPolicies.ts +0 -372
  567. package/lib/operations/replicationProtectableItems.ts +0 -208
  568. package/lib/operations/replicationProtectedItems.ts +0 -1251
  569. package/lib/operations/replicationProtectionContainerMappings.ts +0 -590
  570. package/lib/operations/replicationProtectionContainers.ts +0 -568
  571. package/lib/operations/replicationRecoveryPlans.ts +0 -748
  572. package/lib/operations/replicationRecoveryServicesProviders.ts +0 -481
  573. package/lib/operations/replicationStorageClassificationMappings.ts +0 -444
  574. package/lib/operations/replicationStorageClassifications.ts +0 -295
  575. package/lib/operations/replicationVaultHealth.ts +0 -131
  576. package/lib/operations/replicationvCenters.ts +0 -494
  577. package/lib/operations/targetComputeSizes.ts +0 -145
  578. package/lib/siteRecoveryManagementClient.ts +0 -85
  579. package/lib/siteRecoveryManagementClientContext.ts +0 -75
@@ -0,0 +1,1977 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing ReplicationProtectedItems operations. */
16
+ export class ReplicationProtectedItemsImpl {
17
+ /**
18
+ * Initialize a new instance of the class ReplicationProtectedItems class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Gets the list of ASR replication protected items in the protection container.
26
+ * @param fabricName Fabric name.
27
+ * @param protectionContainerName Protection container name.
28
+ * @param options The options parameters.
29
+ */
30
+ listByReplicationProtectionContainers(fabricName, protectionContainerName, options) {
31
+ const iter = this.listByReplicationProtectionContainersPagingAll(fabricName, protectionContainerName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByReplicationProtectionContainersPagingPage(fabricName, protectionContainerName, options);
41
+ }
42
+ };
43
+ }
44
+ listByReplicationProtectionContainersPagingPage(fabricName, protectionContainerName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingPage_1() {
46
+ let result = yield __await(this._listByReplicationProtectionContainers(fabricName, protectionContainerName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listByReplicationProtectionContainersNext(fabricName, protectionContainerName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listByReplicationProtectionContainersPagingAll(fabricName, protectionContainerName, options) {
57
+ return __asyncGenerator(this, arguments, function* listByReplicationProtectionContainersPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listByReplicationProtectionContainersPagingPage(fabricName, protectionContainerName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Gets the list of ASR replication protected items in the vault.
76
+ * @param options The options parameters.
77
+ */
78
+ list(options) {
79
+ const iter = this.listPagingAll(options);
80
+ return {
81
+ next() {
82
+ return iter.next();
83
+ },
84
+ [Symbol.asyncIterator]() {
85
+ return this;
86
+ },
87
+ byPage: () => {
88
+ return this.listPagingPage(options);
89
+ }
90
+ };
91
+ }
92
+ listPagingPage(options) {
93
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
94
+ let result = yield __await(this._list(options));
95
+ yield yield __await(result.value || []);
96
+ let continuationToken = result.nextLink;
97
+ while (continuationToken) {
98
+ result = yield __await(this._listNext(continuationToken, options));
99
+ continuationToken = result.nextLink;
100
+ yield yield __await(result.value || []);
101
+ }
102
+ });
103
+ }
104
+ listPagingAll(options) {
105
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
106
+ var e_2, _a;
107
+ try {
108
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
109
+ const page = _c.value;
110
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
111
+ }
112
+ }
113
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
114
+ finally {
115
+ try {
116
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
117
+ }
118
+ finally { if (e_2) throw e_2.error; }
119
+ }
120
+ });
121
+ }
122
+ /**
123
+ * Gets the list of ASR replication protected items in the protection container.
124
+ * @param fabricName Fabric name.
125
+ * @param protectionContainerName Protection container name.
126
+ * @param options The options parameters.
127
+ */
128
+ _listByReplicationProtectionContainers(fabricName, protectionContainerName, options) {
129
+ return this.client.sendOperationRequest({ fabricName, protectionContainerName, options }, listByReplicationProtectionContainersOperationSpec);
130
+ }
131
+ /**
132
+ * Gets the details of an ASR replication protected item.
133
+ * @param fabricName Fabric unique name.
134
+ * @param protectionContainerName Protection container name.
135
+ * @param replicatedProtectedItemName Replication protected item name.
136
+ * @param options The options parameters.
137
+ */
138
+ get(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
139
+ return this.client.sendOperationRequest({
140
+ fabricName,
141
+ protectionContainerName,
142
+ replicatedProtectedItemName,
143
+ options
144
+ }, getOperationSpec);
145
+ }
146
+ /**
147
+ * The operation to create an ASR replication protected item (Enable replication).
148
+ * @param fabricName Name of the fabric.
149
+ * @param protectionContainerName Protection container name.
150
+ * @param replicatedProtectedItemName A name for the replication protected item.
151
+ * @param input Enable Protection Input.
152
+ * @param options The options parameters.
153
+ */
154
+ beginCreate(fabricName, protectionContainerName, replicatedProtectedItemName, input, options) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
157
+ return this.client.sendOperationRequest(args, spec);
158
+ });
159
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
160
+ var _a;
161
+ let currentRawResponse = undefined;
162
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
163
+ const callback = (rawResponse, flatResponse) => {
164
+ currentRawResponse = rawResponse;
165
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
166
+ };
167
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
168
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
169
+ return {
170
+ flatResponse,
171
+ rawResponse: {
172
+ statusCode: currentRawResponse.status,
173
+ body: currentRawResponse.parsedBody,
174
+ headers: currentRawResponse.headers.toJSON()
175
+ }
176
+ };
177
+ });
178
+ const lro = new LroImpl(sendOperation, {
179
+ fabricName,
180
+ protectionContainerName,
181
+ replicatedProtectedItemName,
182
+ input,
183
+ options
184
+ }, createOperationSpec);
185
+ return new LroEngine(lro, {
186
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
187
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
188
+ });
189
+ });
190
+ }
191
+ /**
192
+ * The operation to create an ASR replication protected item (Enable replication).
193
+ * @param fabricName Name of the fabric.
194
+ * @param protectionContainerName Protection container name.
195
+ * @param replicatedProtectedItemName A name for the replication protected item.
196
+ * @param input Enable Protection Input.
197
+ * @param options The options parameters.
198
+ */
199
+ beginCreateAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, input, options) {
200
+ return __awaiter(this, void 0, void 0, function* () {
201
+ const poller = yield this.beginCreate(fabricName, protectionContainerName, replicatedProtectedItemName, input, options);
202
+ return poller.pollUntilDone();
203
+ });
204
+ }
205
+ /**
206
+ * The operation to delete or purge a replication protected item. This operation will force delete the
207
+ * replication protected item. Use the remove operation on replication protected item to perform a
208
+ * clean disable replication for the item.
209
+ * @param fabricName Fabric name.
210
+ * @param protectionContainerName Protection container name.
211
+ * @param replicatedProtectedItemName Replication protected item name.
212
+ * @param options The options parameters.
213
+ */
214
+ beginPurge(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
215
+ return __awaiter(this, void 0, void 0, function* () {
216
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
217
+ return this.client.sendOperationRequest(args, spec);
218
+ });
219
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
220
+ var _a;
221
+ let currentRawResponse = undefined;
222
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
223
+ const callback = (rawResponse, flatResponse) => {
224
+ currentRawResponse = rawResponse;
225
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
226
+ };
227
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
228
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
229
+ return {
230
+ flatResponse,
231
+ rawResponse: {
232
+ statusCode: currentRawResponse.status,
233
+ body: currentRawResponse.parsedBody,
234
+ headers: currentRawResponse.headers.toJSON()
235
+ }
236
+ };
237
+ });
238
+ const lro = new LroImpl(sendOperation, {
239
+ fabricName,
240
+ protectionContainerName,
241
+ replicatedProtectedItemName,
242
+ options
243
+ }, purgeOperationSpec);
244
+ return new LroEngine(lro, {
245
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
246
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
247
+ });
248
+ });
249
+ }
250
+ /**
251
+ * The operation to delete or purge a replication protected item. This operation will force delete the
252
+ * replication protected item. Use the remove operation on replication protected item to perform a
253
+ * clean disable replication for the item.
254
+ * @param fabricName Fabric name.
255
+ * @param protectionContainerName Protection container name.
256
+ * @param replicatedProtectedItemName Replication protected item name.
257
+ * @param options The options parameters.
258
+ */
259
+ beginPurgeAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
260
+ return __awaiter(this, void 0, void 0, function* () {
261
+ const poller = yield this.beginPurge(fabricName, protectionContainerName, replicatedProtectedItemName, options);
262
+ return poller.pollUntilDone();
263
+ });
264
+ }
265
+ /**
266
+ * The operation to update the recovery settings of an ASR replication protected item.
267
+ * @param fabricName Fabric name.
268
+ * @param protectionContainerName Protection container name.
269
+ * @param replicatedProtectedItemName Replication protected item name.
270
+ * @param updateProtectionInput Update protection input.
271
+ * @param options The options parameters.
272
+ */
273
+ beginUpdate(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options) {
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
276
+ return this.client.sendOperationRequest(args, spec);
277
+ });
278
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
279
+ var _a;
280
+ let currentRawResponse = undefined;
281
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
282
+ const callback = (rawResponse, flatResponse) => {
283
+ currentRawResponse = rawResponse;
284
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
285
+ };
286
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
287
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
288
+ return {
289
+ flatResponse,
290
+ rawResponse: {
291
+ statusCode: currentRawResponse.status,
292
+ body: currentRawResponse.parsedBody,
293
+ headers: currentRawResponse.headers.toJSON()
294
+ }
295
+ };
296
+ });
297
+ const lro = new LroImpl(sendOperation, {
298
+ fabricName,
299
+ protectionContainerName,
300
+ replicatedProtectedItemName,
301
+ updateProtectionInput,
302
+ options
303
+ }, updateOperationSpec);
304
+ return new LroEngine(lro, {
305
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
306
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
307
+ });
308
+ });
309
+ }
310
+ /**
311
+ * The operation to update the recovery settings of an ASR replication protected item.
312
+ * @param fabricName Fabric name.
313
+ * @param protectionContainerName Protection container name.
314
+ * @param replicatedProtectedItemName Replication protected item name.
315
+ * @param updateProtectionInput Update protection input.
316
+ * @param options The options parameters.
317
+ */
318
+ beginUpdateAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options) {
319
+ return __awaiter(this, void 0, void 0, function* () {
320
+ const poller = yield this.beginUpdate(fabricName, protectionContainerName, replicatedProtectedItemName, updateProtectionInput, options);
321
+ return poller.pollUntilDone();
322
+ });
323
+ }
324
+ /**
325
+ * Operation to add disks(s) to the replication protected item.
326
+ * @param fabricName Unique fabric name.
327
+ * @param protectionContainerName Protection container name.
328
+ * @param replicatedProtectedItemName Replication protected item name.
329
+ * @param addDisksInput Add disks input.
330
+ * @param options The options parameters.
331
+ */
332
+ beginAddDisks(fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options) {
333
+ return __awaiter(this, void 0, void 0, function* () {
334
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
335
+ return this.client.sendOperationRequest(args, spec);
336
+ });
337
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
338
+ var _a;
339
+ let currentRawResponse = undefined;
340
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
341
+ const callback = (rawResponse, flatResponse) => {
342
+ currentRawResponse = rawResponse;
343
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
344
+ };
345
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
346
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
347
+ return {
348
+ flatResponse,
349
+ rawResponse: {
350
+ statusCode: currentRawResponse.status,
351
+ body: currentRawResponse.parsedBody,
352
+ headers: currentRawResponse.headers.toJSON()
353
+ }
354
+ };
355
+ });
356
+ const lro = new LroImpl(sendOperation, {
357
+ fabricName,
358
+ protectionContainerName,
359
+ replicatedProtectedItemName,
360
+ addDisksInput,
361
+ options
362
+ }, addDisksOperationSpec);
363
+ return new LroEngine(lro, {
364
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
365
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
366
+ });
367
+ });
368
+ }
369
+ /**
370
+ * Operation to add disks(s) to the replication protected item.
371
+ * @param fabricName Unique fabric name.
372
+ * @param protectionContainerName Protection container name.
373
+ * @param replicatedProtectedItemName Replication protected item name.
374
+ * @param addDisksInput Add disks input.
375
+ * @param options The options parameters.
376
+ */
377
+ beginAddDisksAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options) {
378
+ return __awaiter(this, void 0, void 0, function* () {
379
+ const poller = yield this.beginAddDisks(fabricName, protectionContainerName, replicatedProtectedItemName, addDisksInput, options);
380
+ return poller.pollUntilDone();
381
+ });
382
+ }
383
+ /**
384
+ * The operation to change the recovery point of a failed over replication protected item.
385
+ * @param fabricName The ARM fabric name.
386
+ * @param protectionContainerName The protection container name.
387
+ * @param replicatedProtectedItemName The replicated protected item name.
388
+ * @param applyRecoveryPointInput The ApplyRecoveryPointInput.
389
+ * @param options The options parameters.
390
+ */
391
+ beginApplyRecoveryPoint(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options) {
392
+ return __awaiter(this, void 0, void 0, function* () {
393
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
394
+ return this.client.sendOperationRequest(args, spec);
395
+ });
396
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
397
+ var _a;
398
+ let currentRawResponse = undefined;
399
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
400
+ const callback = (rawResponse, flatResponse) => {
401
+ currentRawResponse = rawResponse;
402
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
403
+ };
404
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
405
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
406
+ return {
407
+ flatResponse,
408
+ rawResponse: {
409
+ statusCode: currentRawResponse.status,
410
+ body: currentRawResponse.parsedBody,
411
+ headers: currentRawResponse.headers.toJSON()
412
+ }
413
+ };
414
+ });
415
+ const lro = new LroImpl(sendOperation, {
416
+ fabricName,
417
+ protectionContainerName,
418
+ replicatedProtectedItemName,
419
+ applyRecoveryPointInput,
420
+ options
421
+ }, applyRecoveryPointOperationSpec);
422
+ return new LroEngine(lro, {
423
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
424
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
425
+ });
426
+ });
427
+ }
428
+ /**
429
+ * The operation to change the recovery point of a failed over replication protected item.
430
+ * @param fabricName The ARM fabric name.
431
+ * @param protectionContainerName The protection container name.
432
+ * @param replicatedProtectedItemName The replicated protected item name.
433
+ * @param applyRecoveryPointInput The ApplyRecoveryPointInput.
434
+ * @param options The options parameters.
435
+ */
436
+ beginApplyRecoveryPointAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ const poller = yield this.beginApplyRecoveryPoint(fabricName, protectionContainerName, replicatedProtectedItemName, applyRecoveryPointInput, options);
439
+ return poller.pollUntilDone();
440
+ });
441
+ }
442
+ /**
443
+ * Operation to cancel the failover of the replication protected item.
444
+ * @param fabricName Unique fabric name.
445
+ * @param protectionContainerName Protection container name.
446
+ * @param replicatedProtectedItemName Replication protected item name.
447
+ * @param options The options parameters.
448
+ */
449
+ beginFailoverCancel(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
450
+ return __awaiter(this, void 0, void 0, function* () {
451
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
452
+ return this.client.sendOperationRequest(args, spec);
453
+ });
454
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
455
+ var _a;
456
+ let currentRawResponse = undefined;
457
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
458
+ const callback = (rawResponse, flatResponse) => {
459
+ currentRawResponse = rawResponse;
460
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
461
+ };
462
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
463
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
464
+ return {
465
+ flatResponse,
466
+ rawResponse: {
467
+ statusCode: currentRawResponse.status,
468
+ body: currentRawResponse.parsedBody,
469
+ headers: currentRawResponse.headers.toJSON()
470
+ }
471
+ };
472
+ });
473
+ const lro = new LroImpl(sendOperation, {
474
+ fabricName,
475
+ protectionContainerName,
476
+ replicatedProtectedItemName,
477
+ options
478
+ }, failoverCancelOperationSpec);
479
+ return new LroEngine(lro, {
480
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
481
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
482
+ });
483
+ });
484
+ }
485
+ /**
486
+ * Operation to cancel the failover of the replication protected item.
487
+ * @param fabricName Unique fabric name.
488
+ * @param protectionContainerName Protection container name.
489
+ * @param replicatedProtectedItemName Replication protected item name.
490
+ * @param options The options parameters.
491
+ */
492
+ beginFailoverCancelAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
493
+ return __awaiter(this, void 0, void 0, function* () {
494
+ const poller = yield this.beginFailoverCancel(fabricName, protectionContainerName, replicatedProtectedItemName, options);
495
+ return poller.pollUntilDone();
496
+ });
497
+ }
498
+ /**
499
+ * Operation to commit the failover of the replication protected item.
500
+ * @param fabricName Unique fabric name.
501
+ * @param protectionContainerName Protection container name.
502
+ * @param replicatedProtectedItemName Replication protected item name.
503
+ * @param options The options parameters.
504
+ */
505
+ beginFailoverCommit(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
506
+ return __awaiter(this, void 0, void 0, function* () {
507
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
508
+ return this.client.sendOperationRequest(args, spec);
509
+ });
510
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
511
+ var _a;
512
+ let currentRawResponse = undefined;
513
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
514
+ const callback = (rawResponse, flatResponse) => {
515
+ currentRawResponse = rawResponse;
516
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
517
+ };
518
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
519
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
520
+ return {
521
+ flatResponse,
522
+ rawResponse: {
523
+ statusCode: currentRawResponse.status,
524
+ body: currentRawResponse.parsedBody,
525
+ headers: currentRawResponse.headers.toJSON()
526
+ }
527
+ };
528
+ });
529
+ const lro = new LroImpl(sendOperation, {
530
+ fabricName,
531
+ protectionContainerName,
532
+ replicatedProtectedItemName,
533
+ options
534
+ }, failoverCommitOperationSpec);
535
+ return new LroEngine(lro, {
536
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
537
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
538
+ });
539
+ });
540
+ }
541
+ /**
542
+ * Operation to commit the failover of the replication protected item.
543
+ * @param fabricName Unique fabric name.
544
+ * @param protectionContainerName Protection container name.
545
+ * @param replicatedProtectedItemName Replication protected item name.
546
+ * @param options The options parameters.
547
+ */
548
+ beginFailoverCommitAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
549
+ return __awaiter(this, void 0, void 0, function* () {
550
+ const poller = yield this.beginFailoverCommit(fabricName, protectionContainerName, replicatedProtectedItemName, options);
551
+ return poller.pollUntilDone();
552
+ });
553
+ }
554
+ /**
555
+ * Operation to initiate a planned failover of the replication protected item.
556
+ * @param fabricName Unique fabric name.
557
+ * @param protectionContainerName Protection container name.
558
+ * @param replicatedProtectedItemName Replication protected item name.
559
+ * @param failoverInput Planned failover input.
560
+ * @param options The options parameters.
561
+ */
562
+ beginPlannedFailover(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
563
+ return __awaiter(this, void 0, void 0, function* () {
564
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
565
+ return this.client.sendOperationRequest(args, spec);
566
+ });
567
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
568
+ var _a;
569
+ let currentRawResponse = undefined;
570
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
571
+ const callback = (rawResponse, flatResponse) => {
572
+ currentRawResponse = rawResponse;
573
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
574
+ };
575
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
576
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
577
+ return {
578
+ flatResponse,
579
+ rawResponse: {
580
+ statusCode: currentRawResponse.status,
581
+ body: currentRawResponse.parsedBody,
582
+ headers: currentRawResponse.headers.toJSON()
583
+ }
584
+ };
585
+ });
586
+ const lro = new LroImpl(sendOperation, {
587
+ fabricName,
588
+ protectionContainerName,
589
+ replicatedProtectedItemName,
590
+ failoverInput,
591
+ options
592
+ }, plannedFailoverOperationSpec);
593
+ return new LroEngine(lro, {
594
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
595
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
596
+ });
597
+ });
598
+ }
599
+ /**
600
+ * Operation to initiate a planned failover of the replication protected item.
601
+ * @param fabricName Unique fabric name.
602
+ * @param protectionContainerName Protection container name.
603
+ * @param replicatedProtectedItemName Replication protected item name.
604
+ * @param failoverInput Planned failover input.
605
+ * @param options The options parameters.
606
+ */
607
+ beginPlannedFailoverAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
608
+ return __awaiter(this, void 0, void 0, function* () {
609
+ const poller = yield this.beginPlannedFailover(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options);
610
+ return poller.pollUntilDone();
611
+ });
612
+ }
613
+ /**
614
+ * The operation to disable replication on a replication protected item. This will also remove the
615
+ * item.
616
+ * @param fabricName Fabric name.
617
+ * @param protectionContainerName Protection container name.
618
+ * @param replicatedProtectedItemName Replication protected item name.
619
+ * @param disableProtectionInput Disable protection input.
620
+ * @param options The options parameters.
621
+ */
622
+ beginDelete(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options) {
623
+ return __awaiter(this, void 0, void 0, function* () {
624
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
625
+ return this.client.sendOperationRequest(args, spec);
626
+ });
627
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
628
+ var _a;
629
+ let currentRawResponse = undefined;
630
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
631
+ const callback = (rawResponse, flatResponse) => {
632
+ currentRawResponse = rawResponse;
633
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
634
+ };
635
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
636
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
637
+ return {
638
+ flatResponse,
639
+ rawResponse: {
640
+ statusCode: currentRawResponse.status,
641
+ body: currentRawResponse.parsedBody,
642
+ headers: currentRawResponse.headers.toJSON()
643
+ }
644
+ };
645
+ });
646
+ const lro = new LroImpl(sendOperation, {
647
+ fabricName,
648
+ protectionContainerName,
649
+ replicatedProtectedItemName,
650
+ disableProtectionInput,
651
+ options
652
+ }, deleteOperationSpec);
653
+ return new LroEngine(lro, {
654
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
655
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
656
+ });
657
+ });
658
+ }
659
+ /**
660
+ * The operation to disable replication on a replication protected item. This will also remove the
661
+ * item.
662
+ * @param fabricName Fabric name.
663
+ * @param protectionContainerName Protection container name.
664
+ * @param replicatedProtectedItemName Replication protected item name.
665
+ * @param disableProtectionInput Disable protection input.
666
+ * @param options The options parameters.
667
+ */
668
+ beginDeleteAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options) {
669
+ return __awaiter(this, void 0, void 0, function* () {
670
+ const poller = yield this.beginDelete(fabricName, protectionContainerName, replicatedProtectedItemName, disableProtectionInput, options);
671
+ return poller.pollUntilDone();
672
+ });
673
+ }
674
+ /**
675
+ * Operation to remove disk(s) from the replication protected item.
676
+ * @param fabricName Unique fabric name.
677
+ * @param protectionContainerName Protection container name.
678
+ * @param replicatedProtectedItemName Replication protected item name.
679
+ * @param removeDisksInput Remove disks input.
680
+ * @param options The options parameters.
681
+ */
682
+ beginRemoveDisks(fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options) {
683
+ return __awaiter(this, void 0, void 0, function* () {
684
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
685
+ return this.client.sendOperationRequest(args, spec);
686
+ });
687
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
688
+ var _a;
689
+ let currentRawResponse = undefined;
690
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
691
+ const callback = (rawResponse, flatResponse) => {
692
+ currentRawResponse = rawResponse;
693
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
694
+ };
695
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
696
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
697
+ return {
698
+ flatResponse,
699
+ rawResponse: {
700
+ statusCode: currentRawResponse.status,
701
+ body: currentRawResponse.parsedBody,
702
+ headers: currentRawResponse.headers.toJSON()
703
+ }
704
+ };
705
+ });
706
+ const lro = new LroImpl(sendOperation, {
707
+ fabricName,
708
+ protectionContainerName,
709
+ replicatedProtectedItemName,
710
+ removeDisksInput,
711
+ options
712
+ }, removeDisksOperationSpec);
713
+ return new LroEngine(lro, {
714
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
715
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
716
+ });
717
+ });
718
+ }
719
+ /**
720
+ * Operation to remove disk(s) from the replication protected item.
721
+ * @param fabricName Unique fabric name.
722
+ * @param protectionContainerName Protection container name.
723
+ * @param replicatedProtectedItemName Replication protected item name.
724
+ * @param removeDisksInput Remove disks input.
725
+ * @param options The options parameters.
726
+ */
727
+ beginRemoveDisksAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options) {
728
+ return __awaiter(this, void 0, void 0, function* () {
729
+ const poller = yield this.beginRemoveDisks(fabricName, protectionContainerName, replicatedProtectedItemName, removeDisksInput, options);
730
+ return poller.pollUntilDone();
731
+ });
732
+ }
733
+ /**
734
+ * The operation to start resynchronize/repair replication for a replication protected item requiring
735
+ * resynchronization.
736
+ * @param fabricName The name of the fabric.
737
+ * @param protectionContainerName The name of the container.
738
+ * @param replicatedProtectedItemName The name of the replication protected item.
739
+ * @param options The options parameters.
740
+ */
741
+ beginRepairReplication(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
742
+ return __awaiter(this, void 0, void 0, function* () {
743
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
744
+ return this.client.sendOperationRequest(args, spec);
745
+ });
746
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
747
+ var _a;
748
+ let currentRawResponse = undefined;
749
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
750
+ const callback = (rawResponse, flatResponse) => {
751
+ currentRawResponse = rawResponse;
752
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
753
+ };
754
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
755
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
756
+ return {
757
+ flatResponse,
758
+ rawResponse: {
759
+ statusCode: currentRawResponse.status,
760
+ body: currentRawResponse.parsedBody,
761
+ headers: currentRawResponse.headers.toJSON()
762
+ }
763
+ };
764
+ });
765
+ const lro = new LroImpl(sendOperation, {
766
+ fabricName,
767
+ protectionContainerName,
768
+ replicatedProtectedItemName,
769
+ options
770
+ }, repairReplicationOperationSpec);
771
+ return new LroEngine(lro, {
772
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
773
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
774
+ });
775
+ });
776
+ }
777
+ /**
778
+ * The operation to start resynchronize/repair replication for a replication protected item requiring
779
+ * resynchronization.
780
+ * @param fabricName The name of the fabric.
781
+ * @param protectionContainerName The name of the container.
782
+ * @param replicatedProtectedItemName The name of the replication protected item.
783
+ * @param options The options parameters.
784
+ */
785
+ beginRepairReplicationAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, options) {
786
+ return __awaiter(this, void 0, void 0, function* () {
787
+ const poller = yield this.beginRepairReplication(fabricName, protectionContainerName, replicatedProtectedItemName, options);
788
+ return poller.pollUntilDone();
789
+ });
790
+ }
791
+ /**
792
+ * Operation to reprotect or reverse replicate a failed over replication protected item.
793
+ * @param fabricName Unique fabric name.
794
+ * @param protectionContainerName Protection container name.
795
+ * @param replicatedProtectedItemName Replication protected item name.
796
+ * @param reprotectInput Reverse replication input.
797
+ * @param options The options parameters.
798
+ */
799
+ beginReprotect(fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options) {
800
+ return __awaiter(this, void 0, void 0, function* () {
801
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
802
+ return this.client.sendOperationRequest(args, spec);
803
+ });
804
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
805
+ var _a;
806
+ let currentRawResponse = undefined;
807
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
808
+ const callback = (rawResponse, flatResponse) => {
809
+ currentRawResponse = rawResponse;
810
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
811
+ };
812
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
813
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
814
+ return {
815
+ flatResponse,
816
+ rawResponse: {
817
+ statusCode: currentRawResponse.status,
818
+ body: currentRawResponse.parsedBody,
819
+ headers: currentRawResponse.headers.toJSON()
820
+ }
821
+ };
822
+ });
823
+ const lro = new LroImpl(sendOperation, {
824
+ fabricName,
825
+ protectionContainerName,
826
+ replicatedProtectedItemName,
827
+ reprotectInput,
828
+ options
829
+ }, reprotectOperationSpec);
830
+ return new LroEngine(lro, {
831
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
832
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
833
+ });
834
+ });
835
+ }
836
+ /**
837
+ * Operation to reprotect or reverse replicate a failed over replication protected item.
838
+ * @param fabricName Unique fabric name.
839
+ * @param protectionContainerName Protection container name.
840
+ * @param replicatedProtectedItemName Replication protected item name.
841
+ * @param reprotectInput Reverse replication input.
842
+ * @param options The options parameters.
843
+ */
844
+ beginReprotectAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options) {
845
+ return __awaiter(this, void 0, void 0, function* () {
846
+ const poller = yield this.beginReprotect(fabricName, protectionContainerName, replicatedProtectedItemName, reprotectInput, options);
847
+ return poller.pollUntilDone();
848
+ });
849
+ }
850
+ /**
851
+ * Operation to resolve health issues of the replication protected item.
852
+ * @param fabricName Unique fabric name.
853
+ * @param protectionContainerName Protection container name.
854
+ * @param replicatedProtectedItemName Replication protected item name.
855
+ * @param resolveHealthInput Health issue input object.
856
+ * @param options The options parameters.
857
+ */
858
+ beginResolveHealthErrors(fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options) {
859
+ return __awaiter(this, void 0, void 0, function* () {
860
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
861
+ return this.client.sendOperationRequest(args, spec);
862
+ });
863
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
864
+ var _a;
865
+ let currentRawResponse = undefined;
866
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
867
+ const callback = (rawResponse, flatResponse) => {
868
+ currentRawResponse = rawResponse;
869
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
870
+ };
871
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
872
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
873
+ return {
874
+ flatResponse,
875
+ rawResponse: {
876
+ statusCode: currentRawResponse.status,
877
+ body: currentRawResponse.parsedBody,
878
+ headers: currentRawResponse.headers.toJSON()
879
+ }
880
+ };
881
+ });
882
+ const lro = new LroImpl(sendOperation, {
883
+ fabricName,
884
+ protectionContainerName,
885
+ replicatedProtectedItemName,
886
+ resolveHealthInput,
887
+ options
888
+ }, resolveHealthErrorsOperationSpec);
889
+ return new LroEngine(lro, {
890
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
891
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
892
+ });
893
+ });
894
+ }
895
+ /**
896
+ * Operation to resolve health issues of the replication protected item.
897
+ * @param fabricName Unique fabric name.
898
+ * @param protectionContainerName Protection container name.
899
+ * @param replicatedProtectedItemName Replication protected item name.
900
+ * @param resolveHealthInput Health issue input object.
901
+ * @param options The options parameters.
902
+ */
903
+ beginResolveHealthErrorsAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options) {
904
+ return __awaiter(this, void 0, void 0, function* () {
905
+ const poller = yield this.beginResolveHealthErrors(fabricName, protectionContainerName, replicatedProtectedItemName, resolveHealthInput, options);
906
+ return poller.pollUntilDone();
907
+ });
908
+ }
909
+ /**
910
+ * Operation to initiate a switch provider of the replication protected item.
911
+ * @param fabricName Unique fabric name.
912
+ * @param protectionContainerName Protection container name.
913
+ * @param replicatedProtectedItemName Replication protected item name.
914
+ * @param switchProviderInput Switch provider input.
915
+ * @param options The options parameters.
916
+ */
917
+ beginSwitchProvider(fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options) {
918
+ return __awaiter(this, void 0, void 0, function* () {
919
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
920
+ return this.client.sendOperationRequest(args, spec);
921
+ });
922
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
923
+ var _a;
924
+ let currentRawResponse = undefined;
925
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
926
+ const callback = (rawResponse, flatResponse) => {
927
+ currentRawResponse = rawResponse;
928
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
929
+ };
930
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
931
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
932
+ return {
933
+ flatResponse,
934
+ rawResponse: {
935
+ statusCode: currentRawResponse.status,
936
+ body: currentRawResponse.parsedBody,
937
+ headers: currentRawResponse.headers.toJSON()
938
+ }
939
+ };
940
+ });
941
+ const lro = new LroImpl(sendOperation, {
942
+ fabricName,
943
+ protectionContainerName,
944
+ replicatedProtectedItemName,
945
+ switchProviderInput,
946
+ options
947
+ }, switchProviderOperationSpec);
948
+ return new LroEngine(lro, {
949
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
950
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
951
+ lroResourceLocationConfig: "azure-async-operation"
952
+ });
953
+ });
954
+ }
955
+ /**
956
+ * Operation to initiate a switch provider of the replication protected item.
957
+ * @param fabricName Unique fabric name.
958
+ * @param protectionContainerName Protection container name.
959
+ * @param replicatedProtectedItemName Replication protected item name.
960
+ * @param switchProviderInput Switch provider input.
961
+ * @param options The options parameters.
962
+ */
963
+ beginSwitchProviderAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options) {
964
+ return __awaiter(this, void 0, void 0, function* () {
965
+ const poller = yield this.beginSwitchProvider(fabricName, protectionContainerName, replicatedProtectedItemName, switchProviderInput, options);
966
+ return poller.pollUntilDone();
967
+ });
968
+ }
969
+ /**
970
+ * Operation to perform a test failover of the replication protected item.
971
+ * @param fabricName Unique fabric name.
972
+ * @param protectionContainerName Protection container name.
973
+ * @param replicatedProtectedItemName Replication protected item name.
974
+ * @param testfailoverInput Test failover input.
975
+ * @param options The options parameters.
976
+ */
977
+ beginTestFailover(fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options) {
978
+ return __awaiter(this, void 0, void 0, function* () {
979
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
980
+ return this.client.sendOperationRequest(args, spec);
981
+ });
982
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
983
+ var _a;
984
+ let currentRawResponse = undefined;
985
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
986
+ const callback = (rawResponse, flatResponse) => {
987
+ currentRawResponse = rawResponse;
988
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
989
+ };
990
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
991
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
992
+ return {
993
+ flatResponse,
994
+ rawResponse: {
995
+ statusCode: currentRawResponse.status,
996
+ body: currentRawResponse.parsedBody,
997
+ headers: currentRawResponse.headers.toJSON()
998
+ }
999
+ };
1000
+ });
1001
+ const lro = new LroImpl(sendOperation, {
1002
+ fabricName,
1003
+ protectionContainerName,
1004
+ replicatedProtectedItemName,
1005
+ testfailoverInput,
1006
+ options
1007
+ }, testFailoverOperationSpec);
1008
+ return new LroEngine(lro, {
1009
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1010
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1011
+ });
1012
+ });
1013
+ }
1014
+ /**
1015
+ * Operation to perform a test failover of the replication protected item.
1016
+ * @param fabricName Unique fabric name.
1017
+ * @param protectionContainerName Protection container name.
1018
+ * @param replicatedProtectedItemName Replication protected item name.
1019
+ * @param testfailoverInput Test failover input.
1020
+ * @param options The options parameters.
1021
+ */
1022
+ beginTestFailoverAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options) {
1023
+ return __awaiter(this, void 0, void 0, function* () {
1024
+ const poller = yield this.beginTestFailover(fabricName, protectionContainerName, replicatedProtectedItemName, testfailoverInput, options);
1025
+ return poller.pollUntilDone();
1026
+ });
1027
+ }
1028
+ /**
1029
+ * Operation to clean up the test failover of a replication protected item.
1030
+ * @param fabricName Unique fabric name.
1031
+ * @param protectionContainerName Protection container name.
1032
+ * @param replicatedProtectedItemName Replication protected item name.
1033
+ * @param cleanupInput Test failover cleanup input.
1034
+ * @param options The options parameters.
1035
+ */
1036
+ beginTestFailoverCleanup(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options) {
1037
+ return __awaiter(this, void 0, void 0, function* () {
1038
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1039
+ return this.client.sendOperationRequest(args, spec);
1040
+ });
1041
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1042
+ var _a;
1043
+ let currentRawResponse = undefined;
1044
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1045
+ const callback = (rawResponse, flatResponse) => {
1046
+ currentRawResponse = rawResponse;
1047
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1048
+ };
1049
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1050
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1051
+ return {
1052
+ flatResponse,
1053
+ rawResponse: {
1054
+ statusCode: currentRawResponse.status,
1055
+ body: currentRawResponse.parsedBody,
1056
+ headers: currentRawResponse.headers.toJSON()
1057
+ }
1058
+ };
1059
+ });
1060
+ const lro = new LroImpl(sendOperation, {
1061
+ fabricName,
1062
+ protectionContainerName,
1063
+ replicatedProtectedItemName,
1064
+ cleanupInput,
1065
+ options
1066
+ }, testFailoverCleanupOperationSpec);
1067
+ return new LroEngine(lro, {
1068
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1069
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1070
+ });
1071
+ });
1072
+ }
1073
+ /**
1074
+ * Operation to clean up the test failover of a replication protected item.
1075
+ * @param fabricName Unique fabric name.
1076
+ * @param protectionContainerName Protection container name.
1077
+ * @param replicatedProtectedItemName Replication protected item name.
1078
+ * @param cleanupInput Test failover cleanup input.
1079
+ * @param options The options parameters.
1080
+ */
1081
+ beginTestFailoverCleanupAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options) {
1082
+ return __awaiter(this, void 0, void 0, function* () {
1083
+ const poller = yield this.beginTestFailoverCleanup(fabricName, protectionContainerName, replicatedProtectedItemName, cleanupInput, options);
1084
+ return poller.pollUntilDone();
1085
+ });
1086
+ }
1087
+ /**
1088
+ * Operation to initiate a failover of the replication protected item.
1089
+ * @param fabricName Unique fabric name.
1090
+ * @param protectionContainerName Protection container name.
1091
+ * @param replicatedProtectedItemName Replication protected item name.
1092
+ * @param failoverInput Failover input.
1093
+ * @param options The options parameters.
1094
+ */
1095
+ beginUnplannedFailover(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
1096
+ return __awaiter(this, void 0, void 0, function* () {
1097
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1098
+ return this.client.sendOperationRequest(args, spec);
1099
+ });
1100
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1101
+ var _a;
1102
+ let currentRawResponse = undefined;
1103
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1104
+ const callback = (rawResponse, flatResponse) => {
1105
+ currentRawResponse = rawResponse;
1106
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1107
+ };
1108
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1109
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1110
+ return {
1111
+ flatResponse,
1112
+ rawResponse: {
1113
+ statusCode: currentRawResponse.status,
1114
+ body: currentRawResponse.parsedBody,
1115
+ headers: currentRawResponse.headers.toJSON()
1116
+ }
1117
+ };
1118
+ });
1119
+ const lro = new LroImpl(sendOperation, {
1120
+ fabricName,
1121
+ protectionContainerName,
1122
+ replicatedProtectedItemName,
1123
+ failoverInput,
1124
+ options
1125
+ }, unplannedFailoverOperationSpec);
1126
+ return new LroEngine(lro, {
1127
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1128
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1129
+ });
1130
+ });
1131
+ }
1132
+ /**
1133
+ * Operation to initiate a failover of the replication protected item.
1134
+ * @param fabricName Unique fabric name.
1135
+ * @param protectionContainerName Protection container name.
1136
+ * @param replicatedProtectedItemName Replication protected item name.
1137
+ * @param failoverInput Failover input.
1138
+ * @param options The options parameters.
1139
+ */
1140
+ beginUnplannedFailoverAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options) {
1141
+ return __awaiter(this, void 0, void 0, function* () {
1142
+ const poller = yield this.beginUnplannedFailover(fabricName, protectionContainerName, replicatedProtectedItemName, failoverInput, options);
1143
+ return poller.pollUntilDone();
1144
+ });
1145
+ }
1146
+ /**
1147
+ * The operation to update appliance of an ASR replication protected item.
1148
+ * @param fabricName Fabric name.
1149
+ * @param protectionContainerName Protection container name.
1150
+ * @param replicatedProtectedItemName Replication protected item name.
1151
+ * @param applianceUpdateInput Appliance update protection input.
1152
+ * @param options The options parameters.
1153
+ */
1154
+ beginUpdateAppliance(fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options) {
1155
+ return __awaiter(this, void 0, void 0, function* () {
1156
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1157
+ return this.client.sendOperationRequest(args, spec);
1158
+ });
1159
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1160
+ var _a;
1161
+ let currentRawResponse = undefined;
1162
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1163
+ const callback = (rawResponse, flatResponse) => {
1164
+ currentRawResponse = rawResponse;
1165
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1166
+ };
1167
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1168
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1169
+ return {
1170
+ flatResponse,
1171
+ rawResponse: {
1172
+ statusCode: currentRawResponse.status,
1173
+ body: currentRawResponse.parsedBody,
1174
+ headers: currentRawResponse.headers.toJSON()
1175
+ }
1176
+ };
1177
+ });
1178
+ const lro = new LroImpl(sendOperation, {
1179
+ fabricName,
1180
+ protectionContainerName,
1181
+ replicatedProtectedItemName,
1182
+ applianceUpdateInput,
1183
+ options
1184
+ }, updateApplianceOperationSpec);
1185
+ return new LroEngine(lro, {
1186
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1187
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1188
+ });
1189
+ });
1190
+ }
1191
+ /**
1192
+ * The operation to update appliance of an ASR replication protected item.
1193
+ * @param fabricName Fabric name.
1194
+ * @param protectionContainerName Protection container name.
1195
+ * @param replicatedProtectedItemName Replication protected item name.
1196
+ * @param applianceUpdateInput Appliance update protection input.
1197
+ * @param options The options parameters.
1198
+ */
1199
+ beginUpdateApplianceAndWait(fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options) {
1200
+ return __awaiter(this, void 0, void 0, function* () {
1201
+ const poller = yield this.beginUpdateAppliance(fabricName, protectionContainerName, replicatedProtectedItemName, applianceUpdateInput, options);
1202
+ return poller.pollUntilDone();
1203
+ });
1204
+ }
1205
+ /**
1206
+ * The operation to update(push update) the installed mobility service software on a replication
1207
+ * protected item to the latest available version.
1208
+ * @param fabricName The name of the fabric containing the protected item.
1209
+ * @param protectionContainerName The name of the container containing the protected item.
1210
+ * @param replicationProtectedItemName The name of the protected item on which the agent is to be
1211
+ * updated.
1212
+ * @param updateMobilityServiceRequest Request to update the mobility service on the protected item.
1213
+ * @param options The options parameters.
1214
+ */
1215
+ beginUpdateMobilityService(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, options) {
1216
+ return __awaiter(this, void 0, void 0, function* () {
1217
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1218
+ return this.client.sendOperationRequest(args, spec);
1219
+ });
1220
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
1221
+ var _a;
1222
+ let currentRawResponse = undefined;
1223
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1224
+ const callback = (rawResponse, flatResponse) => {
1225
+ currentRawResponse = rawResponse;
1226
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1227
+ };
1228
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1229
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1230
+ return {
1231
+ flatResponse,
1232
+ rawResponse: {
1233
+ statusCode: currentRawResponse.status,
1234
+ body: currentRawResponse.parsedBody,
1235
+ headers: currentRawResponse.headers.toJSON()
1236
+ }
1237
+ };
1238
+ });
1239
+ const lro = new LroImpl(sendOperation, {
1240
+ fabricName,
1241
+ protectionContainerName,
1242
+ replicationProtectedItemName,
1243
+ updateMobilityServiceRequest,
1244
+ options
1245
+ }, updateMobilityServiceOperationSpec);
1246
+ return new LroEngine(lro, {
1247
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1248
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1249
+ });
1250
+ });
1251
+ }
1252
+ /**
1253
+ * The operation to update(push update) the installed mobility service software on a replication
1254
+ * protected item to the latest available version.
1255
+ * @param fabricName The name of the fabric containing the protected item.
1256
+ * @param protectionContainerName The name of the container containing the protected item.
1257
+ * @param replicationProtectedItemName The name of the protected item on which the agent is to be
1258
+ * updated.
1259
+ * @param updateMobilityServiceRequest Request to update the mobility service on the protected item.
1260
+ * @param options The options parameters.
1261
+ */
1262
+ beginUpdateMobilityServiceAndWait(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, options) {
1263
+ return __awaiter(this, void 0, void 0, function* () {
1264
+ const poller = yield this.beginUpdateMobilityService(fabricName, protectionContainerName, replicationProtectedItemName, updateMobilityServiceRequest, options);
1265
+ return poller.pollUntilDone();
1266
+ });
1267
+ }
1268
+ /**
1269
+ * Gets the list of ASR replication protected items in the vault.
1270
+ * @param options The options parameters.
1271
+ */
1272
+ _list(options) {
1273
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
1274
+ }
1275
+ /**
1276
+ * ListByReplicationProtectionContainersNext
1277
+ * @param fabricName Fabric name.
1278
+ * @param protectionContainerName Protection container name.
1279
+ * @param nextLink The nextLink from the previous successful call to the
1280
+ * ListByReplicationProtectionContainers method.
1281
+ * @param options The options parameters.
1282
+ */
1283
+ _listByReplicationProtectionContainersNext(fabricName, protectionContainerName, nextLink, options) {
1284
+ return this.client.sendOperationRequest({ fabricName, protectionContainerName, nextLink, options }, listByReplicationProtectionContainersNextOperationSpec);
1285
+ }
1286
+ /**
1287
+ * ListNext
1288
+ * @param nextLink The nextLink from the previous successful call to the List method.
1289
+ * @param options The options parameters.
1290
+ */
1291
+ _listNext(nextLink, options) {
1292
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1293
+ }
1294
+ }
1295
+ // Operation Specifications
1296
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1297
+ const listByReplicationProtectionContainersOperationSpec = {
1298
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems",
1299
+ httpMethod: "GET",
1300
+ responses: {
1301
+ 200: {
1302
+ bodyMapper: Mappers.ReplicationProtectedItemCollection
1303
+ }
1304
+ },
1305
+ queryParameters: [Parameters.apiVersion],
1306
+ urlParameters: [
1307
+ Parameters.$host,
1308
+ Parameters.resourceGroupName,
1309
+ Parameters.subscriptionId,
1310
+ Parameters.resourceName,
1311
+ Parameters.fabricName,
1312
+ Parameters.protectionContainerName
1313
+ ],
1314
+ headerParameters: [Parameters.accept],
1315
+ serializer
1316
+ };
1317
+ const getOperationSpec = {
1318
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
1319
+ httpMethod: "GET",
1320
+ responses: {
1321
+ 200: {
1322
+ bodyMapper: Mappers.ReplicationProtectedItem
1323
+ }
1324
+ },
1325
+ queryParameters: [Parameters.apiVersion],
1326
+ urlParameters: [
1327
+ Parameters.$host,
1328
+ Parameters.resourceGroupName,
1329
+ Parameters.subscriptionId,
1330
+ Parameters.resourceName,
1331
+ Parameters.fabricName,
1332
+ Parameters.protectionContainerName,
1333
+ Parameters.replicatedProtectedItemName
1334
+ ],
1335
+ headerParameters: [Parameters.accept],
1336
+ serializer
1337
+ };
1338
+ const createOperationSpec = {
1339
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
1340
+ httpMethod: "PUT",
1341
+ responses: {
1342
+ 200: {
1343
+ bodyMapper: Mappers.ReplicationProtectedItem
1344
+ },
1345
+ 201: {
1346
+ bodyMapper: Mappers.ReplicationProtectedItem
1347
+ },
1348
+ 202: {
1349
+ bodyMapper: Mappers.ReplicationProtectedItem
1350
+ },
1351
+ 204: {
1352
+ bodyMapper: Mappers.ReplicationProtectedItem
1353
+ }
1354
+ },
1355
+ requestBody: Parameters.input6,
1356
+ queryParameters: [Parameters.apiVersion],
1357
+ urlParameters: [
1358
+ Parameters.$host,
1359
+ Parameters.resourceGroupName,
1360
+ Parameters.subscriptionId,
1361
+ Parameters.resourceName,
1362
+ Parameters.fabricName,
1363
+ Parameters.protectionContainerName,
1364
+ Parameters.replicatedProtectedItemName
1365
+ ],
1366
+ headerParameters: [Parameters.accept, Parameters.contentType],
1367
+ mediaType: "json",
1368
+ serializer
1369
+ };
1370
+ const purgeOperationSpec = {
1371
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
1372
+ httpMethod: "DELETE",
1373
+ responses: { 200: {}, 201: {}, 202: {}, 204: {} },
1374
+ queryParameters: [Parameters.apiVersion],
1375
+ urlParameters: [
1376
+ Parameters.$host,
1377
+ Parameters.resourceGroupName,
1378
+ Parameters.subscriptionId,
1379
+ Parameters.resourceName,
1380
+ Parameters.fabricName,
1381
+ Parameters.protectionContainerName,
1382
+ Parameters.replicatedProtectedItemName
1383
+ ],
1384
+ serializer
1385
+ };
1386
+ const updateOperationSpec = {
1387
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}",
1388
+ httpMethod: "PATCH",
1389
+ responses: {
1390
+ 200: {
1391
+ bodyMapper: Mappers.ReplicationProtectedItem
1392
+ },
1393
+ 201: {
1394
+ bodyMapper: Mappers.ReplicationProtectedItem
1395
+ },
1396
+ 202: {
1397
+ bodyMapper: Mappers.ReplicationProtectedItem
1398
+ },
1399
+ 204: {
1400
+ bodyMapper: Mappers.ReplicationProtectedItem
1401
+ }
1402
+ },
1403
+ requestBody: Parameters.updateProtectionInput,
1404
+ queryParameters: [Parameters.apiVersion],
1405
+ urlParameters: [
1406
+ Parameters.$host,
1407
+ Parameters.resourceGroupName,
1408
+ Parameters.subscriptionId,
1409
+ Parameters.resourceName,
1410
+ Parameters.fabricName,
1411
+ Parameters.protectionContainerName,
1412
+ Parameters.replicatedProtectedItemName
1413
+ ],
1414
+ headerParameters: [Parameters.accept, Parameters.contentType],
1415
+ mediaType: "json",
1416
+ serializer
1417
+ };
1418
+ const addDisksOperationSpec = {
1419
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks",
1420
+ httpMethod: "POST",
1421
+ responses: {
1422
+ 200: {
1423
+ bodyMapper: Mappers.ReplicationProtectedItem
1424
+ },
1425
+ 201: {
1426
+ bodyMapper: Mappers.ReplicationProtectedItem
1427
+ },
1428
+ 202: {
1429
+ bodyMapper: Mappers.ReplicationProtectedItem
1430
+ },
1431
+ 204: {
1432
+ bodyMapper: Mappers.ReplicationProtectedItem
1433
+ }
1434
+ },
1435
+ requestBody: Parameters.addDisksInput,
1436
+ queryParameters: [Parameters.apiVersion],
1437
+ urlParameters: [
1438
+ Parameters.$host,
1439
+ Parameters.resourceGroupName,
1440
+ Parameters.subscriptionId,
1441
+ Parameters.resourceName,
1442
+ Parameters.fabricName,
1443
+ Parameters.protectionContainerName,
1444
+ Parameters.replicatedProtectedItemName
1445
+ ],
1446
+ headerParameters: [Parameters.accept, Parameters.contentType],
1447
+ mediaType: "json",
1448
+ serializer
1449
+ };
1450
+ const applyRecoveryPointOperationSpec = {
1451
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint",
1452
+ httpMethod: "POST",
1453
+ responses: {
1454
+ 200: {
1455
+ bodyMapper: Mappers.ReplicationProtectedItem
1456
+ },
1457
+ 201: {
1458
+ bodyMapper: Mappers.ReplicationProtectedItem
1459
+ },
1460
+ 202: {
1461
+ bodyMapper: Mappers.ReplicationProtectedItem
1462
+ },
1463
+ 204: {
1464
+ bodyMapper: Mappers.ReplicationProtectedItem
1465
+ }
1466
+ },
1467
+ requestBody: Parameters.applyRecoveryPointInput,
1468
+ queryParameters: [Parameters.apiVersion],
1469
+ urlParameters: [
1470
+ Parameters.$host,
1471
+ Parameters.resourceGroupName,
1472
+ Parameters.subscriptionId,
1473
+ Parameters.resourceName,
1474
+ Parameters.fabricName,
1475
+ Parameters.protectionContainerName,
1476
+ Parameters.replicatedProtectedItemName
1477
+ ],
1478
+ headerParameters: [Parameters.accept, Parameters.contentType],
1479
+ mediaType: "json",
1480
+ serializer
1481
+ };
1482
+ const failoverCancelOperationSpec = {
1483
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCancel",
1484
+ httpMethod: "POST",
1485
+ responses: {
1486
+ 200: {
1487
+ bodyMapper: Mappers.ReplicationProtectedItem
1488
+ },
1489
+ 201: {
1490
+ bodyMapper: Mappers.ReplicationProtectedItem
1491
+ },
1492
+ 202: {
1493
+ bodyMapper: Mappers.ReplicationProtectedItem
1494
+ },
1495
+ 204: {
1496
+ bodyMapper: Mappers.ReplicationProtectedItem
1497
+ }
1498
+ },
1499
+ queryParameters: [Parameters.apiVersion],
1500
+ urlParameters: [
1501
+ Parameters.$host,
1502
+ Parameters.resourceGroupName,
1503
+ Parameters.subscriptionId,
1504
+ Parameters.resourceName,
1505
+ Parameters.fabricName,
1506
+ Parameters.protectionContainerName,
1507
+ Parameters.replicatedProtectedItemName
1508
+ ],
1509
+ headerParameters: [Parameters.accept],
1510
+ serializer
1511
+ };
1512
+ const failoverCommitOperationSpec = {
1513
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/failoverCommit",
1514
+ httpMethod: "POST",
1515
+ responses: {
1516
+ 200: {
1517
+ bodyMapper: Mappers.ReplicationProtectedItem
1518
+ },
1519
+ 201: {
1520
+ bodyMapper: Mappers.ReplicationProtectedItem
1521
+ },
1522
+ 202: {
1523
+ bodyMapper: Mappers.ReplicationProtectedItem
1524
+ },
1525
+ 204: {
1526
+ bodyMapper: Mappers.ReplicationProtectedItem
1527
+ }
1528
+ },
1529
+ queryParameters: [Parameters.apiVersion],
1530
+ urlParameters: [
1531
+ Parameters.$host,
1532
+ Parameters.resourceGroupName,
1533
+ Parameters.subscriptionId,
1534
+ Parameters.resourceName,
1535
+ Parameters.fabricName,
1536
+ Parameters.protectionContainerName,
1537
+ Parameters.replicatedProtectedItemName
1538
+ ],
1539
+ headerParameters: [Parameters.accept],
1540
+ serializer
1541
+ };
1542
+ const plannedFailoverOperationSpec = {
1543
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/plannedFailover",
1544
+ httpMethod: "POST",
1545
+ responses: {
1546
+ 200: {
1547
+ bodyMapper: Mappers.ReplicationProtectedItem
1548
+ },
1549
+ 201: {
1550
+ bodyMapper: Mappers.ReplicationProtectedItem
1551
+ },
1552
+ 202: {
1553
+ bodyMapper: Mappers.ReplicationProtectedItem
1554
+ },
1555
+ 204: {
1556
+ bodyMapper: Mappers.ReplicationProtectedItem
1557
+ }
1558
+ },
1559
+ requestBody: Parameters.failoverInput,
1560
+ queryParameters: [Parameters.apiVersion],
1561
+ urlParameters: [
1562
+ Parameters.$host,
1563
+ Parameters.resourceGroupName,
1564
+ Parameters.subscriptionId,
1565
+ Parameters.resourceName,
1566
+ Parameters.fabricName,
1567
+ Parameters.protectionContainerName,
1568
+ Parameters.replicatedProtectedItemName
1569
+ ],
1570
+ headerParameters: [Parameters.accept, Parameters.contentType],
1571
+ mediaType: "json",
1572
+ serializer
1573
+ };
1574
+ const deleteOperationSpec = {
1575
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/remove",
1576
+ httpMethod: "POST",
1577
+ responses: { 200: {}, 201: {}, 202: {}, 204: {} },
1578
+ requestBody: Parameters.disableProtectionInput,
1579
+ queryParameters: [Parameters.apiVersion],
1580
+ urlParameters: [
1581
+ Parameters.$host,
1582
+ Parameters.resourceGroupName,
1583
+ Parameters.subscriptionId,
1584
+ Parameters.resourceName,
1585
+ Parameters.fabricName,
1586
+ Parameters.protectionContainerName,
1587
+ Parameters.replicatedProtectedItemName
1588
+ ],
1589
+ headerParameters: [Parameters.contentType],
1590
+ mediaType: "json",
1591
+ serializer
1592
+ };
1593
+ const removeDisksOperationSpec = {
1594
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks",
1595
+ httpMethod: "POST",
1596
+ responses: {
1597
+ 200: {
1598
+ bodyMapper: Mappers.ReplicationProtectedItem
1599
+ },
1600
+ 201: {
1601
+ bodyMapper: Mappers.ReplicationProtectedItem
1602
+ },
1603
+ 202: {
1604
+ bodyMapper: Mappers.ReplicationProtectedItem
1605
+ },
1606
+ 204: {
1607
+ bodyMapper: Mappers.ReplicationProtectedItem
1608
+ }
1609
+ },
1610
+ requestBody: Parameters.removeDisksInput,
1611
+ queryParameters: [Parameters.apiVersion],
1612
+ urlParameters: [
1613
+ Parameters.$host,
1614
+ Parameters.resourceGroupName,
1615
+ Parameters.subscriptionId,
1616
+ Parameters.resourceName,
1617
+ Parameters.fabricName,
1618
+ Parameters.protectionContainerName,
1619
+ Parameters.replicatedProtectedItemName
1620
+ ],
1621
+ headerParameters: [Parameters.accept, Parameters.contentType],
1622
+ mediaType: "json",
1623
+ serializer
1624
+ };
1625
+ const repairReplicationOperationSpec = {
1626
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication",
1627
+ httpMethod: "POST",
1628
+ responses: {
1629
+ 200: {
1630
+ bodyMapper: Mappers.ReplicationProtectedItem
1631
+ },
1632
+ 201: {
1633
+ bodyMapper: Mappers.ReplicationProtectedItem
1634
+ },
1635
+ 202: {
1636
+ bodyMapper: Mappers.ReplicationProtectedItem
1637
+ },
1638
+ 204: {
1639
+ bodyMapper: Mappers.ReplicationProtectedItem
1640
+ }
1641
+ },
1642
+ queryParameters: [Parameters.apiVersion],
1643
+ urlParameters: [
1644
+ Parameters.$host,
1645
+ Parameters.resourceGroupName,
1646
+ Parameters.subscriptionId,
1647
+ Parameters.resourceName,
1648
+ Parameters.fabricName,
1649
+ Parameters.protectionContainerName,
1650
+ Parameters.replicatedProtectedItemName
1651
+ ],
1652
+ headerParameters: [Parameters.accept],
1653
+ serializer
1654
+ };
1655
+ const reprotectOperationSpec = {
1656
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/reProtect",
1657
+ httpMethod: "POST",
1658
+ responses: {
1659
+ 200: {
1660
+ bodyMapper: Mappers.ReplicationProtectedItem
1661
+ },
1662
+ 201: {
1663
+ bodyMapper: Mappers.ReplicationProtectedItem
1664
+ },
1665
+ 202: {
1666
+ bodyMapper: Mappers.ReplicationProtectedItem
1667
+ },
1668
+ 204: {
1669
+ bodyMapper: Mappers.ReplicationProtectedItem
1670
+ }
1671
+ },
1672
+ requestBody: Parameters.reprotectInput,
1673
+ queryParameters: [Parameters.apiVersion],
1674
+ urlParameters: [
1675
+ Parameters.$host,
1676
+ Parameters.resourceGroupName,
1677
+ Parameters.subscriptionId,
1678
+ Parameters.resourceName,
1679
+ Parameters.fabricName,
1680
+ Parameters.protectionContainerName,
1681
+ Parameters.replicatedProtectedItemName
1682
+ ],
1683
+ headerParameters: [Parameters.accept, Parameters.contentType],
1684
+ mediaType: "json",
1685
+ serializer
1686
+ };
1687
+ const resolveHealthErrorsOperationSpec = {
1688
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/resolveHealthErrors",
1689
+ httpMethod: "POST",
1690
+ responses: {
1691
+ 200: {
1692
+ bodyMapper: Mappers.ReplicationProtectedItem
1693
+ },
1694
+ 201: {
1695
+ bodyMapper: Mappers.ReplicationProtectedItem
1696
+ },
1697
+ 202: {
1698
+ bodyMapper: Mappers.ReplicationProtectedItem
1699
+ },
1700
+ 204: {
1701
+ bodyMapper: Mappers.ReplicationProtectedItem
1702
+ }
1703
+ },
1704
+ requestBody: Parameters.resolveHealthInput,
1705
+ queryParameters: [Parameters.apiVersion],
1706
+ urlParameters: [
1707
+ Parameters.$host,
1708
+ Parameters.resourceGroupName,
1709
+ Parameters.subscriptionId,
1710
+ Parameters.resourceName,
1711
+ Parameters.fabricName,
1712
+ Parameters.protectionContainerName,
1713
+ Parameters.replicatedProtectedItemName
1714
+ ],
1715
+ headerParameters: [Parameters.accept, Parameters.contentType],
1716
+ mediaType: "json",
1717
+ serializer
1718
+ };
1719
+ const switchProviderOperationSpec = {
1720
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/switchProvider",
1721
+ httpMethod: "POST",
1722
+ responses: {
1723
+ 200: {
1724
+ bodyMapper: Mappers.ReplicationProtectedItem
1725
+ },
1726
+ 201: {
1727
+ bodyMapper: Mappers.ReplicationProtectedItem
1728
+ },
1729
+ 202: {
1730
+ bodyMapper: Mappers.ReplicationProtectedItem
1731
+ },
1732
+ 204: {
1733
+ bodyMapper: Mappers.ReplicationProtectedItem
1734
+ }
1735
+ },
1736
+ requestBody: Parameters.switchProviderInput,
1737
+ queryParameters: [Parameters.apiVersion],
1738
+ urlParameters: [
1739
+ Parameters.$host,
1740
+ Parameters.resourceGroupName,
1741
+ Parameters.subscriptionId,
1742
+ Parameters.resourceName,
1743
+ Parameters.fabricName,
1744
+ Parameters.protectionContainerName,
1745
+ Parameters.replicatedProtectedItemName
1746
+ ],
1747
+ headerParameters: [Parameters.accept, Parameters.contentType],
1748
+ mediaType: "json",
1749
+ serializer
1750
+ };
1751
+ const testFailoverOperationSpec = {
1752
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailover",
1753
+ httpMethod: "POST",
1754
+ responses: {
1755
+ 200: {
1756
+ bodyMapper: Mappers.ReplicationProtectedItem
1757
+ },
1758
+ 201: {
1759
+ bodyMapper: Mappers.ReplicationProtectedItem
1760
+ },
1761
+ 202: {
1762
+ bodyMapper: Mappers.ReplicationProtectedItem
1763
+ },
1764
+ 204: {
1765
+ bodyMapper: Mappers.ReplicationProtectedItem
1766
+ }
1767
+ },
1768
+ requestBody: Parameters.testfailoverInput,
1769
+ queryParameters: [Parameters.apiVersion],
1770
+ urlParameters: [
1771
+ Parameters.$host,
1772
+ Parameters.resourceGroupName,
1773
+ Parameters.subscriptionId,
1774
+ Parameters.resourceName,
1775
+ Parameters.fabricName,
1776
+ Parameters.protectionContainerName,
1777
+ Parameters.replicatedProtectedItemName
1778
+ ],
1779
+ headerParameters: [Parameters.accept, Parameters.contentType],
1780
+ mediaType: "json",
1781
+ serializer
1782
+ };
1783
+ const testFailoverCleanupOperationSpec = {
1784
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/testFailoverCleanup",
1785
+ httpMethod: "POST",
1786
+ responses: {
1787
+ 200: {
1788
+ bodyMapper: Mappers.ReplicationProtectedItem
1789
+ },
1790
+ 201: {
1791
+ bodyMapper: Mappers.ReplicationProtectedItem
1792
+ },
1793
+ 202: {
1794
+ bodyMapper: Mappers.ReplicationProtectedItem
1795
+ },
1796
+ 204: {
1797
+ bodyMapper: Mappers.ReplicationProtectedItem
1798
+ }
1799
+ },
1800
+ requestBody: Parameters.cleanupInput,
1801
+ queryParameters: [Parameters.apiVersion],
1802
+ urlParameters: [
1803
+ Parameters.$host,
1804
+ Parameters.resourceGroupName,
1805
+ Parameters.subscriptionId,
1806
+ Parameters.resourceName,
1807
+ Parameters.fabricName,
1808
+ Parameters.protectionContainerName,
1809
+ Parameters.replicatedProtectedItemName
1810
+ ],
1811
+ headerParameters: [Parameters.accept, Parameters.contentType],
1812
+ mediaType: "json",
1813
+ serializer
1814
+ };
1815
+ const unplannedFailoverOperationSpec = {
1816
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/unplannedFailover",
1817
+ httpMethod: "POST",
1818
+ responses: {
1819
+ 200: {
1820
+ bodyMapper: Mappers.ReplicationProtectedItem
1821
+ },
1822
+ 201: {
1823
+ bodyMapper: Mappers.ReplicationProtectedItem
1824
+ },
1825
+ 202: {
1826
+ bodyMapper: Mappers.ReplicationProtectedItem
1827
+ },
1828
+ 204: {
1829
+ bodyMapper: Mappers.ReplicationProtectedItem
1830
+ }
1831
+ },
1832
+ requestBody: Parameters.failoverInput1,
1833
+ queryParameters: [Parameters.apiVersion],
1834
+ urlParameters: [
1835
+ Parameters.$host,
1836
+ Parameters.resourceGroupName,
1837
+ Parameters.subscriptionId,
1838
+ Parameters.resourceName,
1839
+ Parameters.fabricName,
1840
+ Parameters.protectionContainerName,
1841
+ Parameters.replicatedProtectedItemName
1842
+ ],
1843
+ headerParameters: [Parameters.accept, Parameters.contentType],
1844
+ mediaType: "json",
1845
+ serializer
1846
+ };
1847
+ const updateApplianceOperationSpec = {
1848
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/updateAppliance",
1849
+ httpMethod: "POST",
1850
+ responses: {
1851
+ 200: {
1852
+ bodyMapper: Mappers.ReplicationProtectedItem
1853
+ },
1854
+ 201: {
1855
+ bodyMapper: Mappers.ReplicationProtectedItem
1856
+ },
1857
+ 202: {
1858
+ bodyMapper: Mappers.ReplicationProtectedItem
1859
+ },
1860
+ 204: {
1861
+ bodyMapper: Mappers.ReplicationProtectedItem
1862
+ }
1863
+ },
1864
+ requestBody: Parameters.applianceUpdateInput,
1865
+ queryParameters: [Parameters.apiVersion],
1866
+ urlParameters: [
1867
+ Parameters.$host,
1868
+ Parameters.resourceGroupName,
1869
+ Parameters.subscriptionId,
1870
+ Parameters.resourceName,
1871
+ Parameters.fabricName,
1872
+ Parameters.protectionContainerName,
1873
+ Parameters.replicatedProtectedItemName
1874
+ ],
1875
+ headerParameters: [Parameters.accept, Parameters.contentType],
1876
+ mediaType: "json",
1877
+ serializer
1878
+ };
1879
+ const updateMobilityServiceOperationSpec = {
1880
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}/updateMobilityService",
1881
+ httpMethod: "POST",
1882
+ responses: {
1883
+ 200: {
1884
+ bodyMapper: Mappers.ReplicationProtectedItem
1885
+ },
1886
+ 201: {
1887
+ bodyMapper: Mappers.ReplicationProtectedItem
1888
+ },
1889
+ 202: {
1890
+ bodyMapper: Mappers.ReplicationProtectedItem
1891
+ },
1892
+ 204: {
1893
+ bodyMapper: Mappers.ReplicationProtectedItem
1894
+ }
1895
+ },
1896
+ requestBody: Parameters.updateMobilityServiceRequest,
1897
+ queryParameters: [Parameters.apiVersion],
1898
+ urlParameters: [
1899
+ Parameters.$host,
1900
+ Parameters.resourceGroupName,
1901
+ Parameters.subscriptionId,
1902
+ Parameters.resourceName,
1903
+ Parameters.fabricName,
1904
+ Parameters.protectionContainerName,
1905
+ Parameters.replicationProtectedItemName
1906
+ ],
1907
+ headerParameters: [Parameters.accept, Parameters.contentType],
1908
+ mediaType: "json",
1909
+ serializer
1910
+ };
1911
+ const listOperationSpec = {
1912
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectedItems",
1913
+ httpMethod: "GET",
1914
+ responses: {
1915
+ 200: {
1916
+ bodyMapper: Mappers.ReplicationProtectedItemCollection
1917
+ }
1918
+ },
1919
+ queryParameters: [
1920
+ Parameters.apiVersion,
1921
+ Parameters.filter,
1922
+ Parameters.skipToken
1923
+ ],
1924
+ urlParameters: [
1925
+ Parameters.$host,
1926
+ Parameters.resourceGroupName,
1927
+ Parameters.subscriptionId,
1928
+ Parameters.resourceName
1929
+ ],
1930
+ headerParameters: [Parameters.accept],
1931
+ serializer
1932
+ };
1933
+ const listByReplicationProtectionContainersNextOperationSpec = {
1934
+ path: "{nextLink}",
1935
+ httpMethod: "GET",
1936
+ responses: {
1937
+ 200: {
1938
+ bodyMapper: Mappers.ReplicationProtectedItemCollection
1939
+ }
1940
+ },
1941
+ queryParameters: [Parameters.apiVersion],
1942
+ urlParameters: [
1943
+ Parameters.$host,
1944
+ Parameters.resourceGroupName,
1945
+ Parameters.subscriptionId,
1946
+ Parameters.nextLink,
1947
+ Parameters.resourceName,
1948
+ Parameters.fabricName,
1949
+ Parameters.protectionContainerName
1950
+ ],
1951
+ headerParameters: [Parameters.accept],
1952
+ serializer
1953
+ };
1954
+ const listNextOperationSpec = {
1955
+ path: "{nextLink}",
1956
+ httpMethod: "GET",
1957
+ responses: {
1958
+ 200: {
1959
+ bodyMapper: Mappers.ReplicationProtectedItemCollection
1960
+ }
1961
+ },
1962
+ queryParameters: [
1963
+ Parameters.apiVersion,
1964
+ Parameters.filter,
1965
+ Parameters.skipToken
1966
+ ],
1967
+ urlParameters: [
1968
+ Parameters.$host,
1969
+ Parameters.resourceGroupName,
1970
+ Parameters.subscriptionId,
1971
+ Parameters.nextLink,
1972
+ Parameters.resourceName
1973
+ ],
1974
+ headerParameters: [Parameters.accept],
1975
+ serializer
1976
+ };
1977
+ //# sourceMappingURL=replicationProtectedItems.js.map