@azure/arm-cosmosdb 16.3.0-alpha.20250620.1 → 16.3.0-alpha.20250721.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 (331) hide show
  1. package/dist/browser/cosmosDBManagementClient.js +50 -5
  2. package/dist/browser/cosmosDBManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +661 -279
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/cassandraClusters.js +85 -89
  8. package/dist/browser/operations/cassandraClusters.js.map +1 -1
  9. package/dist/browser/operations/cassandraDataCenters.js +43 -45
  10. package/dist/browser/operations/cassandraDataCenters.js.map +1 -1
  11. package/dist/browser/operations/cassandraResources.js +129 -113
  12. package/dist/browser/operations/cassandraResources.js.map +1 -1
  13. package/dist/browser/operations/collection.js +28 -79
  14. package/dist/browser/operations/collection.js.map +1 -1
  15. package/dist/browser/operations/collectionPartition.js +19 -53
  16. package/dist/browser/operations/collectionPartition.js.map +1 -1
  17. package/dist/browser/operations/collectionPartitionRegion.js +10 -27
  18. package/dist/browser/operations/collectionPartitionRegion.js.map +1 -1
  19. package/dist/browser/operations/collectionRegion.js +10 -27
  20. package/dist/browser/operations/collectionRegion.js.map +1 -1
  21. package/dist/browser/operations/database.js +28 -79
  22. package/dist/browser/operations/database.js.map +1 -1
  23. package/dist/browser/operations/databaseAccountRegion.js +10 -27
  24. package/dist/browser/operations/databaseAccountRegion.js.map +1 -1
  25. package/dist/browser/operations/databaseAccounts.js +123 -173
  26. package/dist/browser/operations/databaseAccounts.js.map +1 -1
  27. package/dist/browser/operations/gremlinResources.js +140 -119
  28. package/dist/browser/operations/gremlinResources.js.map +1 -1
  29. package/dist/browser/operations/locations.js +10 -27
  30. package/dist/browser/operations/locations.js.map +1 -1
  31. package/dist/browser/operations/mongoDBResources.js +202 -195
  32. package/dist/browser/operations/mongoDBResources.js.map +1 -1
  33. package/dist/browser/operations/notebookWorkspaces.js +54 -51
  34. package/dist/browser/operations/notebookWorkspaces.js.map +1 -1
  35. package/dist/browser/operations/operations.js +23 -40
  36. package/dist/browser/operations/operations.js.map +1 -1
  37. package/dist/browser/operations/partitionKeyRangeId.js +10 -27
  38. package/dist/browser/operations/partitionKeyRangeId.js.map +1 -1
  39. package/dist/browser/operations/partitionKeyRangeIdRegion.js +10 -27
  40. package/dist/browser/operations/partitionKeyRangeIdRegion.js.map +1 -1
  41. package/dist/browser/operations/percentile.js +10 -27
  42. package/dist/browser/operations/percentile.js.map +1 -1
  43. package/dist/browser/operations/percentileSourceTarget.js +10 -27
  44. package/dist/browser/operations/percentileSourceTarget.js.map +1 -1
  45. package/dist/browser/operations/percentileTarget.js +10 -27
  46. package/dist/browser/operations/percentileTarget.js.map +1 -1
  47. package/dist/browser/operations/privateEndpointConnections.js +32 -39
  48. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  49. package/dist/browser/operations/privateLinkResources.js +10 -27
  50. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  51. package/dist/browser/operations/restorableDatabaseAccounts.js +19 -53
  52. package/dist/browser/operations/restorableDatabaseAccounts.js.map +1 -1
  53. package/dist/browser/operations/restorableGremlinDatabases.js +10 -27
  54. package/dist/browser/operations/restorableGremlinDatabases.js.map +1 -1
  55. package/dist/browser/operations/restorableGremlinGraphs.js +10 -27
  56. package/dist/browser/operations/restorableGremlinGraphs.js.map +1 -1
  57. package/dist/browser/operations/restorableGremlinResources.js +10 -27
  58. package/dist/browser/operations/restorableGremlinResources.js.map +1 -1
  59. package/dist/browser/operations/restorableMongodbCollections.js +10 -27
  60. package/dist/browser/operations/restorableMongodbCollections.js.map +1 -1
  61. package/dist/browser/operations/restorableMongodbDatabases.js +10 -27
  62. package/dist/browser/operations/restorableMongodbDatabases.js.map +1 -1
  63. package/dist/browser/operations/restorableMongodbResources.js +10 -27
  64. package/dist/browser/operations/restorableMongodbResources.js.map +1 -1
  65. package/dist/browser/operations/restorableSqlContainers.js +10 -27
  66. package/dist/browser/operations/restorableSqlContainers.js.map +1 -1
  67. package/dist/browser/operations/restorableSqlDatabases.js +10 -27
  68. package/dist/browser/operations/restorableSqlDatabases.js.map +1 -1
  69. package/dist/browser/operations/restorableSqlResources.js +10 -27
  70. package/dist/browser/operations/restorableSqlResources.js.map +1 -1
  71. package/dist/browser/operations/restorableTableResources.js +10 -27
  72. package/dist/browser/operations/restorableTableResources.js.map +1 -1
  73. package/dist/browser/operations/restorableTables.js +10 -27
  74. package/dist/browser/operations/restorableTables.js.map +1 -1
  75. package/dist/browser/operations/service.js +32 -39
  76. package/dist/browser/operations/service.js.map +1 -1
  77. package/dist/browser/operations/sqlResources.js +315 -341
  78. package/dist/browser/operations/sqlResources.js.map +1 -1
  79. package/dist/browser/operations/tableResources.js +76 -63
  80. package/dist/browser/operations/tableResources.js.map +1 -1
  81. package/dist/browser/pagingHelper.js +2 -4
  82. package/dist/browser/pagingHelper.js.map +1 -1
  83. package/dist/commonjs/cosmosDBManagementClient.js +50 -5
  84. package/dist/commonjs/cosmosDBManagementClient.js.map +1 -1
  85. package/dist/commonjs/lroImpl.js +7 -3
  86. package/dist/commonjs/lroImpl.js.map +1 -1
  87. package/dist/commonjs/models/mappers.js +661 -279
  88. package/dist/commonjs/models/mappers.js.map +1 -1
  89. package/dist/commonjs/operations/cassandraClusters.js +85 -88
  90. package/dist/commonjs/operations/cassandraClusters.js.map +1 -1
  91. package/dist/commonjs/operations/cassandraDataCenters.js +43 -44
  92. package/dist/commonjs/operations/cassandraDataCenters.js.map +1 -1
  93. package/dist/commonjs/operations/cassandraResources.js +129 -112
  94. package/dist/commonjs/operations/cassandraResources.js.map +1 -1
  95. package/dist/commonjs/operations/collection.js +28 -78
  96. package/dist/commonjs/operations/collection.js.map +1 -1
  97. package/dist/commonjs/operations/collectionPartition.js +19 -52
  98. package/dist/commonjs/operations/collectionPartition.js.map +1 -1
  99. package/dist/commonjs/operations/collectionPartitionRegion.js +10 -26
  100. package/dist/commonjs/operations/collectionPartitionRegion.js.map +1 -1
  101. package/dist/commonjs/operations/collectionRegion.js +10 -26
  102. package/dist/commonjs/operations/collectionRegion.js.map +1 -1
  103. package/dist/commonjs/operations/database.js +28 -78
  104. package/dist/commonjs/operations/database.js.map +1 -1
  105. package/dist/commonjs/operations/databaseAccountRegion.js +10 -26
  106. package/dist/commonjs/operations/databaseAccountRegion.js.map +1 -1
  107. package/dist/commonjs/operations/databaseAccounts.js +123 -172
  108. package/dist/commonjs/operations/databaseAccounts.js.map +1 -1
  109. package/dist/commonjs/operations/gremlinResources.js +140 -118
  110. package/dist/commonjs/operations/gremlinResources.js.map +1 -1
  111. package/dist/commonjs/operations/locations.js +10 -26
  112. package/dist/commonjs/operations/locations.js.map +1 -1
  113. package/dist/commonjs/operations/mongoDBResources.js +202 -194
  114. package/dist/commonjs/operations/mongoDBResources.js.map +1 -1
  115. package/dist/commonjs/operations/notebookWorkspaces.js +54 -50
  116. package/dist/commonjs/operations/notebookWorkspaces.js.map +1 -1
  117. package/dist/commonjs/operations/operations.js +23 -39
  118. package/dist/commonjs/operations/operations.js.map +1 -1
  119. package/dist/commonjs/operations/partitionKeyRangeId.js +10 -26
  120. package/dist/commonjs/operations/partitionKeyRangeId.js.map +1 -1
  121. package/dist/commonjs/operations/partitionKeyRangeIdRegion.js +10 -26
  122. package/dist/commonjs/operations/partitionKeyRangeIdRegion.js.map +1 -1
  123. package/dist/commonjs/operations/percentile.js +10 -26
  124. package/dist/commonjs/operations/percentile.js.map +1 -1
  125. package/dist/commonjs/operations/percentileSourceTarget.js +10 -26
  126. package/dist/commonjs/operations/percentileSourceTarget.js.map +1 -1
  127. package/dist/commonjs/operations/percentileTarget.js +10 -26
  128. package/dist/commonjs/operations/percentileTarget.js.map +1 -1
  129. package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
  130. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  131. package/dist/commonjs/operations/privateLinkResources.js +10 -26
  132. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  133. package/dist/commonjs/operations/restorableDatabaseAccounts.js +19 -52
  134. package/dist/commonjs/operations/restorableDatabaseAccounts.js.map +1 -1
  135. package/dist/commonjs/operations/restorableGremlinDatabases.js +10 -26
  136. package/dist/commonjs/operations/restorableGremlinDatabases.js.map +1 -1
  137. package/dist/commonjs/operations/restorableGremlinGraphs.js +10 -26
  138. package/dist/commonjs/operations/restorableGremlinGraphs.js.map +1 -1
  139. package/dist/commonjs/operations/restorableGremlinResources.js +10 -26
  140. package/dist/commonjs/operations/restorableGremlinResources.js.map +1 -1
  141. package/dist/commonjs/operations/restorableMongodbCollections.js +10 -26
  142. package/dist/commonjs/operations/restorableMongodbCollections.js.map +1 -1
  143. package/dist/commonjs/operations/restorableMongodbDatabases.js +10 -26
  144. package/dist/commonjs/operations/restorableMongodbDatabases.js.map +1 -1
  145. package/dist/commonjs/operations/restorableMongodbResources.js +10 -26
  146. package/dist/commonjs/operations/restorableMongodbResources.js.map +1 -1
  147. package/dist/commonjs/operations/restorableSqlContainers.js +10 -26
  148. package/dist/commonjs/operations/restorableSqlContainers.js.map +1 -1
  149. package/dist/commonjs/operations/restorableSqlDatabases.js +10 -26
  150. package/dist/commonjs/operations/restorableSqlDatabases.js.map +1 -1
  151. package/dist/commonjs/operations/restorableSqlResources.js +10 -26
  152. package/dist/commonjs/operations/restorableSqlResources.js.map +1 -1
  153. package/dist/commonjs/operations/restorableTableResources.js +10 -26
  154. package/dist/commonjs/operations/restorableTableResources.js.map +1 -1
  155. package/dist/commonjs/operations/restorableTables.js +10 -26
  156. package/dist/commonjs/operations/restorableTables.js.map +1 -1
  157. package/dist/commonjs/operations/service.js +32 -38
  158. package/dist/commonjs/operations/service.js.map +1 -1
  159. package/dist/commonjs/operations/sqlResources.js +315 -340
  160. package/dist/commonjs/operations/sqlResources.js.map +1 -1
  161. package/dist/commonjs/operations/tableResources.js +76 -62
  162. package/dist/commonjs/operations/tableResources.js.map +1 -1
  163. package/dist/commonjs/pagingHelper.js +2 -4
  164. package/dist/commonjs/pagingHelper.js.map +1 -1
  165. package/dist/commonjs/tsdoc-metadata.json +11 -11
  166. package/dist/esm/cosmosDBManagementClient.js +50 -5
  167. package/dist/esm/cosmosDBManagementClient.js.map +1 -1
  168. package/dist/esm/lroImpl.js +7 -3
  169. package/dist/esm/lroImpl.js.map +1 -1
  170. package/dist/esm/models/mappers.js +661 -279
  171. package/dist/esm/models/mappers.js.map +1 -1
  172. package/dist/esm/operations/cassandraClusters.js +85 -89
  173. package/dist/esm/operations/cassandraClusters.js.map +1 -1
  174. package/dist/esm/operations/cassandraDataCenters.js +43 -45
  175. package/dist/esm/operations/cassandraDataCenters.js.map +1 -1
  176. package/dist/esm/operations/cassandraResources.js +129 -113
  177. package/dist/esm/operations/cassandraResources.js.map +1 -1
  178. package/dist/esm/operations/collection.js +28 -79
  179. package/dist/esm/operations/collection.js.map +1 -1
  180. package/dist/esm/operations/collectionPartition.js +19 -53
  181. package/dist/esm/operations/collectionPartition.js.map +1 -1
  182. package/dist/esm/operations/collectionPartitionRegion.js +10 -27
  183. package/dist/esm/operations/collectionPartitionRegion.js.map +1 -1
  184. package/dist/esm/operations/collectionRegion.js +10 -27
  185. package/dist/esm/operations/collectionRegion.js.map +1 -1
  186. package/dist/esm/operations/database.js +28 -79
  187. package/dist/esm/operations/database.js.map +1 -1
  188. package/dist/esm/operations/databaseAccountRegion.js +10 -27
  189. package/dist/esm/operations/databaseAccountRegion.js.map +1 -1
  190. package/dist/esm/operations/databaseAccounts.js +123 -173
  191. package/dist/esm/operations/databaseAccounts.js.map +1 -1
  192. package/dist/esm/operations/gremlinResources.js +140 -119
  193. package/dist/esm/operations/gremlinResources.js.map +1 -1
  194. package/dist/esm/operations/locations.js +10 -27
  195. package/dist/esm/operations/locations.js.map +1 -1
  196. package/dist/esm/operations/mongoDBResources.js +202 -195
  197. package/dist/esm/operations/mongoDBResources.js.map +1 -1
  198. package/dist/esm/operations/notebookWorkspaces.js +54 -51
  199. package/dist/esm/operations/notebookWorkspaces.js.map +1 -1
  200. package/dist/esm/operations/operations.js +23 -40
  201. package/dist/esm/operations/operations.js.map +1 -1
  202. package/dist/esm/operations/partitionKeyRangeId.js +10 -27
  203. package/dist/esm/operations/partitionKeyRangeId.js.map +1 -1
  204. package/dist/esm/operations/partitionKeyRangeIdRegion.js +10 -27
  205. package/dist/esm/operations/partitionKeyRangeIdRegion.js.map +1 -1
  206. package/dist/esm/operations/percentile.js +10 -27
  207. package/dist/esm/operations/percentile.js.map +1 -1
  208. package/dist/esm/operations/percentileSourceTarget.js +10 -27
  209. package/dist/esm/operations/percentileSourceTarget.js.map +1 -1
  210. package/dist/esm/operations/percentileTarget.js +10 -27
  211. package/dist/esm/operations/percentileTarget.js.map +1 -1
  212. package/dist/esm/operations/privateEndpointConnections.js +32 -39
  213. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  214. package/dist/esm/operations/privateLinkResources.js +10 -27
  215. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  216. package/dist/esm/operations/restorableDatabaseAccounts.js +19 -53
  217. package/dist/esm/operations/restorableDatabaseAccounts.js.map +1 -1
  218. package/dist/esm/operations/restorableGremlinDatabases.js +10 -27
  219. package/dist/esm/operations/restorableGremlinDatabases.js.map +1 -1
  220. package/dist/esm/operations/restorableGremlinGraphs.js +10 -27
  221. package/dist/esm/operations/restorableGremlinGraphs.js.map +1 -1
  222. package/dist/esm/operations/restorableGremlinResources.js +10 -27
  223. package/dist/esm/operations/restorableGremlinResources.js.map +1 -1
  224. package/dist/esm/operations/restorableMongodbCollections.js +10 -27
  225. package/dist/esm/operations/restorableMongodbCollections.js.map +1 -1
  226. package/dist/esm/operations/restorableMongodbDatabases.js +10 -27
  227. package/dist/esm/operations/restorableMongodbDatabases.js.map +1 -1
  228. package/dist/esm/operations/restorableMongodbResources.js +10 -27
  229. package/dist/esm/operations/restorableMongodbResources.js.map +1 -1
  230. package/dist/esm/operations/restorableSqlContainers.js +10 -27
  231. package/dist/esm/operations/restorableSqlContainers.js.map +1 -1
  232. package/dist/esm/operations/restorableSqlDatabases.js +10 -27
  233. package/dist/esm/operations/restorableSqlDatabases.js.map +1 -1
  234. package/dist/esm/operations/restorableSqlResources.js +10 -27
  235. package/dist/esm/operations/restorableSqlResources.js.map +1 -1
  236. package/dist/esm/operations/restorableTableResources.js +10 -27
  237. package/dist/esm/operations/restorableTableResources.js.map +1 -1
  238. package/dist/esm/operations/restorableTables.js +10 -27
  239. package/dist/esm/operations/restorableTables.js.map +1 -1
  240. package/dist/esm/operations/service.js +32 -39
  241. package/dist/esm/operations/service.js.map +1 -1
  242. package/dist/esm/operations/sqlResources.js +315 -341
  243. package/dist/esm/operations/sqlResources.js.map +1 -1
  244. package/dist/esm/operations/tableResources.js +76 -63
  245. package/dist/esm/operations/tableResources.js.map +1 -1
  246. package/dist/esm/pagingHelper.js +2 -4
  247. package/dist/esm/pagingHelper.js.map +1 -1
  248. package/dist/react-native/cosmosDBManagementClient.js +50 -5
  249. package/dist/react-native/cosmosDBManagementClient.js.map +1 -1
  250. package/dist/react-native/lroImpl.js +7 -3
  251. package/dist/react-native/lroImpl.js.map +1 -1
  252. package/dist/react-native/models/mappers.js +661 -279
  253. package/dist/react-native/models/mappers.js.map +1 -1
  254. package/dist/react-native/operations/cassandraClusters.js +85 -89
  255. package/dist/react-native/operations/cassandraClusters.js.map +1 -1
  256. package/dist/react-native/operations/cassandraDataCenters.js +43 -45
  257. package/dist/react-native/operations/cassandraDataCenters.js.map +1 -1
  258. package/dist/react-native/operations/cassandraResources.js +129 -113
  259. package/dist/react-native/operations/cassandraResources.js.map +1 -1
  260. package/dist/react-native/operations/collection.js +28 -79
  261. package/dist/react-native/operations/collection.js.map +1 -1
  262. package/dist/react-native/operations/collectionPartition.js +19 -53
  263. package/dist/react-native/operations/collectionPartition.js.map +1 -1
  264. package/dist/react-native/operations/collectionPartitionRegion.js +10 -27
  265. package/dist/react-native/operations/collectionPartitionRegion.js.map +1 -1
  266. package/dist/react-native/operations/collectionRegion.js +10 -27
  267. package/dist/react-native/operations/collectionRegion.js.map +1 -1
  268. package/dist/react-native/operations/database.js +28 -79
  269. package/dist/react-native/operations/database.js.map +1 -1
  270. package/dist/react-native/operations/databaseAccountRegion.js +10 -27
  271. package/dist/react-native/operations/databaseAccountRegion.js.map +1 -1
  272. package/dist/react-native/operations/databaseAccounts.js +123 -173
  273. package/dist/react-native/operations/databaseAccounts.js.map +1 -1
  274. package/dist/react-native/operations/gremlinResources.js +140 -119
  275. package/dist/react-native/operations/gremlinResources.js.map +1 -1
  276. package/dist/react-native/operations/locations.js +10 -27
  277. package/dist/react-native/operations/locations.js.map +1 -1
  278. package/dist/react-native/operations/mongoDBResources.js +202 -195
  279. package/dist/react-native/operations/mongoDBResources.js.map +1 -1
  280. package/dist/react-native/operations/notebookWorkspaces.js +54 -51
  281. package/dist/react-native/operations/notebookWorkspaces.js.map +1 -1
  282. package/dist/react-native/operations/operations.js +23 -40
  283. package/dist/react-native/operations/operations.js.map +1 -1
  284. package/dist/react-native/operations/partitionKeyRangeId.js +10 -27
  285. package/dist/react-native/operations/partitionKeyRangeId.js.map +1 -1
  286. package/dist/react-native/operations/partitionKeyRangeIdRegion.js +10 -27
  287. package/dist/react-native/operations/partitionKeyRangeIdRegion.js.map +1 -1
  288. package/dist/react-native/operations/percentile.js +10 -27
  289. package/dist/react-native/operations/percentile.js.map +1 -1
  290. package/dist/react-native/operations/percentileSourceTarget.js +10 -27
  291. package/dist/react-native/operations/percentileSourceTarget.js.map +1 -1
  292. package/dist/react-native/operations/percentileTarget.js +10 -27
  293. package/dist/react-native/operations/percentileTarget.js.map +1 -1
  294. package/dist/react-native/operations/privateEndpointConnections.js +32 -39
  295. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  296. package/dist/react-native/operations/privateLinkResources.js +10 -27
  297. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  298. package/dist/react-native/operations/restorableDatabaseAccounts.js +19 -53
  299. package/dist/react-native/operations/restorableDatabaseAccounts.js.map +1 -1
  300. package/dist/react-native/operations/restorableGremlinDatabases.js +10 -27
  301. package/dist/react-native/operations/restorableGremlinDatabases.js.map +1 -1
  302. package/dist/react-native/operations/restorableGremlinGraphs.js +10 -27
  303. package/dist/react-native/operations/restorableGremlinGraphs.js.map +1 -1
  304. package/dist/react-native/operations/restorableGremlinResources.js +10 -27
  305. package/dist/react-native/operations/restorableGremlinResources.js.map +1 -1
  306. package/dist/react-native/operations/restorableMongodbCollections.js +10 -27
  307. package/dist/react-native/operations/restorableMongodbCollections.js.map +1 -1
  308. package/dist/react-native/operations/restorableMongodbDatabases.js +10 -27
  309. package/dist/react-native/operations/restorableMongodbDatabases.js.map +1 -1
  310. package/dist/react-native/operations/restorableMongodbResources.js +10 -27
  311. package/dist/react-native/operations/restorableMongodbResources.js.map +1 -1
  312. package/dist/react-native/operations/restorableSqlContainers.js +10 -27
  313. package/dist/react-native/operations/restorableSqlContainers.js.map +1 -1
  314. package/dist/react-native/operations/restorableSqlDatabases.js +10 -27
  315. package/dist/react-native/operations/restorableSqlDatabases.js.map +1 -1
  316. package/dist/react-native/operations/restorableSqlResources.js +10 -27
  317. package/dist/react-native/operations/restorableSqlResources.js.map +1 -1
  318. package/dist/react-native/operations/restorableTableResources.js +10 -27
  319. package/dist/react-native/operations/restorableTableResources.js.map +1 -1
  320. package/dist/react-native/operations/restorableTables.js +10 -27
  321. package/dist/react-native/operations/restorableTables.js.map +1 -1
  322. package/dist/react-native/operations/service.js +32 -39
  323. package/dist/react-native/operations/service.js.map +1 -1
  324. package/dist/react-native/operations/sqlResources.js +315 -341
  325. package/dist/react-native/operations/sqlResources.js.map +1 -1
  326. package/dist/react-native/operations/tableResources.js +76 -63
  327. package/dist/react-native/operations/tableResources.js.map +1 -1
  328. package/dist/react-native/pagingHelper.js +2 -4
  329. package/dist/react-native/pagingHelper.js.map +1 -1
  330. package/package.json +2 -2
  331. /package/review/{arm-cosmosdb.api.md → arm-cosmosdb-node.api.md} +0 -0
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
@@ -14,6 +13,7 @@ import { createLroSpec } from "../lroImpl.js";
14
13
  /// <reference lib="esnext.asynciterable" />
