@azure/arm-datamigration 3.0.0-alpha.20250721.1 → 3.0.0-alpha.20250730.1

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 (502) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +0 -3
  3. package/dist/browser/dataMigrationManagementClient.d.ts +5 -1
  4. package/dist/browser/dataMigrationManagementClient.d.ts.map +1 -1
  5. package/dist/browser/dataMigrationManagementClient.js +19 -9
  6. package/dist/browser/dataMigrationManagementClient.js.map +1 -1
  7. package/dist/browser/lroImpl.d.ts +6 -11
  8. package/dist/browser/lroImpl.d.ts.map +1 -1
  9. package/dist/browser/lroImpl.js +16 -24
  10. package/dist/browser/lroImpl.js.map +1 -1
  11. package/dist/browser/models/index.d.ts +968 -216
  12. package/dist/browser/models/index.d.ts.map +1 -1
  13. package/dist/browser/models/index.js +52 -8
  14. package/dist/browser/models/index.js.map +1 -1
  15. package/dist/browser/models/mappers.d.ts +47 -14
  16. package/dist/browser/models/mappers.d.ts.map +1 -1
  17. package/dist/browser/models/mappers.js +5228 -4055
  18. package/dist/browser/models/mappers.js.map +1 -1
  19. package/dist/browser/models/parameters.d.ts +21 -12
  20. package/dist/browser/models/parameters.d.ts.map +1 -1
  21. package/dist/browser/models/parameters.js +184 -110
  22. package/dist/browser/models/parameters.js.map +1 -1
  23. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
  24. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  25. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +363 -0
  26. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  27. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
  28. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  29. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +363 -0
  30. package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  31. package/dist/browser/operations/databaseMigrationsSqlDb.d.ts +81 -0
  32. package/dist/browser/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
  33. package/dist/browser/operations/databaseMigrationsSqlDb.js +319 -0
  34. package/dist/browser/operations/databaseMigrationsSqlDb.js.map +1 -0
  35. package/dist/browser/operations/databaseMigrationsSqlMi.d.ts +11 -11
  36. package/dist/browser/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  37. package/dist/browser/operations/databaseMigrationsSqlMi.js +89 -77
  38. package/dist/browser/operations/databaseMigrationsSqlMi.js.map +1 -1
  39. package/dist/browser/operations/databaseMigrationsSqlVm.d.ts +11 -11
  40. package/dist/browser/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  41. package/dist/browser/operations/databaseMigrationsSqlVm.js +89 -77
  42. package/dist/browser/operations/databaseMigrationsSqlVm.js.map +1 -1
  43. package/dist/browser/operations/files.js +43 -44
  44. package/dist/browser/operations/files.js.map +1 -1
  45. package/dist/browser/operations/index.d.ts +4 -0
  46. package/dist/browser/operations/index.d.ts.map +1 -1
  47. package/dist/browser/operations/index.js +4 -0
  48. package/dist/browser/operations/index.js.map +1 -1
  49. package/dist/browser/operations/migrationServices.d.ts +144 -0
  50. package/dist/browser/operations/migrationServices.d.ts.map +1 -0
  51. package/dist/browser/operations/migrationServices.js +640 -0
  52. package/dist/browser/operations/migrationServices.js.map +1 -0
  53. package/dist/browser/operations/operations.js +7 -8
  54. package/dist/browser/operations/operations.js.map +1 -1
  55. package/dist/browser/operations/projects.js +33 -34
  56. package/dist/browser/operations/projects.js.map +1 -1
  57. package/dist/browser/operations/resourceSkus.d.ts +2 -2
  58. package/dist/browser/operations/resourceSkus.js +12 -13
  59. package/dist/browser/operations/resourceSkus.js.map +1 -1
  60. package/dist/browser/operations/serviceTasks.d.ts +16 -13
  61. package/dist/browser/operations/serviceTasks.d.ts.map +1 -1
  62. package/dist/browser/operations/serviceTasks.js +55 -53
  63. package/dist/browser/operations/serviceTasks.js.map +1 -1
  64. package/dist/browser/operations/services.d.ts +59 -58
  65. package/dist/browser/operations/services.d.ts.map +1 -1
  66. package/dist/browser/operations/services.js +204 -186
  67. package/dist/browser/operations/services.js.map +1 -1
  68. package/dist/browser/operations/sqlMigrationServices.d.ts +13 -12
  69. package/dist/browser/operations/sqlMigrationServices.d.ts.map +1 -1
  70. package/dist/browser/operations/sqlMigrationServices.js +116 -106
  71. package/dist/browser/operations/sqlMigrationServices.js.map +1 -1
  72. package/dist/browser/operations/tasks.d.ts +20 -20
  73. package/dist/browser/operations/tasks.js +65 -66
  74. package/dist/browser/operations/tasks.js.map +1 -1
  75. package/dist/browser/operations/usages.d.ts +4 -4
  76. package/dist/browser/operations/usages.js +15 -16
  77. package/dist/browser/operations/usages.js.map +1 -1
  78. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
  79. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  80. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
  81. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  82. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
  83. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  84. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
  85. package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  86. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
  87. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
  88. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
  89. package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
  90. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
  91. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  92. package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  93. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
  94. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  95. package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  96. package/dist/browser/operationsInterfaces/files.js.map +1 -1
  97. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  98. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  99. package/dist/browser/operationsInterfaces/index.js +4 -0
  100. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  101. package/dist/browser/operationsInterfaces/migrationServices.d.ts +87 -0
  102. package/dist/browser/operationsInterfaces/migrationServices.d.ts.map +1 -0
  103. package/dist/browser/operationsInterfaces/migrationServices.js +9 -0
  104. package/dist/browser/operationsInterfaces/migrationServices.js.map +1 -0
  105. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  106. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  107. package/dist/browser/operationsInterfaces/projects.js.map +1 -1
  108. package/dist/browser/operationsInterfaces/resourceSkus.d.ts +1 -1
  109. package/dist/browser/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  110. package/dist/browser/operationsInterfaces/resourceSkus.js.map +1 -1
  111. package/dist/browser/operationsInterfaces/serviceTasks.d.ts +12 -10
  112. package/dist/browser/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  113. package/dist/browser/operationsInterfaces/serviceTasks.js.map +1 -1
  114. package/dist/browser/operationsInterfaces/services.d.ts +53 -52
  115. package/dist/browser/operationsInterfaces/services.d.ts.map +1 -1
  116. package/dist/browser/operationsInterfaces/services.js.map +1 -1
  117. package/dist/browser/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
  118. package/dist/browser/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  119. package/dist/browser/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  120. package/dist/browser/operationsInterfaces/tasks.d.ts +17 -17
  121. package/dist/browser/operationsInterfaces/tasks.js.map +1 -1
  122. package/dist/browser/operationsInterfaces/usages.d.ts +2 -2
  123. package/dist/browser/operationsInterfaces/usages.js.map +1 -1
  124. package/dist/browser/pagingHelper.d.ts +4 -4
  125. package/dist/browser/pagingHelper.js +4 -4
  126. package/dist/browser/pagingHelper.js.map +1 -1
  127. package/dist/commonjs/dataMigrationManagementClient.d.ts +5 -1
  128. package/dist/commonjs/dataMigrationManagementClient.d.ts.map +1 -1
  129. package/dist/commonjs/dataMigrationManagementClient.js +18 -8
  130. package/dist/commonjs/dataMigrationManagementClient.js.map +1 -1
  131. package/dist/commonjs/lroImpl.d.ts +6 -11
  132. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  133. package/dist/commonjs/lroImpl.js +17 -26
  134. package/dist/commonjs/lroImpl.js.map +1 -1
  135. package/dist/commonjs/models/index.d.ts +968 -216
  136. package/dist/commonjs/models/index.d.ts.map +1 -1
  137. package/dist/commonjs/models/index.js +54 -10
  138. package/dist/commonjs/models/index.js.map +1 -1
  139. package/dist/commonjs/models/mappers.d.ts +47 -14
  140. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  141. package/dist/commonjs/models/mappers.js +5235 -4062
  142. package/dist/commonjs/models/mappers.js.map +1 -1
  143. package/dist/commonjs/models/parameters.d.ts +21 -12
  144. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  145. package/dist/commonjs/models/parameters.js +184 -110
  146. package/dist/commonjs/models/parameters.js.map +1 -1
  147. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
  148. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  149. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +368 -0
  150. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  151. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
  152. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  153. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +368 -0
  154. package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  155. package/dist/commonjs/operations/databaseMigrationsSqlDb.d.ts +81 -0
  156. package/dist/commonjs/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
  157. package/dist/commonjs/operations/databaseMigrationsSqlDb.js +324 -0
  158. package/dist/commonjs/operations/databaseMigrationsSqlDb.js.map +1 -0
  159. package/dist/commonjs/operations/databaseMigrationsSqlMi.d.ts +11 -11
  160. package/dist/commonjs/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  161. package/dist/commonjs/operations/databaseMigrationsSqlMi.js +87 -75
  162. package/dist/commonjs/operations/databaseMigrationsSqlMi.js.map +1 -1
  163. package/dist/commonjs/operations/databaseMigrationsSqlVm.d.ts +11 -11
  164. package/dist/commonjs/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  165. package/dist/commonjs/operations/databaseMigrationsSqlVm.js +87 -75
  166. package/dist/commonjs/operations/databaseMigrationsSqlVm.js.map +1 -1
  167. package/dist/commonjs/operations/files.js +43 -44
  168. package/dist/commonjs/operations/files.js.map +1 -1
  169. package/dist/commonjs/operations/index.d.ts +4 -0
  170. package/dist/commonjs/operations/index.d.ts.map +1 -1
  171. package/dist/commonjs/operations/index.js +4 -0
  172. package/dist/commonjs/operations/index.js.map +1 -1
  173. package/dist/commonjs/operations/migrationServices.d.ts +144 -0
  174. package/dist/commonjs/operations/migrationServices.d.ts.map +1 -0
  175. package/dist/commonjs/operations/migrationServices.js +645 -0
  176. package/dist/commonjs/operations/migrationServices.js.map +1 -0
  177. package/dist/commonjs/operations/operations.js +7 -8
  178. package/dist/commonjs/operations/operations.js.map +1 -1
  179. package/dist/commonjs/operations/projects.js +33 -34
  180. package/dist/commonjs/operations/projects.js.map +1 -1
  181. package/dist/commonjs/operations/resourceSkus.d.ts +2 -2
  182. package/dist/commonjs/operations/resourceSkus.js +12 -13
  183. package/dist/commonjs/operations/resourceSkus.js.map +1 -1
  184. package/dist/commonjs/operations/serviceTasks.d.ts +16 -13
  185. package/dist/commonjs/operations/serviceTasks.d.ts.map +1 -1
  186. package/dist/commonjs/operations/serviceTasks.js +55 -53
  187. package/dist/commonjs/operations/serviceTasks.js.map +1 -1
  188. package/dist/commonjs/operations/services.d.ts +59 -58
  189. package/dist/commonjs/operations/services.d.ts.map +1 -1
  190. package/dist/commonjs/operations/services.js +202 -184
  191. package/dist/commonjs/operations/services.js.map +1 -1
  192. package/dist/commonjs/operations/sqlMigrationServices.d.ts +13 -12
  193. package/dist/commonjs/operations/sqlMigrationServices.d.ts.map +1 -1
  194. package/dist/commonjs/operations/sqlMigrationServices.js +114 -104
  195. package/dist/commonjs/operations/sqlMigrationServices.js.map +1 -1
  196. package/dist/commonjs/operations/tasks.d.ts +20 -20
  197. package/dist/commonjs/operations/tasks.js +65 -66
  198. package/dist/commonjs/operations/tasks.js.map +1 -1
  199. package/dist/commonjs/operations/usages.d.ts +4 -4
  200. package/dist/commonjs/operations/usages.js +15 -16
  201. package/dist/commonjs/operations/usages.js.map +1 -1
  202. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
  203. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  204. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +10 -0
  205. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  206. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
  207. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  208. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +10 -0
  209. package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  210. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
  211. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
  212. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.js +10 -0
  213. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
  214. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
  215. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  216. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  217. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
  218. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  219. package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  220. package/dist/commonjs/operationsInterfaces/files.js.map +1 -1
  221. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  222. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  223. package/dist/commonjs/operationsInterfaces/index.js +4 -0
  224. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  225. package/dist/commonjs/operationsInterfaces/migrationServices.d.ts +87 -0
  226. package/dist/commonjs/operationsInterfaces/migrationServices.d.ts.map +1 -0
  227. package/dist/commonjs/operationsInterfaces/migrationServices.js +10 -0
  228. package/dist/commonjs/operationsInterfaces/migrationServices.js.map +1 -0
  229. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  230. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  231. package/dist/commonjs/operationsInterfaces/projects.js.map +1 -1
  232. package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts +1 -1
  233. package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  234. package/dist/commonjs/operationsInterfaces/resourceSkus.js.map +1 -1
  235. package/dist/commonjs/operationsInterfaces/serviceTasks.d.ts +12 -10
  236. package/dist/commonjs/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  237. package/dist/commonjs/operationsInterfaces/serviceTasks.js.map +1 -1
  238. package/dist/commonjs/operationsInterfaces/services.d.ts +53 -52
  239. package/dist/commonjs/operationsInterfaces/services.d.ts.map +1 -1
  240. package/dist/commonjs/operationsInterfaces/services.js.map +1 -1
  241. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
  242. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  243. package/dist/commonjs/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  244. package/dist/commonjs/operationsInterfaces/tasks.d.ts +17 -17
  245. package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -1
  246. package/dist/commonjs/operationsInterfaces/usages.d.ts +2 -2
  247. package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
  248. package/dist/commonjs/pagingHelper.d.ts +4 -4
  249. package/dist/commonjs/pagingHelper.js +4 -4
  250. package/dist/commonjs/pagingHelper.js.map +1 -1
  251. package/dist/commonjs/tsdoc-metadata.json +1 -1
  252. package/dist/esm/dataMigrationManagementClient.d.ts +5 -1
  253. package/dist/esm/dataMigrationManagementClient.d.ts.map +1 -1
  254. package/dist/esm/dataMigrationManagementClient.js +19 -9
  255. package/dist/esm/dataMigrationManagementClient.js.map +1 -1
  256. package/dist/esm/lroImpl.d.ts +6 -11
  257. package/dist/esm/lroImpl.d.ts.map +1 -1
  258. package/dist/esm/lroImpl.js +16 -24
  259. package/dist/esm/lroImpl.js.map +1 -1
  260. package/dist/esm/models/index.d.ts +968 -216
  261. package/dist/esm/models/index.d.ts.map +1 -1
  262. package/dist/esm/models/index.js +52 -8
  263. package/dist/esm/models/index.js.map +1 -1
  264. package/dist/esm/models/mappers.d.ts +47 -14
  265. package/dist/esm/models/mappers.d.ts.map +1 -1
  266. package/dist/esm/models/mappers.js +5228 -4055
  267. package/dist/esm/models/mappers.js.map +1 -1
  268. package/dist/esm/models/parameters.d.ts +21 -12
  269. package/dist/esm/models/parameters.d.ts.map +1 -1
  270. package/dist/esm/models/parameters.js +184 -110
  271. package/dist/esm/models/parameters.js.map +1 -1
  272. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
  273. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  274. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +363 -0
  275. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  276. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
  277. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  278. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +363 -0
  279. package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  280. package/dist/esm/operations/databaseMigrationsSqlDb.d.ts +81 -0
  281. package/dist/esm/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
  282. package/dist/esm/operations/databaseMigrationsSqlDb.js +319 -0
  283. package/dist/esm/operations/databaseMigrationsSqlDb.js.map +1 -0
  284. package/dist/esm/operations/databaseMigrationsSqlMi.d.ts +11 -11
  285. package/dist/esm/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  286. package/dist/esm/operations/databaseMigrationsSqlMi.js +89 -77
  287. package/dist/esm/operations/databaseMigrationsSqlMi.js.map +1 -1
  288. package/dist/esm/operations/databaseMigrationsSqlVm.d.ts +11 -11
  289. package/dist/esm/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  290. package/dist/esm/operations/databaseMigrationsSqlVm.js +89 -77
  291. package/dist/esm/operations/databaseMigrationsSqlVm.js.map +1 -1
  292. package/dist/esm/operations/files.js +43 -44
  293. package/dist/esm/operations/files.js.map +1 -1
  294. package/dist/esm/operations/index.d.ts +4 -0
  295. package/dist/esm/operations/index.d.ts.map +1 -1
  296. package/dist/esm/operations/index.js +4 -0
  297. package/dist/esm/operations/index.js.map +1 -1
  298. package/dist/esm/operations/migrationServices.d.ts +144 -0
  299. package/dist/esm/operations/migrationServices.d.ts.map +1 -0
  300. package/dist/esm/operations/migrationServices.js +640 -0
  301. package/dist/esm/operations/migrationServices.js.map +1 -0
  302. package/dist/esm/operations/operations.js +7 -8
  303. package/dist/esm/operations/operations.js.map +1 -1
  304. package/dist/esm/operations/projects.js +33 -34
  305. package/dist/esm/operations/projects.js.map +1 -1
  306. package/dist/esm/operations/resourceSkus.d.ts +2 -2
  307. package/dist/esm/operations/resourceSkus.js +12 -13
  308. package/dist/esm/operations/resourceSkus.js.map +1 -1
  309. package/dist/esm/operations/serviceTasks.d.ts +16 -13
  310. package/dist/esm/operations/serviceTasks.d.ts.map +1 -1
  311. package/dist/esm/operations/serviceTasks.js +55 -53
  312. package/dist/esm/operations/serviceTasks.js.map +1 -1
  313. package/dist/esm/operations/services.d.ts +59 -58
  314. package/dist/esm/operations/services.d.ts.map +1 -1
  315. package/dist/esm/operations/services.js +204 -186
  316. package/dist/esm/operations/services.js.map +1 -1
  317. package/dist/esm/operations/sqlMigrationServices.d.ts +13 -12
  318. package/dist/esm/operations/sqlMigrationServices.d.ts.map +1 -1
  319. package/dist/esm/operations/sqlMigrationServices.js +116 -106
  320. package/dist/esm/operations/sqlMigrationServices.js.map +1 -1
  321. package/dist/esm/operations/tasks.d.ts +20 -20
  322. package/dist/esm/operations/tasks.js +65 -66
  323. package/dist/esm/operations/tasks.js.map +1 -1
  324. package/dist/esm/operations/usages.d.ts +4 -4
  325. package/dist/esm/operations/usages.js +15 -16
  326. package/dist/esm/operations/usages.js.map +1 -1
  327. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
  328. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  329. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
  330. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  331. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
  332. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  333. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
  334. package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  335. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
  336. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
  337. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
  338. package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
  339. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
  340. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  341. package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  342. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
  343. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  344. package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  345. package/dist/esm/operationsInterfaces/files.js.map +1 -1
  346. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  347. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  348. package/dist/esm/operationsInterfaces/index.js +4 -0
  349. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  350. package/dist/esm/operationsInterfaces/migrationServices.d.ts +87 -0
  351. package/dist/esm/operationsInterfaces/migrationServices.d.ts.map +1 -0
  352. package/dist/esm/operationsInterfaces/migrationServices.js +9 -0
  353. package/dist/esm/operationsInterfaces/migrationServices.js.map +1 -0
  354. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  355. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  356. package/dist/esm/operationsInterfaces/projects.js.map +1 -1
  357. package/dist/esm/operationsInterfaces/resourceSkus.d.ts +1 -1
  358. package/dist/esm/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  359. package/dist/esm/operationsInterfaces/resourceSkus.js.map +1 -1
  360. package/dist/esm/operationsInterfaces/serviceTasks.d.ts +12 -10
  361. package/dist/esm/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  362. package/dist/esm/operationsInterfaces/serviceTasks.js.map +1 -1
  363. package/dist/esm/operationsInterfaces/services.d.ts +53 -52
  364. package/dist/esm/operationsInterfaces/services.d.ts.map +1 -1
  365. package/dist/esm/operationsInterfaces/services.js.map +1 -1
  366. package/dist/esm/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
  367. package/dist/esm/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  368. package/dist/esm/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  369. package/dist/esm/operationsInterfaces/tasks.d.ts +17 -17
  370. package/dist/esm/operationsInterfaces/tasks.js.map +1 -1
  371. package/dist/esm/operationsInterfaces/usages.d.ts +2 -2
  372. package/dist/esm/operationsInterfaces/usages.js.map +1 -1
  373. package/dist/esm/pagingHelper.d.ts +4 -4
  374. package/dist/esm/pagingHelper.js +4 -4
  375. package/dist/esm/pagingHelper.js.map +1 -1
  376. package/dist/react-native/dataMigrationManagementClient.d.ts +5 -1
  377. package/dist/react-native/dataMigrationManagementClient.d.ts.map +1 -1
  378. package/dist/react-native/dataMigrationManagementClient.js +19 -9
  379. package/dist/react-native/dataMigrationManagementClient.js.map +1 -1
  380. package/dist/react-native/lroImpl.d.ts +6 -11
  381. package/dist/react-native/lroImpl.d.ts.map +1 -1
  382. package/dist/react-native/lroImpl.js +16 -24
  383. package/dist/react-native/lroImpl.js.map +1 -1
  384. package/dist/react-native/models/index.d.ts +968 -216
  385. package/dist/react-native/models/index.d.ts.map +1 -1
  386. package/dist/react-native/models/index.js +52 -8
  387. package/dist/react-native/models/index.js.map +1 -1
  388. package/dist/react-native/models/mappers.d.ts +47 -14
  389. package/dist/react-native/models/mappers.d.ts.map +1 -1
  390. package/dist/react-native/models/mappers.js +5228 -4055
  391. package/dist/react-native/models/mappers.js.map +1 -1
  392. package/dist/react-native/models/parameters.d.ts +21 -12
  393. package/dist/react-native/models/parameters.d.ts.map +1 -1
  394. package/dist/react-native/models/parameters.js +184 -110
  395. package/dist/react-native/models/parameters.js.map +1 -1
  396. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
  397. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  398. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +363 -0
  399. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  400. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
  401. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  402. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +363 -0
  403. package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  404. package/dist/react-native/operations/databaseMigrationsSqlDb.d.ts +81 -0
  405. package/dist/react-native/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
  406. package/dist/react-native/operations/databaseMigrationsSqlDb.js +319 -0
  407. package/dist/react-native/operations/databaseMigrationsSqlDb.js.map +1 -0
  408. package/dist/react-native/operations/databaseMigrationsSqlMi.d.ts +11 -11
  409. package/dist/react-native/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
  410. package/dist/react-native/operations/databaseMigrationsSqlMi.js +89 -77
  411. package/dist/react-native/operations/databaseMigrationsSqlMi.js.map +1 -1
  412. package/dist/react-native/operations/databaseMigrationsSqlVm.d.ts +11 -11
  413. package/dist/react-native/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
  414. package/dist/react-native/operations/databaseMigrationsSqlVm.js +89 -77
  415. package/dist/react-native/operations/databaseMigrationsSqlVm.js.map +1 -1
  416. package/dist/react-native/operations/files.js +43 -44
  417. package/dist/react-native/operations/files.js.map +1 -1
  418. package/dist/react-native/operations/index.d.ts +4 -0
  419. package/dist/react-native/operations/index.d.ts.map +1 -1
  420. package/dist/react-native/operations/index.js +4 -0
  421. package/dist/react-native/operations/index.js.map +1 -1
  422. package/dist/react-native/operations/migrationServices.d.ts +144 -0
  423. package/dist/react-native/operations/migrationServices.d.ts.map +1 -0
  424. package/dist/react-native/operations/migrationServices.js +640 -0
  425. package/dist/react-native/operations/migrationServices.js.map +1 -0
  426. package/dist/react-native/operations/operations.js +7 -8
  427. package/dist/react-native/operations/operations.js.map +1 -1
  428. package/dist/react-native/operations/projects.js +33 -34
  429. package/dist/react-native/operations/projects.js.map +1 -1
  430. package/dist/react-native/operations/resourceSkus.d.ts +2 -2
  431. package/dist/react-native/operations/resourceSkus.js +12 -13
  432. package/dist/react-native/operations/resourceSkus.js.map +1 -1
  433. package/dist/react-native/operations/serviceTasks.d.ts +16 -13
  434. package/dist/react-native/operations/serviceTasks.d.ts.map +1 -1
  435. package/dist/react-native/operations/serviceTasks.js +55 -53
  436. package/dist/react-native/operations/serviceTasks.js.map +1 -1
  437. package/dist/react-native/operations/services.d.ts +59 -58
  438. package/dist/react-native/operations/services.d.ts.map +1 -1
  439. package/dist/react-native/operations/services.js +204 -186
  440. package/dist/react-native/operations/services.js.map +1 -1
  441. package/dist/react-native/operations/sqlMigrationServices.d.ts +13 -12
  442. package/dist/react-native/operations/sqlMigrationServices.d.ts.map +1 -1
  443. package/dist/react-native/operations/sqlMigrationServices.js +116 -106
  444. package/dist/react-native/operations/sqlMigrationServices.js.map +1 -1
  445. package/dist/react-native/operations/tasks.d.ts +20 -20
  446. package/dist/react-native/operations/tasks.js +65 -66
  447. package/dist/react-native/operations/tasks.js.map +1 -1
  448. package/dist/react-native/operations/usages.d.ts +4 -4
  449. package/dist/react-native/operations/usages.js +15 -16
  450. package/dist/react-native/operations/usages.js.map +1 -1
  451. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
  452. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
  453. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
  454. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
  455. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
  456. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
  457. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
  458. package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
  459. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
  460. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
  461. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
  462. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
  463. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
  464. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
  465. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
  466. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
  467. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
  468. package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
  469. package/dist/react-native/operationsInterfaces/files.js.map +1 -1
  470. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  471. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  472. package/dist/react-native/operationsInterfaces/index.js +4 -0
  473. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  474. package/dist/react-native/operationsInterfaces/migrationServices.d.ts +87 -0
  475. package/dist/react-native/operationsInterfaces/migrationServices.d.ts.map +1 -0
  476. package/dist/react-native/operationsInterfaces/migrationServices.js +9 -0
  477. package/dist/react-native/operationsInterfaces/migrationServices.js.map +1 -0
  478. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  479. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  480. package/dist/react-native/operationsInterfaces/projects.js.map +1 -1
  481. package/dist/react-native/operationsInterfaces/resourceSkus.d.ts +1 -1
  482. package/dist/react-native/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  483. package/dist/react-native/operationsInterfaces/resourceSkus.js.map +1 -1
  484. package/dist/react-native/operationsInterfaces/serviceTasks.d.ts +12 -10
  485. package/dist/react-native/operationsInterfaces/serviceTasks.d.ts.map +1 -1
  486. package/dist/react-native/operationsInterfaces/serviceTasks.js.map +1 -1
  487. package/dist/react-native/operationsInterfaces/services.d.ts +53 -52
  488. package/dist/react-native/operationsInterfaces/services.d.ts.map +1 -1
  489. package/dist/react-native/operationsInterfaces/services.js.map +1 -1
  490. package/dist/react-native/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
  491. package/dist/react-native/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
  492. package/dist/react-native/operationsInterfaces/sqlMigrationServices.js.map +1 -1
  493. package/dist/react-native/operationsInterfaces/tasks.d.ts +17 -17
  494. package/dist/react-native/operationsInterfaces/tasks.js.map +1 -1
  495. package/dist/react-native/operationsInterfaces/usages.d.ts +2 -2
  496. package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
  497. package/dist/react-native/pagingHelper.d.ts +4 -4
  498. package/dist/react-native/pagingHelper.js +4 -4
  499. package/dist/react-native/pagingHelper.js.map +1 -1
  500. package/package.json +26 -27
  501. package/CHANGELOG.md +0 -21
  502. package/review/arm-datamigration-node.api.md +0 -4103
