@azure/arm-datamigration 2.0.0 → 3.0.0-beta.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 +72 -73
  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 +80 -32
  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 -14002
  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 -25
  357. package/esm/dataMigrationServiceClient.d.ts.map +0 -1
  358. package/esm/dataMigrationServiceClient.js +0 -40
  359. package/esm/dataMigrationServiceClient.js.map +0 -1
  360. package/esm/dataMigrationServiceClientContext.d.ts +0 -16
  361. package/esm/dataMigrationServiceClientContext.d.ts.map +0 -1
  362. package/esm/dataMigrationServiceClientContext.js +0 -56
  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 -56
  442. package/src/dataMigrationServiceClientContext.ts +0 -62
  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
@@ -1,272 +1,233 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/projectsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Projects } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { DataMigrationServiceClientContext } from "../dataMigrationServiceClientContext";
14
+ import { DataMigrationManagementClient } from "../dataMigrationManagementClient";
15
+ import {
16
+ Project,
17
+ ProjectsListNextOptionalParams,
18
+ ProjectsListOptionalParams,
19
+ ProjectsListResponse,
20
+ ProjectsCreateOrUpdateOptionalParams,
21
+ ProjectsCreateOrUpdateResponse,
22
+ ProjectsGetOptionalParams,
23
+ ProjectsGetResponse,
24
+ ProjectsDeleteOptionalParams,
25
+ ProjectsUpdateOptionalParams,
26
+ ProjectsUpdateResponse,
27
+ ProjectsListNextResponse
28
+ } from "../models";
16
29
 
