@azure/arm-datamigration 3.0.0-beta.4 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/dataMigrationManagementClient.d.ts.map +1 -1
  3. package/dist/browser/dataMigrationManagementClient.js +34 -16
  4. package/dist/browser/dataMigrationManagementClient.js.map +1 -1
  5. package/dist/browser/index.d.ts.map +1 -1
  6. package/dist/browser/index.js +4 -7
  7. package/dist/browser/index.js.map +1 -1
  8. package/dist/browser/lroImpl.d.ts.map +1 -1
  9. package/dist/browser/lroImpl.js +9 -10
  10. package/dist/browser/lroImpl.js.map +1 -1
  11. package/dist/browser/models/index.d.ts +120 -155
  12. package/dist/browser/models/index.d.ts.map +1 -1
  13. package/dist/browser/models/index.js +2 -7
  14. package/dist/browser/models/index.js.map +1 -1
  15. package/dist/browser/models/mappers.d.ts +8 -12
  16. package/dist/browser/models/mappers.d.ts.map +1 -1
  17. package/dist/browser/models/mappers.js +1802 -1134
  18. package/dist/browser/models/mappers.js.map +1 -1
  19. package/dist/browser/models/parameters.d.ts +3 -0
  20. package/dist/browser/models/parameters.d.ts.map +1 -1
  21. package/dist/browser/models/parameters.js +33 -8
  22. package/dist/browser/models/parameters.js.map +1 -1
  23. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -1
  24. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +48 -60
  25. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  26. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -1
  27. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +48 -60
  28. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  29. package/dist/browser/operations/databaseMigrationsSqlDb.d.ts +21 -1
  30. package/dist/browser/operations/databaseMigrationsSqlDb.d.ts.map +1 -1
  31. package/dist/browser/operations/databaseMigrationsSqlDb.js +137 -31
  32. package/dist/browser/operations/databaseMigrationsSqlDb.js.map +1 -1
  33. package/dist/browser/operations/databaseMigrationsSqlMi.d.ts +19 -1
  34. package/dist/browser/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  35. package/dist/browser/operations/databaseMigrationsSqlMi.js +127 -31
  36. package/dist/browser/operations/databaseMigrationsSqlMi.js.map +1 -1
  37. package/dist/browser/operations/databaseMigrationsSqlVm.d.ts +19 -1
  38. package/dist/browser/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  39. package/dist/browser/operations/databaseMigrationsSqlVm.js +127 -31
  40. package/dist/browser/operations/databaseMigrationsSqlVm.js.map +1 -1
  41. package/dist/browser/operations/files.d.ts.map +1 -1
  42. package/dist/browser/operations/files.js +25 -47
  43. package/dist/browser/operations/files.js.map +1 -1
  44. package/dist/browser/operations/index.d.ts.map +1 -1
  45. package/dist/browser/operations/index.js +4 -7
  46. package/dist/browser/operations/index.js.map +1 -1
  47. package/dist/browser/operations/migrationServices.d.ts.map +1 -1
  48. package/dist/browser/operations/migrationServices.js +105 -154
  49. package/dist/browser/operations/migrationServices.js.map +1 -1
  50. package/dist/browser/operations/operations.d.ts.map +1 -1
  51. package/dist/browser/operations/operations.js +25 -47
  52. package/dist/browser/operations/operations.js.map +1 -1
  53. package/dist/browser/operations/projects.d.ts.map +1 -1
  54. package/dist/browser/operations/projects.js +25 -47
  55. package/dist/browser/operations/projects.js.map +1 -1
  56. package/dist/browser/operations/resourceSkus.d.ts.map +1 -1
  57. package/dist/browser/operations/resourceSkus.js +26 -52
  58. package/dist/browser/operations/resourceSkus.js.map +1 -1
  59. package/dist/browser/operations/serviceTasks.d.ts.map +1 -1
  60. package/dist/browser/operations/serviceTasks.js +25 -47
  61. package/dist/browser/operations/serviceTasks.js.map +1 -1
  62. package/dist/browser/operations/services.d.ts.map +1 -1
  63. package/dist/browser/operations/services.js +128 -171
  64. package/dist/browser/operations/services.js.map +1 -1
  65. package/dist/browser/operations/sqlMigrationServices.d.ts.map +1 -1
  66. package/dist/browser/operations/sqlMigrationServices.js +105 -154
  67. package/dist/browser/operations/sqlMigrationServices.js.map +1 -1
  68. package/dist/browser/operations/tasks.d.ts.map +1 -1
  69. package/dist/browser/operations/tasks.js +25 -47
  70. package/dist/browser/operations/tasks.js.map +1 -1
  71. package/dist/browser/operations/usages.d.ts.map +1 -1
  72. package/dist/browser/operations/usages.js +26 -52
  73. package/dist/browser/operations/usages.js.map +1 -1
  74. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -1
  75. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +2 -7
  76. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  77. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -1
  78. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +2 -7
  79. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  80. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.d.ts +21 -1
  81. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -1
  82. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.js +2 -7
  83. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -1
  84. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.d.ts +19 -1
  85. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  86. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.js +2 -7
  87. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  88. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.d.ts +19 -1
  89. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  90. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.js +2 -7
  91. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  92. package/dist/browser/operationsInterfaces/files.d.ts.map +1 -1
  93. package/dist/browser/operationsInterfaces/files.js +2 -7
  94. package/dist/browser/operationsInterfaces/files.js.map +1 -1
  95. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  96. package/dist/browser/operationsInterfaces/index.js +4 -7
  97. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  98. package/dist/browser/operationsInterfaces/migrationServices.d.ts.map +1 -1
  99. package/dist/browser/operationsInterfaces/migrationServices.js +2 -7
  100. package/dist/browser/operationsInterfaces/migrationServices.js.map +1 -1
  101. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  102. package/dist/browser/operationsInterfaces/operations.js +2 -7
  103. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  104. package/dist/browser/operationsInterfaces/projects.d.ts.map +1 -1
  105. package/dist/browser/operationsInterfaces/projects.js +2 -7
  106. package/dist/browser/operationsInterfaces/projects.js.map +1 -1
  107. package/dist/browser/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  108. package/dist/browser/operationsInterfaces/resourceSkus.js +2 -7
  109. package/dist/browser/operationsInterfaces/resourceSkus.js.map +1 -1
  110. package/dist/browser/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  111. package/dist/browser/operationsInterfaces/serviceTasks.js +2 -7
  112. package/dist/browser/operationsInterfaces/serviceTasks.js.map +1 -1
  113. package/dist/browser/operationsInterfaces/services.d.ts.map +1 -1
  114. package/dist/browser/operationsInterfaces/services.js +2 -7
  115. package/dist/browser/operationsInterfaces/services.js.map +1 -1
  116. package/dist/browser/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  117. package/dist/browser/operationsInterfaces/sqlMigrationServices.js +2 -7
  118. package/dist/browser/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  119. package/dist/browser/operationsInterfaces/tasks.d.ts.map +1 -1
  120. package/dist/browser/operationsInterfaces/tasks.js +2 -7
  121. package/dist/browser/operationsInterfaces/tasks.js.map +1 -1
  122. package/dist/browser/operationsInterfaces/usages.d.ts.map +1 -1
  123. package/dist/browser/operationsInterfaces/usages.js +2 -7
  124. package/dist/browser/operationsInterfaces/usages.js.map +1 -1
  125. package/dist/browser/pagingHelper.d.ts.map +1 -1
  126. package/dist/browser/pagingHelper.js +4 -11
  127. package/dist/browser/pagingHelper.js.map +1 -1
  128. package/dist/commonjs/dataMigrationManagementClient.d.ts.map +1 -1
  129. package/dist/commonjs/dataMigrationManagementClient.js +34 -16
  130. package/dist/commonjs/dataMigrationManagementClient.js.map +1 -1
  131. package/dist/commonjs/index.d.ts.map +1 -1
  132. package/dist/commonjs/index.js +4 -7
  133. package/dist/commonjs/index.js.map +1 -1
  134. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  135. package/dist/commonjs/lroImpl.js +9 -10
  136. package/dist/commonjs/lroImpl.js.map +1 -1
  137. package/dist/commonjs/models/index.d.ts +120 -155
  138. package/dist/commonjs/models/index.d.ts.map +1 -1
  139. package/dist/commonjs/models/index.js +2 -7
  140. package/dist/commonjs/models/index.js.map +1 -1
  141. package/dist/commonjs/models/mappers.d.ts +8 -12
  142. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  143. package/dist/commonjs/models/mappers.js +1809 -1141
  144. package/dist/commonjs/models/mappers.js.map +1 -1
  145. package/dist/commonjs/models/parameters.d.ts +3 -0
  146. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  147. package/dist/commonjs/models/parameters.js +34 -9
  148. package/dist/commonjs/models/parameters.js.map +1 -1
  149. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -1
  150. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +47 -58
  151. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  152. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -1
  153. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +47 -58
  154. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  155. package/dist/commonjs/operations/databaseMigrationsSqlDb.d.ts +21 -1
  156. package/dist/commonjs/operations/databaseMigrationsSqlDb.d.ts.map +1 -1
  157. package/dist/commonjs/operations/databaseMigrationsSqlDb.js +136 -30
  158. package/dist/commonjs/operations/databaseMigrationsSqlDb.js.map +1 -1
  159. package/dist/commonjs/operations/databaseMigrationsSqlMi.d.ts +19 -1
  160. package/dist/commonjs/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  161. package/dist/commonjs/operations/databaseMigrationsSqlMi.js +126 -30
  162. package/dist/commonjs/operations/databaseMigrationsSqlMi.js.map +1 -1
  163. package/dist/commonjs/operations/databaseMigrationsSqlVm.d.ts +19 -1
  164. package/dist/commonjs/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  165. package/dist/commonjs/operations/databaseMigrationsSqlVm.js +126 -30
  166. package/dist/commonjs/operations/databaseMigrationsSqlVm.js.map +1 -1
  167. package/dist/commonjs/operations/files.d.ts.map +1 -1
  168. package/dist/commonjs/operations/files.js +25 -46
  169. package/dist/commonjs/operations/files.js.map +1 -1
  170. package/dist/commonjs/operations/index.d.ts.map +1 -1
  171. package/dist/commonjs/operations/index.js +4 -7
  172. package/dist/commonjs/operations/index.js.map +1 -1
  173. package/dist/commonjs/operations/migrationServices.d.ts.map +1 -1
  174. package/dist/commonjs/operations/migrationServices.js +104 -152
  175. package/dist/commonjs/operations/migrationServices.js.map +1 -1
  176. package/dist/commonjs/operations/operations.d.ts.map +1 -1
  177. package/dist/commonjs/operations/operations.js +25 -46
  178. package/dist/commonjs/operations/operations.js.map +1 -1
  179. package/dist/commonjs/operations/projects.d.ts.map +1 -1
  180. package/dist/commonjs/operations/projects.js +25 -46
  181. package/dist/commonjs/operations/projects.js.map +1 -1
  182. package/dist/commonjs/operations/resourceSkus.d.ts.map +1 -1
  183. package/dist/commonjs/operations/resourceSkus.js +26 -51
  184. package/dist/commonjs/operations/resourceSkus.js.map +1 -1
  185. package/dist/commonjs/operations/serviceTasks.d.ts.map +1 -1
  186. package/dist/commonjs/operations/serviceTasks.js +25 -46
  187. package/dist/commonjs/operations/serviceTasks.js.map +1 -1
  188. package/dist/commonjs/operations/services.d.ts.map +1 -1
  189. package/dist/commonjs/operations/services.js +127 -169
  190. package/dist/commonjs/operations/services.js.map +1 -1
  191. package/dist/commonjs/operations/sqlMigrationServices.d.ts.map +1 -1
  192. package/dist/commonjs/operations/sqlMigrationServices.js +104 -152
  193. package/dist/commonjs/operations/sqlMigrationServices.js.map +1 -1
  194. package/dist/commonjs/operations/tasks.d.ts.map +1 -1
  195. package/dist/commonjs/operations/tasks.js +25 -46
  196. package/dist/commonjs/operations/tasks.js.map +1 -1
  197. package/dist/commonjs/operations/usages.d.ts.map +1 -1
  198. package/dist/commonjs/operations/usages.js +26 -51
  199. package/dist/commonjs/operations/usages.js.map +1 -1
  200. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -1
  201. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +2 -7
  202. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  203. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -1
  204. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +2 -7
  205. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  206. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.d.ts +21 -1
  207. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -1
  208. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.js +2 -7
  209. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -1
  210. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.d.ts +19 -1
  211. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  212. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.js +2 -7
  213. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  214. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.d.ts +19 -1
  215. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  216. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.js +2 -7
  217. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  218. package/dist/commonjs/operationsInterfaces/files.d.ts.map +1 -1
  219. package/dist/commonjs/operationsInterfaces/files.js +2 -7
  220. package/dist/commonjs/operationsInterfaces/files.js.map +1 -1
  221. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  222. package/dist/commonjs/operationsInterfaces/index.js +4 -7
  223. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  224. package/dist/commonjs/operationsInterfaces/migrationServices.d.ts.map +1 -1
  225. package/dist/commonjs/operationsInterfaces/migrationServices.js +2 -7
  226. package/dist/commonjs/operationsInterfaces/migrationServices.js.map +1 -1
  227. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  228. package/dist/commonjs/operationsInterfaces/operations.js +2 -7
  229. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  230. package/dist/commonjs/operationsInterfaces/projects.d.ts.map +1 -1
  231. package/dist/commonjs/operationsInterfaces/projects.js +2 -7
  232. package/dist/commonjs/operationsInterfaces/projects.js.map +1 -1
  233. package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  234. package/dist/commonjs/operationsInterfaces/resourceSkus.js +2 -7
  235. package/dist/commonjs/operationsInterfaces/resourceSkus.js.map +1 -1
  236. package/dist/commonjs/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  237. package/dist/commonjs/operationsInterfaces/serviceTasks.js +2 -7
  238. package/dist/commonjs/operationsInterfaces/serviceTasks.js.map +1 -1
  239. package/dist/commonjs/operationsInterfaces/services.d.ts.map +1 -1
  240. package/dist/commonjs/operationsInterfaces/services.js +2 -7
  241. package/dist/commonjs/operationsInterfaces/services.js.map +1 -1
  242. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  243. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.js +2 -7
  244. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  245. package/dist/commonjs/operationsInterfaces/tasks.d.ts.map +1 -1
  246. package/dist/commonjs/operationsInterfaces/tasks.js +2 -7
  247. package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -1
  248. package/dist/commonjs/operationsInterfaces/usages.d.ts.map +1 -1
  249. package/dist/commonjs/operationsInterfaces/usages.js +2 -7
  250. package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
  251. package/dist/commonjs/pagingHelper.d.ts.map +1 -1
  252. package/dist/commonjs/pagingHelper.js +4 -11
  253. package/dist/commonjs/pagingHelper.js.map +1 -1
  254. package/dist/commonjs/tsdoc-metadata.json +1 -1
  255. package/dist/esm/dataMigrationManagementClient.d.ts.map +1 -1
  256. package/dist/esm/dataMigrationManagementClient.js +34 -16
  257. package/dist/esm/dataMigrationManagementClient.js.map +1 -1
  258. package/dist/esm/index.d.ts.map +1 -1
  259. package/dist/esm/index.js +4 -7
  260. package/dist/esm/index.js.map +1 -1
  261. package/dist/esm/lroImpl.d.ts.map +1 -1
  262. package/dist/esm/lroImpl.js +9 -10
  263. package/dist/esm/lroImpl.js.map +1 -1
  264. package/dist/esm/models/index.d.ts +120 -155
  265. package/dist/esm/models/index.d.ts.map +1 -1
  266. package/dist/esm/models/index.js +2 -7
  267. package/dist/esm/models/index.js.map +1 -1
  268. package/dist/esm/models/mappers.d.ts +8 -12
  269. package/dist/esm/models/mappers.d.ts.map +1 -1
  270. package/dist/esm/models/mappers.js +1802 -1134
  271. package/dist/esm/models/mappers.js.map +1 -1
  272. package/dist/esm/models/parameters.d.ts +3 -0
  273. package/dist/esm/models/parameters.d.ts.map +1 -1
  274. package/dist/esm/models/parameters.js +33 -8
  275. package/dist/esm/models/parameters.js.map +1 -1
  276. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -1
  277. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +48 -60
  278. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  279. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -1
  280. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +48 -60
  281. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  282. package/dist/esm/operations/databaseMigrationsSqlDb.d.ts +21 -1
  283. package/dist/esm/operations/databaseMigrationsSqlDb.d.ts.map +1 -1
  284. package/dist/esm/operations/databaseMigrationsSqlDb.js +137 -31
  285. package/dist/esm/operations/databaseMigrationsSqlDb.js.map +1 -1
  286. package/dist/esm/operations/databaseMigrationsSqlMi.d.ts +19 -1
  287. package/dist/esm/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  288. package/dist/esm/operations/databaseMigrationsSqlMi.js +127 -31
  289. package/dist/esm/operations/databaseMigrationsSqlMi.js.map +1 -1
  290. package/dist/esm/operations/databaseMigrationsSqlVm.d.ts +19 -1
  291. package/dist/esm/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  292. package/dist/esm/operations/databaseMigrationsSqlVm.js +127 -31
  293. package/dist/esm/operations/databaseMigrationsSqlVm.js.map +1 -1
  294. package/dist/esm/operations/files.d.ts.map +1 -1
  295. package/dist/esm/operations/files.js +25 -47
  296. package/dist/esm/operations/files.js.map +1 -1
  297. package/dist/esm/operations/index.d.ts.map +1 -1
  298. package/dist/esm/operations/index.js +4 -7
  299. package/dist/esm/operations/index.js.map +1 -1
  300. package/dist/esm/operations/migrationServices.d.ts.map +1 -1
  301. package/dist/esm/operations/migrationServices.js +105 -154
  302. package/dist/esm/operations/migrationServices.js.map +1 -1
  303. package/dist/esm/operations/operations.d.ts.map +1 -1
  304. package/dist/esm/operations/operations.js +25 -47
  305. package/dist/esm/operations/operations.js.map +1 -1
  306. package/dist/esm/operations/projects.d.ts.map +1 -1
  307. package/dist/esm/operations/projects.js +25 -47
  308. package/dist/esm/operations/projects.js.map +1 -1
  309. package/dist/esm/operations/resourceSkus.d.ts.map +1 -1
  310. package/dist/esm/operations/resourceSkus.js +26 -52
  311. package/dist/esm/operations/resourceSkus.js.map +1 -1
  312. package/dist/esm/operations/serviceTasks.d.ts.map +1 -1
  313. package/dist/esm/operations/serviceTasks.js +25 -47
  314. package/dist/esm/operations/serviceTasks.js.map +1 -1
  315. package/dist/esm/operations/services.d.ts.map +1 -1
  316. package/dist/esm/operations/services.js +128 -171
  317. package/dist/esm/operations/services.js.map +1 -1
  318. package/dist/esm/operations/sqlMigrationServices.d.ts.map +1 -1
  319. package/dist/esm/operations/sqlMigrationServices.js +105 -154
  320. package/dist/esm/operations/sqlMigrationServices.js.map +1 -1
  321. package/dist/esm/operations/tasks.d.ts.map +1 -1
  322. package/dist/esm/operations/tasks.js +25 -47
  323. package/dist/esm/operations/tasks.js.map +1 -1
  324. package/dist/esm/operations/usages.d.ts.map +1 -1
  325. package/dist/esm/operations/usages.js +26 -52
  326. package/dist/esm/operations/usages.js.map +1 -1
  327. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -1
  328. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +2 -7
  329. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  330. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -1
  331. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +2 -7
  332. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  333. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.d.ts +21 -1
  334. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -1
  335. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.js +2 -7
  336. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -1
  337. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.d.ts +19 -1
  338. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  339. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.js +2 -7
  340. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  341. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.d.ts +19 -1
  342. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  343. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.js +2 -7
  344. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  345. package/dist/esm/operationsInterfaces/files.d.ts.map +1 -1
  346. package/dist/esm/operationsInterfaces/files.js +2 -7
  347. package/dist/esm/operationsInterfaces/files.js.map +1 -1
  348. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  349. package/dist/esm/operationsInterfaces/index.js +4 -7
  350. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  351. package/dist/esm/operationsInterfaces/migrationServices.d.ts.map +1 -1
  352. package/dist/esm/operationsInterfaces/migrationServices.js +2 -7
  353. package/dist/esm/operationsInterfaces/migrationServices.js.map +1 -1
  354. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  355. package/dist/esm/operationsInterfaces/operations.js +2 -7
  356. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  357. package/dist/esm/operationsInterfaces/projects.d.ts.map +1 -1
  358. package/dist/esm/operationsInterfaces/projects.js +2 -7
  359. package/dist/esm/operationsInterfaces/projects.js.map +1 -1
  360. package/dist/esm/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  361. package/dist/esm/operationsInterfaces/resourceSkus.js +2 -7
  362. package/dist/esm/operationsInterfaces/resourceSkus.js.map +1 -1
  363. package/dist/esm/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  364. package/dist/esm/operationsInterfaces/serviceTasks.js +2 -7
  365. package/dist/esm/operationsInterfaces/serviceTasks.js.map +1 -1
  366. package/dist/esm/operationsInterfaces/services.d.ts.map +1 -1
  367. package/dist/esm/operationsInterfaces/services.js +2 -7
  368. package/dist/esm/operationsInterfaces/services.js.map +1 -1
  369. package/dist/esm/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  370. package/dist/esm/operationsInterfaces/sqlMigrationServices.js +2 -7
  371. package/dist/esm/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  372. package/dist/esm/operationsInterfaces/tasks.d.ts.map +1 -1
  373. package/dist/esm/operationsInterfaces/tasks.js +2 -7
  374. package/dist/esm/operationsInterfaces/tasks.js.map +1 -1
  375. package/dist/esm/operationsInterfaces/usages.d.ts.map +1 -1
  376. package/dist/esm/operationsInterfaces/usages.js +2 -7
  377. package/dist/esm/operationsInterfaces/usages.js.map +1 -1
  378. package/dist/esm/pagingHelper.d.ts.map +1 -1
  379. package/dist/esm/pagingHelper.js +4 -11
  380. package/dist/esm/pagingHelper.js.map +1 -1
  381. package/dist/react-native/dataMigrationManagementClient.d.ts.map +1 -1
  382. package/dist/react-native/dataMigrationManagementClient.js +34 -16
  383. package/dist/react-native/dataMigrationManagementClient.js.map +1 -1
  384. package/dist/react-native/index.d.ts.map +1 -1
  385. package/dist/react-native/index.js +4 -7
  386. package/dist/react-native/index.js.map +1 -1
  387. package/dist/react-native/lroImpl.d.ts.map +1 -1
  388. package/dist/react-native/lroImpl.js +9 -10
  389. package/dist/react-native/lroImpl.js.map +1 -1
  390. package/dist/react-native/models/index.d.ts +120 -155
  391. package/dist/react-native/models/index.d.ts.map +1 -1
  392. package/dist/react-native/models/index.js +2 -7
  393. package/dist/react-native/models/index.js.map +1 -1
  394. package/dist/react-native/models/mappers.d.ts +8 -12
  395. package/dist/react-native/models/mappers.d.ts.map +1 -1
  396. package/dist/react-native/models/mappers.js +1802 -1134
  397. package/dist/react-native/models/mappers.js.map +1 -1
  398. package/dist/react-native/models/parameters.d.ts +3 -0
  399. package/dist/react-native/models/parameters.d.ts.map +1 -1
  400. package/dist/react-native/models/parameters.js +33 -8
  401. package/dist/react-native/models/parameters.js.map +1 -1
  402. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -1
  403. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +48 -60
  404. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  405. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -1
  406. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +48 -60
  407. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  408. package/dist/react-native/operations/databaseMigrationsSqlDb.d.ts +21 -1
  409. package/dist/react-native/operations/databaseMigrationsSqlDb.d.ts.map +1 -1
  410. package/dist/react-native/operations/databaseMigrationsSqlDb.js +137 -31
  411. package/dist/react-native/operations/databaseMigrationsSqlDb.js.map +1 -1
  412. package/dist/react-native/operations/databaseMigrationsSqlMi.d.ts +19 -1
  413. package/dist/react-native/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  414. package/dist/react-native/operations/databaseMigrationsSqlMi.js +127 -31
  415. package/dist/react-native/operations/databaseMigrationsSqlMi.js.map +1 -1
  416. package/dist/react-native/operations/databaseMigrationsSqlVm.d.ts +19 -1
  417. package/dist/react-native/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  418. package/dist/react-native/operations/databaseMigrationsSqlVm.js +127 -31
  419. package/dist/react-native/operations/databaseMigrationsSqlVm.js.map +1 -1
  420. package/dist/react-native/operations/files.d.ts.map +1 -1
  421. package/dist/react-native/operations/files.js +25 -47
  422. package/dist/react-native/operations/files.js.map +1 -1
  423. package/dist/react-native/operations/index.d.ts.map +1 -1
  424. package/dist/react-native/operations/index.js +4 -7
  425. package/dist/react-native/operations/index.js.map +1 -1
  426. package/dist/react-native/operations/migrationServices.d.ts.map +1 -1
  427. package/dist/react-native/operations/migrationServices.js +105 -154
  428. package/dist/react-native/operations/migrationServices.js.map +1 -1
  429. package/dist/react-native/operations/operations.d.ts.map +1 -1
  430. package/dist/react-native/operations/operations.js +25 -47
  431. package/dist/react-native/operations/operations.js.map +1 -1
  432. package/dist/react-native/operations/projects.d.ts.map +1 -1
  433. package/dist/react-native/operations/projects.js +25 -47
  434. package/dist/react-native/operations/projects.js.map +1 -1
  435. package/dist/react-native/operations/resourceSkus.d.ts.map +1 -1
  436. package/dist/react-native/operations/resourceSkus.js +26 -52
  437. package/dist/react-native/operations/resourceSkus.js.map +1 -1
  438. package/dist/react-native/operations/serviceTasks.d.ts.map +1 -1
  439. package/dist/react-native/operations/serviceTasks.js +25 -47
  440. package/dist/react-native/operations/serviceTasks.js.map +1 -1
  441. package/dist/react-native/operations/services.d.ts.map +1 -1
  442. package/dist/react-native/operations/services.js +128 -171
  443. package/dist/react-native/operations/services.js.map +1 -1
  444. package/dist/react-native/operations/sqlMigrationServices.d.ts.map +1 -1
  445. package/dist/react-native/operations/sqlMigrationServices.js +105 -154
  446. package/dist/react-native/operations/sqlMigrationServices.js.map +1 -1
  447. package/dist/react-native/operations/tasks.d.ts.map +1 -1
  448. package/dist/react-native/operations/tasks.js +25 -47
  449. package/dist/react-native/operations/tasks.js.map +1 -1
  450. package/dist/react-native/operations/usages.d.ts.map +1 -1
  451. package/dist/react-native/operations/usages.js +26 -52
  452. package/dist/react-native/operations/usages.js.map +1 -1
  453. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -1
  454. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +2 -7
  455. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -1
  456. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -1
  457. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +2 -7
  458. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -1
  459. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.d.ts +21 -1
  460. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -1
  461. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.js +2 -7
  462. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -1
  463. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.d.ts +19 -1
  464. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  465. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.js +2 -7
  466. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  467. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.d.ts +19 -1
  468. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  469. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.js +2 -7
  470. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  471. package/dist/react-native/operationsInterfaces/files.d.ts.map +1 -1
  472. package/dist/react-native/operationsInterfaces/files.js +2 -7
  473. package/dist/react-native/operationsInterfaces/files.js.map +1 -1
  474. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  475. package/dist/react-native/operationsInterfaces/index.js +4 -7
  476. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  477. package/dist/react-native/operationsInterfaces/migrationServices.d.ts.map +1 -1
  478. package/dist/react-native/operationsInterfaces/migrationServices.js +2 -7
  479. package/dist/react-native/operationsInterfaces/migrationServices.js.map +1 -1
  480. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  481. package/dist/react-native/operationsInterfaces/operations.js +2 -7
  482. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  483. package/dist/react-native/operationsInterfaces/projects.d.ts.map +1 -1
  484. package/dist/react-native/operationsInterfaces/projects.js +2 -7
  485. package/dist/react-native/operationsInterfaces/projects.js.map +1 -1
  486. package/dist/react-native/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  487. package/dist/react-native/operationsInterfaces/resourceSkus.js +2 -7
  488. package/dist/react-native/operationsInterfaces/resourceSkus.js.map +1 -1
  489. package/dist/react-native/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  490. package/dist/react-native/operationsInterfaces/serviceTasks.js +2 -7
  491. package/dist/react-native/operationsInterfaces/serviceTasks.js.map +1 -1
  492. package/dist/react-native/operationsInterfaces/services.d.ts.map +1 -1
  493. package/dist/react-native/operationsInterfaces/services.js +2 -7
  494. package/dist/react-native/operationsInterfaces/services.js.map +1 -1
  495. package/dist/react-native/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  496. package/dist/react-native/operationsInterfaces/sqlMigrationServices.js +2 -7
  497. package/dist/react-native/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  498. package/dist/react-native/operationsInterfaces/tasks.d.ts.map +1 -1
  499. package/dist/react-native/operationsInterfaces/tasks.js +2 -7
  500. package/dist/react-native/operationsInterfaces/tasks.js.map +1 -1
  501. package/dist/react-native/operationsInterfaces/usages.d.ts.map +1 -1
  502. package/dist/react-native/operationsInterfaces/usages.js +2 -7
  503. package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
  504. package/dist/react-native/pagingHelper.d.ts.map +1 -1
  505. package/dist/react-native/pagingHelper.js +4 -11
  506. package/dist/react-native/pagingHelper.js.map +1 -1
  507. package/package.json +23 -24
