@azure/arm-datamigration 2.1.1 → 3.0.0-alpha.20220208.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (450) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +16801 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.d.ts +2 -0
  9. package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.js +65 -0
  11. package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.js.map +1 -0
  12. package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.d.ts +2 -0
  13. package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.js +65 -0
  15. package/dist-esm/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.js.map +1 -0
  16. package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.d.ts +2 -0
  17. package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.js +32 -0
  19. package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.js.map +1 -0
  20. package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.d.ts +2 -0
  21. package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.js +32 -0
  23. package/dist-esm/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.js.map +1 -0
  24. package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.d.ts +2 -0
  25. package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.js +35 -0
  27. package/dist-esm/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.js.map +1 -0
  28. package/dist-esm/samples-dev/deleteSqlMigrationService.d.ts +2 -0
  29. package/dist-esm/samples-dev/deleteSqlMigrationService.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/deleteSqlMigrationService.js +31 -0
  31. package/dist-esm/samples-dev/deleteSqlMigrationService.js.map +1 -0
  32. package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.d.ts +2 -0
  33. package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.js +35 -0
  35. package/dist-esm/samples-dev/deleteTheIntegrationRuntimeNode.js.map +1 -0
  36. package/dist-esm/samples-dev/filesCreateOrUpdate.d.ts +2 -0
  37. package/dist-esm/samples-dev/filesCreateOrUpdate.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/filesCreateOrUpdate.js +36 -0
  39. package/dist-esm/samples-dev/filesCreateOrUpdate.js.map +1 -0
  40. package/dist-esm/samples-dev/filesDelete.d.ts +2 -0
  41. package/dist-esm/samples-dev/filesDelete.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/filesDelete.js +33 -0
  43. package/dist-esm/samples-dev/filesDelete.js.map +1 -0
  44. package/dist-esm/samples-dev/filesList.d.ts +2 -0
  45. package/dist-esm/samples-dev/filesList.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/filesList.js +33 -0
  47. package/dist-esm/samples-dev/filesList.js.map +1 -0
  48. package/dist-esm/samples-dev/filesUpdate.d.ts +2 -0
  49. package/dist-esm/samples-dev/filesUpdate.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/filesUpdate.js +36 -0
  51. package/dist-esm/samples-dev/filesUpdate.js.map +1 -0
  52. package/dist-esm/samples-dev/getDatabaseMigrationResource.d.ts +2 -0
  53. package/dist-esm/samples-dev/getDatabaseMigrationResource.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/getDatabaseMigrationResource.js +32 -0
  55. package/dist-esm/samples-dev/getDatabaseMigrationResource.js.map +1 -0
  56. package/dist-esm/samples-dev/getMigrationService.d.ts +2 -0
  57. package/dist-esm/samples-dev/getMigrationService.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/getMigrationService.js +31 -0
  59. package/dist-esm/samples-dev/getMigrationService.js.map +1 -0
  60. package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.d.ts +2 -0
  61. package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js +44 -0
  63. package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js.map +1 -0
  64. package/dist-esm/samples-dev/getServicesInTheSubscriptions.d.ts +2 -0
  65. package/dist-esm/samples-dev/getServicesInTheSubscriptions.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/getServicesInTheSubscriptions.js +43 -0
  67. package/dist-esm/samples-dev/getServicesInTheSubscriptions.js.map +1 -0
  68. package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.d.ts +2 -0
  69. package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js +45 -0
  71. package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js.map +1 -0
  72. package/dist-esm/samples-dev/listSkus.d.ts +2 -0
  73. package/dist-esm/samples-dev/listSkus.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/listSkus.js +43 -0
  75. package/dist-esm/samples-dev/listSkus.js.map +1 -0
  76. package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.d.ts +2 -0
  77. package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js +43 -0
  79. package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js.map +1 -0
  80. package/dist-esm/samples-dev/projectsCreateOrUpdate.d.ts +2 -0
  81. package/dist-esm/samples-dev/projectsCreateOrUpdate.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/projectsCreateOrUpdate.js +37 -0
  83. package/dist-esm/samples-dev/projectsCreateOrUpdate.js.map +1 -0
  84. package/dist-esm/samples-dev/projectsDelete.d.ts +2 -0
  85. package/dist-esm/samples-dev/projectsDelete.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/projectsDelete.js +32 -0
  87. package/dist-esm/samples-dev/projectsDelete.js.map +1 -0
  88. package/dist-esm/samples-dev/projectsGet.d.ts +2 -0
  89. package/dist-esm/samples-dev/projectsGet.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/projectsGet.js +32 -0
  91. package/dist-esm/samples-dev/projectsGet.js.map +1 -0
  92. package/dist-esm/samples-dev/projectsList.d.ts +2 -0
  93. package/dist-esm/samples-dev/projectsList.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/projectsList.js +45 -0
  95. package/dist-esm/samples-dev/projectsList.js.map +1 -0
  96. package/dist-esm/samples-dev/projectsUpdate.d.ts +2 -0
  97. package/dist-esm/samples-dev/projectsUpdate.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/projectsUpdate.js +37 -0
  99. package/dist-esm/samples-dev/projectsUpdate.js.map +1 -0
  100. package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.d.ts +2 -0
  101. package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.js +32 -0
  103. package/dist-esm/samples-dev/regenerateTheOfAuthenticationKeys.js.map +1 -0
  104. package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.d.ts +2 -0
  105. package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.js +31 -0
  107. package/dist-esm/samples-dev/retrieveTheListOfAuthenticationKeys.js.map +1 -0
  108. package/dist-esm/samples-dev/retrieveTheMonitoringData.d.ts +2 -0
  109. package/dist-esm/samples-dev/retrieveTheMonitoringData.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/retrieveTheMonitoringData.js +31 -0
  111. package/dist-esm/samples-dev/retrieveTheMonitoringData.js.map +1 -0
  112. package/dist-esm/samples-dev/serviceTasksList.d.ts +2 -0
  113. package/dist-esm/samples-dev/serviceTasksList.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/serviceTasksList.js +45 -0
  115. package/dist-esm/samples-dev/serviceTasksList.js.map +1 -0
  116. package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.d.ts +2 -0
  117. package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.js +32 -0
  119. package/dist-esm/samples-dev/servicesCheckChildrenNameAvailability.js.map +1 -0
  120. package/dist-esm/samples-dev/servicesCheckNameAvailability.d.ts +2 -0
  121. package/dist-esm/samples-dev/servicesCheckNameAvailability.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/servicesCheckNameAvailability.js +34 -0
  123. package/dist-esm/samples-dev/servicesCheckNameAvailability.js.map +1 -0
  124. package/dist-esm/samples-dev/servicesCheckStatus.d.ts +2 -0
  125. package/dist-esm/samples-dev/servicesCheckStatus.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/servicesCheckStatus.js +31 -0
  127. package/dist-esm/samples-dev/servicesCheckStatus.js.map +1 -0
  128. package/dist-esm/samples-dev/servicesCreateOrUpdate.d.ts +2 -0
  129. package/dist-esm/samples-dev/servicesCreateOrUpdate.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/servicesCreateOrUpdate.js +35 -0
  131. package/dist-esm/samples-dev/servicesCreateOrUpdate.js.map +1 -0
  132. package/dist-esm/samples-dev/servicesList.d.ts +2 -0
  133. package/dist-esm/samples-dev/servicesList.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/servicesList.js +43 -0
  135. package/dist-esm/samples-dev/servicesList.js.map +1 -0
  136. package/dist-esm/samples-dev/servicesListByResourceGroup.d.ts +2 -0
  137. package/dist-esm/samples-dev/servicesListByResourceGroup.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/servicesListByResourceGroup.js +44 -0
  139. package/dist-esm/samples-dev/servicesListByResourceGroup.js.map +1 -0
  140. package/dist-esm/samples-dev/servicesListSkus.d.ts +2 -0
  141. package/dist-esm/samples-dev/servicesListSkus.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/servicesListSkus.js +45 -0
  143. package/dist-esm/samples-dev/servicesListSkus.js.map +1 -0
  144. package/dist-esm/samples-dev/servicesStart.d.ts +2 -0
  145. package/dist-esm/samples-dev/servicesStart.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/servicesStart.js +31 -0
  147. package/dist-esm/samples-dev/servicesStart.js.map +1 -0
  148. package/dist-esm/samples-dev/servicesStop.d.ts +2 -0
  149. package/dist-esm/samples-dev/servicesStop.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/servicesStop.js +31 -0
  151. package/dist-esm/samples-dev/servicesStop.js.map +1 -0
  152. package/dist-esm/samples-dev/servicesUsages.d.ts +2 -0
  153. package/dist-esm/samples-dev/servicesUsages.d.ts.map +1 -0
  154. package/dist-esm/samples-dev/servicesUsages.js +44 -0
  155. package/dist-esm/samples-dev/servicesUsages.js.map +1 -0
  156. package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.d.ts +2 -0
  157. package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.d.ts.map +1 -0
  158. package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.js +35 -0
  159. package/dist-esm/samples-dev/stopOngoingMigrationForTheDatabase.js.map +1 -0
  160. package/dist-esm/samples-dev/tasksCancel.d.ts +2 -0
  161. package/dist-esm/samples-dev/tasksCancel.d.ts.map +1 -0
  162. package/dist-esm/samples-dev/tasksCancel.js +32 -0
  163. package/dist-esm/samples-dev/tasksCancel.js.map +1 -0
  164. package/dist-esm/samples-dev/tasksCommand.d.ts +2 -0
  165. package/dist-esm/samples-dev/tasksCommand.d.ts.map +1 -0
  166. package/dist-esm/samples-dev/tasksCommand.js +37 -0
  167. package/dist-esm/samples-dev/tasksCommand.js.map +1 -0
  168. package/dist-esm/samples-dev/tasksCreateOrUpdate.d.ts +2 -0
  169. package/dist-esm/samples-dev/tasksCreateOrUpdate.d.ts.map +1 -0
  170. package/dist-esm/samples-dev/tasksCreateOrUpdate.js +38 -0
  171. package/dist-esm/samples-dev/tasksCreateOrUpdate.js.map +1 -0
  172. package/dist-esm/samples-dev/tasksDelete.d.ts +2 -0
  173. package/dist-esm/samples-dev/tasksDelete.d.ts.map +1 -0
  174. package/dist-esm/samples-dev/tasksDelete.js +32 -0
  175. package/dist-esm/samples-dev/tasksDelete.js.map +1 -0
  176. package/dist-esm/samples-dev/tasksGet.d.ts +2 -0
  177. package/dist-esm/samples-dev/tasksGet.d.ts.map +1 -0
  178. package/dist-esm/samples-dev/tasksGet.js +32 -0
  179. package/dist-esm/samples-dev/tasksGet.js.map +1 -0
  180. package/dist-esm/samples-dev/tasksList.d.ts +2 -0
  181. package/dist-esm/samples-dev/tasksList.d.ts.map +1 -0
  182. package/dist-esm/samples-dev/tasksList.js +46 -0
  183. package/dist-esm/samples-dev/tasksList.js.map +1 -0
  184. package/dist-esm/samples-dev/tasksUpdate.d.ts +2 -0
  185. package/dist-esm/samples-dev/tasksUpdate.d.ts.map +1 -0
  186. package/dist-esm/samples-dev/tasksUpdate.js +38 -0
  187. package/dist-esm/samples-dev/tasksUpdate.js.map +1 -0
  188. package/dist-esm/samples-dev/updateSqlMigrationService.d.ts +2 -0
  189. package/dist-esm/samples-dev/updateSqlMigrationService.d.ts.map +1 -0
  190. package/dist-esm/samples-dev/updateSqlMigrationService.js +32 -0
  191. package/dist-esm/samples-dev/updateSqlMigrationService.js.map +1 -0
  192. package/dist-esm/src/dataMigrationManagementClient.d.ts +28 -0
  193. package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -0
  194. package/dist-esm/src/dataMigrationManagementClient.js +61 -0
  195. package/dist-esm/src/dataMigrationManagementClient.js.map +1 -0
  196. package/dist-esm/src/index.d.ts +5 -0
  197. package/dist-esm/src/index.d.ts.map +1 -0
  198. package/dist-esm/src/index.js +12 -0
  199. package/dist-esm/src/index.js.map +1 -0
  200. package/dist-esm/src/lroImpl.d.ts +16 -0
  201. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  202. package/dist-esm/src/lroImpl.js +29 -0
  203. package/dist-esm/src/lroImpl.js.map +1 -0
  204. package/dist-esm/src/models/index.d.ts +7238 -0
  205. package/dist-esm/src/models/index.d.ts.map +1 -0
  206. package/dist-esm/src/models/index.js +534 -0
  207. package/dist-esm/src/models/index.js.map +1 -0
  208. package/dist-esm/src/models/mappers.d.ts +434 -0
  209. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  210. package/{esm → dist-esm/src}/models/mappers.js +7803 -6204
  211. package/dist-esm/src/models/mappers.js.map +1 -0
  212. package/dist-esm/src/models/parameters.d.ts +36 -0
  213. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  214. package/dist-esm/src/models/parameters.js +272 -0
  215. package/dist-esm/src/models/parameters.js.map +1 -0
  216. package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts +83 -0
  217. package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts.map +1 -0
  218. package/dist-esm/src/operations/databaseMigrationsSqlMi.js +309 -0
  219. package/dist-esm/src/operations/databaseMigrationsSqlMi.js.map +1 -0
  220. package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts +83 -0
  221. package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts.map +1 -0
  222. package/dist-esm/src/operations/databaseMigrationsSqlVm.js +309 -0
  223. package/dist-esm/src/operations/databaseMigrationsSqlVm.js.map +1 -0
  224. package/dist-esm/src/operations/files.d.ts +101 -0
  225. package/dist-esm/src/operations/files.d.ts.map +1 -0
  226. package/dist-esm/src/operations/files.js +358 -0
  227. package/dist-esm/src/operations/files.js.map +1 -0
  228. package/{esm → dist-esm/src}/operations/index.d.ts +4 -1
  229. package/dist-esm/src/operations/index.d.ts.map +1 -0
  230. package/dist-esm/src/operations/index.js +19 -0
  231. package/dist-esm/src/operations/index.js.map +1 -0
  232. package/dist-esm/src/operations/operations.d.ts +32 -0
  233. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  234. package/dist-esm/src/operations/operations.js +116 -0
  235. package/dist-esm/src/operations/operations.js.map +1 -0
  236. package/dist-esm/src/operations/projects.d.ts +78 -0
  237. package/dist-esm/src/operations/projects.d.ts.map +1 -0
  238. package/dist-esm/src/operations/projects.js +279 -0
  239. package/dist-esm/src/operations/projects.js.map +1 -0
  240. package/dist-esm/src/operations/resourceSkus.d.ts +32 -0
  241. package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -0
  242. package/dist-esm/src/operations/resourceSkus.js +124 -0
  243. package/dist-esm/src/operations/resourceSkus.js.map +1 -0
  244. package/dist-esm/src/operations/serviceTasks.d.ts +91 -0
  245. package/dist-esm/src/operations/serviceTasks.d.ts.map +1 -0
  246. package/dist-esm/src/operations/serviceTasks.js +316 -0
  247. package/dist-esm/src/operations/serviceTasks.js.map +1 -0
  248. package/dist-esm/src/operations/services.d.ts +217 -0
  249. package/dist-esm/src/operations/services.d.ts.map +1 -0
  250. package/dist-esm/src/operations/services.js +884 -0
  251. package/dist-esm/src/operations/services.js.map +1 -0
  252. package/dist-esm/src/operations/sqlMigrationServices.d.ts +178 -0
  253. package/dist-esm/src/operations/sqlMigrationServices.d.ts.map +1 -0
  254. package/dist-esm/src/operations/sqlMigrationServices.js +720 -0
  255. package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -0
  256. package/dist-esm/src/operations/tasks.d.ts +110 -0
  257. package/dist-esm/src/operations/tasks.d.ts.map +1 -0
  258. package/dist-esm/src/operations/tasks.js +369 -0
  259. package/dist-esm/src/operations/tasks.js.map +1 -0
  260. package/dist-esm/src/operations/usages.d.ts +37 -0
  261. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  262. package/dist-esm/src/operations/usages.js +134 -0
  263. package/dist-esm/src/operations/usages.js.map +1 -0
  264. package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.d.ts +75 -0
  265. package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -0
  266. package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.js +9 -0
  267. package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -0
  268. package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.d.ts +75 -0
  269. package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -0
  270. package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.js +9 -0
  271. package/dist-esm/src/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -0
  272. package/dist-esm/src/operationsInterfaces/files.d.ts +73 -0
  273. package/dist-esm/src/operationsInterfaces/files.d.ts.map +1 -0
  274. package/dist-esm/src/operationsInterfaces/files.js +9 -0
  275. package/dist-esm/src/operationsInterfaces/files.js.map +1 -0
  276. package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
  277. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  278. package/dist-esm/src/operationsInterfaces/index.js +19 -0
  279. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  280. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  281. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  282. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  283. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  284. package/dist-esm/src/operationsInterfaces/projects.d.ts +52 -0
  285. package/dist-esm/src/operationsInterfaces/projects.d.ts.map +1 -0
  286. package/dist-esm/src/operationsInterfaces/projects.js +9 -0
  287. package/dist-esm/src/operationsInterfaces/projects.js.map +1 -0
  288. package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts +11 -0
  289. package/dist-esm/src/operationsInterfaces/resourceSkus.d.ts.map +1 -0
  290. package/dist-esm/src/operationsInterfaces/resourceSkus.js +9 -0
  291. package/dist-esm/src/operationsInterfaces/resourceSkus.js.map +1 -0
  292. package/dist-esm/src/operationsInterfaces/serviceTasks.d.ts +64 -0
  293. package/dist-esm/src/operationsInterfaces/serviceTasks.d.ts.map +1 -0
  294. package/dist-esm/src/operationsInterfaces/serviceTasks.js +9 -0
  295. package/dist-esm/src/operationsInterfaces/serviceTasks.js.map +1 -0
  296. package/dist-esm/src/operationsInterfaces/services.d.ts +161 -0
  297. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
  298. package/dist-esm/src/operationsInterfaces/services.js +9 -0
  299. package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
  300. package/dist-esm/src/operationsInterfaces/sqlMigrationServices.d.ts +121 -0
  301. package/dist-esm/src/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -0
  302. package/dist-esm/src/operationsInterfaces/sqlMigrationServices.js +9 -0
  303. package/dist-esm/src/operationsInterfaces/sqlMigrationServices.js.map +1 -0
  304. package/dist-esm/src/operationsInterfaces/tasks.d.ts +81 -0
  305. package/dist-esm/src/operationsInterfaces/tasks.d.ts.map +1 -0
  306. package/dist-esm/src/operationsInterfaces/tasks.js +9 -0
  307. package/dist-esm/src/operationsInterfaces/tasks.js.map +1 -0
  308. package/dist-esm/src/operationsInterfaces/usages.d.ts +13 -0
  309. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  310. package/dist-esm/src/operationsInterfaces/usages.js +9 -0
  311. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  312. package/dist-esm/test/sampleTest.d.ts +2 -0
  313. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  314. package/dist-esm/test/sampleTest.js +40 -0
  315. package/dist-esm/test/sampleTest.js.map +1 -0
  316. package/package.json +82 -23
  317. package/review/arm-datamigration.api.md +4412 -0
  318. package/rollup.config.js +181 -30
  319. package/src/dataMigrationManagementClient.ts +119 -0
  320. package/src/index.ts +12 -0
  321. package/src/lroImpl.ts +34 -0
  322. package/src/models/index.ts +6252 -7473
  323. package/src/models/mappers.ts +8147 -6279
  324. package/src/models/parameters.ts +230 -54
  325. package/src/operations/databaseMigrationsSqlMi.ts +453 -0
  326. package/src/operations/databaseMigrationsSqlVm.ts +453 -0
  327. package/src/operations/files.ts +283 -368
  328. package/src/operations/index.ts +7 -6
  329. package/src/operations/operations.ts +93 -85
  330. package/src/operations/projects.ts +222 -275
  331. package/src/operations/resourceSkus.ts +92 -78
  332. package/src/operations/serviceTasks.ts +244 -321
  333. package/src/operations/services.ts +887 -647
  334. package/src/operations/sqlMigrationServices.ts +986 -0
  335. package/src/operations/tasks.ts +303 -397
  336. package/src/operations/usages.ts +110 -85
  337. package/src/operationsInterfaces/databaseMigrationsSqlMi.ts +138 -0
  338. package/src/operationsInterfaces/databaseMigrationsSqlVm.ts +138 -0
  339. package/src/operationsInterfaces/files.ts +139 -0
  340. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +8 -7
  341. package/src/operationsInterfaces/operations.ts +22 -0
  342. package/src/operationsInterfaces/projects.ts +97 -0
  343. package/src/operationsInterfaces/resourceSkus.ts +22 -0
  344. package/src/operationsInterfaces/serviceTasks.ts +116 -0
  345. package/src/operationsInterfaces/services.ts +272 -0
  346. package/src/operationsInterfaces/sqlMigrationServices.ts +223 -0
  347. package/src/operationsInterfaces/tasks.ts +149 -0
  348. package/src/operationsInterfaces/usages.ts +25 -0
  349. package/tsconfig.json +5 -4
  350. package/types/arm-datamigration.d.ts +8549 -0
  351. package/types/tsdoc-metadata.json +11 -0
  352. package/dist/arm-datamigration.js +0 -14012
  353. package/dist/arm-datamigration.js.map +0 -1
  354. package/dist/arm-datamigration.min.js +0 -1
  355. package/dist/arm-datamigration.min.js.map +0 -1
  356. package/esm/dataMigrationServiceClient.d.ts +0 -31
  357. package/esm/dataMigrationServiceClient.d.ts.map +0 -1
  358. package/esm/dataMigrationServiceClient.js +0 -45
  359. package/esm/dataMigrationServiceClient.js.map +0 -1
  360. package/esm/dataMigrationServiceClientContext.d.ts +0 -22
  361. package/esm/dataMigrationServiceClientContext.d.ts.map +0 -1
  362. package/esm/dataMigrationServiceClientContext.js +0 -61
  363. package/esm/dataMigrationServiceClientContext.js.map +0 -1
  364. package/esm/models/filesMappers.d.ts +0 -2
  365. package/esm/models/filesMappers.d.ts.map +0 -1
  366. package/esm/models/filesMappers.js +0 -9
  367. package/esm/models/filesMappers.js.map +0 -1
  368. package/esm/models/index.d.ts +0 -8920
  369. package/esm/models/index.d.ts.map +0 -1
  370. package/esm/models/index.js +0 -8
  371. package/esm/models/index.js.map +0 -1
  372. package/esm/models/mappers.d.ts +0 -374
  373. package/esm/models/mappers.d.ts.map +0 -1
  374. package/esm/models/mappers.js.map +0 -1
  375. package/esm/models/operationsMappers.d.ts +0 -2
  376. package/esm/models/operationsMappers.d.ts.map +0 -1
  377. package/esm/models/operationsMappers.js +0 -9
  378. package/esm/models/operationsMappers.js.map +0 -1
  379. package/esm/models/parameters.d.ts +0 -15
  380. package/esm/models/parameters.d.ts.map +0 -1
  381. package/esm/models/parameters.js +0 -147
  382. package/esm/models/parameters.js.map +0 -1
  383. package/esm/models/projectsMappers.d.ts +0 -2
  384. package/esm/models/projectsMappers.d.ts.map +0 -1
  385. package/esm/models/projectsMappers.js +0 -9
  386. package/esm/models/projectsMappers.js.map +0 -1
  387. package/esm/models/resourceSkusMappers.d.ts +0 -2
  388. package/esm/models/resourceSkusMappers.d.ts.map +0 -1
  389. package/esm/models/resourceSkusMappers.js +0 -9
  390. package/esm/models/resourceSkusMappers.js.map +0 -1
  391. package/esm/models/serviceTasksMappers.d.ts +0 -2
  392. package/esm/models/serviceTasksMappers.d.ts.map +0 -1
  393. package/esm/models/serviceTasksMappers.js +0 -9
  394. package/esm/models/serviceTasksMappers.js.map +0 -1
  395. package/esm/models/servicesMappers.d.ts +0 -2
  396. package/esm/models/servicesMappers.d.ts.map +0 -1
  397. package/esm/models/servicesMappers.js +0 -9
  398. package/esm/models/servicesMappers.js.map +0 -1
  399. package/esm/models/tasksMappers.d.ts +0 -2
  400. package/esm/models/tasksMappers.d.ts.map +0 -1
  401. package/esm/models/tasksMappers.js +0 -9
  402. package/esm/models/tasksMappers.js.map +0 -1
  403. package/esm/models/usagesMappers.d.ts +0 -2
  404. package/esm/models/usagesMappers.d.ts.map +0 -1
  405. package/esm/models/usagesMappers.js +0 -9
  406. package/esm/models/usagesMappers.js.map +0 -1
  407. package/esm/operations/files.d.ts +0 -235
  408. package/esm/operations/files.d.ts.map +0 -1
  409. package/esm/operations/files.js +0 -309
  410. package/esm/operations/files.js.map +0 -1
  411. package/esm/operations/index.d.ts.map +0 -1
  412. package/esm/operations/index.js.map +0 -1
  413. package/esm/operations/operations.d.ts +0 -48
  414. package/esm/operations/operations.d.ts.map +0 -1
  415. package/esm/operations/operations.js +0 -77
  416. package/esm/operations/operations.js.map +0 -1
  417. package/esm/operations/projects.d.ts +0 -166
  418. package/esm/operations/projects.d.ts.map +0 -1
  419. package/esm/operations/projects.js +0 -230
  420. package/esm/operations/projects.js.map +0 -1
  421. package/esm/operations/resourceSkus.d.ts +0 -48
  422. package/esm/operations/resourceSkus.d.ts.map +0 -1
  423. package/esm/operations/resourceSkus.js +0 -80
  424. package/esm/operations/resourceSkus.js.map +0 -1
  425. package/esm/operations/serviceTasks.d.ts +0 -199
  426. package/esm/operations/serviceTasks.d.ts.map +0 -1
  427. package/esm/operations/serviceTasks.js +0 -265
  428. package/esm/operations/serviceTasks.js.map +0 -1
  429. package/esm/operations/services.d.ts +0 -350
  430. package/esm/operations/services.d.ts.map +0 -1
  431. package/esm/operations/services.js +0 -626
  432. package/esm/operations/services.js.map +0 -1
  433. package/esm/operations/tasks.d.ts +0 -246
  434. package/esm/operations/tasks.d.ts.map +0 -1
  435. package/esm/operations/tasks.js +0 -317
  436. package/esm/operations/tasks.js.map +0 -1
  437. package/esm/operations/usages.d.ts +0 -53
  438. package/esm/operations/usages.d.ts.map +0 -1
  439. package/esm/operations/usages.js +0 -82
  440. package/esm/operations/usages.js.map +0 -1
  441. package/src/dataMigrationServiceClient.ts +0 -62
  442. package/src/dataMigrationServiceClientContext.ts +0 -68
  443. package/src/models/filesMappers.ts +0 -235
  444. package/src/models/operationsMappers.ts +0 -16
  445. package/src/models/projectsMappers.ts +0 -234
  446. package/src/models/resourceSkusMappers.ts +0 -19
  447. package/src/models/serviceTasksMappers.ts +0 -234
  448. package/src/models/servicesMappers.ts +0 -241
  449. package/src/models/tasksMappers.ts +0 -234
  450. package/src/models/usagesMappers.ts +0 -16