17
- /** Class representing a Projects. */
18
- export class Projects {
19
- private readonly client: DataMigrationServiceClientContext;
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing Projects operations. */
32
+ export class ProjectsImpl implements Projects {
33
+ private readonly client: DataMigrationManagementClient;
20
34
 
21
35
  /**
22
- * Create a Projects.
23
- * @param {DataMigrationServiceClientContext} client Reference to the service client.
36
+ * Initialize a new instance of the class Projects class.
37
+ * @param client Reference to the service client
24
38
  */
25
- constructor(client: DataMigrationServiceClientContext) {
39
+ constructor(client: DataMigrationManagementClient) {
26
40
  this.client = client;
27
41
  }
28
42
 
29
43
  /**
30
44
  * The project resource is a nested resource representing a stored migration project. This method
31
45
  * returns a list of projects owned by a service resource.
32
- * @summary Get projects in a service
33
46
  * @param groupName Name of the resource group
34
47
  * @param serviceName Name of the service
35
- * @param [options] The optional parameters
36
- * @returns Promise<Models.ProjectsListResponse>
48
+ * @param options The options parameters.
37
49
  */
38
- list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsListResponse>;
39
- /**
40
- * @param groupName Name of the resource group
41
- * @param serviceName Name of the service
42
- * @param callback The callback
43
- */
44
- list(groupName: string, serviceName: string, callback: msRest.ServiceCallback<Models.ProjectList>): void;
45
- /**
46
- * @param groupName Name of the resource group
47
- * @param serviceName Name of the service
48
- * @param options The optional parameters
49
- * @param callback The callback
50
- */
51
- list(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProjectList>): void;
52
- list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProjectList>, callback?: msRest.ServiceCallback<Models.ProjectList>): Promise<Models.ProjectsListResponse> {
53
- return this.client.sendOperationRequest(
54
- {
50
+ public list(
51
+ groupName: string,
52
+ serviceName: string,
53
+ options?: ProjectsListOptionalParams
54
+ ): PagedAsyncIterableIterator<Project> {
55
+ const iter = this.listPagingAll(groupName, serviceName, options);
56
+ return {
57
+ next() {
58
+ return iter.next();
59
+ },
60
+ [Symbol.asyncIterator]() {
61
+ return this;
62
+ },
63
+ byPage: () => {
64
+ return this.listPagingPage(groupName, serviceName, options);
65
+ }
66
+ };
67
+ }
68
+
69
+ private async *listPagingPage(
70
+ groupName: string,
71
+ serviceName: string,
72
+ options?: ProjectsListOptionalParams
73
+ ): AsyncIterableIterator<Project[]> {
74
+ let result = await this._list(groupName, serviceName, options);
75
+ yield result.value || [];
76
+ let continuationToken = result.nextLink;
77
+ while (continuationToken) {
78
+ result = await this._listNext(
55
79
  groupName,
56
80
  serviceName,
81
+ continuationToken,
57
82
  options
58
- },
59
- listOperationSpec,
60
- callback) as Promise<Models.ProjectsListResponse>;
83
+ );
84
+ continuationToken = result.nextLink;
85
+ yield result.value || [];
86
+ }
87
+ }
88
+
89
+ private async *listPagingAll(
90
+ groupName: string,
91
+ serviceName: string,
92
+ options?: ProjectsListOptionalParams
93
+ ): AsyncIterableIterator<Project> {
94
+ for await (const page of this.listPagingPage(
95
+ groupName,
96
+ serviceName,
97
+ options
98
+ )) {
99
+ yield* page;
100
+ }
61
101
  }
62
102
 
63
103
  /**
64
- * The project resource is a nested resource representing a stored migration project. The PUT
65
- * method creates a new project or updates an existing one.
66
- * @summary Create or update project
67
- * @param parameters Information about the project
104
+ * The project resource is a nested resource representing a stored migration project. This method
105
+ * returns a list of projects owned by a service resource.
68
106
  * @param groupName Name of the resource group
69
107
  * @param serviceName Name of the service
70
- * @param projectName Name of the project
71
- * @param [options] The optional parameters
72
- * @returns Promise<Models.ProjectsCreateOrUpdateResponse>
108
+ * @param options The options parameters.
73
109
  */
74
- createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsCreateOrUpdateResponse>;
110
+ private _list(
111
+ groupName: string,
112
+ serviceName: string,
113
+ options?: ProjectsListOptionalParams
114
+ ): Promise<ProjectsListResponse> {
115
+ return this.client.sendOperationRequest(
116
+ { groupName, serviceName, options },
117
+ listOperationSpec
118
+ );
119
+ }
120
+
75
121
  /**
76
- * @param parameters Information about the project
122
+ * The project resource is a nested resource representing a stored migration project. The PUT method
123
+ * creates a new project or updates an existing one.
77
124
  * @param groupName Name of the resource group
78
125
  * @param serviceName Name of the service
79
126
  * @param projectName Name of the project
80
- * @param callback The callback
81
- */
82
- createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, callback: msRest.ServiceCallback<Models.Project>): void;
83
- /**
84
127
  * @param parameters Information about the project
85
- * @param groupName Name of the resource group
86
- * @param serviceName Name of the service
87
- * @param projectName Name of the project
88
- * @param options The optional parameters
89
- * @param callback The callback
128
+ * @param options The options parameters.
90
129
  */
91
- createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Project>): void;
92
- createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Project>, callback?: msRest.ServiceCallback<Models.Project>): Promise<Models.ProjectsCreateOrUpdateResponse> {
130
+ createOrUpdate(
131
+ groupName: string,
132
+ serviceName: string,
133
+ projectName: string,
134
+ parameters: Project,
135
+ options?: ProjectsCreateOrUpdateOptionalParams
136
+ ): Promise<ProjectsCreateOrUpdateResponse> {
93
137
  return this.client.sendOperationRequest(
94
- {
95
- parameters,
96
- groupName,
97
- serviceName,
98
- projectName,
99
- options
100
- },
101
- createOrUpdateOperationSpec,
102
- callback) as Promise<Models.ProjectsCreateOrUpdateResponse>;
138
+ { groupName, serviceName, projectName, parameters, options },
139
+ createOrUpdateOperationSpec
140
+ );
103
141
  }
104
142
 
105
143
  /**
106
- * The project resource is a nested resource representing a stored migration project. The GET
107
- * method retrieves information about a project.
108
- * @summary Get project information
109
- * @param groupName Name of the resource group
110
- * @param serviceName Name of the service
111
- * @param projectName Name of the project
112
- * @param [options] The optional parameters
113
- * @returns Promise<Models.ProjectsGetResponse>
114
- */
115
- get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsGetResponse>;
116
- /**
144
+ * The project resource is a nested resource representing a stored migration project. The GET method
145
+ * retrieves information about a project.
117
146
  * @param groupName Name of the resource group
118
147
  * @param serviceName Name of the service
119
148
  * @param projectName Name of the project
120
- * @param callback The callback
149
+ * @param options The options parameters.
121
150
  */
