@azure/arm-datamigration 3.0.0-alpha.20250721.1 → 3.0.0-alpha.20250730.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 (502) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +0 -3
  3. package/dist/browser/dataMigrationManagementClient.d.ts +5 -1
  4. package/dist/browser/dataMigrationManagementClient.d.ts.map +1 -1
  5. package/dist/browser/dataMigrationManagementClient.js +19 -9
  6. package/dist/browser/dataMigrationManagementClient.js.map +1 -1
  7. package/dist/browser/lroImpl.d.ts +6 -11
  8. package/dist/browser/lroImpl.d.ts.map +1 -1
  9. package/dist/browser/lroImpl.js +16 -24
  10. package/dist/browser/lroImpl.js.map +1 -1
  11. package/dist/browser/models/index.d.ts +968 -216
  12. package/dist/browser/models/index.d.ts.map +1 -1
  13. package/dist/browser/models/index.js +52 -8
  14. package/dist/browser/models/index.js.map +1 -1
  15. package/dist/browser/models/mappers.d.ts +47 -14
  16. package/dist/browser/models/mappers.d.ts.map +1 -1
  17. package/dist/browser/models/mappers.js +5228 -4055
  18. package/dist/browser/models/mappers.js.map +1 -1
  19. package/dist/browser/models/parameters.d.ts +21 -12
  20. package/dist/browser/models/parameters.d.ts.map +1 -1
  21. package/dist/browser/models/parameters.js +184 -110
  22. package/dist/browser/models/parameters.js.map +1 -1
  23. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
  24. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  25. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +363 -0
  26. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  27. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
  28. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  29. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +363 -0
  30. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  31. package/dist/browser/operations/databaseMigrationsSqlDb.d.ts +81 -0
  32. package/dist/browser/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
  33. package/dist/browser/operations/databaseMigrationsSqlDb.js +319 -0
  34. package/dist/browser/operations/databaseMigrationsSqlDb.js.map +1 -0
  35. package/dist/browser/operations/databaseMigrationsSqlMi.d.ts +11 -11
  36. package/dist/browser/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  37. package/dist/browser/operations/databaseMigrationsSqlMi.js +89 -77
  38. package/dist/browser/operations/databaseMigrationsSqlMi.js.map +1 -1
  39. package/dist/browser/operations/databaseMigrationsSqlVm.d.ts +11 -11
  40. package/dist/browser/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  41. package/dist/browser/operations/databaseMigrationsSqlVm.js +89 -77
  42. package/dist/browser/operations/databaseMigrationsSqlVm.js.map +1 -1
  43. package/dist/browser/operations/files.js +43 -44
  44. package/dist/browser/operations/files.js.map +1 -1
  45. package/dist/browser/operations/index.d.ts +4 -0
  46. package/dist/browser/operations/index.d.ts.map +1 -1
  47. package/dist/browser/operations/index.js +4 -0
  48. package/dist/browser/operations/index.js.map +1 -1
  49. package/dist/browser/operations/migrationServices.d.ts +144 -0
  50. package/dist/browser/operations/migrationServices.d.ts.map +1 -0
  51. package/dist/browser/operations/migrationServices.js +640 -0
  52. package/dist/browser/operations/migrationServices.js.map +1 -0
  53. package/dist/browser/operations/operations.js +7 -8
  54. package/dist/browser/operations/operations.js.map +1 -1
  55. package/dist/browser/operations/projects.js +33 -34
  56. package/dist/browser/operations/projects.js.map +1 -1
  57. package/dist/browser/operations/resourceSkus.d.ts +2 -2
  58. package/dist/browser/operations/resourceSkus.js +12 -13
  59. package/dist/browser/operations/resourceSkus.js.map +1 -1
  60. package/dist/browser/operations/serviceTasks.d.ts +16 -13
  61. package/dist/browser/operations/serviceTasks.d.ts.map +1 -1
  62. package/dist/browser/operations/serviceTasks.js +55 -53
  63. package/dist/browser/operations/serviceTasks.js.map +1 -1
  64. package/dist/browser/operations/services.d.ts +59 -58
  65. package/dist/browser/operations/services.d.ts.map +1 -1
  66. package/dist/browser/operations/services.js +204 -186
  67. package/dist/browser/operations/services.js.map +1 -1
  68. package/dist/browser/operations/sqlMigrationServices.d.ts +13 -12
  69. package/dist/browser/operations/sqlMigrationServices.d.ts.map +1 -1
  70. package/dist/browser/operations/sqlMigrationServices.js +116 -106
  71. package/dist/browser/operations/sqlMigrationServices.js.map +1 -1
  72. package/dist/browser/operations/tasks.d.ts +20 -20
  73. package/dist/browser/operations/tasks.js +65 -66
  74. package/dist/browser/operations/tasks.js.map +1 -1
  75. package/dist/browser/operations/usages.d.ts +4 -4
  76. package/dist/browser/operations/usages.js +15 -16
  77. package/dist/browser/operations/usages.js.map +1 -1
  78. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
  79. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  80. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
  81. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  82. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
  83. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  84. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
  85. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  86. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
  87. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
  88. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
  89. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
  90. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
  91. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  92. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  93. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
  94. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  95. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  96. package/dist/browser/operationsInterfaces/files.js.map +1 -1
  97. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  98. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  99. package/dist/browser/operationsInterfaces/index.js +4 -0
  100. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  101. package/dist/browser/operationsInterfaces/migrationServices.d.ts +87 -0
  102. package/dist/browser/operationsInterfaces/migrationServices.d.ts.map +1 -0
  103. package/dist/browser/operationsInterfaces/migrationServices.js +9 -0
  104. package/dist/browser/operationsInterfaces/migrationServices.js.map +1 -0
  105. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  106. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  107. package/dist/browser/operationsInterfaces/projects.js.map +1 -1
  108. package/dist/browser/operationsInterfaces/resourceSkus.d.ts +1 -1
  109. package/dist/browser/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  110. package/dist/browser/operationsInterfaces/resourceSkus.js.map +1 -1
  111. package/dist/browser/operationsInterfaces/serviceTasks.d.ts +12 -10
  112. package/dist/browser/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  113. package/dist/browser/operationsInterfaces/serviceTasks.js.map +1 -1
  114. package/dist/browser/operationsInterfaces/services.d.ts +53 -52
  115. package/dist/browser/operationsInterfaces/services.d.ts.map +1 -1
  116. package/dist/browser/operationsInterfaces/services.js.map +1 -1
  117. package/dist/browser/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
  118. package/dist/browser/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  119. package/dist/browser/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  120. package/dist/browser/operationsInterfaces/tasks.d.ts +17 -17
  121. package/dist/browser/operationsInterfaces/tasks.js.map +1 -1
  122. package/dist/browser/operationsInterfaces/usages.d.ts +2 -2
  123. package/dist/browser/operationsInterfaces/usages.js.map +1 -1
  124. package/dist/browser/pagingHelper.d.ts +4 -4
  125. package/dist/browser/pagingHelper.js +4 -4
  126. package/dist/browser/pagingHelper.js.map +1 -1
  127. package/dist/commonjs/dataMigrationManagementClient.d.ts +5 -1
  128. package/dist/commonjs/dataMigrationManagementClient.d.ts.map +1 -1
  129. package/dist/commonjs/dataMigrationManagementClient.js +18 -8
  130. package/dist/commonjs/dataMigrationManagementClient.js.map +1 -1
  131. package/dist/commonjs/lroImpl.d.ts +6 -11
  132. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  133. package/dist/commonjs/lroImpl.js +17 -26
  134. package/dist/commonjs/lroImpl.js.map +1 -1
  135. package/dist/commonjs/models/index.d.ts +968 -216
  136. package/dist/commonjs/models/index.d.ts.map +1 -1
  137. package/dist/commonjs/models/index.js +54 -10
  138. package/dist/commonjs/models/index.js.map +1 -1
  139. package/dist/commonjs/models/mappers.d.ts +47 -14
  140. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  141. package/dist/commonjs/models/mappers.js +5235 -4062
  142. package/dist/commonjs/models/mappers.js.map +1 -1
  143. package/dist/commonjs/models/parameters.d.ts +21 -12
  144. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  145. package/dist/commonjs/models/parameters.js +184 -110
  146. package/dist/commonjs/models/parameters.js.map +1 -1
  147. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
  148. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  149. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +368 -0
  150. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  151. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
  152. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  153. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +368 -0
  154. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  155. package/dist/commonjs/operations/databaseMigrationsSqlDb.d.ts +81 -0
  156. package/dist/commonjs/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
  157. package/dist/commonjs/operations/databaseMigrationsSqlDb.js +324 -0
  158. package/dist/commonjs/operations/databaseMigrationsSqlDb.js.map +1 -0
  159. package/dist/commonjs/operations/databaseMigrationsSqlMi.d.ts +11 -11
  160. package/dist/commonjs/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  161. package/dist/commonjs/operations/databaseMigrationsSqlMi.js +87 -75
  162. package/dist/commonjs/operations/databaseMigrationsSqlMi.js.map +1 -1
  163. package/dist/commonjs/operations/databaseMigrationsSqlVm.d.ts +11 -11
  164. package/dist/commonjs/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  165. package/dist/commonjs/operations/databaseMigrationsSqlVm.js +87 -75
  166. package/dist/commonjs/operations/databaseMigrationsSqlVm.js.map +1 -1
  167. package/dist/commonjs/operations/files.js +43 -44
  168. package/dist/commonjs/operations/files.js.map +1 -1
  169. package/dist/commonjs/operations/index.d.ts +4 -0
  170. package/dist/commonjs/operations/index.d.ts.map +1 -1
  171. package/dist/commonjs/operations/index.js +4 -0
  172. package/dist/commonjs/operations/index.js.map +1 -1
  173. package/dist/commonjs/operations/migrationServices.d.ts +144 -0
  174. package/dist/commonjs/operations/migrationServices.d.ts.map +1 -0
  175. package/dist/commonjs/operations/migrationServices.js +645 -0
  176. package/dist/commonjs/operations/migrationServices.js.map +1 -0
  177. package/dist/commonjs/operations/operations.js +7 -8
  178. package/dist/commonjs/operations/operations.js.map +1 -1
  179. package/dist/commonjs/operations/projects.js +33 -34
  180. package/dist/commonjs/operations/projects.js.map +1 -1
  181. package/dist/commonjs/operations/resourceSkus.d.ts +2 -2
  182. package/dist/commonjs/operations/resourceSkus.js +12 -13
  183. package/dist/commonjs/operations/resourceSkus.js.map +1 -1
  184. package/dist/commonjs/operations/serviceTasks.d.ts +16 -13
  185. package/dist/commonjs/operations/serviceTasks.d.ts.map +1 -1
  186. package/dist/commonjs/operations/serviceTasks.js +55 -53
  187. package/dist/commonjs/operations/serviceTasks.js.map +1 -1
  188. package/dist/commonjs/operations/services.d.ts +59 -58
  189. package/dist/commonjs/operations/services.d.ts.map +1 -1
  190. package/dist/commonjs/operations/services.js +202 -184
  191. package/dist/commonjs/operations/services.js.map +1 -1
  192. package/dist/commonjs/operations/sqlMigrationServices.d.ts +13 -12
  193. package/dist/commonjs/operations/sqlMigrationServices.d.ts.map +1 -1
  194. package/dist/commonjs/operations/sqlMigrationServices.js +114 -104
  195. package/dist/commonjs/operations/sqlMigrationServices.js.map +1 -1
  196. package/dist/commonjs/operations/tasks.d.ts +20 -20
  197. package/dist/commonjs/operations/tasks.js +65 -66
  198. package/dist/commonjs/operations/tasks.js.map +1 -1
  199. package/dist/commonjs/operations/usages.d.ts +4 -4
  200. package/dist/commonjs/operations/usages.js +15 -16
  201. package/dist/commonjs/operations/usages.js.map +1 -1
  202. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
  203. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  204. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +10 -0
  205. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  206. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
  207. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  208. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +10 -0
  209. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  210. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
  211. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
  212. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.js +10 -0
  213. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
  214. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
  215. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  216. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  217. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
  218. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  219. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  220. package/dist/commonjs/operationsInterfaces/files.js.map +1 -1
  221. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  222. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  223. package/dist/commonjs/operationsInterfaces/index.js +4 -0
  224. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  225. package/dist/commonjs/operationsInterfaces/migrationServices.d.ts +87 -0
  226. package/dist/commonjs/operationsInterfaces/migrationServices.d.ts.map +1 -0
  227. package/dist/commonjs/operationsInterfaces/migrationServices.js +10 -0
  228. package/dist/commonjs/operationsInterfaces/migrationServices.js.map +1 -0
  229. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  230. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  231. package/dist/commonjs/operationsInterfaces/projects.js.map +1 -1
  232. package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts +1 -1
  233. package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  234. package/dist/commonjs/operationsInterfaces/resourceSkus.js.map +1 -1
  235. package/dist/commonjs/operationsInterfaces/serviceTasks.d.ts +12 -10
  236. package/dist/commonjs/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  237. package/dist/commonjs/operationsInterfaces/serviceTasks.js.map +1 -1
  238. package/dist/commonjs/operationsInterfaces/services.d.ts +53 -52
  239. package/dist/commonjs/operationsInterfaces/services.d.ts.map +1 -1
  240. package/dist/commonjs/operationsInterfaces/services.js.map +1 -1
  241. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
  242. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  243. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  244. package/dist/commonjs/operationsInterfaces/tasks.d.ts +17 -17
  245. package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -1
  246. package/dist/commonjs/operationsInterfaces/usages.d.ts +2 -2
  247. package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
  248. package/dist/commonjs/pagingHelper.d.ts +4 -4
  249. package/dist/commonjs/pagingHelper.js +4 -4
  250. package/dist/commonjs/pagingHelper.js.map +1 -1
  251. package/dist/commonjs/tsdoc-metadata.json +1 -1
  252. package/dist/esm/dataMigrationManagementClient.d.ts +5 -1
  253. package/dist/esm/dataMigrationManagementClient.d.ts.map +1 -1
  254. package/dist/esm/dataMigrationManagementClient.js +19 -9
  255. package/dist/esm/dataMigrationManagementClient.js.map +1 -1
  256. package/dist/esm/lroImpl.d.ts +6 -11
  257. package/dist/esm/lroImpl.d.ts.map +1 -1
  258. package/dist/esm/lroImpl.js +16 -24
  259. package/dist/esm/lroImpl.js.map +1 -1
  260. package/dist/esm/models/index.d.ts +968 -216
  261. package/dist/esm/models/index.d.ts.map +1 -1
  262. package/dist/esm/models/index.js +52 -8
  263. package/dist/esm/models/index.js.map +1 -1
  264. package/dist/esm/models/mappers.d.ts +47 -14
  265. package/dist/esm/models/mappers.d.ts.map +1 -1
  266. package/dist/esm/models/mappers.js +5228 -4055
  267. package/dist/esm/models/mappers.js.map +1 -1
  268. package/dist/esm/models/parameters.d.ts +21 -12
  269. package/dist/esm/models/parameters.d.ts.map +1 -1
  270. package/dist/esm/models/parameters.js +184 -110
  271. package/dist/esm/models/parameters.js.map +1 -1
  272. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
  273. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  274. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +363 -0
  275. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  276. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
  277. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  278. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +363 -0
  279. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  280. package/dist/esm/operations/databaseMigrationsSqlDb.d.ts +81 -0
  281. package/dist/esm/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
  282. package/dist/esm/operations/databaseMigrationsSqlDb.js +319 -0
  283. package/dist/esm/operations/databaseMigrationsSqlDb.js.map +1 -0
  284. package/dist/esm/operations/databaseMigrationsSqlMi.d.ts +11 -11
  285. package/dist/esm/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  286. package/dist/esm/operations/databaseMigrationsSqlMi.js +89 -77
  287. package/dist/esm/operations/databaseMigrationsSqlMi.js.map +1 -1
  288. package/dist/esm/operations/databaseMigrationsSqlVm.d.ts +11 -11
  289. package/dist/esm/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  290. package/dist/esm/operations/databaseMigrationsSqlVm.js +89 -77
  291. package/dist/esm/operations/databaseMigrationsSqlVm.js.map +1 -1
  292. package/dist/esm/operations/files.js +43 -44
  293. package/dist/esm/operations/files.js.map +1 -1
  294. package/dist/esm/operations/index.d.ts +4 -0
  295. package/dist/esm/operations/index.d.ts.map +1 -1
  296. package/dist/esm/operations/index.js +4 -0
  297. package/dist/esm/operations/index.js.map +1 -1
  298. package/dist/esm/operations/migrationServices.d.ts +144 -0
  299. package/dist/esm/operations/migrationServices.d.ts.map +1 -0
  300. package/dist/esm/operations/migrationServices.js +640 -0
  301. package/dist/esm/operations/migrationServices.js.map +1 -0
  302. package/dist/esm/operations/operations.js +7 -8
  303. package/dist/esm/operations/operations.js.map +1 -1
  304. package/dist/esm/operations/projects.js +33 -34
  305. package/dist/esm/operations/projects.js.map +1 -1
  306. package/dist/esm/operations/resourceSkus.d.ts +2 -2
  307. package/dist/esm/operations/resourceSkus.js +12 -13
  308. package/dist/esm/operations/resourceSkus.js.map +1 -1
  309. package/dist/esm/operations/serviceTasks.d.ts +16 -13
  310. package/dist/esm/operations/serviceTasks.d.ts.map +1 -1
  311. package/dist/esm/operations/serviceTasks.js +55 -53
  312. package/dist/esm/operations/serviceTasks.js.map +1 -1
  313. package/dist/esm/operations/services.d.ts +59 -58
  314. package/dist/esm/operations/services.d.ts.map +1 -1
  315. package/dist/esm/operations/services.js +204 -186
  316. package/dist/esm/operations/services.js.map +1 -1
  317. package/dist/esm/operations/sqlMigrationServices.d.ts +13 -12
  318. package/dist/esm/operations/sqlMigrationServices.d.ts.map +1 -1
  319. package/dist/esm/operations/sqlMigrationServices.js +116 -106
  320. package/dist/esm/operations/sqlMigrationServices.js.map +1 -1
  321. package/dist/esm/operations/tasks.d.ts +20 -20
  322. package/dist/esm/operations/tasks.js +65 -66
  323. package/dist/esm/operations/tasks.js.map +1 -1
  324. package/dist/esm/operations/usages.d.ts +4 -4
  325. package/dist/esm/operations/usages.js +15 -16
  326. package/dist/esm/operations/usages.js.map +1 -1
  327. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
  328. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  329. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
  330. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  331. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
  332. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  333. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
  334. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  335. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
  336. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
  337. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
  338. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
  339. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
  340. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  341. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  342. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
  343. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  344. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  345. package/dist/esm/operationsInterfaces/files.js.map +1 -1
  346. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  347. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  348. package/dist/esm/operationsInterfaces/index.js +4 -0
  349. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  350. package/dist/esm/operationsInterfaces/migrationServices.d.ts +87 -0
  351. package/dist/esm/operationsInterfaces/migrationServices.d.ts.map +1 -0
  352. package/dist/esm/operationsInterfaces/migrationServices.js +9 -0
  353. package/dist/esm/operationsInterfaces/migrationServices.js.map +1 -0
  354. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  355. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  356. package/dist/esm/operationsInterfaces/projects.js.map +1 -1
  357. package/dist/esm/operationsInterfaces/resourceSkus.d.ts +1 -1
  358. package/dist/esm/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  359. package/dist/esm/operationsInterfaces/resourceSkus.js.map +1 -1
  360. package/dist/esm/operationsInterfaces/serviceTasks.d.ts +12 -10
  361. package/dist/esm/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  362. package/dist/esm/operationsInterfaces/serviceTasks.js.map +1 -1
  363. package/dist/esm/operationsInterfaces/services.d.ts +53 -52
  364. package/dist/esm/operationsInterfaces/services.d.ts.map +1 -1
  365. package/dist/esm/operationsInterfaces/services.js.map +1 -1
  366. package/dist/esm/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
  367. package/dist/esm/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  368. package/dist/esm/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  369. package/dist/esm/operationsInterfaces/tasks.d.ts +17 -17
  370. package/dist/esm/operationsInterfaces/tasks.js.map +1 -1
  371. package/dist/esm/operationsInterfaces/usages.d.ts +2 -2
  372. package/dist/esm/operationsInterfaces/usages.js.map +1 -1
  373. package/dist/esm/pagingHelper.d.ts +4 -4
  374. package/dist/esm/pagingHelper.js +4 -4
  375. package/dist/esm/pagingHelper.js.map +1 -1
  376. package/dist/react-native/dataMigrationManagementClient.d.ts +5 -1
  377. package/dist/react-native/dataMigrationManagementClient.d.ts.map +1 -1
  378. package/dist/react-native/dataMigrationManagementClient.js +19 -9
  379. package/dist/react-native/dataMigrationManagementClient.js.map +1 -1
  380. package/dist/react-native/lroImpl.d.ts +6 -11
  381. package/dist/react-native/lroImpl.d.ts.map +1 -1
  382. package/dist/react-native/lroImpl.js +16 -24
  383. package/dist/react-native/lroImpl.js.map +1 -1
  384. package/dist/react-native/models/index.d.ts +968 -216
  385. package/dist/react-native/models/index.d.ts.map +1 -1
  386. package/dist/react-native/models/index.js +52 -8
  387. package/dist/react-native/models/index.js.map +1 -1
  388. package/dist/react-native/models/mappers.d.ts +47 -14
  389. package/dist/react-native/models/mappers.d.ts.map +1 -1
  390. package/dist/react-native/models/mappers.js +5228 -4055
  391. package/dist/react-native/models/mappers.js.map +1 -1
  392. package/dist/react-native/models/parameters.d.ts +21 -12
  393. package/dist/react-native/models/parameters.d.ts.map +1 -1
  394. package/dist/react-native/models/parameters.js +184 -110
  395. package/dist/react-native/models/parameters.js.map +1 -1
  396. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
  397. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  398. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +363 -0
  399. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  400. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
  401. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  402. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +363 -0
  403. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  404. package/dist/react-native/operations/databaseMigrationsSqlDb.d.ts +81 -0
  405. package/dist/react-native/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
  406. package/dist/react-native/operations/databaseMigrationsSqlDb.js +319 -0
  407. package/dist/react-native/operations/databaseMigrationsSqlDb.js.map +1 -0
  408. package/dist/react-native/operations/databaseMigrationsSqlMi.d.ts +11 -11
  409. package/dist/react-native/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  410. package/dist/react-native/operations/databaseMigrationsSqlMi.js +89 -77
  411. package/dist/react-native/operations/databaseMigrationsSqlMi.js.map +1 -1
  412. package/dist/react-native/operations/databaseMigrationsSqlVm.d.ts +11 -11
  413. package/dist/react-native/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  414. package/dist/react-native/operations/databaseMigrationsSqlVm.js +89 -77
  415. package/dist/react-native/operations/databaseMigrationsSqlVm.js.map +1 -1
  416. package/dist/react-native/operations/files.js +43 -44
  417. package/dist/react-native/operations/files.js.map +1 -1
  418. package/dist/react-native/operations/index.d.ts +4 -0
  419. package/dist/react-native/operations/index.d.ts.map +1 -1
  420. package/dist/react-native/operations/index.js +4 -0
  421. package/dist/react-native/operations/index.js.map +1 -1
  422. package/dist/react-native/operations/migrationServices.d.ts +144 -0
  423. package/dist/react-native/operations/migrationServices.d.ts.map +1 -0
  424. package/dist/react-native/operations/migrationServices.js +640 -0
  425. package/dist/react-native/operations/migrationServices.js.map +1 -0
  426. package/dist/react-native/operations/operations.js +7 -8
  427. package/dist/react-native/operations/operations.js.map +1 -1
  428. package/dist/react-native/operations/projects.js +33 -34
  429. package/dist/react-native/operations/projects.js.map +1 -1
  430. package/dist/react-native/operations/resourceSkus.d.ts +2 -2
  431. package/dist/react-native/operations/resourceSkus.js +12 -13
  432. package/dist/react-native/operations/resourceSkus.js.map +1 -1
  433. package/dist/react-native/operations/serviceTasks.d.ts +16 -13
  434. package/dist/react-native/operations/serviceTasks.d.ts.map +1 -1
  435. package/dist/react-native/operations/serviceTasks.js +55 -53
  436. package/dist/react-native/operations/serviceTasks.js.map +1 -1
  437. package/dist/react-native/operations/services.d.ts +59 -58
  438. package/dist/react-native/operations/services.d.ts.map +1 -1
  439. package/dist/react-native/operations/services.js +204 -186
  440. package/dist/react-native/operations/services.js.map +1 -1
  441. package/dist/react-native/operations/sqlMigrationServices.d.ts +13 -12
  442. package/dist/react-native/operations/sqlMigrationServices.d.ts.map +1 -1
  443. package/dist/react-native/operations/sqlMigrationServices.js +116 -106
  444. package/dist/react-native/operations/sqlMigrationServices.js.map +1 -1
  445. package/dist/react-native/operations/tasks.d.ts +20 -20
  446. package/dist/react-native/operations/tasks.js +65 -66
  447. package/dist/react-native/operations/tasks.js.map +1 -1
  448. package/dist/react-native/operations/usages.d.ts +4 -4
  449. package/dist/react-native/operations/usages.js +15 -16
  450. package/dist/react-native/operations/usages.js.map +1 -1
  451. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
  452. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  453. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
  454. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  455. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
  456. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  457. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
  458. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  459. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
  460. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
  461. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
  462. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
  463. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
  464. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  465. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  466. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
  467. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  468. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  469. package/dist/react-native/operationsInterfaces/files.js.map +1 -1
  470. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  471. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  472. package/dist/react-native/operationsInterfaces/index.js +4 -0
  473. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  474. package/dist/react-native/operationsInterfaces/migrationServices.d.ts +87 -0
  475. package/dist/react-native/operationsInterfaces/migrationServices.d.ts.map +1 -0
  476. package/dist/react-native/operationsInterfaces/migrationServices.js +9 -0
  477. package/dist/react-native/operationsInterfaces/migrationServices.js.map +1 -0
  478. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  479. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  480. package/dist/react-native/operationsInterfaces/projects.js.map +1 -1
  481. package/dist/react-native/operationsInterfaces/resourceSkus.d.ts +1 -1
  482. package/dist/react-native/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  483. package/dist/react-native/operationsInterfaces/resourceSkus.js.map +1 -1
  484. package/dist/react-native/operationsInterfaces/serviceTasks.d.ts +12 -10
  485. package/dist/react-native/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  486. package/dist/react-native/operationsInterfaces/serviceTasks.js.map +1 -1
  487. package/dist/react-native/operationsInterfaces/services.d.ts +53 -52
  488. package/dist/react-native/operationsInterfaces/services.d.ts.map +1 -1
  489. package/dist/react-native/operationsInterfaces/services.js.map +1 -1
  490. package/dist/react-native/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
  491. package/dist/react-native/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  492. package/dist/react-native/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  493. package/dist/react-native/operationsInterfaces/tasks.d.ts +17 -17
  494. package/dist/react-native/operationsInterfaces/tasks.js.map +1 -1
  495. package/dist/react-native/operationsInterfaces/usages.d.ts +2 -2
  496. package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
  497. package/dist/react-native/pagingHelper.d.ts +4 -4
  498. package/dist/react-native/pagingHelper.js +4 -4
  499. package/dist/react-native/pagingHelper.js.map +1 -1
  500. package/package.json +26 -27
  501. package/CHANGELOG.md +0 -21
  502. package/review/arm-datamigration-node.api.md +0 -4103
