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

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,272 @@
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 { DatabaseMigrationSqlMi as DatabaseMigrationSqlMiMapper, MigrationOperationInput as MigrationOperationInputMapper, DatabaseMigrationSqlVm as DatabaseMigrationSqlVmMapper, SqlMigrationService as SqlMigrationServiceMapper, SqlMigrationServiceUpdate as SqlMigrationServiceUpdateMapper, RegenAuthKeys as RegenAuthKeysMapper, DeleteNode as DeleteNodeMapper, DataMigrationService as DataMigrationServiceMapper, NameAvailabilityRequest as NameAvailabilityRequestMapper, ProjectTask as ProjectTaskMapper, CommandProperties as CommandPropertiesMapper, Project as ProjectMapper, ProjectFile as ProjectFileMapper } from "../models/mappers";
9
+ export const accept = {
10
+ parameterPath: "accept",
11
+ mapper: {
12
+ defaultValue: "application/json",
13
+ isConstant: true,
14
+ serializedName: "Accept",
15
+ type: {
16
+ name: "String"
17
+ }
18
+ }
19
+ };
20
+ export const $host = {
21
+ parameterPath: "$host",
22
+ mapper: {
23
+ serializedName: "$host",
24
+ required: true,
25
+ type: {
26
+ name: "String"
27
+ }
28
+ },
29
+ skipEncoding: true
30
+ };
31
+ export const resourceGroupName = {
32
+ parameterPath: "resourceGroupName",
33
+ mapper: {
34
+ serializedName: "resourceGroupName",
35
+ required: true,
36
+ type: {
37
+ name: "String"
38
+ }
39
+ }
40
+ };
41
+ export const managedInstanceName = {
42
+ parameterPath: "managedInstanceName",
43
+ mapper: {
44
+ serializedName: "managedInstanceName",
45
+ required: true,
46
+ type: {
47
+ name: "String"
48
+ }
49
+ }
50
+ };
51
+ export const targetDbName = {
52
+ parameterPath: "targetDbName",
53
+ mapper: {
54
+ serializedName: "targetDbName",
55
+ required: true,
56
+ type: {
57
+ name: "String"
58
+ }
59
+ }
60
+ };
61
+ export const migrationOperationId = {
62
+ parameterPath: ["options", "migrationOperationId"],
63
+ mapper: {
64
+ serializedName: "migrationOperationId",
65
+ type: {
66
+ name: "Uuid"
67
+ }
68
+ }
69
+ };
70
+ export const expand = {
71
+ parameterPath: ["options", "expand"],
72
+ mapper: {
73
+ serializedName: "$expand",
74
+ type: {
75
+ name: "String"
76
+ }
77
+ }
78
+ };
79
+ export const subscriptionId = {
80
+ parameterPath: "subscriptionId",
81
+ mapper: {
82
+ serializedName: "subscriptionId",
83
+ required: true,
84
+ type: {
85
+ name: "String"
86
+ }
87
+ }
88
+ };
89
+ export const apiVersion = {
90
+ parameterPath: "apiVersion",
91
+ mapper: {
92
+ defaultValue: "2021-10-30-preview",
93
+ isConstant: true,
94
+ serializedName: "api-version",
95
+ type: {
96
+ name: "String"
97
+ }
98
+ }
99
+ };
100
+ export const contentType = {
101
+ parameterPath: ["options", "contentType"],
102
+ mapper: {
103
+ defaultValue: "application/json",
104
+ isConstant: true,
105
+ serializedName: "Content-Type",
106
+ type: {
107
+ name: "String"
108
+ }
109
+ }
110
+ };
111
+ export const parameters = {
112
+ parameterPath: "parameters",
113
+ mapper: DatabaseMigrationSqlMiMapper
114
+ };
115
+ export const parameters1 = {
116
+ parameterPath: "parameters",
117
+ mapper: MigrationOperationInputMapper
118
+ };
119
+ export const sqlVirtualMachineName = {
120
+ parameterPath: "sqlVirtualMachineName",
121
+ mapper: {
122
+ serializedName: "sqlVirtualMachineName",
123
+ required: true,
124
+ type: {
125
+ name: "String"
126
+ }
127
+ }
128
+ };
129
+ export const parameters2 = {
130
+ parameterPath: "parameters",
131
+ mapper: DatabaseMigrationSqlVmMapper
132
+ };
133
+ export const nextLink = {
134
+ parameterPath: "nextLink",
135
+ mapper: {
136
+ serializedName: "nextLink",
137
+ required: true,
138
+ type: {
139
+ name: "String"
140
+ }
141
+ },
142
+ skipEncoding: true
143
+ };
144
+ export const sqlMigrationServiceName = {
145
+ parameterPath: "sqlMigrationServiceName",
146
+ mapper: {
147
+ serializedName: "sqlMigrationServiceName",
148
+ required: true,
149
+ type: {
150
+ name: "String"
151
+ }
152
+ }
153
+ };
154
+ export const parameters3 = {
155
+ parameterPath: "parameters",
156
+ mapper: SqlMigrationServiceMapper
157
+ };
158
+ export const parameters4 = {
159
+ parameterPath: "parameters",
160
+ mapper: SqlMigrationServiceUpdateMapper
161
+ };
162
+ export const parameters5 = {
163
+ parameterPath: "parameters",
164
+ mapper: RegenAuthKeysMapper
165
+ };
166
+ export const parameters6 = {
167
+ parameterPath: "parameters",
168
+ mapper: DeleteNodeMapper
169
+ };
170
+ export const parameters7 = {
171
+ parameterPath: "parameters",
172
+ mapper: DataMigrationServiceMapper
173
+ };
174
+ export const groupName = {
175
+ parameterPath: "groupName",
176
+ mapper: {
177
+ serializedName: "groupName",
178
+ required: true,
179
+ type: {
180
+ name: "String"
181
+ }
182
+ }
183
+ };
184
+ export const serviceName = {
185
+ parameterPath: "serviceName",
186
+ mapper: {
187
+ serializedName: "serviceName",
188
+ required: true,
189
+ type: {
190
+ name: "String"
191
+ }
192
+ }
193
+ };
194
+ export const deleteRunningTasks = {
195
+ parameterPath: ["options", "deleteRunningTasks"],
196
+ mapper: {
197
+ serializedName: "deleteRunningTasks",
198
+ type: {
199
+ name: "Boolean"
200
+ }
201
+ }
202
+ };
203
+ export const parameters8 = {
204
+ parameterPath: "parameters",
205
+ mapper: NameAvailabilityRequestMapper
206
+ };
207
+ export const location = {
208
+ parameterPath: "location",
209
+ mapper: {
210
+ serializedName: "location",
211
+ required: true,
212
+ type: {
213
+ name: "String"
214
+ }
215
+ }
216
+ };
217
+ export const projectName = {
218
+ parameterPath: "projectName",
219
+ mapper: {
220
+ serializedName: "projectName",
221
+ required: true,
222
+ type: {
223
+ name: "String"
224
+ }
225
+ }
226
+ };
227
+ export const taskType = {
228
+ parameterPath: ["options", "taskType"],
229
+ mapper: {
230
+ serializedName: "taskType",
231
+ type: {
232
+ name: "String"
233
+ }
234
+ }
235
+ };
236
+ export const parameters9 = {
237
+ parameterPath: "parameters",
238
+ mapper: ProjectTaskMapper
239
+ };
240
+ export const taskName = {
241
+ parameterPath: "taskName",
242
+ mapper: {
243
+ serializedName: "taskName",
244
+ required: true,
245
+ type: {
246
+ name: "String"
247
+ }
248
+ }
249
+ };
250
+ export const parameters10 = {
251
+ parameterPath: "parameters",
252
+ mapper: CommandPropertiesMapper
253
+ };
254
+ export const parameters11 = {
255
+ parameterPath: "parameters",
256
+ mapper: ProjectMapper
257
+ };
258
+ export const fileName = {
259
+ parameterPath: "fileName",
260
+ mapper: {
261
+ serializedName: "fileName",
262
+ required: true,
263
+ type: {
264
+ name: "String"
265
+ }
266
+ }
267
+ };
268
+ export const parameters12 = {
269
+ parameterPath: "parameters",
270
+ mapper: ProjectFileMapper
271
+ };
272
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file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,MAAM,EAAE;QACN,cAAc,EAAE,aAAa;QAC7B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA4B;IAC/C,aAAa,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IACtC,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,iBAAiB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,uBAAuB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,aAAa;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,iBAAiB;CAC1B,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { DatabaseMigrationsSqlMi } from "../operationsInterfaces";
2
+ import { DataMigrationManagementClient } from "../dataMigrationManagementClient";
3
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
4
+ import { DatabaseMigrationsSqlMiGetOptionalParams, DatabaseMigrationsSqlMiGetResponse, DatabaseMigrationSqlMi, DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams, DatabaseMigrationsSqlMiCreateOrUpdateResponse, MigrationOperationInput, DatabaseMigrationsSqlMiCancelOptionalParams, DatabaseMigrationsSqlMiCutoverOptionalParams } from "../models";
5
+ /** Class containing DatabaseMigrationsSqlMi operations. */
6
+ export declare class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class DatabaseMigrationsSqlMi class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: DataMigrationManagementClient);
13
+ /**
14
+ * Retrieve the Database Migration resource.
15
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
16
+ * value from the Azure Resource Manager API or the portal.
17
+ * @param managedInstanceName
18
+ * @param targetDbName The name of the target database.
19
+ * @param options The options parameters.
20
+ */
21
+ get(resourceGroupName: string, managedInstanceName: string, targetDbName: string, options?: DatabaseMigrationsSqlMiGetOptionalParams): Promise<DatabaseMigrationsSqlMiGetResponse>;
22
+ /**
23
+ * Create or Update Database Migration resource.
24
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
25
+ * value from the Azure Resource Manager API or the portal.
26
+ * @param managedInstanceName
27
+ * @param targetDbName The name of the target database.
28
+ * @param parameters Details of SqlMigrationService resource.
29
+ * @param options The options parameters.
30
+ */
31
+ beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: DatabaseMigrationSqlMi, options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DatabaseMigrationsSqlMiCreateOrUpdateResponse>, DatabaseMigrationsSqlMiCreateOrUpdateResponse>>;
32
+ /**
33
+ * Create or Update Database Migration resource.
34
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
35
+ * value from the Azure Resource Manager API or the portal.
36
+ * @param managedInstanceName
37
+ * @param targetDbName The name of the target database.
38
+ * @param parameters Details of SqlMigrationService resource.
39
+ * @param options The options parameters.
40
+ */
41
+ beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: DatabaseMigrationSqlMi, options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams): Promise<DatabaseMigrationsSqlMiCreateOrUpdateResponse>;
42
+ /**
43
+ * Stop migrations in progress for the database
44
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
45
+ * value from the Azure Resource Manager API or the portal.
46
+ * @param managedInstanceName
47
+ * @param targetDbName The name of the target database.
48
+ * @param parameters Required migration operation ID for which cancel will be initiated.
49
+ * @param options The options parameters.
50
+ */
51
+ beginCancel(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlMiCancelOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
52
+ /**
53
+ * Stop migrations in progress for the database
54
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
55
+ * value from the Azure Resource Manager API or the portal.
56
+ * @param managedInstanceName
57
+ * @param targetDbName The name of the target database.
58
+ * @param parameters Required migration operation ID for which cancel will be initiated.
59
+ * @param options The options parameters.
60
+ */
61
+ beginCancelAndWait(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlMiCancelOptionalParams): Promise<void>;
62
+ /**
63
+ * Initiate cutover for online migration in progress for the database.
64
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
65
+ * value from the Azure Resource Manager API or the portal.
66
+ * @param managedInstanceName
67
+ * @param targetDbName The name of the target database.
68
+ * @param parameters Required migration operation ID for which cutover will be initiated.
69
+ * @param options The options parameters.
70
+ */
71
+ beginCutover(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlMiCutoverOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
72
+ /**
73
+ * Initiate cutover for online migration in progress for the database.
74
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
75
+ * value from the Azure Resource Manager API or the portal.
76
+ * @param managedInstanceName
77
+ * @param targetDbName The name of the target database.
78
+ * @param parameters Required migration operation ID for which cutover will be initiated.
79
+ * @param options The options parameters.
80
+ */
81
+ beginCutoverAndWait(resourceGroupName: string, managedInstanceName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlMiCutoverOptionalParams): Promise<void>;
82
+ }
83
+ //# sourceMappingURL=databaseMigrationsSqlMi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databaseMigrationsSqlMi.d.ts","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlMi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAIlE,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,wCAAwC,EACxC,kCAAkC,EAClC,sBAAsB,EACtB,mDAAmD,EACnD,6CAA6C,EAC7C,uBAAuB,EACvB,2CAA2C,EAC3C,4CAA4C,EAC7C,MAAM,WAAW,CAAC;AAEnB,2DAA2D;AAC3D,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C;;;;;;;;OAQG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,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BAAuB,EACnC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,IAAI,CAAC;CAUjB"}
@@ -0,0 +1,309 @@
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 { __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
+ /** Class containing DatabaseMigrationsSqlMi operations. */
15
+ export class DatabaseMigrationsSqlMiImpl {
16
+ /**
17
+ * Initialize a new instance of the class DatabaseMigrationsSqlMi class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Retrieve the Database Migration resource.
25
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
26
+ * value from the Azure Resource Manager API or the portal.
27
+ * @param managedInstanceName
28
+ * @param targetDbName The name of the target database.
29
+ * @param options The options parameters.
30
+ */
31
+ get(resourceGroupName, managedInstanceName, targetDbName, options) {
32
+ return this.client.sendOperationRequest({ resourceGroupName, managedInstanceName, targetDbName, options }, getOperationSpec);
33
+ }
34
+ /**
35
+ * Create or Update Database Migration resource.
36
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
37
+ * value from the Azure Resource Manager API or the portal.
38
+ * @param managedInstanceName
39
+ * @param targetDbName The name of the target database.
40
+ * @param parameters Details of SqlMigrationService resource.
41
+ * @param options The options parameters.
42
+ */
43
+ beginCreateOrUpdate(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
46
+ return this.client.sendOperationRequest(args, spec);
47
+ });
48
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
49
+ var _a;
50
+ let currentRawResponse = undefined;
51
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
52
+ const callback = (rawResponse, flatResponse) => {
53
+ currentRawResponse = rawResponse;
54
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
55
+ };
56
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
57
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
58
+ return {
59
+ flatResponse,
60
+ rawResponse: {
61
+ statusCode: currentRawResponse.status,
62
+ body: currentRawResponse.parsedBody,
63
+ headers: currentRawResponse.headers.toJSON()
64
+ }
65
+ };
66
+ });
67
+ const lro = new LroImpl(sendOperation, {
68
+ resourceGroupName,
69
+ managedInstanceName,
70
+ targetDbName,
71
+ parameters,
72
+ options
73
+ }, createOrUpdateOperationSpec);
74
+ return new LroEngine(lro, {
75
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
76
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
77
+ });
78
+ });
79
+ }
80
+ /**
81
+ * Create or Update Database Migration resource.
82
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
83
+ * value from the Azure Resource Manager API or the portal.
84
+ * @param managedInstanceName
85
+ * @param targetDbName The name of the target database.
86
+ * @param parameters Details of SqlMigrationService resource.
87
+ * @param options The options parameters.
88
+ */
89
+ beginCreateOrUpdateAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
92
+ return poller.pollUntilDone();
93
+ });
94
+ }
95
+ /**
96
+ * Stop migrations in progress for the database
97
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
98
+ * value from the Azure Resource Manager API or the portal.
99
+ * @param managedInstanceName
100
+ * @param targetDbName The name of the target database.
101
+ * @param parameters Required migration operation ID for which cancel will be initiated.
102
+ * @param options The options parameters.
103
+ */
104
+ beginCancel(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
107
+ return this.client.sendOperationRequest(args, spec);
108
+ });
109
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
110
+ var _a;
111
+ let currentRawResponse = undefined;
112
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
113
+ const callback = (rawResponse, flatResponse) => {
114
+ currentRawResponse = rawResponse;
115
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
116
+ };
117
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
118
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
119
+ return {
120
+ flatResponse,
121
+ rawResponse: {
122
+ statusCode: currentRawResponse.status,
123
+ body: currentRawResponse.parsedBody,
124
+ headers: currentRawResponse.headers.toJSON()
125
+ }
126
+ };
127
+ });
128
+ const lro = new LroImpl(sendOperation, {
129
+ resourceGroupName,
130
+ managedInstanceName,
131
+ targetDbName,
132
+ parameters,
133
+ options
134
+ }, cancelOperationSpec);
135
+ return new LroEngine(lro, {
136
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
137
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
138
+ });
139
+ });
140
+ }
141
+ /**
142
+ * Stop migrations in progress for the database
143
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
144
+ * value from the Azure Resource Manager API or the portal.
145
+ * @param managedInstanceName
146
+ * @param targetDbName The name of the target database.
147
+ * @param parameters Required migration operation ID for which cancel will be initiated.
148
+ * @param options The options parameters.
149
+ */
150
+ beginCancelAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ const poller = yield this.beginCancel(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
153
+ return poller.pollUntilDone();
154
+ });
155
+ }
156
+ /**
157
+ * Initiate cutover for online migration in progress for the database.
158
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
159
+ * value from the Azure Resource Manager API or the portal.
160
+ * @param managedInstanceName
161
+ * @param targetDbName The name of the target database.
162
+ * @param parameters Required migration operation ID for which cutover will be initiated.
163
+ * @param options The options parameters.
164
+ */
165
+ beginCutover(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
168
+ return this.client.sendOperationRequest(args, spec);
169
+ });
170
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
171
+ var _a;
172
+ let currentRawResponse = undefined;
173
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
174
+ const callback = (rawResponse, flatResponse) => {
175
+ currentRawResponse = rawResponse;
176
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
177
+ };
178
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
179
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
180
+ return {
181
+ flatResponse,
182
+ rawResponse: {
183
+ statusCode: currentRawResponse.status,
184
+ body: currentRawResponse.parsedBody,
185
+ headers: currentRawResponse.headers.toJSON()
186
+ }
187
+ };
188
+ });
189
+ const lro = new LroImpl(sendOperation, {
190
+ resourceGroupName,
191
+ managedInstanceName,
192
+ targetDbName,
193
+ parameters,
194
+ options
195
+ }, cutoverOperationSpec);
196
+ return new LroEngine(lro, {
197
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
198
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
199
+ });
200
+ });
201
+ }
202
+ /**
203
+ * Initiate cutover for online migration in progress for the database.
204
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
205
+ * value from the Azure Resource Manager API or the portal.
206
+ * @param managedInstanceName
207
+ * @param targetDbName The name of the target database.
208
+ * @param parameters Required migration operation ID for which cutover will be initiated.
209
+ * @param options The options parameters.
210
+ */
211
+ beginCutoverAndWait(resourceGroupName, managedInstanceName, targetDbName, parameters, options) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ const poller = yield this.beginCutover(resourceGroupName, managedInstanceName, targetDbName, parameters, options);
214
+ return poller.pollUntilDone();
215
+ });
216
+ }
217
+ }
218
+ // Operation Specifications
219
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
220
+ const getOperationSpec = {
221
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
222
+ httpMethod: "GET",
223
+ responses: {
224
+ 200: {
225
+ bodyMapper: Mappers.DatabaseMigrationSqlMi
226
+ },
227
+ default: {}
228
+ },
229
+ queryParameters: [
230
+ Parameters.migrationOperationId,
231
+ Parameters.expand,
232
+ Parameters.apiVersion
233
+ ],
234
+ urlParameters: [
235
+ Parameters.$host,
236
+ Parameters.resourceGroupName,
237
+ Parameters.managedInstanceName,
238
+ Parameters.targetDbName,
239
+ Parameters.subscriptionId
240
+ ],
241
+ headerParameters: [Parameters.accept],
242
+ serializer
243
+ };
244
+ const createOrUpdateOperationSpec = {
245
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
246
+ httpMethod: "PUT",
247
+ responses: {
248
+ 200: {
249
+ bodyMapper: Mappers.DatabaseMigrationSqlMi
250
+ },
251
+ 201: {
252
+ bodyMapper: Mappers.DatabaseMigrationSqlMi
253
+ },
254
+ 202: {
255
+ bodyMapper: Mappers.DatabaseMigrationSqlMi
256
+ },
257
+ 204: {
258
+ bodyMapper: Mappers.DatabaseMigrationSqlMi
259
+ },
260
+ default: {}
261
+ },
262
+ requestBody: Parameters.parameters,
263
+ queryParameters: [Parameters.apiVersion],
264
+ urlParameters: [
265
+ Parameters.$host,
266
+ Parameters.resourceGroupName,
267
+ Parameters.managedInstanceName,
268
+ Parameters.targetDbName,
269
+ Parameters.subscriptionId
270
+ ],
271
+ headerParameters: [Parameters.accept, Parameters.contentType],
272
+ mediaType: "json",
273
+ serializer
274
+ };
275
+ const cancelOperationSpec = {
276
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel",
277
+ httpMethod: "POST",
278
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
279
+ requestBody: Parameters.parameters1,
280
+ queryParameters: [Parameters.apiVersion],
281
+ urlParameters: [
282
+ Parameters.$host,
283
+ Parameters.resourceGroupName,
284
+ Parameters.managedInstanceName,
285
+ Parameters.targetDbName,
286
+ Parameters.subscriptionId
287
+ ],
288
+ headerParameters: [Parameters.contentType],
289
+ mediaType: "json",
290
+ serializer
291
+ };
292
+ const cutoverOperationSpec = {
293
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover",
294
+ httpMethod: "POST",
295
+ responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
296
+ requestBody: Parameters.parameters1,
297
+ queryParameters: [Parameters.apiVersion],
298
+ urlParameters: [
299
+ Parameters.$host,
300
+ Parameters.resourceGroupName,
301
+ Parameters.managedInstanceName,
302
+ Parameters.targetDbName,
303
+ Parameters.subscriptionId
304
+ ],
305
+ headerParameters: [Parameters.contentType],
306
+ mediaType: "json",
307
+ serializer
308
+ };
309
+ //# sourceMappingURL=databaseMigrationsSqlMi.js.map