122
- get(groupName: string, serviceName: string, projectName: string, callback: msRest.ServiceCallback<Models.Project>): void;
123
- /**
124
- * @param groupName Name of the resource group
125
- * @param serviceName Name of the service
126
- * @param projectName Name of the project
127
- * @param options The optional parameters
128
- * @param callback The callback
129
- */
130
- get(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Project>): void;
131
- get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Project>, callback?: msRest.ServiceCallback<Models.Project>): Promise<Models.ProjectsGetResponse> {
151
+ get(
152
+ groupName: string,
153
+ serviceName: string,
154
+ projectName: string,
155
+ options?: ProjectsGetOptionalParams
156
+ ): Promise<ProjectsGetResponse> {
132
157
  return this.client.sendOperationRequest(
133
- {
134
- groupName,
135
- serviceName,
136
- projectName,
137
- options
138
- },
139
- getOperationSpec,
140
- callback) as Promise<Models.ProjectsGetResponse>;
158
+ { groupName, serviceName, projectName, options },
159
+ getOperationSpec
160
+ );
141
161
  }
142
162
 
143
163
  /**
144
- * The project resource is a nested resource representing a stored migration project. The DELETE
145
- * method deletes a project.
146
- * @summary Delete project
147
- * @param groupName Name of the resource group
148
- * @param serviceName Name of the service
149
- * @param projectName Name of the project
150
- * @param [options] The optional parameters
151
- * @returns Promise<msRest.RestResponse>
152
- */
153
- deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams): Promise<msRest.RestResponse>;
154
- /**
155
- * @param groupName Name of the resource group
156
- * @param serviceName Name of the service
157
- * @param projectName Name of the project
158
- * @param callback The callback
159
- */
160
- deleteMethod(groupName: string, serviceName: string, projectName: string, callback: msRest.ServiceCallback<void>): void;
161
- /**
164
+ * The project resource is a nested resource representing a stored migration project. The DELETE method
165
+ * deletes a project.
162
166
  * @param groupName Name of the resource group
163
167
  * @param serviceName Name of the service
164
168
  * @param projectName Name of the project
165
- * @param options The optional parameters
166
- * @param callback The callback
169
+ * @param options The options parameters.
167
170
  */
168
- deleteMethod(groupName: string, serviceName: string, projectName: string, options: Models.ProjectsDeleteMethodOptionalParams, callback: msRest.ServiceCallback<void>): void;
169
- deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
171
+ delete(
172
+ groupName: string,
173
+ serviceName: string,
174
+ projectName: string,
175
+ options?: ProjectsDeleteOptionalParams
176
+ ): Promise<void> {
170
177
  return this.client.sendOperationRequest(
171
- {
172
- groupName,
173
- serviceName,
174
- projectName,
175
- options
176
- },
177
- deleteMethodOperationSpec,
178
- callback);
178
+ { groupName, serviceName, projectName, options },
179
+ deleteOperationSpec
180
+ );
179
181
  }
180
182
 
181
183
  /**
182
- * The project resource is a nested resource representing a stored migration project. The PATCH
183
- * method updates an existing project.
184
- * @summary Update project
185
- * @param parameters Information about the project
184
+ * The project resource is a nested resource representing a stored migration project. The PATCH method
185
+ * updates an existing project.
186
186
  * @param groupName Name of the resource group
187
187
  * @param serviceName Name of the service
188
188
  * @param projectName Name of the project
189
- * @param [options] The optional parameters
190
- * @returns Promise<Models.ProjectsUpdateResponse>
191
- */
192
- update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsUpdateResponse>;
193
- /**
194
189
  * @param parameters Information about the project
195
- * @param groupName Name of the resource group
196
- * @param serviceName Name of the service
197
- * @param projectName Name of the project
198
- * @param callback The callback
190
+ * @param options The options parameters.
199
191
  */
200
- update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, callback: msRest.ServiceCallback<Models.Project>): void;
201
- /**
202
- * @param parameters Information about the project
203
- * @param groupName Name of the resource group
204
- * @param serviceName Name of the service
205
- * @param projectName Name of the project
206
- * @param options The optional parameters
207
- * @param callback The callback
208
- */
209
- update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Project>): void;
210
- update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Project>, callback?: msRest.ServiceCallback<Models.Project>): Promise<Models.ProjectsUpdateResponse> {
192
+ update(
193
+ groupName: string,
194
+ serviceName: string,
195
+ projectName: string,
196
+ parameters: Project,
197
+ options?: ProjectsUpdateOptionalParams
198
+ ): Promise<ProjectsUpdateResponse> {
211
199
  return this.client.sendOperationRequest(
212
- {
213
- parameters,
214
- groupName,
215
- serviceName,
216
- projectName,
217
- options
218
- },
219
- updateOperationSpec,
220
- callback) as Promise<Models.ProjectsUpdateResponse>;
200
+ { groupName, serviceName, projectName, parameters, options },
201
+ updateOperationSpec
202
+ );
221
203
  }
222
204
 
