@azure/arm-cosmosdb 16.3.0-alpha.20250718.1 → 16.3.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 (330) 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 +1 -1
  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
@@ -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 DatabaseAccounts operations. */
16
15
  export class DatabaseAccountsImpl {
16
+ client;
17
17
  /**
18
18
  * Initialize a new instance of the class DatabaseAccounts class.
19
19
  * @param client Reference to the service client
@@ -35,39 +35,22 @@ export class DatabaseAccountsImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listPagingPage(options, settings);
42
42
  },
43
43
  };
44
44
  }
45
- listPagingPage(options, _settings) {
46
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
47
- let result;
48
- result = yield __await(this._list(options));
49
- yield yield __await(result.value || []);
50
- });
45
+ async *listPagingPage(options, _settings) {
46
+ let result;
47
+ result = await this._list(options);
48
+ yield result.value || [];
51
49
  }
52
- listPagingAll(options) {
53
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
- var _a, e_1, _b, _c;
55
- try {
56
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
57
- _c = _f.value;
58
- _d = false;
59
- const page = _c;
60
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
- }
62
- }
63
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
- finally {
65
- try {
66
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
67
- }
68
- finally { if (e_1) throw e_1.error; }
69
- }
70
- });
50
+ async *listPagingAll(options) {
51
+ for await (const page of this.listPagingPage(options)) {
52
+ yield* page;
53
+ }
71
54
  }
72
55
  /**
73
56
  * Lists all the Azure Cosmos DB database accounts available under the given resource group.
@@ -84,39 +67,22 @@ export class DatabaseAccountsImpl {
84
67
  return this;
85
68
  },
86
69
  byPage: (settings) => {
87
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
70
+ if (settings?.maxPageSize) {
88
71
  throw new Error("maxPageSize is not supported by this operation.");
89
72
  }
90
73
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
91
74
  },
92
75
  };
93
76
  }
94
- listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
95
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
96
- let result;
97
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
98
- yield yield __await(result.value || []);
99
- });
77
+ async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
78
+ let result;
79
+ result = await this._listByResourceGroup(resourceGroupName, options);
80
+ yield result.value || [];
100
81
  }
101
- listByResourceGroupPagingAll(resourceGroupName, options) {
102
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
103
- var _a, e_2, _b, _c;
104
- try {
105
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
106
- _c = _f.value;
107
- _d = false;
108
- const page = _c;
109
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
110
- }
111
- }
112
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
113
- finally {
114
- try {
115
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
116
- }
117
- finally { if (e_2) throw e_2.error; }
118
- }
119
- });
82
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
83
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
84
+ yield* page;
85
+ }
120
86
  }
121
87
  /**
122
88
  * Retrieves the metrics determined by the given filter for the given database account.
@@ -137,39 +103,22 @@ export class DatabaseAccountsImpl {
137
103
  return this;
138
104
  },
139
105
  byPage: (settings) => {
140
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
106
+ if (settings?.maxPageSize) {
141
107
  throw new Error("maxPageSize is not supported by this operation.");
142
108
  }
143
109
  return this.listMetricsPagingPage(resourceGroupName, accountName, filter, options, settings);
144
110
  },
145
111
  };
146
112
  }
147
- listMetricsPagingPage(resourceGroupName, accountName, filter, options, _settings) {
148
- return __asyncGenerator(this, arguments, function* listMetricsPagingPage_1() {
149
- let result;
150
- result = yield __await(this._listMetrics(resourceGroupName, accountName, filter, options));
151
- yield yield __await(result.value || []);
152
- });
113
+ async *listMetricsPagingPage(resourceGroupName, accountName, filter, options, _settings) {
114
+ let result;
115
+ result = await this._listMetrics(resourceGroupName, accountName, filter, options);
116
+ yield result.value || [];
153
117
  }
154
- listMetricsPagingAll(resourceGroupName, accountName, filter, options) {
155
- return __asyncGenerator(this, arguments, function* listMetricsPagingAll_1() {
156
- var _a, e_3, _b, _c;
157
- try {
158
- for (var _d = true, _e = __asyncValues(this.listMetricsPagingPage(resourceGroupName, accountName, filter, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
159
- _c = _f.value;
160
- _d = false;
161
- const page = _c;
162
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
163
- }
164
- }
165
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
166
- finally {
167
- try {
168
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
169
- }
170
- finally { if (e_3) throw e_3.error; }
171
- }
172
- });
118
+ async *listMetricsPagingAll(resourceGroupName, accountName, filter, options) {
119
+ for await (const page of this.listMetricsPagingPage(resourceGroupName, accountName, filter, options)) {
120
+ yield* page;
121
+ }
173
122
  }
174
123
  /**
175
124
  * Retrieves the usages (most recent data) for the given database account.
@@ -187,39 +136,22 @@ export class DatabaseAccountsImpl {
187
136
  return this;
188
137
  },
189
138
  byPage: (settings) => {
190
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
139
+ if (settings?.maxPageSize) {
191
140
  throw new Error("maxPageSize is not supported by this operation.");
192
141
  }
193
142
  return this.listUsagesPagingPage(resourceGroupName, accountName, options, settings);
194
143
  },
195
144
  };
196
145
  }
197
- listUsagesPagingPage(resourceGroupName, accountName, options, _settings) {
198
- return __asyncGenerator(this, arguments, function* listUsagesPagingPage_1() {
199
- let result;
200
- result = yield __await(this._listUsages(resourceGroupName, accountName, options));
201
- yield yield __await(result.value || []);
202
- });
146
+ async *listUsagesPagingPage(resourceGroupName, accountName, options, _settings) {
147
+ let result;
148
+ result = await this._listUsages(resourceGroupName, accountName, options);
149
+ yield result.value || [];
203
150
  }
204
- listUsagesPagingAll(resourceGroupName, accountName, options) {
205
- return __asyncGenerator(this, arguments, function* listUsagesPagingAll_1() {
206
- var _a, e_4, _b, _c;
207
- try {
208
- for (var _d = true, _e = __asyncValues(this.listUsagesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
209
- _c = _f.value;
210
- _d = false;
211
- const page = _c;
212
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
213
- }
214
- }
215
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
216
- finally {
217
- try {
218
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
219
- }
220
- finally { if (e_4) throw e_4.error; }
221
- }
222
- });
151
+ async *listUsagesPagingAll(resourceGroupName, accountName, options) {
152
+ for await (const page of this.listUsagesPagingPage(resourceGroupName, accountName, options)) {
153
+ yield* page;
154
+ }
223
155
  }
224
156
  /**
225
157
  * Retrieves metric definitions for the given database account.
@@ -237,39 +169,22 @@ export class DatabaseAccountsImpl {
237
169
  return this;
238
170
  },
239
171
  byPage: (settings) => {
240
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
172
+ if (settings?.maxPageSize) {
241
173
  throw new Error("maxPageSize is not supported by this operation.");
242
174
  }
243
175
  return this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
244
176
  },
245
177
  };
246
178
  }
247
- listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
248
- return __asyncGenerator(this, arguments, function* listMetricDefinitionsPagingPage_1() {
249
- let result;
250
- result = yield __await(this._listMetricDefinitions(resourceGroupName, accountName, options));
251
- yield yield __await(result.value || []);
252
- });
179
+ async *listMetricDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
180
+ let result;
181
+ result = await this._listMetricDefinitions(resourceGroupName, accountName, options);
182
+ yield result.value || [];
253
183
  }
254
- listMetricDefinitionsPagingAll(resourceGroupName, accountName, options) {
255
- return __asyncGenerator(this, arguments, function* listMetricDefinitionsPagingAll_1() {
256
- var _a, e_5, _b, _c;
257
- try {
258
- for (var _d = true, _e = __asyncValues(this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
259
- _c = _f.value;
260
- _d = false;
261
- const page = _c;
262
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
263
- }
264
- }
265
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
266
- finally {
267
- try {
268
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
269
- }
270
- finally { if (e_5) throw e_5.error; }
271
- }
272
- });
184
+ async *listMetricDefinitionsPagingAll(resourceGroupName, accountName, options) {
185
+ for await (const page of this.listMetricDefinitionsPagingPage(resourceGroupName, accountName, options)) {
186
+ yield* page;
187
+ }
273
188
  }
274
189
  /**
275
190
  * Retrieves the properties of an existing Azure Cosmos DB database account.
@@ -292,14 +207,19 @@ export class DatabaseAccountsImpl {
292
207
  return this.client.sendOperationRequest(args, spec);
293
208
  };
294
209
  const sendOperationFn = async (args, spec) => {
295
- var _a;
296
210
  let currentRawResponse = undefined;
297
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
211
+ const providedCallback = args.options?.onResponse;
298
212
  const callback = (rawResponse, flatResponse) => {
299
213
  currentRawResponse = rawResponse;
300
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
214
+ providedCallback?.(rawResponse, flatResponse);
215
+ };
216
+ const updatedArgs = {
217
+ ...args,
218
+ options: {
219
+ ...args.options,
220
+ onResponse: callback,
221
+ },
301
222
  };
302
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
303
223
  const flatResponse = await directSendOperation(updatedArgs, spec);
304
224
  return {
305
225
  flatResponse,
@@ -316,8 +236,8 @@ export class DatabaseAccountsImpl {
316
236
  spec: updateOperationSpec,
317
237
  });
318
238
  const poller = await createHttpPoller(lro, {
319
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
320
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
239
+ restoreFrom: options?.resumeFrom,
240
+ intervalInMs: options?.updateIntervalInMs,
321
241
  });
322
242
  await poller.poll();
323
243
  return poller;
@@ -346,14 +266,19 @@ export class DatabaseAccountsImpl {
346
266
  return this.client.sendOperationRequest(args, spec);
347
267
  };
348
268
  const sendOperationFn = async (args, spec) => {
349
- var _a;
350
269
  let currentRawResponse = undefined;
351
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
270
+ const providedCallback = args.options?.onResponse;
352
271
  const callback = (rawResponse, flatResponse) => {
353
272
  currentRawResponse = rawResponse;
354
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
273
+ providedCallback?.(rawResponse, flatResponse);
274
+ };
275
+ const updatedArgs = {
276
+ ...args,
277
+ options: {
278
+ ...args.options,
279
+ onResponse: callback,
280
+ },
355
281
  };
356
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
357
282
  const flatResponse = await directSendOperation(updatedArgs, spec);
358
283
  return {
359
284
  flatResponse,
@@ -370,8 +295,8 @@ export class DatabaseAccountsImpl {
370
295
  spec: createOrUpdateOperationSpec,
371
296
  });
372
297
  const poller = await createHttpPoller(lro, {
373
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
374
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
298
+ restoreFrom: options?.resumeFrom,
299
+ intervalInMs: options?.updateIntervalInMs,
375
300
  });
376
301
  await poller.poll();
377
302
  return poller;
@@ -399,14 +324,19 @@ export class DatabaseAccountsImpl {
399
324
  return this.client.sendOperationRequest(args, spec);
400
325
  };
401
326
  const sendOperationFn = async (args, spec) => {
402
- var _a;
403
327
  let currentRawResponse = undefined;
404
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
328
+ const providedCallback = args.options?.onResponse;
405
329
  const callback = (rawResponse, flatResponse) => {
406
330
  currentRawResponse = rawResponse;
407
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
331
+ providedCallback?.(rawResponse, flatResponse);
332
+ };
333
+ const updatedArgs = {
334
+ ...args,
335
+ options: {
336
+ ...args.options,
337
+ onResponse: callback,
338
+ },
408
339
  };
409
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
410
340
  const flatResponse = await directSendOperation(updatedArgs, spec);
411
341
  return {
412
342
  flatResponse,
@@ -423,8 +353,8 @@ export class DatabaseAccountsImpl {
423
353
  spec: deleteOperationSpec,
424
354
  });
425
355
  const poller = await createHttpPoller(lro, {
426
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
427
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
356
+ restoreFrom: options?.resumeFrom,
357
+ intervalInMs: options?.updateIntervalInMs,
428
358
  });
429
359
  await poller.poll();
430
360
  return poller;
@@ -454,14 +384,19 @@ export class DatabaseAccountsImpl {
454
384
  return this.client.sendOperationRequest(args, spec);
455
385
  };
456
386
  const sendOperationFn = async (args, spec) => {
457
- var _a;
458
387
  let currentRawResponse = undefined;
459
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
388
+ const providedCallback = args.options?.onResponse;
460
389
  const callback = (rawResponse, flatResponse) => {
461
390
  currentRawResponse = rawResponse;
462
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
391
+ providedCallback?.(rawResponse, flatResponse);
392
+ };
393
+ const updatedArgs = {
394
+ ...args,
395
+ options: {
396
+ ...args.options,
397
+ onResponse: callback,
398
+ },
463
399
  };
464
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
465
400
  const flatResponse = await directSendOperation(updatedArgs, spec);
466
401
  return {
467
402
  flatResponse,
@@ -478,8 +413,8 @@ export class DatabaseAccountsImpl {
478
413
  spec: failoverPriorityChangeOperationSpec,
479
414
  });
480
415
  const poller = await createHttpPoller(lro, {
481
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
482
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
416
+ restoreFrom: options?.resumeFrom,
417
+ intervalInMs: options?.updateIntervalInMs,
483
418
  });
484
419
  await poller.poll();
485
420
  return poller;
@@ -543,14 +478,19 @@ export class DatabaseAccountsImpl {
543
478
  return this.client.sendOperationRequest(args, spec);
544
479
  };
545
480
  const sendOperationFn = async (args, spec) => {
546
- var _a;
547
481
  let currentRawResponse = undefined;
548
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
482
+ const providedCallback = args.options?.onResponse;
549
483
  const callback = (rawResponse, flatResponse) => {
550
484
  currentRawResponse = rawResponse;
551
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
485
+ providedCallback?.(rawResponse, flatResponse);
486
+ };
487
+ const updatedArgs = {
488
+ ...args,
489
+ options: {
490
+ ...args.options,
491
+ onResponse: callback,
492
+ },
552
493
  };
553
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
554
494
  const flatResponse = await directSendOperation(updatedArgs, spec);
555
495
  return {
556
496
  flatResponse,
@@ -572,8 +512,8 @@ export class DatabaseAccountsImpl {
572
512
  spec: offlineRegionOperationSpec,
573
513
  });
574
514
  const poller = await createHttpPoller(lro, {
575
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
576
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
515
+ restoreFrom: options?.resumeFrom,
516
+ intervalInMs: options?.updateIntervalInMs,
577
517
  });
578
518
  await poller.poll();
579
519
  return poller;
@@ -601,14 +541,19 @@ export class DatabaseAccountsImpl {
601
541
  return this.client.sendOperationRequest(args, spec);
602
542
  };
603
543
  const sendOperationFn = async (args, spec) => {
604
- var _a;
605
544
  let currentRawResponse = undefined;
606
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
545
+ const providedCallback = args.options?.onResponse;
607
546
  const callback = (rawResponse, flatResponse) => {
608
547
  currentRawResponse = rawResponse;
609
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
548
+ providedCallback?.(rawResponse, flatResponse);
549
+ };
550
+ const updatedArgs = {
551
+ ...args,
552
+ options: {
553
+ ...args.options,
554
+ onResponse: callback,
555
+ },
610
556
  };
611
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
612
557
  const flatResponse = await directSendOperation(updatedArgs, spec);
613
558
  return {
614
559
  flatResponse,
@@ -630,8 +575,8 @@ export class DatabaseAccountsImpl {
630
575
  spec: onlineRegionOperationSpec,
631
576
  });
632
577
  const poller = await createHttpPoller(lro, {
633
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
634
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
578
+ restoreFrom: options?.resumeFrom,
579
+ intervalInMs: options?.updateIntervalInMs,
635
580
  });
636
581
  await poller.poll();
637
582
  return poller;
@@ -677,14 +622,19 @@ export class DatabaseAccountsImpl {
677
622
  return this.client.sendOperationRequest(args, spec);
678
623
  };
679
624
  const sendOperationFn = async (args, spec) => {
680
- var _a;
681
625
  let currentRawResponse = undefined;
682
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
626
+ const providedCallback = args.options?.onResponse;
683
627
  const callback = (rawResponse, flatResponse) => {
684
628
  currentRawResponse = rawResponse;
685
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
629
+ providedCallback?.(rawResponse, flatResponse);
630
+ };
631
+ const updatedArgs = {
632
+ ...args,
633
+ options: {
634
+ ...args.options,
635
+ onResponse: callback,
636
+ },
686
637
  };
687
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
688
638
  const flatResponse = await directSendOperation(updatedArgs, spec);
689
639
  return {
690
640
  flatResponse,
@@ -701,8 +651,8 @@ export class DatabaseAccountsImpl {
701
651
  spec: regenerateKeyOperationSpec,
702
652
  });
703
653
  const poller = await createHttpPoller(lro, {
704
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
705
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
654
+ restoreFrom: options?.resumeFrom,
655
+ intervalInMs: options?.updateIntervalInMs,
706
656
  });
707
657
  await poller.poll();
708
658
  return poller;