@@ -0,0 +1,986 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SqlMigrationServices } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { DataMigrationManagementClient } from "../dataMigrationManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ SqlMigrationService,
19
+ SqlMigrationServicesListByResourceGroupNextOptionalParams,
20
+ SqlMigrationServicesListByResourceGroupOptionalParams,
21
+ DatabaseMigration,
22
+ SqlMigrationServicesListMigrationsNextOptionalParams,
23
+ SqlMigrationServicesListMigrationsOptionalParams,
24
+ SqlMigrationServicesListBySubscriptionNextOptionalParams,
25
+ SqlMigrationServicesListBySubscriptionOptionalParams,
26
+ SqlMigrationServicesGetOptionalParams,
27
+ SqlMigrationServicesGetResponse,
28
+ SqlMigrationServicesCreateOrUpdateOptionalParams,
29
+ SqlMigrationServicesCreateOrUpdateResponse,
30
+ SqlMigrationServicesDeleteOptionalParams,
31
+ SqlMigrationServiceUpdate,
32
+ SqlMigrationServicesUpdateOptionalParams,
33
+ SqlMigrationServicesUpdateResponse,
34
+ SqlMigrationServicesListByResourceGroupResponse,
35
+ SqlMigrationServicesListAuthKeysOptionalParams,
36
+ SqlMigrationServicesListAuthKeysResponse,
37
+ RegenAuthKeys,
38
+ SqlMigrationServicesRegenerateAuthKeysOptionalParams,
39
+ SqlMigrationServicesRegenerateAuthKeysResponse,
40
+ DeleteNode,
41
+ SqlMigrationServicesDeleteNodeOptionalParams,
42
+ SqlMigrationServicesDeleteNodeResponse,
43
+ SqlMigrationServicesListMigrationsResponse,
44
+ SqlMigrationServicesListMonitoringDataOptionalParams,
45
+ SqlMigrationServicesListMonitoringDataResponse,
46
+ SqlMigrationServicesListBySubscriptionResponse,
47
+ SqlMigrationServicesListByResourceGroupNextResponse,
48
+ SqlMigrationServicesListMigrationsNextResponse,
49
+ SqlMigrationServicesListBySubscriptionNextResponse
50
+ } from "../models";
51
+
52
+ /// <reference lib="esnext.asynciterable" />
53
+ /** Class containing SqlMigrationServices operations. */
54
+ export class SqlMigrationServicesImpl implements SqlMigrationServices {
55
+ private readonly client: DataMigrationManagementClient;
56
+
57
+ /**
58
+ * Initialize a new instance of the class SqlMigrationServices class.
59
+ * @param client Reference to the service client
60
+ */
61
+ constructor(client: DataMigrationManagementClient) {
62
+ this.client = client;
63
+ }
64
+
65
+ /**
66
+ * Retrieve all SQL migration services in the resource group.
67
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
68
+ * value from the Azure Resource Manager API or the portal.
69
+ * @param options The options parameters.
70
+ */
71
+ public listByResourceGroup(
72
+ resourceGroupName: string,
73
+ options?: SqlMigrationServicesListByResourceGroupOptionalParams
74
+ ): PagedAsyncIterableIterator<SqlMigrationService> {
75
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
76
+ return {
77
+ next() {
78
+ return iter.next();
79
+ },
80
+ [Symbol.asyncIterator]() {
81
+ return this;
82
+ },
83
+ byPage: () => {
84
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
85
+ }
86
+ };
87
+ }
88
+
89
+ private async *listByResourceGroupPagingPage(
90
+ resourceGroupName: string,
91
+ options?: SqlMigrationServicesListByResourceGroupOptionalParams
92
+ ): AsyncIterableIterator<SqlMigrationService[]> {
93
+ let result = await this._listByResourceGroup(resourceGroupName, options);
94
+ yield result.value || [];
95
+ let continuationToken = result.nextLink;
96
+ while (continuationToken) {
97
+ result = await this._listByResourceGroupNext(
98
+ resourceGroupName,
99
+ continuationToken,
100
+ options
101
+ );
102
+ continuationToken = result.nextLink;
103
+ yield result.value || [];
104
+ }
105
+ }
106
+
107
+ private async *listByResourceGroupPagingAll(
108
+ resourceGroupName: string,
109
+ options?: SqlMigrationServicesListByResourceGroupOptionalParams
110
+ ): AsyncIterableIterator<SqlMigrationService> {
111
+ for await (const page of this.listByResourceGroupPagingPage(
112
+ resourceGroupName,
113
+ options
114
+ )) {
115
+ yield* page;
116
+ }
117
+ }
118
+
119
+ /**
120
+ * Retrieve the List of database migrations attached to the service.
121
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
122
+ * value from the Azure Resource Manager API or the portal.
123
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
124
+ * @param options The options parameters.
125
+ */
126
+ public listMigrations(
127
+ resourceGroupName: string,
128
+ sqlMigrationServiceName: string,
129
+ options?: SqlMigrationServicesListMigrationsOptionalParams
130
+ ): PagedAsyncIterableIterator<DatabaseMigration> {
131
+ const iter = this.listMigrationsPagingAll(
132
+ resourceGroupName,
133
+ sqlMigrationServiceName,
134
+ options
135
+ );
136
+ return {
137
+ next() {
138
+ return iter.next();
139
+ },
140
+ [Symbol.asyncIterator]() {
141
+ return this;
142
+ },
143
+ byPage: () => {
144
+ return this.listMigrationsPagingPage(
145
+ resourceGroupName,
146
+ sqlMigrationServiceName,
147
+ options
148
+ );
149
+ }
150
+ };
151
+ }
152
+
153
+ private async *listMigrationsPagingPage(
154
+ resourceGroupName: string,
155
+ sqlMigrationServiceName: string,
156
+ options?: SqlMigrationServicesListMigrationsOptionalParams
157
+ ): AsyncIterableIterator<DatabaseMigration[]> {
158
+ let result = await this._listMigrations(
159
+ resourceGroupName,
160
+ sqlMigrationServiceName,
161
+ options
162
+ );
163
+ yield result.value || [];
164
+ let continuationToken = result.nextLink;
165
+ while (continuationToken) {
166
+ result = await this._listMigrationsNext(
167
+ resourceGroupName,
168
+ sqlMigrationServiceName,
169
+ continuationToken,
170
+ options
171
+ );
172
+ continuationToken = result.nextLink;
173
+ yield result.value || [];
174
+ }
175
+ }
176
+
177
+ private async *listMigrationsPagingAll(
178
+ resourceGroupName: string,
179
+ sqlMigrationServiceName: string,
180
+ options?: SqlMigrationServicesListMigrationsOptionalParams
181
+ ): AsyncIterableIterator<DatabaseMigration> {
182
+ for await (const page of this.listMigrationsPagingPage(
183
+ resourceGroupName,
184
+ sqlMigrationServiceName,
185
+ options
186
+ )) {
187
+ yield* page;
188
+ }
189
+ }
190
+
191
+ /**
192
+ * Retrieve all SQL migration services in the subscriptions.
193
+ * @param options The options parameters.
194
+ */
195
+ public listBySubscription(
196
+ options?: SqlMigrationServicesListBySubscriptionOptionalParams
197
+ ): PagedAsyncIterableIterator<SqlMigrationService> {
198
+ const iter = this.listBySubscriptionPagingAll(options);
199
+ return {
200
+ next() {
201
+ return iter.next();
202
+ },
203
+ [Symbol.asyncIterator]() {
204
+ return this;
205
+ },
206
+ byPage: () => {
207
+ return this.listBySubscriptionPagingPage(options);
208
+ }
209
+ };
210
+ }
211
+
212
+ private async *listBySubscriptionPagingPage(
213
+ options?: SqlMigrationServicesListBySubscriptionOptionalParams
214
+ ): AsyncIterableIterator<SqlMigrationService[]> {
215
+ let result = await this._listBySubscription(options);
216
+ yield result.value || [];
217
+ let continuationToken = result.nextLink;
218
+ while (continuationToken) {
219
+ result = await this._listBySubscriptionNext(continuationToken, options);
220
+ continuationToken = result.nextLink;
221
+ yield result.value || [];
222
+ }
223
+ }
224
+
225
+ private async *listBySubscriptionPagingAll(
226
+ options?: SqlMigrationServicesListBySubscriptionOptionalParams
227
+ ): AsyncIterableIterator<SqlMigrationService> {
228
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
229
+ yield* page;
230
+ }
231
+ }
232
+
233
+ /**
234
+ * Retrieve the Migration Service.
235
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
236
+ * value from the Azure Resource Manager API or the portal.
237
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
238
+ * @param options The options parameters.
239
+ */
240
+ get(
241
+ resourceGroupName: string,
242
+ sqlMigrationServiceName: string,
243
+ options?: SqlMigrationServicesGetOptionalParams
244
+ ): Promise<SqlMigrationServicesGetResponse> {
245
+ return this.client.sendOperationRequest(
246
+ { resourceGroupName, sqlMigrationServiceName, options },
247
+ getOperationSpec
248
+ );
249
+ }
250
+
251
+ /**
252
+ * Create or Update SQL Migration Service.
253
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
254
+ * value from the Azure Resource Manager API or the portal.
255
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
256
+ * @param parameters Details of SqlMigrationService resource.
257
+ * @param options The options parameters.
258
+ */
259
+ async beginCreateOrUpdate(
260
+ resourceGroupName: string,
261
+ sqlMigrationServiceName: string,
262
+ parameters: SqlMigrationService,
263
+ options?: SqlMigrationServicesCreateOrUpdateOptionalParams
264
+ ): Promise<
265
+ PollerLike<
266
+ PollOperationState<SqlMigrationServicesCreateOrUpdateResponse>,
267
+ SqlMigrationServicesCreateOrUpdateResponse
268
+ >
269
+ > {
270
+ const directSendOperation = async (
271
+ args: coreClient.OperationArguments,
272
+ spec: coreClient.OperationSpec
273
+ ): Promise<SqlMigrationServicesCreateOrUpdateResponse> => {
274
+ return this.client.sendOperationRequest(args, spec);
275
+ };
276
+ const sendOperation = async (
277
+ args: coreClient.OperationArguments,
278
+ spec: coreClient.OperationSpec
279
+ ) => {
280
+ let currentRawResponse:
281
+ | coreClient.FullOperationResponse
282
+ | undefined = undefined;
283
+ const providedCallback = args.options?.onResponse;
284
+ const callback: coreClient.RawResponseCallback = (
285
+ rawResponse: coreClient.FullOperationResponse,
286
+ flatResponse: unknown
287
+ ) => {
288
+ currentRawResponse = rawResponse;
289
+ providedCallback?.(rawResponse, flatResponse);
290
+ };
291
+ const updatedArgs = {
292
+ ...args,
293
+ options: {
294
+ ...args.options,
295
+ onResponse: callback
296
+ }
297
+ };
298
+ const flatResponse = await directSendOperation(updatedArgs, spec);
299
+ return {
300
+ flatResponse,
301
+ rawResponse: {
302
+ statusCode: currentRawResponse!.status,
303
+ body: currentRawResponse!.parsedBody,
304
+ headers: currentRawResponse!.headers.toJSON()
305
+ }
306
+ };
307
+ };
308
+
309
+ const lro = new LroImpl(
310
+ sendOperation,
311
+ { resourceGroupName, sqlMigrationServiceName, parameters, options },
312
+ createOrUpdateOperationSpec
313
+ );
314
+ return new LroEngine(lro, {
315
+ resumeFrom: options?.resumeFrom,
316
+ intervalInMs: options?.updateIntervalInMs
317
+ });
318
+ }
319
+
320
+ /**
321
+ * Create or Update SQL Migration Service.
322
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
323
+ * value from the Azure Resource Manager API or the portal.
324
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
325
+ * @param parameters Details of SqlMigrationService resource.
326
+ * @param options The options parameters.
327
+ */
328
+ async beginCreateOrUpdateAndWait(
329
+ resourceGroupName: string,
330
+ sqlMigrationServiceName: string,
331
+ parameters: SqlMigrationService,
332
+ options?: SqlMigrationServicesCreateOrUpdateOptionalParams
333
+ ): Promise<SqlMigrationServicesCreateOrUpdateResponse> {
334
+ const poller = await this.beginCreateOrUpdate(
335
+ resourceGroupName,
336
+ sqlMigrationServiceName,
337
+ parameters,
338
+ options
339
+ );
340
+ return poller.pollUntilDone();
341
+ }
342
+
343
+ /**
344
+ * Delete SQL Migration Service.
345
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
346
+ * value from the Azure Resource Manager API or the portal.
347
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
348
+ * @param options The options parameters.
349
+ */
350
+ async beginDelete(
351
+ resourceGroupName: string,
352
+ sqlMigrationServiceName: string,
353
+ options?: SqlMigrationServicesDeleteOptionalParams
354
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
355
+ const directSendOperation = async (
356
+ args: coreClient.OperationArguments,
357
+ spec: coreClient.OperationSpec
358
+ ): Promise<void> => {
359
+ return this.client.sendOperationRequest(args, spec);
360
+ };
361
+ const sendOperation = async (
362
+ args: coreClient.OperationArguments,
363
+ spec: coreClient.OperationSpec
364
+ ) => {
365
+ let currentRawResponse:
366
+ | coreClient.FullOperationResponse
367
+ | undefined = undefined;
368
+ const providedCallback = args.options?.onResponse;
369
+ const callback: coreClient.RawResponseCallback = (
370
+ rawResponse: coreClient.FullOperationResponse,
371
+ flatResponse: unknown
372
+ ) => {
373
+ currentRawResponse = rawResponse;
374
+ providedCallback?.(rawResponse, flatResponse);
375
+ };
376
+ const updatedArgs = {
377
+ ...args,
378
+ options: {
379
+ ...args.options,
380
+ onResponse: callback
381
+ }
382
+ };
383
+ const flatResponse = await directSendOperation(updatedArgs, spec);
384
+ return {
385
+ flatResponse,
386
+ rawResponse: {
387
+ statusCode: currentRawResponse!.status,
388
+ body: currentRawResponse!.parsedBody,
389
+ headers: currentRawResponse!.headers.toJSON()
390
+ }
391
+ };
392
+ };
393
+
394
+ const lro = new LroImpl(
395
+ sendOperation,
396
+ { resourceGroupName, sqlMigrationServiceName, options },
397
+ deleteOperationSpec
398
+ );
399
+ return new LroEngine(lro, {
400
+ resumeFrom: options?.resumeFrom,
401
+ intervalInMs: options?.updateIntervalInMs
402
+ });
403
+ }
404
+
405
+ /**
406
+ * Delete SQL Migration Service.
407
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
408
+ * value from the Azure Resource Manager API or the portal.
409
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
410
+ * @param options The options parameters.
411
+ */
412
+ async beginDeleteAndWait(
413
+ resourceGroupName: string,
414
+ sqlMigrationServiceName: string,
415
+ options?: SqlMigrationServicesDeleteOptionalParams
416
+ ): Promise<void> {
417
+ const poller = await this.beginDelete(
418
+ resourceGroupName,
419
+ sqlMigrationServiceName,
420
+ options
421
+ );
422
+ return poller.pollUntilDone();
423
+ }
424
+
425
+ /**
426
+ * Update SQL Migration Service.
427
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
428
+ * value from the Azure Resource Manager API or the portal.
429
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
430
+ * @param parameters Details of SqlMigrationService resource.
431
+ * @param options The options parameters.
432
+ */
433
+ async beginUpdate(
434
+ resourceGroupName: string,
435
+ sqlMigrationServiceName: string,
436
+ parameters: SqlMigrationServiceUpdate,
437
+ options?: SqlMigrationServicesUpdateOptionalParams
438
+ ): Promise<
439
+ PollerLike<
440
+ PollOperationState<SqlMigrationServicesUpdateResponse>,
441
+ SqlMigrationServicesUpdateResponse
442
+ >
443
+ > {
444
+ const directSendOperation = async (
445
+ args: coreClient.OperationArguments,
446
+ spec: coreClient.OperationSpec
447
+ ): Promise<SqlMigrationServicesUpdateResponse> => {
448
+ return this.client.sendOperationRequest(args, spec);
449
+ };
450
+ const sendOperation = async (
451
+ args: coreClient.OperationArguments,
452
+ spec: coreClient.OperationSpec
453
+ ) => {
454
+ let currentRawResponse:
455
+ | coreClient.FullOperationResponse
456
+ | undefined = undefined;
457
+ const providedCallback = args.options?.onResponse;
458
+ const callback: coreClient.RawResponseCallback = (
459
+ rawResponse: coreClient.FullOperationResponse,
460
+ flatResponse: unknown
461
+ ) => {
462
+ currentRawResponse = rawResponse;
463
+ providedCallback?.(rawResponse, flatResponse);
464
+ };
465
+ const updatedArgs = {
466
+ ...args,
467
+ options: {
468
+ ...args.options,
469
+ onResponse: callback
470
+ }
471
+ };
472
+ const flatResponse = await directSendOperation(updatedArgs, spec);
473
+ return {
474
+ flatResponse,
475
+ rawResponse: {
476
+ statusCode: currentRawResponse!.status,
477
+ body: currentRawResponse!.parsedBody,
478
+ headers: currentRawResponse!.headers.toJSON()
479
+ }
480
+ };
481
+ };
482
+
483
+ const lro = new LroImpl(
484
+ sendOperation,
485
+ { resourceGroupName, sqlMigrationServiceName, parameters, options },
486
+ updateOperationSpec
487
+ );
488
+ return new LroEngine(lro, {
489
+ resumeFrom: options?.resumeFrom,
490
+ intervalInMs: options?.updateIntervalInMs
491
+ });
492
+ }
493
+
494
+ /**
495
+ * Update SQL Migration Service.
496
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
497
+ * value from the Azure Resource Manager API or the portal.
498
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
499
+ * @param parameters Details of SqlMigrationService resource.
500
+ * @param options The options parameters.
501
+ */
502
+ async beginUpdateAndWait(
503
+ resourceGroupName: string,
504
+ sqlMigrationServiceName: string,
505
+ parameters: SqlMigrationServiceUpdate,
506
+ options?: SqlMigrationServicesUpdateOptionalParams
507
+ ): Promise<SqlMigrationServicesUpdateResponse> {
508
+ const poller = await this.beginUpdate(
509
+ resourceGroupName,
510
+ sqlMigrationServiceName,
511
+ parameters,
512
+ options
513
+ );
514
+ return poller.pollUntilDone();
515
+ }
516
+
517
+ /**
518
+ * Retrieve all SQL migration services in the resource group.
519
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
520
+ * value from the Azure Resource Manager API or the portal.
521
+ * @param options The options parameters.
522
+ */
523
+ private _listByResourceGroup(
524
+ resourceGroupName: string,
525
+ options?: SqlMigrationServicesListByResourceGroupOptionalParams
526
+ ): Promise<SqlMigrationServicesListByResourceGroupResponse> {
527
+ return this.client.sendOperationRequest(
528
+ { resourceGroupName, options },
529
+ listByResourceGroupOperationSpec
530
+ );
531
+ }
532
+
533
+ /**
534
+ * Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.
535
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
536
+ * value from the Azure Resource Manager API or the portal.
537
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
538
+ * @param options The options parameters.
539
+ */
540
+ listAuthKeys(
541
+ resourceGroupName: string,
542
+ sqlMigrationServiceName: string,
543
+ options?: SqlMigrationServicesListAuthKeysOptionalParams
544
+ ): Promise<SqlMigrationServicesListAuthKeysResponse> {
545
+ return this.client.sendOperationRequest(
546
+ { resourceGroupName, sqlMigrationServiceName, options },
547
+ listAuthKeysOperationSpec
548
+ );
549
+ }
550
+
551
+ /**
552
+ * Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.
553
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
554
+ * value from the Azure Resource Manager API or the portal.
555
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
556
+ * @param parameters Details of SqlMigrationService resource.
557
+ * @param options The options parameters.
558
+ */
559
+ regenerateAuthKeys(
560
+ resourceGroupName: string,
561
+ sqlMigrationServiceName: string,
562
+ parameters: RegenAuthKeys,
563
+ options?: SqlMigrationServicesRegenerateAuthKeysOptionalParams
564
+ ): Promise<SqlMigrationServicesRegenerateAuthKeysResponse> {
565
+ return this.client.sendOperationRequest(
566
+ { resourceGroupName, sqlMigrationServiceName, parameters, options },
567
+ regenerateAuthKeysOperationSpec
568
+ );
569
+ }
570
+
571
+ /**
572
+ * Delete the integration runtime node.
573
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
574
+ * value from the Azure Resource Manager API or the portal.
575
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
576
+ * @param parameters Details of SqlMigrationService resource.
577
+ * @param options The options parameters.
578
+ */
579
+ deleteNode(
580
+ resourceGroupName: string,
581
+ sqlMigrationServiceName: string,
582
+ parameters: DeleteNode,
583
+ options?: SqlMigrationServicesDeleteNodeOptionalParams
584
+ ): Promise<SqlMigrationServicesDeleteNodeResponse> {
585
+ return this.client.sendOperationRequest(
586
+ { resourceGroupName, sqlMigrationServiceName, parameters, options },
587
+ deleteNodeOperationSpec
588
+ );
589
+ }
590
+
591
+ /**
592
+ * Retrieve the List of database migrations attached to the service.
593
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
594
+ * value from the Azure Resource Manager API or the portal.
595
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
596
+ * @param options The options parameters.
597
+ */
598
+ private _listMigrations(
599
+ resourceGroupName: string,
600
+ sqlMigrationServiceName: string,
601
+ options?: SqlMigrationServicesListMigrationsOptionalParams
602
+ ): Promise<SqlMigrationServicesListMigrationsResponse> {
603
+ return this.client.sendOperationRequest(
604
+ { resourceGroupName, sqlMigrationServiceName, options },
605
+ listMigrationsOperationSpec
606
+ );
607
+ }
608
+
609
+ /**
610
+ * Retrieve the Monitoring Data.
611
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
612
+ * value from the Azure Resource Manager API or the portal.
613
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
614
+ * @param options The options parameters.
615
+ */
616
+ listMonitoringData(
617
+ resourceGroupName: string,
618
+ sqlMigrationServiceName: string,
619
+ options?: SqlMigrationServicesListMonitoringDataOptionalParams
620
+ ): Promise<SqlMigrationServicesListMonitoringDataResponse> {
621
+ return this.client.sendOperationRequest(
622
+ { resourceGroupName, sqlMigrationServiceName, options },
623
+ listMonitoringDataOperationSpec
624
+ );
625
+ }
626
+
627
+ /**
628
+ * Retrieve all SQL migration services in the subscriptions.
629
+ * @param options The options parameters.
630
+ */
631
+ private _listBySubscription(
632
+ options?: SqlMigrationServicesListBySubscriptionOptionalParams
633
+ ): Promise<SqlMigrationServicesListBySubscriptionResponse> {
634
+ return this.client.sendOperationRequest(
635
+ { options },
636
+ listBySubscriptionOperationSpec
637
+ );
638
+ }
639
+
640
+ /**
641
+ * ListByResourceGroupNext
642
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
643
+ * value from the Azure Resource Manager API or the portal.
644
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
645
+ * @param options The options parameters.
646
+ */
647
+ private _listByResourceGroupNext(
648
+ resourceGroupName: string,
649
+ nextLink: string,
650
+ options?: SqlMigrationServicesListByResourceGroupNextOptionalParams
651
+ ): Promise<SqlMigrationServicesListByResourceGroupNextResponse> {
652
+ return this.client.sendOperationRequest(
653
+ { resourceGroupName, nextLink, options },
654
+ listByResourceGroupNextOperationSpec
655
+ );
656
+ }
657
+
658
+ /**
659
+ * ListMigrationsNext
660
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
661
+ * value from the Azure Resource Manager API or the portal.
662
+ * @param sqlMigrationServiceName Name of the SQL Migration Service.
663
+ * @param nextLink The nextLink from the previous successful call to the ListMigrations method.
664
+ * @param options The options parameters.
665
+ */
666
+ private _listMigrationsNext(
667
+ resourceGroupName: string,
668
+ sqlMigrationServiceName: string,
669
+ nextLink: string,
670
+ options?: SqlMigrationServicesListMigrationsNextOptionalParams
671
+ ): Promise<SqlMigrationServicesListMigrationsNextResponse> {
672
+ return this.client.sendOperationRequest(
673
+ { resourceGroupName, sqlMigrationServiceName, nextLink, options },
674
+ listMigrationsNextOperationSpec
675
+ );
676
+ }
677
+
678
+ /**
679
+ * ListBySubscriptionNext
680
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
681
+ * @param options The options parameters.
682
+ */
683
+ private _listBySubscriptionNext(
684
+ nextLink: string,
685
+ options?: SqlMigrationServicesListBySubscriptionNextOptionalParams
686
+ ): Promise<SqlMigrationServicesListBySubscriptionNextResponse> {
687
+ return this.client.sendOperationRequest(
688
+ { nextLink, options },
689
+ listBySubscriptionNextOperationSpec
690
+ );
691
+ }
692
+ }
693
+ // Operation Specifications
694
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
695
+
696
+ const getOperationSpec: coreClient.OperationSpec = {
697
+ path:
698
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
699
+ httpMethod: "GET",
700
+ responses: {
701
+ 200: {
702
+ bodyMapper: Mappers.SqlMigrationService
703
+ },
704
+ default: {}
705
+ },
706
+ queryParameters: [Parameters.apiVersion],
707
+ urlParameters: [
708
+ Parameters.$host,
709
+ Parameters.resourceGroupName,
710
+ Parameters.subscriptionId,
711
+ Parameters.sqlMigrationServiceName
712
+ ],
713
+ headerParameters: [Parameters.accept],
714
+ serializer
715
+ };
716
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
717
+ path:
718
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
719
+ httpMethod: "PUT",
720
+ responses: {
721
+ 200: {
722
+ bodyMapper: Mappers.SqlMigrationService
723
+ },
724
+ 201: {
725
+ bodyMapper: Mappers.SqlMigrationService
726
+ },
727
+ 202: {
728
+ bodyMapper: Mappers.SqlMigrationService
729
+ },
730
+ 204: {
731
+ bodyMapper: Mappers.SqlMigrationService
732
+ },
733
+ default: {}
734
+ },
735
+ requestBody: Parameters.parameters3,
736
+ queryParameters: [Parameters.apiVersion],
737
+ urlParameters: [
738
+ Parameters.$host,
739
+ Parameters.resourceGroupName,
740
+ Parameters.subscriptionId,
741
+ Parameters.sqlMigrationServiceName
742
+ ],
743
+ headerParameters: [Parameters.accept, Parameters.contentType],
744
+ mediaType: "json",
745
+ serializer
746
+ };
747
+ const deleteOperationSpec: coreClient.OperationSpec = {
748
+ path:
749
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
750
+ httpMethod: "DELETE",
751
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
752
+ queryParameters: [Parameters.apiVersion],
753
+ urlParameters: [
754
+ Parameters.$host,
755
+ Parameters.resourceGroupName,
756
+ Parameters.subscriptionId,
757
+ Parameters.sqlMigrationServiceName
758
+ ],
759
+ serializer
760
+ };
761
+ const updateOperationSpec: coreClient.OperationSpec = {
762
+ path:
763
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}",
764
+ httpMethod: "PATCH",
765
+ responses: {
766
+ 200: {
767
+ bodyMapper: Mappers.SqlMigrationService
768
+ },
769
+ 201: {
770
+ bodyMapper: Mappers.SqlMigrationService
771
+ },
772
+ 202: {
773
+ bodyMapper: Mappers.SqlMigrationService
774
+ },
775
+ 204: {
776
+ bodyMapper: Mappers.SqlMigrationService
777
+ },
778
+ default: {}
779
+ },
780
+ requestBody: Parameters.parameters4,
781
+ queryParameters: [Parameters.apiVersion],
782
+ urlParameters: [
783
+ Parameters.$host,
784
+ Parameters.resourceGroupName,
785
+ Parameters.subscriptionId,
786
+ Parameters.sqlMigrationServiceName
787
+ ],
788
+ headerParameters: [Parameters.accept, Parameters.contentType],
789
+ mediaType: "json",
790
+ serializer
791
+ };
792
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
793
+ path:
794
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices",
795
+ httpMethod: "GET",
796
+ responses: {
797
+ 200: {
798
+ bodyMapper: Mappers.SqlMigrationListResult
799
+ },
800
+ default: {}
801
+ },
802
+ queryParameters: [Parameters.apiVersion],
803
+ urlParameters: [
804
+ Parameters.$host,
805
+ Parameters.resourceGroupName,
806
+ Parameters.subscriptionId
807
+ ],
808
+ headerParameters: [Parameters.accept],
809
+ serializer
810
+ };
811
+ const listAuthKeysOperationSpec: coreClient.OperationSpec = {
812
+ path:
813
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys",
814
+ httpMethod: "POST",
815
+ responses: {
816
+ 200: {
817
+ bodyMapper: Mappers.AuthenticationKeys
818
+ },
819
+ default: {}
820
+ },
821
+ queryParameters: [Parameters.apiVersion],
822
+ urlParameters: [
823
+ Parameters.$host,
824
+ Parameters.resourceGroupName,
825
+ Parameters.subscriptionId,
826
+ Parameters.sqlMigrationServiceName
827
+ ],
828
+ headerParameters: [Parameters.accept],
829
+ serializer
830
+ };
831
+ const regenerateAuthKeysOperationSpec: coreClient.OperationSpec = {
832
+ path:
833
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys",
834
+ httpMethod: "POST",
835
+ responses: {
836
+ 200: {
837
+ bodyMapper: Mappers.RegenAuthKeys
838
+ },
839
+ default: {}
840
+ },
841
+ requestBody: Parameters.parameters5,
842
+ queryParameters: [Parameters.apiVersion],
843
+ urlParameters: [
844
+ Parameters.$host,
845
+ Parameters.resourceGroupName,
846
+ Parameters.subscriptionId,
847
+ Parameters.sqlMigrationServiceName
848
+ ],
849
+ headerParameters: [Parameters.accept, Parameters.contentType],
850
+ mediaType: "json",
851
+ serializer
852
+ };
853
+ const deleteNodeOperationSpec: coreClient.OperationSpec = {
854
+ path:
855
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode",
856
+ httpMethod: "POST",
857
+ responses: {
858
+ 200: {
859
+ bodyMapper: Mappers.DeleteNode
860
+ },
861
+ default: {}
862
+ },
863
+ requestBody: Parameters.parameters6,
864
+ queryParameters: [Parameters.apiVersion],
865
+ urlParameters: [
866
+ Parameters.$host,
867
+ Parameters.resourceGroupName,
868
+ Parameters.subscriptionId,
869
+ Parameters.sqlMigrationServiceName
870
+ ],
871
+ headerParameters: [Parameters.accept, Parameters.contentType],
872
+ mediaType: "json",
873
+ serializer
874
+ };
875
+ const listMigrationsOperationSpec: coreClient.OperationSpec = {
876
+ path:
877
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations",
878
+ httpMethod: "GET",
879
+ responses: {
880
+ 200: {
881
+ bodyMapper: Mappers.DatabaseMigrationListResult
882
+ },
883
+ default: {}
884
+ },
885
+ queryParameters: [Parameters.apiVersion],
886
+ urlParameters: [
887
+ Parameters.$host,
888
+ Parameters.resourceGroupName,
889
+ Parameters.subscriptionId,
890
+ Parameters.sqlMigrationServiceName
891
+ ],
892
+ headerParameters: [Parameters.accept],
893
+ serializer
894
+ };
895
+ const listMonitoringDataOperationSpec: coreClient.OperationSpec = {
896
+ path:
897
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData",
898
+ httpMethod: "POST",
899
+ responses: {
900
+ 200: {
901
+ bodyMapper: Mappers.IntegrationRuntimeMonitoringData
902
+ },
903
+ default: {}
904
+ },
905
+ queryParameters: [Parameters.apiVersion],
906
+ urlParameters: [
907
+ Parameters.$host,
908
+ Parameters.resourceGroupName,
909
+ Parameters.subscriptionId,
910
+ Parameters.sqlMigrationServiceName
911
+ ],
912
+ headerParameters: [Parameters.accept],
913
+ serializer
914
+ };
915
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
916
+ path:
917
+ "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices",
918
+ httpMethod: "GET",
919
+ responses: {
920
+ 200: {
921
+ bodyMapper: Mappers.SqlMigrationListResult
922
+ },
923
+ default: {}
924
+ },
925
+ queryParameters: [Parameters.apiVersion],
926
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
927
+ headerParameters: [Parameters.accept],
928
+ serializer
929
+ };
930
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
931
+ path: "{nextLink}",
932
+ httpMethod: "GET",
933
+ responses: {
934
+ 200: {
935
+ bodyMapper: Mappers.SqlMigrationListResult
936
+ },
937
+ default: {}
938
+ },
939
+ queryParameters: [Parameters.apiVersion],
940
+ urlParameters: [
941
+ Parameters.$host,
942
+ Parameters.resourceGroupName,
943
+ Parameters.subscriptionId,
944
+ Parameters.nextLink
945
+ ],
946
+ headerParameters: [Parameters.accept],
947
+ serializer
948
+ };
949
+ const listMigrationsNextOperationSpec: coreClient.OperationSpec = {
950
+ path: "{nextLink}",
951
+ httpMethod: "GET",
952
+ responses: {
953
+ 200: {
954
+ bodyMapper: Mappers.DatabaseMigrationListResult
955
+ },
956
+ default: {}
957
+ },
958
+ queryParameters: [Parameters.apiVersion],
959
+ urlParameters: [
960
+ Parameters.$host,
961
+ Parameters.resourceGroupName,
962
+ Parameters.subscriptionId,
963
+ Parameters.nextLink,
964
+ Parameters.sqlMigrationServiceName
965
+ ],
966
+ headerParameters: [Parameters.accept],
967
+ serializer
968
+ };
969
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
970
+ path: "{nextLink}",
971
+ httpMethod: "GET",
972
+ responses: {
973
+ 200: {
974
+ bodyMapper: Mappers.SqlMigrationListResult
975
+ },
976
+ default: {}
977
+ },
978
+ queryParameters: [Parameters.apiVersion],
979
+ urlParameters: [
980
+ Parameters.$host,
981
+ Parameters.subscriptionId,
982
+ Parameters.nextLink
983
+ ],
984
+ headerParameters: [Parameters.accept],
985
+ serializer
986
+ };