@@ -0,0 +1,640 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { setContinuationToken } from "../pagingHelper.js";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
12
+ import { createHttpPoller, } from "@azure/core-lro";
13
+ import { createLroSpec } from "../lroImpl.js";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing MigrationServices operations. */
16
+ export class MigrationServicesImpl {
17
+ client;
18
+ /**
19
+ * Initialize a new instance of the class MigrationServices class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Retrieve all migration services in the resource group.
27
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
28
+ * value from the Azure Resource Manager API or the portal.
29
+ * @param options The options parameters.
30
+ */
31
+ listByResourceGroup(resourceGroupName, options) {
32
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings?.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
45
+ },
46
+ };
47
+ }
48
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByResourceGroup(resourceGroupName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
65
+ }
66
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
67
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
68
+ yield* page;
69
+ }
70
+ }
71
+ /**
72
+ * Retrieve all migration services in the subscriptions.
73
+ * @param options The options parameters.
74
+ */
75
+ listBySubscription(options) {
76
+ const iter = this.listBySubscriptionPagingAll(options);
77
+ return {
78
+ next() {
79
+ return iter.next();
80
+ },
81
+ [Symbol.asyncIterator]() {
82
+ return this;
83
+ },
84
+ byPage: (settings) => {
85
+ if (settings?.maxPageSize) {
86
+ throw new Error("maxPageSize is not supported by this operation.");
87
+ }
88
+ return this.listBySubscriptionPagingPage(options, settings);
89
+ },
90
+ };
91
+ }
92
+ async *listBySubscriptionPagingPage(options, settings) {
93
+ let result;
94
+ let continuationToken = settings?.continuationToken;
95
+ if (!continuationToken) {
96
+ result = await this._listBySubscription(options);
97
+ let page = result.value || [];
98
+ continuationToken = result.nextLink;
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
101
+ }
102
+ while (continuationToken) {
103
+ result = await this._listBySubscriptionNext(continuationToken, options);
104
+ continuationToken = result.nextLink;
105
+ let page = result.value || [];
106
+ setContinuationToken(page, continuationToken);
107
+ yield page;
108
+ }
109
+ }
110
+ async *listBySubscriptionPagingAll(options) {
111
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
112
+ yield* page;
113
+ }
114
+ }
115
+ /**
116
+ * Retrieve the List of database migrations attached to the service.
117
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
118
+ * value from the Azure Resource Manager API or the portal.
119
+ * @param migrationServiceName Name of the Migration Service.
120
+ * @param options The options parameters.
121
+ */
122
+ listMigrations(resourceGroupName, migrationServiceName, options) {
123
+ const iter = this.listMigrationsPagingAll(resourceGroupName, migrationServiceName, options);
124
+ return {
125
+ next() {
126
+ return iter.next();
127
+ },
128
+ [Symbol.asyncIterator]() {
129
+ return this;
130
+ },
131
+ byPage: (settings) => {
132
+ if (settings?.maxPageSize) {
133
+ throw new Error("maxPageSize is not supported by this operation.");
134
+ }
135
+ return this.listMigrationsPagingPage(resourceGroupName, migrationServiceName, options, settings);
136
+ },
137
+ };
138
+ }
139
+ async *listMigrationsPagingPage(resourceGroupName, migrationServiceName, options, settings) {
140
+ let result;
141
+ let continuationToken = settings?.continuationToken;
142
+ if (!continuationToken) {
143
+ result = await this._listMigrations(resourceGroupName, migrationServiceName, options);
144
+ let page = result.value || [];
145
+ continuationToken = result.nextLink;
146
+ setContinuationToken(page, continuationToken);
147
+ yield page;
148
+ }
149
+ while (continuationToken) {
150
+ result = await this._listMigrationsNext(resourceGroupName, migrationServiceName, continuationToken, options);
151
+ continuationToken = result.nextLink;
152
+ let page = result.value || [];
153
+ setContinuationToken(page, continuationToken);
154
+ yield page;
155
+ }
156
+ }
157
+ async *listMigrationsPagingAll(resourceGroupName, migrationServiceName, options) {
158
+ for await (const page of this.listMigrationsPagingPage(resourceGroupName, migrationServiceName, options)) {
159
+ yield* page;
160
+ }
161
+ }
162
+ /**
163
+ * Retrieve the Database Migration Service
164
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
165
+ * value from the Azure Resource Manager API or the portal.
166
+ * @param migrationServiceName Name of the Migration Service.
167
+ * @param options The options parameters.
168
+ */
169
+ get(resourceGroupName, migrationServiceName, options) {
170
+ return this.client.sendOperationRequest({ resourceGroupName, migrationServiceName, options }, getOperationSpec);
171
+ }
172
+ /**
173
+ * Create or Update Database Migration Service.
174
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
175
+ * value from the Azure Resource Manager API or the portal.
176
+ * @param migrationServiceName Name of the Migration Service.
177
+ * @param parameters Details of MigrationService resource.
178
+ * @param options The options parameters.
179
+ */
180
+ async beginCreateOrUpdate(resourceGroupName, migrationServiceName, parameters, options) {
181
+ const directSendOperation = async (args, spec) => {
182
+ return this.client.sendOperationRequest(args, spec);
183
+ };
184
+ const sendOperationFn = async (args, spec) => {
185
+ let currentRawResponse = undefined;
186
+ const providedCallback = args.options?.onResponse;
187
+ const callback = (rawResponse, flatResponse) => {
188
+ currentRawResponse = rawResponse;
189
+ providedCallback?.(rawResponse, flatResponse);
190
+ };
191
+ const updatedArgs = {
192
+ ...args,
193
+ options: {
194
+ ...args.options,
195
+ onResponse: callback,
196
+ },
197
+ };
198
+ const flatResponse = await directSendOperation(updatedArgs, spec);
199
+ return {
200
+ flatResponse,
201
+ rawResponse: {
202
+ statusCode: currentRawResponse.status,
203
+ body: currentRawResponse.parsedBody,
204
+ headers: currentRawResponse.headers.toJSON(),
205
+ },
206
+ };
207
+ };
208
+ const lro = createLroSpec({
209
+ sendOperationFn,
210
+ args: { resourceGroupName, migrationServiceName, parameters, options },
211
+ spec: createOrUpdateOperationSpec,
212
+ });
213
+ const poller = await createHttpPoller(lro, {
214
+ restoreFrom: options?.resumeFrom,
215
+ intervalInMs: options?.updateIntervalInMs,
216
+ });
217
+ await poller.poll();
218
+ return poller;
219
+ }
220
+ /**
221
+ * Create or Update Database Migration Service.
222
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
223
+ * value from the Azure Resource Manager API or the portal.
224
+ * @param migrationServiceName Name of the Migration Service.
225
+ * @param parameters Details of MigrationService resource.
226
+ * @param options The options parameters.
227
+ */
228
+ async beginCreateOrUpdateAndWait(resourceGroupName, migrationServiceName, parameters, options) {
229
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, migrationServiceName, parameters, options);
230
+ return poller.pollUntilDone();
231
+ }
232
+ /**
233
+ * Delete Database Migration Service.
234
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
235
+ * value from the Azure Resource Manager API or the portal.
236
+ * @param migrationServiceName Name of the Migration Service.
237
+ * @param options The options parameters.
238
+ */
239
+ async beginDelete(resourceGroupName, migrationServiceName, options) {
240
+ const directSendOperation = async (args, spec) => {
241
+ return this.client.sendOperationRequest(args, spec);
242
+ };
243
+ const sendOperationFn = async (args, spec) => {
244
+ let currentRawResponse = undefined;
245
+ const providedCallback = args.options?.onResponse;
246
+ const callback = (rawResponse, flatResponse) => {
247
+ currentRawResponse = rawResponse;
248
+ providedCallback?.(rawResponse, flatResponse);
249
+ };
250
+ const updatedArgs = {
251
+ ...args,
252
+ options: {
253
+ ...args.options,
254
+ onResponse: callback,
255
+ },
256
+ };
257
+ const flatResponse = await directSendOperation(updatedArgs, spec);
258
+ return {
259
+ flatResponse,
260
+ rawResponse: {
261
+ statusCode: currentRawResponse.status,
262
+ body: currentRawResponse.parsedBody,
263
+ headers: currentRawResponse.headers.toJSON(),
264
+ },
265
+ };
266
+ };
267
+ const lro = createLroSpec({
268
+ sendOperationFn,
269
+ args: { resourceGroupName, migrationServiceName, options },
270
+ spec: deleteOperationSpec,
271
+ });
272
+ const poller = await createHttpPoller(lro, {
273
+ restoreFrom: options?.resumeFrom,
274
+ intervalInMs: options?.updateIntervalInMs,
275
+ });
276
+ await poller.poll();
277
+ return poller;
278
+ }
279
+ /**
280
+ * Delete Database Migration Service.
281
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
282
+ * value from the Azure Resource Manager API or the portal.
283
+ * @param migrationServiceName Name of the Migration Service.
284
+ * @param options The options parameters.
285
+ */
286
+ async beginDeleteAndWait(resourceGroupName, migrationServiceName, options) {
287
+ const poller = await this.beginDelete(resourceGroupName, migrationServiceName, options);
288
+ return poller.pollUntilDone();
289
+ }
290
+ /**
291
+ * Update Database Migration Service.
292
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
293
+ * value from the Azure Resource Manager API or the portal.
294
+ * @param migrationServiceName Name of the Migration Service.
295
+ * @param parameters Details of MigrationService resource.
296
+ * @param options The options parameters.
297
+ */
298
+ async beginUpdate(resourceGroupName, migrationServiceName, parameters, options) {
299
+ const directSendOperation = async (args, spec) => {
300
+ return this.client.sendOperationRequest(args, spec);
301
+ };
302
+ const sendOperationFn = async (args, spec) => {
303
+ let currentRawResponse = undefined;
304
+ const providedCallback = args.options?.onResponse;
305
+ const callback = (rawResponse, flatResponse) => {
306
+ currentRawResponse = rawResponse;
307
+ providedCallback?.(rawResponse, flatResponse);
308
+ };
309
+ const updatedArgs = {
310
+ ...args,
311
+ options: {
312
+ ...args.options,
313
+ onResponse: callback,
314
+ },
315
+ };
316
+ const flatResponse = await directSendOperation(updatedArgs, spec);
317
+ return {
318
+ flatResponse,
319
+ rawResponse: {
320
+ statusCode: currentRawResponse.status,
321
+ body: currentRawResponse.parsedBody,
322
+ headers: currentRawResponse.headers.toJSON(),
323
+ },
324
+ };
325
+ };
326
+ const lro = createLroSpec({
327
+ sendOperationFn,
328
+ args: { resourceGroupName, migrationServiceName, parameters, options },
329
+ spec: updateOperationSpec,
330
+ });
331
+ const poller = await createHttpPoller(lro, {
332
+ restoreFrom: options?.resumeFrom,
333
+ intervalInMs: options?.updateIntervalInMs,
334
+ });
335
+ await poller.poll();
336
+ return poller;
337
+ }
338
+ /**
339
+ * Update Database Migration Service.
340
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
341
+ * value from the Azure Resource Manager API or the portal.
342
+ * @param migrationServiceName Name of the Migration Service.
343
+ * @param parameters Details of MigrationService resource.
344
+ * @param options The options parameters.
345
+ */
346
+ async beginUpdateAndWait(resourceGroupName, migrationServiceName, parameters, options) {
347
+ const poller = await this.beginUpdate(resourceGroupName, migrationServiceName, parameters, options);
348
+ return poller.pollUntilDone();
349
+ }
350
+ /**
351
+ * Retrieve all migration services in the resource group.
352
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
353
+ * value from the Azure Resource Manager API or the portal.
354
+ * @param options The options parameters.
355
+ */
356
+ _listByResourceGroup(resourceGroupName, options) {
357
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
358
+ }
359
+ /**
360
+ * Retrieve all migration services in the subscriptions.
361
+ * @param options The options parameters.
362
+ */
363
+ _listBySubscription(options) {
364
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
365
+ }
366
+ /**
367
+ * Retrieve the List of database migrations attached to the service.
368
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
369
+ * value from the Azure Resource Manager API or the portal.
370
+ * @param migrationServiceName Name of the Migration Service.
371
+ * @param options The options parameters.
372
+ */
373
+ _listMigrations(resourceGroupName, migrationServiceName, options) {
374
+ return this.client.sendOperationRequest({ resourceGroupName, migrationServiceName, options }, listMigrationsOperationSpec);
375
+ }
376
+ /**
377
+ * ListByResourceGroupNext
378
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
379
+ * value from the Azure Resource Manager API or the portal.
380
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
381
+ * @param options The options parameters.
382
+ */
383
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
384
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
385
+ }
386
+ /**
387
+ * ListBySubscriptionNext
388
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
389
+ * @param options The options parameters.
390
+ */
391
+ _listBySubscriptionNext(nextLink, options) {
392
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
393
+ }
394
+ /**
395
+ * ListMigrationsNext
396
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
397
+ * value from the Azure Resource Manager API or the portal.
398
+ * @param migrationServiceName Name of the Migration Service.
399
+ * @param nextLink The nextLink from the previous successful call to the ListMigrations method.
400
+ * @param options The options parameters.
401
+ */
402
+ _listMigrationsNext(resourceGroupName, migrationServiceName, nextLink, options) {
403
+ return this.client.sendOperationRequest({ resourceGroupName, migrationServiceName, nextLink, options }, listMigrationsNextOperationSpec);
404
+ }
405
+ }
406
+ // Operation Specifications
407
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
408
+ const getOperationSpec = {
409
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}",
410
+ httpMethod: "GET",
411
+ responses: {
412
+ 200: {
413
+ bodyMapper: Mappers.MigrationService,
414
+ },
415
+ default: {
416
+ bodyMapper: Mappers.ErrorResponse,
417
+ },
418
+ },
419
+ queryParameters: [Parameters.apiVersion],
420
+ urlParameters: [
421
+ Parameters.$host,
422
+ Parameters.resourceGroupName,
423
+ Parameters.subscriptionId,
424
+ Parameters.migrationServiceName,
425
+ ],
426
+ headerParameters: [Parameters.accept],
427
+ serializer,
428
+ };
429
+ const createOrUpdateOperationSpec = {
430
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}",
431
+ httpMethod: "PUT",
432
+ responses: {
433
+ 200: {
434
+ bodyMapper: Mappers.MigrationService,
435
+ },
436
+ 201: {
437
+ bodyMapper: Mappers.MigrationService,
438
+ },
439
+ 202: {
440
+ bodyMapper: Mappers.MigrationService,
441
+ },
442
+ 204: {
443
+ bodyMapper: Mappers.MigrationService,
444
+ },
445
+ default: {
446
+ bodyMapper: Mappers.ErrorResponse,
447
+ },
448
+ },
449
+ requestBody: Parameters.parameters5,
450
+ queryParameters: [Parameters.apiVersion],
451
+ urlParameters: [
452
+ Parameters.$host,
453
+ Parameters.resourceGroupName,
454
+ Parameters.subscriptionId,
455
+ Parameters.migrationServiceName,
456
+ ],
457
+ headerParameters: [Parameters.accept, Parameters.contentType],
458
+ mediaType: "json",
459
+ serializer,
460
+ };
461
+ const deleteOperationSpec = {
462
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}",
463
+ httpMethod: "DELETE",
464
+ responses: {
465
+ 200: {
466
+ headersMapper: Mappers.MigrationServicesDeleteHeaders,
467
+ },
468
+ 201: {
469
+ headersMapper: Mappers.MigrationServicesDeleteHeaders,
470
+ },
471
+ 202: {
472
+ headersMapper: Mappers.MigrationServicesDeleteHeaders,
473
+ },
474
+ 204: {
475
+ headersMapper: Mappers.MigrationServicesDeleteHeaders,
476
+ },
477
+ default: {
478
+ bodyMapper: Mappers.ErrorResponse,
479
+ },
480
+ },
481
+ queryParameters: [Parameters.apiVersion],
482
+ urlParameters: [
483
+ Parameters.$host,
484
+ Parameters.resourceGroupName,
485
+ Parameters.subscriptionId,
486
+ Parameters.migrationServiceName,
487
+ ],
488
+ headerParameters: [Parameters.accept],
489
+ serializer,
490
+ };
491
+ const updateOperationSpec = {
492
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}",
493
+ httpMethod: "PATCH",
494
+ responses: {
495
+ 200: {
496
+ bodyMapper: Mappers.MigrationService,
497
+ },
498
+ 201: {
499
+ bodyMapper: Mappers.MigrationService,
500
+ },
501
+ 202: {
502
+ bodyMapper: Mappers.MigrationService,
503
+ },
504
+ 204: {
505
+ bodyMapper: Mappers.MigrationService,
506
+ },
507
+ default: {
508
+ bodyMapper: Mappers.ErrorResponse,
509
+ },
510
+ },
511
+ requestBody: Parameters.parameters6,
512
+ queryParameters: [Parameters.apiVersion],
513
+ urlParameters: [
514
+ Parameters.$host,
515
+ Parameters.resourceGroupName,
516
+ Parameters.subscriptionId,
517
+ Parameters.migrationServiceName,
518
+ ],
519
+ headerParameters: [Parameters.accept, Parameters.contentType],
520
+ mediaType: "json",
521
+ serializer,
522
+ };
523
+ const listByResourceGroupOperationSpec = {
524
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices",
525
+ httpMethod: "GET",
526
+ responses: {
527
+ 200: {
528
+ bodyMapper: Mappers.MigrationServiceListResult,
529
+ },
530
+ default: {
531
+ bodyMapper: Mappers.ErrorResponse,
532
+ },
533
+ },
534
+ queryParameters: [Parameters.apiVersion],
535
+ urlParameters: [
536
+ Parameters.$host,
537
+ Parameters.resourceGroupName,
538
+ Parameters.subscriptionId,
539
+ ],
540
+ headerParameters: [Parameters.accept],
541
+ serializer,
542
+ };
543
+ const listBySubscriptionOperationSpec = {
544
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/migrationServices",
545
+ httpMethod: "GET",
546
+ responses: {
547
+ 200: {
548
+ bodyMapper: Mappers.MigrationServiceListResult,
549
+ },
550
+ default: {
551
+ bodyMapper: Mappers.ErrorResponse,
552
+ },
553
+ },
554
+ queryParameters: [Parameters.apiVersion],
555
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
556
+ headerParameters: [Parameters.accept],
557
+ serializer,
558
+ };
559
+ const listMigrationsOperationSpec = {
560
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}/listMigrations",
561
+ httpMethod: "GET",
562
+ responses: {
563
+ 200: {
564
+ bodyMapper: Mappers.DatabaseMigrationBaseListResult,
565
+ },
566
+ default: {
567
+ bodyMapper: Mappers.ErrorResponse,
568
+ },
569
+ },
570
+ queryParameters: [Parameters.apiVersion],
571
+ urlParameters: [
572
+ Parameters.$host,
573
+ Parameters.resourceGroupName,
574
+ Parameters.subscriptionId,
575
+ Parameters.migrationServiceName,
576
+ ],
577
+ headerParameters: [Parameters.accept],
578
+ serializer,
579
+ };
580
+ const listByResourceGroupNextOperationSpec = {
581
+ path: "{nextLink}",
582
+ httpMethod: "GET",
583
+ responses: {
584
+ 200: {
585
+ bodyMapper: Mappers.MigrationServiceListResult,
586
+ },
587
+ default: {
588
+ bodyMapper: Mappers.ErrorResponse,
589
+ },
590
+ },
591
+ urlParameters: [
592
+ Parameters.$host,
593
+ Parameters.resourceGroupName,
594
+ Parameters.subscriptionId,
595
+ Parameters.nextLink,
596
+ ],
597
+ headerParameters: [Parameters.accept],
598
+ serializer,
599
+ };
600
+ const listBySubscriptionNextOperationSpec = {
601
+ path: "{nextLink}",
602
+ httpMethod: "GET",
603
+ responses: {
604
+ 200: {
605
+ bodyMapper: Mappers.MigrationServiceListResult,
606
+ },
607
+ default: {
608
+ bodyMapper: Mappers.ErrorResponse,
609
+ },
610
+ },
611
+ urlParameters: [
612
+ Parameters.$host,
613
+ Parameters.subscriptionId,
614
+ Parameters.nextLink,
615
+ ],
616
+ headerParameters: [Parameters.accept],
617
+ serializer,
618
+ };
619
+ const listMigrationsNextOperationSpec = {
620
+ path: "{nextLink}",
621
+ httpMethod: "GET",
622
+ responses: {
623
+ 200: {
624
+ bodyMapper: Mappers.DatabaseMigrationBaseListResult,
625
+ },
626
+ default: {
627
+ bodyMapper: Mappers.ErrorResponse,
628
+ },
629
+ },
630
+ urlParameters: [
631
+ Parameters.$host,
632
+ Parameters.resourceGroupName,
633
+ Parameters.subscriptionId,
634
+ Parameters.nextLink,
635
+ Parameters.migrationServiceName,
636
+ ],
637
+ headerParameters: [Parameters.accept],
638
+ serializer,
639
+ };
640
+ //# sourceMappingURL=migrationServices.js.map