@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
package/rollup.config.js CHANGED
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
14
14
 
15
15
  import nodeBuiltins from "builtin-modules";
16
16
 
17
- /**
18
- * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
- *
20
- * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
- * __exportStar downleveled helper function to declare its exports which confuses
22
- * rollup's automatic discovery mechanism.
23
- *
24
- * @returns an object reference that can be `...`'d into your cjs() configuration.
25
- */
26
- export function openTelemetryCommonJs() {
27
- const namedExports = {};
28
-
29
- for (const key of [
30
- "@opentelemetry/api",
31
- "@azure/core-tracing/node_modules/@opentelemetry/api"
32
- ]) {
33
- namedExports[key] = [
34
- "SpanKind",
35
- "TraceFlags",
36
- "getSpan",
37
- "setSpan",
38
- "SpanStatusCode",
39
- "getSpanContext",
40
- "setSpanContext"
41
- ];
42
- }
43
-
44
- const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
-
46
- for (const version of releasedOpenTelemetryVersions) {
47
- namedExports[
48
- // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
- `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
- ] = [
51
- "SpanKind",
52
- "TraceFlags",
53
- "getSpan",
54
- "setSpan",
55
- "StatusCode",
56
- "CanonicalCode",
57
- "getSpanContext",
58
- "setSpanContext"
59
- ];
60
- }
61
-
62
- return namedExports;
63
- }
64
-
65
17
  // #region Warning Handler
66
18
 
67
19
  /**
68
- * A function that can determine whether a rollupwarning should be ignored. If
20
+ * A function that can determine whether a rollup warning should be ignored. If
69
21
  * the function returns `true`, then the warning will not be displayed.
70
22
  */
71
23
 
72
- function ignoreNiseSinonEvalWarnings(warning) {
24
+ function ignoreNiseSinonEval(warning) {
73
25
  return (
74
26
  warning.code === "EVAL" &&
75
27
  warning.id &&
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
78
30
  );
79
31
  }
80
32
 
81
- function ignoreChaiCircularDependencyWarnings(warning) {
33
+ function ignoreChaiCircularDependency(warning) {
82
34
  return (
83
35
  warning.code === "CIRCULAR_DEPENDENCY" &&
84
36
  warning.importer && warning.importer.includes("node_modules/chai") === true
85
37
  );
86
38
  }
87
39
 
88
- const warningInhibitors = [
89
- ignoreChaiCircularDependencyWarnings,
90
- ignoreNiseSinonEvalWarnings
91
- ];
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
92
41
 
93
42
  /**
94
43
  * Construct a warning handler for the shared rollup configuration
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
122
71
  nodeResolve({
123
72
  mainFields: ["module", "browser"]
124
73
  }),
125
- cjs({
126
- namedExports: {
127
- // Chai's strange internal architecture makes it impossible to statically
128
- // analyze its exports.
129
- chai: [
130
- "version",
131
- "use",
132
- "util",
133
- "config",
134
- "expect",
135
- "should",
136
- "assert"
137
- ],
138
- ...openTelemetryCommonJs()
139
- }
140
- }),
74
+ cjs(),
141
75
  json(),
142
76
  sourcemaps()
143
77
  //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
173
107
  ],
174
108
  output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
109
  preserveSymlinks: false,
176
- plugins: [sourcemaps(), nodeResolve(), cjs()]
110
+ plugins: [sourcemaps(), nodeResolve()]
177
111
  };
178
112
 
179
113
  const config = [baseConfig];
@@ -7,6 +7,12 @@
7
7
  */
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import {
12
+ PipelineRequest,
13
+ PipelineResponse,
14
+ SendRequest
15
+ } from "@azure/core-rest-pipeline";
10
16
  import * as coreAuth from "@azure/core-auth";
11
17
  import {
12
18
  DatabaseMigrationsSqlMiImpl,
@@ -68,24 +74,54 @@ export class DataMigrationManagementClient extends coreClient.ServiceClient {
68
74
  credential: credentials
69
75
  };
70
76
 
71
- const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.1`;
77
+ const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.3`;
72
78
  const userAgentPrefix =
73
79
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
74
80
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
75
81
  : `${packageDetails}`;
76
82
 
77
- if (!options.credentialScopes) {
78
- options.credentialScopes = ["https://management.azure.com/.default"];
79
- }
80
83
  const optionsWithDefaults = {
81
84
  ...defaults,
82
85
  ...options,
83
86
  userAgentOptions: {
84
87
  userAgentPrefix
85
88
  },
86
- baseUri: options.endpoint || "https://management.azure.com"
89
+ endpoint:
90
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com"
87
91
  };
88
92
  super(optionsWithDefaults);
93
+
94
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
95
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
96
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
97
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
98
+ (pipelinePolicy) =>
99
+ pipelinePolicy.name ===
100
+ coreRestPipeline.bearerTokenAuthenticationPolicyName
101
+ );
102
+ }
103
+ if (
104
+ !options ||
105
+ !options.pipeline ||
106
+ options.pipeline.getOrderedPolicies().length == 0 ||
107
+ !bearerTokenAuthenticationPolicyFound
108
+ ) {
109
+ this.pipeline.removePolicy({
110
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
111
+ });
112
+ this.pipeline.addPolicy(
113
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
114
+ credential: credentials,
115
+ scopes:
116
+ optionsWithDefaults.credentialScopes ??
117
+ `${optionsWithDefaults.endpoint}/.default`,
118
+ challengeCallbacks: {
119
+ authorizeRequestOnChallenge:
120
+ coreClient.authorizeRequestOnClaimChallenge
121
+ }
122
+ })
123
+ );
124
+ }
89
125
  // Parameter assignments
90
126
  this.subscriptionId = subscriptionId;
91
127
 
@@ -103,6 +139,35 @@ export class DataMigrationManagementClient extends coreClient.ServiceClient {
103
139
  this.projects = new ProjectsImpl(this);
104
140
  this.usages = new UsagesImpl(this);
105
141
  this.files = new FilesImpl(this);
142
+ this.addCustomApiVersionPolicy(options.apiVersion);
143
+ }
144
+
145
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
146
+ private addCustomApiVersionPolicy(apiVersion?: string) {
147
+ if (!apiVersion) {
148
+ return;
149
+ }
150
+ const apiVersionPolicy = {
151
+ name: "CustomApiVersionPolicy",
152
+ async sendRequest(
153
+ request: PipelineRequest,
154
+ next: SendRequest
155
+ ): Promise<PipelineResponse> {
156
+ const param = request.url.split("?");
157
+ if (param.length > 1) {
158
+ const newParams = param[1].split("&").map((item) => {
159
+ if (item.indexOf("api-version") > -1) {
160
+ return "api-version=" + apiVersion;
161
+ } else {
162
+ return item;
163
+ }
164
+ });
165
+ request.url = param[0] + "?" + newParams.join("&");
166
+ }
167
+ return next(request);
168
+ }
169
+ };
170
+ this.pipeline.addPolicy(apiVersionPolicy);
106
171
  }
107
172
 
108
173
  databaseMigrationsSqlMi: DatabaseMigrationsSqlMi;
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
10
11
  export * from "./models";
11
12
  export { DataMigrationManagementClient } from "./dataMigrationManagementClient";
12
13
  export * from "./operationsInterfaces";