@azure/arm-datamigration 3.0.0-alpha.20250721.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 +19 -32
  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 +12 -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 +5531 -5222
  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 +95 -99
  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 +95 -99
  42. package/dist/browser/operations/databaseMigrationsSqlVm.js.map +1 -1
  43. package/dist/browser/operations/files.js +83 -67
  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 +47 -31
  54. package/dist/browser/operations/operations.js.map +1 -1
  55. package/dist/browser/operations/projects.js +73 -57
  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 +52 -36
  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 +95 -76
  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 +332 -288
  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 +240 -194
  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 +105 -89
  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 +55 -39
  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 +8 -6
  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 -31
  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 +13 -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 +5538 -5229
  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 +93 -97
  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 +93 -97
  166. package/dist/commonjs/operations/databaseMigrationsSqlVm.js.map +1 -1
  167. package/dist/commonjs/operations/files.js +82 -67
  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 +46 -31
  178. package/dist/commonjs/operations/operations.js.map +1 -1
  179. package/dist/commonjs/operations/projects.js +72 -57
  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 +51 -36
  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 +94 -76
  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 +329 -286
  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 +237 -192
  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 +104 -89
  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 +54 -39
  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 +8 -6
  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 +19 -32
  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 +12 -24
  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 +5531 -5222
  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 +95 -99
  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 +95 -99
  290. package/dist/esm/operations/databaseMigrationsSqlVm.js.map +1 -1
  291. package/dist/esm/operations/files.js +83 -67
  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 +47 -31
  302. package/dist/esm/operations/operations.js.map +1 -1
  303. package/dist/esm/operations/projects.js +73 -57
  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 +52 -36
  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 +95 -76
  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 +332 -288
  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 +240 -194
  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 +105 -89
  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 +55 -39
  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 +8 -6
  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 +19 -32
  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 +12 -24
  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 +5531 -5222
  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 +95 -99
  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 +95 -99
  414. package/dist/react-native/operations/databaseMigrationsSqlVm.js.map +1 -1
  415. package/dist/react-native/operations/files.js +83 -67
  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 +47 -31
  426. package/dist/react-native/operations/operations.js.map +1 -1
  427. package/dist/react-native/operations/projects.js +73 -57
  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 +52 -36
  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 +95 -76
  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 +332 -288
  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 +240 -194
  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 +105 -89
  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 +55 -39
  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 +8 -6
  498. package/dist/react-native/pagingHelper.js.map +1 -1
  499. package/package.json +26 -27
  500. package/CHANGELOG.md +0 -21
  501. package/review/arm-datamigration-node.api.md +0 -4103
@@ -5,16 +5,16 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
8
9
  import { setContinuationToken } from "../pagingHelper.js";
9
10
  import * as coreClient from "@azure/core-client";
10
11
  import * as Mappers from "../models/mappers.js";
11
12
  import * as Parameters from "../models/parameters.js";
12
- import { LroEngine } from "@azure/core-lro";
13
- import { LroImpl } from "../lroImpl.js";
13
+ import { createHttpPoller, } from "@azure/core-lro";
14
+ import { createLroSpec } from "../lroImpl.js";
14
15
  /// <reference lib="esnext.asynciterable" />
15
16
  /** Class containing Services operations. */
16
17
  export class ServicesImpl {
17
- client;
18
18
  /**
19
19
  * Initialize a new instance of the class Services class.
20
20
  * @param client Reference to the service client
@@ -23,8 +23,8 @@ export class ServicesImpl {
23
23
  this.client = client;
24
24
  }
25
25
  /**
26
- * The services resource is the top-level resource that represents the Database Migration Service. The
27
- * skus action returns the list of SKUs that a service resource can be updated to.
26
+ * The services resource is the top-level resource that represents the Database Migration Service
27
+ * (classic). The skus action returns the list of SKUs that a service resource can be updated to.
28
28
  * @param groupName Name of the resource group
29
29
  * @param serviceName Name of the service
30
30
  * @param options The options parameters.
@@ -39,39 +39,56 @@ export class ServicesImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings?.maxPageSize) {
42
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listSkusPagingPage(groupName, serviceName, options, settings);
46
- }
46
+ },
47
47
  };
48
48
  }
49
- async *listSkusPagingPage(groupName, serviceName, options, settings) {
50
- let result;
51
- let continuationToken = settings?.continuationToken;
52
- if (!continuationToken) {
53
- result = await this._listSkus(groupName, serviceName, options);
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield page;
58
- }
59
- while (continuationToken) {
60
- result = await this._listSkusNext(groupName, serviceName, continuationToken, options);
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield page;
65
- }
49
+ listSkusPagingPage(groupName, serviceName, options, settings) {
50
+ return __asyncGenerator(this, arguments, function* listSkusPagingPage_1() {
51
+ let result;
52
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
+ if (!continuationToken) {
54
+ result = yield __await(this._listSkus(groupName, serviceName, options));
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ setContinuationToken(page, continuationToken);
58
+ yield yield __await(page);
59
+ }
60
+ while (continuationToken) {
61
+ result = yield __await(this._listSkusNext(groupName, serviceName, continuationToken, options));
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ setContinuationToken(page, continuationToken);
65
+ yield yield __await(page);
66
+ }
67
+ });
66
68
  }
67
- async *listSkusPagingAll(groupName, serviceName, options) {
68
- for await (const page of this.listSkusPagingPage(groupName, serviceName, options)) {
69
- yield* page;
70
- }
69
+ listSkusPagingAll(groupName, serviceName, options) {
70
+ return __asyncGenerator(this, arguments, function* listSkusPagingAll_1() {
71
+ var _a, e_1, _b, _c;
72
+ try {
73
+ for (var _d = true, _e = __asyncValues(this.listSkusPagingPage(groupName, serviceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
74
+ _c = _f.value;
75
+ _d = false;
76
+ const page = _c;
77
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
71
88
  }
72
89
  /**
73
- * The Services resource is the top-level resource that represents the Database Migration Service. This
74
- * method returns a list of service resources in a resource group.
90
+ * The Services resource is the top-level resource that represents the Azure Database Migration Service
91
+ * (classic). This method returns a list of service resources in a resource group.
75
92
  * @param groupName Name of the resource group
76
93
  * @param options The options parameters.
77
94
  */
@@ -85,39 +102,56 @@ export class ServicesImpl {
85
102
  return this;
86
103
  },
87
104
  byPage: (settings) => {
88
- if (settings?.maxPageSize) {
105
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
89
106
  throw new Error("maxPageSize is not supported by this operation.");
90
107
  }
91
108
  return this.listByResourceGroupPagingPage(groupName, options, settings);
92
- }
109
+ },
93
110
  };