@@ -1,17 +1,13 @@
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
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  import * as coreClient from "@azure/core-client";
9
4
  import * as Mappers from "../models/mappers.js";
10
5
  import * as Parameters from "../models/parameters.js";
11
- import { createHttpPoller, } from "@azure/core-lro";
6
+ import { createHttpPoller } from "@azure/core-lro";
12
7
  import { createLroSpec } from "../lroImpl.js";
13
8
  /** Class containing DatabaseMigrationsSqlVm operations. */
14
9
  export class DatabaseMigrationsSqlVmImpl {
10
+ client;
15
11
  /**
16
12
  * Initialize a new instance of the class DatabaseMigrationsSqlVm class.
17
13
  * @param client Reference to the service client
@@ -44,14 +40,19 @@ export class DatabaseMigrationsSqlVmImpl {
44
40
  return this.client.sendOperationRequest(args, spec);
45
41
  };
46
42
  const sendOperationFn = async (args, spec) => {
47
- var _a;
48
43
  let currentRawResponse = undefined;
49
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
44
+ const providedCallback = args.options?.onResponse;
50
45
  const callback = (rawResponse, flatResponse) => {
51
46
  currentRawResponse = rawResponse;
52
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
47
+ providedCallback?.(rawResponse, flatResponse);
48
+ };
49
+ const updatedArgs = {
50
+ ...args,
51
+ options: {
52
+ ...args.options,
53
+ onResponse: callback,
54
+ },
53
55
  };
54
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
55
56
  const flatResponse = await directSendOperation(updatedArgs, spec);
56
57
  return {
57
58
  flatResponse,
@@ -74,8 +75,8 @@ export class DatabaseMigrationsSqlVmImpl {
74
75
  spec: createOrUpdateOperationSpec,
75
76
  });
76
77
  const poller = await createHttpPoller(lro, {
77
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
78
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
78
+ restoreFrom: options?.resumeFrom,
79
+ intervalInMs: options?.updateIntervalInMs,
79
80
  });
80
81
  await poller.poll();
81
82
  return poller;
@@ -93,6 +94,66 @@ export class DatabaseMigrationsSqlVmImpl {
93
94
  const poller = await this.beginCreateOrUpdate(resourceGroupName, sqlVirtualMachineName, targetDbName, parameters, options);
94
95
  return poller.pollUntilDone();
95
96
  }
97
+ /**
98
+ * Delete Database Migration resource.
99
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
100
+ * value from the Azure Resource Manager API or the portal.
101
+ * @param sqlVirtualMachineName
102
+ * @param targetDbName The name of the target database.
103
+ * @param options The options parameters.
104
+ */
105
+ async beginDelete(resourceGroupName, sqlVirtualMachineName, targetDbName, options) {
106
+ const directSendOperation = async (args, spec) => {
107
+ return this.client.sendOperationRequest(args, spec);
108
+ };
109
+ const sendOperationFn = async (args, spec) => {
110
+ let currentRawResponse = undefined;
111
+ const providedCallback = args.options?.onResponse;
112
+ const callback = (rawResponse, flatResponse) => {
113
+ currentRawResponse = rawResponse;
114
+ providedCallback?.(rawResponse, flatResponse);
115
+ };
116
+ const updatedArgs = {
117
+ ...args,
118
+ options: {
119
+ ...args.options,
120
+ onResponse: callback,
121
+ },
122
+ };
123
+ const flatResponse = await directSendOperation(updatedArgs, spec);
124
+ return {
125
+ flatResponse,
126
+ rawResponse: {
127
+ statusCode: currentRawResponse.status,
128
+ body: currentRawResponse.parsedBody,
129
+ headers: currentRawResponse.headers.toJSON(),
130
+ },
131
+ };
132
+ };
133
+ const lro = createLroSpec({
134
+ sendOperationFn,
135
+ args: { resourceGroupName, sqlVirtualMachineName, targetDbName, options },
136
+ spec: deleteOperationSpec,
137
+ });
138
+ const poller = await createHttpPoller(lro, {
139
+ restoreFrom: options?.resumeFrom,
140
+ intervalInMs: options?.updateIntervalInMs,
141
+ });
142
+ await poller.poll();
143
+ return poller;
144
+ }
145
+ /**
146
+ * Delete Database Migration resource.
147
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
148
+ * value from the Azure Resource Manager API or the portal.
149
+ * @param sqlVirtualMachineName
150
+ * @param targetDbName The name of the target database.
151
+ * @param options The options parameters.
152
+ */
153
+ async beginDeleteAndWait(resourceGroupName, sqlVirtualMachineName, targetDbName, options) {
154
+ const poller = await this.beginDelete(resourceGroupName, sqlVirtualMachineName, targetDbName, options);
155
+ return poller.pollUntilDone();
156
+ }
96
157
  /**
97
158
  * Stop in-progress database migration to SQL VM.
98
159
  * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
@@ -107,14 +168,19 @@ export class DatabaseMigrationsSqlVmImpl {
107
168
  return this.client.sendOperationRequest(args, spec);
108
169
  };
109
170
  const sendOperationFn = async (args, spec) => {
110
- var _a;
111
171
  let currentRawResponse = undefined;
112
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
172
+ const providedCallback = args.options?.onResponse;
113
173
  const callback = (rawResponse, flatResponse) => {
114
174
  currentRawResponse = rawResponse;
115
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
175
+ providedCallback?.(rawResponse, flatResponse);
176
+ };
177
+ const updatedArgs = {
178
+ ...args,
179
+ options: {
180
+ ...args.options,
181
+ onResponse: callback,
182
+ },
116
183
  };
117
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
118
184
  const flatResponse = await directSendOperation(updatedArgs, spec);
119
185
  return {
120
186
  flatResponse,
@@ -137,8 +203,8 @@ export class DatabaseMigrationsSqlVmImpl {
137
203
  spec: cancelOperationSpec,
138
204
  });
139
205
  const poller = await createHttpPoller(lro, {
140
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
141
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
206
+ restoreFrom: options?.resumeFrom,
207
+ intervalInMs: options?.updateIntervalInMs,
142
208
  });
143
209
  await poller.poll();
144
210
  return poller;
@@ -170,14 +236,19 @@ export class DatabaseMigrationsSqlVmImpl {
170
236
  return this.client.sendOperationRequest(args, spec);
171
237
  };
172
238
  const sendOperationFn = async (args, spec) => {
173
- var _a;
174
239
  let currentRawResponse = undefined;
175
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
240
+ const providedCallback = args.options?.onResponse;
176
241
  const callback = (rawResponse, flatResponse) => {
177
242
  currentRawResponse = rawResponse;
178
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
243
+ providedCallback?.(rawResponse, flatResponse);
244
+ };
245
+ const updatedArgs = {
246
+ ...args,
247
+ options: {
248
+ ...args.options,
249
+ onResponse: callback,
250
+ },
179
251
  };
180
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
181
252
  const flatResponse = await directSendOperation(updatedArgs, spec);
182
253
  return {
183
254
  flatResponse,
@@ -200,8 +271,8 @@ export class DatabaseMigrationsSqlVmImpl {
200
271
  spec: cutoverOperationSpec,
201
272
  });
202
273
  const poller = await createHttpPoller(lro, {
203
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
204
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
274
+ restoreFrom: options?.resumeFrom,
275
+ intervalInMs: options?.updateIntervalInMs,
205
276
  });
206
277
  await poller.poll();
207
278
  return poller;
@@ -231,11 +302,7 @@ const getOperationSpec = {
231
302
  },
232
303
  default: {},
233
304
  },
234
- queryParameters: [
235
- Parameters.apiVersion,
236
- Parameters.migrationOperationId,
237
- Parameters.expand,
238
- ],
305
+ queryParameters: [Parameters.apiVersion, Parameters.migrationOperationId, Parameters.expand],
239
306
  urlParameters: [
240
307
  Parameters.$host,
241
308
  Parameters.resourceGroupName,
@@ -277,6 +344,35 @@ const createOrUpdateOperationSpec = {
277
344
  mediaType: "json",
278
345
  serializer,
279
346
  };
347
+ const deleteOperationSpec = {
348
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
349
+ httpMethod: "DELETE",
350
+ responses: {
351
+ 200: {
352
+ bodyMapper: Mappers.DatabaseMigrationSqlVm,
353
+ },
354
+ 201: {
355
+ bodyMapper: Mappers.DatabaseMigrationSqlVm,
356
+ },
357
+ 202: {
358
+ bodyMapper: Mappers.DatabaseMigrationSqlVm,
359
+ },
360
+ 204: {
361
+ bodyMapper: Mappers.DatabaseMigrationSqlVm,
362
+ },
363
+ default: {},
364
+ },
365
+ queryParameters: [Parameters.apiVersion, Parameters.force],
366
+ urlParameters: [
367
+ Parameters.$host,
368
+ Parameters.resourceGroupName,
369
+ Parameters.subscriptionId,
370
+ Parameters.targetDbName,
371
+ Parameters.sqlVirtualMachineName,
372
+ ],
373
+ headerParameters: [Parameters.accept],
374
+ serializer,
375
+ };
280
376
  const cancelOperationSpec = {
281
377
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel",
282
378
  httpMethod: "POST",
@@ -1 +1 @@
1
- {"version":3,"file":"databaseMigrationsSqlVm.js","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlVm.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB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tO,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9D,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IAC1C,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,iOAAiO;IACvO,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9D,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IAC1C,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { DatabaseMigrationsSqlVm } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DatabaseMigrationsSqlVmGetOptionalParams,\n DatabaseMigrationsSqlVmGetResponse,\n DatabaseMigrationSqlVm,\n DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams,\n DatabaseMigrationsSqlVmCreateOrUpdateResponse,\n MigrationOperationInput,\n DatabaseMigrationsSqlVmCancelOptionalParams,\n DatabaseMigrationsSqlVmCutoverOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing DatabaseMigrationsSqlVm operations. */\nexport class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class DatabaseMigrationsSqlVm class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the specified database migration for a given SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n options?: DatabaseMigrationsSqlVmGetOptionalParams,\n ): Promise<DatabaseMigrationsSqlVmGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlVirtualMachineName, targetDbName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new database migration to a given SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: DatabaseMigrationSqlVm,\n options?: DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DatabaseMigrationsSqlVmCreateOrUpdateResponse>,\n DatabaseMigrationsSqlVmCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DatabaseMigrationsSqlVmCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DatabaseMigrationsSqlVmCreateOrUpdateResponse,\n OperationState<DatabaseMigrationsSqlVmCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new database migration to a given SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: DatabaseMigrationSqlVm,\n options?: DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams,\n ): Promise<DatabaseMigrationsSqlVmCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Stop in-progress database migration to SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Migration Operation Input\n * @param options The options parameters.\n */\n async beginCancel(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlVmCancelOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n },\n spec: cancelOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Stop in-progress database migration to SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Migration Operation Input\n * @param options The options parameters.\n */\n async beginCancelAndWait(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlVmCancelOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCancel(\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Initiate cutover for in-progress online database migration to SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Migration Operation Input\n * @param options The options parameters.\n */\n async beginCutover(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlVmCutoverOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n },\n spec: cutoverOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Initiate cutover for in-progress online database migration to SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Migration Operation Input\n * @param options The options parameters.\n */\n async beginCutoverAndWait(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlVmCutoverOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCutover(\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n default: {},\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.migrationOperationId,\n Parameters.expand,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 201: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 202: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 204: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n default: {},\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cutoverOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"databaseMigrationsSqlVm.js","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlVm.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAoC,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IACrB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,qBAA6B,EAC7B,YAAoB,EACpB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,YAAY,EAAE,OAAO,EAAE,EACnE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,mBAAmB,CACvB,iBAAyB,EACzB,qBAA6B,EAC7B,YAAoB,EACpB,UAAkC,EAClC,OAA6D;QAO7D,MAAM,mBAAmB,GAAG,KAAK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,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IAC1C,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { DatabaseMigrationsSqlVm } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DatabaseMigrationsSqlVmGetOptionalParams,\n DatabaseMigrationsSqlVmGetResponse,\n DatabaseMigrationSqlVm,\n DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams,\n DatabaseMigrationsSqlVmCreateOrUpdateResponse,\n DatabaseMigrationsSqlVmDeleteOptionalParams,\n DatabaseMigrationsSqlVmDeleteResponse,\n MigrationOperationInput,\n DatabaseMigrationsSqlVmCancelOptionalParams,\n DatabaseMigrationsSqlVmCutoverOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing DatabaseMigrationsSqlVm operations. */\nexport class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class DatabaseMigrationsSqlVm class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the specified database migration for a given SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n options?: DatabaseMigrationsSqlVmGetOptionalParams,\n ): Promise<DatabaseMigrationsSqlVmGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, sqlVirtualMachineName, targetDbName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new database migration to a given SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: DatabaseMigrationSqlVm,\n options?: DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DatabaseMigrationsSqlVmCreateOrUpdateResponse>,\n DatabaseMigrationsSqlVmCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DatabaseMigrationsSqlVmCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DatabaseMigrationsSqlVmCreateOrUpdateResponse,\n OperationState<DatabaseMigrationsSqlVmCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new database migration to a given SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: DatabaseMigrationSqlVm,\n options?: DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams,\n ): Promise<DatabaseMigrationsSqlVmCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete Database Migration resource.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n options?: DatabaseMigrationsSqlVmDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DatabaseMigrationsSqlVmDeleteResponse>,\n DatabaseMigrationsSqlVmDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DatabaseMigrationsSqlVmDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, sqlVirtualMachineName, targetDbName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n DatabaseMigrationsSqlVmDeleteResponse,\n OperationState<DatabaseMigrationsSqlVmDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete Database Migration resource.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n options?: DatabaseMigrationsSqlVmDeleteOptionalParams,\n ): Promise<DatabaseMigrationsSqlVmDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Stop in-progress database migration to SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Migration Operation Input\n * @param options The options parameters.\n */\n async beginCancel(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlVmCancelOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n },\n spec: cancelOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Stop in-progress database migration to SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Migration Operation Input\n * @param options The options parameters.\n */\n async beginCancelAndWait(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlVmCancelOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCancel(\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Initiate cutover for in-progress online database migration to SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Migration Operation Input\n * @param options The options parameters.\n */\n async beginCutover(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlVmCutoverOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n },\n spec: cutoverOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Initiate cutover for in-progress online database migration to SQL VM.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param sqlVirtualMachineName\n * @param targetDbName The name of the target database.\n * @param parameters Migration Operation Input\n * @param options The options parameters.\n */\n async beginCutoverAndWait(\n resourceGroupName: string,\n sqlVirtualMachineName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlVmCutoverOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCutover(\n resourceGroupName,\n sqlVirtualMachineName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.migrationOperationId, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 201: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 202: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 204: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n default: {},\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 201: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 202: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n 204: {\n bodyMapper: Mappers.DatabaseMigrationSqlVm,\n },\n default: {},\n },\n queryParameters: [Parameters.apiVersion, Parameters.force],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cutoverOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.sqlVirtualMachineName,\n ],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/operations/files.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAIzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,WAAW,EAEX,uBAAuB,EAEvB,sBAAsB,EACtB,gBAAgB,EAChB,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,4BAA4B,EAC5B,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAG5B,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;;;;;OAOG;IACI,IAAI,CACT,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,uBAAuB,GAChC,0BAA0B,CAAC,WAAW,CAAC;YA6B3B,cAAc;YA+Bd,aAAa;IAgB5B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;;OAQG;IACH,GAAG,CACD,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB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AW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;;OAQG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;;;;;OAQG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,iBAAiB,CAAC;IAO7B;;;;;;;OAOG;IACH,SAAS,CACP,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAOlC;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
@@ -1,11 +1,5 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
9
3
  import { setContinuationToken } from "../pagingHelper.js";
10
4
  import * as coreClient from "@azure/core-client";
11
5
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +7,7 @@ import * as Parameters from "../models/parameters.js";
13
7
  /// <reference lib="esnext.asynciterable" />
14
8
  /** Class containing Files operations. */
15
9
  export class FilesImpl {
10
+ client;
16
11
  /**
17
12
  * Initialize a new instance of the class Files class.
18
13
  * @param client Reference to the service client
@@ -38,52 +33,35 @@ export class FilesImpl {
38
33
  return this;
39
34
  },
40
35
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
36
+ if (settings?.maxPageSize) {
42
37
  throw new Error("maxPageSize is not supported by this operation.");
43
38
  }
44
39
  return this.listPagingPage(groupName, serviceName, projectName, options, settings);
45
40
  },
46
41
  };
47
42
  }
48
- listPagingPage(groupName, serviceName, projectName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._list(groupName, serviceName, projectName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listNext(groupName, serviceName, projectName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
43
+ async *listPagingPage(groupName, serviceName, projectName, options, settings) {
44
+ let result;
45
+ let continuationToken = settings?.continuationToken;
46
+ if (!continuationToken) {
47
+ result = await this._list(groupName, serviceName, projectName, options);
48
+ let page = result.value || [];
49
+ continuationToken = result.nextLink;
50
+ setContinuationToken(page, continuationToken);
51
+ yield page;
52
+ }
53
+ while (continuationToken) {
54
+ result = await this._listNext(groupName, serviceName, projectName, continuationToken, options);
55
+ continuationToken = result.nextLink;
56
+ let page = result.value || [];
57
+ setContinuationToken(page, continuationToken);
58
+ yield page;
59
+ }
67
60
  }
68
- listPagingAll(groupName, serviceName, projectName, options) {
69
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listPagingPage(groupName, serviceName, projectName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
61
+ async *listPagingAll(groupName, serviceName, projectName, options) {
62
+ for await (const page of this.listPagingPage(groupName, serviceName, projectName, options)) {
63
+ yield* page;
64
+ }
87
65
  }
88
66
  /**
89
67
  * The project resource is a nested resource representing a stored migration project. This method
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/operations/files.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAqBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,SAAiB,EACjB,WAAmB,EACnB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,WAAW,EACX,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAA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E,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Files } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport {\n ProjectFile,\n FilesListNextOptionalParams,\n FilesListOptionalParams,\n FilesListResponse,\n FilesGetOptionalParams,\n FilesGetResponse,\n FilesCreateOrUpdateOptionalParams,\n FilesCreateOrUpdateResponse,\n FilesDeleteOptionalParams,\n FilesUpdateOptionalParams,\n FilesUpdateResponse,\n FilesReadOptionalParams,\n FilesReadResponse,\n FilesReadWriteOptionalParams,\n FilesReadWriteResponse,\n FilesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Files operations. */\nexport class FilesImpl implements Files {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class Files class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * The project resource is a nested resource representing a stored migration project. This method\n * returns a list of files owned by a project resource.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param options The options parameters.\n */\n public list(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: FilesListOptionalParams,\n ): PagedAsyncIterableIterator<ProjectFile> {\n const iter = this.listPagingAll(\n groupName,\n serviceName,\n projectName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n groupName,\n serviceName,\n projectName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: FilesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProjectFile[]> {\n let result: FilesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(groupName, serviceName, projectName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n groupName,\n serviceName,\n projectName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: FilesListOptionalParams,\n ): AsyncIterableIterator<ProjectFile> {\n for await (const page of this.listPagingPage(\n groupName,\n serviceName,\n projectName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * The project resource is a nested resource representing a stored migration project. This method\n * returns a list of files owned by a project resource.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param options The options parameters.\n */\n private _list(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: FilesListOptionalParams,\n ): Promise<FilesListResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, options },\n listOperationSpec,\n );\n }\n\n /**\n * The files resource is a nested, proxy-only resource representing a file stored under the project\n * resource. This method retrieves information about a file.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param options The options parameters.\n */\n get(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n options?: FilesGetOptionalParams,\n ): Promise<FilesGetResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The PUT method creates a new file or updates an existing one.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param parameters Information about the file\n * @param options The options parameters.\n */\n createOrUpdate(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n parameters: ProjectFile,\n options?: FilesCreateOrUpdateOptionalParams,\n ): Promise<FilesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * This method deletes a file.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param options The options parameters.\n */\n delete(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n options?: FilesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * This method updates an existing file.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param parameters Information about the file\n * @param options The options parameters.\n */\n update(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n parameters: ProjectFile,\n options?: FilesUpdateOptionalParams,\n ): Promise<FilesUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * This method is used for requesting storage information using which contents of the file can be\n * downloaded.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param options The options parameters.\n */\n read(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n options?: FilesReadOptionalParams,\n ): Promise<FilesReadResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, options },\n readOperationSpec,\n );\n }\n\n /**\n * This method is used for requesting information for reading and writing the file content.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param options The options parameters.\n */\n readWrite(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n options?: FilesReadWriteOptionalParams,\n ): Promise<FilesReadWriteResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, options },\n readWriteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n groupName: string,\n serviceName: string,\n projectName: string,\n nextLink: string,\n options?: FilesListNextOptionalParams,\n ): Promise<FilesListNextResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectFile,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectFile,\n },\n 201: {\n bodyMapper: Mappers.ProjectFile,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectFile,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst readOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileStorageInfo,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst readWriteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileStorageInfo,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/operations/files.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAqBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,SAAiB,EACjB,WAAmB,EACnB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QAC9E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAA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OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Files } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport {\n ProjectFile,\n FilesListNextOptionalParams,\n FilesListOptionalParams,\n FilesListResponse,\n FilesGetOptionalParams,\n FilesGetResponse,\n FilesCreateOrUpdateOptionalParams,\n FilesCreateOrUpdateResponse,\n FilesDeleteOptionalParams,\n FilesUpdateOptionalParams,\n FilesUpdateResponse,\n FilesReadOptionalParams,\n FilesReadResponse,\n FilesReadWriteOptionalParams,\n FilesReadWriteResponse,\n FilesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Files operations. */\nexport class FilesImpl implements Files {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class Files class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * The project resource is a nested resource representing a stored migration project. This method\n * returns a list of files owned by a project resource.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param options The options parameters.\n */\n public list(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: FilesListOptionalParams,\n ): PagedAsyncIterableIterator<ProjectFile> {\n const iter = this.listPagingAll(groupName, serviceName, projectName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(groupName, serviceName, projectName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: FilesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProjectFile[]> {\n let result: FilesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(groupName, serviceName, projectName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n groupName,\n serviceName,\n projectName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: FilesListOptionalParams,\n ): AsyncIterableIterator<ProjectFile> {\n for await (const page of this.listPagingPage(groupName, serviceName, projectName, options)) {\n yield* page;\n }\n }\n\n /**\n * The project resource is a nested resource representing a stored migration project. This method\n * returns a list of files owned by a project resource.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param options The options parameters.\n */\n private _list(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: FilesListOptionalParams,\n ): Promise<FilesListResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, options },\n listOperationSpec,\n );\n }\n\n /**\n * The files resource is a nested, proxy-only resource representing a file stored under the project\n * resource. This method retrieves information about a file.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param options The options parameters.\n */\n get(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n options?: FilesGetOptionalParams,\n ): Promise<FilesGetResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The PUT method creates a new file or updates an existing one.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param parameters Information about the file\n * @param options The options parameters.\n */\n createOrUpdate(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n parameters: ProjectFile,\n options?: FilesCreateOrUpdateOptionalParams,\n ): Promise<FilesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * This method deletes a file.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param options The options parameters.\n */\n delete(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n options?: FilesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * This method updates an existing file.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param parameters Information about the file\n * @param options The options parameters.\n */\n update(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n parameters: ProjectFile,\n options?: FilesUpdateOptionalParams,\n ): Promise<FilesUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * This method is used for requesting storage information using which contents of the file can be\n * downloaded.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param options The options parameters.\n */\n read(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n options?: FilesReadOptionalParams,\n ): Promise<FilesReadResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, options },\n readOperationSpec,\n );\n }\n\n /**\n * This method is used for requesting information for reading and writing the file content.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param fileName Name of the File\n * @param options The options parameters.\n */\n readWrite(\n groupName: string,\n serviceName: string,\n projectName: string,\n fileName: string,\n options?: FilesReadWriteOptionalParams,\n ): Promise<FilesReadWriteResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, fileName, options },\n readWriteOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n groupName: string,\n serviceName: string,\n projectName: string,\n nextLink: string,\n options?: FilesListNextOptionalParams,\n ): Promise<FilesListNextResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectFile,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectFile,\n },\n 201: {\n bodyMapper: Mappers.ProjectFile,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectFile,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst readOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileStorageInfo,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst readWriteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileStorageInfo,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.fileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAMA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -1,10 +1,7 @@
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
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ // Code generated by Microsoft (R) AutoRest Code Generator.
4
+ // Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
5
  export * from "./databaseMigrationsMongoToCosmosDbRUMongo.js";
9
6
  export * from "./databaseMigrationsMongoToCosmosDbvCoreMongo.js";
10
7
  export * from "./databaseMigrationsSqlDb.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./databaseMigrationsMongoToCosmosDbRUMongo.js\";\nexport * from \"./databaseMigrationsMongoToCosmosDbvCoreMongo.js\";\nexport * from \"./databaseMigrationsSqlDb.js\";\nexport * from \"./databaseMigrationsSqlMi.js\";\nexport * from \"./databaseMigrationsSqlVm.js\";\nexport * from \"./operations.js\";\nexport * from \"./migrationServices.js\";\nexport * from \"./sqlMigrationServices.js\";\nexport * from \"./resourceSkus.js\";\nexport * from \"./services.js\";\nexport * from \"./tasks.js\";\nexport * from \"./serviceTasks.js\";\nexport * from \"./projects.js\";\nexport * from \"./usages.js\";\nexport * from \"./files.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nexport * from \"./databaseMigrationsMongoToCosmosDbRUMongo.js\";\nexport * from \"./databaseMigrationsMongoToCosmosDbvCoreMongo.js\";\nexport * from \"./databaseMigrationsSqlDb.js\";\nexport * from \"./databaseMigrationsSqlMi.js\";\nexport * from \"./databaseMigrationsSqlVm.js\";\nexport * from \"./operations.js\";\nexport * from \"./migrationServices.js\";\nexport * from \"./sqlMigrationServices.js\";\nexport * from \"./resourceSkus.js\";\nexport * from \"./services.js\";\nexport * from \"./tasks.js\";\nexport * from \"./serviceTasks.js\";\nexport * from \"./projects.js\";\nexport * from \"./usages.js\";\nexport * from \"./files.js\";\n"]}