@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,75 @@
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 { VaultOperationStatus } 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
+ VaultOperationStatusGetOptionalParams,
16
+ VaultOperationStatusGetResponse
17
+ } from "../models";
18
+
19
+ /** Class containing VaultOperationStatus operations. */
20
+ export class VaultOperationStatusImpl implements VaultOperationStatus {
21
+ private readonly client: AzureSiteRecoveryManagementServiceAPI;
22
+
23
+ /**
24
+ * Initialize a new instance of the class VaultOperationStatus 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 vault.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param vaultName The vault name.
35
+ * @param operationId The ID of an ongoing async operation.
36
+ * @param options The options parameters.
37
+ */
38
+ get(
39
+ resourceGroupName: string,
40
+ vaultName: string,
41
+ operationId: string,
42
+ options?: VaultOperationStatusGetOptionalParams
43
+ ): Promise<VaultOperationStatusGetResponse> {
44
+ return this.client.sendOperationRequest(
45
+ { resourceGroupName, vaultName, operationId, options },
46
+ getOperationSpec
47
+ );
48
+ }
49
+ }
50
+ // Operation Specifications
51
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
52
+
53
+ const getOperationSpec: coreClient.OperationSpec = {
54
+ path:
55
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/operations/{operationId}",
56
+ httpMethod: "GET",
57
+ responses: {
58
+ 200: {
59
+ bodyMapper: Mappers.OperationStatus
60
+ },
61
+ default: {
62
+ bodyMapper: Mappers.ErrorResponse
63
+ }
64
+ },
65
+ queryParameters: [Parameters.apiVersion],
66
+ urlParameters: [
67
+ Parameters.$host,
68
+ Parameters.subscriptionId,
69
+ Parameters.resourceGroupName,
70
+ Parameters.operationId,
71
+ Parameters.vaultName
72
+ ],
73
+ headerParameters: [Parameters.accept],
74
+ serializer
75
+ };
@@ -0,0 +1,242 @@
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 { Workflow } 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
+ WorkflowModel,
18
+ WorkflowListNextOptionalParams,
19
+ WorkflowListOptionalParams,
20
+ WorkflowListResponse,
21
+ WorkflowGetOptionalParams,
22
+ WorkflowGetResponse,
23
+ WorkflowListNextResponse
24
+ } from "../models";
25
+
26
+ /// <reference lib="esnext.asynciterable" />
27
+ /** Class containing Workflow operations. */
28
+ export class WorkflowImpl implements Workflow {
29
+ private readonly client: AzureSiteRecoveryManagementServiceAPI;
30
+
31
+ /**
32
+ * Initialize a new instance of the class Workflow class.
33
+ * @param client Reference to the service client
34
+ */
35
+ constructor(client: AzureSiteRecoveryManagementServiceAPI) {
36
+ this.client = client;
37
+ }
38
+
39
+ /**
40
+ * Gets the list of jobs in the given vault.
41
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
42
+ * @param vaultName The vault name.
43
+ * @param options The options parameters.
44
+ */
45
+ public list(
46
+ resourceGroupName: string,
47
+ vaultName: string,
48
+ options?: WorkflowListOptionalParams
49
+ ): PagedAsyncIterableIterator<WorkflowModel> {
50
+ const iter = this.listPagingAll(resourceGroupName, vaultName, options);
51
+ return {
52
+ next() {
53
+ return iter.next();
54
+ },
55
+ [Symbol.asyncIterator]() {
56
+ return this;
57
+ },
58
+ byPage: (settings?: PageSettings) => {
59
+ if (settings?.maxPageSize) {
60
+ throw new Error("maxPageSize is not supported by this operation.");
61
+ }
62
+ return this.listPagingPage(
63
+ resourceGroupName,
64
+ vaultName,
65
+ options,
66
+ settings
67
+ );
68
+ }
69
+ };
70
+ }
71
+
72
+ private async *listPagingPage(
73
+ resourceGroupName: string,
74
+ vaultName: string,
75
+ options?: WorkflowListOptionalParams,
76
+ settings?: PageSettings
77
+ ): AsyncIterableIterator<WorkflowModel[]> {
78
+ let result: WorkflowListResponse;
79
+ let continuationToken = settings?.continuationToken;
80
+ if (!continuationToken) {
81
+ result = await this._list(resourceGroupName, vaultName, options);
82
+ let page = result.value || [];
83
+ continuationToken = result.nextLink;
84
+ setContinuationToken(page, continuationToken);
85
+ yield page;
86
+ }
87
+ while (continuationToken) {
88
+ result = await this._listNext(
89
+ resourceGroupName,
90
+ vaultName,
91
+ continuationToken,
92
+ options
93
+ );
94
+ continuationToken = result.nextLink;
95
+ let page = result.value || [];
96
+ setContinuationToken(page, continuationToken);
97
+ yield page;
98
+ }
99
+ }
100
+
101
+ private async *listPagingAll(
102
+ resourceGroupName: string,
103
+ vaultName: string,
104
+ options?: WorkflowListOptionalParams
105
+ ): AsyncIterableIterator<WorkflowModel> {
106
+ for await (const page of this.listPagingPage(
107
+ resourceGroupName,
108
+ vaultName,
109
+ options
110
+ )) {
111
+ yield* page;
112
+ }
113
+ }
114
+
115
+ /**
116
+ * Gets the details of the job.
117
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
118
+ * @param vaultName The vault name.
119
+ * @param jobName The job (workflow) name.
120
+ * @param options The options parameters.
121
+ */
122
+ get(
123
+ resourceGroupName: string,
124
+ vaultName: string,
125
+ jobName: string,
126
+ options?: WorkflowGetOptionalParams
127
+ ): Promise<WorkflowGetResponse> {
128
+ return this.client.sendOperationRequest(
129
+ { resourceGroupName, vaultName, jobName, options },
130
+ getOperationSpec
131
+ );
132
+ }
133
+
134
+ /**
135
+ * Gets the list of jobs in the given vault.
136
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
137
+ * @param vaultName The vault name.
138
+ * @param options The options parameters.
139
+ */
140
+ private _list(
141
+ resourceGroupName: string,
142
+ vaultName: string,
143
+ options?: WorkflowListOptionalParams
144
+ ): Promise<WorkflowListResponse> {
145
+ return this.client.sendOperationRequest(
146
+ { resourceGroupName, vaultName, options },
147
+ listOperationSpec
148
+ );
149
+ }
150
+
151
+ /**
152
+ * ListNext
153
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
154
+ * @param vaultName The vault name.
155
+ * @param nextLink The nextLink from the previous successful call to the List method.
156
+ * @param options The options parameters.
157
+ */
158
+ private _listNext(
159
+ resourceGroupName: string,
160
+ vaultName: string,
161
+ nextLink: string,
162
+ options?: WorkflowListNextOptionalParams
163
+ ): Promise<WorkflowListNextResponse> {
164
+ return this.client.sendOperationRequest(
165
+ { resourceGroupName, vaultName, nextLink, options },
166
+ listNextOperationSpec
167
+ );
168
+ }
169
+ }
170
+ // Operation Specifications
171
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
172
+
173
+ const getOperationSpec: coreClient.OperationSpec = {
174
+ path:
175
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}",
176
+ httpMethod: "GET",
177
+ responses: {
178
+ 200: {
179
+ bodyMapper: Mappers.WorkflowModel
180
+ },
181
+ default: {
182
+ bodyMapper: Mappers.ErrorResponse
183
+ }
184
+ },
185
+ queryParameters: [Parameters.apiVersion],
186
+ urlParameters: [
187
+ Parameters.$host,
188
+ Parameters.subscriptionId,
189
+ Parameters.resourceGroupName,
190
+ Parameters.vaultName,
191
+ Parameters.jobName
192
+ ],
193
+ headerParameters: [Parameters.accept],
194
+ serializer
195
+ };
196
+ const listOperationSpec: coreClient.OperationSpec = {
197
+ path:
198
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs",
199
+ httpMethod: "GET",
200
+ responses: {
201
+ 200: {
202
+ bodyMapper: Mappers.WorkflowModelCollection
203
+ },
204
+ default: {
205
+ bodyMapper: Mappers.ErrorResponse
206
+ }
207
+ },
208
+ queryParameters: [
209
+ Parameters.apiVersion,
210
+ Parameters.filter,
211
+ Parameters.continuationToken
212
+ ],
213
+ urlParameters: [
214
+ Parameters.$host,
215
+ Parameters.subscriptionId,
216
+ Parameters.resourceGroupName,
217
+ Parameters.vaultName
218
+ ],
219
+ headerParameters: [Parameters.accept],
220
+ serializer
221
+ };
222
+ const listNextOperationSpec: coreClient.OperationSpec = {
223
+ path: "{nextLink}",
224
+ httpMethod: "GET",
225
+ responses: {
226
+ 200: {
227
+ bodyMapper: Mappers.WorkflowModelCollection
228
+ },
229
+ default: {
230
+ bodyMapper: Mappers.ErrorResponse
231
+ }
232
+ },
233
+ urlParameters: [
234
+ Parameters.$host,
235
+ Parameters.subscriptionId,
236
+ Parameters.resourceGroupName,
237
+ Parameters.nextLink,
238
+ Parameters.vaultName
239
+ ],
240
+ headerParameters: [Parameters.accept],
241
+ serializer
242
+ };
@@ -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 { WorkflowOperationStatus } 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
+ WorkflowOperationStatusGetOptionalParams,
16
+ WorkflowOperationStatusGetResponse
17
+ } from "../models";
18
+
19
+ /** Class containing WorkflowOperationStatus operations. */
20
+ export class WorkflowOperationStatusImpl implements WorkflowOperationStatus {
21
+ private readonly client: AzureSiteRecoveryManagementServiceAPI;
22
+
23
+ /**
24
+ * Initialize a new instance of the class WorkflowOperationStatus 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 job.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param vaultName The vault name.
35
+ * @param jobName The job (workflow) name.
36
+ * @param operationId The ID of an ongoing async operation.
37
+ * @param options The options parameters.
38
+ */
39
+ get(
40
+ resourceGroupName: string,
41
+ vaultName: string,
42
+ jobName: string,
43
+ operationId: string,
44
+ options?: WorkflowOperationStatusGetOptionalParams
45
+ ): Promise<WorkflowOperationStatusGetResponse> {
46
+ return this.client.sendOperationRequest(
47
+ { resourceGroupName, vaultName, jobName, 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/replicationVaults/{vaultName}/jobs/{jobName}/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.operationId,
73
+ Parameters.vaultName,
74
+ Parameters.jobName
75
+ ],
76
+ headerParameters: [Parameters.accept],
77
+ serializer
78
+ };
@@ -0,0 +1,105 @@
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 } from "@azure/core-paging";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
+ import {
12
+ DraModel,
13
+ DraListOptionalParams,
14
+ DraGetOptionalParams,
15
+ DraGetResponse,
16
+ DraCreateOptionalParams,
17
+ DraCreateResponse,
18
+ DraDeleteOptionalParams,
19
+ DraDeleteResponse
20
+ } from "../models";
21
+
22
+ /// <reference lib="esnext.asynciterable" />
23
+ /** Interface representing a Dra. */
24
+ export interface Dra {
25
+ /**
26
+ * Gets the list of fabric agents in the given fabric.
27
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
28
+ * @param fabricName The fabric name.
29
+ * @param options The options parameters.
30
+ */
31
+ list(
32
+ resourceGroupName: string,
33
+ fabricName: string,
34
+ options?: DraListOptionalParams
35
+ ): PagedAsyncIterableIterator<DraModel>;
36
+ /**
37
+ * Gets the details of the fabric agent.
38
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
+ * @param fabricName The fabric name.
40
+ * @param fabricAgentName The fabric agent (Dra) name.
41
+ * @param options The options parameters.
42
+ */
43
+ get(
44
+ resourceGroupName: string,
45
+ fabricName: string,
46
+ fabricAgentName: string,
47
+ options?: DraGetOptionalParams
48
+ ): Promise<DraGetResponse>;
49
+ /**
50
+ * Creates the fabric agent.
51
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
52
+ * @param fabricName The fabric name.
53
+ * @param fabricAgentName The fabric agent (Dra) name.
54
+ * @param options The options parameters.
55
+ */
56
+ beginCreate(
57
+ resourceGroupName: string,
58
+ fabricName: string,
59
+ fabricAgentName: string,
60
+ options?: DraCreateOptionalParams
61
+ ): Promise<
62
+ SimplePollerLike<OperationState<DraCreateResponse>, DraCreateResponse>
63
+ >;
64
+ /**
65
+ * Creates the fabric agent.
66
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
67
+ * @param fabricName The fabric name.
68
+ * @param fabricAgentName The fabric agent (Dra) name.
69
+ * @param options The options parameters.
70
+ */
71
+ beginCreateAndWait(
72
+ resourceGroupName: string,
73
+ fabricName: string,
74
+ fabricAgentName: string,
75
+ options?: DraCreateOptionalParams
76
+ ): Promise<DraCreateResponse>;
77
+ /**
78
+ * Deletes the fabric agent.
79
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
80
+ * @param fabricName The fabric name.
81
+ * @param fabricAgentName The fabric agent (Dra) name.
82
+ * @param options The options parameters.
83
+ */
84
+ beginDelete(
85
+ resourceGroupName: string,
86
+ fabricName: string,
87
+ fabricAgentName: string,
88
+ options?: DraDeleteOptionalParams
89
+ ): Promise<
90
+ SimplePollerLike<OperationState<DraDeleteResponse>, DraDeleteResponse>
91
+ >;
92
+ /**
93
+ * Deletes the fabric agent.
94
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
95
+ * @param fabricName The fabric name.
96
+ * @param fabricAgentName The fabric agent (Dra) name.
97
+ * @param options The options parameters.
98
+ */
99
+ beginDeleteAndWait(
100
+ resourceGroupName: string,
101
+ fabricName: string,
102
+ fabricAgentName: string,
103
+ options?: DraDeleteOptionalParams
104
+ ): Promise<DraDeleteResponse>;
105
+ }
@@ -0,0 +1,31 @@
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 {
10
+ DraOperationStatusGetOptionalParams,
11
+ DraOperationStatusGetResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a DraOperationStatus. */
15
+ export interface DraOperationStatus {
16
+ /**
17
+ * Tracks the results of an asynchronous operation on the fabric agent.
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param fabricName The fabric name.
20
+ * @param fabricAgentName The fabric agent (Dra) name.
21
+ * @param operationId The ID of an ongoing async operation.
22
+ * @param options The options parameters.
23
+ */
24
+ get(
25
+ resourceGroupName: string,
26
+ fabricName: string,
27
+ fabricAgentName: string,
28
+ operationId: string,
29
+ options?: DraOperationStatusGetOptionalParams
30
+ ): Promise<DraOperationStatusGetResponse>;
31
+ }
@@ -0,0 +1,59 @@
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 } from "@azure/core-paging";
10
+ import {
11
+ EmailConfigurationModel,
12
+ EmailConfigurationListOptionalParams,
13
+ EmailConfigurationGetOptionalParams,
14
+ EmailConfigurationGetResponse,
15
+ EmailConfigurationCreateOptionalParams,
16
+ EmailConfigurationCreateResponse
17
+ } from "../models";
18
+
19
+ /// <reference lib="esnext.asynciterable" />
20
+ /** Interface representing a EmailConfiguration. */
21
+ export interface EmailConfiguration {
22
+ /**
23
+ * Gets the list of alert configuration settings for the given vault.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param vaultName The vault name.
26
+ * @param options The options parameters.
27
+ */
28
+ list(
29
+ resourceGroupName: string,
30
+ vaultName: string,
31
+ options?: EmailConfigurationListOptionalParams
32
+ ): PagedAsyncIterableIterator<EmailConfigurationModel>;
33
+ /**
34
+ * Gets the details of the alert configuration setting.
35
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
36
+ * @param vaultName The vault name.
37
+ * @param emailConfigurationName The email configuration name.
38
+ * @param options The options parameters.
39
+ */
40
+ get(
41
+ resourceGroupName: string,
42
+ vaultName: string,
43
+ emailConfigurationName: string,
44
+ options?: EmailConfigurationGetOptionalParams
45
+ ): Promise<EmailConfigurationGetResponse>;
46
+ /**
47
+ * Creates an alert configuration setting for the given vault.
48
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
49
+ * @param vaultName The vault name.
50
+ * @param emailConfigurationName The email configuration name.
51
+ * @param options The options parameters.
52
+ */
53
+ create(
54
+ resourceGroupName: string,
55
+ vaultName: string,
56
+ emailConfigurationName: string,
57
+ options?: EmailConfigurationCreateOptionalParams
58
+ ): Promise<EmailConfigurationCreateResponse>;
59
+ }
@@ -0,0 +1,44 @@
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 } from "@azure/core-paging";
10
+ import {
11
+ EventModel,
12
+ EventListOptionalParams,
13
+ EventGetOptionalParams,
14
+ EventGetResponse
15
+ } from "../models";
16
+
17
+ /// <reference lib="esnext.asynciterable" />
18
+ /** Interface representing a Event. */
19
+ export interface Event {
20
+ /**
21
+ * Gets the list of events in the given vault.
22
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
23
+ * @param vaultName The vault name.
24
+ * @param options The options parameters.
25
+ */
26
+ list(
27
+ resourceGroupName: string,
28
+ vaultName: string,
29
+ options?: EventListOptionalParams
30
+ ): PagedAsyncIterableIterator<EventModel>;
31
+ /**
32
+ * Gets the details of the event.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param vaultName The vault name.
35
+ * @param eventName The event name.
36
+ * @param options The options parameters.
37
+ */
38
+ get(
39
+ resourceGroupName: string,
40
+ vaultName: string,
41
+ eventName: string,
42
+ options?: EventGetOptionalParams
43
+ ): Promise<EventGetResponse>;
44
+ }