94
111
  }
95
- async *listByResourceGroupPagingPage(groupName, options, settings) {
96
- let result;
97
- let continuationToken = settings?.continuationToken;
98
- if (!continuationToken) {
99
- result = await this._listByResourceGroup(groupName, options);
100
- let page = result.value || [];
101
- continuationToken = result.nextLink;
102
- setContinuationToken(page, continuationToken);
103
- yield page;
104
- }
105
- while (continuationToken) {
106
- result = await this._listByResourceGroupNext(groupName, continuationToken, options);
107
- continuationToken = result.nextLink;
108
- let page = result.value || [];
109
- setContinuationToken(page, continuationToken);
110
- yield page;
111
- }
112
+ listByResourceGroupPagingPage(groupName, options, settings) {
113
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
114
+ let result;
115
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
116
+ if (!continuationToken) {
117
+ result = yield __await(this._listByResourceGroup(groupName, options));
118
+ let page = result.value || [];
119
+ continuationToken = result.nextLink;
120
+ setContinuationToken(page, continuationToken);
121
+ yield yield __await(page);
122
+ }
123
+ while (continuationToken) {
124
+ result = yield __await(this._listByResourceGroupNext(groupName, continuationToken, options));
125
+ continuationToken = result.nextLink;
126
+ let page = result.value || [];
127
+ setContinuationToken(page, continuationToken);
128
+ yield yield __await(page);
129
+ }
130
+ });
112
131
  }
113
- async *listByResourceGroupPagingAll(groupName, options) {
114
- for await (const page of this.listByResourceGroupPagingPage(groupName, options)) {
115
- yield* page;
116
- }
132
+ listByResourceGroupPagingAll(groupName, options) {
133
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
134
+ var _a, e_2, _b, _c;
135
+ try {
136
+ for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(groupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
137
+ _c = _f.value;
138
+ _d = false;
139
+ const page = _c;
140
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
141
+ }
142
+ }
143
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
144
+ finally {
145
+ try {
146
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
147
+ }
148
+ finally { if (e_2) throw e_2.error; }
149
+ }
150
+ });
117
151
  }
118
152
  /**
119
- * The services resource is the top-level resource that represents the Database Migration Service. This
120
- * method returns a list of service resources in a subscription.
153
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
154
+ * (classic). This method returns a list of service resources in a subscription.
121
155
  * @param options The options parameters.
122
156
  */
123
157
  list(options) {
@@ -130,44 +164,61 @@ export class ServicesImpl {
130
164
  return this;
131
165
  },
132
166
  byPage: (settings) => {
133
- if (settings?.maxPageSize) {
167
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
134
168
  throw new Error("maxPageSize is not supported by this operation.");
135
169
  }
136
170
  return this.listPagingPage(options, settings);
137
- }
171
+ },
138
172
  };
139
173
  }
140
- async *listPagingPage(options, settings) {
141
- let result;
142
- let continuationToken = settings?.continuationToken;
143
- if (!continuationToken) {
144
- result = await this._list(options);
145
- let page = result.value || [];
146
- continuationToken = result.nextLink;
147
- setContinuationToken(page, continuationToken);
148
- yield page;
149
- }
150
- while (continuationToken) {
151
- result = await this._listNext(continuationToken, options);
152
- continuationToken = result.nextLink;
153
- let page = result.value || [];
154
- setContinuationToken(page, continuationToken);
155
- yield page;
156
- }
174
+ listPagingPage(options, settings) {
175
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
176
+ let result;
177
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
178
+ if (!continuationToken) {
179
+ result = yield __await(this._list(options));
180
+ let page = result.value || [];
181
+ continuationToken = result.nextLink;
182
+ setContinuationToken(page, continuationToken);
183
+ yield yield __await(page);
184
+ }
185
+ while (continuationToken) {
186
+ result = yield __await(this._listNext(continuationToken, options));
187
+ continuationToken = result.nextLink;
188
+ let page = result.value || [];
189
+ setContinuationToken(page, continuationToken);
190
+ yield yield __await(page);
191
+ }
192
+ });
157
193
  }
