@azure/arm-datamigration 3.0.0-beta.1 → 3.0.0-beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +12 -1
  3. package/dist/index.js +981 -288
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.js +35 -0
  10. package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.js.map +1 -0
  11. package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js +117 -0
  14. package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js.map +1 -0
  15. package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.js +35 -0
  18. package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.js.map +1 -0
  19. package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.js +32 -0
  22. package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.js.map +1 -0
  23. package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.js +35 -0
  26. package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.js.map +1 -0
  27. package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js +117 -0
  30. package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js.map +1 -0
  31. package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.js +35 -0
  34. package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.js.map +1 -0
  35. package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.js +32 -0
  38. package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.js.map +1 -0
  39. package/dist-esm/samples-dev/filesCreateOrUpdateSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/filesCreateOrUpdateSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/filesCreateOrUpdateSample.js +36 -0
  42. package/dist-esm/samples-dev/filesCreateOrUpdateSample.js.map +1 -0
  43. package/dist-esm/samples-dev/filesDeleteSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/filesDeleteSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/filesDeleteSample.js +33 -0
  46. package/dist-esm/samples-dev/filesDeleteSample.js.map +1 -0
  47. package/dist-esm/samples-dev/filesGetSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/filesGetSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/filesGetSample.js +33 -0
  50. package/dist-esm/samples-dev/filesGetSample.js.map +1 -0
  51. package/dist-esm/samples-dev/filesListSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/filesListSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/filesListSample.js +46 -0
  54. package/dist-esm/samples-dev/filesListSample.js.map +1 -0
  55. package/dist-esm/samples-dev/filesReadSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/filesReadSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/filesReadSample.js +33 -0
  58. package/dist-esm/samples-dev/filesReadSample.js.map +1 -0
  59. package/dist-esm/samples-dev/filesReadWriteSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/filesReadWriteSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/filesReadWriteSample.js +33 -0
  62. package/dist-esm/samples-dev/filesReadWriteSample.js.map +1 -0
  63. package/dist-esm/samples-dev/filesUpdateSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/filesUpdateSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/filesUpdateSample.js +36 -0
  66. package/dist-esm/samples-dev/filesUpdateSample.js.map +1 -0
  67. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  70. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  71. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +37 -0
  74. package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js.map +1 -0
  75. package/dist-esm/samples-dev/projectsDeleteSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/projectsDeleteSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/projectsDeleteSample.js +32 -0
  78. package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -0
  79. package/dist-esm/samples-dev/projectsGetSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/projectsGetSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/projectsGetSample.js +32 -0
  82. package/dist-esm/samples-dev/projectsGetSample.js.map +1 -0
  83. package/dist-esm/samples-dev/projectsListSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/projectsListSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/projectsListSample.js +45 -0
  86. package/dist-esm/samples-dev/projectsListSample.js.map +1 -0
  87. package/dist-esm/samples-dev/projectsUpdateSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/projectsUpdateSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/projectsUpdateSample.js +37 -0
  90. package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -0
  91. package/dist-esm/samples-dev/resourceSkusListSkusSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/resourceSkusListSkusSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/resourceSkusListSkusSample.js +43 -0
  94. package/dist-esm/samples-dev/resourceSkusListSkusSample.js.map +1 -0
  95. package/dist-esm/samples-dev/serviceTasksCancelSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/serviceTasksCancelSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/serviceTasksCancelSample.js +32 -0
  98. package/dist-esm/samples-dev/serviceTasksCancelSample.js.map +1 -0
  99. package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.d.ts +2 -0
  100. package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.js +38 -0
  102. package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.js.map +1 -0
  103. package/dist-esm/samples-dev/serviceTasksDeleteSample.d.ts +2 -0
  104. package/dist-esm/samples-dev/serviceTasksDeleteSample.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/serviceTasksDeleteSample.js +32 -0
  106. package/dist-esm/samples-dev/serviceTasksDeleteSample.js.map +1 -0
  107. package/dist-esm/samples-dev/serviceTasksGetSample.d.ts +2 -0
  108. package/dist-esm/samples-dev/serviceTasksGetSample.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/serviceTasksGetSample.js +32 -0
  110. package/dist-esm/samples-dev/serviceTasksGetSample.js.map +1 -0
  111. package/dist-esm/samples-dev/serviceTasksListSample.d.ts +2 -0
  112. package/dist-esm/samples-dev/serviceTasksListSample.d.ts.map +1 -0
  113. package/dist-esm/samples-dev/serviceTasksListSample.js +45 -0
  114. package/dist-esm/samples-dev/serviceTasksListSample.js.map +1 -0
  115. package/dist-esm/samples-dev/serviceTasksUpdateSample.d.ts +2 -0
  116. package/dist-esm/samples-dev/serviceTasksUpdateSample.d.ts.map +1 -0
  117. package/dist-esm/samples-dev/serviceTasksUpdateSample.js +38 -0
  118. package/dist-esm/samples-dev/serviceTasksUpdateSample.js.map +1 -0
  119. package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.d.ts +2 -0
  120. package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.d.ts.map +1 -0
  121. package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.js +32 -0
  122. package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.js.map +1 -0
  123. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts +2 -0
  124. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts.map +1 -0
  125. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +34 -0
  126. package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -0
  127. package/dist-esm/samples-dev/servicesCheckStatusSample.d.ts +2 -0
  128. package/dist-esm/samples-dev/servicesCheckStatusSample.d.ts.map +1 -0
  129. package/dist-esm/samples-dev/servicesCheckStatusSample.js +31 -0
  130. package/dist-esm/samples-dev/servicesCheckStatusSample.js.map +1 -0
  131. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts +2 -0
  132. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts.map +1 -0
  133. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +36 -0
  134. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -0
  135. package/dist-esm/samples-dev/servicesDeleteSample.d.ts +2 -0
  136. package/dist-esm/samples-dev/servicesDeleteSample.d.ts.map +1 -0
  137. package/dist-esm/samples-dev/servicesDeleteSample.js +31 -0
  138. package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -0
  139. package/dist-esm/samples-dev/servicesGetSample.d.ts +2 -0
  140. package/dist-esm/samples-dev/servicesGetSample.d.ts.map +1 -0
  141. package/dist-esm/samples-dev/servicesGetSample.js +31 -0
  142. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -0
  143. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +44 -0
  146. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -0
  147. package/dist-esm/samples-dev/servicesListSample.d.ts +2 -0
  148. package/dist-esm/samples-dev/servicesListSample.d.ts.map +1 -0
  149. package/dist-esm/samples-dev/servicesListSample.js +43 -0
  150. package/dist-esm/samples-dev/servicesListSample.js.map +1 -0
  151. package/dist-esm/samples-dev/servicesListSkusSample.d.ts +2 -0
  152. package/dist-esm/samples-dev/servicesListSkusSample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/servicesListSkusSample.js +45 -0
  154. package/dist-esm/samples-dev/servicesListSkusSample.js.map +1 -0
  155. package/dist-esm/samples-dev/servicesStartSample.d.ts +2 -0
  156. package/dist-esm/samples-dev/servicesStartSample.d.ts.map +1 -0
  157. package/dist-esm/samples-dev/servicesStartSample.js +31 -0
  158. package/dist-esm/samples-dev/servicesStartSample.js.map +1 -0
  159. package/dist-esm/samples-dev/servicesStopSample.d.ts +2 -0
  160. package/dist-esm/samples-dev/servicesStopSample.d.ts.map +1 -0
  161. package/dist-esm/samples-dev/servicesStopSample.js +31 -0
  162. package/dist-esm/samples-dev/servicesStopSample.js.map +1 -0
  163. package/dist-esm/samples-dev/servicesUpdateSample.d.ts +2 -0
  164. package/dist-esm/samples-dev/servicesUpdateSample.d.ts.map +1 -0
  165. package/dist-esm/samples-dev/servicesUpdateSample.js +35 -0
  166. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -0
  167. package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.d.ts +2 -0
  168. package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.d.ts.map +1 -0
  169. package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.js +51 -0
  170. package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.js.map +1 -0
  171. package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.d.ts +2 -0
  172. package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.d.ts.map +1 -0
  173. package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.js +35 -0
  174. package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.js.map +1 -0
  175. package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.d.ts +2 -0
  176. package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.d.ts.map +1 -0
  177. package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.js +31 -0
  178. package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.js.map +1 -0
  179. package/dist-esm/samples-dev/sqlMigrationServicesGetSample.d.ts +2 -0
  180. package/dist-esm/samples-dev/sqlMigrationServicesGetSample.d.ts.map +1 -0
  181. package/dist-esm/samples-dev/sqlMigrationServicesGetSample.js +31 -0
  182. package/dist-esm/samples-dev/sqlMigrationServicesGetSample.js.map +1 -0
  183. package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.d.ts +2 -0
  184. package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.d.ts.map +1 -0
  185. package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.js +31 -0
  186. package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.js.map +1 -0
  187. package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.d.ts +2 -0
  188. package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.d.ts.map +1 -0
  189. package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js +44 -0
  190. package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js.map +1 -0
  191. package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.d.ts +2 -0
  192. package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.d.ts.map +1 -0
  193. package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js +43 -0
  194. package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js.map +1 -0
  195. package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.d.ts +2 -0
  196. package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.d.ts.map +1 -0
  197. package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js +45 -0
  198. package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js.map +1 -0
  199. package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.d.ts +2 -0
  200. package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.d.ts.map +1 -0
  201. package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.js +31 -0
  202. package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.js.map +1 -0
  203. package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.d.ts +2 -0
  204. package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.d.ts.map +1 -0
  205. package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.js +32 -0
  206. package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.js.map +1 -0
  207. package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.d.ts +2 -0
  208. package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.d.ts.map +1 -0
  209. package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.js +32 -0
  210. package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.js.map +1 -0
  211. package/dist-esm/samples-dev/tasksCancelSample.d.ts +2 -0
  212. package/dist-esm/samples-dev/tasksCancelSample.d.ts.map +1 -0
  213. package/dist-esm/samples-dev/tasksCancelSample.js +33 -0
  214. package/dist-esm/samples-dev/tasksCancelSample.js.map +1 -0
  215. package/dist-esm/samples-dev/tasksCommandSample.d.ts +2 -0
  216. package/dist-esm/samples-dev/tasksCommandSample.d.ts.map +1 -0
  217. package/dist-esm/samples-dev/tasksCommandSample.js +37 -0
  218. package/dist-esm/samples-dev/tasksCommandSample.js.map +1 -0
  219. package/dist-esm/samples-dev/tasksCreateOrUpdateSample.d.ts +2 -0
  220. package/dist-esm/samples-dev/tasksCreateOrUpdateSample.d.ts.map +1 -0
  221. package/dist-esm/samples-dev/tasksCreateOrUpdateSample.js +49 -0
  222. package/dist-esm/samples-dev/tasksCreateOrUpdateSample.js.map +1 -0
  223. package/dist-esm/samples-dev/tasksDeleteSample.d.ts +2 -0
  224. package/dist-esm/samples-dev/tasksDeleteSample.d.ts.map +1 -0
  225. package/dist-esm/samples-dev/tasksDeleteSample.js +33 -0
  226. package/dist-esm/samples-dev/tasksDeleteSample.js.map +1 -0
  227. package/dist-esm/samples-dev/tasksGetSample.d.ts +2 -0
  228. package/dist-esm/samples-dev/tasksGetSample.d.ts.map +1 -0
  229. package/dist-esm/samples-dev/tasksGetSample.js +33 -0
  230. package/dist-esm/samples-dev/tasksGetSample.js.map +1 -0
  231. package/dist-esm/samples-dev/tasksListSample.d.ts +2 -0
  232. package/dist-esm/samples-dev/tasksListSample.d.ts.map +1 -0
  233. package/dist-esm/samples-dev/tasksListSample.js +46 -0
  234. package/dist-esm/samples-dev/tasksListSample.js.map +1 -0
  235. package/dist-esm/samples-dev/tasksUpdateSample.d.ts +2 -0
  236. package/dist-esm/samples-dev/tasksUpdateSample.d.ts.map +1 -0
  237. package/dist-esm/samples-dev/tasksUpdateSample.js +49 -0
  238. package/dist-esm/samples-dev/tasksUpdateSample.js.map +1 -0
  239. package/dist-esm/samples-dev/usagesListSample.d.ts +2 -0
  240. package/dist-esm/samples-dev/usagesListSample.d.ts.map +1 -0
  241. package/dist-esm/samples-dev/usagesListSample.js +44 -0
  242. package/dist-esm/samples-dev/usagesListSample.js.map +1 -0
  243. package/dist-esm/src/dataMigrationManagementClient.d.ts +2 -0
  244. package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -1
  245. package/dist-esm/src/dataMigrationManagementClient.js +54 -5
  246. package/dist-esm/src/dataMigrationManagementClient.js.map +1 -1
  247. package/dist-esm/src/index.d.ts +1 -0
  248. package/dist-esm/src/index.d.ts.map +1 -1
  249. package/dist-esm/src/index.js +1 -0
  250. package/dist-esm/src/index.js.map +1 -1
  251. package/dist-esm/src/models/index.d.ts +556 -240
  252. package/dist-esm/src/models/index.d.ts.map +1 -1
  253. package/dist-esm/src/models/index.js +314 -0
  254. package/dist-esm/src/models/index.js.map +1 -1
  255. package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  256. package/dist-esm/src/operations/databaseMigrationsSqlMi.js +9 -3
  257. package/dist-esm/src/operations/databaseMigrationsSqlMi.js.map +1 -1
  258. package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  259. package/dist-esm/src/operations/databaseMigrationsSqlVm.js +9 -3
  260. package/dist-esm/src/operations/databaseMigrationsSqlVm.js.map +1 -1
  261. package/dist-esm/src/operations/files.d.ts.map +1 -1
  262. package/dist-esm/src/operations/files.js +19 -7
  263. package/dist-esm/src/operations/files.js.map +1 -1
  264. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  265. package/dist-esm/src/operations/operations.js +19 -7
  266. package/dist-esm/src/operations/operations.js.map +1 -1
  267. package/dist-esm/src/operations/projects.d.ts.map +1 -1
  268. package/dist-esm/src/operations/projects.js +19 -7
  269. package/dist-esm/src/operations/projects.js.map +1 -1
  270. package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -1
  271. package/dist-esm/src/operations/resourceSkus.js +19 -7
  272. package/dist-esm/src/operations/resourceSkus.js.map +1 -1
  273. package/dist-esm/src/operations/serviceTasks.d.ts.map +1 -1
  274. package/dist-esm/src/operations/serviceTasks.js +19 -7
  275. package/dist-esm/src/operations/serviceTasks.js.map +1 -1
  276. package/dist-esm/src/operations/services.d.ts.map +1 -1
  277. package/dist-esm/src/operations/services.js +70 -26
  278. package/dist-esm/src/operations/services.js.map +1 -1
  279. package/dist-esm/src/operations/sqlMigrationServices.d.ts.map +1 -1
  280. package/dist-esm/src/operations/sqlMigrationServices.js +64 -24
  281. package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -1
  282. package/dist-esm/src/operations/tasks.d.ts.map +1 -1
  283. package/dist-esm/src/operations/tasks.js +19 -7
  284. package/dist-esm/src/operations/tasks.js.map +1 -1
  285. package/dist-esm/src/operations/usages.d.ts.map +1 -1
  286. package/dist-esm/src/operations/usages.js +19 -7
  287. package/dist-esm/src/operations/usages.js.map +1 -1
  288. package/dist-esm/src/pagingHelper.d.ts +13 -0
  289. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  290. package/dist-esm/src/pagingHelper.js +32 -0
  291. package/dist-esm/src/pagingHelper.js.map +1 -0
  292. package/dist-esm/test/sampleTest.js +11 -13
  293. package/dist-esm/test/sampleTest.js.map +1 -1
  294. package/package.json +38 -22
  295. package/review/arm-datamigration.api.md +564 -872
  296. package/rollup.config.js +6 -72
  297. package/src/dataMigrationManagementClient.ts +70 -5
  298. package/src/index.ts +1 -0
  299. package/src/models/index.ts +646 -246
  300. package/src/operations/databaseMigrationsSqlMi.ts +9 -3
  301. package/src/operations/databaseMigrationsSqlVm.ts +9 -3
  302. package/src/operations/files.ts +22 -8
  303. package/src/operations/operations.ts +21 -8
  304. package/src/operations/projects.ts +21 -8
  305. package/src/operations/resourceSkus.ts +21 -8
  306. package/src/operations/serviceTasks.ts +21 -8
  307. package/src/operations/services.ts +82 -30
  308. package/src/operations/sqlMigrationServices.ts +80 -32
  309. package/src/operations/tasks.ts +22 -8
  310. package/src/operations/usages.ts +21 -8
  311. package/src/pagingHelper.ts +39 -0
  312. package/tsconfig.json +18 -5
  313. package/types/arm-datamigration.d.ts +567 -240
  314. package/types/tsdoc-metadata.json +1 -1
  315. package/LICENSE.txt +0 -21
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { SqlMigrationServices } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -18,11 +19,14 @@ import {
18
19
  SqlMigrationService,
19
20
  SqlMigrationServicesListByResourceGroupNextOptionalParams,
20
21
  SqlMigrationServicesListByResourceGroupOptionalParams,
22
+ SqlMigrationServicesListByResourceGroupResponse,
21
23
  DatabaseMigration,
22
24
  SqlMigrationServicesListMigrationsNextOptionalParams,
23
25
  SqlMigrationServicesListMigrationsOptionalParams,
26
+ SqlMigrationServicesListMigrationsResponse,
24
27
  SqlMigrationServicesListBySubscriptionNextOptionalParams,
25
28
  SqlMigrationServicesListBySubscriptionOptionalParams,
29
+ SqlMigrationServicesListBySubscriptionResponse,
26
30
  SqlMigrationServicesGetOptionalParams,
27
31
  SqlMigrationServicesGetResponse,
28
32
  SqlMigrationServicesCreateOrUpdateOptionalParams,
@@ -31,7 +35,6 @@ import {
31
35
  SqlMigrationServiceUpdate,
32
36
  SqlMigrationServicesUpdateOptionalParams,
33
37
  SqlMigrationServicesUpdateResponse,
34
- SqlMigrationServicesListByResourceGroupResponse,
35
38
  SqlMigrationServicesListAuthKeysOptionalParams,
36
39
  SqlMigrationServicesListAuthKeysResponse,
37
40
  RegenAuthKeys,
@@ -40,10 +43,8 @@ import {
40
43
  DeleteNode,
41
44
  SqlMigrationServicesDeleteNodeOptionalParams,
42
45
  SqlMigrationServicesDeleteNodeResponse,
43
- SqlMigrationServicesListMigrationsResponse,
44
46
  SqlMigrationServicesListMonitoringDataOptionalParams,
45
47
  SqlMigrationServicesListMonitoringDataResponse,
46
- SqlMigrationServicesListBySubscriptionResponse,
47
48
  SqlMigrationServicesListByResourceGroupNextResponse,
48
49
  SqlMigrationServicesListMigrationsNextResponse,
49
50
  SqlMigrationServicesListBySubscriptionNextResponse
@@ -80,19 +81,33 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
80
81
  [Symbol.asyncIterator]() {
81
82
  return this;
82
83
  },
83
- byPage: () => {
84
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
84
+ byPage: (settings?: PageSettings) => {
85
+ if (settings?.maxPageSize) {
86
+ throw new Error("maxPageSize is not supported by this operation.");
87
+ }
88
+ return this.listByResourceGroupPagingPage(
89
+ resourceGroupName,
90
+ options,
91
+ settings
92
+ );
85
93
  }
86
94
  };
87
95
  }
88
96
 
89
97
  private async *listByResourceGroupPagingPage(
90
98
  resourceGroupName: string,
91
- options?: SqlMigrationServicesListByResourceGroupOptionalParams
99
+ options?: SqlMigrationServicesListByResourceGroupOptionalParams,
100
+ settings?: PageSettings
92
101
  ): AsyncIterableIterator<SqlMigrationService[]> {
93
- let result = await this._listByResourceGroup(resourceGroupName, options);
94
- yield result.value || [];
95
- let continuationToken = result.nextLink;
102
+ let result: SqlMigrationServicesListByResourceGroupResponse;
103
+ let continuationToken = settings?.continuationToken;
104
+ if (!continuationToken) {
105
+ result = await this._listByResourceGroup(resourceGroupName, options);
106
+ let page = result.value || [];
107
+ continuationToken = result.nextLink;
108
+ setContinuationToken(page, continuationToken);
109
+ yield page;
110
+ }
96
111
  while (continuationToken) {
97
112
  result = await this._listByResourceGroupNext(
98
113
  resourceGroupName,
@@ -100,7 +115,9 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
100
115
  options
101
116
  );
102
117
  continuationToken = result.nextLink;
103
- yield result.value || [];
118
+ let page = result.value || [];
119
+ setContinuationToken(page, continuationToken);
120
+ yield page;
104
121
  }
105
122
  }
106
123
 
@@ -140,11 +157,15 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
140
157
  [Symbol.asyncIterator]() {
141
158
  return this;
142
159
  },
143
- byPage: () => {
160
+ byPage: (settings?: PageSettings) => {
161
+ if (settings?.maxPageSize) {
162
+ throw new Error("maxPageSize is not supported by this operation.");
163
+ }
144
164
  return this.listMigrationsPagingPage(
145
165
  resourceGroupName,
146
166
  sqlMigrationServiceName,
147
- options
167
+ options,
168
+ settings
148
169
  );
149
170
  }
150
171
  };
@@ -153,15 +174,22 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
153
174
  private async *listMigrationsPagingPage(
154
175
  resourceGroupName: string,
155
176
  sqlMigrationServiceName: string,
156
- options?: SqlMigrationServicesListMigrationsOptionalParams
177
+ options?: SqlMigrationServicesListMigrationsOptionalParams,
178
+ settings?: PageSettings
157
179
  ): AsyncIterableIterator<DatabaseMigration[]> {
158
- let result = await this._listMigrations(
159
- resourceGroupName,
160
- sqlMigrationServiceName,
161
- options
162
- );
163
- yield result.value || [];
164
- let continuationToken = result.nextLink;
180
+ let result: SqlMigrationServicesListMigrationsResponse;
181
+ let continuationToken = settings?.continuationToken;
182
+ if (!continuationToken) {
183
+ result = await this._listMigrations(
184
+ resourceGroupName,
185
+ sqlMigrationServiceName,
186
+ options
187
+ );
188
+ let page = result.value || [];
189
+ continuationToken = result.nextLink;
190
+ setContinuationToken(page, continuationToken);
191
+ yield page;
192
+ }
165
193
  while (continuationToken) {
166
194
  result = await this._listMigrationsNext(
167
195
  resourceGroupName,
@@ -170,7 +198,9 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
170
198
  options
171
199
  );
172
200
  continuationToken = result.nextLink;
173
- yield result.value || [];
201
+ let page = result.value || [];
202
+ setContinuationToken(page, continuationToken);
203
+ yield page;
174
204
  }
175
205
  }
176
206
 
@@ -203,22 +233,34 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
203
233
  [Symbol.asyncIterator]() {
204
234
  return this;
205
235
  },
206
- byPage: () => {
207
- return this.listBySubscriptionPagingPage(options);
236
+ byPage: (settings?: PageSettings) => {
237
+ if (settings?.maxPageSize) {
238
+ throw new Error("maxPageSize is not supported by this operation.");
239
+ }
240
+ return this.listBySubscriptionPagingPage(options, settings);
208
241
  }
209
242
  };
210
243
  }
211
244
 
212
245
  private async *listBySubscriptionPagingPage(
213
- options?: SqlMigrationServicesListBySubscriptionOptionalParams
246
+ options?: SqlMigrationServicesListBySubscriptionOptionalParams,
247
+ settings?: PageSettings
214
248
  ): AsyncIterableIterator<SqlMigrationService[]> {
215
- let result = await this._listBySubscription(options);
216
- yield result.value || [];
217
- let continuationToken = result.nextLink;
249
+ let result: SqlMigrationServicesListBySubscriptionResponse;
250
+ let continuationToken = settings?.continuationToken;
251
+ if (!continuationToken) {
252
+ result = await this._listBySubscription(options);
253
+ let page = result.value || [];
254
+ continuationToken = result.nextLink;
255
+ setContinuationToken(page, continuationToken);
256
+ yield page;
257
+ }
218
258
  while (continuationToken) {
219
259
  result = await this._listBySubscriptionNext(continuationToken, options);
220
260
  continuationToken = result.nextLink;
221
- yield result.value || [];
261
+ let page = result.value || [];
262
+ setContinuationToken(page, continuationToken);
263
+ yield page;
222
264
  }
223
265
  }
224
266
 
@@ -311,10 +353,12 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
311
353
  { resourceGroupName, sqlMigrationServiceName, parameters, options },
312
354
  createOrUpdateOperationSpec
313
355
  );