223
205
  /**
224
- * The project resource is a nested resource representing a stored migration project. This method
225
- * returns a list of projects owned by a service resource.
226
- * @summary Get projects in a service
227
- * @param nextPageLink The NextLink from the previous successful call to List operation.
228
- * @param [options] The optional parameters
229
- * @returns Promise<Models.ProjectsListNextResponse>
230
- */
231
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ProjectsListNextResponse>;
232
- /**
233
- * @param nextPageLink The NextLink from the previous successful call to List operation.
234
- * @param callback The callback
235
- */
236
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ProjectList>): void;
237
- /**
238
- * @param nextPageLink The NextLink from the previous successful call to List operation.
239
- * @param options The optional parameters
240
- * @param callback The callback
206
+ * ListNext
207
+ * @param groupName Name of the resource group
208
+ * @param serviceName Name of the service
209
+ * @param nextLink The nextLink from the previous successful call to the List method.
210
+ * @param options The options parameters.
241
211
  */
242
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProjectList>): void;
243
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProjectList>, callback?: msRest.ServiceCallback<Models.ProjectList>): Promise<Models.ProjectsListNextResponse> {
212
+ private _listNext(
213
+ groupName: string,
214
+ serviceName: string,
215
+ nextLink: string,
216
+ options?: ProjectsListNextOptionalParams
217
+ ): Promise<ProjectsListNextResponse> {
244
218
  return this.client.sendOperationRequest(
245
- {
246
- nextPageLink,
247
- options
248
- },
249
- listNextOperationSpec,
250
- callback) as Promise<Models.ProjectsListNextResponse>;
219
+ { groupName, serviceName, nextLink, options },
220
+ listNextOperationSpec
221
+ );
251
222
  }
252
223
  }
253
-
254
224
  // Operation Specifications