158
- async *listPagingAll(options) {
159
- for await (const page of this.listPagingPage(options)) {
160
- yield* page;
161
- }
194
+ listPagingAll(options) {
195
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
196
+ var _a, e_3, _b, _c;
197
+ try {
198
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
199
+ _c = _f.value;
200
+ _d = false;
201
+ const page = _c;
202
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
203
+ }
204
+ }
205
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
206
+ finally {
207
+ try {
208
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
209
+ }
210
+ finally { if (e_3) throw e_3.error; }
211
+ }
212
+ });
162
213
  }
163
214
  /**
164
- * The services resource is the top-level resource that represents the Database Migration Service. The
165
- * PUT method creates a new service or updates an existing one. When a service is updated, existing
166
- * child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which
167
- * refers to a VM-based service, although other kinds may be added in the future. This method can
168
- * change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the
169
- * service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply
170
- * when successful with 200 OK or 201 Created. Long-running operations use the provisioningState
215
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
216
+ * (classic). The PUT method creates a new service or updates an existing one. When a service is
217
+ * updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single
218
+ * kind, "vm", which refers to a VM-based service, although other kinds may be added in the future.
219
+ * This method can change the kind, SKU, and network of the service, but if tasks are currently running
220
+ * (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will
221
+ * reply when successful with 200 OK or 201 Created. Long-running operations use the provisioningState
171
222
  * property.
172
223
  * @param groupName Name of the resource group
173
224
  * @param serviceName Name of the service
@@ -178,46 +229,45 @@ export class ServicesImpl {
178
229
  const directSendOperation = async (args, spec) => {
179
230
  return this.client.sendOperationRequest(args, spec);
180
231
  };
181
- const sendOperation = async (args, spec) => {
232
+ const sendOperationFn = async (args, spec) => {
233
+ var _a;
182
234
  let currentRawResponse = undefined;
183
- const providedCallback = args.options?.onResponse;
235
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
184
236
  const callback = (rawResponse, flatResponse) => {
185
237
  currentRawResponse = rawResponse;
186
- providedCallback?.(rawResponse, flatResponse);
187
- };
188
- const updatedArgs = {
189
- ...args,
190
- options: {
191
- ...args.options,
192
- onResponse: callback
193
- }
238
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
194
239
  };
240
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
195
241
  const flatResponse = await directSendOperation(updatedArgs, spec);
196
242
  return {
197
243
  flatResponse,
198
244
  rawResponse: {
199
245
  statusCode: currentRawResponse.status,
200
246
  body: currentRawResponse.parsedBody,
201
- headers: currentRawResponse.headers.toJSON()
202
- }
247
+ headers: currentRawResponse.headers.toJSON(),
248
+ },
203
249
  };
204
250
  };
205
- const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, createOrUpdateOperationSpec);
206
- const poller = new LroEngine(lro, {
207
- resumeFrom: options?.resumeFrom,
208
- intervalInMs: options?.updateIntervalInMs
251
+ const lro = createLroSpec({
252
+ sendOperationFn,
253
+ args: { groupName, serviceName, parameters, options },
254
+ spec: createOrUpdateOperationSpec,
255
+ });
256
+ const poller = await createHttpPoller(lro, {
257
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
258
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
209
259
  });
210
260
  await poller.poll();
211
261
  return poller;
212
262
  }
213
263
  /**
214
- * The services resource is the top-level resource that represents the Database Migration Service. The
215
- * PUT method creates a new service or updates an existing one. When a service is updated, existing
216
- * child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which
217
- * refers to a VM-based service, although other kinds may be added in the future. This method can
218
- * change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the
219
- * service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply
220
- * when successful with 200 OK or 201 Created. Long-running operations use the provisioningState
264
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
265
+ * (classic). The PUT method creates a new service or updates an existing one. When a service is
266
+ * updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single
267
+ * kind, "vm", which refers to a VM-based service, although other kinds may be added in the future.
268
+ * This method can change the kind, SKU, and network of the service, but if tasks are currently running
269
+ * (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will
270
+ * reply when successful with 200 OK or 201 Created. Long-running operations use the provisioningState
221
271
  * property.
222
272
  * @param groupName Name of the resource group
223
273
  * @param serviceName Name of the service
@@ -229,8 +279,8 @@ export class ServicesImpl {
229
279
  return poller.pollUntilDone();
230
280
  }
231
281
  /**
232
- * The services resource is the top-level resource that represents the Database Migration Service. The
233
- * GET method retrieves information about a service instance.
282
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
283
+ * (classic). The GET method retrieves information about a service instance.
234
284
  * @param groupName Name of the resource group
235
285
  * @param serviceName Name of the service
236
286
  * @param options The options parameters.
@@ -239,8 +289,8 @@ export class ServicesImpl {
239
289
  return this.client.sendOperationRequest({ groupName, serviceName, options }, getOperationSpec);
240
290
  }
241
291
  /**
242
- * The services resource is the top-level resource that represents the Database Migration Service. The
243
- * DELETE method deletes a service. Any running tasks will be canceled.
292
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
293
+ * (classic). The DELETE method deletes a service. Any running tasks will be canceled.
244
294
  * @param groupName Name of the resource group
245
295
  * @param serviceName Name of the service
246
296
  * @param options The options parameters.
@@ -249,41 +299,40 @@ export class ServicesImpl {
249
299
  const directSendOperation = async (args, spec) => {
250
300
  return this.client.sendOperationRequest(args, spec);
251
301
  };
252
- const sendOperation = async (args, spec) => {
302
+ const sendOperationFn = async (args, spec) => {
303
+ var _a;
253
304
  let currentRawResponse = undefined;
254
- const providedCallback = args.options?.onResponse;
305
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
255
306
  const callback = (rawResponse, flatResponse) => {
256
307
  currentRawResponse = rawResponse;
257
- providedCallback?.(rawResponse, flatResponse);
258
- };
259
- const updatedArgs = {
260
- ...args,
261
- options: {
262
- ...args.options,
263
- onResponse: callback
264
- }
308
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
265
309
  };
310
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
266
311
  const flatResponse = await directSendOperation(updatedArgs, spec);
267
312
  return {
268
313
  flatResponse,
269
314
  rawResponse: {
270
315
  statusCode: currentRawResponse.status,
271
316
  body: currentRawResponse.parsedBody,
272
- headers: currentRawResponse.headers.toJSON()
273
- }
317
+ headers: currentRawResponse.headers.toJSON(),
318
+ },
274
319
  };
275
320
  };
276
- const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, deleteOperationSpec);
277
- const poller = new LroEngine(lro, {
278
- resumeFrom: options?.resumeFrom,
279
- intervalInMs: options?.updateIntervalInMs
321
+ const lro = createLroSpec({
322
+ sendOperationFn,
323
+ args: { groupName, serviceName, options },
324
+ spec: deleteOperationSpec,
325
+ });
326
+ const poller = await createHttpPoller(lro, {
327
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
328
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
280
329
  });
281
330
  await poller.poll();
282
331
  return poller;
283
332
  }
284
333
  /**
285
- * The services resource is the top-level resource that represents the Database Migration Service. The
286
- * DELETE method deletes a service. Any running tasks will be canceled.
334
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
335
+ * (classic). The DELETE method deletes a service. Any running tasks will be canceled.
287
336
  * @param groupName Name of the resource group
288
337
  * @param serviceName Name of the service
289
338
  * @param options The options parameters.
@@ -293,10 +342,10 @@ export class ServicesImpl {
293
342
  return poller.pollUntilDone();
294
343
  }
295
344
  /**
296
- * The services resource is the top-level resource that represents the Database Migration Service. The
297
- * PATCH method updates an existing service. This method can change the kind, SKU, and network of the
298
- * service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad
299
- * Request ("ServiceIsBusy").
345
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
346
+ * (classic). The PATCH method updates an existing service. This method can change the kind, SKU, and
347
+ * network of the service, but if tasks are currently running (i.e. the service is busy), this will
348
+ * fail with 400 Bad Request ("ServiceIsBusy").
300
349
  * @param groupName Name of the resource group
301
350
  * @param serviceName Name of the service
302
351
  * @param parameters Information about the service
@@ -306,43 +355,42 @@ export class ServicesImpl {
306
355
  const directSendOperation = async (args, spec) => {
307
356
  return this.client.sendOperationRequest(args, spec);
308
357
  };
309
- const sendOperation = async (args, spec) => {
358
+ const sendOperationFn = async (args, spec) => {
359
+ var _a;
310
360
  let currentRawResponse = undefined;
311
- const providedCallback = args.options?.onResponse;
361
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
312
362
  const callback = (rawResponse, flatResponse) => {
313
363
  currentRawResponse = rawResponse;
314
- providedCallback?.(rawResponse, flatResponse);
315
- };
316
- const updatedArgs = {
317
- ...args,
318
- options: {
319
- ...args.options,
320
- onResponse: callback
321
- }
364
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
322
365
  };
366
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
323
367
  const flatResponse = await directSendOperation(updatedArgs, spec);
324
368
  return {
325
369
  flatResponse,
326
370
  rawResponse: {
327
371
  statusCode: currentRawResponse.status,
328
372
  body: currentRawResponse.parsedBody,
329
- headers: currentRawResponse.headers.toJSON()
330
- }
373
+ headers: currentRawResponse.headers.toJSON(),
374
+ },
331
375
  };
332
376
  };
333
- const lro = new LroImpl(sendOperation, { groupName, serviceName, parameters, options }, updateOperationSpec);
334
- const poller = new LroEngine(lro, {
335
- resumeFrom: options?.resumeFrom,
336
- intervalInMs: options?.updateIntervalInMs
377
+ const lro = createLroSpec({
378
+ sendOperationFn,
379
+ args: { groupName, serviceName, parameters, options },
380
+ spec: updateOperationSpec,
381
+ });
382
+ const poller = await createHttpPoller(lro, {
383
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
384
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
337
385
  });
338
386
  await poller.poll();
339
387
  return poller;
340
388
  }
341
389
  /**
342
- * The services resource is the top-level resource that represents the Database Migration Service. The
343
- * PATCH method updates an existing service. This method can change the kind, SKU, and network of the
344
- * service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad
345
- * Request ("ServiceIsBusy").
390
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
391
+ * (classic). The PATCH method updates an existing service. This method can change the kind, SKU, and
392
+ * network of the service, but if tasks are currently running (i.e. the service is busy), this will
393
+ * fail with 400 Bad Request ("ServiceIsBusy").
346
394
  * @param groupName Name of the resource group
347
395
  * @param serviceName Name of the service
348
396
  * @param parameters Information about the service
@@ -353,8 +401,9 @@ export class ServicesImpl {
353
401
  return poller.pollUntilDone();
354
402
  }
355
403
  /**
356
- * The services resource is the top-level resource that represents the Database Migration Service. This
357
- * action performs a health check and returns the status of the service and virtual machine size.
404
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
405
+ * (classic). This action performs a health check and returns the status of the service and virtual
406
+ * machine size.
358
407
  * @param groupName Name of the resource group
359
408
  * @param serviceName Name of the service
360
409
  * @param options The options parameters.
@@ -363,8 +412,8 @@ export class ServicesImpl {
363
412
  return this.client.sendOperationRequest({ groupName, serviceName, options }, checkStatusOperationSpec);
364
413
  }
365
414
  /**
366
- * The services resource is the top-level resource that represents the Database Migration Service. This
367
- * action starts the service and the service can be used for data migration.
415
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
416
+ * (classic). This action starts the service and the service can be used for data migration.
368
417
  * @param groupName Name of the resource group
369
418
  * @param serviceName Name of the service
370
419
  * @param options The options parameters.
@@ -373,41 +422,40 @@ export class ServicesImpl {
373
422
  const directSendOperation = async (args, spec) => {
374
423
  return this.client.sendOperationRequest(args, spec);
375
424
  };
376
- const sendOperation = async (args, spec) => {
425
+ const sendOperationFn = async (args, spec) => {
426
+ var _a;
377
427
  let currentRawResponse = undefined;
378
- const providedCallback = args.options?.onResponse;
428
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
379
429
  const callback = (rawResponse, flatResponse) => {
380
430
  currentRawResponse = rawResponse;
381
- providedCallback?.(rawResponse, flatResponse);
382
- };
383
- const updatedArgs = {
384
- ...args,
385
- options: {
386
- ...args.options,
387
- onResponse: callback
388
- }
431
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
389
432
  };
433
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
390
434
  const flatResponse = await directSendOperation(updatedArgs, spec);
391
435
  return {
392
436
  flatResponse,
393
437
  rawResponse: {
394
438
  statusCode: currentRawResponse.status,
395
439
  body: currentRawResponse.parsedBody,
396
- headers: currentRawResponse.headers.toJSON()
397
- }
440
+ headers: currentRawResponse.headers.toJSON(),
441
+ },
398
442
  };
399
443
  };
400
- const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, startOperationSpec);
401
- const poller = new LroEngine(lro, {
402
- resumeFrom: options?.resumeFrom,
403
- intervalInMs: options?.updateIntervalInMs
444
+ const lro = createLroSpec({
445
+ sendOperationFn,
446
+ args: { groupName, serviceName, options },
447
+ spec: startOperationSpec,
448
+ });
449
+ const poller = await createHttpPoller(lro, {
450
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
451
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
404
452
  });
405
453
  await poller.poll();
406
454
  return poller;
407
455
  }
408
456
  /**
409
- * The services resource is the top-level resource that represents the Database Migration Service. This
410
- * action starts the service and the service can be used for data migration.
457
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
458
+ * (classic). This action starts the service and the service can be used for data migration.
411
459
  * @param groupName Name of the resource group
412
460
  * @param serviceName Name of the service
413
461
  * @param options The options parameters.
@@ -417,9 +465,9 @@ export class ServicesImpl {
417
465
  return poller.pollUntilDone();
418
466
  }
419
467
  /**
420
- * The services resource is the top-level resource that represents the Database Migration Service. This
421
- * action stops the service and the service cannot be used for data migration. The service owner won't
422
- * be billed when the service is stopped.
468
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
469
+ * (classic). This action stops the service and the service cannot be used for data migration. The
470
+ * service owner won't be billed when the service is stopped.
423
471
  * @param groupName Name of the resource group
424
472
  * @param serviceName Name of the service
425
473
  * @param options The options parameters.
@@ -428,42 +476,41 @@ export class ServicesImpl {
428
476
  const directSendOperation = async (args, spec) => {
429
477
  return this.client.sendOperationRequest(args, spec);
430
478
  };
431
- const sendOperation = async (args, spec) => {
479
+ const sendOperationFn = async (args, spec) => {
480
+ var _a;
432
481
  let currentRawResponse = undefined;
433
- const providedCallback = args.options?.onResponse;
482
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
434
483
  const callback = (rawResponse, flatResponse) => {
435
484
  currentRawResponse = rawResponse;
436
- providedCallback?.(rawResponse, flatResponse);
437
- };
438
- const updatedArgs = {
439
- ...args,
440
- options: {
441
- ...args.options,
442
- onResponse: callback
443
- }
485
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
444
486
  };
487
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
445
488
  const flatResponse = await directSendOperation(updatedArgs, spec);
446
489
  return {
447
490
  flatResponse,
448
491
  rawResponse: {
449
492
  statusCode: currentRawResponse.status,
450
493
  body: currentRawResponse.parsedBody,
451
- headers: currentRawResponse.headers.toJSON()
452
- }
494
+ headers: currentRawResponse.headers.toJSON(),
495
+ },
453
496
  };
454
497
  };
455
- const lro = new LroImpl(sendOperation, { groupName, serviceName, options }, stopOperationSpec);
456
- const poller = new LroEngine(lro, {
457
- resumeFrom: options?.resumeFrom,
458
- intervalInMs: options?.updateIntervalInMs
498
+ const lro = createLroSpec({
499
+ sendOperationFn,
500
+ args: { groupName, serviceName, options },
501
+ spec: stopOperationSpec,
502
+ });
503
+ const poller = await createHttpPoller(lro, {
504
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
505
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
459
506
  });
460
507
  await poller.poll();
461
508
  return poller;
462
509
  }
463
510
  /**
464
- * The services resource is the top-level resource that represents the Database Migration Service. This
465
- * action stops the service and the service cannot be used for data migration. The service owner won't
466
- * be billed when the service is stopped.
511
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
512
+ * (classic). This action stops the service and the service cannot be used for data migration. The
513
+ * service owner won't be billed when the service is stopped.
467
514
  * @param groupName Name of the resource group
468
515
  * @param serviceName Name of the service
469
516
  * @param options The options parameters.
@@ -473,8 +520,8 @@ export class ServicesImpl {
473
520
  return poller.pollUntilDone();
474
521
  }
475
522
  /**
476
- * The services resource is the top-level resource that represents the Database Migration Service. The
477
- * skus action returns the list of SKUs that a service resource can be updated to.
523
+ * The services resource is the top-level resource that represents the Database Migration Service
524
+ * (classic). The skus action returns the list of SKUs that a service resource can be updated to.
478
525
  * @param groupName Name of the resource group
479
526
  * @param serviceName Name of the service
480
527
  * @param options The options parameters.
@@ -493,8 +540,8 @@ export class ServicesImpl {
493
540
  return this.client.sendOperationRequest({ groupName, serviceName, parameters, options }, checkChildrenNameAvailabilityOperationSpec);
494
541
  }
495
542
  /**
496
- * The Services resource is the top-level resource that represents the Database Migration Service. This
497
- * method returns a list of service resources in a resource group.
543
+ * The Services resource is the top-level resource that represents the Azure Database Migration Service
544
+ * (classic). This method returns a list of service resources in a resource group.
498
545
  * @param groupName Name of the resource group
499
546
  * @param options The options parameters.
500
547
  */
