@azure/arm-recoveryservicesdatareplication 1.0.0-beta.1

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 (434) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +9908 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts +2 -0
  9. package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/checkNameAvailabilitySample.js +43 -0
  11. package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -0
  12. package/dist-esm/samples-dev/deploymentPreflightSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/deploymentPreflightSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/deploymentPreflightSample.js +51 -0
  15. package/dist-esm/samples-dev/deploymentPreflightSample.js.map +1 -0
  16. package/dist-esm/samples-dev/draCreateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/draCreateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/draCreateSample.js +63 -0
  19. package/dist-esm/samples-dev/draCreateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/draDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/draDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/draDeleteSample.js +41 -0
  23. package/dist-esm/samples-dev/draDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/draGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/draGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/draGetSample.js +41 -0
  27. package/dist-esm/samples-dev/draGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/draListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/draListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/draListSample.js +61 -0
  31. package/dist-esm/samples-dev/draListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/draOperationStatusGetSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/draOperationStatusGetSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/draOperationStatusGetSample.js +42 -0
  35. package/dist-esm/samples-dev/draOperationStatusGetSample.js.map +1 -0
  36. package/dist-esm/samples-dev/emailConfigurationCreateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/emailConfigurationCreateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/emailConfigurationCreateSample.js +49 -0
  39. package/dist-esm/samples-dev/emailConfigurationCreateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/emailConfigurationGetSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/emailConfigurationGetSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/emailConfigurationGetSample.js +41 -0
  43. package/dist-esm/samples-dev/emailConfigurationGetSample.js.map +1 -0
  44. package/dist-esm/samples-dev/emailConfigurationListSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/emailConfigurationListSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/emailConfigurationListSample.js +61 -0
  47. package/dist-esm/samples-dev/emailConfigurationListSample.js.map +1 -0
  48. package/dist-esm/samples-dev/eventGetSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/eventGetSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/eventGetSample.js +41 -0
  51. package/dist-esm/samples-dev/eventGetSample.js.map +1 -0
  52. package/dist-esm/samples-dev/eventListSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/eventListSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/eventListSample.js +64 -0
  55. package/dist-esm/samples-dev/eventListSample.js.map +1 -0
  56. package/dist-esm/samples-dev/fabricCreateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/fabricCreateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/fabricCreateSample.js +48 -0
  59. package/dist-esm/samples-dev/fabricCreateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/fabricDeleteSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/fabricDeleteSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/fabricDeleteSample.js +40 -0
  63. package/dist-esm/samples-dev/fabricDeleteSample.js.map +1 -0
  64. package/dist-esm/samples-dev/fabricGetSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/fabricGetSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/fabricGetSample.js +40 -0
  67. package/dist-esm/samples-dev/fabricGetSample.js.map +1 -0
  68. package/dist-esm/samples-dev/fabricListBySubscriptionSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/fabricListBySubscriptionSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/fabricListBySubscriptionSample.js +60 -0
  71. package/dist-esm/samples-dev/fabricListBySubscriptionSample.js.map +1 -0
  72. package/dist-esm/samples-dev/fabricListSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/fabricListSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/fabricListSample.js +62 -0
  75. package/dist-esm/samples-dev/fabricListSample.js.map +1 -0
  76. package/dist-esm/samples-dev/fabricOperationsStatusGetSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/fabricOperationsStatusGetSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/fabricOperationsStatusGetSample.js +41 -0
  79. package/dist-esm/samples-dev/fabricOperationsStatusGetSample.js.map +1 -0
  80. package/dist-esm/samples-dev/fabricUpdateSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/fabricUpdateSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/fabricUpdateSample.js +47 -0
  83. package/dist-esm/samples-dev/fabricUpdateSample.js.map +1 -0
  84. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  87. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  88. package/dist-esm/samples-dev/policyCreateSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/policyCreateSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/policyCreateSample.js +47 -0
  91. package/dist-esm/samples-dev/policyCreateSample.js.map +1 -0
  92. package/dist-esm/samples-dev/policyDeleteSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/policyDeleteSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/policyDeleteSample.js +41 -0
  95. package/dist-esm/samples-dev/policyDeleteSample.js.map +1 -0
  96. package/dist-esm/samples-dev/policyGetSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/policyGetSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/policyGetSample.js +41 -0
  99. package/dist-esm/samples-dev/policyGetSample.js.map +1 -0
  100. package/dist-esm/samples-dev/policyListSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/policyListSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/policyListSample.js +61 -0
  103. package/dist-esm/samples-dev/policyListSample.js.map +1 -0
  104. package/dist-esm/samples-dev/policyOperationStatusGetSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/policyOperationStatusGetSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/policyOperationStatusGetSample.js +42 -0
  107. package/dist-esm/samples-dev/policyOperationStatusGetSample.js.map +1 -0
  108. package/dist-esm/samples-dev/protectedItemCreateSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/protectedItemCreateSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/protectedItemCreateSample.js +49 -0
  111. package/dist-esm/samples-dev/protectedItemCreateSample.js.map +1 -0
  112. package/dist-esm/samples-dev/protectedItemDeleteSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/protectedItemDeleteSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/protectedItemDeleteSample.js +43 -0
  115. package/dist-esm/samples-dev/protectedItemDeleteSample.js.map +1 -0
  116. package/dist-esm/samples-dev/protectedItemGetSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/protectedItemGetSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/protectedItemGetSample.js +41 -0
  119. package/dist-esm/samples-dev/protectedItemGetSample.js.map +1 -0
  120. package/dist-esm/samples-dev/protectedItemListSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/protectedItemListSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/protectedItemListSample.js +61 -0
  123. package/dist-esm/samples-dev/protectedItemListSample.js.map +1 -0
  124. package/dist-esm/samples-dev/protectedItemOperationStatusGetSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/protectedItemOperationStatusGetSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/protectedItemOperationStatusGetSample.js +42 -0
  127. package/dist-esm/samples-dev/protectedItemOperationStatusGetSample.js.map +1 -0
  128. package/dist-esm/samples-dev/protectedItemPlannedFailoverSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/protectedItemPlannedFailoverSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/protectedItemPlannedFailoverSample.js +47 -0
  131. package/dist-esm/samples-dev/protectedItemPlannedFailoverSample.js.map +1 -0
  132. package/dist-esm/samples-dev/recoveryPointsGetSample.d.ts +2 -0
  133. package/dist-esm/samples-dev/recoveryPointsGetSample.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/recoveryPointsGetSample.js +42 -0
  135. package/dist-esm/samples-dev/recoveryPointsGetSample.js.map +1 -0
  136. package/dist-esm/samples-dev/recoveryPointsListSample.d.ts +2 -0
  137. package/dist-esm/samples-dev/recoveryPointsListSample.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/recoveryPointsListSample.js +62 -0
  139. package/dist-esm/samples-dev/recoveryPointsListSample.js.map +1 -0
  140. package/dist-esm/samples-dev/replicationExtensionCreateSample.d.ts +2 -0
  141. package/dist-esm/samples-dev/replicationExtensionCreateSample.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/replicationExtensionCreateSample.js +49 -0
  143. package/dist-esm/samples-dev/replicationExtensionCreateSample.js.map +1 -0
  144. package/dist-esm/samples-dev/replicationExtensionDeleteSample.d.ts +2 -0
  145. package/dist-esm/samples-dev/replicationExtensionDeleteSample.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/replicationExtensionDeleteSample.js +41 -0
  147. package/dist-esm/samples-dev/replicationExtensionDeleteSample.js.map +1 -0
  148. package/dist-esm/samples-dev/replicationExtensionGetSample.d.ts +2 -0
  149. package/dist-esm/samples-dev/replicationExtensionGetSample.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/replicationExtensionGetSample.js +41 -0
  151. package/dist-esm/samples-dev/replicationExtensionGetSample.js.map +1 -0
  152. package/dist-esm/samples-dev/replicationExtensionListSample.d.ts +2 -0
  153. package/dist-esm/samples-dev/replicationExtensionListSample.d.ts.map +1 -0
  154. package/dist-esm/samples-dev/replicationExtensionListSample.js +61 -0
  155. package/dist-esm/samples-dev/replicationExtensionListSample.js.map +1 -0
  156. package/dist-esm/samples-dev/replicationExtensionOperationStatusGetSample.d.ts +2 -0
  157. package/dist-esm/samples-dev/replicationExtensionOperationStatusGetSample.d.ts.map +1 -0
  158. package/dist-esm/samples-dev/replicationExtensionOperationStatusGetSample.js +42 -0
  159. package/dist-esm/samples-dev/replicationExtensionOperationStatusGetSample.js.map +1 -0
  160. package/dist-esm/samples-dev/vaultCreateSample.d.ts +2 -0
  161. package/dist-esm/samples-dev/vaultCreateSample.d.ts.map +1 -0
  162. package/dist-esm/samples-dev/vaultCreateSample.js +46 -0
  163. package/dist-esm/samples-dev/vaultCreateSample.js.map +1 -0
  164. package/dist-esm/samples-dev/vaultDeleteSample.d.ts +2 -0
  165. package/dist-esm/samples-dev/vaultDeleteSample.d.ts.map +1 -0
  166. package/dist-esm/samples-dev/vaultDeleteSample.js +40 -0
  167. package/dist-esm/samples-dev/vaultDeleteSample.js.map +1 -0
  168. package/dist-esm/samples-dev/vaultGetSample.d.ts +2 -0
  169. package/dist-esm/samples-dev/vaultGetSample.d.ts.map +1 -0
  170. package/dist-esm/samples-dev/vaultGetSample.js +40 -0
  171. package/dist-esm/samples-dev/vaultGetSample.js.map +1 -0
  172. package/dist-esm/samples-dev/vaultListBySubscriptionSample.d.ts +2 -0
  173. package/dist-esm/samples-dev/vaultListBySubscriptionSample.d.ts.map +1 -0
  174. package/dist-esm/samples-dev/vaultListBySubscriptionSample.js +60 -0
  175. package/dist-esm/samples-dev/vaultListBySubscriptionSample.js.map +1 -0
  176. package/dist-esm/samples-dev/vaultListSample.d.ts +2 -0
  177. package/dist-esm/samples-dev/vaultListSample.d.ts.map +1 -0
  178. package/dist-esm/samples-dev/vaultListSample.js +62 -0
  179. package/dist-esm/samples-dev/vaultListSample.js.map +1 -0
  180. package/dist-esm/samples-dev/vaultOperationStatusGetSample.d.ts +2 -0
  181. package/dist-esm/samples-dev/vaultOperationStatusGetSample.d.ts.map +1 -0
  182. package/dist-esm/samples-dev/vaultOperationStatusGetSample.js +41 -0
  183. package/dist-esm/samples-dev/vaultOperationStatusGetSample.js.map +1 -0
  184. package/dist-esm/samples-dev/vaultUpdateSample.d.ts +2 -0
  185. package/dist-esm/samples-dev/vaultUpdateSample.d.ts.map +1 -0
  186. package/dist-esm/samples-dev/vaultUpdateSample.js +45 -0
  187. package/dist-esm/samples-dev/vaultUpdateSample.js.map +1 -0
  188. package/dist-esm/samples-dev/workflowGetSample.d.ts +2 -0
  189. package/dist-esm/samples-dev/workflowGetSample.d.ts.map +1 -0
  190. package/dist-esm/samples-dev/workflowGetSample.js +41 -0
  191. package/dist-esm/samples-dev/workflowGetSample.js.map +1 -0
  192. package/dist-esm/samples-dev/workflowListSample.d.ts +2 -0
  193. package/dist-esm/samples-dev/workflowListSample.d.ts.map +1 -0
  194. package/dist-esm/samples-dev/workflowListSample.js +64 -0
  195. package/dist-esm/samples-dev/workflowListSample.js.map +1 -0
  196. package/dist-esm/samples-dev/workflowOperationStatusGetSample.d.ts +2 -0
  197. package/dist-esm/samples-dev/workflowOperationStatusGetSample.d.ts.map +1 -0
  198. package/dist-esm/samples-dev/workflowOperationStatusGetSample.js +42 -0
  199. package/dist-esm/samples-dev/workflowOperationStatusGetSample.js.map +1 -0
  200. package/dist-esm/src/azureSiteRecoveryManagementServiceAPI.d.ts +50 -0
  201. package/dist-esm/src/azureSiteRecoveryManagementServiceAPI.d.ts.map +1 -0
  202. package/dist-esm/src/azureSiteRecoveryManagementServiceAPI.js +183 -0
  203. package/dist-esm/src/azureSiteRecoveryManagementServiceAPI.js.map +1 -0
  204. package/dist-esm/src/index.d.ts +6 -0
  205. package/dist-esm/src/index.d.ts.map +1 -0
  206. package/dist-esm/src/index.js +13 -0
  207. package/dist-esm/src/index.js.map +1 -0
  208. package/dist-esm/src/lroImpl.d.ts +11 -0
  209. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  210. package/dist-esm/src/lroImpl.js +21 -0
  211. package/dist-esm/src/lroImpl.js.map +1 -0
  212. package/dist-esm/src/models/index.d.ts +3253 -0
  213. package/dist-esm/src/models/index.d.ts.map +1 -0
  214. package/dist-esm/src/models/index.js +298 -0
  215. package/dist-esm/src/models/index.js.map +1 -0
  216. package/dist-esm/src/models/mappers.d.ts +149 -0
  217. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  218. package/dist-esm/src/models/mappers.js +4952 -0
  219. package/dist-esm/src/models/mappers.js.map +1 -0
  220. package/dist-esm/src/models/parameters.d.ts +37 -0
  221. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  222. package/dist-esm/src/models/parameters.js +329 -0
  223. package/dist-esm/src/models/parameters.js.map +1 -0
  224. package/dist-esm/src/operations/dra.d.ts +79 -0
  225. package/dist-esm/src/operations/dra.d.ts.map +1 -0
  226. package/dist-esm/src/operations/dra.js +369 -0
  227. package/dist-esm/src/operations/dra.js.map +1 -0
  228. package/dist-esm/src/operations/draOperationStatus.d.ts +22 -0
  229. package/dist-esm/src/operations/draOperationStatus.d.ts.map +1 -0
  230. package/dist-esm/src/operations/draOperationStatus.js +57 -0
  231. package/dist-esm/src/operations/draOperationStatus.js.map +1 -0
  232. package/dist-esm/src/operations/emailConfiguration.d.ts +54 -0
  233. package/dist-esm/src/operations/emailConfiguration.d.ts.map +1 -0
  234. package/dist-esm/src/operations/emailConfiguration.js +224 -0
  235. package/dist-esm/src/operations/emailConfiguration.js.map +1 -0
  236. package/dist-esm/src/operations/event.d.ts +46 -0
  237. package/dist-esm/src/operations/event.d.ts.map +1 -0
  238. package/dist-esm/src/operations/event.js +191 -0
  239. package/dist-esm/src/operations/event.js.map +1 -0
  240. package/dist-esm/src/operations/fabric.d.ts +103 -0
  241. package/dist-esm/src/operations/fabric.d.ts.map +1 -0
  242. package/dist-esm/src/operations/fabric.js +560 -0
  243. package/dist-esm/src/operations/fabric.js.map +1 -0
  244. package/dist-esm/src/operations/fabricOperationsStatus.d.ts +21 -0
  245. package/dist-esm/src/operations/fabricOperationsStatus.d.ts.map +1 -0
  246. package/dist-esm/src/operations/fabricOperationsStatus.js +55 -0
  247. package/dist-esm/src/operations/fabricOperationsStatus.js.map +1 -0
  248. package/dist-esm/src/operations/index.d.ts +19 -0
  249. package/dist-esm/src/operations/index.d.ts.map +1 -0
  250. package/dist-esm/src/operations/index.js +26 -0
  251. package/dist-esm/src/operations/index.js.map +1 -0
  252. package/dist-esm/src/operations/operations.d.ts +32 -0
  253. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  254. package/dist-esm/src/operations/operations.js +138 -0
  255. package/dist-esm/src/operations/operations.js.map +1 -0
  256. package/dist-esm/src/operations/policy.d.ts +79 -0
  257. package/dist-esm/src/operations/policy.d.ts.map +1 -0
  258. package/dist-esm/src/operations/policy.js +369 -0
  259. package/dist-esm/src/operations/policy.js.map +1 -0
  260. package/dist-esm/src/operations/policyOperationStatus.d.ts +22 -0
  261. package/dist-esm/src/operations/policyOperationStatus.d.ts.map +1 -0
  262. package/dist-esm/src/operations/policyOperationStatus.js +57 -0
  263. package/dist-esm/src/operations/policyOperationStatus.js.map +1 -0
  264. package/dist-esm/src/operations/protectedItem.d.ts +95 -0
  265. package/dist-esm/src/operations/protectedItem.d.ts.map +1 -0
  266. package/dist-esm/src/operations/protectedItem.js +460 -0
  267. package/dist-esm/src/operations/protectedItem.js.map +1 -0
  268. package/dist-esm/src/operations/protectedItemOperationStatus.d.ts +22 -0
  269. package/dist-esm/src/operations/protectedItemOperationStatus.d.ts.map +1 -0
  270. package/dist-esm/src/operations/protectedItemOperationStatus.js +57 -0
  271. package/dist-esm/src/operations/protectedItemOperationStatus.js.map +1 -0
  272. package/dist-esm/src/operations/recoveryPoints.d.ts +50 -0
  273. package/dist-esm/src/operations/recoveryPoints.d.ts.map +1 -0
  274. package/dist-esm/src/operations/recoveryPoints.js +200 -0
  275. package/dist-esm/src/operations/recoveryPoints.js.map +1 -0
  276. package/dist-esm/src/operations/replicationExtension.d.ts +79 -0
  277. package/dist-esm/src/operations/replicationExtension.d.ts.map +1 -0
  278. package/dist-esm/src/operations/replicationExtension.js +369 -0
  279. package/dist-esm/src/operations/replicationExtension.js.map +1 -0
  280. package/dist-esm/src/operations/replicationExtensionOperationStatus.d.ts +22 -0
  281. package/dist-esm/src/operations/replicationExtensionOperationStatus.d.ts.map +1 -0
  282. package/dist-esm/src/operations/replicationExtensionOperationStatus.js +63 -0
  283. package/dist-esm/src/operations/replicationExtensionOperationStatus.js.map +1 -0
  284. package/dist-esm/src/operations/vault.d.ts +103 -0
  285. package/dist-esm/src/operations/vault.d.ts.map +1 -0
  286. package/dist-esm/src/operations/vault.js +560 -0
  287. package/dist-esm/src/operations/vault.js.map +1 -0
  288. package/dist-esm/src/operations/vaultOperationStatus.d.ts +21 -0
  289. package/dist-esm/src/operations/vaultOperationStatus.d.ts.map +1 -0
  290. package/dist-esm/src/operations/vaultOperationStatus.js +55 -0
  291. package/dist-esm/src/operations/vaultOperationStatus.js.map +1 -0
  292. package/dist-esm/src/operations/workflow.d.ts +46 -0
  293. package/dist-esm/src/operations/workflow.d.ts.map +1 -0
  294. package/dist-esm/src/operations/workflow.js +191 -0
  295. package/dist-esm/src/operations/workflow.js.map +1 -0
  296. package/dist-esm/src/operations/workflowOperationStatus.d.ts +22 -0
  297. package/dist-esm/src/operations/workflowOperationStatus.d.ts.map +1 -0
  298. package/dist-esm/src/operations/workflowOperationStatus.js +57 -0
  299. package/dist-esm/src/operations/workflowOperationStatus.js.map +1 -0
  300. package/dist-esm/src/operationsInterfaces/dra.d.ts +54 -0
  301. package/dist-esm/src/operationsInterfaces/dra.d.ts.map +1 -0
  302. package/dist-esm/src/operationsInterfaces/dra.js +9 -0
  303. package/dist-esm/src/operationsInterfaces/dra.js.map +1 -0
  304. package/dist-esm/src/operationsInterfaces/draOperationStatus.d.ts +14 -0
  305. package/dist-esm/src/operationsInterfaces/draOperationStatus.d.ts.map +1 -0
  306. package/dist-esm/src/operationsInterfaces/draOperationStatus.js +9 -0
  307. package/dist-esm/src/operationsInterfaces/draOperationStatus.js.map +1 -0
  308. package/dist-esm/src/operationsInterfaces/emailConfiguration.d.ts +29 -0
  309. package/dist-esm/src/operationsInterfaces/emailConfiguration.d.ts.map +1 -0
  310. package/dist-esm/src/operationsInterfaces/emailConfiguration.js +9 -0
  311. package/dist-esm/src/operationsInterfaces/emailConfiguration.js.map +1 -0
  312. package/dist-esm/src/operationsInterfaces/event.d.ts +21 -0
  313. package/dist-esm/src/operationsInterfaces/event.d.ts.map +1 -0
  314. package/dist-esm/src/operationsInterfaces/event.js +9 -0
  315. package/dist-esm/src/operationsInterfaces/event.js.map +1 -0
  316. package/dist-esm/src/operationsInterfaces/fabric.d.ts +67 -0
  317. package/dist-esm/src/operationsInterfaces/fabric.d.ts.map +1 -0
  318. package/dist-esm/src/operationsInterfaces/fabric.js +9 -0
  319. package/dist-esm/src/operationsInterfaces/fabric.js.map +1 -0
  320. package/dist-esm/src/operationsInterfaces/fabricOperationsStatus.d.ts +13 -0
  321. package/dist-esm/src/operationsInterfaces/fabricOperationsStatus.d.ts.map +1 -0
  322. package/dist-esm/src/operationsInterfaces/fabricOperationsStatus.js +9 -0
  323. package/dist-esm/src/operationsInterfaces/fabricOperationsStatus.js.map +1 -0
  324. package/dist-esm/src/operationsInterfaces/index.d.ts +19 -0
  325. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  326. package/dist-esm/src/operationsInterfaces/index.js +26 -0
  327. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  328. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  329. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  330. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  331. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  332. package/dist-esm/src/operationsInterfaces/policy.d.ts +54 -0
  333. package/dist-esm/src/operationsInterfaces/policy.d.ts.map +1 -0
  334. package/dist-esm/src/operationsInterfaces/policy.js +9 -0
  335. package/dist-esm/src/operationsInterfaces/policy.js.map +1 -0
  336. package/dist-esm/src/operationsInterfaces/policyOperationStatus.d.ts +14 -0
  337. package/dist-esm/src/operationsInterfaces/policyOperationStatus.d.ts.map +1 -0
  338. package/dist-esm/src/operationsInterfaces/policyOperationStatus.js +9 -0
  339. package/dist-esm/src/operationsInterfaces/policyOperationStatus.js.map +1 -0
  340. package/dist-esm/src/operationsInterfaces/protectedItem.d.ts +70 -0
  341. package/dist-esm/src/operationsInterfaces/protectedItem.d.ts.map +1 -0
  342. package/dist-esm/src/operationsInterfaces/protectedItem.js +9 -0
  343. package/dist-esm/src/operationsInterfaces/protectedItem.js.map +1 -0
  344. package/dist-esm/src/operationsInterfaces/protectedItemOperationStatus.d.ts +14 -0
  345. package/dist-esm/src/operationsInterfaces/protectedItemOperationStatus.d.ts.map +1 -0
  346. package/dist-esm/src/operationsInterfaces/protectedItemOperationStatus.js +9 -0
  347. package/dist-esm/src/operationsInterfaces/protectedItemOperationStatus.js.map +1 -0
  348. package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts +23 -0
  349. package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts.map +1 -0
  350. package/dist-esm/src/operationsInterfaces/recoveryPoints.js +9 -0
  351. package/dist-esm/src/operationsInterfaces/recoveryPoints.js.map +1 -0
  352. package/dist-esm/src/operationsInterfaces/replicationExtension.d.ts +54 -0
  353. package/dist-esm/src/operationsInterfaces/replicationExtension.d.ts.map +1 -0
  354. package/dist-esm/src/operationsInterfaces/replicationExtension.js +9 -0
  355. package/dist-esm/src/operationsInterfaces/replicationExtension.js.map +1 -0
  356. package/dist-esm/src/operationsInterfaces/replicationExtensionOperationStatus.d.ts +14 -0
  357. package/dist-esm/src/operationsInterfaces/replicationExtensionOperationStatus.d.ts.map +1 -0
  358. package/dist-esm/src/operationsInterfaces/replicationExtensionOperationStatus.js +9 -0
  359. package/dist-esm/src/operationsInterfaces/replicationExtensionOperationStatus.js.map +1 -0
  360. package/dist-esm/src/operationsInterfaces/vault.d.ts +67 -0
  361. package/dist-esm/src/operationsInterfaces/vault.d.ts.map +1 -0
  362. package/dist-esm/src/operationsInterfaces/vault.js +9 -0
  363. package/dist-esm/src/operationsInterfaces/vault.js.map +1 -0
  364. package/dist-esm/src/operationsInterfaces/vaultOperationStatus.d.ts +13 -0
  365. package/dist-esm/src/operationsInterfaces/vaultOperationStatus.d.ts.map +1 -0
  366. package/dist-esm/src/operationsInterfaces/vaultOperationStatus.js +9 -0
  367. package/dist-esm/src/operationsInterfaces/vaultOperationStatus.js.map +1 -0
  368. package/dist-esm/src/operationsInterfaces/workflow.d.ts +21 -0
  369. package/dist-esm/src/operationsInterfaces/workflow.d.ts.map +1 -0
  370. package/dist-esm/src/operationsInterfaces/workflow.js +9 -0
  371. package/dist-esm/src/operationsInterfaces/workflow.js.map +1 -0
  372. package/dist-esm/src/operationsInterfaces/workflowOperationStatus.d.ts +14 -0
  373. package/dist-esm/src/operationsInterfaces/workflowOperationStatus.d.ts.map +1 -0
  374. package/dist-esm/src/operationsInterfaces/workflowOperationStatus.js +9 -0
  375. package/dist-esm/src/operationsInterfaces/workflowOperationStatus.js.map +1 -0
  376. package/dist-esm/src/pagingHelper.d.ts +13 -0
  377. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  378. package/dist-esm/src/pagingHelper.js +32 -0
  379. package/dist-esm/src/pagingHelper.js.map +1 -0
  380. package/dist-esm/test/recoveryservicesdatareplication_operations_test.spec.d.ts +4 -0
  381. package/dist-esm/test/recoveryservicesdatareplication_operations_test.spec.d.ts.map +1 -0
  382. package/dist-esm/test/recoveryservicesdatareplication_operations_test.spec.js +76 -0
  383. package/dist-esm/test/recoveryservicesdatareplication_operations_test.spec.js.map +1 -0
  384. package/package.json +124 -0
  385. package/review/arm-recoveryservicesdatareplication.api.md +1973 -0
  386. package/rollup.config.js +122 -0
  387. package/src/azureSiteRecoveryManagementServiceAPI.ts +306 -0
  388. package/src/index.ts +13 -0
  389. package/src/lroImpl.ts +42 -0
  390. package/src/models/index.ts +3567 -0
  391. package/src/models/mappers.ts +5306 -0
  392. package/src/models/parameters.ts +382 -0
  393. package/src/operations/dra.ts +500 -0
  394. package/src/operations/draOperationStatus.ts +78 -0
  395. package/src/operations/emailConfiguration.ts +287 -0
  396. package/src/operations/event.ts +242 -0
  397. package/src/operations/fabric.ts +710 -0
  398. package/src/operations/fabricOperationsStatus.ts +75 -0
  399. package/src/operations/index.ts +26 -0
  400. package/src/operations/operations.ts +149 -0
  401. package/src/operations/policy.ts +500 -0
  402. package/src/operations/policyOperationStatus.ts +78 -0
  403. package/src/operations/protectedItem.ts +638 -0
  404. package/src/operations/protectedItemOperationStatus.ts +79 -0
  405. package/src/operations/recoveryPoints.ts +270 -0
  406. package/src/operations/replicationExtension.ts +506 -0
  407. package/src/operations/replicationExtensionOperationStatus.ts +85 -0
  408. package/src/operations/vault.ts +710 -0
  409. package/src/operations/vaultOperationStatus.ts +75 -0
  410. package/src/operations/workflow.ts +242 -0
  411. package/src/operations/workflowOperationStatus.ts +78 -0
  412. package/src/operationsInterfaces/dra.ts +105 -0
  413. package/src/operationsInterfaces/draOperationStatus.ts +31 -0
  414. package/src/operationsInterfaces/emailConfiguration.ts +59 -0
  415. package/src/operationsInterfaces/event.ts +44 -0
  416. package/src/operationsInterfaces/fabric.ts +127 -0
  417. package/src/operationsInterfaces/fabricOperationsStatus.ts +29 -0
  418. package/src/operationsInterfaces/index.ts +26 -0
  419. package/src/operationsInterfaces/operations.ts +22 -0
  420. package/src/operationsInterfaces/policy.ts +105 -0
  421. package/src/operationsInterfaces/policyOperationStatus.ts +31 -0
  422. package/src/operationsInterfaces/protectedItem.ts +144 -0
  423. package/src/operationsInterfaces/protectedItemOperationStatus.ts +31 -0
  424. package/src/operationsInterfaces/recoveryPoints.ts +48 -0
  425. package/src/operationsInterfaces/replicationExtension.ts +111 -0
  426. package/src/operationsInterfaces/replicationExtensionOperationStatus.ts +31 -0
  427. package/src/operationsInterfaces/vault.ts +127 -0
  428. package/src/operationsInterfaces/vaultOperationStatus.ts +29 -0
  429. package/src/operationsInterfaces/workflow.ts +44 -0
  430. package/src/operationsInterfaces/workflowOperationStatus.ts +31 -0
  431. package/src/pagingHelper.ts +39 -0
  432. package/tsconfig.json +33 -0
  433. package/types/arm-recoveryservicesdatareplication.d.ts +4127 -0
  434. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,500 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