314
- return new LroEngine(lro, {
356
+ const poller = new LroEngine(lro, {
315
357
  resumeFrom: options?.resumeFrom,
316
358
  intervalInMs: options?.updateIntervalInMs
317
359
  });
360
+ await poller.poll();
361
+ return poller;
318
362
  }
319
363
 
320
364
  /**
@@ -396,10 +440,12 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
396
440
  { resourceGroupName, sqlMigrationServiceName, options },
397
441
  deleteOperationSpec
398
442
  );
399
- return new LroEngine(lro, {
443
+ const poller = new LroEngine(lro, {
400
444
  resumeFrom: options?.resumeFrom,
401
445
  intervalInMs: options?.updateIntervalInMs
402
446
  });
447
+ await poller.poll();
448
+ return poller;
403
449
  }
404
450
 
405
451
  /**
@@ -485,10 +531,12 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices {
485
531
  { resourceGroupName, sqlMigrationServiceName, parameters, options },
486
532
  updateOperationSpec
487
533
  );
488
- return new LroEngine(lro, {
534
+ const poller = new LroEngine(lro, {
489
535
  resumeFrom: options?.resumeFrom,
490
536
  intervalInMs: options?.updateIntervalInMs
491
537
  });
538
+ await poller.poll();
539
+ return poller;
492
540
  }
493
541
 
494
542
  /**
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Tasks } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -73,12 +74,16 @@ export class TasksImpl implements Tasks {
73
74
  [Symbol.asyncIterator]() {
74
75
  return this;
75
76
  },
76
- byPage: () => {
77
+ byPage: (settings?: PageSettings) => {
78
+ if (settings?.maxPageSize) {
79
+ throw new Error("maxPageSize is not supported by this operation.");
80
+ }
77
81
  return this.listPagingPage(
78
82
  groupName,
79
83
  serviceName,
80
84
  projectName,
81
- options
85
+ options,
86
+ settings
82
87
  );
83
88
  }
84
89
  };
@@ -88,11 +93,18 @@ export class TasksImpl implements Tasks {
88
93
  groupName: string,
89
94
  serviceName: string,
90
95
  projectName: string,
91
- options?: TasksListOptionalParams
96
+ options?: TasksListOptionalParams,
97
+ settings?: PageSettings
92
98
  ): AsyncIterableIterator<ProjectTask[]> {
93
- let result = await this._list(groupName, serviceName, projectName, options);
94
- yield result.value || [];
95
- let continuationToken = result.nextLink;
99
+ let result: TasksListResponse;
100
+ let continuationToken = settings?.continuationToken;
101
+ if (!continuationToken) {
102
+ result = await this._list(groupName, serviceName, projectName, options);
103
+ let page = result.value || [];
104
+ continuationToken = result.nextLink;
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
96
108
  while (continuationToken) {
97
109
  result = await this._listNext(
98
110
  groupName,
@@ -102,7 +114,9 @@ export class TasksImpl implements Tasks {
102
114
  options
103
115
  );
104
116
  continuationToken = result.nextLink;
105
- yield result.value || [];
117
+ let page = result.value || [];
118
+ setContinuationToken(page, continuationToken);
119
+ yield page;
106
120
  }
107
121
  }
108
122
 
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { Usages } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -51,23 +52,35 @@ export class UsagesImpl implements Usages {
51
52
  [Symbol.asyncIterator]() {
52
53
  return this;
53
54
  },
54
- byPage: () => {
55
- return this.listPagingPage(location, options);
55
+ byPage: (settings?: PageSettings) => {
56
+ if (settings?.maxPageSize) {
57
+ throw new Error("maxPageSize is not supported by this operation.");
58
+ }
59
+ return this.listPagingPage(location, options, settings);
56
60
  }
57
61
  };
58
62
  }
59
63
 
60
64
  private async *listPagingPage(
61
65
  location: string,
62
- options?: UsagesListOptionalParams
66
+ options?: UsagesListOptionalParams,
67
+ settings?: PageSettings
63
68
  ): AsyncIterableIterator<Quota[]> {
64
- let result = await this._list(location, options);
65
- yield result.value || [];
66
- let continuationToken = result.nextLink;
69
+ let result: UsagesListResponse;
70
+ let continuationToken = settings?.continuationToken;
71
+ if (!continuationToken) {
72
+ result = await this._list(location, options);
73
+ let page = result.value || [];
74
+ continuationToken = result.nextLink;
75
+ setContinuationToken(page, continuationToken);
76
+ yield page;
77
+ }
67
78
  while (continuationToken) {
68
79
  result = await this._listNext(location, continuationToken, options);
69
80
  continuationToken = result.nextLink;
70
- yield result.value || [];
81
+ let page = result.value || [];
82
+ setContinuationToken(page, continuationToken);
83
+ yield page;
71
84
  }
72
85
  }
73
86
 
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export interface PageInfo {
10
+ continuationToken?: string;
11
+ }
12
+
13
+ const pageMap = new WeakMap<object, PageInfo>();
14
+
15
+ /**
16
+ * Given a result page from a pageable operation, returns a
17
+ * continuation token that can be used to begin paging from
18
+ * that point later.
19
+ * @param page A result object from calling .byPage() on a paged operation.
20
+ * @returns The continuation token that can be passed into byPage().
21
+ */
22
+ export function getContinuationToken(page: unknown): string | undefined {
23
+ if (typeof page !== "object" || page === null) {
24
+ return undefined;
25
+ }
26
+ return pageMap.get(page)?.continuationToken;
27
+ }
28
+
29
+ export function setContinuationToken(
30
+ page: unknown,
31
+ continuationToken: string | undefined
32
+ ): void {
33
+ if (typeof page !== "object" || page === null || !continuationToken) {
34
+ return;
35
+ }
36
+ const pageInfo = pageMap.get(page) ?? {};
37
+ pageInfo.continuationToken = continuationToken;
38
+ pageMap.set(page, pageInfo);
39
+ }
package/tsconfig.json CHANGED
@@ -9,12 +9,25 @@
9
9
  "esModuleInterop": true,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
- "lib": ["es6", "dom"],
12
+ "lib": [
13
+ "es6",
14
+ "dom"
15
+ ],
13
16
  "declaration": true,
14
17
  "outDir": "./dist-esm",
15
18
  "importHelpers": true,
16
- "paths": { "@azure/arm-datamigration": ["./src/index"] }
19
+ "paths": {
20
+ "@azure/arm-datamigration": [
21
+ "./src/index"
22
+ ]
23
+ }
17
24
  },
18
- "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"],
19
- "exclude": ["node_modules"]
20
- }
25
+ "include": [
26
+ "./src/**/*.ts",
27
+ "./test/**/*.ts",
28
+ "samples-dev/**/*.ts"
29
+ ],
30
+ "exclude": [
31
+ "node_modules"
32
+ ]
33
+ }