@@ -502,8 +549,8 @@ export class ServicesImpl {
502
549
  return this.client.sendOperationRequest({ groupName, options }, listByResourceGroupOperationSpec);
503
550
  }
504
551
  /**
505
- * The services resource is the top-level resource that represents the Database Migration Service. This
506
- * method returns a list of service resources in a subscription.
552
+ * The services resource is the top-level resource that represents the Azure Database Migration Service
553
+ * (classic). This method returns a list of service resources in a subscription.
507
554
  * @param options The options parameters.
508
555
  */
509
556
  _list(options) {
@@ -553,53 +600,53 @@ const createOrUpdateOperationSpec = {
553
600
  httpMethod: "PUT",
554
601
  responses: {
555
602
  200: {
556
- bodyMapper: Mappers.DataMigrationService
603
+ bodyMapper: Mappers.DataMigrationService,
557
604
  },
558
605
  201: {
559
- bodyMapper: Mappers.DataMigrationService
606
+ bodyMapper: Mappers.DataMigrationService,
560
607
  },
561
608
  202: {
562
- bodyMapper: Mappers.DataMigrationService
609
+ bodyMapper: Mappers.DataMigrationService,
563
610
  },
564
611
  204: {
565
- bodyMapper: Mappers.DataMigrationService
612
+ bodyMapper: Mappers.DataMigrationService,
566
613
  },
567
614
  default: {
568
- bodyMapper: Mappers.ApiError
569
- }
615
+ bodyMapper: Mappers.ApiError,
616
+ },
570
617
  },
571
- requestBody: Parameters.parameters7,
618
+ requestBody: Parameters.parameters11,
572
619
  queryParameters: [Parameters.apiVersion],
573
620
  urlParameters: [
574
621
  Parameters.$host,
575
622
  Parameters.subscriptionId,
576
623
  Parameters.groupName,
577
- Parameters.serviceName
624
+ Parameters.serviceName,
578
625
  ],
579
626
  headerParameters: [Parameters.accept, Parameters.contentType],
580
627
  mediaType: "json",
581
- serializer
628
+ serializer,
582
629
  };
