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