@azure/arm-datamigration 3.0.0-alpha.20250718.1 → 3.0.0-alpha.20250723.2

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