@azure/arm-recoveryservices-siterecovery 5.0.2-alpha.20230823.1 → 5.1.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 (414) hide show
  1. package/CHANGELOG.md +44 -10
  2. package/LICENSE +1 -1
  3. package/dist/index.js +1580 -668
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/migrationRecoveryPointsGetSample.js +13 -4
  8. package/dist-esm/samples-dev/migrationRecoveryPointsGetSample.js.map +1 -1
  9. package/dist-esm/samples-dev/migrationRecoveryPointsListByReplicationMigrationItemsSample.js +13 -4
  10. package/dist-esm/samples-dev/migrationRecoveryPointsListByReplicationMigrationItemsSample.js.map +1 -1
  11. package/dist-esm/samples-dev/operationsListSample.js +13 -4
  12. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  13. package/dist-esm/samples-dev/recoveryPointsGetSample.js +13 -4
  14. package/dist-esm/samples-dev/recoveryPointsGetSample.js.map +1 -1
  15. package/dist-esm/samples-dev/recoveryPointsListByReplicationProtectedItemsSample.js +13 -4
  16. package/dist-esm/samples-dev/recoveryPointsListByReplicationProtectedItemsSample.js.map +1 -1
  17. package/dist-esm/samples-dev/replicationAlertSettingsCreateSample.js +13 -4
  18. package/dist-esm/samples-dev/replicationAlertSettingsCreateSample.js.map +1 -1
  19. package/dist-esm/samples-dev/replicationAlertSettingsGetSample.js +13 -4
  20. package/dist-esm/samples-dev/replicationAlertSettingsGetSample.js.map +1 -1
  21. package/dist-esm/samples-dev/replicationAlertSettingsListSample.js +13 -4
  22. package/dist-esm/samples-dev/replicationAlertSettingsListSample.js.map +1 -1
  23. package/dist-esm/samples-dev/replicationAppliancesListSample.js +13 -4
  24. package/dist-esm/samples-dev/replicationAppliancesListSample.js.map +1 -1
  25. package/dist-esm/samples-dev/replicationEligibilityResultsGetSample.js +12 -4
  26. package/dist-esm/samples-dev/replicationEligibilityResultsGetSample.js.map +1 -1
  27. package/dist-esm/samples-dev/replicationEligibilityResultsListSample.js +12 -4
  28. package/dist-esm/samples-dev/replicationEligibilityResultsListSample.js.map +1 -1
  29. package/dist-esm/samples-dev/replicationEventsGetSample.js +13 -4
  30. package/dist-esm/samples-dev/replicationEventsGetSample.js.map +1 -1
  31. package/dist-esm/samples-dev/replicationEventsListSample.js +13 -4
  32. package/dist-esm/samples-dev/replicationEventsListSample.js.map +1 -1
  33. package/dist-esm/samples-dev/replicationFabricsCheckConsistencySample.js +13 -4
  34. package/dist-esm/samples-dev/replicationFabricsCheckConsistencySample.js.map +1 -1
  35. package/dist-esm/samples-dev/replicationFabricsCreateSample.js +13 -4
  36. package/dist-esm/samples-dev/replicationFabricsCreateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/replicationFabricsDeleteSample.js +13 -4
  38. package/dist-esm/samples-dev/replicationFabricsDeleteSample.js.map +1 -1
  39. package/dist-esm/samples-dev/replicationFabricsGetSample.js +13 -4
  40. package/dist-esm/samples-dev/replicationFabricsGetSample.js.map +1 -1
  41. package/dist-esm/samples-dev/replicationFabricsListSample.js +13 -4
  42. package/dist-esm/samples-dev/replicationFabricsListSample.js.map +1 -1
  43. package/dist-esm/samples-dev/replicationFabricsMigrateToAadSample.js +13 -4
  44. package/dist-esm/samples-dev/replicationFabricsMigrateToAadSample.js.map +1 -1
  45. package/dist-esm/samples-dev/replicationFabricsPurgeSample.js +13 -4
  46. package/dist-esm/samples-dev/replicationFabricsPurgeSample.js.map +1 -1
  47. package/dist-esm/samples-dev/replicationFabricsReassociateGatewaySample.js +12 -4
  48. package/dist-esm/samples-dev/replicationFabricsReassociateGatewaySample.js.map +1 -1
  49. package/dist-esm/samples-dev/replicationFabricsRenewCertificateSample.js +13 -4
  50. package/dist-esm/samples-dev/replicationFabricsRenewCertificateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/replicationJobsCancelSample.js +13 -4
  52. package/dist-esm/samples-dev/replicationJobsCancelSample.js.map +1 -1
  53. package/dist-esm/samples-dev/replicationJobsExportSample.js +13 -4
  54. package/dist-esm/samples-dev/replicationJobsExportSample.js.map +1 -1
  55. package/dist-esm/samples-dev/replicationJobsGetSample.js +13 -4
  56. package/dist-esm/samples-dev/replicationJobsGetSample.js.map +1 -1
  57. package/dist-esm/samples-dev/replicationJobsListSample.js +13 -4
  58. package/dist-esm/samples-dev/replicationJobsListSample.js.map +1 -1
  59. package/dist-esm/samples-dev/replicationJobsRestartSample.js +13 -4
  60. package/dist-esm/samples-dev/replicationJobsRestartSample.js.map +1 -1
  61. package/dist-esm/samples-dev/replicationJobsResumeSample.js +13 -4
  62. package/dist-esm/samples-dev/replicationJobsResumeSample.js.map +1 -1
  63. package/dist-esm/samples-dev/replicationLogicalNetworksGetSample.js +13 -4
  64. package/dist-esm/samples-dev/replicationLogicalNetworksGetSample.js.map +1 -1
  65. package/dist-esm/samples-dev/replicationLogicalNetworksListByReplicationFabricsSample.js +13 -4
  66. package/dist-esm/samples-dev/replicationLogicalNetworksListByReplicationFabricsSample.js.map +1 -1
  67. package/dist-esm/samples-dev/replicationMigrationItemsCreateSample.js +13 -4
  68. package/dist-esm/samples-dev/replicationMigrationItemsCreateSample.js.map +1 -1
  69. package/dist-esm/samples-dev/replicationMigrationItemsDeleteSample.js +13 -4
  70. package/dist-esm/samples-dev/replicationMigrationItemsDeleteSample.js.map +1 -1
  71. package/dist-esm/samples-dev/replicationMigrationItemsGetSample.js +13 -4
  72. package/dist-esm/samples-dev/replicationMigrationItemsGetSample.js.map +1 -1
  73. package/dist-esm/samples-dev/replicationMigrationItemsListByReplicationProtectionContainersSample.js +13 -4
  74. package/dist-esm/samples-dev/replicationMigrationItemsListByReplicationProtectionContainersSample.js.map +1 -1
  75. package/dist-esm/samples-dev/replicationMigrationItemsListSample.js +13 -4
  76. package/dist-esm/samples-dev/replicationMigrationItemsListSample.js.map +1 -1
  77. package/dist-esm/samples-dev/replicationMigrationItemsMigrateSample.js +13 -4
  78. package/dist-esm/samples-dev/replicationMigrationItemsMigrateSample.js.map +1 -1
  79. package/dist-esm/samples-dev/replicationMigrationItemsPauseReplicationSample.js +13 -4
  80. package/dist-esm/samples-dev/replicationMigrationItemsPauseReplicationSample.js.map +1 -1
  81. package/dist-esm/samples-dev/replicationMigrationItemsResumeReplicationSample.js +13 -4
  82. package/dist-esm/samples-dev/replicationMigrationItemsResumeReplicationSample.js.map +1 -1
  83. package/dist-esm/samples-dev/replicationMigrationItemsResyncSample.js +13 -4
  84. package/dist-esm/samples-dev/replicationMigrationItemsResyncSample.js.map +1 -1
  85. package/dist-esm/samples-dev/replicationMigrationItemsTestMigrateCleanupSample.js +13 -4
  86. package/dist-esm/samples-dev/replicationMigrationItemsTestMigrateCleanupSample.js.map +1 -1
  87. package/dist-esm/samples-dev/replicationMigrationItemsTestMigrateSample.js +13 -4
  88. package/dist-esm/samples-dev/replicationMigrationItemsTestMigrateSample.js.map +1 -1
  89. package/dist-esm/samples-dev/replicationMigrationItemsUpdateSample.js +13 -4
  90. package/dist-esm/samples-dev/replicationMigrationItemsUpdateSample.js.map +1 -1
  91. package/dist-esm/samples-dev/replicationNetworkMappingsCreateSample.js +13 -4
  92. package/dist-esm/samples-dev/replicationNetworkMappingsCreateSample.js.map +1 -1
  93. package/dist-esm/samples-dev/replicationNetworkMappingsDeleteSample.js +13 -4
  94. package/dist-esm/samples-dev/replicationNetworkMappingsDeleteSample.js.map +1 -1
  95. package/dist-esm/samples-dev/replicationNetworkMappingsGetSample.js +13 -4
  96. package/dist-esm/samples-dev/replicationNetworkMappingsGetSample.js.map +1 -1
  97. package/dist-esm/samples-dev/replicationNetworkMappingsListByReplicationNetworksSample.js +13 -4
  98. package/dist-esm/samples-dev/replicationNetworkMappingsListByReplicationNetworksSample.js.map +1 -1
  99. package/dist-esm/samples-dev/replicationNetworkMappingsListSample.js +13 -4
  100. package/dist-esm/samples-dev/replicationNetworkMappingsListSample.js.map +1 -1
  101. package/dist-esm/samples-dev/replicationNetworkMappingsUpdateSample.js +13 -4
  102. package/dist-esm/samples-dev/replicationNetworkMappingsUpdateSample.js.map +1 -1
  103. package/dist-esm/samples-dev/replicationNetworksGetSample.js +13 -4
  104. package/dist-esm/samples-dev/replicationNetworksGetSample.js.map +1 -1
  105. package/dist-esm/samples-dev/replicationNetworksListByReplicationFabricsSample.js +13 -4
  106. package/dist-esm/samples-dev/replicationNetworksListByReplicationFabricsSample.js.map +1 -1
  107. package/dist-esm/samples-dev/replicationNetworksListSample.js +13 -4
  108. package/dist-esm/samples-dev/replicationNetworksListSample.js.map +1 -1
  109. package/dist-esm/samples-dev/replicationPoliciesCreateSample.js +13 -4
  110. package/dist-esm/samples-dev/replicationPoliciesCreateSample.js.map +1 -1
  111. package/dist-esm/samples-dev/replicationPoliciesDeleteSample.js +13 -4
  112. package/dist-esm/samples-dev/replicationPoliciesDeleteSample.js.map +1 -1
  113. package/dist-esm/samples-dev/replicationPoliciesGetSample.js +13 -4
  114. package/dist-esm/samples-dev/replicationPoliciesGetSample.js.map +1 -1
  115. package/dist-esm/samples-dev/replicationPoliciesListSample.js +13 -4
  116. package/dist-esm/samples-dev/replicationPoliciesListSample.js.map +1 -1
  117. package/dist-esm/samples-dev/replicationPoliciesUpdateSample.js +13 -4
  118. package/dist-esm/samples-dev/replicationPoliciesUpdateSample.js.map +1 -1
  119. package/dist-esm/samples-dev/replicationProtectableItemsGetSample.js +13 -4
  120. package/dist-esm/samples-dev/replicationProtectableItemsGetSample.js.map +1 -1
  121. package/dist-esm/samples-dev/replicationProtectableItemsListByReplicationProtectionContainersSample.js +13 -4
  122. package/dist-esm/samples-dev/replicationProtectableItemsListByReplicationProtectionContainersSample.js.map +1 -1
  123. package/dist-esm/samples-dev/replicationProtectedItemsAddDisksSample.js +13 -4
  124. package/dist-esm/samples-dev/replicationProtectedItemsAddDisksSample.js.map +1 -1
  125. package/dist-esm/samples-dev/replicationProtectedItemsApplyRecoveryPointSample.js +13 -4
  126. package/dist-esm/samples-dev/replicationProtectedItemsApplyRecoveryPointSample.js.map +1 -1
  127. package/dist-esm/samples-dev/replicationProtectedItemsCreateSample.js +13 -4
  128. package/dist-esm/samples-dev/replicationProtectedItemsCreateSample.js.map +1 -1
  129. package/dist-esm/samples-dev/replicationProtectedItemsDeleteSample.js +13 -4
  130. package/dist-esm/samples-dev/replicationProtectedItemsDeleteSample.js.map +1 -1
  131. package/dist-esm/samples-dev/replicationProtectedItemsFailoverCancelSample.js +13 -4
  132. package/dist-esm/samples-dev/replicationProtectedItemsFailoverCancelSample.js.map +1 -1
  133. package/dist-esm/samples-dev/replicationProtectedItemsFailoverCommitSample.js +13 -4
  134. package/dist-esm/samples-dev/replicationProtectedItemsFailoverCommitSample.js.map +1 -1
  135. package/dist-esm/samples-dev/replicationProtectedItemsGetSample.js +13 -4
  136. package/dist-esm/samples-dev/replicationProtectedItemsGetSample.js.map +1 -1
  137. package/dist-esm/samples-dev/replicationProtectedItemsListByReplicationProtectionContainersSample.js +13 -4
  138. package/dist-esm/samples-dev/replicationProtectedItemsListByReplicationProtectionContainersSample.js.map +1 -1
  139. package/dist-esm/samples-dev/replicationProtectedItemsListSample.js +13 -4
  140. package/dist-esm/samples-dev/replicationProtectedItemsListSample.js.map +1 -1
  141. package/dist-esm/samples-dev/replicationProtectedItemsPlannedFailoverSample.js +13 -4
  142. package/dist-esm/samples-dev/replicationProtectedItemsPlannedFailoverSample.js.map +1 -1
  143. package/dist-esm/samples-dev/replicationProtectedItemsPurgeSample.js +13 -4
  144. package/dist-esm/samples-dev/replicationProtectedItemsPurgeSample.js.map +1 -1
  145. package/dist-esm/samples-dev/replicationProtectedItemsRemoveDisksSample.js +13 -4
  146. package/dist-esm/samples-dev/replicationProtectedItemsRemoveDisksSample.js.map +1 -1
  147. package/dist-esm/samples-dev/replicationProtectedItemsRepairReplicationSample.js +13 -4
  148. package/dist-esm/samples-dev/replicationProtectedItemsRepairReplicationSample.js.map +1 -1
  149. package/dist-esm/samples-dev/replicationProtectedItemsReprotectSample.js +13 -4
  150. package/dist-esm/samples-dev/replicationProtectedItemsReprotectSample.js.map +1 -1
  151. package/dist-esm/samples-dev/replicationProtectedItemsResolveHealthErrorsSample.js +13 -4
  152. package/dist-esm/samples-dev/replicationProtectedItemsResolveHealthErrorsSample.js.map +1 -1
  153. package/dist-esm/samples-dev/replicationProtectedItemsSwitchProviderSample.js +13 -4
  154. package/dist-esm/samples-dev/replicationProtectedItemsSwitchProviderSample.js.map +1 -1
  155. package/dist-esm/samples-dev/replicationProtectedItemsTestFailoverCleanupSample.js +13 -4
  156. package/dist-esm/samples-dev/replicationProtectedItemsTestFailoverCleanupSample.js.map +1 -1
  157. package/dist-esm/samples-dev/replicationProtectedItemsTestFailoverSample.js +13 -4
  158. package/dist-esm/samples-dev/replicationProtectedItemsTestFailoverSample.js.map +1 -1
  159. package/dist-esm/samples-dev/replicationProtectedItemsUnplannedFailoverSample.js +13 -4
  160. package/dist-esm/samples-dev/replicationProtectedItemsUnplannedFailoverSample.js.map +1 -1
  161. package/dist-esm/samples-dev/replicationProtectedItemsUpdateApplianceSample.js +13 -4
  162. package/dist-esm/samples-dev/replicationProtectedItemsUpdateApplianceSample.js.map +1 -1
  163. package/dist-esm/samples-dev/replicationProtectedItemsUpdateMobilityServiceSample.js +13 -4
  164. package/dist-esm/samples-dev/replicationProtectedItemsUpdateMobilityServiceSample.js.map +1 -1
  165. package/dist-esm/samples-dev/replicationProtectedItemsUpdateSample.js +13 -4
  166. package/dist-esm/samples-dev/replicationProtectedItemsUpdateSample.js.map +1 -1
  167. package/dist-esm/samples-dev/replicationProtectionContainerMappingsCreateSample.js +13 -4
  168. package/dist-esm/samples-dev/replicationProtectionContainerMappingsCreateSample.js.map +1 -1
  169. package/dist-esm/samples-dev/replicationProtectionContainerMappingsDeleteSample.js +13 -4
  170. package/dist-esm/samples-dev/replicationProtectionContainerMappingsDeleteSample.js.map +1 -1
  171. package/dist-esm/samples-dev/replicationProtectionContainerMappingsGetSample.js +13 -4
  172. package/dist-esm/samples-dev/replicationProtectionContainerMappingsGetSample.js.map +1 -1
  173. package/dist-esm/samples-dev/replicationProtectionContainerMappingsListByReplicationProtectionContainersSample.js +13 -4
  174. package/dist-esm/samples-dev/replicationProtectionContainerMappingsListByReplicationProtectionContainersSample.js.map +1 -1
  175. package/dist-esm/samples-dev/replicationProtectionContainerMappingsListSample.js +13 -4
  176. package/dist-esm/samples-dev/replicationProtectionContainerMappingsListSample.js.map +1 -1
  177. package/dist-esm/samples-dev/replicationProtectionContainerMappingsPurgeSample.js +13 -4
  178. package/dist-esm/samples-dev/replicationProtectionContainerMappingsPurgeSample.js.map +1 -1
  179. package/dist-esm/samples-dev/replicationProtectionContainerMappingsUpdateSample.js +13 -4
  180. package/dist-esm/samples-dev/replicationProtectionContainerMappingsUpdateSample.js.map +1 -1
  181. package/dist-esm/samples-dev/replicationProtectionContainersCreateSample.js +13 -4
  182. package/dist-esm/samples-dev/replicationProtectionContainersCreateSample.js.map +1 -1
  183. package/dist-esm/samples-dev/replicationProtectionContainersDeleteSample.js +13 -4
  184. package/dist-esm/samples-dev/replicationProtectionContainersDeleteSample.js.map +1 -1
  185. package/dist-esm/samples-dev/replicationProtectionContainersDiscoverProtectableItemSample.js +12 -4
  186. package/dist-esm/samples-dev/replicationProtectionContainersDiscoverProtectableItemSample.js.map +1 -1
  187. package/dist-esm/samples-dev/replicationProtectionContainersGetSample.js +13 -4
  188. package/dist-esm/samples-dev/replicationProtectionContainersGetSample.js.map +1 -1
  189. package/dist-esm/samples-dev/replicationProtectionContainersListByReplicationFabricsSample.js +13 -4
  190. package/dist-esm/samples-dev/replicationProtectionContainersListByReplicationFabricsSample.js.map +1 -1
  191. package/dist-esm/samples-dev/replicationProtectionContainersListSample.js +13 -4
  192. package/dist-esm/samples-dev/replicationProtectionContainersListSample.js.map +1 -1
  193. package/dist-esm/samples-dev/replicationProtectionContainersSwitchProtectionSample.js +16 -5
  194. package/dist-esm/samples-dev/replicationProtectionContainersSwitchProtectionSample.js.map +1 -1
  195. package/dist-esm/samples-dev/replicationProtectionIntentsCreateSample.js +13 -4
  196. package/dist-esm/samples-dev/replicationProtectionIntentsCreateSample.js.map +1 -1
  197. package/dist-esm/samples-dev/replicationProtectionIntentsGetSample.js +13 -4
  198. package/dist-esm/samples-dev/replicationProtectionIntentsGetSample.js.map +1 -1
  199. package/dist-esm/samples-dev/replicationProtectionIntentsListSample.js +13 -4
  200. package/dist-esm/samples-dev/replicationProtectionIntentsListSample.js.map +1 -1
  201. package/dist-esm/samples-dev/replicationRecoveryPlansCreateSample.js +13 -4
  202. package/dist-esm/samples-dev/replicationRecoveryPlansCreateSample.js.map +1 -1
  203. package/dist-esm/samples-dev/replicationRecoveryPlansDeleteSample.js +13 -4
  204. package/dist-esm/samples-dev/replicationRecoveryPlansDeleteSample.js.map +1 -1
  205. package/dist-esm/samples-dev/replicationRecoveryPlansFailoverCancelSample.js +13 -4
  206. package/dist-esm/samples-dev/replicationRecoveryPlansFailoverCancelSample.js.map +1 -1
  207. package/dist-esm/samples-dev/replicationRecoveryPlansFailoverCommitSample.js +13 -4
  208. package/dist-esm/samples-dev/replicationRecoveryPlansFailoverCommitSample.js.map +1 -1
  209. package/dist-esm/samples-dev/replicationRecoveryPlansGetSample.js +13 -4
  210. package/dist-esm/samples-dev/replicationRecoveryPlansGetSample.js.map +1 -1
  211. package/dist-esm/samples-dev/replicationRecoveryPlansListSample.js +13 -4
  212. package/dist-esm/samples-dev/replicationRecoveryPlansListSample.js.map +1 -1
  213. package/dist-esm/samples-dev/replicationRecoveryPlansPlannedFailoverSample.js +13 -4
  214. package/dist-esm/samples-dev/replicationRecoveryPlansPlannedFailoverSample.js.map +1 -1
  215. package/dist-esm/samples-dev/replicationRecoveryPlansReprotectSample.js +13 -4
  216. package/dist-esm/samples-dev/replicationRecoveryPlansReprotectSample.js.map +1 -1
  217. package/dist-esm/samples-dev/replicationRecoveryPlansTestFailoverCleanupSample.js +13 -4
  218. package/dist-esm/samples-dev/replicationRecoveryPlansTestFailoverCleanupSample.js.map +1 -1
  219. package/dist-esm/samples-dev/replicationRecoveryPlansTestFailoverSample.js +13 -4
  220. package/dist-esm/samples-dev/replicationRecoveryPlansTestFailoverSample.js.map +1 -1
  221. package/dist-esm/samples-dev/replicationRecoveryPlansUnplannedFailoverSample.js +13 -4
  222. package/dist-esm/samples-dev/replicationRecoveryPlansUnplannedFailoverSample.js.map +1 -1
  223. package/dist-esm/samples-dev/replicationRecoveryPlansUpdateSample.js +13 -4
  224. package/dist-esm/samples-dev/replicationRecoveryPlansUpdateSample.js.map +1 -1
  225. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersCreateSample.js +13 -4
  226. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersCreateSample.js.map +1 -1
  227. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersDeleteSample.js +13 -4
  228. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersDeleteSample.js.map +1 -1
  229. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersGetSample.js +13 -4
  230. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersGetSample.js.map +1 -1
  231. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersListByReplicationFabricsSample.js +13 -4
  232. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersListByReplicationFabricsSample.js.map +1 -1
  233. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersListSample.js +13 -4
  234. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersListSample.js.map +1 -1
  235. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersPurgeSample.js +13 -4
  236. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersPurgeSample.js.map +1 -1
  237. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersRefreshProviderSample.js +13 -4
  238. package/dist-esm/samples-dev/replicationRecoveryServicesProvidersRefreshProviderSample.js.map +1 -1
  239. package/dist-esm/samples-dev/replicationStorageClassificationMappingsCreateSample.js +13 -4
  240. package/dist-esm/samples-dev/replicationStorageClassificationMappingsCreateSample.js.map +1 -1
  241. package/dist-esm/samples-dev/replicationStorageClassificationMappingsDeleteSample.js +13 -4
  242. package/dist-esm/samples-dev/replicationStorageClassificationMappingsDeleteSample.js.map +1 -1
  243. package/dist-esm/samples-dev/replicationStorageClassificationMappingsGetSample.js +13 -4
  244. package/dist-esm/samples-dev/replicationStorageClassificationMappingsGetSample.js.map +1 -1
  245. package/dist-esm/samples-dev/replicationStorageClassificationMappingsListByReplicationStorageClassificationsSample.js +13 -4
  246. package/dist-esm/samples-dev/replicationStorageClassificationMappingsListByReplicationStorageClassificationsSample.js.map +1 -1
  247. package/dist-esm/samples-dev/replicationStorageClassificationMappingsListSample.js +13 -4
  248. package/dist-esm/samples-dev/replicationStorageClassificationMappingsListSample.js.map +1 -1
  249. package/dist-esm/samples-dev/replicationStorageClassificationsGetSample.js +13 -4
  250. package/dist-esm/samples-dev/replicationStorageClassificationsGetSample.js.map +1 -1
  251. package/dist-esm/samples-dev/replicationStorageClassificationsListByReplicationFabricsSample.js +13 -4
  252. package/dist-esm/samples-dev/replicationStorageClassificationsListByReplicationFabricsSample.js.map +1 -1
  253. package/dist-esm/samples-dev/replicationStorageClassificationsListSample.js +13 -4
  254. package/dist-esm/samples-dev/replicationStorageClassificationsListSample.js.map +1 -1
  255. package/dist-esm/samples-dev/replicationVaultHealthGetSample.js +13 -4
  256. package/dist-esm/samples-dev/replicationVaultHealthGetSample.js.map +1 -1
  257. package/dist-esm/samples-dev/replicationVaultHealthRefreshSample.js +13 -4
  258. package/dist-esm/samples-dev/replicationVaultHealthRefreshSample.js.map +1 -1
  259. package/dist-esm/samples-dev/replicationVaultSettingCreateSample.js +13 -4
  260. package/dist-esm/samples-dev/replicationVaultSettingCreateSample.js.map +1 -1
  261. package/dist-esm/samples-dev/replicationVaultSettingGetSample.js +13 -4
  262. package/dist-esm/samples-dev/replicationVaultSettingGetSample.js.map +1 -1
  263. package/dist-esm/samples-dev/replicationVaultSettingListSample.js +13 -4
  264. package/dist-esm/samples-dev/replicationVaultSettingListSample.js.map +1 -1
  265. package/dist-esm/samples-dev/replicationvCentersCreateSample.js +12 -4
  266. package/dist-esm/samples-dev/replicationvCentersCreateSample.js.map +1 -1
  267. package/dist-esm/samples-dev/replicationvCentersDeleteSample.js +12 -4
  268. package/dist-esm/samples-dev/replicationvCentersDeleteSample.js.map +1 -1
  269. package/dist-esm/samples-dev/replicationvCentersGetSample.js +12 -4
  270. package/dist-esm/samples-dev/replicationvCentersGetSample.js.map +1 -1
  271. package/dist-esm/samples-dev/replicationvCentersListByReplicationFabricsSample.js +12 -4
  272. package/dist-esm/samples-dev/replicationvCentersListByReplicationFabricsSample.js.map +1 -1
  273. package/dist-esm/samples-dev/replicationvCentersListSample.js +12 -4
  274. package/dist-esm/samples-dev/replicationvCentersListSample.js.map +1 -1
  275. package/dist-esm/samples-dev/replicationvCentersUpdateSample.js +12 -4
  276. package/dist-esm/samples-dev/replicationvCentersUpdateSample.js.map +1 -1
  277. package/dist-esm/samples-dev/supportedOperatingSystemsGetSample.js +13 -4
  278. package/dist-esm/samples-dev/supportedOperatingSystemsGetSample.js.map +1 -1
  279. package/dist-esm/samples-dev/targetComputeSizesListByReplicationProtectedItemsSample.js +13 -4
  280. package/dist-esm/samples-dev/targetComputeSizesListByReplicationProtectedItemsSample.js.map +1 -1
  281. package/dist-esm/src/lroImpl.d.ts +6 -11
  282. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  283. package/dist-esm/src/lroImpl.js +12 -20
  284. package/dist-esm/src/lroImpl.js.map +1 -1
  285. package/dist-esm/src/models/index.d.ts +291 -0
  286. package/dist-esm/src/models/index.d.ts.map +1 -1
  287. package/dist-esm/src/models/index.js +18 -0
  288. package/dist-esm/src/models/index.js.map +1 -1
  289. package/dist-esm/src/models/mappers.d.ts +7 -0
  290. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  291. package/dist-esm/src/models/mappers.js +527 -0
  292. package/dist-esm/src/models/mappers.js.map +1 -1
  293. package/dist-esm/src/models/parameters.js +1 -1
  294. package/dist-esm/src/operations/replicationFabrics.d.ts +8 -8
  295. package/dist-esm/src/operations/replicationFabrics.d.ts.map +1 -1
  296. package/dist-esm/src/operations/replicationFabrics.js +70 -42
  297. package/dist-esm/src/operations/replicationFabrics.js.map +1 -1
  298. package/dist-esm/src/operations/replicationJobs.d.ts +5 -5
  299. package/dist-esm/src/operations/replicationJobs.d.ts.map +1 -1
  300. package/dist-esm/src/operations/replicationJobs.js +40 -18
  301. package/dist-esm/src/operations/replicationJobs.js.map +1 -1
  302. package/dist-esm/src/operations/replicationMigrationItems.d.ts +10 -10
  303. package/dist-esm/src/operations/replicationMigrationItems.d.ts.map +1 -1
  304. package/dist-esm/src/operations/replicationMigrationItems.js +145 -109
  305. package/dist-esm/src/operations/replicationMigrationItems.js.map +1 -1
  306. package/dist-esm/src/operations/replicationNetworkMappings.d.ts +4 -4
  307. package/dist-esm/src/operations/replicationNetworkMappings.d.ts.map +1 -1
  308. package/dist-esm/src/operations/replicationNetworkMappings.js +49 -37
  309. package/dist-esm/src/operations/replicationNetworkMappings.js.map +1 -1
  310. package/dist-esm/src/operations/replicationPolicies.d.ts +4 -4
  311. package/dist-esm/src/operations/replicationPolicies.d.ts.map +1 -1
  312. package/dist-esm/src/operations/replicationPolicies.js +26 -14
  313. package/dist-esm/src/operations/replicationPolicies.js.map +1 -1
  314. package/dist-esm/src/operations/replicationProtectedItems.d.ts +20 -20
  315. package/dist-esm/src/operations/replicationProtectedItems.d.ts.map +1 -1
  316. package/dist-esm/src/operations/replicationProtectedItems.js +304 -228
  317. package/dist-esm/src/operations/replicationProtectedItems.js.map +1 -1
  318. package/dist-esm/src/operations/replicationProtectionContainerMappings.d.ts +5 -5
  319. package/dist-esm/src/operations/replicationProtectionContainerMappings.d.ts.map +1 -1
  320. package/dist-esm/src/operations/replicationProtectionContainerMappings.js +65 -49
  321. package/dist-esm/src/operations/replicationProtectionContainerMappings.js.map +1 -1
  322. package/dist-esm/src/operations/replicationProtectionContainers.d.ts +5 -5
  323. package/dist-esm/src/operations/replicationProtectionContainers.d.ts.map +1 -1
  324. package/dist-esm/src/operations/replicationProtectionContainers.js +61 -45
  325. package/dist-esm/src/operations/replicationProtectionContainers.js.map +1 -1
  326. package/dist-esm/src/operations/replicationRecoveryPlans.d.ts +11 -11
  327. package/dist-esm/src/operations/replicationRecoveryPlans.d.ts.map +1 -1
  328. package/dist-esm/src/operations/replicationRecoveryPlans.js +118 -42
  329. package/dist-esm/src/operations/replicationRecoveryPlans.js.map +1 -1
  330. package/dist-esm/src/operations/replicationRecoveryServicesProviders.d.ts +5 -5
  331. package/dist-esm/src/operations/replicationRecoveryServicesProviders.d.ts.map +1 -1
  332. package/dist-esm/src/operations/replicationRecoveryServicesProviders.js +59 -25
  333. package/dist-esm/src/operations/replicationRecoveryServicesProviders.js.map +1 -1
  334. package/dist-esm/src/operations/replicationStorageClassificationMappings.d.ts +3 -3
  335. package/dist-esm/src/operations/replicationStorageClassificationMappings.d.ts.map +1 -1
  336. package/dist-esm/src/operations/replicationStorageClassificationMappings.js +33 -25
  337. package/dist-esm/src/operations/replicationStorageClassificationMappings.js.map +1 -1
  338. package/dist-esm/src/operations/replicationVaultHealth.d.ts +2 -2
  339. package/dist-esm/src/operations/replicationVaultHealth.d.ts.map +1 -1
  340. package/dist-esm/src/operations/replicationVaultHealth.js +10 -6
  341. package/dist-esm/src/operations/replicationVaultHealth.js.map +1 -1
  342. package/dist-esm/src/operations/replicationVaultSetting.d.ts +2 -2
  343. package/dist-esm/src/operations/replicationVaultSetting.d.ts.map +1 -1
  344. package/dist-esm/src/operations/replicationVaultSetting.js +16 -6
  345. package/dist-esm/src/operations/replicationVaultSetting.js.map +1 -1
  346. package/dist-esm/src/operations/replicationvCenters.d.ts +4 -4
  347. package/dist-esm/src/operations/replicationvCenters.d.ts.map +1 -1
  348. package/dist-esm/src/operations/replicationvCenters.js +46 -28
  349. package/dist-esm/src/operations/replicationvCenters.js.map +1 -1
  350. package/dist-esm/src/operationsInterfaces/replicationFabrics.d.ts +8 -8
  351. package/dist-esm/src/operationsInterfaces/replicationFabrics.d.ts.map +1 -1
  352. package/dist-esm/src/operationsInterfaces/replicationJobs.d.ts +5 -5
  353. package/dist-esm/src/operationsInterfaces/replicationJobs.d.ts.map +1 -1
  354. package/dist-esm/src/operationsInterfaces/replicationMigrationItems.d.ts +10 -10
  355. package/dist-esm/src/operationsInterfaces/replicationMigrationItems.d.ts.map +1 -1
  356. package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.d.ts +4 -4
  357. package/dist-esm/src/operationsInterfaces/replicationNetworkMappings.d.ts.map +1 -1
  358. package/dist-esm/src/operationsInterfaces/replicationPolicies.d.ts +4 -4
  359. package/dist-esm/src/operationsInterfaces/replicationPolicies.d.ts.map +1 -1
  360. package/dist-esm/src/operationsInterfaces/replicationProtectedItems.d.ts +20 -20
  361. package/dist-esm/src/operationsInterfaces/replicationProtectedItems.d.ts.map +1 -1
  362. package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.d.ts +5 -5
  363. package/dist-esm/src/operationsInterfaces/replicationProtectionContainerMappings.d.ts.map +1 -1
  364. package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.d.ts +5 -5
  365. package/dist-esm/src/operationsInterfaces/replicationProtectionContainers.d.ts.map +1 -1
  366. package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.d.ts +11 -11
  367. package/dist-esm/src/operationsInterfaces/replicationRecoveryPlans.d.ts.map +1 -1
  368. package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.d.ts +5 -5
  369. package/dist-esm/src/operationsInterfaces/replicationRecoveryServicesProviders.d.ts.map +1 -1
  370. package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.d.ts +3 -3
  371. package/dist-esm/src/operationsInterfaces/replicationStorageClassificationMappings.d.ts.map +1 -1
  372. package/dist-esm/src/operationsInterfaces/replicationVaultHealth.d.ts +2 -2
  373. package/dist-esm/src/operationsInterfaces/replicationVaultHealth.d.ts.map +1 -1
  374. package/dist-esm/src/operationsInterfaces/replicationVaultSetting.d.ts +2 -2
  375. package/dist-esm/src/operationsInterfaces/replicationVaultSetting.d.ts.map +1 -1
  376. package/dist-esm/src/operationsInterfaces/replicationvCenters.d.ts +4 -4
  377. package/dist-esm/src/operationsInterfaces/replicationvCenters.d.ts.map +1 -1
  378. package/dist-esm/src/siteRecoveryManagementClient.js +2 -2
  379. package/package.json +10 -9
  380. package/review/arm-recoveryservices-siterecovery.api.md +191 -76
  381. package/src/lroImpl.ts +31 -23
  382. package/src/models/index.ts +302 -0
  383. package/src/models/mappers.ts +559 -0
  384. package/src/models/parameters.ts +1 -1
  385. package/src/operations/replicationFabrics.ts +85 -69
  386. package/src/operations/replicationJobs.ts +64 -42
  387. package/src/operations/replicationMigrationItems.ts +119 -91
  388. package/src/operations/replicationNetworkMappings.ts +41 -31
  389. package/src/operations/replicationPolicies.ts +41 -31
  390. package/src/operations/replicationProtectedItems.ts +247 -194
  391. package/src/operations/replicationProtectionContainerMappings.ts +50 -40
  392. package/src/operations/replicationProtectionContainers.ts +56 -43
  393. package/src/operations/replicationRecoveryPlans.ts +168 -101
  394. package/src/operations/replicationRecoveryServicesProviders.ts +70 -40
  395. package/src/operations/replicationStorageClassificationMappings.ts +28 -23
  396. package/src/operations/replicationVaultHealth.ts +19 -12
  397. package/src/operations/replicationVaultSetting.ts +25 -12
  398. package/src/operations/replicationvCenters.ts +47 -31
  399. package/src/operationsInterfaces/replicationFabrics.ts +12 -12
  400. package/src/operationsInterfaces/replicationJobs.ts +9 -9
  401. package/src/operationsInterfaces/replicationMigrationItems.ts +18 -18
  402. package/src/operationsInterfaces/replicationNetworkMappings.ts +6 -6
  403. package/src/operationsInterfaces/replicationPolicies.ts +6 -6
  404. package/src/operationsInterfaces/replicationProtectedItems.ts +37 -39
  405. package/src/operationsInterfaces/replicationProtectionContainerMappings.ts +7 -7
  406. package/src/operationsInterfaces/replicationProtectionContainers.ts +8 -10
  407. package/src/operationsInterfaces/replicationRecoveryPlans.ts +20 -20
  408. package/src/operationsInterfaces/replicationRecoveryServicesProviders.ts +7 -7
  409. package/src/operationsInterfaces/replicationStorageClassificationMappings.ts +4 -6
  410. package/src/operationsInterfaces/replicationVaultHealth.ts +3 -3
  411. package/src/operationsInterfaces/replicationVaultSetting.ts +3 -3
  412. package/src/operationsInterfaces/replicationvCenters.ts +6 -6
  413. package/src/siteRecoveryManagementClient.ts +2 -2
  414. package/types/arm-recoveryservices-siterecovery.d.ts +378 -76