255
- const serializer = new msRest.Serializer(Mappers);
256
- const listOperationSpec: msRest.OperationSpec = {
225
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
226
+
227
+ const listOperationSpec: coreClient.OperationSpec = {
228
+ path:
229
+ "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects",
257
230
  httpMethod: "GET",
258
- path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects",
259
- urlParameters: [
260
- Parameters.subscriptionId,
261
- Parameters.groupName,
262
- Parameters.serviceName
263
- ],
264
- queryParameters: [
265
- Parameters.apiVersion
266
- ],
267
- headerParameters: [
268
- Parameters.acceptLanguage
269
- ],
270
231
  responses: {
271
232
  200: {
272
233
  bodyMapper: Mappers.ProjectList
@@ -275,31 +236,20 @@ const listOperationSpec: msRest.OperationSpec = {
275
236
  bodyMapper: Mappers.ApiError
276
237
  }
277
238
  },
278
- serializer
279
- };
280
-
281
- const createOrUpdateOperationSpec: msRest.OperationSpec = {
282
- httpMethod: "PUT",
283
- path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
239
+ queryParameters: [Parameters.apiVersion],
284
240
  urlParameters: [
241
+ Parameters.$host,
285
242
  Parameters.subscriptionId,
286
243
  Parameters.groupName,
287
- Parameters.serviceName,
288
- Parameters.projectName
289
- ],
290
- queryParameters: [
291
- Parameters.apiVersion
292
- ],
293
- headerParameters: [
294
- Parameters.acceptLanguage
244
+ Parameters.serviceName
295
245
  ],
296
- requestBody: {
297
- parameterPath: "parameters",
298
- mapper: {
299
- ...Mappers.Project,
300
- required: true
301
- }
302
- },
246
+ headerParameters: [Parameters.accept],
247
+ serializer
248
+ };
249
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
250
+ path:
251
+ "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
252
+ httpMethod: "PUT",
303
253
  responses: {
304
254
  200: {
305
255
  bodyMapper: Mappers.Project
@@ -311,24 +261,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
311
261
  bodyMapper: Mappers.ApiError
312
262
  }
313
263
  },
314
- serializer
315
- };
316
-
317
- const getOperationSpec: msRest.OperationSpec = {
318
- httpMethod: "GET",
319
- path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
264
+ requestBody: Parameters.parameters11,
265
+ queryParameters: [Parameters.apiVersion],
320
266
  urlParameters: [
267
+ Parameters.$host,
321
268
  Parameters.subscriptionId,
322
269
  Parameters.groupName,
323
270
  Parameters.serviceName,
324
271
  Parameters.projectName
325
272
  ],
326
- queryParameters: [
327
- Parameters.apiVersion
328
- ],
329
- headerParameters: [
330
- Parameters.acceptLanguage
331
- ],
273
+ headerParameters: [Parameters.accept, Parameters.contentType],
274
+ mediaType: "json",
275
+ serializer
276
+ };
277
+ const getOperationSpec: coreClient.OperationSpec = {
278
+ path:
279
+ "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
280
+ httpMethod: "GET",
332
281
  responses: {
333
282
  200: {
334
283
  bodyMapper: Mappers.Project
@@ -337,25 +286,21 @@ const getOperationSpec: msRest.OperationSpec = {
337
286
  bodyMapper: Mappers.ApiError
338
287
  }
339
288
  },
340
- serializer
341
- };
342
-
343
- const deleteMethodOperationSpec: msRest.OperationSpec = {
344
- httpMethod: "DELETE",
345
- path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
289
+ queryParameters: [Parameters.apiVersion],
346
290
  urlParameters: [
291
+ Parameters.$host,
347
292
  Parameters.subscriptionId,
348
293
  Parameters.groupName,
349
294
  Parameters.serviceName,
350
295
  Parameters.projectName
351
296
  ],
352
- queryParameters: [
353
- Parameters.deleteRunningTasks,
354
- Parameters.apiVersion
355
- ],
356
- headerParameters: [
357
- Parameters.acceptLanguage
358
- ],
297
+ headerParameters: [Parameters.accept],
298
+ serializer
299
+ };
300
+ const deleteOperationSpec: coreClient.OperationSpec = {
301
+ path:
302
+ "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
303
+ httpMethod: "DELETE",
359
304
  responses: {
360
305
  200: {},
361
306
  204: {},
@@ -363,31 +308,21 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
363
308
  bodyMapper: Mappers.ApiError
364
309
  }
365
310
  },
366
- serializer
367
- };
368
-
369
- const updateOperationSpec: msRest.OperationSpec = {
370
- httpMethod: "PATCH",
371
- path: "subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
311
+ queryParameters: [Parameters.apiVersion, Parameters.deleteRunningTasks],
372
312
  urlParameters: [
313
+ Parameters.$host,
373
314
  Parameters.subscriptionId,
374
315
  Parameters.groupName,
375
316
  Parameters.serviceName,
376
317
  Parameters.projectName
377
318
  ],
378
- queryParameters: [
379
- Parameters.apiVersion
380
- ],
381
- headerParameters: [
382
- Parameters.acceptLanguage
383
- ],
384
- requestBody: {
385
- parameterPath: "parameters",
386
- mapper: {
387
- ...Mappers.Project,
388
- required: true
389
- }
390
- },
319
+ headerParameters: [Parameters.accept],
320
+ serializer
321
+ };
322
+ const updateOperationSpec: coreClient.OperationSpec = {
323
+ path:
324
+ "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}",
325
+ httpMethod: "PATCH",
391
326
  responses: {
392
327
  200: {
393
328
  bodyMapper: Mappers.Project
@@ -396,19 +331,22 @@ const updateOperationSpec: msRest.OperationSpec = {
396
331
  bodyMapper: Mappers.ApiError
397
332
  }
398
333
  },
334
+ requestBody: Parameters.parameters11,
335
+ queryParameters: [Parameters.apiVersion],
336
+ urlParameters: [
337
+ Parameters.$host,
338
+ Parameters.subscriptionId,
339
+ Parameters.groupName,
340
+ Parameters.serviceName,
341
+ Parameters.projectName
342
+ ],
343
+ headerParameters: [Parameters.accept, Parameters.contentType],
344
+ mediaType: "json",
399
345
  serializer
400
346
  };
401
-
402
- const listNextOperationSpec: msRest.OperationSpec = {
403
- httpMethod: "GET",
404
- baseUrl: "https://management.azure.com",
347
+ const listNextOperationSpec: coreClient.OperationSpec = {
405
348
  path: "{nextLink}",
406
- urlParameters: [
407
- Parameters.nextPageLink
408
- ],
409
- headerParameters: [
410
- Parameters.acceptLanguage
411
- ],
349
+ httpMethod: "GET",
412
350
  responses: {
413
351
  200: {
414
352
  bodyMapper: Mappers.ProjectList
@@ -417,5 +355,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
417
355
  bodyMapper: Mappers.ApiError
418
356
  }
419
357
  },
358
+ queryParameters: [Parameters.apiVersion],
359
+ urlParameters: [
360
+ Parameters.$host,
361
+ Parameters.subscriptionId,
362
+ Parameters.nextLink,
363
+ Parameters.groupName,
364
+ Parameters.serviceName
365
+ ],
366
+ headerParameters: [Parameters.accept],
420
367
  serializer
421
368
  };