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