15
14
  /** Class containing MongoDBResources operations. */
16
15
  export class MongoDBResourcesImpl {
16
+ client;
17
17
  /**
18
18
  * Initialize a new instance of the class MongoDBResources class.
19
19
  * @param client Reference to the service client
@@ -37,39 +37,22 @@ export class MongoDBResourcesImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, settings);
44
44
  },
45
45
  };
46
46
  }
47
- listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
48
- return __asyncGenerator(this, arguments, function* listMongoDBDatabasesPagingPage_1() {
49
- let result;
50
- result = yield __await(this._listMongoDBDatabases(resourceGroupName, accountName, options));
51
- yield yield __await(result.value || []);
52
- });
47
+ async *listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
48
+ let result;
49
+ result = await this._listMongoDBDatabases(resourceGroupName, accountName, options);
50
+ yield result.value || [];
53
51
  }
54
- listMongoDBDatabasesPagingAll(resourceGroupName, accountName, options) {
55
- return __asyncGenerator(this, arguments, function* listMongoDBDatabasesPagingAll_1() {
56
- var _a, e_1, _b, _c;
57
- try {
58
- for (var _d = true, _e = __asyncValues(this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
59
- _c = _f.value;
60
- _d = false;
61
- const page = _c;
62
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
- }
64
- }
65
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
- finally {
67
- try {
68
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
69
- }
70
- finally { if (e_1) throw e_1.error; }
71
- }
72
- });
52
+ async *listMongoDBDatabasesPagingAll(resourceGroupName, accountName, options) {
53
+ for await (const page of this.listMongoDBDatabasesPagingPage(resourceGroupName, accountName, options)) {
54
+ yield* page;
55
+ }
73
56
  }
74
57
  /**
75
58
  * Lists the MongoDB collection under an existing Azure Cosmos DB database account.
@@ -88,39 +71,22 @@ export class MongoDBResourcesImpl {
88
71
  return this;
89
72
  },
90
73
  byPage: (settings) => {
91
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
74
+ if (settings?.maxPageSize) {
92
75
  throw new Error("maxPageSize is not supported by this operation.");
93
76
  }
94
77
  return this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, settings);
95
78
  },
96
79
  };
97
80
  }
98
- listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
99
- return __asyncGenerator(this, arguments, function* listMongoDBCollectionsPagingPage_1() {
100
- let result;
101
- result = yield __await(this._listMongoDBCollections(resourceGroupName, accountName, databaseName, options));
102
- yield yield __await(result.value || []);
103
- });
81
+ async *listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
82
+ let result;
83
+ result = await this._listMongoDBCollections(resourceGroupName, accountName, databaseName, options);
84
+ yield result.value || [];
104
85
  }
105
- listMongoDBCollectionsPagingAll(resourceGroupName, accountName, databaseName, options) {
106
- return __asyncGenerator(this, arguments, function* listMongoDBCollectionsPagingAll_1() {
107
- var _a, e_2, _b, _c;
108
- try {
109
- for (var _d = true, _e = __asyncValues(this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
110
- _c = _f.value;
111
- _d = false;
112
- const page = _c;
113
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
114
- }
115
- }
116
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
117
- finally {
118
- try {
119
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
120
- }
121
- finally { if (e_2) throw e_2.error; }
122
- }
123
- });
86
+ async *listMongoDBCollectionsPagingAll(resourceGroupName, accountName, databaseName, options) {
87
+ for await (const page of this.listMongoDBCollectionsPagingPage(resourceGroupName, accountName, databaseName, options)) {
88
+ yield* page;
89
+ }
124
90
  }
125
91
  /**
126
92
  * Retrieves the list of all Azure Cosmos DB Mongo Role Definitions.
@@ -138,39 +104,22 @@ export class MongoDBResourcesImpl {
138
104
  return this;
139
105
  },
140
106
  byPage: (settings) => {
141
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
107
+ if (settings?.maxPageSize) {
142
108
  throw new Error("maxPageSize is not supported by this operation.");
143
109
  }
144
110
  return this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
145
111
  },
146
112
  };
147
113
  }
148
- listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
149
- return __asyncGenerator(this, arguments, function* listMongoRoleDefinitionsPagingPage_1() {
150
- let result;
151
- result = yield __await(this._listMongoRoleDefinitions(resourceGroupName, accountName, options));
152
- yield yield __await(result.value || []);
153
- });
114
+ async *listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
115
+ let result;
116
+ result = await this._listMongoRoleDefinitions(resourceGroupName, accountName, options);
117
+ yield result.value || [];
154
118
  }
155
- listMongoRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
156
- return __asyncGenerator(this, arguments, function* listMongoRoleDefinitionsPagingAll_1() {
157
- var _a, e_3, _b, _c;
158
- try {
159
- for (var _d = true, _e = __asyncValues(this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
160
- _c = _f.value;
161
- _d = false;
162
- const page = _c;
163
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
164
- }
165
- }
166
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
167
- finally {
168
- try {
169
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
170
- }
171
- finally { if (e_3) throw e_3.error; }
172
- }
173
- });
119
+ async *listMongoRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
120
+ for await (const page of this.listMongoRoleDefinitionsPagingPage(resourceGroupName, accountName, options)) {
121
+ yield* page;
122
+ }
174
123
  }
175
124
  /**
176
125
  * Retrieves the list of all Azure Cosmos DB Mongo User Definition.
@@ -188,39 +137,22 @@ export class MongoDBResourcesImpl {
188
137
  return this;
189
138
  },
190
139
  byPage: (settings) => {
191
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
140
+ if (settings?.maxPageSize) {
192
141
  throw new Error("maxPageSize is not supported by this operation.");
193
142
  }
194
143
  return this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
195
144
  },
196
145
  };
197
146
  }
198
- listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
199
- return __asyncGenerator(this, arguments, function* listMongoUserDefinitionsPagingPage_1() {
200
- let result;
201
- result = yield __await(this._listMongoUserDefinitions(resourceGroupName, accountName, options));
202
- yield yield __await(result.value || []);
203
- });
147
+ async *listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
148
+ let result;
149
+ result = await this._listMongoUserDefinitions(resourceGroupName, accountName, options);
150
+ yield result.value || [];
204
151
  }
205
- listMongoUserDefinitionsPagingAll(resourceGroupName, accountName, options) {
206
- return __asyncGenerator(this, arguments, function* listMongoUserDefinitionsPagingAll_1() {
207
- var _a, e_4, _b, _c;
208
- try {
209
- for (var _d = true, _e = __asyncValues(this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
210
- _c = _f.value;
211
- _d = false;
212
- const page = _c;
213
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
214
- }
215
- }
216
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
217
- finally {
218
- try {
219
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
220
- }
221
- finally { if (e_4) throw e_4.error; }
222
- }
223
- });
152
+ async *listMongoUserDefinitionsPagingAll(resourceGroupName, accountName, options) {
153
+ for await (const page of this.listMongoUserDefinitionsPagingPage(resourceGroupName, accountName, options)) {
154
+ yield* page;
155
+ }
224
156
  }
225
157
  /**
226
158
  * Lists the MongoDB databases under an existing Azure Cosmos DB database account.
@@ -256,14 +188,19 @@ export class MongoDBResourcesImpl {
256
188
  return this.client.sendOperationRequest(args, spec);
257
189
  };
258
190
  const sendOperationFn = async (args, spec) => {
259
- var _a;
260
191
  let currentRawResponse = undefined;
261
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
192
+ const providedCallback = args.options?.onResponse;
262
193
  const callback = (rawResponse, flatResponse) => {
263
194
  currentRawResponse = rawResponse;
264
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
195
+ providedCallback?.(rawResponse, flatResponse);
196
+ };
197
+ const updatedArgs = {
198
+ ...args,
199
+ options: {
200
+ ...args.options,
201
+ onResponse: callback,
202
+ },
265
203
  };
266
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
267
204
  const flatResponse = await directSendOperation(updatedArgs, spec);
268
205
  return {
269
206
  flatResponse,
@@ -286,8 +223,8 @@ export class MongoDBResourcesImpl {
286
223
  spec: createUpdateMongoDBDatabaseOperationSpec,
287
224
  });
288
225
  const poller = await createHttpPoller(lro, {
289
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
290
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
226
+ restoreFrom: options?.resumeFrom,
227
+ intervalInMs: options?.updateIntervalInMs,
291
228
  });
292
229
  await poller.poll();
293
230
  return poller;
@@ -317,14 +254,19 @@ export class MongoDBResourcesImpl {
317
254
  return this.client.sendOperationRequest(args, spec);
318
255
  };
319
256
  const sendOperationFn = async (args, spec) => {
320
- var _a;
321
257
  let currentRawResponse = undefined;
322
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
258
+ const providedCallback = args.options?.onResponse;
323
259
  const callback = (rawResponse, flatResponse) => {
324
260
  currentRawResponse = rawResponse;
325
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
261
+ providedCallback?.(rawResponse, flatResponse);
262
+ };
263
+ const updatedArgs = {
264
+ ...args,
265
+ options: {
266
+ ...args.options,
267
+ onResponse: callback,
268
+ },
326
269
  };
327
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
328
270
  const flatResponse = await directSendOperation(updatedArgs, spec);
329
271
  return {
330
272
  flatResponse,
@@ -341,8 +283,8 @@ export class MongoDBResourcesImpl {
341
283
  spec: deleteMongoDBDatabaseOperationSpec,
342
284
  });
343
285
  const poller = await createHttpPoller(lro, {
344
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
345
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
286
+ restoreFrom: options?.resumeFrom,
287
+ intervalInMs: options?.updateIntervalInMs,
346
288
  });
347
289
  await poller.poll();
348
290
  return poller;
@@ -383,14 +325,19 @@ export class MongoDBResourcesImpl {
383
325
  return this.client.sendOperationRequest(args, spec);
384
326
  };
385
327
  const sendOperationFn = async (args, spec) => {
386
- var _a;
387
328
  let currentRawResponse = undefined;
388
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
329
+ const providedCallback = args.options?.onResponse;
389
330
  const callback = (rawResponse, flatResponse) => {
390
331
  currentRawResponse = rawResponse;
391
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
332
+ providedCallback?.(rawResponse, flatResponse);
333
+ };
334
+ const updatedArgs = {
335
+ ...args,
336
+ options: {
337
+ ...args.options,
338
+ onResponse: callback,
339
+ },
392
340
  };
393
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
394
341
  const flatResponse = await directSendOperation(updatedArgs, spec);
395
342
  return {
396
343
  flatResponse,
@@ -413,8 +360,8 @@ export class MongoDBResourcesImpl {
413
360
  spec: updateMongoDBDatabaseThroughputOperationSpec,
414
361
  });
415
362
  const poller = await createHttpPoller(lro, {
416
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
417
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
363
+ restoreFrom: options?.resumeFrom,
364
+ intervalInMs: options?.updateIntervalInMs,
418
365
  });
419
366
  await poller.poll();
420
367
  return poller;
@@ -444,14 +391,19 @@ export class MongoDBResourcesImpl {
444
391
  return this.client.sendOperationRequest(args, spec);
445
392
  };
446
393
  const sendOperationFn = async (args, spec) => {
447
- var _a;
448
394
  let currentRawResponse = undefined;
449
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
395
+ const providedCallback = args.options?.onResponse;
450
396
  const callback = (rawResponse, flatResponse) => {
451
397
  currentRawResponse = rawResponse;
452
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
398
+ providedCallback?.(rawResponse, flatResponse);
399
+ };
400
+ const updatedArgs = {
401
+ ...args,
402
+ options: {
403
+ ...args.options,
404
+ onResponse: callback,
405
+ },
453
406
  };
454
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
455
407
  const flatResponse = await directSendOperation(updatedArgs, spec);
456
408
  return {
457
409
  flatResponse,
@@ -468,8 +420,8 @@ export class MongoDBResourcesImpl {
468
420
  spec: migrateMongoDBDatabaseToAutoscaleOperationSpec,
469
421
  });
470
422
  const poller = await createHttpPoller(lro, {
471
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
472
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
423
+ restoreFrom: options?.resumeFrom,
424
+ intervalInMs: options?.updateIntervalInMs,
473
425
  });
474
426
  await poller.poll();
475
427
  return poller;
@@ -497,14 +449,19 @@ export class MongoDBResourcesImpl {
497
449
  return this.client.sendOperationRequest(args, spec);
498
450
  };
499
451
  const sendOperationFn = async (args, spec) => {
500
- var _a;
501
452
  let currentRawResponse = undefined;
502
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
453
+ const providedCallback = args.options?.onResponse;
503
454
  const callback = (rawResponse, flatResponse) => {
504
455
  currentRawResponse = rawResponse;
505
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
456
+ providedCallback?.(rawResponse, flatResponse);
457
+ };
458
+ const updatedArgs = {
459
+ ...args,
460
+ options: {
461
+ ...args.options,
462
+ onResponse: callback,
463
+ },
506
464
  };
507
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
508
465
  const flatResponse = await directSendOperation(updatedArgs, spec);
509
466
  return {
510
467
  flatResponse,
@@ -521,8 +478,8 @@ export class MongoDBResourcesImpl {
521
478
  spec: migrateMongoDBDatabaseToManualThroughputOperationSpec,
522
479
  });
523
480
  const poller = await createHttpPoller(lro, {
524
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
525
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
481
+ restoreFrom: options?.resumeFrom,
482
+ intervalInMs: options?.updateIntervalInMs,
526
483
  });
527
484
  await poller.poll();
528
485
  return poller;
@@ -574,14 +531,19 @@ export class MongoDBResourcesImpl {
574
531
  return this.client.sendOperationRequest(args, spec);
575
532
  };
576
533
  const sendOperationFn = async (args, spec) => {
577
- var _a;
578
534
  let currentRawResponse = undefined;
579
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
535
+ const providedCallback = args.options?.onResponse;
580
536
  const callback = (rawResponse, flatResponse) => {
581
537
  currentRawResponse = rawResponse;
582
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
538
+ providedCallback?.(rawResponse, flatResponse);
539
+ };
540
+ const updatedArgs = {
541
+ ...args,
542
+ options: {
543
+ ...args.options,
544
+ onResponse: callback,
545
+ },
583
546
  };
584
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
585
547
  const flatResponse = await directSendOperation(updatedArgs, spec);
586
548
  return {
587
549
  flatResponse,
@@ -605,8 +567,8 @@ export class MongoDBResourcesImpl {
605
567
  spec: createUpdateMongoDBCollectionOperationSpec,
606
568
  });
607
569
  const poller = await createHttpPoller(lro, {
608
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
609
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
570
+ restoreFrom: options?.resumeFrom,
571
+ intervalInMs: options?.updateIntervalInMs,
610
572
  });
611
573
  await poller.poll();
612
574
  return poller;
@@ -638,14 +600,19 @@ export class MongoDBResourcesImpl {
638
600
  return this.client.sendOperationRequest(args, spec);
639
601
  };
640
602
  const sendOperationFn = async (args, spec) => {
641
- var _a;
642
603
  let currentRawResponse = undefined;
643
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
604
+ const providedCallback = args.options?.onResponse;
644
605
  const callback = (rawResponse, flatResponse) => {
645
606
  currentRawResponse = rawResponse;
646
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
607
+ providedCallback?.(rawResponse, flatResponse);
608
+ };
609
+ const updatedArgs = {
610
+ ...args,
611
+ options: {
612
+ ...args.options,
613
+ onResponse: callback,
614
+ },
647
615
  };
648
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
649
616
  const flatResponse = await directSendOperation(updatedArgs, spec);
650
617
  return {
651
618
  flatResponse,
@@ -668,8 +635,8 @@ export class MongoDBResourcesImpl {
668
635
  spec: deleteMongoDBCollectionOperationSpec,
669
636
  });
670
637
  const poller = await createHttpPoller(lro, {
671
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
672
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
638
+ restoreFrom: options?.resumeFrom,
639
+ intervalInMs: options?.updateIntervalInMs,
673
640
  });
674
641
  await poller.poll();
675
642
  return poller;
@@ -713,14 +680,19 @@ export class MongoDBResourcesImpl {
713
680
  return this.client.sendOperationRequest(args, spec);
714
681
  };
715
682
  const sendOperationFn = async (args, spec) => {
716
- var _a;
717
683
  let currentRawResponse = undefined;
718
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
684
+ const providedCallback = args.options?.onResponse;
719
685
  const callback = (rawResponse, flatResponse) => {
720
686
  currentRawResponse = rawResponse;
721
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
687
+ providedCallback?.(rawResponse, flatResponse);
688
+ };
689
+ const updatedArgs = {
690
+ ...args,
691
+ options: {
692
+ ...args.options,
693
+ onResponse: callback,
694
+ },
722
695
  };
723
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
724
696
  const flatResponse = await directSendOperation(updatedArgs, spec);
725
697
  return {
726
698
  flatResponse,
@@ -744,8 +716,8 @@ export class MongoDBResourcesImpl {
744
716
  spec: updateMongoDBCollectionThroughputOperationSpec,
745
717
  });
746
718
  const poller = await createHttpPoller(lro, {
747
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
748
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
719
+ restoreFrom: options?.resumeFrom,
720
+ intervalInMs: options?.updateIntervalInMs,
749
721
  });
750
722
  await poller.poll();
751
723
  return poller;
@@ -777,14 +749,19 @@ export class MongoDBResourcesImpl {
777
749
  return this.client.sendOperationRequest(args, spec);
778
750
  };
779
751
  const sendOperationFn = async (args, spec) => {
780
- var _a;
781
752
  let currentRawResponse = undefined;
782
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
753
+ const providedCallback = args.options?.onResponse;
783
754
  const callback = (rawResponse, flatResponse) => {
784
755
  currentRawResponse = rawResponse;
785
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
756
+ providedCallback?.(rawResponse, flatResponse);
757
+ };
758
+ const updatedArgs = {
759
+ ...args,
760
+ options: {
761
+ ...args.options,
762
+ onResponse: callback,
763
+ },
786
764
  };
787
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
788
765
  const flatResponse = await directSendOperation(updatedArgs, spec);
789
766
  return {
790
767
  flatResponse,
@@ -807,8 +784,8 @@ export class MongoDBResourcesImpl {
807
784
  spec: migrateMongoDBCollectionToAutoscaleOperationSpec,
808
785
  });
809
786
  const poller = await createHttpPoller(lro, {
810
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
811
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
787
+ restoreFrom: options?.resumeFrom,
788
+ intervalInMs: options?.updateIntervalInMs,
812
789
  });
813
790
  await poller.poll();
814
791
  return poller;
@@ -838,14 +815,19 @@ export class MongoDBResourcesImpl {
838
815
  return this.client.sendOperationRequest(args, spec);
839
816
  };
840
817
  const sendOperationFn = async (args, spec) => {
841
- var _a;
842
818
  let currentRawResponse = undefined;
843
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
819
+ const providedCallback = args.options?.onResponse;
844
820
  const callback = (rawResponse, flatResponse) => {
845
821
  currentRawResponse = rawResponse;
846
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
822
+ providedCallback?.(rawResponse, flatResponse);
823
+ };
824
+ const updatedArgs = {
825
+ ...args,
826
+ options: {
827
+ ...args.options,
828
+ onResponse: callback,
829
+ },
847
830
  };
848
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
849
831
  const flatResponse = await directSendOperation(updatedArgs, spec);
850
832
  return {
851
833
  flatResponse,
@@ -868,8 +850,8 @@ export class MongoDBResourcesImpl {
868
850
  spec: migrateMongoDBCollectionToManualThroughputOperationSpec,
869
851
  });
870
852
  const poller = await createHttpPoller(lro, {
871
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
872
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
853
+ restoreFrom: options?.resumeFrom,
854
+ intervalInMs: options?.updateIntervalInMs,
873
855
  });
874
856
  await poller.poll();
875
857
  return poller;
@@ -910,14 +892,19 @@ export class MongoDBResourcesImpl {
910
892
  return this.client.sendOperationRequest(args, spec);
911
893
  };
912
894
  const sendOperationFn = async (args, spec) => {
913
- var _a;
914
895
  let currentRawResponse = undefined;
915
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
896
+ const providedCallback = args.options?.onResponse;
916
897
  const callback = (rawResponse, flatResponse) => {
917
898
  currentRawResponse = rawResponse;
918
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
899
+ providedCallback?.(rawResponse, flatResponse);
900
+ };
901
+ const updatedArgs = {
902
+ ...args,
903
+ options: {
904
+ ...args.options,
905
+ onResponse: callback,
906
+ },
919
907
  };
920
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
921
908
  const flatResponse = await directSendOperation(updatedArgs, spec);
922
909
  return {
923
910
  flatResponse,
@@ -940,8 +927,8 @@ export class MongoDBResourcesImpl {
940
927
  spec: createUpdateMongoRoleDefinitionOperationSpec,
941
928
  });
942
929
  const poller = await createHttpPoller(lro, {
943
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
944
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
930
+ restoreFrom: options?.resumeFrom,
931
+ intervalInMs: options?.updateIntervalInMs,
945
932
  });
946
933
  await poller.poll();
947
934
  return poller;
@@ -971,14 +958,19 @@ export class MongoDBResourcesImpl {
971
958
  return this.client.sendOperationRequest(args, spec);
972
959
  };
973
960
  const sendOperationFn = async (args, spec) => {
974
- var _a;
975
961
  let currentRawResponse = undefined;
976
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
962
+ const providedCallback = args.options?.onResponse;
977
963
  const callback = (rawResponse, flatResponse) => {
978
964
  currentRawResponse = rawResponse;
979
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
965
+ providedCallback?.(rawResponse, flatResponse);
966
+ };
967
+ const updatedArgs = {
968
+ ...args,
969
+ options: {
970
+ ...args.options,
971
+ onResponse: callback,
972
+ },
980
973
  };
981
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
982
974
  const flatResponse = await directSendOperation(updatedArgs, spec);
983
975
  return {
984
976
  flatResponse,
@@ -995,8 +987,8 @@ export class MongoDBResourcesImpl {
995
987
  spec: deleteMongoRoleDefinitionOperationSpec,
996
988
  });
997
989
  const poller = await createHttpPoller(lro, {
998
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
999
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
990
+ restoreFrom: options?.resumeFrom,
991
+ intervalInMs: options?.updateIntervalInMs,
1000
992
  });
1001
993
  await poller.poll();
1002
994
  return poller;
@@ -1045,14 +1037,19 @@ export class MongoDBResourcesImpl {
1045
1037
  return this.client.sendOperationRequest(args, spec);
1046
1038
  };
1047
1039
  const sendOperationFn = async (args, spec) => {
1048
- var _a;
1049
1040
  let currentRawResponse = undefined;
1050
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1041
+ const providedCallback = args.options?.onResponse;
1051
1042
  const callback = (rawResponse, flatResponse) => {
1052
1043
  currentRawResponse = rawResponse;
1053
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1044
+ providedCallback?.(rawResponse, flatResponse);
1045
+ };
1046
+ const updatedArgs = {
1047
+ ...args,
1048
+ options: {
1049
+ ...args.options,
1050
+ onResponse: callback,
1051
+ },
1054
1052
  };
1055
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1056
1053
  const flatResponse = await directSendOperation(updatedArgs, spec);
1057
1054
  return {
1058
1055
  flatResponse,
@@ -1075,8 +1072,8 @@ export class MongoDBResourcesImpl {
1075
1072
  spec: createUpdateMongoUserDefinitionOperationSpec,
1076
1073
  });
1077
1074
  const poller = await createHttpPoller(lro, {
1078
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1079
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1075
+ restoreFrom: options?.resumeFrom,
1076
+ intervalInMs: options?.updateIntervalInMs,
1080
1077
  });
1081
1078
  await poller.poll();
1082
1079
  return poller;
@@ -1106,14 +1103,19 @@ export class MongoDBResourcesImpl {
1106
1103
  return this.client.sendOperationRequest(args, spec);
1107
1104
  };
1108
1105
  const sendOperationFn = async (args, spec) => {
1109
- var _a;
1110
1106
  let currentRawResponse = undefined;
1111
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1107
+ const providedCallback = args.options?.onResponse;
1112
1108
  const callback = (rawResponse, flatResponse) => {
1113
1109
  currentRawResponse = rawResponse;
1114
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1110
+ providedCallback?.(rawResponse, flatResponse);
1111
+ };
1112
+ const updatedArgs = {
1113
+ ...args,
1114
+ options: {
1115
+ ...args.options,
1116
+ onResponse: callback,
1117
+ },
1115
1118
  };
1116
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1117
1119
  const flatResponse = await directSendOperation(updatedArgs, spec);
1118
1120
  return {
1119
1121
  flatResponse,
@@ -1130,8 +1132,8 @@ export class MongoDBResourcesImpl {
1130
1132
  spec: deleteMongoUserDefinitionOperationSpec,
1131
1133
  });
1132
1134
  const poller = await createHttpPoller(lro, {
1133
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1134
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1135
+ restoreFrom: options?.resumeFrom,
1136
+ intervalInMs: options?.updateIntervalInMs,
1135
1137
  });
1136
1138
  await poller.poll();
1137
1139
  return poller;
@@ -1170,14 +1172,19 @@ export class MongoDBResourcesImpl {
1170
1172
  return this.client.sendOperationRequest(args, spec);
1171
1173
  };
1172
1174
  const sendOperationFn = async (args, spec) => {
1173
- var _a;
1174
1175
  let currentRawResponse = undefined;
1175
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1176
+ const providedCallback = args.options?.onResponse;
1176
1177
  const callback = (rawResponse, flatResponse) => {
1177
1178
  currentRawResponse = rawResponse;
1178
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1179
+ providedCallback?.(rawResponse, flatResponse);
1180
+ };
1181
+ const updatedArgs = {
1182
+ ...args,
1183
+ options: {
1184
+ ...args.options,
1185
+ onResponse: callback,
1186
+ },
1179
1187
  };
1180
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1181
1188
  const flatResponse = await directSendOperation(updatedArgs, spec);
1182
1189
  return {
1183
1190
  flatResponse,
@@ -1201,8 +1208,8 @@ export class MongoDBResourcesImpl {
1201
1208
  spec: retrieveContinuousBackupInformationOperationSpec,
1202
1209
  });
1203
1210
  const poller = await createHttpPoller(lro, {
1204
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1205
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1211
+ restoreFrom: options?.resumeFrom,
1212
+ intervalInMs: options?.updateIntervalInMs,
1206
1213
  resourceLocationConfig: "location",
1207
1214
  });
1208
1215
  await poller.poll();