583
630
  const getOperationSpec = {
584
631
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
585
632
  httpMethod: "GET",
586
633
  responses: {
587
634
  200: {
588
- bodyMapper: Mappers.DataMigrationService
635
+ bodyMapper: Mappers.DataMigrationService,
589
636
  },
590
637
  default: {
591
- bodyMapper: Mappers.ApiError
592
- }
638
+ bodyMapper: Mappers.ApiError,
639
+ },
593
640
  },
594
641
  queryParameters: [Parameters.apiVersion],
595
642
  urlParameters: [
596
643
  Parameters.$host,
597
644
  Parameters.subscriptionId,
598
645
  Parameters.groupName,
599
- Parameters.serviceName
646
+ Parameters.serviceName,
600
647
  ],
601
648
  headerParameters: [Parameters.accept],
602
- serializer
649
+ serializer,
603
650
  };
604
651
  const deleteOperationSpec = {
605
652
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
@@ -610,71 +657,71 @@ const deleteOperationSpec = {
610
657
  202: {},
611
658
  204: {},
612
659
  default: {
613
- bodyMapper: Mappers.ApiError
614
- }
660
+ bodyMapper: Mappers.ApiError,
661
+ },
615
662
  },
616
663
  queryParameters: [Parameters.apiVersion, Parameters.deleteRunningTasks],