package/dist/index.js CHANGED
@@ -393,6 +393,14 @@ exports.KnownVmEncryptionType = void 0;
393
393
  /** TwoPassEncrypted */
394
394
  KnownVmEncryptionType["TwoPassEncrypted"] = "TwoPassEncrypted";
395
395
  })(exports.KnownVmEncryptionType || (exports.KnownVmEncryptionType = {}));
396
+ /** Known values of {@link ChurnOptionSelected} that the service accepts. */
397
+ exports.KnownChurnOptionSelected = void 0;
398
+ (function (KnownChurnOptionSelected) {
399
+ /** Normal */
400
+ KnownChurnOptionSelected["Normal"] = "Normal";
401
+ /** High */
402
+ KnownChurnOptionSelected["High"] = "High";
403
+ })(exports.KnownChurnOptionSelected || (exports.KnownChurnOptionSelected = {}));
396
404
  /** Known values of {@link DiskAccountType} that the service accepts. */
397
405
  exports.KnownDiskAccountType = void 0;
398
406
  (function (KnownDiskAccountType) {
@@ -643,6 +651,16 @@ exports.KnownRecoveryPlanPointType = void 0;
643
651
  /** LatestProcessed */
644
652
  KnownRecoveryPlanPointType["LatestProcessed"] = "LatestProcessed";
645
653
  })(exports.KnownRecoveryPlanPointType || (exports.KnownRecoveryPlanPointType = {}));
