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