@@ -0,0 +1,89 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { DatabaseMigrationsMongoToCosmosDbRUMongo } from "../operationsInterfaces/index.js";
3
+ import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { DatabaseMigrationCosmosDbMongo, DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeOptionalParams, DatabaseMigrationsMongoToCosmosDbRUMongoGetOptionalParams, DatabaseMigrationsMongoToCosmosDbRUMongoGetResponse, DatabaseMigrationsMongoToCosmosDbRUMongoCreateOptionalParams, DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse, DatabaseMigrationsMongoToCosmosDbRUMongoDeleteOptionalParams, DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse } from "../models/index.js";
6
+ /** Class containing DatabaseMigrationsMongoToCosmosDbRUMongo operations. */
7
+ export declare class DatabaseMigrationsMongoToCosmosDbRUMongoImpl implements DatabaseMigrationsMongoToCosmosDbRUMongo {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class DatabaseMigrationsMongoToCosmosDbRUMongo class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: DataMigrationManagementClient);
14
+ /**
15
+ * Get Database Migration resources for the scope.
16
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
17
+ * value from the Azure Resource Manager API or the portal.
18
+ * @param targetResourceName The name of the target resource/account.
19
+ * @param options The options parameters.
20
+ */
21
+ listForScope(resourceGroupName: string, targetResourceName: string, options?: DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeOptionalParams): PagedAsyncIterableIterator<DatabaseMigrationCosmosDbMongo>;
22
+ private getForScopePagingPage;
23
+ private getForScopePagingAll;
24
+ /**
25
+ * Get Database Migration resource.
26
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
27
+ * value from the Azure Resource Manager API or the portal.
28
+ * @param targetResourceName The name of the target resource/account.
29
+ * @param migrationName Name of the migration.
30
+ * @param options The options parameters.
31
+ */
32
+ get(resourceGroupName: string, targetResourceName: string, migrationName: string, options?: DatabaseMigrationsMongoToCosmosDbRUMongoGetOptionalParams): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoGetResponse>;
33
+ /**
34
+ * Create or Update Database Migration resource.
35
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
36
+ * value from the Azure Resource Manager API or the portal.
37
+ * @param targetResourceName The name of the target resource/account.
38
+ * @param migrationName Name of the migration.
39
+ * @param parameters Details of CosmosDB for Mongo API Migration resource.
40
+ * @param options The options parameters.
41
+ */
42
+ beginCreate(resourceGroupName: string, targetResourceName: string, migrationName: string, parameters: DatabaseMigrationCosmosDbMongo, options?: DatabaseMigrationsMongoToCosmosDbRUMongoCreateOptionalParams): Promise<SimplePollerLike<OperationState<DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse>, DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse>>;
43
+ /**
44
+ * Create or Update Database Migration resource.
45
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
46
+ * value from the Azure Resource Manager API or the portal.
47
+ * @param targetResourceName The name of the target resource/account.
48
+ * @param migrationName Name of the migration.
49
+ * @param parameters Details of CosmosDB for Mongo API Migration resource.
50
+ * @param options The options parameters.
51
+ */
52
+ beginCreateAndWait(resourceGroupName: string, targetResourceName: string, migrationName: string, parameters: DatabaseMigrationCosmosDbMongo, options?: DatabaseMigrationsMongoToCosmosDbRUMongoCreateOptionalParams): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse>;
53
+ /**
54
+ * Delete Database Migration resource.
55
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
56
+ * value from the Azure Resource Manager API or the portal.
57
+ * @param targetResourceName The name of the target resource/account.
58
+ * @param migrationName Name of the migration.
59
+ * @param options The options parameters.
60
+ */
61
+ beginDelete(resourceGroupName: string, targetResourceName: string, migrationName: string, options?: DatabaseMigrationsMongoToCosmosDbRUMongoDeleteOptionalParams): Promise<SimplePollerLike<OperationState<DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse>, DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse>>;
62
+ /**
63
+ * Delete Database Migration resource.
64
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
65
+ * value from the Azure Resource Manager API or the portal.
66
+ * @param targetResourceName The name of the target resource/account.
67
+ * @param migrationName Name of the migration.
68
+ * @param options The options parameters.
69
+ */
70
+ beginDeleteAndWait(resourceGroupName: string, targetResourceName: string, migrationName: string, options?: DatabaseMigrationsMongoToCosmosDbRUMongoDeleteOptionalParams): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse>;
71
+ /**
72
+ * Get Database Migration resources for the scope.
73
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
74
+ * value from the Azure Resource Manager API or the portal.
75
+ * @param targetResourceName The name of the target resource/account.
76
+ * @param options The options parameters.
77
+ */
78
+ private _getForScope;
79
+ /**
80
+ * GetForScopeNext
81
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
82
+ * value from the Azure Resource Manager API or the portal.
83
+ * @param targetResourceName The name of the target resource/account.
84
+ * @param nextLink The nextLink from the previous successful call to the GetForScope method.
85
+ * @param options The options parameters.
86
+ */
87
+ private _getForScopeNext;
88
+ }
89
+ //# sourceMappingURL=databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databaseMigrationsMongoToCosmosDbRUMongo.d.ts","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsMongoToCosmosDbRUMongo.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAI5F,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,8BAA8B,EAE9B,iEAAiE,EAEjE,yDAAyD,EACzD,mDAAmD,EACnD,4DAA4D,EAC5D,sDAAsD,EACtD,4DAA4D,EAC5D,sDAAsD,EAEvD,MAAM,oBAAoB,CAAC;AAG5B,4EAA4E;AAC5E,qBAAa,4CACX,YAAW,wCAAwC;IAEnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;;;;OAMG;IACI,YAAY,CACjB,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,iEAAiE,GAC1E,0BAA0B,CAAC,8BAA8B,CAAC;YA2B9C,qBAAqB;YAiCrB,oBAAoB;IAcnC;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,yDAAyD,GAClE,OAAO,CAAC,mDAAmD,CAAC;IAO/D;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,8BAA8B,EAC1C,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,sDAAsD,CAAC,EACtE,sDAAsD,CACvD,CACF;IA6DD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,8BAA8B,EAC1C,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CAAC,sDAAsD,CAAC;IAWlE;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,sDAAsD,CAAC,EACtE,sDAAsD,CACvD,CACF;IAuDD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CAAC,sDAAsD,CAAC;IAUlE;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;CAWzB"}
@@ -0,0 +1,363 @@
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 { setContinuationToken } from "../pagingHelper.js";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
12
+ import { createHttpPoller, } from "@azure/core-lro";
13
+ import { createLroSpec } from "../lroImpl.js";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing DatabaseMigrationsMongoToCosmosDbRUMongo operations. */
16
+ export class DatabaseMigrationsMongoToCosmosDbRUMongoImpl {
17
+ client;
18
+ /**
19
+ * Initialize a new instance of the class DatabaseMigrationsMongoToCosmosDbRUMongo class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Get Database Migration resources for the scope.
27
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
28
+ * value from the Azure Resource Manager API or the portal.
29
+ * @param targetResourceName The name of the target resource/account.
30
+ * @param options The options parameters.
31
+ */
32
+ listForScope(resourceGroupName, targetResourceName, options) {
33
+ const iter = this.getForScopePagingAll(resourceGroupName, targetResourceName, options);
34
+ return {
35
+ next() {
36
+ return iter.next();
37
+ },
38
+ [Symbol.asyncIterator]() {
39
+ return this;
40
+ },
41
+ byPage: (settings) => {
42
+ if (settings?.maxPageSize) {
43
+ throw new Error("maxPageSize is not supported by this operation.");
44
+ }
45
+ return this.getForScopePagingPage(resourceGroupName, targetResourceName, options, settings);
46
+ },
47
+ };
48
+ }
49
+ async *getForScopePagingPage(resourceGroupName, targetResourceName, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._getForScope(resourceGroupName, targetResourceName, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ setContinuationToken(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._getForScopeNext(resourceGroupName, targetResourceName, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield page;
65
+ }
66
+ }
67
+ async *getForScopePagingAll(resourceGroupName, targetResourceName, options) {
68
+ for await (const page of this.getForScopePagingPage(resourceGroupName, targetResourceName, options)) {
69
+ yield* page;
70
+ }
71
+ }
72
+ /**
73
+ * Get Database Migration resource.
74
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
75
+ * value from the Azure Resource Manager API or the portal.
76
+ * @param targetResourceName The name of the target resource/account.
77
+ * @param migrationName Name of the migration.
78
+ * @param options The options parameters.
79
+ */
80
+ get(resourceGroupName, targetResourceName, migrationName, options) {
81
+ return this.client.sendOperationRequest({ resourceGroupName, targetResourceName, migrationName, options }, getOperationSpec);
82
+ }
83
+ /**
84
+ * Create or Update Database Migration resource.
85
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
86
+ * value from the Azure Resource Manager API or the portal.
87
+ * @param targetResourceName The name of the target resource/account.
88
+ * @param migrationName Name of the migration.
89
+ * @param parameters Details of CosmosDB for Mongo API Migration resource.
90
+ * @param options The options parameters.
91
+ */
92
+ async beginCreate(resourceGroupName, targetResourceName, migrationName, parameters, options) {
93
+ const directSendOperation = async (args, spec) => {
94
+ return this.client.sendOperationRequest(args, spec);
95
+ };
96
+ const sendOperationFn = async (args, spec) => {
97
+ let currentRawResponse = undefined;
98
+ const providedCallback = args.options?.onResponse;
99
+ const callback = (rawResponse, flatResponse) => {
100
+ currentRawResponse = rawResponse;
101
+ providedCallback?.(rawResponse, flatResponse);
102
+ };
103
+ const updatedArgs = {
104
+ ...args,
105
+ options: {
106
+ ...args.options,
107
+ onResponse: callback,
108
+ },
109
+ };
110
+ const flatResponse = await directSendOperation(updatedArgs, spec);
111
+ return {
112
+ flatResponse,
113
+ rawResponse: {
114
+ statusCode: currentRawResponse.status,
115
+ body: currentRawResponse.parsedBody,
116
+ headers: currentRawResponse.headers.toJSON(),
117
+ },
118
+ };
119
+ };
120
+ const lro = createLroSpec({
121
+ sendOperationFn,
122
+ args: {
123
+ resourceGroupName,
124
+ targetResourceName,
125
+ migrationName,
126
+ parameters,
127
+ options,
128
+ },
129
+ spec: createOperationSpec,
130
+ });
131
+ const poller = await createHttpPoller(lro, {
132
+ restoreFrom: options?.resumeFrom,
133
+ intervalInMs: options?.updateIntervalInMs,
134
+ });
135
+ await poller.poll();
136
+ return poller;
137
+ }
138
+ /**
139
+ * Create or Update Database Migration resource.
140
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
141
+ * value from the Azure Resource Manager API or the portal.
142
+ * @param targetResourceName The name of the target resource/account.
143
+ * @param migrationName Name of the migration.
144
+ * @param parameters Details of CosmosDB for Mongo API Migration resource.
145
+ * @param options The options parameters.
146
+ */
147
+ async beginCreateAndWait(resourceGroupName, targetResourceName, migrationName, parameters, options) {
148
+ const poller = await this.beginCreate(resourceGroupName, targetResourceName, migrationName, parameters, options);
149
+ return poller.pollUntilDone();
150
+ }
151
+ /**
152
+ * Delete Database Migration resource.
153
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
154
+ * value from the Azure Resource Manager API or the portal.
155
+ * @param targetResourceName The name of the target resource/account.
156
+ * @param migrationName Name of the migration.
157
+ * @param options The options parameters.
158
+ */
159
+ async beginDelete(resourceGroupName, targetResourceName, migrationName, options) {
160
+ const directSendOperation = async (args, spec) => {
161
+ return this.client.sendOperationRequest(args, spec);
162
+ };
163
+ const sendOperationFn = async (args, spec) => {
164
+ let currentRawResponse = undefined;
165
+ const providedCallback = args.options?.onResponse;
166
+ const callback = (rawResponse, flatResponse) => {
167
+ currentRawResponse = rawResponse;
168
+ providedCallback?.(rawResponse, flatResponse);
169
+ };
170
+ const updatedArgs = {
171
+ ...args,
172
+ options: {
173
+ ...args.options,
174
+ onResponse: callback,
175
+ },
176
+ };
177
+ const flatResponse = await directSendOperation(updatedArgs, spec);
178
+ return {
179
+ flatResponse,
180
+ rawResponse: {
181
+ statusCode: currentRawResponse.status,
182
+ body: currentRawResponse.parsedBody,
183
+ headers: currentRawResponse.headers.toJSON(),
184
+ },
185
+ };
186
+ };
187
+ const lro = createLroSpec({
188
+ sendOperationFn,
189
+ args: { resourceGroupName, targetResourceName, migrationName, options },
190
+ spec: deleteOperationSpec,
191
+ });
192
+ const poller = await createHttpPoller(lro, {
193
+ restoreFrom: options?.resumeFrom,
194
+ intervalInMs: options?.updateIntervalInMs,
195
+ });
196
+ await poller.poll();
197
+ return poller;
198
+ }
199
+ /**
200
+ * Delete Database Migration resource.
201
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
202
+ * value from the Azure Resource Manager API or the portal.
203
+ * @param targetResourceName The name of the target resource/account.
204
+ * @param migrationName Name of the migration.
205
+ * @param options The options parameters.
206
+ */
207
+ async beginDeleteAndWait(resourceGroupName, targetResourceName, migrationName, options) {
208
+ const poller = await this.beginDelete(resourceGroupName, targetResourceName, migrationName, options);
209
+ return poller.pollUntilDone();
210
+ }
211
+ /**
212
+ * Get Database Migration resources for the scope.
213
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
214
+ * value from the Azure Resource Manager API or the portal.
215
+ * @param targetResourceName The name of the target resource/account.
216
+ * @param options The options parameters.
217
+ */
218
+ _getForScope(resourceGroupName, targetResourceName, options) {
219
+ return this.client.sendOperationRequest({ resourceGroupName, targetResourceName, options }, getForScopeOperationSpec);
220
+ }
221
+ /**
222
+ * GetForScopeNext
223
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
224
+ * value from the Azure Resource Manager API or the portal.
225
+ * @param targetResourceName The name of the target resource/account.
226
+ * @param nextLink The nextLink from the previous successful call to the GetForScope method.
227
+ * @param options The options parameters.
228
+ */
229
+ _getForScopeNext(resourceGroupName, targetResourceName, nextLink, options) {
230
+ return this.client.sendOperationRequest({ resourceGroupName, targetResourceName, nextLink, options }, getForScopeNextOperationSpec);
231
+ }
232
+ }
233
+ // Operation Specifications
234
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
235
+ const getOperationSpec = {
236
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}",
237
+ httpMethod: "GET",
238
+ responses: {
239
+ 200: {
240
+ bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,
241
+ },
242
+ default: {
243
+ bodyMapper: Mappers.ErrorResponse,
244
+ },
245
+ },
246
+ queryParameters: [Parameters.apiVersion],
247
+ urlParameters: [
248
+ Parameters.$host,
249
+ Parameters.resourceGroupName,
250
+ Parameters.targetResourceName,
251
+ Parameters.migrationName,
252
+ Parameters.subscriptionId,
253
+ ],
254
+ headerParameters: [Parameters.accept],
255
+ serializer,
256
+ };
257
+ const createOperationSpec = {
258
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}",
259
+ httpMethod: "PUT",
260
+ responses: {
261
+ 200: {
262
+ bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,
263
+ },
264
+ 201: {
265
+ bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,
266
+ },
267
+ 202: {
268
+ bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,
269
+ },
270
+ 204: {
271
+ bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,
272
+ },
273
+ default: {
274
+ bodyMapper: Mappers.ErrorResponse,
275
+ },
276
+ },
277
+ requestBody: Parameters.parameters,
278
+ queryParameters: [Parameters.apiVersion],
279
+ urlParameters: [
280
+ Parameters.$host,
281
+ Parameters.resourceGroupName,
282
+ Parameters.targetResourceName,
283
+ Parameters.migrationName,
284
+ Parameters.subscriptionId,
285
+ ],
286
+ headerParameters: [Parameters.accept, Parameters.contentType],
287
+ mediaType: "json",
288
+ serializer,
289
+ };
290
+ const deleteOperationSpec = {
291
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}",
292
+ httpMethod: "DELETE",
293
+ responses: {
294
+ 200: {
295
+ headersMapper: Mappers.DatabaseMigrationsMongoToCosmosDbRUMongoDeleteHeaders,
296
+ },
297
+ 201: {
298
+ headersMapper: Mappers.DatabaseMigrationsMongoToCosmosDbRUMongoDeleteHeaders,
299
+ },
300
+ 202: {
301
+ headersMapper: Mappers.DatabaseMigrationsMongoToCosmosDbRUMongoDeleteHeaders,
302
+ },
303
+ 204: {
304
+ headersMapper: Mappers.DatabaseMigrationsMongoToCosmosDbRUMongoDeleteHeaders,
305
+ },
306
+ default: {
307
+ bodyMapper: Mappers.ErrorResponse,
308
+ },
309
+ },
310
+ queryParameters: [Parameters.apiVersion, Parameters.force],
311
+ urlParameters: [
312
+ Parameters.$host,
313
+ Parameters.resourceGroupName,
314
+ Parameters.targetResourceName,
315
+ Parameters.migrationName,
316
+ Parameters.subscriptionId,
317
+ ],
318
+ headerParameters: [Parameters.accept],
319
+ serializer,
320
+ };
321
+ const getForScopeOperationSpec = {
322
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations",
323
+ httpMethod: "GET",
324
+ responses: {
325
+ 200: {
326
+ bodyMapper: Mappers.DatabaseMigrationCosmosDbMongoListResult,
327
+ },
328
+ default: {
329
+ bodyMapper: Mappers.ErrorResponse,
330
+ },
331
+ },
332
+ queryParameters: [Parameters.apiVersion],
333
+ urlParameters: [
334
+ Parameters.$host,
335
+ Parameters.resourceGroupName,
336
+ Parameters.targetResourceName,
337
+ Parameters.subscriptionId,
338
+ ],
339
+ headerParameters: [Parameters.accept],
340
+ serializer,
341
+ };
342
+ const getForScopeNextOperationSpec = {
343
+ path: "{nextLink}",
344
+ httpMethod: "GET",
345
+ responses: {
346
+ 200: {
347
+ bodyMapper: Mappers.DatabaseMigrationCosmosDbMongoListResult,
348
+ },
349
+ default: {
350
+ bodyMapper: Mappers.ErrorResponse,
351
+ },
352
+ },
353
+ urlParameters: [
354
+ Parameters.$host,
355
+ Parameters.resourceGroupName,
356
+ Parameters.targetResourceName,
357
+ Parameters.subscriptionId,
358
+ Parameters.nextLink,
359
+ ],
360
+ headerParameters: [Parameters.accept],
361
+ serializer,
362
+ };
363
+ //# sourceMappingURL=databaseMigrationsMongoToCosmosDbRUMongo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databaseMigrationsMongoToCosmosDbRUMongo.js","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsMongoToCosmosDbRUMongo.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;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAe9C,4CAA4C;AAC5C,4EAA4E;AAC5E,MAAM,OAAO,4CAA4C;IAGtC,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,iBAAyB,EACzB,kBAA0B,EAC1B,OAA2E;QAE3E,MAAM,IAAI,GAAG,IAAI,CAAC,oBAAoB,CACpC,iBAAiB,EACjB,kBAAkB,EAClB,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,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,qBAAqB,CAC/B,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,EACP,QAAQ,C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AAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wCAAwC;SAC7D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wCAAwC;SAC7D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;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 { DatabaseMigrationsMongoToCosmosDbRUMongo } 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 DatabaseMigrationCosmosDbMongo,\n DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeNextOptionalParams,\n DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeOptionalParams,\n DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeResponse,\n DatabaseMigrationsMongoToCosmosDbRUMongoGetOptionalParams,\n DatabaseMigrationsMongoToCosmosDbRUMongoGetResponse,\n DatabaseMigrationsMongoToCosmosDbRUMongoCreateOptionalParams,\n DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse,\n DatabaseMigrationsMongoToCosmosDbRUMongoDeleteOptionalParams,\n DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse,\n DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DatabaseMigrationsMongoToCosmosDbRUMongo operations. */\nexport class DatabaseMigrationsMongoToCosmosDbRUMongoImpl\n implements DatabaseMigrationsMongoToCosmosDbRUMongo\n{\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class DatabaseMigrationsMongoToCosmosDbRUMongo class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Database Migration resources for the scope.\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 targetResourceName The name of the target resource/account.\n * @param options The options parameters.\n */\n public listForScope(\n resourceGroupName: string,\n targetResourceName: string,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeOptionalParams,\n ): PagedAsyncIterableIterator<DatabaseMigrationCosmosDbMongo> {\n const iter = this.getForScopePagingAll(\n resourceGroupName,\n targetResourceName,\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.getForScopePagingPage(\n resourceGroupName,\n targetResourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *getForScopePagingPage(\n resourceGroupName: string,\n targetResourceName: string,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DatabaseMigrationCosmosDbMongo[]> {\n let result: DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getForScope(\n resourceGroupName,\n targetResourceName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getForScopeNext(\n resourceGroupName,\n targetResourceName,\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 *getForScopePagingAll(\n resourceGroupName: string,\n targetResourceName: string,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeOptionalParams,\n ): AsyncIterableIterator<DatabaseMigrationCosmosDbMongo> {\n for await (const page of this.getForScopePagingPage(\n resourceGroupName,\n targetResourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get 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 targetResourceName The name of the target resource/account.\n * @param migrationName Name of the migration.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n targetResourceName: string,\n migrationName: string,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoGetOptionalParams,\n ): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, targetResourceName, migrationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update 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 targetResourceName The name of the target resource/account.\n * @param migrationName Name of the migration.\n * @param parameters Details of CosmosDB for Mongo API Migration resource.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n targetResourceName: string,\n migrationName: string,\n parameters: DatabaseMigrationCosmosDbMongo,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse>,\n DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse> => {\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 targetResourceName,\n migrationName,\n parameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse,\n OperationState<DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or Update 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 targetResourceName The name of the target resource/account.\n * @param migrationName Name of the migration.\n * @param parameters Details of CosmosDB for Mongo API Migration resource.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n targetResourceName: string,\n migrationName: string,\n parameters: DatabaseMigrationCosmosDbMongo,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoCreateOptionalParams,\n ): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n targetResourceName,\n migrationName,\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 targetResourceName The name of the target resource/account.\n * @param migrationName Name of the migration.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n targetResourceName: string,\n migrationName: string,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse>,\n DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse> => {\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: { resourceGroupName, targetResourceName, migrationName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse,\n OperationState<DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse>\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 targetResourceName The name of the target resource/account.\n * @param migrationName Name of the migration.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n targetResourceName: string,\n migrationName: string,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoDeleteOptionalParams,\n ): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n targetResourceName,\n migrationName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get Database Migration resources for the scope.\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 targetResourceName The name of the target resource/account.\n * @param options The options parameters.\n */\n private _getForScope(\n resourceGroupName: string,\n targetResourceName: string,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeOptionalParams,\n ): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, targetResourceName, options },\n getForScopeOperationSpec,\n );\n }\n\n /**\n * GetForScopeNext\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 targetResourceName The name of the target resource/account.\n * @param nextLink The nextLink from the previous successful call to the GetForScope method.\n * @param options The options parameters.\n */\n private _getForScopeNext(\n resourceGroupName: string,\n targetResourceName: string,\n nextLink: string,\n options?: DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeNextOptionalParams,\n ): Promise<DatabaseMigrationsMongoToCosmosDbRUMongoGetForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, targetResourceName, nextLink, options },\n getForScopeNextOperationSpec,\n );\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.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.targetResourceName,\n Parameters.migrationName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,\n },\n 201: {\n bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,\n },\n 202: {\n bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,\n },\n 204: {\n bodyMapper: Mappers.DatabaseMigrationCosmosDbMongo,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.targetResourceName,\n Parameters.migrationName,\n Parameters.subscriptionId,\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.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper:\n Mappers.DatabaseMigrationsMongoToCosmosDbRUMongoDeleteHeaders,\n },\n 201: {\n headersMapper:\n Mappers.DatabaseMigrationsMongoToCosmosDbRUMongoDeleteHeaders,\n },\n 202: {\n headersMapper:\n Mappers.DatabaseMigrationsMongoToCosmosDbRUMongoDeleteHeaders,\n },\n 204: {\n headersMapper:\n Mappers.DatabaseMigrationsMongoToCosmosDbRUMongoDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.force],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.targetResourceName,\n Parameters.migrationName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getForScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationCosmosDbMongoListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.targetResourceName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationCosmosDbMongoListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.targetResourceName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -0,0 +1,89 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { DatabaseMigrationsMongoToCosmosDbvCoreMongo } from "../operationsInterfaces/index.js";
3
+ import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { DatabaseMigrationCosmosDbMongo, DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScopeOptionalParams, DatabaseMigrationsMongoToCosmosDbvCoreMongoGetOptionalParams, DatabaseMigrationsMongoToCosmosDbvCoreMongoGetResponse, DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateOptionalParams, DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateResponse, DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteOptionalParams, DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteResponse } from "../models/index.js";
6
+ /** Class containing DatabaseMigrationsMongoToCosmosDbvCoreMongo operations. */
7
+ export declare class DatabaseMigrationsMongoToCosmosDbvCoreMongoImpl implements DatabaseMigrationsMongoToCosmosDbvCoreMongo {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class DatabaseMigrationsMongoToCosmosDbvCoreMongo class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: DataMigrationManagementClient);
14
+ /**
15
+ * Get Database Migration resources for the scope.
16
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
17
+ * value from the Azure Resource Manager API or the portal.
18
+ * @param targetResourceName The name of the target resource/account.
19
+ * @param options The options parameters.
20
+ */
21
+ listForScope(resourceGroupName: string, targetResourceName: string, options?: DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScopeOptionalParams): PagedAsyncIterableIterator<DatabaseMigrationCosmosDbMongo>;
22
+ private getForScopePagingPage;
23
+ private getForScopePagingAll;
24
+ /**
25
+ * Get Database Migration resource.
26
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
27
+ * value from the Azure Resource Manager API or the portal.
28
+ * @param targetResourceName The name of the target resource/account.
29
+ * @param migrationName Name of the migration.
30
+ * @param options The options parameters.
31
+ */
32
+ get(resourceGroupName: string, targetResourceName: string, migrationName: string, options?: DatabaseMigrationsMongoToCosmosDbvCoreMongoGetOptionalParams): Promise<DatabaseMigrationsMongoToCosmosDbvCoreMongoGetResponse>;
33
+ /**
34
+ * Create or Update Database Migration resource.
35
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
36
+ * value from the Azure Resource Manager API or the portal.
37
+ * @param targetResourceName The name of the target resource/account.
38
+ * @param migrationName Name of the migration.
39
+ * @param parameters Details of CosmosDB for Mongo API Migration resource.
40
+ * @param options The options parameters.
41
+ */
42
+ beginCreate(resourceGroupName: string, targetResourceName: string, migrationName: string, parameters: DatabaseMigrationCosmosDbMongo, options?: DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateOptionalParams): Promise<SimplePollerLike<OperationState<DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateResponse>, DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateResponse>>;
43
+ /**
44
+ * Create or Update Database Migration resource.
45
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
46
+ * value from the Azure Resource Manager API or the portal.
47
+ * @param targetResourceName The name of the target resource/account.
48
+ * @param migrationName Name of the migration.
49
+ * @param parameters Details of CosmosDB for Mongo API Migration resource.
50
+ * @param options The options parameters.
51
+ */
52
+ beginCreateAndWait(resourceGroupName: string, targetResourceName: string, migrationName: string, parameters: DatabaseMigrationCosmosDbMongo, options?: DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateOptionalParams): Promise<DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateResponse>;
53
+ /**
54
+ * Delete Database Migration resource.
55
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
56
+ * value from the Azure Resource Manager API or the portal.
57
+ * @param targetResourceName The name of the target resource/account.
58
+ * @param migrationName Name of the migration.
59
+ * @param options The options parameters.
60
+ */
61
+ beginDelete(resourceGroupName: string, targetResourceName: string, migrationName: string, options?: DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteOptionalParams): Promise<SimplePollerLike<OperationState<DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteResponse>, DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteResponse>>;
62
+ /**
63
+ * Delete Database Migration resource.
64
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
65
+ * value from the Azure Resource Manager API or the portal.
66
+ * @param targetResourceName The name of the target resource/account.
67
+ * @param migrationName Name of the migration.
68
+ * @param options The options parameters.
69
+ */
70
+ beginDeleteAndWait(resourceGroupName: string, targetResourceName: string, migrationName: string, options?: DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteOptionalParams): Promise<DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteResponse>;
71
+ /**
72
+ * Get Database Migration resources for the scope.
73
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
74
+ * value from the Azure Resource Manager API or the portal.
75
+ * @param targetResourceName The name of the target resource/account.
76
+ * @param options The options parameters.
77
+ */
78
+ private _getForScope;
79
+ /**
80
+ * GetForScopeNext
81
+ * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
82
+ * value from the Azure Resource Manager API or the portal.
83
+ * @param targetResourceName The name of the target resource/account.
84
+ * @param nextLink The nextLink from the previous successful call to the GetForScope method.
85
+ * @param options The options parameters.
86
+ */
87
+ private _getForScopeNext;
88
+ }
89
+ //# sourceMappingURL=databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,2CAA2C,EAAE,MAAM,kCAAkC,CAAC;AAI/F,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,8BAA8B,EAE9B,oEAAoE,EAEpE,4DAA4D,EAC5D,sDAAsD,EACtD,+DAA+D,EAC/D,yDAAyD,EACzD,+DAA+D,EAC/D,yDAAyD,EAE1D,MAAM,oBAAoB,CAAC;AAG5B,+EAA+E;AAC/E,qBAAa,+CACX,YAAW,2CAA2C;IAEtD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;;;;OAMG;IACI,YAAY,CACjB,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,oEAAoE,GAC7E,0BAA0B,CAAC,8BAA8B,CAAC;YA2B9C,qBAAqB;YAiCrB,oBAAoB;IAcnC;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,4DAA4D,GACrE,OAAO,CAAC,sDAAsD,CAAC;IAOlE;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,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