@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
@@ -127,10 +127,12 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
127
127
  },
128
128
  createOrUpdateOperationSpec
129
129
  );
130
- return new LroEngine(lro, {
130
+ const poller = new LroEngine(lro, {
131
131
  resumeFrom: options?.resumeFrom,
132
132
  intervalInMs: options?.updateIntervalInMs
133
133
  });
134
+ await poller.poll();
135
+ return poller;
134
136
  }
135
137
 
136
138
  /**
@@ -225,10 +227,12 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
225
227
  },
226
228
  cancelOperationSpec
227
229
  );
228
- return new LroEngine(lro, {
230
+ const poller = new LroEngine(lro, {
229
231
  resumeFrom: options?.resumeFrom,
230
232
  intervalInMs: options?.updateIntervalInMs
231
233
  });
234
+ await poller.poll();
235
+ return poller;
232
236
  }
233
237
 
234
238
  /**
@@ -323,10 +327,12 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {
323
327
  },
324
328
  cutoverOperationSpec
325
329
  );
326
- return new LroEngine(lro, {
330
+ const poller = new LroEngine(lro, {
327
331
  resumeFrom: options?.resumeFrom,
328
332
  intervalInMs: options?.updateIntervalInMs
329
333
  });
334
+ await poller.poll();
335
+ return poller;
330
336
  }
331
337
 
332
338
  /**
@@ -127,10 +127,12 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {
127
127
  },
128
128
  createOrUpdateOperationSpec
129
129
  );
130
- return new LroEngine(lro, {
130
+ const poller = new LroEngine(lro, {
131
131
  resumeFrom: options?.resumeFrom,
132
132
  intervalInMs: options?.updateIntervalInMs
133
133
  });
134
+ await poller.poll();
135
+ return poller;
134
136
  }
135
137
 
136
138
  /**
@@ -225,10 +227,12 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {
225
227
  },
226
228
  cancelOperationSpec
227
229
  );
228
- return new LroEngine(lro, {
230
+ const poller = new LroEngine(lro, {
229
231
  resumeFrom: options?.resumeFrom,
230
232
  intervalInMs: options?.updateIntervalInMs
231
233
  });
234
+ await poller.poll();
235
+ return poller;
232
236
  }
233
237
 
234
238
  /**
@@ -323,10 +327,12 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {
323
327
  },
324
328
  cutoverOperationSpec
325
329
  );
326
- return new LroEngine(lro, {
330
+ const poller = new LroEngine(lro, {
327
331
  resumeFrom: options?.resumeFrom,
328
332
  intervalInMs: options?.updateIntervalInMs
329
333
  });
334
+ await poller.poll();
335
+ return poller;
330
336
  }
331
337
 
332
338
  /**
@@ -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 { Files } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -71,12 +72,16 @@ export class FilesImpl implements Files {
71
72
  [Symbol.asyncIterator]() {
72
73
  return this;
73
74
  },
74
- byPage: () => {
75
+ byPage: (settings?: PageSettings) => {
76
+ if (settings?.maxPageSize) {
77
+ throw new Error("maxPageSize is not supported by this operation.");
78
+ }
75
79
  return this.listPagingPage(
76
80
  groupName,
77
81
  serviceName,
78
82
  projectName,
79
- options
83
+ options,
84
+ settings
80
85
  );
81
86
  }
82
87
  };
@@ -86,11 +91,18 @@ export class FilesImpl implements Files {
86
91
  groupName: string,
87
92
  serviceName: string,
88
93
  projectName: string,
89
- options?: FilesListOptionalParams
94
+ options?: FilesListOptionalParams,
95
+ settings?: PageSettings
90
96
  ): AsyncIterableIterator<ProjectFile[]> {
91
- let result = await this._list(groupName, serviceName, projectName, options);
92
- yield result.value || [];
93
- let continuationToken = result.nextLink;
97
+ let result: FilesListResponse;
98
+ let continuationToken = settings?.continuationToken;
99
+ if (!continuationToken) {
100
+ result = await this._list(groupName, serviceName, projectName, options);
101
+ let page = result.value || [];
102
+ continuationToken = result.nextLink;
103
+ setContinuationToken(page, continuationToken);
104
+ yield page;
105
+ }
94
106
  while (continuationToken) {
95
107
  result = await this._listNext(
96
108
  groupName,
@@ -100,7 +112,9 @@ export class FilesImpl implements Files {
100
112
  options
101
113
  );
102
114
  continuationToken = result.nextLink;
103
- yield result.value || [];
115
+ let page = result.value || [];
116
+ setContinuationToken(page, continuationToken);
117
+ yield page;
104
118
  }
105
119
  }
106
120
 
@@ -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 { Operations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
48
49
  [Symbol.asyncIterator]() {
49
50
  return this;
50
51
  },
51
- byPage: () => {
52
- return this.listPagingPage(options);
52
+ byPage: (settings?: PageSettings) => {
53
+ if (settings?.maxPageSize) {
54
+ throw new Error("maxPageSize is not supported by this operation.");
55
+ }
56
+ return this.listPagingPage(options, settings);
53
57
  }
54
58
  };
55
59
  }
56
60
 
57
61
  private async *listPagingPage(
58
- options?: OperationsListOptionalParams
62
+ options?: OperationsListOptionalParams,
63
+ settings?: PageSettings
59
64
  ): AsyncIterableIterator<OperationsDefinition[]> {
60
- let result = await this._list(options);
61
- yield result.value || [];
62
- let continuationToken = result.nextLink;
65
+ let result: OperationsListResponse;
66
+ let continuationToken = settings?.continuationToken;
67
+ if (!continuationToken) {
68
+ result = await this._list(options);
69
+ let page = result.value || [];
70
+ continuationToken = result.nextLink;
71
+ setContinuationToken(page, continuationToken);
72
+ yield page;
73
+ }
63
74
  while (continuationToken) {
64
75
  result = await this._listNext(continuationToken, options);
65
76
  continuationToken = result.nextLink;
66
- yield result.value || [];
77
+ let page = result.value || [];
78
+ setContinuationToken(page, continuationToken);
79
+ yield page;
67
80
  }
68
81
  }
69
82
 
@@ -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 { Projects } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -60,8 +61,11 @@ export class ProjectsImpl implements Projects {
60
61
  [Symbol.asyncIterator]() {
61
62
  return this;
62
63
  },
63
- byPage: () => {
64
- return this.listPagingPage(groupName, serviceName, options);
64
+ byPage: (settings?: PageSettings) => {
65
+ if (settings?.maxPageSize) {
66
+ throw new Error("maxPageSize is not supported by this operation.");
67
+ }
68
+ return this.listPagingPage(groupName, serviceName, options, settings);
65
69
  }
66
70
  };
67
71
  }
@@ -69,11 +73,18 @@ export class ProjectsImpl implements Projects {
69
73
  private async *listPagingPage(
70
74
  groupName: string,
71
75
  serviceName: string,
72
- options?: ProjectsListOptionalParams
76
+ options?: ProjectsListOptionalParams,
77
+ settings?: PageSettings
73
78
  ): AsyncIterableIterator<Project[]> {
74
- let result = await this._list(groupName, serviceName, options);
75
- yield result.value || [];
76
- let continuationToken = result.nextLink;
79
+ let result: ProjectsListResponse;
80
+ let continuationToken = settings?.continuationToken;
81
+ if (!continuationToken) {
82
+ result = await this._list(groupName, serviceName, options);
83
+ let page = result.value || [];
84
+ continuationToken = result.nextLink;
85
+ setContinuationToken(page, continuationToken);
86
+ yield page;
87
+ }
77
88
  while (continuationToken) {
78
89
  result = await this._listNext(
79
90
  groupName,
@@ -82,7 +93,9 @@ export class ProjectsImpl implements Projects {
82
93
  options
83
94
  );
84
95
  continuationToken = result.nextLink;
85
- yield result.value || [];
96
+ let page = result.value || [];
97
+ setContinuationToken(page, continuationToken);
98
+ yield page;
86
99
  }
87
100
  }
88
101
 
@@ -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 { ResourceSkus } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -48,22 +49,34 @@ export class ResourceSkusImpl implements ResourceSkus {
48
49
  [Symbol.asyncIterator]() {
49
50
  return this;
50
51
  },
51
- byPage: () => {
52
- return this.listSkusPagingPage(options);
52
+ byPage: (settings?: PageSettings) => {
53
+ if (settings?.maxPageSize) {
54
+ throw new Error("maxPageSize is not supported by this operation.");
55
+ }
56
+ return this.listSkusPagingPage(options, settings);
53
57
  }
54
58
  };
55
59
  }
56
60
 
57
61
  private async *listSkusPagingPage(
58
- options?: ResourceSkusListSkusOptionalParams
62
+ options?: ResourceSkusListSkusOptionalParams,
63
+ settings?: PageSettings
59
64
  ): AsyncIterableIterator<ResourceSku[]> {
60
- let result = await this._listSkus(options);
61
- yield result.value || [];
62
- let continuationToken = result.nextLink;
65
+ let result: ResourceSkusListSkusResponse;
66
+ let continuationToken = settings?.continuationToken;
67
+ if (!continuationToken) {
68
+ result = await this._listSkus(options);
69
+ let page = result.value || [];
70
+ continuationToken = result.nextLink;
71
+ setContinuationToken(page, continuationToken);
72
+ yield page;
73
+ }
63
74
  while (continuationToken) {
64
75
  result = await this._listSkusNext(continuationToken, options);
65
76
  continuationToken = result.nextLink;
66
- yield result.value || [];
77
+ let page = result.value || [];
78
+ setContinuationToken(page, continuationToken);
79
+ yield page;
67
80
  }
68
81
  }
69
82
 
@@ -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 { ServiceTasks } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -63,8 +64,11 @@ export class ServiceTasksImpl implements ServiceTasks {
63
64
  [Symbol.asyncIterator]() {
64
65
  return this;
65
66
  },
66
- byPage: () => {
67
- return this.listPagingPage(groupName, serviceName, options);
67
+ byPage: (settings?: PageSettings) => {
68
+ if (settings?.maxPageSize) {
69
+ throw new Error("maxPageSize is not supported by this operation.");
70
+ }
71
+ return this.listPagingPage(groupName, serviceName, options, settings);
68
72
  }
69
73
  };
70
74
  }
@@ -72,11 +76,18 @@ export class ServiceTasksImpl implements ServiceTasks {
72
76
  private async *listPagingPage(
73
77
  groupName: string,
74
78
  serviceName: string,
75
- options?: ServiceTasksListOptionalParams
79
+ options?: ServiceTasksListOptionalParams,
80
+ settings?: PageSettings
76
81
  ): AsyncIterableIterator<ProjectTask[]> {
77
- let result = await this._list(groupName, serviceName, options);
78
- yield result.value || [];
79
- let continuationToken = result.nextLink;
82
+ let result: ServiceTasksListResponse;
83
+ let continuationToken = settings?.continuationToken;
84
+ if (!continuationToken) {
85
+ result = await this._list(groupName, serviceName, options);
86
+ let page = result.value || [];
87
+ continuationToken = result.nextLink;
88
+ setContinuationToken(page, continuationToken);
89
+ yield page;
90
+ }
80
91
  while (continuationToken) {
81
92
  result = await this._listNext(
82
93
  groupName,
@@ -85,7 +96,9 @@ export class ServiceTasksImpl implements ServiceTasks {
85
96
  options
86
97
  );
87
98
  continuationToken = result.nextLink;
88
- yield result.value || [];
99
+ let page = result.value || [];
100
+ setContinuationToken(page, continuationToken);
101
+ yield page;
89
102
  }
90
103
  }
91
104
 
@@ -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 { Services } 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
  AvailableServiceSku,
19
20
  ServicesListSkusNextOptionalParams,
20
21
  ServicesListSkusOptionalParams,
22
+ ServicesListSkusResponse,
21
23
  DataMigrationService,
22
24
  ServicesListByResourceGroupNextOptionalParams,
23
25
  ServicesListByResourceGroupOptionalParams,
26
+ ServicesListByResourceGroupResponse,
24
27
  ServicesListNextOptionalParams,
25
28
  ServicesListOptionalParams,
29
+ ServicesListResponse,
26
30
  ServicesCreateOrUpdateOptionalParams,
27
31
  ServicesCreateOrUpdateResponse,
28
32
  ServicesGetOptionalParams,
@@ -34,12 +38,9 @@ import {
34
38
  ServicesCheckStatusResponse,
35
39
  ServicesStartOptionalParams,
36
40
  ServicesStopOptionalParams,
37
- ServicesListSkusResponse,
38
41
  NameAvailabilityRequest,
39
42
  ServicesCheckChildrenNameAvailabilityOptionalParams,
40
43
  ServicesCheckChildrenNameAvailabilityResponse,
41
- ServicesListByResourceGroupResponse,
42
- ServicesListResponse,
43
44
  ServicesCheckNameAvailabilityOptionalParams,
44
45
  ServicesCheckNameAvailabilityResponse,
45
46
  ServicesListSkusNextResponse,
@@ -80,8 +81,16 @@ export class ServicesImpl implements Services {
80
81
  [Symbol.asyncIterator]() {
81
82
  return this;
82
83
  },
83
- byPage: () => {
84
- return this.listSkusPagingPage(groupName, serviceName, options);
84
+ byPage: (settings?: PageSettings) => {
85
+ if (settings?.maxPageSize) {
86
+ throw new Error("maxPageSize is not supported by this operation.");
87
+ }
88
+ return this.listSkusPagingPage(
89
+ groupName,
90
+ serviceName,
91
+ options,
92
+ settings
93
+ );
85
94
  }
86
95
  };
87
96
  }
@@ -89,11 +98,18 @@ export class ServicesImpl implements Services {
89
98
  private async *listSkusPagingPage(
90
99
  groupName: string,
91
100
  serviceName: string,
92
- options?: ServicesListSkusOptionalParams
101
+ options?: ServicesListSkusOptionalParams,
102
+ settings?: PageSettings
93
103
  ): AsyncIterableIterator<AvailableServiceSku[]> {
94
- let result = await this._listSkus(groupName, serviceName, options);
95
- yield result.value || [];
96
- let continuationToken = result.nextLink;
104
+ let result: ServicesListSkusResponse;
105
+ let continuationToken = settings?.continuationToken;
106
+ if (!continuationToken) {
107
+ result = await this._listSkus(groupName, serviceName, options);
108
+ let page = result.value || [];
109
+ continuationToken = result.nextLink;
110
+ setContinuationToken(page, continuationToken);
111
+ yield page;
112
+ }
97
113
  while (continuationToken) {
98
114
  result = await this._listSkusNext(
99
115
  groupName,
@@ -102,7 +118,9 @@ export class ServicesImpl implements Services {
102
118
  options
103
119
  );
104
120
  continuationToken = result.nextLink;
105
- yield result.value || [];
121
+ let page = result.value || [];
122
+ setContinuationToken(page, continuationToken);
123
+ yield page;
106
124
  }
107
125
  }
108
126
 
@@ -138,19 +156,29 @@ export class ServicesImpl implements Services {
138
156
  [Symbol.asyncIterator]() {
139
157
  return this;
140
158
  },
141
- byPage: () => {
142
- return this.listByResourceGroupPagingPage(groupName, options);
159
+ byPage: (settings?: PageSettings) => {
160
+ if (settings?.maxPageSize) {
161
+ throw new Error("maxPageSize is not supported by this operation.");
162
+ }
163
+ return this.listByResourceGroupPagingPage(groupName, options, settings);
143
164
  }
144
165
  };
145
166
  }
146
167
 
147
168
  private async *listByResourceGroupPagingPage(
148
169
  groupName: string,
149
- options?: ServicesListByResourceGroupOptionalParams
170
+ options?: ServicesListByResourceGroupOptionalParams,
171
+ settings?: PageSettings
150
172
  ): AsyncIterableIterator<DataMigrationService[]> {
151
- let result = await this._listByResourceGroup(groupName, options);
152
- yield result.value || [];
153
- let continuationToken = result.nextLink;
173
+ let result: ServicesListByResourceGroupResponse;
174
+ let continuationToken = settings?.continuationToken;
175
+ if (!continuationToken) {
176
+ result = await this._listByResourceGroup(groupName, options);
177
+ let page = result.value || [];
178
+ continuationToken = result.nextLink;
179
+ setContinuationToken(page, continuationToken);
180
+ yield page;
181
+ }
154
182
  while (continuationToken) {
155
183
  result = await this._listByResourceGroupNext(
156
184
  groupName,
@@ -158,7 +186,9 @@ export class ServicesImpl implements Services {
158
186
  options
159
187
  );
160
188
  continuationToken = result.nextLink;
161
- yield result.value || [];
189
+ let page = result.value || [];
190
+ setContinuationToken(page, continuationToken);
191
+ yield page;
162
192
  }
163
193
  }
164
194
 
@@ -190,22 +220,34 @@ export class ServicesImpl implements Services {
190
220
  [Symbol.asyncIterator]() {
191
221
  return this;
192
222
  },
193
- byPage: () => {
194
- return this.listPagingPage(options);
223
+ byPage: (settings?: PageSettings) => {
224
+ if (settings?.maxPageSize) {
225
+ throw new Error("maxPageSize is not supported by this operation.");
226
+ }
227
+ return this.listPagingPage(options, settings);
195
228
  }
196
229
  };
197
230
  }
198
231
 
199
232
  private async *listPagingPage(
200
- options?: ServicesListOptionalParams
233
+ options?: ServicesListOptionalParams,
234
+ settings?: PageSettings
201
235
  ): AsyncIterableIterator<DataMigrationService[]> {
202
- let result = await this._list(options);
203
- yield result.value || [];
204
- let continuationToken = result.nextLink;
236
+ let result: ServicesListResponse;
237
+ let continuationToken = settings?.continuationToken;
238
+ if (!continuationToken) {
239
+ result = await this._list(options);
240
+ let page = result.value || [];
241
+ continuationToken = result.nextLink;
242
+ setContinuationToken(page, continuationToken);
243
+ yield page;
244
+ }
205
245
  while (continuationToken) {
206
246
  result = await this._listNext(continuationToken, options);
207
247
  continuationToken = result.nextLink;
208
- yield result.value || [];
248
+ let page = result.value || [];
249
+ setContinuationToken(page, continuationToken);
250
+ yield page;
209
251
  }
210
252
  }
211
253
 
@@ -286,10 +328,12 @@ export class ServicesImpl implements Services {
286
328
  { groupName, serviceName, parameters, options },
287
329
  createOrUpdateOperationSpec
288
330
  );
289
- return new LroEngine(lro, {
331
+ const poller = new LroEngine(lro, {
290
332
  resumeFrom: options?.resumeFrom,
291
333
  intervalInMs: options?.updateIntervalInMs
292
334
  });
335
+ await poller.poll();
336
+ return poller;
293
337
  }
294
338
 
295
339
  /**
@@ -395,10 +439,12 @@ export class ServicesImpl implements Services {
395
439
  { groupName, serviceName, options },
396
440
  deleteOperationSpec
397
441
  );
398
- return new LroEngine(lro, {
442
+ const poller = new LroEngine(lro, {
399
443
  resumeFrom: options?.resumeFrom,
400
444
  intervalInMs: options?.updateIntervalInMs
401
445
  });
446
+ await poller.poll();
447
+ return poller;
402
448
  }
403
449
 
404
450
  /**
@@ -482,10 +528,12 @@ export class ServicesImpl implements Services {
482
528
  { groupName, serviceName, parameters, options },
483
529
  updateOperationSpec
484
530
  );
485
- return new LroEngine(lro, {
531
+ const poller = new LroEngine(lro, {
486
532
  resumeFrom: options?.resumeFrom,
487
533
  intervalInMs: options?.updateIntervalInMs
488
534
  });
535
+ await poller.poll();
536
+ return poller;
489
537
  }
490
538
 
491
539
  /**
@@ -587,10 +635,12 @@ export class ServicesImpl implements Services {
587
635
  { groupName, serviceName, options },
588
636
  startOperationSpec
589
637
  );
590
- return new LroEngine(lro, {
638
+ const poller = new LroEngine(lro, {
591
639
  resumeFrom: options?.resumeFrom,
592
640
  intervalInMs: options?.updateIntervalInMs
593
641
  });
642
+ await poller.poll();
643
+ return poller;
594
644
  }
595
645
 
596
646
  /**
@@ -666,10 +716,12 @@ export class ServicesImpl implements Services {
666
716
  { groupName, serviceName, options },
667
717
  stopOperationSpec
668
718
  );
669
- return new LroEngine(lro, {
719
+ const poller = new LroEngine(lro, {
670
720
  resumeFrom: options?.resumeFrom,
671
721
  intervalInMs: options?.updateIntervalInMs
672
722
  });
723
+ await poller.poll();
724
+ return poller;
673
725
  }
674
726
 
675
727
  /**