617
664
  urlParameters: [
618
665
  Parameters.$host,
619
666
  Parameters.subscriptionId,
620
667
  Parameters.groupName,
621
- Parameters.serviceName
668
+ Parameters.serviceName,
622
669
  ],
623
670
  headerParameters: [Parameters.accept],
624
- serializer
671
+ serializer,
625
672
  };
626
673
  const updateOperationSpec = {
627
674
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}",
628
675
  httpMethod: "PATCH",
629
676
  responses: {
630
677
  200: {
631
- bodyMapper: Mappers.DataMigrationService
678
+ bodyMapper: Mappers.DataMigrationService,
632
679
  },
633
680
  201: {
634
- bodyMapper: Mappers.DataMigrationService
681
+ bodyMapper: Mappers.DataMigrationService,
635
682
  },
636
683
  202: {
637
- bodyMapper: Mappers.DataMigrationService
684
+ bodyMapper: Mappers.DataMigrationService,
638
685
  },
639
686
  204: {
640
- bodyMapper: Mappers.DataMigrationService
687
+ bodyMapper: Mappers.DataMigrationService,
641
688
  },
642
689
  default: {
643
- bodyMapper: Mappers.ApiError
644
- }
690
+ bodyMapper: Mappers.ApiError,
691
+ },
645
692
  },