11
+ import { Dra } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { AzureSiteRecoveryManagementServiceAPI } from "../azureSiteRecoveryManagementServiceAPI";
16
+ import {
17
+ SimplePollerLike,
18
+ OperationState,
19
+ createHttpPoller
20
+ } from "@azure/core-lro";
21
+ import { createLroSpec } from "../lroImpl";
22
+ import {
23
+ DraModel,
24
+ DraListNextOptionalParams,
25
+ DraListOptionalParams,
26
+ DraListResponse,
27
+ DraGetOptionalParams,
28
+ DraGetResponse,
29
+ DraCreateOptionalParams,
30
+ DraCreateResponse,
31
+ DraDeleteOptionalParams,
32
+ DraDeleteResponse,
33
+ DraListNextResponse
34
+ } from "../models";
35
+
36
+ /// <reference lib="esnext.asynciterable" />
37
+ /** Class containing Dra operations. */
38
+ export class DraImpl implements Dra {
39
+ private readonly client: AzureSiteRecoveryManagementServiceAPI;
40
+
41
+ /**
42
+ * Initialize a new instance of the class Dra class.
43
+ * @param client Reference to the service client
44
+ */
45
+ constructor(client: AzureSiteRecoveryManagementServiceAPI) {
46
+ this.client = client;
47
+ }
48
+
49
+ /**
50
+ * Gets the list of fabric agents in the given fabric.
51
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
52
+ * @param fabricName The fabric name.
53
+ * @param options The options parameters.
54
+ */
55
+ public list(
56
+ resourceGroupName: string,
57
+ fabricName: string,
58
+ options?: DraListOptionalParams
59
+ ): PagedAsyncIterableIterator<DraModel> {
60
+ const iter = this.listPagingAll(resourceGroupName, fabricName, options);
61
+ return {
62
+ next() {
63
+ return iter.next();
64
+ },
65
+ [Symbol.asyncIterator]() {
66
+ return this;
67
+ },
68
+ byPage: (settings?: PageSettings) => {
69
+ if (settings?.maxPageSize) {
70
+ throw new Error("maxPageSize is not supported by this operation.");
71
+ }
72
+ return this.listPagingPage(
73
+ resourceGroupName,
74
+ fabricName,
75
+ options,
76
+ settings
77
+ );
78
+ }
79
+ };
80
+ }
81
+
82
+ private async *listPagingPage(
83
+ resourceGroupName: string,
84
+ fabricName: string,
85
+ options?: DraListOptionalParams,
86
+ settings?: PageSettings
87
+ ): AsyncIterableIterator<DraModel[]> {
88
+ let result: DraListResponse;
89
+ let continuationToken = settings?.continuationToken;
90
+ if (!continuationToken) {
91
+ result = await this._list(resourceGroupName, fabricName, options);
92
+ let page = result.value || [];
93
+ continuationToken = result.nextLink;
94
+ setContinuationToken(page, continuationToken);
95
+ yield page;
96
+ }
97
+ while (continuationToken) {
98
+ result = await this._listNext(
99
+ resourceGroupName,
100
+ fabricName,
101
+ continuationToken,
102
+ options
103
+ );
104
+ continuationToken = result.nextLink;
105
+ let page = result.value || [];
106
+ setContinuationToken(page, continuationToken);
107
+ yield page;
108
+ }
109
+ }
110
+
111
+ private async *listPagingAll(
112
+ resourceGroupName: string,
113
+ fabricName: string,
114
+ options?: DraListOptionalParams
115
+ ): AsyncIterableIterator<DraModel> {
116
+ for await (const page of this.listPagingPage(
117
+ resourceGroupName,
118
+ fabricName,
119
+ options
120
+ )) {
121
+ yield* page;
122
+ }
123
+ }
124
+
125
+ /**
126
+ * Gets the details of the fabric agent.
127
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
128
+ * @param fabricName The fabric name.
129
+ * @param fabricAgentName The fabric agent (Dra) name.
130
+ * @param options The options parameters.
131
+ */
132
+ get(
133
+ resourceGroupName: string,
134
+ fabricName: string,
135
+ fabricAgentName: string,
136
+ options?: DraGetOptionalParams
137
+ ): Promise<DraGetResponse> {
138
+ return this.client.sendOperationRequest(
139
+ { resourceGroupName, fabricName, fabricAgentName, options },
140
+ getOperationSpec
141
+ );
142
+ }
143
+
144
+ /**
145
+ * Creates the fabric agent.
146
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
147
+ * @param fabricName The fabric name.
148
+ * @param fabricAgentName The fabric agent (Dra) name.
149
+ * @param options The options parameters.
150
+ */
151
+ async beginCreate(
152
+ resourceGroupName: string,
153
+ fabricName: string,
154
+ fabricAgentName: string,
155
+ options?: DraCreateOptionalParams
156
+ ): Promise<
157
+ SimplePollerLike<OperationState<DraCreateResponse>, DraCreateResponse>
158
+ > {
159
+ const directSendOperation = async (
160
+ args: coreClient.OperationArguments,
161
+ spec: coreClient.OperationSpec
162
+ ): Promise<DraCreateResponse> => {
163
+ return this.client.sendOperationRequest(args, spec);
164
+ };
165
+ const sendOperationFn = async (
166
+ args: coreClient.OperationArguments,
167
+ spec: coreClient.OperationSpec
168
+ ) => {
169
+ let currentRawResponse:
170
+ | coreClient.FullOperationResponse
171
+ | undefined = undefined;
172
+ const providedCallback = args.options?.onResponse;
173
+ const callback: coreClient.RawResponseCallback = (
174
+ rawResponse: coreClient.FullOperationResponse,
175
+ flatResponse: unknown
176
+ ) => {
177
+ currentRawResponse = rawResponse;
178
+ providedCallback?.(rawResponse, flatResponse);
179
+ };
180
+ const updatedArgs = {
181
+ ...args,
182
+ options: {
183
+ ...args.options,
184
+ onResponse: callback
185
+ }
186
+ };
187
+ const flatResponse = await directSendOperation(updatedArgs, spec);
188
+ return {
189
+ flatResponse,
190
+ rawResponse: {
191
+ statusCode: currentRawResponse!.status,
192
+ body: currentRawResponse!.parsedBody,
193
+ headers: currentRawResponse!.headers.toJSON()
194
+ }
195
+ };
196
+ };
197
+
198
+ const lro = createLroSpec({
199
+ sendOperationFn,
200
+ args: { resourceGroupName, fabricName, fabricAgentName, options },
201
+ spec: createOperationSpec
202
+ });
203
+ const poller = await createHttpPoller<
204
+ DraCreateResponse,
205
+ OperationState<DraCreateResponse>
206
+ >(lro, {
207
+ restoreFrom: options?.resumeFrom,
208
+ intervalInMs: options?.updateIntervalInMs,
209
+ resourceLocationConfig: "location"
210
+ });
211
+ await poller.poll();
212
+ return poller;
213
+ }
214
+
215
+ /**
216
+ * Creates the fabric agent.
217
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
218
+ * @param fabricName The fabric name.
219
+ * @param fabricAgentName The fabric agent (Dra) name.
220
+ * @param options The options parameters.
221
+ */
222
+ async beginCreateAndWait(
223
+ resourceGroupName: string,
224
+ fabricName: string,
225
+ fabricAgentName: string,
226
+ options?: DraCreateOptionalParams
227
+ ): Promise<DraCreateResponse> {
228
+ const poller = await this.beginCreate(
229
+ resourceGroupName,
230
+ fabricName,
231
+ fabricAgentName,
232
+ options
233
+ );
234
+ return poller.pollUntilDone();
235
+ }
236
+
237
+ /**
238
+ * Deletes the fabric agent.
239
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
240
+ * @param fabricName The fabric name.
241
+ * @param fabricAgentName The fabric agent (Dra) name.
242
+ * @param options The options parameters.
243
+ */
244
+ async beginDelete(
245
+ resourceGroupName: string,
246
+ fabricName: string,
247
+ fabricAgentName: string,
248
+ options?: DraDeleteOptionalParams
249
+ ): Promise<
250
+ SimplePollerLike<OperationState<DraDeleteResponse>, DraDeleteResponse>
251
+ > {
252
+ const directSendOperation = async (
253
+ args: coreClient.OperationArguments,
254
+ spec: coreClient.OperationSpec
255
+ ): Promise<DraDeleteResponse> => {
256
+ return this.client.sendOperationRequest(args, spec);
257
+ };
258
+ const sendOperationFn = async (
259
+ args: coreClient.OperationArguments,
260
+ spec: coreClient.OperationSpec
261
+ ) => {
262
+ let currentRawResponse:
263
+ | coreClient.FullOperationResponse
264
+ | undefined = undefined;
265
+ const providedCallback = args.options?.onResponse;
266
+ const callback: coreClient.RawResponseCallback = (
267
+ rawResponse: coreClient.FullOperationResponse,
268
+ flatResponse: unknown
269
+ ) => {
270
+ currentRawResponse = rawResponse;
271
+ providedCallback?.(rawResponse, flatResponse);
272
+ };
273
+ const updatedArgs = {
274
+ ...args,
275
+ options: {
276
+ ...args.options,
277
+ onResponse: callback
278
+ }
279
+ };
280
+ const flatResponse = await directSendOperation(updatedArgs, spec);
281
+ return {
282
+ flatResponse,
283
+ rawResponse: {
284
+ statusCode: currentRawResponse!.status,
285
+ body: currentRawResponse!.parsedBody,
286
+ headers: currentRawResponse!.headers.toJSON()
287
+ }
288
+ };
289
+ };
290
+
291
+ const lro = createLroSpec({
292
+ sendOperationFn,
293
+ args: { resourceGroupName, fabricName, fabricAgentName, options },
294
+ spec: deleteOperationSpec
295
+ });
296
+ const poller = await createHttpPoller<
297
+ DraDeleteResponse,
298
+ OperationState<DraDeleteResponse>
299
+ >(lro, {
300
+ restoreFrom: options?.resumeFrom,
301
+ intervalInMs: options?.updateIntervalInMs,
302
+ resourceLocationConfig: "location"
303
+ });
304
+ await poller.poll();
305
+ return poller;
306
+ }
307
+
308
+ /**
309
+ * Deletes the fabric agent.
310
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
311
+ * @param fabricName The fabric name.
312
+ * @param fabricAgentName The fabric agent (Dra) name.
313
+ * @param options The options parameters.
314
+ */
315
+ async beginDeleteAndWait(
316
+ resourceGroupName: string,
317
+ fabricName: string,
318
+ fabricAgentName: string,
319
+ options?: DraDeleteOptionalParams
320
+ ): Promise<DraDeleteResponse> {
321
+ const poller = await this.beginDelete(
322
+ resourceGroupName,
323
+ fabricName,
324
+ fabricAgentName,
325
+ options
326
+ );
327
+ return poller.pollUntilDone();
328
+ }
329
+
330
+ /**
331
+ * Gets the list of fabric agents in the given fabric.
332
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
333
+ * @param fabricName The fabric name.
334
+ * @param options The options parameters.
335
+ */
336
+ private _list(
337
+ resourceGroupName: string,
338
+ fabricName: string,
339
+ options?: DraListOptionalParams
340
+ ): Promise<DraListResponse> {
341
+ return this.client.sendOperationRequest(
342
+ { resourceGroupName, fabricName, options },
343
+ listOperationSpec
344
+ );
345
+ }
346
+
347
+ /**
348
+ * ListNext
349
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
350
+ * @param fabricName The fabric name.
351
+ * @param nextLink The nextLink from the previous successful call to the List method.
352
+ * @param options The options parameters.
353
+ */
354
+ private _listNext(
355
+ resourceGroupName: string,
356
+ fabricName: string,
357
+ nextLink: string,
358
+ options?: DraListNextOptionalParams
359
+ ): Promise<DraListNextResponse> {
360
+ return this.client.sendOperationRequest(
361
+ { resourceGroupName, fabricName, nextLink, options },
362
+ listNextOperationSpec
363
+ );
364
+ }
365
+ }
366
+ // Operation Specifications
367
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
368
+
369
+ const getOperationSpec: coreClient.OperationSpec = {
370
+ path:
371
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}",
372
+ httpMethod: "GET",
373
+ responses: {
374
+ 200: {
375
+ bodyMapper: Mappers.DraModel
376
+ },
377
+ default: {
378
+ bodyMapper: Mappers.ErrorResponse
379
+ }
380
+ },
381
+ queryParameters: [Parameters.apiVersion],
382
+ urlParameters: [
383
+ Parameters.$host,
384
+ Parameters.subscriptionId,
385
+ Parameters.resourceGroupName,
386
+ Parameters.fabricName,
387
+ Parameters.fabricAgentName
388
+ ],
389
+ headerParameters: [Parameters.accept],
390
+ serializer
391
+ };
392
+ const createOperationSpec: coreClient.OperationSpec = {
393
+ path:
394
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}",
395
+ httpMethod: "PUT",
396
+ responses: {
397
+ 200: {
398
+ bodyMapper: Mappers.DraModel
399
+ },
400
+ 201: {
401
+ bodyMapper: Mappers.DraModel
402
+ },
403
+ 202: {
404
+ bodyMapper: Mappers.DraModel
405
+ },
406
+ 204: {
407
+ bodyMapper: Mappers.DraModel
408
+ },
409
+ default: {
410
+ bodyMapper: Mappers.ErrorResponse
411
+ }
412
+ },
413
+ requestBody: Parameters.body,
414
+ queryParameters: [Parameters.apiVersion],
415
+ urlParameters: [
416
+ Parameters.$host,
417
+ Parameters.subscriptionId,
418
+ Parameters.resourceGroupName,
419
+ Parameters.fabricName,
420
+ Parameters.fabricAgentName
421
+ ],
422
+ headerParameters: [Parameters.accept, Parameters.contentType],
423
+ mediaType: "json",
424
+ serializer
425
+ };
426
+ const deleteOperationSpec: coreClient.OperationSpec = {
427
+ path:
428
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}",
429
+ httpMethod: "DELETE",
430
+ responses: {
431
+ 200: {
432
+ headersMapper: Mappers.DraDeleteHeaders
433
+ },
434
+ 201: {
435
+ headersMapper: Mappers.DraDeleteHeaders
436
+ },
437
+ 202: {
438
+ headersMapper: Mappers.DraDeleteHeaders
439
+ },
440
+ 204: {
441
+ headersMapper: Mappers.DraDeleteHeaders
442
+ },
443
+ default: {
444
+ bodyMapper: Mappers.ErrorResponse
445
+ }
446
+ },
447
+ queryParameters: [Parameters.apiVersion],
448
+ urlParameters: [
449
+ Parameters.$host,
450
+ Parameters.subscriptionId,
451
+ Parameters.resourceGroupName,
452
+ Parameters.fabricName,
453
+ Parameters.fabricAgentName
454
+ ],
455
+ headerParameters: [Parameters.accept],
456
+ serializer
457
+ };
458
+ const listOperationSpec: coreClient.OperationSpec = {
459
+ path:
460
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents",
461
+ httpMethod: "GET",
462
+ responses: {
463
+ 200: {
464
+ bodyMapper: Mappers.DraModelCollection
465
+ },
466
+ default: {
467
+ bodyMapper: Mappers.ErrorResponse
468
+ }
469
+ },
470
+ queryParameters: [Parameters.apiVersion],
471
+ urlParameters: [
472
+ Parameters.$host,
473
+ Parameters.subscriptionId,
474
+ Parameters.resourceGroupName,
475
+ Parameters.fabricName
476
+ ],
477
+ headerParameters: [Parameters.accept],
478
+ serializer
479
+ };
480
+ const listNextOperationSpec: coreClient.OperationSpec = {
481
+ path: "{nextLink}",
482
+ httpMethod: "GET",
483
+ responses: {
484
+ 200: {
485
+ bodyMapper: Mappers.DraModelCollection
486
+ },
487
+ default: {
488
+ bodyMapper: Mappers.ErrorResponse
489
+ }
490
+ },
491
+ urlParameters: [
492
+ Parameters.$host,
493
+ Parameters.subscriptionId,
494
+ Parameters.resourceGroupName,
495
+ Parameters.fabricName,
496
+ Parameters.nextLink
497
+ ],
498
+ headerParameters: [Parameters.accept],
499
+ serializer
500
+ };
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { DraOperationStatus } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { AzureSiteRecoveryManagementServiceAPI } from "../azureSiteRecoveryManagementServiceAPI";
14
+ import {
15
+ DraOperationStatusGetOptionalParams,
16
+ DraOperationStatusGetResponse
17
+ } from "../models";
18
+
19
+ /** Class containing DraOperationStatus operations. */
20
+ export class DraOperationStatusImpl implements DraOperationStatus {
21
+ private readonly client: AzureSiteRecoveryManagementServiceAPI;
22
+
23
+ /**
24
+ * Initialize a new instance of the class DraOperationStatus class.
25
+ * @param client Reference to the service client
26
+ */
27
+ constructor(client: AzureSiteRecoveryManagementServiceAPI) {
28
+ this.client = client;
29
+ }
30
+
31
+ /**
32
+ * Tracks the results of an asynchronous operation on the fabric agent.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param fabricName The fabric name.
35
+ * @param fabricAgentName The fabric agent (Dra) name.
36
+ * @param operationId The ID of an ongoing async operation.
37
+ * @param options The options parameters.
38
+ */
39
+ get(
40
+ resourceGroupName: string,
41
+ fabricName: string,
42
+ fabricAgentName: string,
43
+ operationId: string,
44
+ options?: DraOperationStatusGetOptionalParams
45
+ ): Promise<DraOperationStatusGetResponse> {
46
+ return this.client.sendOperationRequest(
47
+ { resourceGroupName, fabricName, fabricAgentName, operationId, options },
48
+ getOperationSpec
49
+ );
50
+ }
51
+ }
52
+ // Operation Specifications
53
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
54
+
55
+ const getOperationSpec: coreClient.OperationSpec = {
56
+ path:
57
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationFabrics/{fabricName}/fabricAgents/{fabricAgentName}/operations/{operationId}",
58
+ httpMethod: "GET",
59
+ responses: {
60
+ 200: {
61
+ bodyMapper: Mappers.OperationStatus
62
+ },
63
+ default: {
64
+ bodyMapper: Mappers.ErrorResponse
65
+ }
66
+ },
67
+ queryParameters: [Parameters.apiVersion],
68
+ urlParameters: [
69
+ Parameters.$host,
70
+ Parameters.subscriptionId,
71
+ Parameters.resourceGroupName,
72
+ Parameters.fabricName,
73
+ Parameters.fabricAgentName,
74
+ Parameters.operationId
75
+ ],
76
+ headerParameters: [Parameters.accept],
77
+ serializer
78
+ };