@azure/arm-datamigration 3.0.0-alpha.20250721.1 → 3.0.0-alpha.20250730.1

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