646
- requestBody: Parameters.parameters7,
693
+ requestBody: Parameters.parameters11,
647
694
  queryParameters: [Parameters.apiVersion],
648
695
  urlParameters: [
649
696
  Parameters.$host,
650
697
  Parameters.subscriptionId,
651
698
  Parameters.groupName,
652
- Parameters.serviceName
699
+ Parameters.serviceName,
653
700
  ],
654
701
  headerParameters: [Parameters.accept, Parameters.contentType],
655
702
  mediaType: "json",
656
- serializer
703
+ serializer,
657
704
  };
658
705
  const checkStatusOperationSpec = {
659
706
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkStatus",
660
707
  httpMethod: "POST",
661
708
  responses: {
662
709
  200: {
663
- bodyMapper: Mappers.DataMigrationServiceStatusResponse
710
+ bodyMapper: Mappers.DataMigrationServiceStatusResponse,
664
711
  },
665
712
  default: {
666
- bodyMapper: Mappers.ApiError
667
- }
713
+ bodyMapper: Mappers.ApiError,
714
+ },
668
715
  },
669
716
  queryParameters: [Parameters.apiVersion],
670
717
  urlParameters: [
671
718
  Parameters.$host,
672
719
  Parameters.subscriptionId,
673
720
  Parameters.groupName,
674
- Parameters.serviceName
721
+ Parameters.serviceName,
675
722
  ],
676
723
  headerParameters: [Parameters.accept],
677
- serializer
724
+ serializer,
678
725
  };
679
726
  const startOperationSpec = {
680
727
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/start",
@@ -685,18 +732,18 @@ const startOperationSpec = {
685
732
  202: {},
686
733
  204: {},
687
734
  default: {
688
- bodyMapper: Mappers.ApiError
689
- }
735
+ bodyMapper: Mappers.ApiError,
736
+ },
690
737
  },
691
738
  queryParameters: [Parameters.apiVersion],
692
739
  urlParameters: [
693
740
  Parameters.$host,
694
741
  Parameters.subscriptionId,
695
742
  Parameters.groupName,
696
- Parameters.serviceName
743
+ Parameters.serviceName,
697
744
  ],
698
745
  headerParameters: [Parameters.accept],
699
- serializer
746
+ serializer,
700
747
  };
701
748
  const stopOperationSpec = {
702
749
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/stop",
@@ -707,182 +754,179 @@ const stopOperationSpec = {
707
754
  202: {},
708
755
  204: {},
709
756
  default: {
710
- bodyMapper: Mappers.ApiError
711
- }
757
+ bodyMapper: Mappers.ApiError,
758
+ },
712
759
  },
713
760
  queryParameters: [Parameters.apiVersion],
714
761
  urlParameters: [
715
762
  Parameters.$host,
716
763
  Parameters.subscriptionId,
717
764
  Parameters.groupName,
718
- Parameters.serviceName
765
+ Parameters.serviceName,
719
766
  ],
720
767
  headerParameters: [Parameters.accept],
721
- serializer
768
+ serializer,
722
769
  };
723
770
  const listSkusOperationSpec = {
724
771
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus",
725
772
  httpMethod: "GET",
726
773
  responses: {
727
774
  200: {
728
- bodyMapper: Mappers.ServiceSkuList
775
+ bodyMapper: Mappers.ServiceSkuList,
729
776
  },
730
777
  default: {
731
- bodyMapper: Mappers.ApiError
732
- }
778
+ bodyMapper: Mappers.ApiError,
779
+ },
733
780
  },
734
781
  queryParameters: [Parameters.apiVersion],
735
782
  urlParameters: [
736
783
  Parameters.$host,
737
784
  Parameters.subscriptionId,
738
785
  Parameters.groupName,
739
- Parameters.serviceName
786
+ Parameters.serviceName,
740
787
  ],
741
788
  headerParameters: [Parameters.accept],
742
- serializer
789
+ serializer,
743
790
  };
744
791
  const checkChildrenNameAvailabilityOperationSpec = {
745
792
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability",
746
793
  httpMethod: "POST",
747
794
  responses: {
748
795
  200: {
749
- bodyMapper: Mappers.NameAvailabilityResponse
796
+ bodyMapper: Mappers.NameAvailabilityResponse,
750
797
  },
751
798
  default: {
752
- bodyMapper: Mappers.ApiError
753
- }
799
+ bodyMapper: Mappers.ApiError,
800
+ },
754
801
  },
755
- requestBody: Parameters.parameters8,
802
+ requestBody: Parameters.parameters12,
756
803
  queryParameters: [Parameters.apiVersion],
757
804
  urlParameters: [
758
805
  Parameters.$host,
759
806
  Parameters.subscriptionId,
760
807
  Parameters.groupName,
761
- Parameters.serviceName
808
+ Parameters.serviceName,
762
809
  ],