654
+ /** Known values of {@link SecurityType} that the service accepts. */
655
+ exports.KnownSecurityType = void 0;
656
+ (function (KnownSecurityType) {
657
+ /** None */
658
+ KnownSecurityType["None"] = "None";
659
+ /** TrustedLaunch */
660
+ KnownSecurityType["TrustedLaunch"] = "TrustedLaunch";
661
+ /** ConfidentialVM */
662
+ KnownSecurityType["ConfidentialVM"] = "ConfidentialVM";
663
+ })(exports.KnownSecurityType || (exports.KnownSecurityType = {}));
646
664
 
647
665
  /*
648
666
  * Copyright (c) Microsoft Corporation.
@@ -7739,6 +7757,90 @@ const A2AExtendedLocationDetails = {
7739
7757
  }
7740
7758
  }
7741
7759
  };
7760
+ const A2AFabricSpecificLocationDetails = {
7761
+ type: {
7762
+ name: "Composite",
7763
+ className: "A2AFabricSpecificLocationDetails",
7764
+ modelProperties: {
7765
+ initialPrimaryZone: {
7766
+ serializedName: "initialPrimaryZone",
7767
+ type: {
7768
+ name: "String"
7769
+ }
7770
+ },
7771
+ initialRecoveryZone: {
7772
+ serializedName: "initialRecoveryZone",
7773
+ type: {
7774
+ name: "String"
7775
+ }
7776
+ },
7777
+ initialPrimaryExtendedLocation: {
7778
+ serializedName: "initialPrimaryExtendedLocation",
7779
+ type: {
7780
+ name: "Composite",
7781
+ className: "ExtendedLocation"
7782
+ }
7783
+ },
7784
+ initialRecoveryExtendedLocation: {
7785
+ serializedName: "initialRecoveryExtendedLocation",
7786
+ type: {
7787
+ name: "Composite",
7788
+ className: "ExtendedLocation"
7789
+ }
7790
+ },
7791
+ initialPrimaryFabricLocation: {
7792
+ serializedName: "initialPrimaryFabricLocation",
7793
+ type: {
7794
+ name: "String"
7795
+ }
7796
+ },
7797
+ initialRecoveryFabricLocation: {
7798
+ serializedName: "initialRecoveryFabricLocation",
7799
+ type: {
7800
+ name: "String"
7801
+ }
7802
+ },
7803
+ primaryZone: {
7804
+ serializedName: "primaryZone",
7805
+ type: {
7806
+ name: "String"
7807
+ }
7808
+ },
7809
+ recoveryZone: {
7810
+ serializedName: "recoveryZone",
7811
+ type: {
7812
+ name: "String"
7813
+ }
7814
+ },
7815
+ primaryExtendedLocation: {
7816
+ serializedName: "primaryExtendedLocation",
7817
+ type: {
7818
+ name: "Composite",
7819
+ className: "ExtendedLocation"
7820
+ }
7821
+ },
7822
+ recoveryExtendedLocation: {
7823
+ serializedName: "recoveryExtendedLocation",
7824
+ type: {
7825
+ name: "Composite",
7826
+ className: "ExtendedLocation"
7827
+ }
7828
+ },
7829
+ primaryFabricLocation: {
7830
+ serializedName: "primaryFabricLocation",
7831
+ type: {
7832
+ name: "String"
7833
+ }
7834
+ },
7835
+ recoveryFabricLocation: {
7836
+ serializedName: "recoveryFabricLocation",
7837
+ type: {
7838
+ name: "String"
7839
+ }
7840
+ }
7841
+ }
7842
+ }
7843
+ };
7742
7844
  const A2AProtectedDiskDetails = {
7743
7845
  type: {
7744
7846
  name: "Composite",
@@ -8545,6 +8647,127 @@ const AgentDiskDetails = {
8545
8647
  }
8546
8648
  }
8547
8649
  };
8650
+ const ApplianceMonitoringDetails = {
8651
+ type: {
8652
+ name: "Composite",
8653
+ className: "ApplianceMonitoringDetails",
8654
+ modelProperties: {
8655
+ cpuDetails: {
8656
+ serializedName: "cpuDetails",
8657
+ type: {
8658
+ name: "Composite",
8659
+ className: "ApplianceResourceDetails"
8660
+ }
8661
+ },
8662
+ ramDetails: {
8663
+ serializedName: "ramDetails",
8664
+ type: {
8665
+ name: "Composite",
8666
+ className: "ApplianceResourceDetails"
8667
+ }
8668
+ },
8669
+ datastoreSnapshot: {
8670
+ serializedName: "datastoreSnapshot",
8671
+ readOnly: true,
8672
+ type: {
8673
+ name: "Sequence",
8674
+ element: {
8675
+ type: {
8676
+ name: "Composite",
8677
+ className: "DataStoreUtilizationDetails"
8678
+ }
8679
+ }
8680
+ }
8681
+ },
8682
+ disksReplicationDetails: {
8683
+ serializedName: "disksReplicationDetails",
8684
+ type: {
8685
+ name: "Composite",
8686
+ className: "ApplianceResourceDetails"
8687
+ }
8688
+ },
8689
+ esxiNfcBuffer: {
8690
+ serializedName: "esxiNfcBuffer",
8691
+ type: {
8692
+ name: "Composite",
8693
+ className: "ApplianceResourceDetails"
8694
+ }
8695
+ },
8696
+ networkBandwidth: {
8697
+ serializedName: "networkBandwidth",
8698
+ type: {
8699
+ name: "Composite",
8700
+ className: "ApplianceResourceDetails"
8701
+ }
8702
+ }
8703
+ }
8704
+ }
8705
+ };
8706
+ const ApplianceResourceDetails = {
8707
+ type: {
8708
+ name: "Composite",
8709
+ className: "ApplianceResourceDetails",
8710
+ modelProperties: {
8711
+ capacity: {
8712
+ serializedName: "capacity",
8713
+ readOnly: true,
8714
+ type: {
8715
+ name: "Number"
8716
+ }
8717
+ },
8718
+ processUtilization: {
8719
+ serializedName: "processUtilization",
8720
+ readOnly: true,
8721
+ type: {
8722
+ name: "Number"
8723
+ }
8724
+ },
8725
+ totalUtilization: {
8726
+ serializedName: "totalUtilization",
8727
+ readOnly: true,
8728
+ type: {
8729
+ name: "Number"
8730
+ }
8731
+ },
8732
+ status: {
8733
+ serializedName: "status",
8734
+ readOnly: true,
8735
+ type: {
8736
+ name: "String"
8737
+ }
8738
+ }
8739
+ }
8740
+ }
8741
+ };
8742
+ const DataStoreUtilizationDetails = {
8743
+ type: {
8744
+ name: "Composite",
8745
+ className: "DataStoreUtilizationDetails",
8746
+ modelProperties: {
8747
+ totalSnapshotsSupported: {
8748
+ serializedName: "totalSnapshotsSupported",
8749
+ readOnly: true,
8750
+ type: {
8751
+ name: "Number"
8752
+ }
8753
+ },
8754
+ totalSnapshotsCreated: {
8755
+ serializedName: "totalSnapshotsCreated",
8756
+ readOnly: true,
8757
+ type: {
8758
+ name: "Number"
8759
+ }
8760
+ },
8761
+ dataStoreName: {
8762
+ serializedName: "dataStoreName",
8763
+ readOnly: true,
8764
+ type: {
8765
+ name: "String"
8766
+ }
8767
+ }
8768
+ }
8769
+ }
8770
+ };
8548
8771
  const ApplianceQueryParameter = {
8549
8772
  type: {
8550
8773
  name: "Composite",
@@ -8903,6 +9126,18 @@ const FabricQueryParameter = {
8903
9126
  name: "String"
8904
9127
  }
8905
9128
  },
9129
+ extendedLocationMappings: {
9130
+ serializedName: "extendedLocationMappings",
9131
+ type: {
9132
+ name: "String"
9133
+ }
9134
+ },
9135
+ locationDetails: {
9136
+ serializedName: "locationDetails",
9137
+ type: {
9138
+ name: "String"
9139
+ }
9140
+ },
8906
9141
  fetchAgentDetails: {
8907
9142
  serializedName: "fetchAgentDetails",
8908
9143
  type: {
@@ -9042,6 +9277,75 @@ const FailoverReplicationProtectedItemDetails = {
9042
9277
  }
9043
9278
  }
9044
9279
  };
9280
+ const GatewayOperationDetails = {
9281
+ type: {
9282
+ name: "Composite",
9283
+ className: "GatewayOperationDetails",
9284
+ modelProperties: {
9285
+ state: {
9286
+ serializedName: "state",
9287
+ readOnly: true,
9288
+ type: {
9289
+ name: "String"
9290
+ }
9291
+ },
9292
+ progressPercentage: {
9293
+ serializedName: "progressPercentage",
9294
+ readOnly: true,
9295
+ type: {
9296
+ name: "Number"
9297
+ }
9298
+ },
9299
+ timeElapsed: {
9300
+ serializedName: "timeElapsed",
9301
+ readOnly: true,
9302
+ type: {
9303
+ name: "Number"
9304
+ }
9305
+ },
9306
+ timeRemaining: {
9307
+ serializedName: "timeRemaining",
9308
+ readOnly: true,
9309
+ type: {
9310
+ name: "Number"
9311
+ }
9312
+ },
9313
+ uploadSpeed: {
9314
+ serializedName: "uploadSpeed",
9315
+ readOnly: true,
9316
+ type: {
9317
+ name: "Number"
9318
+ }
9319
+ },
9320
+ hostName: {
9321
+ serializedName: "hostName",
9322
+ readOnly: true,
9323
+ type: {
9324
+ name: "String"
9325
+ }
9326
+ },
9327
+ dataStores: {
9328
+ serializedName: "dataStores",
9329
+ readOnly: true,
9330
+ type: {
9331
+ name: "Sequence",
9332
+ element: {
9333
+ type: {
9334
+ name: "String"
9335
+ }
9336
+ }
9337
+ }
9338
+ },
9339
+ vmwareReadThroughput: {
9340
+ serializedName: "vmwareReadThroughput",
9341
+ readOnly: true,
9342
+ type: {
9343
+ name: "Number"
9344
+ }
9345
+ }
9346
+ }
9347
+ }
9348
+ };
9045
9349
  const HyperVHostDetails = {
9046
9350
  type: {
9047
9351
  name: "Composite",
@@ -9199,6 +9503,33 @@ const OSDetails = {
9199
9503
  }
9200
9504
  }
9201
9505
  };
9506
+ const OSUpgradeSupportedVersions = {
9507
+ type: {
9508
+ name: "Composite",
9509
+ className: "OSUpgradeSupportedVersions",
9510
+ modelProperties: {
9511
+ supportedSourceOsVersion: {
9512
+ serializedName: "supportedSourceOsVersion",
9513
+ readOnly: true,
9514
+ type: {
9515
+ name: "String"
9516
+ }
9517
+ },
9518
+ supportedTargetOsVersions: {
9519
+ serializedName: "supportedTargetOsVersions",
9520
+ readOnly: true,
9521
+ type: {
9522
+ name: "Sequence",
9523
+ element: {
9524
+ type: {
9525
+ name: "String"
9526
+ }
9527
+ }
9528
+ }
9529
+ }
9530
+ }
9531
+ }
9532
+ };
9202
9533
  const UpdateDiskInput = {
9203
9534
  type: {
9204
9535
  name: "Composite",
@@ -12361,6 +12692,44 @@ const VMwareCbtDiskInput = {
12361
12692
  }
12362
12693
  }
12363
12694
  };
12695
+ const VMwareCbtSecurityProfileProperties = {
12696
+ type: {
12697
+ name: "Composite",
12698
+ className: "VMwareCbtSecurityProfileProperties",
12699
+ modelProperties: {
12700
+ targetVmSecurityType: {
12701
+ serializedName: "targetVmSecurityType",
12702
+ type: {
12703
+ name: "String"
12704
+ }
12705
+ },
12706
+ isTargetVmSecureBootEnabled: {
12707
+ serializedName: "isTargetVmSecureBootEnabled",
12708
+ type: {
12709
+ name: "String"
12710
+ }
12711
+ },
12712
+ isTargetVmTpmEnabled: {
12713
+ serializedName: "isTargetVmTpmEnabled",
12714
+ type: {
12715
+ name: "String"
12716
+ }
12717
+ },
12718
+ isTargetVmIntegrityMonitoringEnabled: {
12719
+ serializedName: "isTargetVmIntegrityMonitoringEnabled",
12720
+ type: {
12721
+ name: "String"
12722
+ }
12723
+ },
12724
+ isTargetVmConfidentialEncryptionEnabled: {
12725
+ serializedName: "isTargetVmConfidentialEncryptionEnabled",
12726
+ type: {
12727
+ name: "String"
12728
+ }
12729
+ }
12730
+ }
12731
+ }
12732
+ };
12364
12733
  const VMwareCbtProtectedDiskDetails = {
12365
12734
  type: {
12366
12735
  name: "Composite",
@@ -12461,6 +12830,13 @@ const VMwareCbtProtectedDiskDetails = {
12461
12830
  type: {
12462
12831
  name: "String"
12463
12832
  }
12833
+ },
12834
+ gatewayOperationDetails: {
12835
+ serializedName: "gatewayOperationDetails",
12836
+ type: {
12837
+ name: "Composite",
12838
+ className: "GatewayOperationDetails"
12839
+ }
12464
12840
  }
12465
12841
  }
12466
12842
  }
@@ -13368,6 +13744,17 @@ const AzureFabricSpecificDetails = {
13368
13744
  }
13369
13745
  }
13370
13746
  }
13747
+ }, locationDetails: {
13748
+ serializedName: "locationDetails",
13749
+ type: {
13750
+ name: "Sequence",
13751
+ element: {
13752
+ type: {
13753
+ name: "Composite",
13754
+ className: "A2AFabricSpecificLocationDetails"
13755
+ }
13756
+ }
13757
+ }
13371
13758
  } })
13372
13759
  }
13373
13760
  };
@@ -14046,6 +14433,12 @@ const VMwareCbtMigrationDetails = {
14046
14433
  type: {
14047
14434
  name: "String"
14048
14435
  }
14436
+ }, osName: {
14437
+ serializedName: "osName",
14438
+ readOnly: true,
14439
+ type: {
14440
+ name: "String"
14441
+ }
14049
14442
  }, firmwareType: {
14050
14443
  serializedName: "firmwareType",
14051
14444
  readOnly: true,
@@ -14122,6 +14515,17 @@ const VMwareCbtMigrationDetails = {
14122
14515
  type: {
14123
14516
  name: "String"
14124
14517
  }
14518
+ }, confidentialVmKeyVaultId: {
14519
+ serializedName: "confidentialVmKeyVaultId",
14520
+ type: {
14521
+ name: "String"
14522
+ }
14523
+ }, targetVmSecurityProfile: {
14524
+ serializedName: "targetVmSecurityProfile",
14525
+ type: {
14526
+ name: "Composite",
14527
+ className: "VMwareCbtSecurityProfileProperties"
14528
+ }
14125
14529
  }, targetBootDiagnosticsStorageAccountId: {
14126
14530
  serializedName: "targetBootDiagnosticsStorageAccountId",
14127
14531
  type: {
@@ -14213,6 +14617,18 @@ const VMwareCbtMigrationDetails = {
14213
14617
  type: {
14214
14618
  name: "Number"
14215
14619
  }
14620
+ }, deltaSyncProgressPercentage: {
14621
+ serializedName: "deltaSyncProgressPercentage",
14622
+ readOnly: true,
14623
+ type: {
14624
+ name: "Number"
14625
+ }
14626
+ }, isCheckSumResyncCycle: {
14627
+ serializedName: "isCheckSumResyncCycle",
14628
+ readOnly: true,
14629
+ type: {
14630
+ name: "String"
14631
+ }
14216
14632
  }, initialSeedingRetryCount: {
14217
14633
  serializedName: "initialSeedingRetryCount",
14218
14634
  readOnly: true,
@@ -14231,6 +14647,12 @@ const VMwareCbtMigrationDetails = {
14231
14647
  type: {
14232
14648
  name: "Number"
14233
14649
  }
14650
+ }, deltaSyncRetryCount: {
14651
+ serializedName: "deltaSyncRetryCount",
14652
+ readOnly: true,
14653
+ type: {
14654
+ name: "Number"
14655
+ }
14234
14656
  }, resyncRequired: {
14235
14657
  serializedName: "resyncRequired",
14236
14658
  readOnly: true,
@@ -14260,6 +14682,34 @@ const VMwareCbtMigrationDetails = {
14260
14682
  name: "Dictionary",
14261
14683
  value: { type: { name: "String" } }
14262
14684
  }
14685
+ }, supportedOSVersions: {
14686
+ serializedName: "supportedOSVersions",
14687
+ type: {
14688
+ name: "Sequence",
14689
+ element: {
14690
+ type: {
14691
+ name: "String"
14692
+ }
14693
+ }
14694
+ }
14695
+ }, applianceMonitoringDetails: {
14696
+ serializedName: "applianceMonitoringDetails",
14697
+ type: {
14698
+ name: "Composite",
14699
+ className: "ApplianceMonitoringDetails"
14700
+ }
14701
+ }, gatewayOperationDetails: {
14702
+ serializedName: "gatewayOperationDetails",
14703
+ type: {
14704
+ name: "Composite",
14705
+ className: "GatewayOperationDetails"
14706
+ }
14707
+ }, operationName: {
14708
+ serializedName: "operationName",
14709
+ readOnly: true,
14710
+ type: {
14711
+ name: "String"
14712
+ }
14263
14713
  } })
14264
14714
  }
14265
14715
  };
@@ -14367,6 +14817,17 @@ const VMwareCbtEnableMigrationInput = {
14367
14817
  type: {
14368
14818
  name: "String"
14369
14819
  }
14820
+ }, confidentialVmKeyVaultId: {
14821
+ serializedName: "confidentialVmKeyVaultId",
14822
+ type: {
14823
+ name: "String"
14824
+ }
14825
+ }, targetVmSecurityProfile: {
14826
+ serializedName: "targetVmSecurityProfile",
14827
+ type: {
14828
+ name: "Composite",
14829
+ className: "VMwareCbtSecurityProfileProperties"
14830
+ }
14370
14831
  }, targetBootDiagnosticsStorageAccountId: {
14371
14832
  serializedName: "targetBootDiagnosticsStorageAccountId",
14372
14833
  type: {
@@ -14527,6 +14988,11 @@ const VMwareCbtMigrateInput = {
14527
14988
  type: {
14528
14989
  name: "String"
14529
14990
  }
14991
+ }, osUpgradeVersion: {
14992
+ serializedName: "osUpgradeVersion",
14993
+ type: {
14994
+ name: "String"
14995
+ }
14530
14996
  } })
14531
14997
  }
14532
14998
  };
@@ -14591,6 +15057,11 @@ const VMwareCbtTestMigrateInput = {
14591
15057
  }
14592
15058
  }
14593
15059
  }
15060
+ }, osUpgradeVersion: {
15061
+ serializedName: "osUpgradeVersion",
15062
+ type: {
15063
+ name: "String"
15064
+ }
14594
15065
  } })
14595
15066
  }
14596
15067
  };
@@ -15084,6 +15555,12 @@ const A2AReplicationDetails = {
15084
15555
  type: {
15085
15556
  name: "String"
15086
15557
  }
15558
+ }, churnOptionSelected: {
15559
+ serializedName: "churnOptionSelected",
15560
+ readOnly: true,
15561
+ type: {
15562
+ name: "String"
15563
+ }
15087
15564
  } })
15088
15565
  }
15089
15566
  };
@@ -15284,6 +15761,17 @@ const HyperVReplicaAzureReplicationDetails = {
15284
15761
  }
15285
15762
  }
15286
15763
  }
15764
+ }, allAvailableOSUpgradeConfigurations: {
15765
+ serializedName: "allAvailableOSUpgradeConfigurations",
15766
+ type: {
15767
+ name: "Sequence",
15768
+ element: {
15769
+ type: {
15770
+ name: "Composite",
15771
+ className: "OSUpgradeSupportedVersions"
15772
+ }
15773
+ }
15774
+ }
15287
15775
  } })
15288
15776
  }
15289
15777
  };
@@ -15850,6 +16338,33 @@ const InMageAzureV2ReplicationDetails = {
15850
16338
  name: "Composite",
15851
16339
  className: "InMageAzureV2SwitchProviderDetails"
15852
16340
  }
16341
+ }, supportedOSVersions: {
16342
+ serializedName: "supportedOSVersions",
16343
+ type: {
16344
+ name: "Sequence",
16345
+ element: {
16346
+ type: {
16347
+ name: "String"
16348
+ }
16349
+ }
16350
+ }
16351
+ }, allAvailableOSUpgradeConfigurations: {
16352
+ serializedName: "allAvailableOSUpgradeConfigurations",
16353
+ type: {
16354
+ name: "Sequence",
16355
+ element: {
16356
+ type: {
16357
+ name: "Composite",
16358
+ className: "OSUpgradeSupportedVersions"
16359
+ }
16360
+ }
16361
+ }
16362
+ }, osName: {
16363
+ serializedName: "osName",
16364
+ readOnly: true,
16365
+ type: {
16366
+ name: "String"
16367
+ }
15853
16368
  } })
15854
16369
  }
15855
16370
  };
@@ -17670,6 +18185,11 @@ const HyperVReplicaAzurePlannedFailoverProviderInput = {
17670
18185
  type: {
17671
18186
  name: "String"
17672
18187
  }
18188
+ }, osUpgradeVersion: {
18189
+ serializedName: "osUpgradeVersion",
18190
+ type: {
18191
+ name: "String"
18192
+ }
17673
18193
  } })
17674
18194
  }
17675
18195
  };
@@ -18117,6 +18637,11 @@ const HyperVReplicaAzureTestFailoverInput = {
18117
18637
  type: {
18118
18638
  name: "String"
18119
18639
  }
18640
+ }, osUpgradeVersion: {
18641
+ serializedName: "osUpgradeVersion",
18642
+ type: {
18643
+ name: "String"
18644
+ }
18120
18645
  } })
18121
18646
  }
18122
18647
  };
@@ -18132,6 +18657,11 @@ const InMageAzureV2TestFailoverInput = {
18132
18657
  type: {
18133
18658
  name: "String"
18134
18659
  }
18660
+ }, osUpgradeVersion: {
18661
+ serializedName: "osUpgradeVersion",
18662
+ type: {
18663
+ name: "String"
18664
+ }
18135
18665
  } })
18136
18666
  }
18137
18667
  };
@@ -18232,6 +18762,11 @@ const InMageAzureV2UnplannedFailoverInput = {
18232
18762
  type: {
18233
18763
  name: "String"
18234
18764
  }
18765
+ }, osUpgradeVersion: {
18766
+ serializedName: "osUpgradeVersion",
18767
+ type: {
18768
+ name: "String"
18769
+ }
18235
18770
  } })
18236
18771
  }
18237
18772
  };
@@ -18397,6 +18932,16 @@ const VMwareCbtProtectionContainerMappingDetails = {
18397
18932
  name: "Dictionary",
18398
18933
  value: { type: { name: "Number" } }
18399
18934
  }
18935
+ }, excludedSkus: {
18936
+ serializedName: "excludedSkus",
18937
+ type: {
18938
+ name: "Sequence",
18939
+ element: {
18940
+ type: {
18941
+ name: "String"
18942
+ }
18943
+ }
18944
+ }
18400
18945
  } })
18401
18946
  }
18402
18947
  };
@@ -20939,6 +21484,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
20939
21484
  RecoveryResourceGroupCustomDetails: RecoveryResourceGroupCustomDetails,
20940
21485
  ExtendedLocation: ExtendedLocation,
20941
21486
  A2AExtendedLocationDetails: A2AExtendedLocationDetails,
21487
+ A2AFabricSpecificLocationDetails: A2AFabricSpecificLocationDetails,
20942
21488
  A2AProtectedDiskDetails: A2AProtectedDiskDetails,
20943
21489
  A2AProtectedManagedDiskDetails: A2AProtectedManagedDiskDetails,
20944
21490
  A2AUnprotectedDiskDetails: A2AUnprotectedDiskDetails,
@@ -20950,6 +21496,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
20950
21496
  A2AZoneDetails: A2AZoneDetails,
20951
21497
  AgentDetails: AgentDetails,
20952
21498
  AgentDiskDetails: AgentDiskDetails,
21499
+ ApplianceMonitoringDetails: ApplianceMonitoringDetails,
21500
+ ApplianceResourceDetails: ApplianceResourceDetails,
21501
+ DataStoreUtilizationDetails: DataStoreUtilizationDetails,
20953
21502
  ApplianceQueryParameter: ApplianceQueryParameter,
20954
21503
  AzureVmDiskDetails: AzureVmDiskDetails,
20955
21504
  InconsistentVmDetails: InconsistentVmDetails,
@@ -20961,11 +21510,13 @@ var Mappers = /*#__PURE__*/Object.freeze({
20961
21510
  FabricQueryParameter: FabricQueryParameter,
20962
21511
  JobEntity: JobEntity,
20963
21512
  FailoverReplicationProtectedItemDetails: FailoverReplicationProtectedItemDetails,
21513
+ GatewayOperationDetails: GatewayOperationDetails,
20964
21514
  HyperVHostDetails: HyperVHostDetails,
20965
21515
  HyperVReplicaAzureDiskInputDetails: HyperVReplicaAzureDiskInputDetails,
20966
21516
  HyperVReplicaAzureManagedDiskDetails: HyperVReplicaAzureManagedDiskDetails,
20967
21517
  InitialReplicationDetails: InitialReplicationDetails,
20968
21518
  OSDetails: OSDetails,
21519
+ OSUpgradeSupportedVersions: OSUpgradeSupportedVersions,
20969
21520
  UpdateDiskInput: UpdateDiskInput,
20970
21521
  InMageAgentDetails: InMageAgentDetails,
20971
21522
  InMageAzureV2DiskInputDetails: InMageAzureV2DiskInputDetails,
@@ -21013,6 +21564,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
21013
21564
  RoleAssignment: RoleAssignment,
21014
21565
  RunAsAccount: RunAsAccount,
21015
21566
  VMwareCbtDiskInput: VMwareCbtDiskInput,
21567
+ VMwareCbtSecurityProfileProperties: VMwareCbtSecurityProfileProperties,
21016
21568
  VMwareCbtProtectedDiskDetails: VMwareCbtProtectedDiskDetails,
21017
21569
  VMwareCbtNicDetails: VMwareCbtNicDetails,
21018
21570
  VMwareCbtNicInput: VMwareCbtNicInput,
@@ -21239,7 +21791,7 @@ const $host = {
21239
21791
  const apiVersion = {
21240
21792
  parameterPath: "apiVersion",
21241
21793
  mapper: {
21242
- defaultValue: "2022-10-01",
21794
+ defaultValue: "2023-06-01",
21243
21795
  isConstant: true,
21244
21796
  serializedName: "api-version",
21245
21797
  type: {
@@ -22556,25 +23108,17 @@ const listNextOperationSpec$g = {
22556
23108
  * Code generated by Microsoft (R) AutoRest Code Generator.
22557
23109
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
22558
23110
  */
22559
- class LroImpl {
22560
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
22561
- this.sendOperationFn = sendOperationFn;
22562
- this.args = args;
22563
- this.spec = spec;
22564
- this.requestPath = requestPath;
22565
- this.requestMethod = requestMethod;
22566
- }
22567
- sendInitialRequest() {
22568
- return tslib.__awaiter(this, void 0, void 0, function* () {
22569
- return this.sendOperationFn(this.args, this.spec);
22570
- });
22571
- }
22572
- sendPollRequest(path) {
22573
- return tslib.__awaiter(this, void 0, void 0, function* () {
22574
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
22575
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
22576
- });
22577
- }
23111
+ function createLroSpec(inputs) {
23112
+ const { args, spec, sendOperationFn } = inputs;
23113
+ return {
23114
+ requestMethod: spec.httpMethod,
23115
+ requestPath: spec.path,
23116
+ sendInitialRequest: () => sendOperationFn(args, spec),
23117
+ sendPollRequest: (path, options) => {
23118
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
23119
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
23120
+ }
23121
+ };
22578
23122
  }
22579
23123
 
22580
23124
  /*
@@ -22698,7 +23242,7 @@ class ReplicationFabricsImpl {
22698
23242
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22699
23243
  return this.client.sendOperationRequest(args, spec);
22700
23244
  });
22701
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23245
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22702
23246
  var _a;
22703
23247
  let currentRawResponse = undefined;
22704
23248
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -22717,9 +23261,13 @@ class ReplicationFabricsImpl {
22717
23261
  }
22718
23262
  };
22719
23263
  });
22720
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, input, options }, createOperationSpec$c);
22721
- const poller = new coreLro.LroEngine(lro, {
22722
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23264
+ const lro = createLroSpec({
23265
+ sendOperationFn,
23266
+ args: { resourceName, resourceGroupName, fabricName, input, options },
23267
+ spec: createOperationSpec$c
23268
+ });
23269
+ const poller = yield coreLro.createHttpPoller(lro, {
23270
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22723
23271
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
22724
23272
  });
22725
23273
  yield poller.poll();
@@ -22754,7 +23302,7 @@ class ReplicationFabricsImpl {
22754
23302
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22755
23303
  return this.client.sendOperationRequest(args, spec);
22756
23304
  });
22757
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23305
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22758
23306
  var _a;
22759
23307
  let currentRawResponse = undefined;
22760
23308
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -22773,9 +23321,13 @@ class ReplicationFabricsImpl {
22773
23321
  }
22774
23322
  };
22775
23323
  });
22776
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, options }, purgeOperationSpec$3);
22777
- const poller = new coreLro.LroEngine(lro, {
22778
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23324
+ const lro = createLroSpec({
23325
+ sendOperationFn,
23326
+ args: { resourceName, resourceGroupName, fabricName, options },
23327
+ spec: purgeOperationSpec$3
23328
+ });
23329
+ const poller = yield coreLro.createHttpPoller(lro, {
23330
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22779
23331
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
22780
23332
  });
22781
23333
  yield poller.poll();
@@ -22809,7 +23361,7 @@ class ReplicationFabricsImpl {
22809
23361
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22810
23362
  return this.client.sendOperationRequest(args, spec);
22811
23363
  });
22812
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23364
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22813
23365
  var _a;
22814
23366
  let currentRawResponse = undefined;
22815
23367
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -22828,9 +23380,13 @@ class ReplicationFabricsImpl {
22828
23380
  }
22829
23381
  };
22830
23382
  });
22831
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, options }, checkConsistencyOperationSpec);
22832
- const poller = new coreLro.LroEngine(lro, {
22833
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23383
+ const lro = createLroSpec({
23384
+ sendOperationFn,
23385
+ args: { resourceName, resourceGroupName, fabricName, options },
23386
+ spec: checkConsistencyOperationSpec
23387
+ });
23388
+ const poller = yield coreLro.createHttpPoller(lro, {
23389
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22834
23390
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
22835
23391
  });
22836
23392
  yield poller.poll();
@@ -22864,7 +23420,7 @@ class ReplicationFabricsImpl {
22864
23420
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22865
23421
  return this.client.sendOperationRequest(args, spec);
22866
23422
  });
22867
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23423
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22868
23424
  var _a;
22869
23425
  let currentRawResponse = undefined;
22870
23426
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -22883,9 +23439,13 @@ class ReplicationFabricsImpl {
22883
23439
  }
22884
23440
  };
22885
23441
  });
22886
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, options }, migrateToAadOperationSpec);
22887
- const poller = new coreLro.LroEngine(lro, {
22888
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23442
+ const lro = createLroSpec({
23443
+ sendOperationFn,
23444
+ args: { resourceName, resourceGroupName, fabricName, options },
23445
+ spec: migrateToAadOperationSpec
23446
+ });
23447
+ const poller = yield coreLro.createHttpPoller(lro, {
23448
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22889
23449
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
22890
23450
  });
22891
23451
  yield poller.poll();
@@ -22920,7 +23480,7 @@ class ReplicationFabricsImpl {
22920
23480
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22921
23481
  return this.client.sendOperationRequest(args, spec);
22922
23482
  });
22923
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23483
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22924
23484
  var _a;
22925
23485
  let currentRawResponse = undefined;
22926
23486
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -22939,15 +23499,19 @@ class ReplicationFabricsImpl {
22939
23499
  }
22940
23500
  };
22941
23501
  });
22942
- const lro = new LroImpl(sendOperation, {
22943
- resourceName,
22944
- resourceGroupName,
22945
- fabricName,
22946
- failoverProcessServerRequest,
22947
- options
22948
- }, reassociateGatewayOperationSpec);
22949
- const poller = new coreLro.LroEngine(lro, {
22950
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23502
+ const lro = createLroSpec({
23503
+ sendOperationFn,
23504
+ args: {
23505
+ resourceName,
23506
+ resourceGroupName,
23507
+ fabricName,
23508
+ failoverProcessServerRequest,
23509
+ options
23510
+ },
23511
+ spec: reassociateGatewayOperationSpec
23512
+ });
23513
+ const poller = yield coreLro.createHttpPoller(lro, {
23514
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22951
23515
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
22952
23516
  });
22953
23517
  yield poller.poll();
@@ -22982,7 +23546,7 @@ class ReplicationFabricsImpl {
22982
23546
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22983
23547
  return this.client.sendOperationRequest(args, spec);
22984
23548
  });
22985
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23549
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22986
23550
  var _a;
22987
23551
  let currentRawResponse = undefined;
22988
23552
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -23001,9 +23565,13 @@ class ReplicationFabricsImpl {
23001
23565
  }
23002
23566
  };
23003
23567
  });
23004
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, options }, deleteOperationSpec$a);
23005
- const poller = new coreLro.LroEngine(lro, {
23006
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23568
+ const lro = createLroSpec({
23569
+ sendOperationFn,
23570
+ args: { resourceName, resourceGroupName, fabricName, options },
23571
+ spec: deleteOperationSpec$a
23572
+ });
23573
+ const poller = yield coreLro.createHttpPoller(lro, {
23574
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23007
23575
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
23008
23576
  });
23009
23577
  yield poller.poll();
@@ -23038,7 +23606,7 @@ class ReplicationFabricsImpl {
23038
23606
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23039
23607
  return this.client.sendOperationRequest(args, spec);
23040
23608
  });
23041
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23609
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23042
23610
  var _a;
23043
23611
  let currentRawResponse = undefined;
23044
23612
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -23057,15 +23625,19 @@ class ReplicationFabricsImpl {
23057
23625
  }
23058
23626
  };
23059
23627
  });
23060
- const lro = new LroImpl(sendOperation, {
23061
- resourceName,
23062
- resourceGroupName,
23063
- fabricName,
23064
- renewCertificate,
23065
- options
23066
- }, renewCertificateOperationSpec);
23067
- const poller = new coreLro.LroEngine(lro, {
23068
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23628
+ const lro = createLroSpec({
23629
+ sendOperationFn,
23630
+ args: {
23631
+ resourceName,
23632
+ resourceGroupName,
23633
+ fabricName,
23634
+ renewCertificate,
23635
+ options
23636
+ },
23637
+ spec: renewCertificateOperationSpec
23638
+ });
23639
+ const poller = yield coreLro.createHttpPoller(lro, {
23640
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23069
23641
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
23070
23642
  });
23071
23643
  yield poller.poll();
@@ -24024,7 +24596,7 @@ class ReplicationNetworkMappingsImpl {
24024
24596
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24025
24597
  return this.client.sendOperationRequest(args, spec);
24026
24598
  });
24027
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24599
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24028
24600
  var _a;
24029
24601
  let currentRawResponse = undefined;
24030
24602
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -24043,17 +24615,21 @@ class ReplicationNetworkMappingsImpl {
24043
24615
  }
24044
24616
  };
24045
24617
  });
24046
- const lro = new LroImpl(sendOperation, {
24047
- resourceName,
24048
- resourceGroupName,
24049
- fabricName,
24050
- networkName,
24051
- networkMappingName,
24052
- input,
24053
- options
24054
- }, createOperationSpec$b);
24055
- const poller = new coreLro.LroEngine(lro, {
24056
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24618
+ const lro = createLroSpec({
24619
+ sendOperationFn,
24620
+ args: {
24621
+ resourceName,
24622
+ resourceGroupName,
24623
+ fabricName,
24624
+ networkName,
24625
+ networkMappingName,
24626
+ input,
24627
+ options
24628
+ },
24629
+ spec: createOperationSpec$b
24630
+ });
24631
+ const poller = yield coreLro.createHttpPoller(lro, {
24632
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24057
24633
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
24058
24634
  });
24059
24635
  yield poller.poll();
@@ -24092,7 +24668,7 @@ class ReplicationNetworkMappingsImpl {
24092
24668
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24093
24669
  return this.client.sendOperationRequest(args, spec);
24094
24670
  });
24095
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24671
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24096
24672
  var _a;
24097
24673
  let currentRawResponse = undefined;
24098
24674
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -24111,16 +24687,20 @@ class ReplicationNetworkMappingsImpl {
24111
24687
  }
24112
24688
  };
24113
24689
  });
24114
- const lro = new LroImpl(sendOperation, {
24115
- resourceName,
24116
- resourceGroupName,
24117
- fabricName,
24118
- networkName,
24119
- networkMappingName,
24120
- options
24121
- }, deleteOperationSpec$9);
24122
- const poller = new coreLro.LroEngine(lro, {
24123
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24690
+ const lro = createLroSpec({
24691
+ sendOperationFn,
24692
+ args: {
24693
+ resourceName,
24694
+ resourceGroupName,
24695
+ fabricName,
24696
+ networkName,
24697
+ networkMappingName,
24698
+ options
24699
+ },
24700
+ spec: deleteOperationSpec$9
24701
+ });
24702
+ const poller = yield coreLro.createHttpPoller(lro, {
24703
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24124
24704
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
24125
24705
  });
24126
24706
  yield poller.poll();
@@ -24159,7 +24739,7 @@ class ReplicationNetworkMappingsImpl {
24159
24739
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24160
24740
  return this.client.sendOperationRequest(args, spec);
24161
24741
  });
24162
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24742
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24163
24743
  var _a;
24164
24744
  let currentRawResponse = undefined;
24165
24745
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -24178,17 +24758,21 @@ class ReplicationNetworkMappingsImpl {
24178
24758
  }
24179
24759
  };
24180
24760
  });
24181
- const lro = new LroImpl(sendOperation, {
24182
- resourceName,
24183
- resourceGroupName,
24184
- fabricName,
24185
- networkName,
24186
- networkMappingName,
24187
- input,
24188
- options
24189
- }, updateOperationSpec$6);
24190
- const poller = new coreLro.LroEngine(lro, {
24191
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24761
+ const lro = createLroSpec({
24762
+ sendOperationFn,
24763
+ args: {
24764
+ resourceName,
24765
+ resourceGroupName,
24766
+ fabricName,
24767
+ networkName,
24768
+ networkMappingName,
24769
+ input,
24770
+ options
24771
+ },
24772
+ spec: updateOperationSpec$6
24773
+ });
24774
+ const poller = yield coreLro.createHttpPoller(lro, {
24775
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24192
24776
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
24193
24777
  });
24194
24778
  yield poller.poll();
@@ -24635,7 +25219,7 @@ class ReplicationProtectionContainersImpl {
24635
25219
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24636
25220
  return this.client.sendOperationRequest(args, spec);
24637
25221
  });
24638
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25222
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24639
25223
  var _a;
24640
25224
  let currentRawResponse = undefined;
24641
25225
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -24654,16 +25238,20 @@ class ReplicationProtectionContainersImpl {
24654
25238
  }
24655
25239
  };
24656
25240
  });
24657
- const lro = new LroImpl(sendOperation, {
24658
- resourceName,
24659
- resourceGroupName,
24660
- fabricName,
24661
- protectionContainerName,
24662
- creationInput,
24663
- options
24664
- }, createOperationSpec$a);
24665
- const poller = new coreLro.LroEngine(lro, {
24666
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25241
+ const lro = createLroSpec({
25242
+ sendOperationFn,
25243
+ args: {
25244
+ resourceName,
25245
+ resourceGroupName,
25246
+ fabricName,
25247
+ protectionContainerName,
25248
+ creationInput,
25249
+ options
25250
+ },
25251
+ spec: createOperationSpec$a
25252
+ });
25253
+ const poller = yield coreLro.createHttpPoller(lro, {
25254
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24667
25255
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
24668
25256
  });
24669
25257
  yield poller.poll();
@@ -24701,7 +25289,7 @@ class ReplicationProtectionContainersImpl {
24701
25289
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24702
25290
  return this.client.sendOperationRequest(args, spec);
24703
25291
  });
24704
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25292
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24705
25293
  var _a;
24706
25294
  let currentRawResponse = undefined;
24707
25295
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -24720,16 +25308,20 @@ class ReplicationProtectionContainersImpl {
24720
25308
  }
24721
25309
  };
24722
25310
  });
24723
- const lro = new LroImpl(sendOperation, {
24724
- resourceName,
24725
- resourceGroupName,
24726
- fabricName,
24727
- protectionContainerName,
24728
- discoverProtectableItemRequest,
24729
- options
24730
- }, discoverProtectableItemOperationSpec);
24731
- const poller = new coreLro.LroEngine(lro, {
24732
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25311
+ const lro = createLroSpec({
25312
+ sendOperationFn,
25313
+ args: {
25314
+ resourceName,
25315
+ resourceGroupName,
25316
+ fabricName,
25317
+ protectionContainerName,
25318
+ discoverProtectableItemRequest,
25319
+ options
25320
+ },
25321
+ spec: discoverProtectableItemOperationSpec
25322
+ });
25323
+ const poller = yield coreLro.createHttpPoller(lro, {
25324
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24733
25325
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
24734
25326
  });
24735
25327
  yield poller.poll();
@@ -24766,7 +25358,7 @@ class ReplicationProtectionContainersImpl {
24766
25358
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24767
25359
  return this.client.sendOperationRequest(args, spec);
24768
25360
  });
24769
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25361
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24770
25362
  var _a;
24771
25363
  let currentRawResponse = undefined;
24772
25364
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -24785,15 +25377,19 @@ class ReplicationProtectionContainersImpl {
24785
25377
  }
24786
25378
  };
24787
25379
  });
24788
- const lro = new LroImpl(sendOperation, {
24789
- resourceName,
24790
- resourceGroupName,
24791
- fabricName,
24792
- protectionContainerName,
24793
- options
24794
- }, deleteOperationSpec$8);
24795
- const poller = new coreLro.LroEngine(lro, {
24796
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25380
+ const lro = createLroSpec({
25381
+ sendOperationFn,
25382
+ args: {
25383
+ resourceName,
25384
+ resourceGroupName,
25385
+ fabricName,
25386
+ protectionContainerName,
25387
+ options
25388
+ },
25389
+ spec: deleteOperationSpec$8
25390
+ });
25391
+ const poller = yield coreLro.createHttpPoller(lro, {
25392
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24797
25393
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
24798
25394
  });
24799
25395
  yield poller.poll();
@@ -24830,7 +25426,7 @@ class ReplicationProtectionContainersImpl {
24830
25426
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24831
25427
  return this.client.sendOperationRequest(args, spec);
24832
25428
  });
24833
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25429
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
24834
25430
  var _a;
24835
25431
  let currentRawResponse = undefined;
24836
25432
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -24849,16 +25445,20 @@ class ReplicationProtectionContainersImpl {
24849
25445
  }
24850
25446
  };
24851
25447
  });
24852
- const lro = new LroImpl(sendOperation, {
24853
- resourceName,
24854
- resourceGroupName,
24855
- fabricName,
24856
- protectionContainerName,
24857
- switchInput,
24858
- options
24859
- }, switchProtectionOperationSpec);
24860
- const poller = new coreLro.LroEngine(lro, {
24861
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25448
+ const lro = createLroSpec({
25449
+ sendOperationFn,
25450
+ args: {
25451
+ resourceName,
25452
+ resourceGroupName,
25453
+ fabricName,
25454
+ protectionContainerName,
25455
+ switchInput,
25456
+ options
25457
+ },
25458
+ spec: switchProtectionOperationSpec
25459
+ });
25460
+ const poller = yield coreLro.createHttpPoller(lro, {
25461
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
24862
25462
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
24863
25463
  });
24864
25464
  yield poller.poll();
@@ -25332,7 +25932,7 @@ class ReplicationMigrationItemsImpl {
25332
25932
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25333
25933
  return this.client.sendOperationRequest(args, spec);
25334
25934
  });
25335
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25935
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25336
25936
  var _a;
25337
25937
  let currentRawResponse = undefined;
25338
25938
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25351,17 +25951,21 @@ class ReplicationMigrationItemsImpl {
25351
25951
  }
25352
25952
  };
25353
25953
  });
25354
- const lro = new LroImpl(sendOperation, {
25355
- resourceName,
25356
- resourceGroupName,
25357
- fabricName,
25358
- protectionContainerName,
25359
- migrationItemName,
25360
- input,
25361
- options
25362
- }, createOperationSpec$9);
25363
- const poller = new coreLro.LroEngine(lro, {
25364
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25954
+ const lro = createLroSpec({
25955
+ sendOperationFn,
25956
+ args: {
25957
+ resourceName,
25958
+ resourceGroupName,
25959
+ fabricName,
25960
+ protectionContainerName,
25961
+ migrationItemName,
25962
+ input,
25963
+ options
25964
+ },
25965
+ spec: createOperationSpec$9
25966
+ });
25967
+ const poller = yield coreLro.createHttpPoller(lro, {
25968
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25365
25969
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25366
25970
  });
25367
25971
  yield poller.poll();
@@ -25400,7 +26004,7 @@ class ReplicationMigrationItemsImpl {
25400
26004
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25401
26005
  return this.client.sendOperationRequest(args, spec);
25402
26006
  });
25403
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26007
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25404
26008
  var _a;
25405
26009
  let currentRawResponse = undefined;
25406
26010
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25419,16 +26023,20 @@ class ReplicationMigrationItemsImpl {
25419
26023
  }
25420
26024
  };
25421
26025
  });
25422
- const lro = new LroImpl(sendOperation, {
25423
- resourceName,
25424
- resourceGroupName,
25425
- fabricName,
25426
- protectionContainerName,
25427
- migrationItemName,
25428
- options
25429
- }, deleteOperationSpec$7);
25430
- const poller = new coreLro.LroEngine(lro, {
25431
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26026
+ const lro = createLroSpec({
26027
+ sendOperationFn,
26028
+ args: {
26029
+ resourceName,
26030
+ resourceGroupName,
26031
+ fabricName,
26032
+ protectionContainerName,
26033
+ migrationItemName,
26034
+ options
26035
+ },
26036
+ spec: deleteOperationSpec$7
26037
+ });
26038
+ const poller = yield coreLro.createHttpPoller(lro, {
26039
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25432
26040
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25433
26041
  });
25434
26042
  yield poller.poll();
@@ -25467,7 +26075,7 @@ class ReplicationMigrationItemsImpl {
25467
26075
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25468
26076
  return this.client.sendOperationRequest(args, spec);
25469
26077
  });
25470
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26078
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25471
26079
  var _a;
25472
26080
  let currentRawResponse = undefined;
25473
26081
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25486,17 +26094,21 @@ class ReplicationMigrationItemsImpl {
25486
26094
  }
25487
26095
  };
25488
26096
  });
25489
- const lro = new LroImpl(sendOperation, {
25490
- resourceName,
25491
- resourceGroupName,
25492
- fabricName,
25493
- protectionContainerName,
25494
- migrationItemName,
25495
- input,
25496
- options
25497
- }, updateOperationSpec$5);
25498
- const poller = new coreLro.LroEngine(lro, {
25499
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26097
+ const lro = createLroSpec({
26098
+ sendOperationFn,
26099
+ args: {
26100
+ resourceName,
26101
+ resourceGroupName,
26102
+ fabricName,
26103
+ protectionContainerName,
26104
+ migrationItemName,
26105
+ input,
26106
+ options
26107
+ },
26108
+ spec: updateOperationSpec$5
26109
+ });
26110
+ const poller = yield coreLro.createHttpPoller(lro, {
26111
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25500
26112
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25501
26113
  });
25502
26114
  yield poller.poll();
@@ -25536,7 +26148,7 @@ class ReplicationMigrationItemsImpl {
25536
26148
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25537
26149
  return this.client.sendOperationRequest(args, spec);
25538
26150
  });
25539
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26151
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25540
26152
  var _a;
25541
26153
  let currentRawResponse = undefined;
25542
26154
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25555,17 +26167,21 @@ class ReplicationMigrationItemsImpl {
25555
26167
  }
25556
26168
  };
25557
26169
  });
25558
- const lro = new LroImpl(sendOperation, {
25559
- resourceName,
25560
- resourceGroupName,
25561
- fabricName,
25562
- protectionContainerName,
25563
- migrationItemName,
25564
- migrateInput,
25565
- options
25566
- }, migrateOperationSpec);
25567
- const poller = new coreLro.LroEngine(lro, {
25568
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26170
+ const lro = createLroSpec({
26171
+ sendOperationFn,
26172
+ args: {
26173
+ resourceName,
26174
+ resourceGroupName,
26175
+ fabricName,
26176
+ protectionContainerName,
26177
+ migrationItemName,
26178
+ migrateInput,
26179
+ options
26180
+ },
26181
+ spec: migrateOperationSpec
26182
+ });
26183
+ const poller = yield coreLro.createHttpPoller(lro, {
26184
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25569
26185
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25570
26186
  });
25571
26187
  yield poller.poll();
@@ -25605,7 +26221,7 @@ class ReplicationMigrationItemsImpl {
25605
26221
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25606
26222
  return this.client.sendOperationRequest(args, spec);
25607
26223
  });
25608
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26224
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25609
26225
  var _a;
25610
26226
  let currentRawResponse = undefined;
25611
26227
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25624,17 +26240,21 @@ class ReplicationMigrationItemsImpl {
25624
26240
  }
25625
26241
  };
25626
26242
  });
25627
- const lro = new LroImpl(sendOperation, {
25628
- resourceName,
25629
- resourceGroupName,
25630
- fabricName,
25631
- protectionContainerName,
25632
- migrationItemName,
25633
- pauseReplicationInput,
25634
- options
25635
- }, pauseReplicationOperationSpec);
25636
- const poller = new coreLro.LroEngine(lro, {
25637
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26243
+ const lro = createLroSpec({
26244
+ sendOperationFn,
26245
+ args: {
26246
+ resourceName,
26247
+ resourceGroupName,
26248
+ fabricName,
26249
+ protectionContainerName,
26250
+ migrationItemName,
26251
+ pauseReplicationInput,
26252
+ options
26253
+ },
26254
+ spec: pauseReplicationOperationSpec
26255
+ });
26256
+ const poller = yield coreLro.createHttpPoller(lro, {
26257
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25638
26258
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25639
26259
  });
25640
26260
  yield poller.poll();
@@ -25674,7 +26294,7 @@ class ReplicationMigrationItemsImpl {
25674
26294
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25675
26295
  return this.client.sendOperationRequest(args, spec);
25676
26296
  });
25677
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26297
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25678
26298
  var _a;
25679
26299
  let currentRawResponse = undefined;
25680
26300
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25693,17 +26313,21 @@ class ReplicationMigrationItemsImpl {
25693
26313
  }
25694
26314
  };
25695
26315
  });
25696
- const lro = new LroImpl(sendOperation, {
25697
- resourceName,
25698
- resourceGroupName,
25699
- fabricName,
25700
- protectionContainerName,
25701
- migrationItemName,
25702
- resumeReplicationInput,
25703
- options
25704
- }, resumeReplicationOperationSpec);
25705
- const poller = new coreLro.LroEngine(lro, {
25706
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26316
+ const lro = createLroSpec({
26317
+ sendOperationFn,
26318
+ args: {
26319
+ resourceName,
26320
+ resourceGroupName,
26321
+ fabricName,
26322
+ protectionContainerName,
26323
+ migrationItemName,
26324
+ resumeReplicationInput,
26325
+ options
26326
+ },
26327
+ spec: resumeReplicationOperationSpec
26328
+ });
26329
+ const poller = yield coreLro.createHttpPoller(lro, {
26330
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25707
26331
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25708
26332
  });
25709
26333
  yield poller.poll();
@@ -25743,7 +26367,7 @@ class ReplicationMigrationItemsImpl {
25743
26367
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25744
26368
  return this.client.sendOperationRequest(args, spec);
25745
26369
  });
25746
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26370
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25747
26371
  var _a;
25748
26372
  let currentRawResponse = undefined;
25749
26373
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25762,17 +26386,21 @@ class ReplicationMigrationItemsImpl {
25762
26386
  }
25763
26387
  };
25764
26388
  });
25765
- const lro = new LroImpl(sendOperation, {
25766
- resourceName,
25767
- resourceGroupName,
25768
- fabricName,
25769
- protectionContainerName,
25770
- migrationItemName,
25771
- input,
25772
- options
25773
- }, resyncOperationSpec);
25774
- const poller = new coreLro.LroEngine(lro, {
25775
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26389
+ const lro = createLroSpec({
26390
+ sendOperationFn,
26391
+ args: {
26392
+ resourceName,
26393
+ resourceGroupName,
26394
+ fabricName,
26395
+ protectionContainerName,
26396
+ migrationItemName,
26397
+ input,
26398
+ options
26399
+ },
26400
+ spec: resyncOperationSpec
26401
+ });
26402
+ const poller = yield coreLro.createHttpPoller(lro, {
26403
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25776
26404
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25777
26405
  });
25778
26406
  yield poller.poll();
@@ -25812,7 +26440,7 @@ class ReplicationMigrationItemsImpl {
25812
26440
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25813
26441
  return this.client.sendOperationRequest(args, spec);
25814
26442
  });
25815
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26443
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25816
26444
  var _a;
25817
26445
  let currentRawResponse = undefined;
25818
26446
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25831,17 +26459,21 @@ class ReplicationMigrationItemsImpl {
25831
26459
  }
25832
26460
  };
25833
26461
  });
25834
- const lro = new LroImpl(sendOperation, {
25835
- resourceName,
25836
- resourceGroupName,
25837
- fabricName,
25838
- protectionContainerName,
25839
- migrationItemName,
25840
- testMigrateInput,
25841
- options
25842
- }, testMigrateOperationSpec);
25843
- const poller = new coreLro.LroEngine(lro, {
25844
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26462
+ const lro = createLroSpec({
26463
+ sendOperationFn,
26464
+ args: {
26465
+ resourceName,
26466
+ resourceGroupName,
26467
+ fabricName,
26468
+ protectionContainerName,
26469
+ migrationItemName,
26470
+ testMigrateInput,
26471
+ options
26472
+ },
26473
+ spec: testMigrateOperationSpec
26474
+ });
26475
+ const poller = yield coreLro.createHttpPoller(lro, {
26476
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25845
26477
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25846
26478
  });
25847
26479
  yield poller.poll();
@@ -25881,7 +26513,7 @@ class ReplicationMigrationItemsImpl {
25881
26513
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25882
26514
  return this.client.sendOperationRequest(args, spec);
25883
26515
  });
25884
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26516
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
25885
26517
  var _a;
25886
26518
  let currentRawResponse = undefined;
25887
26519
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -25900,17 +26532,21 @@ class ReplicationMigrationItemsImpl {
25900
26532
  }
25901
26533
  };
25902
26534
  });
25903
- const lro = new LroImpl(sendOperation, {
25904
- resourceName,
25905
- resourceGroupName,
25906
- fabricName,
25907
- protectionContainerName,
25908
- migrationItemName,
25909
- testMigrateCleanupInput,
25910
- options
25911
- }, testMigrateCleanupOperationSpec);
25912
- const poller = new coreLro.LroEngine(lro, {
25913
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26535
+ const lro = createLroSpec({
26536
+ sendOperationFn,
26537
+ args: {
26538
+ resourceName,
26539
+ resourceGroupName,
26540
+ fabricName,
26541
+ protectionContainerName,
26542
+ migrationItemName,
26543
+ testMigrateCleanupInput,
26544
+ options
26545
+ },
26546
+ spec: testMigrateCleanupOperationSpec
26547
+ });
26548
+ const poller = yield coreLro.createHttpPoller(lro, {
26549
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25914
26550
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
25915
26551
  });
25916
26552
  yield poller.poll();
@@ -27009,7 +27645,7 @@ class ReplicationProtectedItemsImpl {
27009
27645
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27010
27646
  return this.client.sendOperationRequest(args, spec);
27011
27647
  });
27012
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27648
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27013
27649
  var _a;
27014
27650
  let currentRawResponse = undefined;
27015
27651
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27028,17 +27664,21 @@ class ReplicationProtectedItemsImpl {
27028
27664
  }
27029
27665
  };
27030
27666
  });
27031
- const lro = new LroImpl(sendOperation, {
27032
- resourceName,
27033
- resourceGroupName,
27034
- fabricName,
27035
- protectionContainerName,
27036
- replicatedProtectedItemName,
27037
- input,
27038
- options
27039
- }, createOperationSpec$8);
27040
- const poller = new coreLro.LroEngine(lro, {
27041
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27667
+ const lro = createLroSpec({
27668
+ sendOperationFn,
27669
+ args: {
27670
+ resourceName,
27671
+ resourceGroupName,
27672
+ fabricName,
27673
+ protectionContainerName,
27674
+ replicatedProtectedItemName,
27675
+ input,
27676
+ options
27677
+ },
27678
+ spec: createOperationSpec$8
27679
+ });
27680
+ const poller = yield coreLro.createHttpPoller(lro, {
27681
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27042
27682
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27043
27683
  });
27044
27684
  yield poller.poll();
@@ -27079,7 +27719,7 @@ class ReplicationProtectedItemsImpl {
27079
27719
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27080
27720
  return this.client.sendOperationRequest(args, spec);
27081
27721
  });
27082
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27722
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27083
27723
  var _a;
27084
27724
  let currentRawResponse = undefined;
27085
27725
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27098,16 +27738,20 @@ class ReplicationProtectedItemsImpl {
27098
27738
  }
27099
27739
  };
27100
27740
  });
27101
- const lro = new LroImpl(sendOperation, {
27102
- resourceName,
27103
- resourceGroupName,
27104
- fabricName,
27105
- protectionContainerName,
27106
- replicatedProtectedItemName,
27107
- options
27108
- }, purgeOperationSpec$2);
27109
- const poller = new coreLro.LroEngine(lro, {
27110
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27741
+ const lro = createLroSpec({
27742
+ sendOperationFn,
27743
+ args: {
27744
+ resourceName,
27745
+ resourceGroupName,
27746
+ fabricName,
27747
+ protectionContainerName,
27748
+ replicatedProtectedItemName,
27749
+ options
27750
+ },
27751
+ spec: purgeOperationSpec$2
27752
+ });
27753
+ const poller = yield coreLro.createHttpPoller(lro, {
27754
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27111
27755
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27112
27756
  });
27113
27757
  yield poller.poll();
@@ -27148,7 +27792,7 @@ class ReplicationProtectedItemsImpl {
27148
27792
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27149
27793
  return this.client.sendOperationRequest(args, spec);
27150
27794
  });
27151
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27795
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27152
27796
  var _a;
27153
27797
  let currentRawResponse = undefined;
27154
27798
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27167,17 +27811,21 @@ class ReplicationProtectedItemsImpl {
27167
27811
  }
27168
27812
  };
27169
27813
  });
27170
- const lro = new LroImpl(sendOperation, {
27171
- resourceName,
27172
- resourceGroupName,
27173
- fabricName,
27174
- protectionContainerName,
27175
- replicatedProtectedItemName,
27176
- updateProtectionInput,
27177
- options
27178
- }, updateOperationSpec$4);
27179
- const poller = new coreLro.LroEngine(lro, {
27180
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27814
+ const lro = createLroSpec({
27815
+ sendOperationFn,
27816
+ args: {
27817
+ resourceName,
27818
+ resourceGroupName,
27819
+ fabricName,
27820
+ protectionContainerName,
27821
+ replicatedProtectedItemName,
27822
+ updateProtectionInput,
27823
+ options
27824
+ },
27825
+ spec: updateOperationSpec$4
27826
+ });
27827
+ const poller = yield coreLro.createHttpPoller(lro, {
27828
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27181
27829
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27182
27830
  });
27183
27831
  yield poller.poll();
@@ -27217,7 +27865,7 @@ class ReplicationProtectedItemsImpl {
27217
27865
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27218
27866
  return this.client.sendOperationRequest(args, spec);
27219
27867
  });
27220
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27868
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27221
27869
  var _a;
27222
27870
  let currentRawResponse = undefined;
27223
27871
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27236,17 +27884,21 @@ class ReplicationProtectedItemsImpl {
27236
27884
  }
27237
27885
  };
27238
27886
  });
27239
- const lro = new LroImpl(sendOperation, {
27240
- resourceName,
27241
- resourceGroupName,
27242
- fabricName,
27243
- protectionContainerName,
27244
- replicatedProtectedItemName,
27245
- addDisksInput,
27246
- options
27247
- }, addDisksOperationSpec);
27248
- const poller = new coreLro.LroEngine(lro, {
27249
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27887
+ const lro = createLroSpec({
27888
+ sendOperationFn,
27889
+ args: {
27890
+ resourceName,
27891
+ resourceGroupName,
27892
+ fabricName,
27893
+ protectionContainerName,
27894
+ replicatedProtectedItemName,
27895
+ addDisksInput,
27896
+ options
27897
+ },
27898
+ spec: addDisksOperationSpec
27899
+ });
27900
+ const poller = yield coreLro.createHttpPoller(lro, {
27901
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27250
27902
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27251
27903
  });
27252
27904
  yield poller.poll();
@@ -27286,7 +27938,7 @@ class ReplicationProtectedItemsImpl {
27286
27938
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27287
27939
  return this.client.sendOperationRequest(args, spec);
27288
27940
  });
27289
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27941
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27290
27942
  var _a;
27291
27943
  let currentRawResponse = undefined;
27292
27944
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27305,17 +27957,21 @@ class ReplicationProtectedItemsImpl {
27305
27957
  }
27306
27958
  };
27307
27959
  });
27308
- const lro = new LroImpl(sendOperation, {
27309
- resourceName,
27310
- resourceGroupName,
27311
- fabricName,
27312
- protectionContainerName,
27313
- replicatedProtectedItemName,
27314
- applyRecoveryPointInput,
27315
- options
27316
- }, applyRecoveryPointOperationSpec);
27317
- const poller = new coreLro.LroEngine(lro, {
27318
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27960
+ const lro = createLroSpec({
27961
+ sendOperationFn,
27962
+ args: {
27963
+ resourceName,
27964
+ resourceGroupName,
27965
+ fabricName,
27966
+ protectionContainerName,
27967
+ replicatedProtectedItemName,
27968
+ applyRecoveryPointInput,
27969
+ options
27970
+ },
27971
+ spec: applyRecoveryPointOperationSpec
27972
+ });
27973
+ const poller = yield coreLro.createHttpPoller(lro, {
27974
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27319
27975
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27320
27976
  });
27321
27977
  yield poller.poll();
@@ -27354,7 +28010,7 @@ class ReplicationProtectedItemsImpl {
27354
28010
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27355
28011
  return this.client.sendOperationRequest(args, spec);
27356
28012
  });
27357
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28013
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27358
28014
  var _a;
27359
28015
  let currentRawResponse = undefined;
27360
28016
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27373,16 +28029,20 @@ class ReplicationProtectedItemsImpl {
27373
28029
  }
27374
28030
  };
27375
28031
  });
27376
- const lro = new LroImpl(sendOperation, {
27377
- resourceName,
27378
- resourceGroupName,
27379
- fabricName,
27380
- protectionContainerName,
27381
- replicatedProtectedItemName,
27382
- options
27383
- }, failoverCancelOperationSpec$1);
27384
- const poller = new coreLro.LroEngine(lro, {
27385
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28032
+ const lro = createLroSpec({
28033
+ sendOperationFn,
28034
+ args: {
28035
+ resourceName,
28036
+ resourceGroupName,
28037
+ fabricName,
28038
+ protectionContainerName,
28039
+ replicatedProtectedItemName,
28040
+ options
28041
+ },
28042
+ spec: failoverCancelOperationSpec$1
28043
+ });
28044
+ const poller = yield coreLro.createHttpPoller(lro, {
28045
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27386
28046
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27387
28047
  });
27388
28048
  yield poller.poll();
@@ -27420,7 +28080,7 @@ class ReplicationProtectedItemsImpl {
27420
28080
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27421
28081
  return this.client.sendOperationRequest(args, spec);
27422
28082
  });
27423
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28083
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27424
28084
  var _a;
27425
28085
  let currentRawResponse = undefined;
27426
28086
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27439,16 +28099,20 @@ class ReplicationProtectedItemsImpl {
27439
28099
  }
27440
28100
  };
27441
28101
  });
27442
- const lro = new LroImpl(sendOperation, {
27443
- resourceName,
27444
- resourceGroupName,
27445
- fabricName,
27446
- protectionContainerName,
27447
- replicatedProtectedItemName,
27448
- options
27449
- }, failoverCommitOperationSpec$1);
27450
- const poller = new coreLro.LroEngine(lro, {
27451
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28102
+ const lro = createLroSpec({
28103
+ sendOperationFn,
28104
+ args: {
28105
+ resourceName,
28106
+ resourceGroupName,
28107
+ fabricName,
28108
+ protectionContainerName,
28109
+ replicatedProtectedItemName,
28110
+ options
28111
+ },
28112
+ spec: failoverCommitOperationSpec$1
28113
+ });
28114
+ const poller = yield coreLro.createHttpPoller(lro, {
28115
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27452
28116
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27453
28117
  });
27454
28118
  yield poller.poll();
@@ -27487,7 +28151,7 @@ class ReplicationProtectedItemsImpl {
27487
28151
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27488
28152
  return this.client.sendOperationRequest(args, spec);
27489
28153
  });
27490
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28154
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27491
28155
  var _a;
27492
28156
  let currentRawResponse = undefined;
27493
28157
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27506,17 +28170,21 @@ class ReplicationProtectedItemsImpl {
27506
28170
  }
27507
28171
  };
27508
28172
  });
27509
- const lro = new LroImpl(sendOperation, {
27510
- resourceName,
27511
- resourceGroupName,
27512
- fabricName,
27513
- protectionContainerName,
27514
- replicatedProtectedItemName,
27515
- failoverInput,
27516
- options
27517
- }, plannedFailoverOperationSpec$1);
27518
- const poller = new coreLro.LroEngine(lro, {
27519
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28173
+ const lro = createLroSpec({
28174
+ sendOperationFn,
28175
+ args: {
28176
+ resourceName,
28177
+ resourceGroupName,
28178
+ fabricName,
28179
+ protectionContainerName,
28180
+ replicatedProtectedItemName,
28181
+ failoverInput,
28182
+ options
28183
+ },
28184
+ spec: plannedFailoverOperationSpec$1
28185
+ });
28186
+ const poller = yield coreLro.createHttpPoller(lro, {
28187
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27520
28188
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27521
28189
  });
27522
28190
  yield poller.poll();
@@ -27557,7 +28225,7 @@ class ReplicationProtectedItemsImpl {
27557
28225
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27558
28226
  return this.client.sendOperationRequest(args, spec);
27559
28227
  });
27560
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28228
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27561
28229
  var _a;
27562
28230
  let currentRawResponse = undefined;
27563
28231
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27576,17 +28244,21 @@ class ReplicationProtectedItemsImpl {
27576
28244
  }
27577
28245
  };
27578
28246
  });
27579
- const lro = new LroImpl(sendOperation, {
27580
- resourceName,
27581
- resourceGroupName,
27582
- fabricName,
27583
- protectionContainerName,
27584
- replicatedProtectedItemName,
27585
- disableProtectionInput,
27586
- options
27587
- }, deleteOperationSpec$6);
27588
- const poller = new coreLro.LroEngine(lro, {
27589
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28247
+ const lro = createLroSpec({
28248
+ sendOperationFn,
28249
+ args: {
28250
+ resourceName,
28251
+ resourceGroupName,
28252
+ fabricName,
28253
+ protectionContainerName,
28254
+ replicatedProtectedItemName,
28255
+ disableProtectionInput,
28256
+ options
28257
+ },
28258
+ spec: deleteOperationSpec$6
28259
+ });
28260
+ const poller = yield coreLro.createHttpPoller(lro, {
28261
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27590
28262
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27591
28263
  });
27592
28264
  yield poller.poll();
@@ -27627,7 +28299,7 @@ class ReplicationProtectedItemsImpl {
27627
28299
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27628
28300
  return this.client.sendOperationRequest(args, spec);
27629
28301
  });
27630
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28302
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27631
28303
  var _a;
27632
28304
  let currentRawResponse = undefined;
27633
28305
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27646,17 +28318,21 @@ class ReplicationProtectedItemsImpl {
27646
28318
  }
27647
28319
  };
27648
28320
  });
27649
- const lro = new LroImpl(sendOperation, {
27650
- resourceName,
27651
- resourceGroupName,
27652
- fabricName,
27653
- protectionContainerName,
27654
- replicatedProtectedItemName,
27655
- removeDisksInput,
27656
- options
27657
- }, removeDisksOperationSpec);
27658
- const poller = new coreLro.LroEngine(lro, {
27659
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28321
+ const lro = createLroSpec({
28322
+ sendOperationFn,
28323
+ args: {
28324
+ resourceName,
28325
+ resourceGroupName,
28326
+ fabricName,
28327
+ protectionContainerName,
28328
+ replicatedProtectedItemName,
28329
+ removeDisksInput,
28330
+ options
28331
+ },
28332
+ spec: removeDisksOperationSpec
28333
+ });
28334
+ const poller = yield coreLro.createHttpPoller(lro, {
28335
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27660
28336
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27661
28337
  });
27662
28338
  yield poller.poll();
@@ -27696,7 +28372,7 @@ class ReplicationProtectedItemsImpl {
27696
28372
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27697
28373
  return this.client.sendOperationRequest(args, spec);
27698
28374
  });
27699
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28375
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27700
28376
  var _a;
27701
28377
  let currentRawResponse = undefined;
27702
28378
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27715,16 +28391,20 @@ class ReplicationProtectedItemsImpl {
27715
28391
  }
27716
28392
  };
27717
28393
  });
27718
- const lro = new LroImpl(sendOperation, {
27719
- resourceName,
27720
- resourceGroupName,
27721
- fabricName,
27722
- protectionContainerName,
27723
- replicatedProtectedItemName,
27724
- options
27725
- }, repairReplicationOperationSpec);
27726
- const poller = new coreLro.LroEngine(lro, {
27727
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28394
+ const lro = createLroSpec({
28395
+ sendOperationFn,
28396
+ args: {
28397
+ resourceName,
28398
+ resourceGroupName,
28399
+ fabricName,
28400
+ protectionContainerName,
28401
+ replicatedProtectedItemName,
28402
+ options
28403
+ },
28404
+ spec: repairReplicationOperationSpec
28405
+ });
28406
+ const poller = yield coreLro.createHttpPoller(lro, {
28407
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27728
28408
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27729
28409
  });
27730
28410
  yield poller.poll();
@@ -27764,7 +28444,7 @@ class ReplicationProtectedItemsImpl {
27764
28444
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27765
28445
  return this.client.sendOperationRequest(args, spec);
27766
28446
  });
27767
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28447
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27768
28448
  var _a;
27769
28449
  let currentRawResponse = undefined;
27770
28450
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27783,17 +28463,21 @@ class ReplicationProtectedItemsImpl {
27783
28463
  }
27784
28464
  };
27785
28465
  });
27786
- const lro = new LroImpl(sendOperation, {
27787
- resourceName,
27788
- resourceGroupName,
27789
- fabricName,
27790
- protectionContainerName,
27791
- replicatedProtectedItemName,
27792
- reprotectInput,
27793
- options
27794
- }, reprotectOperationSpec$1);
27795
- const poller = new coreLro.LroEngine(lro, {
27796
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28466
+ const lro = createLroSpec({
28467
+ sendOperationFn,
28468
+ args: {
28469
+ resourceName,
28470
+ resourceGroupName,
28471
+ fabricName,
28472
+ protectionContainerName,
28473
+ replicatedProtectedItemName,
28474
+ reprotectInput,
28475
+ options
28476
+ },
28477
+ spec: reprotectOperationSpec$1
28478
+ });
28479
+ const poller = yield coreLro.createHttpPoller(lro, {
28480
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27797
28481
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27798
28482
  });
27799
28483
  yield poller.poll();
@@ -27833,7 +28517,7 @@ class ReplicationProtectedItemsImpl {
27833
28517
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27834
28518
  return this.client.sendOperationRequest(args, spec);
27835
28519
  });
27836
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28520
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27837
28521
  var _a;
27838
28522
  let currentRawResponse = undefined;
27839
28523
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27852,17 +28536,21 @@ class ReplicationProtectedItemsImpl {
27852
28536
  }
27853
28537
  };
27854
28538
  });
27855
- const lro = new LroImpl(sendOperation, {
27856
- resourceName,
27857
- resourceGroupName,
27858
- fabricName,
27859
- protectionContainerName,
27860
- replicatedProtectedItemName,
27861
- resolveHealthInput,
27862
- options
27863
- }, resolveHealthErrorsOperationSpec);
27864
- const poller = new coreLro.LroEngine(lro, {
27865
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28539
+ const lro = createLroSpec({
28540
+ sendOperationFn,
28541
+ args: {
28542
+ resourceName,
28543
+ resourceGroupName,
28544
+ fabricName,
28545
+ protectionContainerName,
28546
+ replicatedProtectedItemName,
28547
+ resolveHealthInput,
28548
+ options
28549
+ },
28550
+ spec: resolveHealthErrorsOperationSpec
28551
+ });
28552
+ const poller = yield coreLro.createHttpPoller(lro, {
28553
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27866
28554
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
27867
28555
  });
27868
28556
  yield poller.poll();
@@ -27902,7 +28590,7 @@ class ReplicationProtectedItemsImpl {
27902
28590
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27903
28591
  return this.client.sendOperationRequest(args, spec);
27904
28592
  });
27905
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28593
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27906
28594
  var _a;
27907
28595
  let currentRawResponse = undefined;
27908
28596
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27921,19 +28609,23 @@ class ReplicationProtectedItemsImpl {
27921
28609
  }
27922
28610
  };
27923
28611
  });
27924
- const lro = new LroImpl(sendOperation, {
27925
- resourceName,
27926
- resourceGroupName,
27927
- fabricName,
27928
- protectionContainerName,
27929
- replicatedProtectedItemName,
27930
- switchProviderInput,
27931
- options
27932
- }, switchProviderOperationSpec);
27933
- const poller = new coreLro.LroEngine(lro, {
27934
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28612
+ const lro = createLroSpec({
28613
+ sendOperationFn,
28614
+ args: {
28615
+ resourceName,
28616
+ resourceGroupName,
28617
+ fabricName,
28618
+ protectionContainerName,
28619
+ replicatedProtectedItemName,
28620
+ switchProviderInput,
28621
+ options
28622
+ },
28623
+ spec: switchProviderOperationSpec
28624
+ });
28625
+ const poller = yield coreLro.createHttpPoller(lro, {
28626
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
27935
28627
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
27936
- lroResourceLocationConfig: "azure-async-operation"
28628
+ resourceLocationConfig: "azure-async-operation"
27937
28629
  });
27938
28630
  yield poller.poll();
27939
28631
  return poller;
@@ -27972,7 +28664,7 @@ class ReplicationProtectedItemsImpl {
27972
28664
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27973
28665
  return this.client.sendOperationRequest(args, spec);
27974
28666
  });
27975
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28667
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
27976
28668
  var _a;
27977
28669
  let currentRawResponse = undefined;
27978
28670
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -27991,17 +28683,21 @@ class ReplicationProtectedItemsImpl {
27991
28683
  }
27992
28684
  };
27993
28685
  });
27994
- const lro = new LroImpl(sendOperation, {
27995
- resourceName,
27996
- resourceGroupName,
27997
- fabricName,
27998
- protectionContainerName,
27999
- replicatedProtectedItemName,
28000
- testfailoverInput,
28001
- options
28002
- }, testFailoverOperationSpec$1);
28003
- const poller = new coreLro.LroEngine(lro, {
28004
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28686
+ const lro = createLroSpec({
28687
+ sendOperationFn,
28688
+ args: {
28689
+ resourceName,
28690
+ resourceGroupName,
28691
+ fabricName,
28692
+ protectionContainerName,
28693
+ replicatedProtectedItemName,
28694
+ testfailoverInput,
28695
+ options
28696
+ },
28697
+ spec: testFailoverOperationSpec$1
28698
+ });
28699
+ const poller = yield coreLro.createHttpPoller(lro, {
28700
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28005
28701
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
28006
28702
  });
28007
28703
  yield poller.poll();
@@ -28041,7 +28737,7 @@ class ReplicationProtectedItemsImpl {
28041
28737
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28042
28738
  return this.client.sendOperationRequest(args, spec);
28043
28739
  });
28044
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28740
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28045
28741
  var _a;
28046
28742
  let currentRawResponse = undefined;
28047
28743
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -28060,17 +28756,21 @@ class ReplicationProtectedItemsImpl {
28060
28756
  }
28061
28757
  };
28062
28758
  });
28063
- const lro = new LroImpl(sendOperation, {
28064
- resourceName,
28065
- resourceGroupName,
28066
- fabricName,
28067
- protectionContainerName,
28068
- replicatedProtectedItemName,
28069
- cleanupInput,
28070
- options
28071
- }, testFailoverCleanupOperationSpec$1);
28072
- const poller = new coreLro.LroEngine(lro, {
28073
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28759
+ const lro = createLroSpec({
28760
+ sendOperationFn,
28761
+ args: {
28762
+ resourceName,
28763
+ resourceGroupName,
28764
+ fabricName,
28765
+ protectionContainerName,
28766
+ replicatedProtectedItemName,
28767
+ cleanupInput,
28768
+ options
28769
+ },
28770
+ spec: testFailoverCleanupOperationSpec$1
28771
+ });
28772
+ const poller = yield coreLro.createHttpPoller(lro, {
28773
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28074
28774
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
28075
28775
  });
28076
28776
  yield poller.poll();
@@ -28110,7 +28810,7 @@ class ReplicationProtectedItemsImpl {
28110
28810
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28111
28811
  return this.client.sendOperationRequest(args, spec);
28112
28812
  });
28113
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28813
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28114
28814
  var _a;
28115
28815
  let currentRawResponse = undefined;
28116
28816
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -28129,17 +28829,21 @@ class ReplicationProtectedItemsImpl {
28129
28829
  }
28130
28830
  };
28131
28831
  });
28132
- const lro = new LroImpl(sendOperation, {
28133
- resourceName,
28134
- resourceGroupName,
28135
- fabricName,
28136
- protectionContainerName,
28137
- replicatedProtectedItemName,
28138
- failoverInput,
28139
- options
28140
- }, unplannedFailoverOperationSpec$1);
28141
- const poller = new coreLro.LroEngine(lro, {
28142
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28832
+ const lro = createLroSpec({
28833
+ sendOperationFn,
28834
+ args: {
28835
+ resourceName,
28836
+ resourceGroupName,
28837
+ fabricName,
28838
+ protectionContainerName,
28839
+ replicatedProtectedItemName,
28840
+ failoverInput,
28841
+ options
28842
+ },
28843
+ spec: unplannedFailoverOperationSpec$1
28844
+ });
28845
+ const poller = yield coreLro.createHttpPoller(lro, {
28846
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28143
28847
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
28144
28848
  });
28145
28849
  yield poller.poll();
@@ -28179,7 +28883,7 @@ class ReplicationProtectedItemsImpl {
28179
28883
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28180
28884
  return this.client.sendOperationRequest(args, spec);
28181
28885
  });
28182
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28886
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28183
28887
  var _a;
28184
28888
  let currentRawResponse = undefined;
28185
28889
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -28198,17 +28902,21 @@ class ReplicationProtectedItemsImpl {
28198
28902
  }
28199
28903
  };
28200
28904
  });
28201
- const lro = new LroImpl(sendOperation, {
28202
- resourceName,
28203
- resourceGroupName,
28204
- fabricName,
28205
- protectionContainerName,
28206
- replicatedProtectedItemName,
28207
- applianceUpdateInput,
28208
- options
28209
- }, updateApplianceOperationSpec);
28210
- const poller = new coreLro.LroEngine(lro, {
28211
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28905
+ const lro = createLroSpec({
28906
+ sendOperationFn,
28907
+ args: {
28908
+ resourceName,
28909
+ resourceGroupName,
28910
+ fabricName,
28911
+ protectionContainerName,
28912
+ replicatedProtectedItemName,
28913
+ applianceUpdateInput,
28914
+ options
28915
+ },
28916
+ spec: updateApplianceOperationSpec
28917
+ });
28918
+ const poller = yield coreLro.createHttpPoller(lro, {
28919
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28212
28920
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
28213
28921
  });
28214
28922
  yield poller.poll();
@@ -28250,7 +28958,7 @@ class ReplicationProtectedItemsImpl {
28250
28958
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28251
28959
  return this.client.sendOperationRequest(args, spec);
28252
28960
  });
28253
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28961
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
28254
28962
  var _a;
28255
28963
  let currentRawResponse = undefined;
28256
28964
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -28269,19 +28977,23 @@ class ReplicationProtectedItemsImpl {
28269
28977
  }
28270
28978
  };
28271
28979
  });
28272
- const lro = new LroImpl(sendOperation, {
28273
- resourceName,
28274
- resourceGroupName,
28275
- fabricName,
28276
- protectionContainerName,
28277
- replicatedProtectedItemName,
28278
- updateMobilityServiceRequest,
28279
- options
28280
- }, updateMobilityServiceOperationSpec);
28281
- const poller = new coreLro.LroEngine(lro, {
28282
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28980
+ const lro = createLroSpec({
28981
+ sendOperationFn,
28982
+ args: {
28983
+ resourceName,
28984
+ resourceGroupName,
28985
+ fabricName,
28986
+ protectionContainerName,
28987
+ replicatedProtectedItemName,
28988
+ updateMobilityServiceRequest,
28989
+ options
28990
+ },
28991
+ spec: updateMobilityServiceOperationSpec
28992
+ });
28993
+ const poller = yield coreLro.createHttpPoller(lro, {
28994
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
28283
28995
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
28284
- lroResourceLocationConfig: "location"
28996
+ resourceLocationConfig: "location"
28285
28997
  });
28286
28998
  yield poller.poll();
28287
28999
  return poller;
@@ -29637,7 +30349,7 @@ class ReplicationProtectionContainerMappingsImpl {
29637
30349
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29638
30350
  return this.client.sendOperationRequest(args, spec);
29639
30351
  });
29640
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30352
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29641
30353
  var _a;
29642
30354
  let currentRawResponse = undefined;
29643
30355
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -29656,17 +30368,21 @@ class ReplicationProtectionContainerMappingsImpl {
29656
30368
  }
29657
30369
  };
29658
30370
  });
29659
- const lro = new LroImpl(sendOperation, {
29660
- resourceName,
29661
- resourceGroupName,
29662
- fabricName,
29663
- protectionContainerName,
29664
- mappingName,
29665
- creationInput,
29666
- options
29667
- }, createOperationSpec$7);
29668
- const poller = new coreLro.LroEngine(lro, {
29669
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30371
+ const lro = createLroSpec({
30372
+ sendOperationFn,
30373
+ args: {
30374
+ resourceName,
30375
+ resourceGroupName,
30376
+ fabricName,
30377
+ protectionContainerName,
30378
+ mappingName,
30379
+ creationInput,
30380
+ options
30381
+ },
30382
+ spec: createOperationSpec$7
30383
+ });
30384
+ const poller = yield coreLro.createHttpPoller(lro, {
30385
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
29670
30386
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
29671
30387
  });
29672
30388
  yield poller.poll();
@@ -29705,7 +30421,7 @@ class ReplicationProtectionContainerMappingsImpl {
29705
30421
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29706
30422
  return this.client.sendOperationRequest(args, spec);
29707
30423
  });
29708
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30424
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29709
30425
  var _a;
29710
30426
  let currentRawResponse = undefined;
29711
30427
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -29724,16 +30440,20 @@ class ReplicationProtectionContainerMappingsImpl {
29724
30440
  }
29725
30441
  };
29726
30442
  });
29727
- const lro = new LroImpl(sendOperation, {
29728
- resourceName,
29729
- resourceGroupName,
29730
- fabricName,
29731
- protectionContainerName,
29732
- mappingName,
29733
- options
29734
- }, purgeOperationSpec$1);
29735
- const poller = new coreLro.LroEngine(lro, {
29736
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30443
+ const lro = createLroSpec({
30444
+ sendOperationFn,
30445
+ args: {
30446
+ resourceName,
30447
+ resourceGroupName,
30448
+ fabricName,
30449
+ protectionContainerName,
30450
+ mappingName,
30451
+ options
30452
+ },
30453
+ spec: purgeOperationSpec$1
30454
+ });
30455
+ const poller = yield coreLro.createHttpPoller(lro, {
30456
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
29737
30457
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
29738
30458
  });
29739
30459
  yield poller.poll();
@@ -29772,7 +30492,7 @@ class ReplicationProtectionContainerMappingsImpl {
29772
30492
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29773
30493
  return this.client.sendOperationRequest(args, spec);
29774
30494
  });
29775
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30495
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29776
30496
  var _a;
29777
30497
  let currentRawResponse = undefined;
29778
30498
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -29791,17 +30511,21 @@ class ReplicationProtectionContainerMappingsImpl {
29791
30511
  }
29792
30512
  };
29793
30513
  });
29794
- const lro = new LroImpl(sendOperation, {
29795
- resourceName,
29796
- resourceGroupName,
29797
- fabricName,
29798
- protectionContainerName,
29799
- mappingName,
29800
- updateInput,
29801
- options
29802
- }, updateOperationSpec$3);
29803
- const poller = new coreLro.LroEngine(lro, {
29804
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30514
+ const lro = createLroSpec({
30515
+ sendOperationFn,
30516
+ args: {
30517
+ resourceName,
30518
+ resourceGroupName,
30519
+ fabricName,
30520
+ protectionContainerName,
30521
+ mappingName,
30522
+ updateInput,
30523
+ options
30524
+ },
30525
+ spec: updateOperationSpec$3
30526
+ });
30527
+ const poller = yield coreLro.createHttpPoller(lro, {
30528
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
29805
30529
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
29806
30530
  });
29807
30531
  yield poller.poll();
@@ -29841,7 +30565,7 @@ class ReplicationProtectionContainerMappingsImpl {
29841
30565
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29842
30566
  return this.client.sendOperationRequest(args, spec);
29843
30567
  });
29844
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30568
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29845
30569
  var _a;
29846
30570
  let currentRawResponse = undefined;
29847
30571
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -29860,17 +30584,21 @@ class ReplicationProtectionContainerMappingsImpl {
29860
30584
  }
29861
30585
  };
29862
30586
  });
29863
- const lro = new LroImpl(sendOperation, {
29864
- resourceName,
29865
- resourceGroupName,
29866
- fabricName,
29867
- protectionContainerName,
29868
- mappingName,
29869
- removalInput,
29870
- options
29871
- }, deleteOperationSpec$5);
29872
- const poller = new coreLro.LroEngine(lro, {
29873
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30587
+ const lro = createLroSpec({
30588
+ sendOperationFn,
30589
+ args: {
30590
+ resourceName,
30591
+ resourceGroupName,
30592
+ fabricName,
30593
+ protectionContainerName,
30594
+ mappingName,
30595
+ removalInput,
30596
+ options
30597
+ },
30598
+ spec: deleteOperationSpec$5
30599
+ });
30600
+ const poller = yield coreLro.createHttpPoller(lro, {
30601
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
29874
30602
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
29875
30603
  });
29876
30604
  yield poller.poll();
@@ -30330,7 +31058,7 @@ class ReplicationRecoveryServicesProvidersImpl {
30330
31058
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30331
31059
  return this.client.sendOperationRequest(args, spec);
30332
31060
  });
30333
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31061
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30334
31062
  var _a;
30335
31063
  let currentRawResponse = undefined;
30336
31064
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -30349,16 +31077,20 @@ class ReplicationRecoveryServicesProvidersImpl {
30349
31077
  }
30350
31078
  };
30351
31079
  });
30352
- const lro = new LroImpl(sendOperation, {
30353
- resourceName,
30354
- resourceGroupName,
30355
- fabricName,
30356
- providerName,
30357
- addProviderInput,
30358
- options
30359
- }, createOperationSpec$6);
30360
- const poller = new coreLro.LroEngine(lro, {
30361
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31080
+ const lro = createLroSpec({
31081
+ sendOperationFn,
31082
+ args: {
31083
+ resourceName,
31084
+ resourceGroupName,
31085
+ fabricName,
31086
+ providerName,
31087
+ addProviderInput,
31088
+ options
31089
+ },
31090
+ spec: createOperationSpec$6
31091
+ });
31092
+ const poller = yield coreLro.createHttpPoller(lro, {
31093
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30362
31094
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
30363
31095
  });
30364
31096
  yield poller.poll();
@@ -30395,7 +31127,7 @@ class ReplicationRecoveryServicesProvidersImpl {
30395
31127
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30396
31128
  return this.client.sendOperationRequest(args, spec);
30397
31129
  });
30398
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31130
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30399
31131
  var _a;
30400
31132
  let currentRawResponse = undefined;
30401
31133
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -30414,9 +31146,19 @@ class ReplicationRecoveryServicesProvidersImpl {
30414
31146
  }
30415
31147
  };
30416
31148
  });
30417
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, providerName, options }, purgeOperationSpec);
30418
- const poller = new coreLro.LroEngine(lro, {
30419
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31149
+ const lro = createLroSpec({
31150
+ sendOperationFn,
31151
+ args: {
31152
+ resourceName,
31153
+ resourceGroupName,
31154
+ fabricName,
31155
+ providerName,
31156
+ options
31157
+ },
31158
+ spec: purgeOperationSpec
31159
+ });
31160
+ const poller = yield coreLro.createHttpPoller(lro, {
31161
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30420
31162
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
30421
31163
  });
30422
31164
  yield poller.poll();
@@ -30452,7 +31194,7 @@ class ReplicationRecoveryServicesProvidersImpl {
30452
31194
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30453
31195
  return this.client.sendOperationRequest(args, spec);
30454
31196
  });
30455
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31197
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30456
31198
  var _a;
30457
31199
  let currentRawResponse = undefined;
30458
31200
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -30471,9 +31213,19 @@ class ReplicationRecoveryServicesProvidersImpl {
30471
31213
  }
30472
31214
  };
30473
31215
  });
30474
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, providerName, options }, refreshProviderOperationSpec);
30475
- const poller = new coreLro.LroEngine(lro, {
30476
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31216
+ const lro = createLroSpec({
31217
+ sendOperationFn,
31218
+ args: {
31219
+ resourceName,
31220
+ resourceGroupName,
31221
+ fabricName,
31222
+ providerName,
31223
+ options
31224
+ },
31225
+ spec: refreshProviderOperationSpec
31226
+ });
31227
+ const poller = yield coreLro.createHttpPoller(lro, {
31228
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30477
31229
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
30478
31230
  });
30479
31231
  yield poller.poll();
@@ -30509,7 +31261,7 @@ class ReplicationRecoveryServicesProvidersImpl {
30509
31261
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30510
31262
  return this.client.sendOperationRequest(args, spec);
30511
31263
  });
30512
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31264
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
30513
31265
  var _a;
30514
31266
  let currentRawResponse = undefined;
30515
31267
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -30528,9 +31280,19 @@ class ReplicationRecoveryServicesProvidersImpl {
30528
31280
  }
30529
31281
  };
30530
31282
  });
30531
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, providerName, options }, deleteOperationSpec$4);
30532
- const poller = new coreLro.LroEngine(lro, {
30533
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31283
+ const lro = createLroSpec({
31284
+ sendOperationFn,
31285
+ args: {
31286
+ resourceName,
31287
+ resourceGroupName,
31288
+ fabricName,
31289
+ providerName,
31290
+ options
31291
+ },
31292
+ spec: deleteOperationSpec$4
31293
+ });
31294
+ const poller = yield coreLro.createHttpPoller(lro, {
31295
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30534
31296
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
30535
31297
  });
30536
31298
  yield poller.poll();
@@ -31302,7 +32064,7 @@ class ReplicationStorageClassificationMappingsImpl {
31302
32064
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31303
32065
  return this.client.sendOperationRequest(args, spec);
31304
32066
  });
31305
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32067
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31306
32068
  var _a;
31307
32069
  let currentRawResponse = undefined;
31308
32070
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -31321,17 +32083,21 @@ class ReplicationStorageClassificationMappingsImpl {
31321
32083
  }
31322
32084
  };
31323
32085
  });
31324
- const lro = new LroImpl(sendOperation, {
31325
- resourceName,
31326
- resourceGroupName,
31327
- fabricName,
31328
- storageClassificationName,
31329
- storageClassificationMappingName,
31330
- pairingInput,
31331
- options
31332
- }, createOperationSpec$5);
31333
- const poller = new coreLro.LroEngine(lro, {
31334
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32086
+ const lro = createLroSpec({
32087
+ sendOperationFn,
32088
+ args: {
32089
+ resourceName,
32090
+ resourceGroupName,
32091
+ fabricName,
32092
+ storageClassificationName,
32093
+ storageClassificationMappingName,
32094
+ pairingInput,
32095
+ options
32096
+ },
32097
+ spec: createOperationSpec$5
32098
+ });
32099
+ const poller = yield coreLro.createHttpPoller(lro, {
32100
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31335
32101
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
31336
32102
  });
31337
32103
  yield poller.poll();
@@ -31370,7 +32136,7 @@ class ReplicationStorageClassificationMappingsImpl {
31370
32136
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31371
32137
  return this.client.sendOperationRequest(args, spec);
31372
32138
  });
31373
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32139
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31374
32140
  var _a;
31375
32141
  let currentRawResponse = undefined;
31376
32142
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -31389,16 +32155,20 @@ class ReplicationStorageClassificationMappingsImpl {
31389
32155
  }
31390
32156
  };
31391
32157
  });
31392
- const lro = new LroImpl(sendOperation, {
31393
- resourceName,
31394
- resourceGroupName,
31395
- fabricName,
31396
- storageClassificationName,
31397
- storageClassificationMappingName,
31398
- options
31399
- }, deleteOperationSpec$3);
31400
- const poller = new coreLro.LroEngine(lro, {
31401
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32158
+ const lro = createLroSpec({
32159
+ sendOperationFn,
32160
+ args: {
32161
+ resourceName,
32162
+ resourceGroupName,
32163
+ fabricName,
32164
+ storageClassificationName,
32165
+ storageClassificationMappingName,
32166
+ options
32167
+ },
32168
+ spec: deleteOperationSpec$3
32169
+ });
32170
+ const poller = yield coreLro.createHttpPoller(lro, {
32171
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31402
32172
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
31403
32173
  });
31404
32174
  yield poller.poll();
@@ -31806,7 +32576,7 @@ class ReplicationvCentersImpl {
31806
32576
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31807
32577
  return this.client.sendOperationRequest(args, spec);
31808
32578
  });
31809
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32579
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31810
32580
  var _a;
31811
32581
  let currentRawResponse = undefined;
31812
32582
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -31825,16 +32595,20 @@ class ReplicationvCentersImpl {
31825
32595
  }
31826
32596
  };
31827
32597
  });
31828
- const lro = new LroImpl(sendOperation, {
31829
- resourceName,
31830
- resourceGroupName,
31831
- fabricName,
31832
- vcenterName,
31833
- addVCenterRequest,
31834
- options
31835
- }, createOperationSpec$4);
31836
- const poller = new coreLro.LroEngine(lro, {
31837
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32598
+ const lro = createLroSpec({
32599
+ sendOperationFn,
32600
+ args: {
32601
+ resourceName,
32602
+ resourceGroupName,
32603
+ fabricName,
32604
+ vcenterName,
32605
+ addVCenterRequest,
32606
+ options
32607
+ },
32608
+ spec: createOperationSpec$4
32609
+ });
32610
+ const poller = yield coreLro.createHttpPoller(lro, {
32611
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31838
32612
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
31839
32613
  });
31840
32614
  yield poller.poll();
@@ -31871,7 +32645,7 @@ class ReplicationvCentersImpl {
31871
32645
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31872
32646
  return this.client.sendOperationRequest(args, spec);
31873
32647
  });
31874
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32648
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31875
32649
  var _a;
31876
32650
  let currentRawResponse = undefined;
31877
32651
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -31890,9 +32664,19 @@ class ReplicationvCentersImpl {
31890
32664
  }
31891
32665
  };
31892
32666
  });
31893
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, fabricName, vcenterName, options }, deleteOperationSpec$2);
31894
- const poller = new coreLro.LroEngine(lro, {
31895
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32667
+ const lro = createLroSpec({
32668
+ sendOperationFn,
32669
+ args: {
32670
+ resourceName,
32671
+ resourceGroupName,
32672
+ fabricName,
32673
+ vcenterName,
32674
+ options
32675
+ },
32676
+ spec: deleteOperationSpec$2
32677
+ });
32678
+ const poller = yield coreLro.createHttpPoller(lro, {
32679
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31896
32680
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
31897
32681
  });
31898
32682
  yield poller.poll();
@@ -31929,7 +32713,7 @@ class ReplicationvCentersImpl {
31929
32713
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31930
32714
  return this.client.sendOperationRequest(args, spec);
31931
32715
  });
31932
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32716
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31933
32717
  var _a;
31934
32718
  let currentRawResponse = undefined;
31935
32719
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -31948,16 +32732,20 @@ class ReplicationvCentersImpl {
31948
32732
  }
31949
32733
  };
31950
32734
  });
31951
- const lro = new LroImpl(sendOperation, {
31952
- resourceName,
31953
- resourceGroupName,
31954
- fabricName,
31955
- vcenterName,
31956
- updateVCenterRequest,
31957
- options
31958
- }, updateOperationSpec$2);
31959
- const poller = new coreLro.LroEngine(lro, {
31960
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32735
+ const lro = createLroSpec({
32736
+ sendOperationFn,
32737
+ args: {
32738
+ resourceName,
32739
+ resourceGroupName,
32740
+ fabricName,
32741
+ vcenterName,
32742
+ updateVCenterRequest,
32743
+ options
32744
+ },
32745
+ spec: updateOperationSpec$2
32746
+ });
32747
+ const poller = yield coreLro.createHttpPoller(lro, {
32748
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31961
32749
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
31962
32750
  });
31963
32751
  yield poller.poll();
@@ -32309,7 +33097,7 @@ class ReplicationJobsImpl {
32309
33097
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32310
33098
  return this.client.sendOperationRequest(args, spec);
32311
33099
  });
32312
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33100
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32313
33101
  var _a;
32314
33102
  let currentRawResponse = undefined;
32315
33103
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -32328,9 +33116,13 @@ class ReplicationJobsImpl {
32328
33116
  }
32329
33117
  };
32330
33118
  });
32331
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, jobName, options }, cancelOperationSpec);
32332
- const poller = new coreLro.LroEngine(lro, {
32333
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33119
+ const lro = createLroSpec({
33120
+ sendOperationFn,
33121
+ args: { resourceName, resourceGroupName, jobName, options },
33122
+ spec: cancelOperationSpec
33123
+ });
33124
+ const poller = yield coreLro.createHttpPoller(lro, {
33125
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32334
33126
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
32335
33127
  });
32336
33128
  yield poller.poll();
@@ -32364,7 +33156,7 @@ class ReplicationJobsImpl {
32364
33156
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32365
33157
  return this.client.sendOperationRequest(args, spec);
32366
33158
  });
32367
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33159
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32368
33160
  var _a;
32369
33161
  let currentRawResponse = undefined;
32370
33162
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -32383,9 +33175,13 @@ class ReplicationJobsImpl {
32383
33175
  }
32384
33176
  };
32385
33177
  });
32386
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, jobName, options }, restartOperationSpec);
32387
- const poller = new coreLro.LroEngine(lro, {
32388
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33178
+ const lro = createLroSpec({
33179
+ sendOperationFn,
33180
+ args: { resourceName, resourceGroupName, jobName, options },
33181
+ spec: restartOperationSpec
33182
+ });
33183
+ const poller = yield coreLro.createHttpPoller(lro, {
33184
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32389
33185
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
32390
33186
  });
32391
33187
  yield poller.poll();
@@ -32420,7 +33216,7 @@ class ReplicationJobsImpl {
32420
33216
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32421
33217
  return this.client.sendOperationRequest(args, spec);
32422
33218
  });
32423
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33219
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32424
33220
  var _a;
32425
33221
  let currentRawResponse = undefined;
32426
33222
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -32439,9 +33235,19 @@ class ReplicationJobsImpl {
32439
33235
  }
32440
33236
  };
32441
33237
  });
32442
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, jobName, resumeJobParams, options }, resumeOperationSpec);
32443
- const poller = new coreLro.LroEngine(lro, {
32444
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33238
+ const lro = createLroSpec({
33239
+ sendOperationFn,
33240
+ args: {
33241
+ resourceName,
33242
+ resourceGroupName,
33243
+ jobName,
33244
+ resumeJobParams,
33245
+ options
33246
+ },
33247
+ spec: resumeOperationSpec
33248
+ });
33249
+ const poller = yield coreLro.createHttpPoller(lro, {
33250
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32445
33251
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
32446
33252
  });
32447
33253
  yield poller.poll();
@@ -32476,7 +33282,7 @@ class ReplicationJobsImpl {
32476
33282
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32477
33283
  return this.client.sendOperationRequest(args, spec);
32478
33284
  });
32479
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33285
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32480
33286
  var _a;
32481
33287
  let currentRawResponse = undefined;
32482
33288
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -32495,9 +33301,13 @@ class ReplicationJobsImpl {
32495
33301
  }
32496
33302
  };
32497
33303
  });
32498
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, jobQueryParameter, options }, exportOperationSpec);
32499
- const poller = new coreLro.LroEngine(lro, {
32500
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33304
+ const lro = createLroSpec({
33305
+ sendOperationFn,
33306
+ args: { resourceName, resourceGroupName, jobQueryParameter, options },
33307
+ spec: exportOperationSpec
33308
+ });
33309
+ const poller = yield coreLro.createHttpPoller(lro, {
33310
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32501
33311
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
32502
33312
  });
32503
33313
  yield poller.poll();
@@ -32824,7 +33634,7 @@ class ReplicationPoliciesImpl {
32824
33634
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32825
33635
  return this.client.sendOperationRequest(args, spec);
32826
33636
  });
32827
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33637
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32828
33638
  var _a;
32829
33639
  let currentRawResponse = undefined;
32830
33640
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -32843,9 +33653,13 @@ class ReplicationPoliciesImpl {
32843
33653
  }
32844
33654
  };
32845
33655
  });
32846
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, policyName, input, options }, createOperationSpec$3);
32847
- const poller = new coreLro.LroEngine(lro, {
32848
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33656
+ const lro = createLroSpec({
33657
+ sendOperationFn,
33658
+ args: { resourceName, resourceGroupName, policyName, input, options },
33659
+ spec: createOperationSpec$3
33660
+ });
33661
+ const poller = yield coreLro.createHttpPoller(lro, {
33662
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32849
33663
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
32850
33664
  });
32851
33665
  yield poller.poll();
@@ -32880,7 +33694,7 @@ class ReplicationPoliciesImpl {
32880
33694
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32881
33695
  return this.client.sendOperationRequest(args, spec);
32882
33696
  });
32883
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33697
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32884
33698
  var _a;
32885
33699
  let currentRawResponse = undefined;
32886
33700
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -32899,9 +33713,13 @@ class ReplicationPoliciesImpl {
32899
33713
  }
32900
33714
  };
32901
33715
  });
32902
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, policyName, options }, deleteOperationSpec$1);
32903
- const poller = new coreLro.LroEngine(lro, {
32904
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33716
+ const lro = createLroSpec({
33717
+ sendOperationFn,
33718
+ args: { resourceName, resourceGroupName, policyName, options },
33719
+ spec: deleteOperationSpec$1
33720
+ });
33721
+ const poller = yield coreLro.createHttpPoller(lro, {
33722
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32905
33723
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
32906
33724
  });
32907
33725
  yield poller.poll();
@@ -32936,7 +33754,7 @@ class ReplicationPoliciesImpl {
32936
33754
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32937
33755
  return this.client.sendOperationRequest(args, spec);
32938
33756
  });
32939
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33757
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32940
33758
  var _a;
32941
33759
  let currentRawResponse = undefined;
32942
33760
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -32955,9 +33773,13 @@ class ReplicationPoliciesImpl {
32955
33773
  }
32956
33774
  };
32957
33775
  });
32958
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, policyName, input, options }, updateOperationSpec$1);
32959
- const poller = new coreLro.LroEngine(lro, {
32960
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33776
+ const lro = createLroSpec({
33777
+ sendOperationFn,
33778
+ args: { resourceName, resourceGroupName, policyName, input, options },
33779
+ spec: updateOperationSpec$1
33780
+ });
33781
+ const poller = yield coreLro.createHttpPoller(lro, {
33782
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32961
33783
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
32962
33784
  });
32963
33785
  yield poller.poll();
@@ -33458,7 +34280,7 @@ class ReplicationRecoveryPlansImpl {
33458
34280
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33459
34281
  return this.client.sendOperationRequest(args, spec);
33460
34282
  });
33461
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34283
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33462
34284
  var _a;
33463
34285
  let currentRawResponse = undefined;
33464
34286
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33477,9 +34299,19 @@ class ReplicationRecoveryPlansImpl {
33477
34299
  }
33478
34300
  };
33479
34301
  });
33480
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, input, options }, createOperationSpec$1);
33481
- const poller = new coreLro.LroEngine(lro, {
33482
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34302
+ const lro = createLroSpec({
34303
+ sendOperationFn,
34304
+ args: {
34305
+ resourceName,
34306
+ resourceGroupName,
34307
+ recoveryPlanName,
34308
+ input,
34309
+ options
34310
+ },
34311
+ spec: createOperationSpec$1
34312
+ });
34313
+ const poller = yield coreLro.createHttpPoller(lro, {
34314
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33483
34315
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33484
34316
  });
33485
34317
  yield poller.poll();
@@ -33514,7 +34346,7 @@ class ReplicationRecoveryPlansImpl {
33514
34346
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33515
34347
  return this.client.sendOperationRequest(args, spec);
33516
34348
  });
33517
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34349
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33518
34350
  var _a;
33519
34351
  let currentRawResponse = undefined;
33520
34352
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33533,9 +34365,13 @@ class ReplicationRecoveryPlansImpl {
33533
34365
  }
33534
34366
  };
33535
34367
  });
33536
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, options }, deleteOperationSpec);
33537
- const poller = new coreLro.LroEngine(lro, {
33538
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34368
+ const lro = createLroSpec({
34369
+ sendOperationFn,
34370
+ args: { resourceName, resourceGroupName, recoveryPlanName, options },
34371
+ spec: deleteOperationSpec
34372
+ });
34373
+ const poller = yield coreLro.createHttpPoller(lro, {
34374
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33539
34375
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33540
34376
  });
33541
34377
  yield poller.poll();
@@ -33570,7 +34406,7 @@ class ReplicationRecoveryPlansImpl {
33570
34406
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33571
34407
  return this.client.sendOperationRequest(args, spec);
33572
34408
  });
33573
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34409
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33574
34410
  var _a;
33575
34411
  let currentRawResponse = undefined;
33576
34412
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33589,9 +34425,19 @@ class ReplicationRecoveryPlansImpl {
33589
34425
  }
33590
34426
  };
33591
34427
  });
33592
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, input, options }, updateOperationSpec);
33593
- const poller = new coreLro.LroEngine(lro, {
33594
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34428
+ const lro = createLroSpec({
34429
+ sendOperationFn,
34430
+ args: {
34431
+ resourceName,
34432
+ resourceGroupName,
34433
+ recoveryPlanName,
34434
+ input,
34435
+ options
34436
+ },
34437
+ spec: updateOperationSpec
34438
+ });
34439
+ const poller = yield coreLro.createHttpPoller(lro, {
34440
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33595
34441
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33596
34442
  });
33597
34443
  yield poller.poll();
@@ -33626,7 +34472,7 @@ class ReplicationRecoveryPlansImpl {
33626
34472
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33627
34473
  return this.client.sendOperationRequest(args, spec);
33628
34474
  });
33629
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34475
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33630
34476
  var _a;
33631
34477
  let currentRawResponse = undefined;
33632
34478
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33645,9 +34491,13 @@ class ReplicationRecoveryPlansImpl {
33645
34491
  }
33646
34492
  };
33647
34493
  });
33648
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, options }, failoverCancelOperationSpec);
33649
- const poller = new coreLro.LroEngine(lro, {
33650
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34494
+ const lro = createLroSpec({
34495
+ sendOperationFn,
34496
+ args: { resourceName, resourceGroupName, recoveryPlanName, options },
34497
+ spec: failoverCancelOperationSpec
34498
+ });
34499
+ const poller = yield coreLro.createHttpPoller(lro, {
34500
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33651
34501
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33652
34502
  });
33653
34503
  yield poller.poll();
@@ -33681,7 +34531,7 @@ class ReplicationRecoveryPlansImpl {
33681
34531
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33682
34532
  return this.client.sendOperationRequest(args, spec);
33683
34533
  });
33684
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34534
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33685
34535
  var _a;
33686
34536
  let currentRawResponse = undefined;
33687
34537
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33700,9 +34550,13 @@ class ReplicationRecoveryPlansImpl {
33700
34550
  }
33701
34551
  };
33702
34552
  });
33703
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, options }, failoverCommitOperationSpec);
33704
- const poller = new coreLro.LroEngine(lro, {
33705
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34553
+ const lro = createLroSpec({
34554
+ sendOperationFn,
34555
+ args: { resourceName, resourceGroupName, recoveryPlanName, options },
34556
+ spec: failoverCommitOperationSpec
34557
+ });
34558
+ const poller = yield coreLro.createHttpPoller(lro, {
34559
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33706
34560
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33707
34561
  });
33708
34562
  yield poller.poll();
@@ -33737,7 +34591,7 @@ class ReplicationRecoveryPlansImpl {
33737
34591
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33738
34592
  return this.client.sendOperationRequest(args, spec);
33739
34593
  });
33740
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34594
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33741
34595
  var _a;
33742
34596
  let currentRawResponse = undefined;
33743
34597
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33756,9 +34610,19 @@ class ReplicationRecoveryPlansImpl {
33756
34610
  }
33757
34611
  };
33758
34612
  });
33759
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, input, options }, plannedFailoverOperationSpec);
33760
- const poller = new coreLro.LroEngine(lro, {
33761
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34613
+ const lro = createLroSpec({
34614
+ sendOperationFn,
34615
+ args: {
34616
+ resourceName,
34617
+ resourceGroupName,
34618
+ recoveryPlanName,
34619
+ input,
34620
+ options
34621
+ },
34622
+ spec: plannedFailoverOperationSpec
34623
+ });
34624
+ const poller = yield coreLro.createHttpPoller(lro, {
34625
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33762
34626
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33763
34627
  });
33764
34628
  yield poller.poll();
@@ -33793,7 +34657,7 @@ class ReplicationRecoveryPlansImpl {
33793
34657
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33794
34658
  return this.client.sendOperationRequest(args, spec);
33795
34659
  });
33796
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34660
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33797
34661
  var _a;
33798
34662
  let currentRawResponse = undefined;
33799
34663
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33812,9 +34676,13 @@ class ReplicationRecoveryPlansImpl {
33812
34676
  }
33813
34677
  };
33814
34678
  });
33815
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, options }, reprotectOperationSpec);
33816
- const poller = new coreLro.LroEngine(lro, {
33817
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34679
+ const lro = createLroSpec({
34680
+ sendOperationFn,
34681
+ args: { resourceName, resourceGroupName, recoveryPlanName, options },
34682
+ spec: reprotectOperationSpec
34683
+ });
34684
+ const poller = yield coreLro.createHttpPoller(lro, {
34685
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33818
34686
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33819
34687
  });
33820
34688
  yield poller.poll();
@@ -33849,7 +34717,7 @@ class ReplicationRecoveryPlansImpl {
33849
34717
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33850
34718
  return this.client.sendOperationRequest(args, spec);
33851
34719
  });
33852
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34720
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33853
34721
  var _a;
33854
34722
  let currentRawResponse = undefined;
33855
34723
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33868,9 +34736,19 @@ class ReplicationRecoveryPlansImpl {
33868
34736
  }
33869
34737
  };
33870
34738
  });
33871
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, input, options }, testFailoverOperationSpec);
33872
- const poller = new coreLro.LroEngine(lro, {
33873
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34739
+ const lro = createLroSpec({
34740
+ sendOperationFn,
34741
+ args: {
34742
+ resourceName,
34743
+ resourceGroupName,
34744
+ recoveryPlanName,
34745
+ input,
34746
+ options
34747
+ },
34748
+ spec: testFailoverOperationSpec
34749
+ });
34750
+ const poller = yield coreLro.createHttpPoller(lro, {
34751
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33874
34752
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33875
34753
  });
33876
34754
  yield poller.poll();
@@ -33906,7 +34784,7 @@ class ReplicationRecoveryPlansImpl {
33906
34784
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33907
34785
  return this.client.sendOperationRequest(args, spec);
33908
34786
  });
33909
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34787
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33910
34788
  var _a;
33911
34789
  let currentRawResponse = undefined;
33912
34790
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33925,9 +34803,19 @@ class ReplicationRecoveryPlansImpl {
33925
34803
  }
33926
34804
  };
33927
34805
  });
33928
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, input, options }, testFailoverCleanupOperationSpec);
33929
- const poller = new coreLro.LroEngine(lro, {
33930
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34806
+ const lro = createLroSpec({
34807
+ sendOperationFn,
34808
+ args: {
34809
+ resourceName,
34810
+ resourceGroupName,
34811
+ recoveryPlanName,
34812
+ input,
34813
+ options
34814
+ },
34815
+ spec: testFailoverCleanupOperationSpec
34816
+ });
34817
+ const poller = yield coreLro.createHttpPoller(lro, {
34818
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33931
34819
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33932
34820
  });
33933
34821
  yield poller.poll();
@@ -33963,7 +34851,7 @@ class ReplicationRecoveryPlansImpl {
33963
34851
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33964
34852
  return this.client.sendOperationRequest(args, spec);
33965
34853
  });
33966
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34854
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
33967
34855
  var _a;
33968
34856
  let currentRawResponse = undefined;
33969
34857
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -33982,9 +34870,19 @@ class ReplicationRecoveryPlansImpl {
33982
34870
  }
33983
34871
  };
33984
34872
  });
33985
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, recoveryPlanName, input, options }, unplannedFailoverOperationSpec);
33986
- const poller = new coreLro.LroEngine(lro, {
33987
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34873
+ const lro = createLroSpec({
34874
+ sendOperationFn,
34875
+ args: {
34876
+ resourceName,
34877
+ resourceGroupName,
34878
+ recoveryPlanName,
34879
+ input,
34880
+ options
34881
+ },
34882
+ spec: unplannedFailoverOperationSpec
34883
+ });
34884
+ const poller = yield coreLro.createHttpPoller(lro, {
34885
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33988
34886
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33989
34887
  });
33990
34888
  yield poller.poll();
@@ -34440,7 +35338,7 @@ class ReplicationVaultHealthImpl {
34440
35338
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34441
35339
  return this.client.sendOperationRequest(args, spec);
34442
35340
  });
34443
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
35341
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34444
35342
  var _a;
34445
35343
  let currentRawResponse = undefined;
34446
35344
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -34459,9 +35357,13 @@ class ReplicationVaultHealthImpl {
34459
35357
  }
34460
35358
  };
34461
35359
  });
34462
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, options }, refreshOperationSpec);
34463
- const poller = new coreLro.LroEngine(lro, {
34464
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
35360
+ const lro = createLroSpec({
35361
+ sendOperationFn,
35362
+ args: { resourceName, resourceGroupName, options },
35363
+ spec: refreshOperationSpec
35364
+ });
35365
+ const poller = yield coreLro.createHttpPoller(lro, {
35366
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34465
35367
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
34466
35368
  });
34467
35369
  yield poller.poll();
@@ -34651,7 +35553,7 @@ class ReplicationVaultSettingImpl {
34651
35553
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34652
35554
  return this.client.sendOperationRequest(args, spec);
34653
35555
  });
34654
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
35556
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
34655
35557
  var _a;
34656
35558
  let currentRawResponse = undefined;
34657
35559
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -34670,9 +35572,19 @@ class ReplicationVaultSettingImpl {
34670
35572
  }
34671
35573
  };
34672
35574
  });
34673
- const lro = new LroImpl(sendOperation, { resourceName, resourceGroupName, vaultSettingName, input, options }, createOperationSpec);
34674
- const poller = new coreLro.LroEngine(lro, {
34675
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
35575
+ const lro = createLroSpec({
35576
+ sendOperationFn,
35577
+ args: {
35578
+ resourceName,
35579
+ resourceGroupName,
35580
+ vaultSettingName,
35581
+ input,
35582
+ options
35583
+ },
35584
+ spec: createOperationSpec
35585
+ });
35586
+ const poller = yield coreLro.createHttpPoller(lro, {
35587
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
34676
35588
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
34677
35589
  });
34678
35590
  yield poller.poll();
@@ -34824,7 +35736,7 @@ class SiteRecoveryManagementClient extends coreClient__namespace.ServiceClient {
34824
35736
  requestContentType: "application/json; charset=utf-8",
34825
35737
  credential: credentials
34826
35738
  };
34827
- const packageDetails = `azsdk-js-arm-recoveryservices-siterecovery/5.0.2`;
35739
+ const packageDetails = `azsdk-js-arm-recoveryservices-siterecovery/5.1.0`;
34828
35740
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34829
35741
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
34830
35742
  : `${packageDetails}`;
@@ -34857,7 +35769,7 @@ class SiteRecoveryManagementClient extends coreClient__namespace.ServiceClient {
34857
35769
  this.subscriptionId = subscriptionId;
34858
35770
  // Assigning values to Constant parameters
34859
35771
  this.$host = options.$host || "https://management.azure.com";
34860
- this.apiVersion = options.apiVersion || "2022-10-01";
35772
+ this.apiVersion = options.apiVersion || "2023-06-01";
34861
35773
  this.operations = new OperationsImpl(this);
34862
35774
  this.replicationAlertSettings = new ReplicationAlertSettingsImpl(this);
34863
35775
  this.replicationAppliances = new ReplicationAppliancesImpl(this);