763
810
  headerParameters: [Parameters.accept, Parameters.contentType],
764
811
  mediaType: "json",
765
- serializer
812
+ serializer,
766
813
  };
767
814
  const listByResourceGroupOperationSpec = {
768
815
  path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services",
769
816
  httpMethod: "GET",
770
817
  responses: {
771
818
  200: {
772
- bodyMapper: Mappers.DataMigrationServiceList
819
+ bodyMapper: Mappers.DataMigrationServiceList,
773
820
  },
774
821
  default: {
775
- bodyMapper: Mappers.ApiError
776
- }
822
+ bodyMapper: Mappers.ApiError,
823
+ },
777
824
  },
778
825
  queryParameters: [Parameters.apiVersion],
779
826
  urlParameters: [
780
827
  Parameters.$host,
781
828
  Parameters.subscriptionId,
782
- Parameters.groupName
829
+ Parameters.groupName,
783
830
  ],
784
831
  headerParameters: [Parameters.accept],
785
- serializer
832
+ serializer,
786
833
  };
787
834
  const listOperationSpec = {
788
835
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services",
789
836
  httpMethod: "GET",
790
837
  responses: {
791
838
  200: {
792
- bodyMapper: Mappers.DataMigrationServiceList
839
+ bodyMapper: Mappers.DataMigrationServiceList,
793
840
  },
794
841
  default: {
795
- bodyMapper: Mappers.ApiError
796
- }
842
+ bodyMapper: Mappers.ApiError,
843
+ },
797
844
  },
798
845
  queryParameters: [Parameters.apiVersion],
799
846
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
800
847
  headerParameters: [Parameters.accept],
801
- serializer
848
+ serializer,
802
849
  };
803
850
  const checkNameAvailabilityOperationSpec = {
804
851
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability",
805
852
  httpMethod: "POST",
806
853
  responses: {
807
854
  200: {
808
- bodyMapper: Mappers.NameAvailabilityResponse
855
+ bodyMapper: Mappers.NameAvailabilityResponse,
809
856
  },
810
857
  default: {
811
- bodyMapper: Mappers.ApiError
812
- }
858
+ bodyMapper: Mappers.ApiError,
859
+ },
813
860
  },
814
- requestBody: Parameters.parameters8,
861
+ requestBody: Parameters.parameters12,
815
862
  queryParameters: [Parameters.apiVersion],
816
863
  urlParameters: [
817
864
  Parameters.$host,
818
865
  Parameters.subscriptionId,
819
- Parameters.location
866
+ Parameters.location,
820
867
  ],
821
868
  headerParameters: [Parameters.accept, Parameters.contentType],
822
869
  mediaType: "json",
823
- serializer
870
+ serializer,
824
871
  };
825
872
  const listSkusNextOperationSpec = {
826
873
  path: "{nextLink}",
827
874
  httpMethod: "GET",
828
875
  responses: {
829
876
  200: {
830
- bodyMapper: Mappers.ServiceSkuList
877
+ bodyMapper: Mappers.ServiceSkuList,
831
878
  },
832
879
  default: {
833
- bodyMapper: Mappers.ApiError
834
- }
880
+ bodyMapper: Mappers.ApiError,
881
+ },
835
882
  },
836
- queryParameters: [Parameters.apiVersion],
837
883
  urlParameters: [
838
884
  Parameters.$host,
839
885
  Parameters.subscriptionId,
840
886
  Parameters.nextLink,
841
887
  Parameters.groupName,
842
- Parameters.serviceName
888
+ Parameters.serviceName,
843
889
  ],
844
890
  headerParameters: [Parameters.accept],
845
- serializer
891
+ serializer,
846
892
  };
847
893
  const listByResourceGroupNextOperationSpec = {
848
894
  path: "{nextLink}",
849
895
  httpMethod: "GET",
850
896
  responses: {
851
897
  200: {
852
- bodyMapper: Mappers.DataMigrationServiceList
898
+ bodyMapper: Mappers.DataMigrationServiceList,
853
899
  },
854
900
  default: {
855
- bodyMapper: Mappers.ApiError
856
- }
901
+ bodyMapper: Mappers.ApiError,
902
+ },
857
903
  },
858
- queryParameters: [Parameters.apiVersion],
859
904
  urlParameters: [
860
905
  Parameters.$host,
861
906
  Parameters.subscriptionId,
862
907
  Parameters.nextLink,
863
- Parameters.groupName
908
+ Parameters.groupName,
864
909
  ],
865
910
  headerParameters: [Parameters.accept],
866
- serializer
911
+ serializer,
867
912
  };
868
913
  const listNextOperationSpec = {
869
914
  path: "{nextLink}",
870
915
  httpMethod: "GET",
871
916
  responses: {
872
917
  200: {
873
- bodyMapper: Mappers.DataMigrationServiceList
918
+ bodyMapper: Mappers.DataMigrationServiceList,
874
919
  },
875
920
  default: {
876
- bodyMapper: Mappers.ApiError
877
- }
921
+ bodyMapper: Mappers.ApiError,
922
+ },
878
923
  },
879
- queryParameters: [Parameters.apiVersion],
880
924
  urlParameters: [
881
925
  Parameters.$host,
882
926
  Parameters.subscriptionId,
883
- Parameters.nextLink
927
+ Parameters.nextLink,
884
928
  ],
885
929
  headerParameters: [Parameters.accept],
886
- serializer
930
+ serializer,
887
931
  };
888
932
  //# sourceMappingURL=services.js.map