@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 SqlResources operations. */
16
15
  export class SqlResourcesImpl {
16
+ client;
17
17
  /**
18
18
  * Initialize a new instance of the class SqlResources class.
19
19
  * @param client Reference to the service client
@@ -37,39 +37,22 @@ export class SqlResourcesImpl {
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.listSqlDatabasesPagingPage(resourceGroupName, accountName, options, settings);
44
44
  },
45
45
  };
46
46
  }
47
- listSqlDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
48
- return __asyncGenerator(this, arguments, function* listSqlDatabasesPagingPage_1() {
49
- let result;
50
- result = yield __await(this._listSqlDatabases(resourceGroupName, accountName, options));
51
- yield yield __await(result.value || []);
52
- });
47
+ async *listSqlDatabasesPagingPage(resourceGroupName, accountName, options, _settings) {
48
+ let result;
49
+ result = await this._listSqlDatabases(resourceGroupName, accountName, options);
50
+ yield result.value || [];
53
51
  }
54
- listSqlDatabasesPagingAll(resourceGroupName, accountName, options) {
55
- return __asyncGenerator(this, arguments, function* listSqlDatabasesPagingAll_1() {
56
- var _a, e_1, _b, _c;
57
- try {
58
- for (var _d = true, _e = __asyncValues(this.listSqlDatabasesPagingPage(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 *listSqlDatabasesPagingAll(resourceGroupName, accountName, options) {
53
+ for await (const page of this.listSqlDatabasesPagingPage(resourceGroupName, accountName, options)) {
54
+ yield* page;
55
+ }
73
56
  }
74
57
  /**
75
58
  * Lists the SQL container under an existing Azure Cosmos DB database account.
@@ -88,39 +71,22 @@ export class SqlResourcesImpl {
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.listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, settings);
95
78
  },
96
79
  };
97
80
  }
98
- listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
99
- return __asyncGenerator(this, arguments, function* listSqlContainersPagingPage_1() {
100
- let result;
101
- result = yield __await(this._listSqlContainers(resourceGroupName, accountName, databaseName, options));
102
- yield yield __await(result.value || []);
103
- });
81
+ async *listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
82
+ let result;
83
+ result = await this._listSqlContainers(resourceGroupName, accountName, databaseName, options);
84
+ yield result.value || [];
104
85
  }
105
- listSqlContainersPagingAll(resourceGroupName, accountName, databaseName, options) {
106
- return __asyncGenerator(this, arguments, function* listSqlContainersPagingAll_1() {
107
- var _a, e_2, _b, _c;
108
- try {
109
- for (var _d = true, _e = __asyncValues(this.listSqlContainersPagingPage(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 *listSqlContainersPagingAll(resourceGroupName, accountName, databaseName, options) {
87
+ for await (const page of this.listSqlContainersPagingPage(resourceGroupName, accountName, databaseName, options)) {
88
+ yield* page;
89
+ }
124
90
  }
125
91
  /**
126
92
  * Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database.
@@ -139,39 +105,22 @@ export class SqlResourcesImpl {
139
105
  return this;
140
106
  },
141
107
  byPage: (settings) => {
142
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
108
+ if (settings?.maxPageSize) {
143
109
  throw new Error("maxPageSize is not supported by this operation.");
144
110
  }
145
111
  return this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, settings);
146
112
  },
147
113
  };
148
114
  }
149
- listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
150
- return __asyncGenerator(this, arguments, function* listClientEncryptionKeysPagingPage_1() {
151
- let result;
152
- result = yield __await(this._listClientEncryptionKeys(resourceGroupName, accountName, databaseName, options));
153
- yield yield __await(result.value || []);
154
- });
115
+ async *listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options, _settings) {
116
+ let result;
117
+ result = await this._listClientEncryptionKeys(resourceGroupName, accountName, databaseName, options);
118
+ yield result.value || [];
155
119
  }
156
- listClientEncryptionKeysPagingAll(resourceGroupName, accountName, databaseName, options) {
157
- return __asyncGenerator(this, arguments, function* listClientEncryptionKeysPagingAll_1() {
158
- var _a, e_3, _b, _c;
159
- try {
160
- for (var _d = true, _e = __asyncValues(this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
161
- _c = _f.value;
162
- _d = false;
163
- const page = _c;
164
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
165
- }
166
- }
167
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
168
- finally {
169
- try {
170
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
171
- }
172
- finally { if (e_3) throw e_3.error; }
173
- }
174
- });
120
+ async *listClientEncryptionKeysPagingAll(resourceGroupName, accountName, databaseName, options) {
121
+ for await (const page of this.listClientEncryptionKeysPagingPage(resourceGroupName, accountName, databaseName, options)) {
122
+ yield* page;
123
+ }
175
124
  }
176
125
  /**
177
126
  * Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.
@@ -191,39 +140,22 @@ export class SqlResourcesImpl {
191
140
  return this;
192
141
  },
193
142
  byPage: (settings) => {
194
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
143
+ if (settings?.maxPageSize) {
195
144
  throw new Error("maxPageSize is not supported by this operation.");
196
145
  }
197
146
  return this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
198
147
  },
199
148
  };
200
149
  }
201
- listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
202
- return __asyncGenerator(this, arguments, function* listSqlStoredProceduresPagingPage_1() {
203
- let result;
204
- result = yield __await(this._listSqlStoredProcedures(resourceGroupName, accountName, databaseName, containerName, options));
205
- yield yield __await(result.value || []);
206
- });
150
+ async *listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
151
+ let result;
152
+ result = await this._listSqlStoredProcedures(resourceGroupName, accountName, databaseName, containerName, options);
153
+ yield result.value || [];
207
154
  }
208
- listSqlStoredProceduresPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
209
- return __asyncGenerator(this, arguments, function* listSqlStoredProceduresPagingAll_1() {
210
- var _a, e_4, _b, _c;
211
- try {
212
- for (var _d = true, _e = __asyncValues(this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
213
- _c = _f.value;
214
- _d = false;
215
- const page = _c;
216
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
217
- }
218
- }
219
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
220
- finally {
221
- try {
222
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
223
- }
224
- finally { if (e_4) throw e_4.error; }
225
- }
226
- });
155
+ async *listSqlStoredProceduresPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
156
+ for await (const page of this.listSqlStoredProceduresPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
157
+ yield* page;
158
+ }
227
159
  }
228
160
  /**
229
161
  * Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
@@ -243,39 +175,22 @@ export class SqlResourcesImpl {
243
175
  return this;
244
176
  },
245
177
  byPage: (settings) => {
246
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
178
+ if (settings?.maxPageSize) {
247
179
  throw new Error("maxPageSize is not supported by this operation.");
248
180
  }
249
181
  return this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
250
182
  },
251
183
  };
252
184
  }
253
- listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
254
- return __asyncGenerator(this, arguments, function* listSqlUserDefinedFunctionsPagingPage_1() {
255
- let result;
256
- result = yield __await(this._listSqlUserDefinedFunctions(resourceGroupName, accountName, databaseName, containerName, options));
257
- yield yield __await(result.value || []);
258
- });
185
+ async *listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
186
+ let result;
187
+ result = await this._listSqlUserDefinedFunctions(resourceGroupName, accountName, databaseName, containerName, options);
188
+ yield result.value || [];
259
189
  }
260
- listSqlUserDefinedFunctionsPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
261
- return __asyncGenerator(this, arguments, function* listSqlUserDefinedFunctionsPagingAll_1() {
262
- var _a, e_5, _b, _c;
263
- try {
264
- for (var _d = true, _e = __asyncValues(this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
265
- _c = _f.value;
266
- _d = false;
267
- const page = _c;
268
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
269
- }
270
- }
271
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
272
- finally {
273
- try {
274
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
275
- }
276
- finally { if (e_5) throw e_5.error; }
277
- }
278
- });
190
+ async *listSqlUserDefinedFunctionsPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
191
+ for await (const page of this.listSqlUserDefinedFunctionsPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
192
+ yield* page;
193
+ }
279
194
  }
280
195
  /**
281
196
  * Lists the SQL trigger under an existing Azure Cosmos DB database account.
@@ -295,39 +210,22 @@ export class SqlResourcesImpl {
295
210
  return this;
296
211
  },
297
212
  byPage: (settings) => {
298
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
213
+ if (settings?.maxPageSize) {
299
214
  throw new Error("maxPageSize is not supported by this operation.");
300
215
  }
301
216
  return this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, settings);
302
217
  },
303
218
  };
304
219
  }
305
- listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
306
- return __asyncGenerator(this, arguments, function* listSqlTriggersPagingPage_1() {
307
- let result;
308
- result = yield __await(this._listSqlTriggers(resourceGroupName, accountName, databaseName, containerName, options));
309
- yield yield __await(result.value || []);
310
- });
220
+ async *listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options, _settings) {
221
+ let result;
222
+ result = await this._listSqlTriggers(resourceGroupName, accountName, databaseName, containerName, options);
223
+ yield result.value || [];
311
224
  }
312
- listSqlTriggersPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
313
- return __asyncGenerator(this, arguments, function* listSqlTriggersPagingAll_1() {
314
- var _a, e_6, _b, _c;
315
- try {
316
- for (var _d = true, _e = __asyncValues(this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
317
- _c = _f.value;
318
- _d = false;
319
- const page = _c;
320
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
321
- }
322
- }
323
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
324
- finally {
325
- try {
326
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
327
- }
328
- finally { if (e_6) throw e_6.error; }
329
- }
330
- });
225
+ async *listSqlTriggersPagingAll(resourceGroupName, accountName, databaseName, containerName, options) {
226
+ for await (const page of this.listSqlTriggersPagingPage(resourceGroupName, accountName, databaseName, containerName, options)) {
227
+ yield* page;
228
+ }
331
229
  }
332
230
  /**
333
231
  * Retrieves the list of all Azure Cosmos DB SQL Role Definitions.
@@ -345,39 +243,22 @@ export class SqlResourcesImpl {
345
243
  return this;
346
244
  },
347
245
  byPage: (settings) => {
348
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
246
+ if (settings?.maxPageSize) {
349
247
  throw new Error("maxPageSize is not supported by this operation.");
350
248
  }
351
249
  return this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, settings);
352
250
  },
353
251
  };
354
252
  }
355
- listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
356
- return __asyncGenerator(this, arguments, function* listSqlRoleDefinitionsPagingPage_1() {
357
- let result;
358
- result = yield __await(this._listSqlRoleDefinitions(resourceGroupName, accountName, options));
359
- yield yield __await(result.value || []);
360
- });
253
+ async *listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options, _settings) {
254
+ let result;
255
+ result = await this._listSqlRoleDefinitions(resourceGroupName, accountName, options);
256
+ yield result.value || [];
361
257
  }
362
- listSqlRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
363
- return __asyncGenerator(this, arguments, function* listSqlRoleDefinitionsPagingAll_1() {
364
- var _a, e_7, _b, _c;
365
- try {
366
- for (var _d = true, _e = __asyncValues(this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
367
- _c = _f.value;
368
- _d = false;
369
- const page = _c;
370
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
371
- }
372
- }
373
- catch (e_7_1) { e_7 = { error: e_7_1 }; }
374
- finally {
375
- try {
376
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
377
- }
378
- finally { if (e_7) throw e_7.error; }
379
- }
380
- });
258
+ async *listSqlRoleDefinitionsPagingAll(resourceGroupName, accountName, options) {
259
+ for await (const page of this.listSqlRoleDefinitionsPagingPage(resourceGroupName, accountName, options)) {
260
+ yield* page;
261
+ }
381
262
  }
382
263
  /**
383
264
  * Retrieves the list of all Azure Cosmos DB SQL Role Assignments.
@@ -395,39 +276,22 @@ export class SqlResourcesImpl {
395
276
  return this;
396
277
  },
397
278
  byPage: (settings) => {
398
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
279
+ if (settings?.maxPageSize) {
399
280
  throw new Error("maxPageSize is not supported by this operation.");
400
281
  }
401
282
  return this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, settings);
402
283
  },
403
284
  };
404
285
  }
405
- listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, _settings) {
406
- return __asyncGenerator(this, arguments, function* listSqlRoleAssignmentsPagingPage_1() {
407
- let result;
408
- result = yield __await(this._listSqlRoleAssignments(resourceGroupName, accountName, options));
409
- yield yield __await(result.value || []);
410
- });
286
+ async *listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options, _settings) {
287
+ let result;
288
+ result = await this._listSqlRoleAssignments(resourceGroupName, accountName, options);
289
+ yield result.value || [];
411
290
  }
412
- listSqlRoleAssignmentsPagingAll(resourceGroupName, accountName, options) {
413
- return __asyncGenerator(this, arguments, function* listSqlRoleAssignmentsPagingAll_1() {
414
- var _a, e_8, _b, _c;
415
- try {
416
- for (var _d = true, _e = __asyncValues(this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
417
- _c = _f.value;
418
- _d = false;
419
- const page = _c;
420
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
421
- }
422
- }
423
- catch (e_8_1) { e_8 = { error: e_8_1 }; }
424
- finally {
425
- try {
426
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
427
- }
428
- finally { if (e_8) throw e_8.error; }
429
- }
430
- });
291
+ async *listSqlRoleAssignmentsPagingAll(resourceGroupName, accountName, options) {
292
+ for await (const page of this.listSqlRoleAssignmentsPagingPage(resourceGroupName, accountName, options)) {
293
+ yield* page;
294
+ }
431
295
  }
432
296
  /**
433
297
  * Lists the SQL databases under an existing Azure Cosmos DB database account.
@@ -461,14 +325,19 @@ export class SqlResourcesImpl {
461
325
  return this.client.sendOperationRequest(args, spec);
462
326
  };
463
327
  const sendOperationFn = async (args, spec) => {
464
- var _a;
465
328
  let currentRawResponse = undefined;
466
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
329
+ const providedCallback = args.options?.onResponse;
467
330
  const callback = (rawResponse, flatResponse) => {
468
331
  currentRawResponse = rawResponse;
469
- 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
+ },
470
340
  };
471
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
472
341
  const flatResponse = await directSendOperation(updatedArgs, spec);
473
342
  return {
474
343
  flatResponse,
@@ -491,8 +360,8 @@ export class SqlResourcesImpl {
491
360
  spec: createUpdateSqlDatabaseOperationSpec,
492
361
  });
493
362
  const poller = await createHttpPoller(lro, {
494
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
495
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
363
+ restoreFrom: options?.resumeFrom,
364
+ intervalInMs: options?.updateIntervalInMs,
496
365
  });
497
366
  await poller.poll();
498
367
  return poller;
@@ -521,14 +390,19 @@ export class SqlResourcesImpl {
521
390
  return this.client.sendOperationRequest(args, spec);
522
391
  };
523
392
  const sendOperationFn = async (args, spec) => {
524
- var _a;
525
393
  let currentRawResponse = undefined;
526
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
394
+ const providedCallback = args.options?.onResponse;
527
395
  const callback = (rawResponse, flatResponse) => {
528
396
  currentRawResponse = rawResponse;
529
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
397
+ providedCallback?.(rawResponse, flatResponse);
398
+ };
399
+ const updatedArgs = {
400
+ ...args,
401
+ options: {
402
+ ...args.options,
403
+ onResponse: callback,
404
+ },
530
405
  };
531
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
532
406
  const flatResponse = await directSendOperation(updatedArgs, spec);
533
407
  return {
534
408
  flatResponse,
@@ -545,8 +419,8 @@ export class SqlResourcesImpl {
545
419
  spec: deleteSqlDatabaseOperationSpec,
546
420
  });
547
421
  const poller = await createHttpPoller(lro, {
548
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
549
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
422
+ restoreFrom: options?.resumeFrom,
423
+ intervalInMs: options?.updateIntervalInMs,
550
424
  });
551
425
  await poller.poll();
552
426
  return poller;
@@ -587,14 +461,19 @@ export class SqlResourcesImpl {
587
461
  return this.client.sendOperationRequest(args, spec);
588
462
  };
589
463
  const sendOperationFn = async (args, spec) => {
590
- var _a;
591
464
  let currentRawResponse = undefined;
592
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
465
+ const providedCallback = args.options?.onResponse;
593
466
  const callback = (rawResponse, flatResponse) => {
594
467
  currentRawResponse = rawResponse;
595
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
468
+ providedCallback?.(rawResponse, flatResponse);
469
+ };
470
+ const updatedArgs = {
471
+ ...args,
472
+ options: {
473
+ ...args.options,
474
+ onResponse: callback,
475
+ },
596
476
  };
597
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
598
477
  const flatResponse = await directSendOperation(updatedArgs, spec);
599
478
  return {
600
479
  flatResponse,
@@ -617,8 +496,8 @@ export class SqlResourcesImpl {
617
496
  spec: updateSqlDatabaseThroughputOperationSpec,
618
497
  });
619
498
  const poller = await createHttpPoller(lro, {
620
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
621
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
499
+ restoreFrom: options?.resumeFrom,
500
+ intervalInMs: options?.updateIntervalInMs,
622
501
  });
623
502
  await poller.poll();
624
503
  return poller;
@@ -648,14 +527,19 @@ export class SqlResourcesImpl {
648
527
  return this.client.sendOperationRequest(args, spec);
649
528
  };
650
529
  const sendOperationFn = async (args, spec) => {
651
- var _a;
652
530
  let currentRawResponse = undefined;
653
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
531
+ const providedCallback = args.options?.onResponse;
654
532
  const callback = (rawResponse, flatResponse) => {
655
533
  currentRawResponse = rawResponse;
656
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
534
+ providedCallback?.(rawResponse, flatResponse);
535
+ };
536
+ const updatedArgs = {
537
+ ...args,
538
+ options: {
539
+ ...args.options,
540
+ onResponse: callback,
541
+ },
657
542
  };
658
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
659
543
  const flatResponse = await directSendOperation(updatedArgs, spec);
660
544
  return {
661
545
  flatResponse,
@@ -672,8 +556,8 @@ export class SqlResourcesImpl {
672
556
  spec: migrateSqlDatabaseToAutoscaleOperationSpec,
673
557
  });
674
558
  const poller = await createHttpPoller(lro, {
675
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
676
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
559
+ restoreFrom: options?.resumeFrom,
560
+ intervalInMs: options?.updateIntervalInMs,
677
561
  });
678
562
  await poller.poll();
679
563
  return poller;
@@ -701,14 +585,19 @@ export class SqlResourcesImpl {
701
585
  return this.client.sendOperationRequest(args, spec);
702
586
  };
703
587
  const sendOperationFn = async (args, spec) => {
704
- var _a;
705
588
  let currentRawResponse = undefined;
706
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
589
+ const providedCallback = args.options?.onResponse;
707
590
  const callback = (rawResponse, flatResponse) => {
708
591
  currentRawResponse = rawResponse;
709
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
592
+ providedCallback?.(rawResponse, flatResponse);
593
+ };
594
+ const updatedArgs = {
595
+ ...args,
596
+ options: {
597
+ ...args.options,
598
+ onResponse: callback,
599
+ },
710
600
  };
711
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
712
601
  const flatResponse = await directSendOperation(updatedArgs, spec);
713
602
  return {
714
603
  flatResponse,
@@ -725,8 +614,8 @@ export class SqlResourcesImpl {
725
614
  spec: migrateSqlDatabaseToManualThroughputOperationSpec,
726
615
  });
727
616
  const poller = await createHttpPoller(lro, {
728
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
729
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
617
+ restoreFrom: options?.resumeFrom,
618
+ intervalInMs: options?.updateIntervalInMs,
730
619
  });
731
620
  await poller.poll();
732
621
  return poller;
@@ -777,14 +666,19 @@ export class SqlResourcesImpl {
777
666
  return this.client.sendOperationRequest(args, spec);
778
667
  };
779
668
  const sendOperationFn = async (args, spec) => {
780
- var _a;
781
669
  let currentRawResponse = undefined;
782
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
670
+ const providedCallback = args.options?.onResponse;
783
671
  const callback = (rawResponse, flatResponse) => {
784
672
  currentRawResponse = rawResponse;
785
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
673
+ providedCallback?.(rawResponse, flatResponse);
674
+ };
675
+ const updatedArgs = {
676
+ ...args,
677
+ options: {
678
+ ...args.options,
679
+ onResponse: callback,
680
+ },
786
681
  };
787
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
788
682
  const flatResponse = await directSendOperation(updatedArgs, spec);
789
683
  return {
790
684
  flatResponse,
@@ -808,8 +702,8 @@ export class SqlResourcesImpl {
808
702
  spec: createUpdateSqlContainerOperationSpec,
809
703
  });
810
704
  const poller = await createHttpPoller(lro, {
811
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
812
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
705
+ restoreFrom: options?.resumeFrom,
706
+ intervalInMs: options?.updateIntervalInMs,
813
707
  });
814
708
  await poller.poll();
815
709
  return poller;
@@ -840,14 +734,19 @@ export class SqlResourcesImpl {
840
734
  return this.client.sendOperationRequest(args, spec);
841
735
  };
842
736
  const sendOperationFn = async (args, spec) => {
843
- var _a;
844
737
  let currentRawResponse = undefined;
845
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
738
+ const providedCallback = args.options?.onResponse;
846
739
  const callback = (rawResponse, flatResponse) => {
847
740
  currentRawResponse = rawResponse;
848
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
741
+ providedCallback?.(rawResponse, flatResponse);
742
+ };
743
+ const updatedArgs = {
744
+ ...args,
745
+ options: {
746
+ ...args.options,
747
+ onResponse: callback,
748
+ },
849
749
  };
850
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
851
750
  const flatResponse = await directSendOperation(updatedArgs, spec);
852
751
  return {
853
752
  flatResponse,
@@ -870,8 +769,8 @@ export class SqlResourcesImpl {
870
769
  spec: deleteSqlContainerOperationSpec,
871
770
  });
872
771
  const poller = await createHttpPoller(lro, {
873
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
874
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
772
+ restoreFrom: options?.resumeFrom,
773
+ intervalInMs: options?.updateIntervalInMs,
875
774
  });
876
775
  await poller.poll();
877
776
  return poller;
@@ -914,14 +813,19 @@ export class SqlResourcesImpl {
914
813
  return this.client.sendOperationRequest(args, spec);
915
814
  };
916
815
  const sendOperationFn = async (args, spec) => {
917
- var _a;
918
816
  let currentRawResponse = undefined;
919
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
817
+ const providedCallback = args.options?.onResponse;
920
818
  const callback = (rawResponse, flatResponse) => {
921
819
  currentRawResponse = rawResponse;
922
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
820
+ providedCallback?.(rawResponse, flatResponse);
821
+ };
822
+ const updatedArgs = {
823
+ ...args,
824
+ options: {
825
+ ...args.options,
826
+ onResponse: callback,
827
+ },
923
828
  };
924
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
925
829
  const flatResponse = await directSendOperation(updatedArgs, spec);
926
830
  return {
927
831
  flatResponse,
@@ -945,8 +849,8 @@ export class SqlResourcesImpl {
945
849
  spec: updateSqlContainerThroughputOperationSpec,
946
850
  });
947
851
  const poller = await createHttpPoller(lro, {
948
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
949
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
852
+ restoreFrom: options?.resumeFrom,
853
+ intervalInMs: options?.updateIntervalInMs,
950
854
  });
951
855
  await poller.poll();
952
856
  return poller;
@@ -978,14 +882,19 @@ export class SqlResourcesImpl {
978
882
  return this.client.sendOperationRequest(args, spec);
979
883
  };
980
884
  const sendOperationFn = async (args, spec) => {
981
- var _a;
982
885
  let currentRawResponse = undefined;
983
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
886
+ const providedCallback = args.options?.onResponse;
984
887
  const callback = (rawResponse, flatResponse) => {
985
888
  currentRawResponse = rawResponse;
986
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
889
+ providedCallback?.(rawResponse, flatResponse);
890
+ };
891
+ const updatedArgs = {
892
+ ...args,
893
+ options: {
894
+ ...args.options,
895
+ onResponse: callback,
896
+ },
987
897
  };
988
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
989
898
  const flatResponse = await directSendOperation(updatedArgs, spec);
990
899
  return {
991
900
  flatResponse,
@@ -1008,8 +917,8 @@ export class SqlResourcesImpl {
1008
917
  spec: migrateSqlContainerToAutoscaleOperationSpec,
1009
918
  });
1010
919
  const poller = await createHttpPoller(lro, {
1011
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1012
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
920
+ restoreFrom: options?.resumeFrom,
921
+ intervalInMs: options?.updateIntervalInMs,
1013
922
  });
1014
923
  await poller.poll();
1015
924
  return poller;
@@ -1039,14 +948,19 @@ export class SqlResourcesImpl {
1039
948
  return this.client.sendOperationRequest(args, spec);
1040
949
  };
1041
950
  const sendOperationFn = async (args, spec) => {
1042
- var _a;
1043
951
  let currentRawResponse = undefined;
1044
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
952
+ const providedCallback = args.options?.onResponse;
1045
953
  const callback = (rawResponse, flatResponse) => {
1046
954
  currentRawResponse = rawResponse;
1047
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
955
+ providedCallback?.(rawResponse, flatResponse);
956
+ };
957
+ const updatedArgs = {
958
+ ...args,
959
+ options: {
960
+ ...args.options,
961
+ onResponse: callback,
962
+ },
1048
963
  };
1049
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1050
964
  const flatResponse = await directSendOperation(updatedArgs, spec);
1051
965
  return {
1052
966
  flatResponse,
@@ -1069,8 +983,8 @@ export class SqlResourcesImpl {
1069
983
  spec: migrateSqlContainerToManualThroughputOperationSpec,
1070
984
  });
1071
985
  const poller = await createHttpPoller(lro, {
1072
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1073
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
986
+ restoreFrom: options?.resumeFrom,
987
+ intervalInMs: options?.updateIntervalInMs,
1074
988
  });
1075
989
  await poller.poll();
1076
990
  return poller;
@@ -1130,14 +1044,19 @@ export class SqlResourcesImpl {
1130
1044
  return this.client.sendOperationRequest(args, spec);
1131
1045
  };
1132
1046
  const sendOperationFn = async (args, spec) => {
1133
- var _a;
1134
1047
  let currentRawResponse = undefined;
1135
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1048
+ const providedCallback = args.options?.onResponse;
1136
1049
  const callback = (rawResponse, flatResponse) => {
1137
1050
  currentRawResponse = rawResponse;
1138
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1051
+ providedCallback?.(rawResponse, flatResponse);
1052
+ };
1053
+ const updatedArgs = {
1054
+ ...args,
1055
+ options: {
1056
+ ...args.options,
1057
+ onResponse: callback,
1058
+ },
1139
1059
  };
1140
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1141
1060
  const flatResponse = await directSendOperation(updatedArgs, spec);
1142
1061
  return {
1143
1062
  flatResponse,
@@ -1161,8 +1080,8 @@ export class SqlResourcesImpl {
1161
1080
  spec: createUpdateClientEncryptionKeyOperationSpec,
1162
1081
  });
1163
1082
  const poller = await createHttpPoller(lro, {
1164
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1165
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1083
+ restoreFrom: options?.resumeFrom,
1084
+ intervalInMs: options?.updateIntervalInMs,
1166
1085
  });
1167
1086
  await poller.poll();
1168
1087
  return poller;
@@ -1228,14 +1147,19 @@ export class SqlResourcesImpl {
1228
1147
  return this.client.sendOperationRequest(args, spec);
1229
1148
  };
1230
1149
  const sendOperationFn = async (args, spec) => {
1231
- var _a;
1232
1150
  let currentRawResponse = undefined;
1233
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1151
+ const providedCallback = args.options?.onResponse;
1234
1152
  const callback = (rawResponse, flatResponse) => {
1235
1153
  currentRawResponse = rawResponse;
1236
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1154
+ providedCallback?.(rawResponse, flatResponse);
1155
+ };
1156
+ const updatedArgs = {
1157
+ ...args,
1158
+ options: {
1159
+ ...args.options,
1160
+ onResponse: callback,
1161
+ },
1237
1162
  };
1238
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1239
1163
  const flatResponse = await directSendOperation(updatedArgs, spec);
1240
1164
  return {
1241
1165
  flatResponse,
@@ -1260,8 +1184,8 @@ export class SqlResourcesImpl {
1260
1184
  spec: createUpdateSqlStoredProcedureOperationSpec,
1261
1185
  });
1262
1186
  const poller = await createHttpPoller(lro, {
1263
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1264
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1187
+ restoreFrom: options?.resumeFrom,
1188
+ intervalInMs: options?.updateIntervalInMs,
1265
1189
  });
1266
1190
  await poller.poll();
1267
1191
  return poller;
@@ -1295,14 +1219,19 @@ export class SqlResourcesImpl {
1295
1219
  return this.client.sendOperationRequest(args, spec);
1296
1220
  };
1297
1221
  const sendOperationFn = async (args, spec) => {
1298
- var _a;
1299
1222
  let currentRawResponse = undefined;
1300
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1223
+ const providedCallback = args.options?.onResponse;
1301
1224
  const callback = (rawResponse, flatResponse) => {
1302
1225
  currentRawResponse = rawResponse;
1303
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1226
+ providedCallback?.(rawResponse, flatResponse);
1227
+ };
1228
+ const updatedArgs = {
1229
+ ...args,
1230
+ options: {
1231
+ ...args.options,
1232
+ onResponse: callback,
1233
+ },
1304
1234
  };
1305
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1306
1235
  const flatResponse = await directSendOperation(updatedArgs, spec);
1307
1236
  return {
1308
1237
  flatResponse,
@@ -1326,8 +1255,8 @@ export class SqlResourcesImpl {
1326
1255
  spec: deleteSqlStoredProcedureOperationSpec,
1327
1256
  });
1328
1257
  const poller = await createHttpPoller(lro, {
1329
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1330
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1258
+ restoreFrom: options?.resumeFrom,
1259
+ intervalInMs: options?.updateIntervalInMs,
1331
1260
  });
1332
1261
  await poller.poll();
1333
1262
  return poller;
@@ -1391,14 +1320,19 @@ export class SqlResourcesImpl {
1391
1320
  return this.client.sendOperationRequest(args, spec);
1392
1321
  };
1393
1322
  const sendOperationFn = async (args, spec) => {
1394
- var _a;
1395
1323
  let currentRawResponse = undefined;
1396
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1324
+ const providedCallback = args.options?.onResponse;
1397
1325
  const callback = (rawResponse, flatResponse) => {
1398
1326
  currentRawResponse = rawResponse;
1399
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1327
+ providedCallback?.(rawResponse, flatResponse);
1328
+ };
1329
+ const updatedArgs = {
1330
+ ...args,
1331
+ options: {
1332
+ ...args.options,
1333
+ onResponse: callback,
1334
+ },
1400
1335
  };
1401
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1402
1336
  const flatResponse = await directSendOperation(updatedArgs, spec);
1403
1337
  return {
1404
1338
  flatResponse,
@@ -1423,8 +1357,8 @@ export class SqlResourcesImpl {
1423
1357
  spec: createUpdateSqlUserDefinedFunctionOperationSpec,
1424
1358
  });
1425
1359
  const poller = await createHttpPoller(lro, {
1426
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1427
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1360
+ restoreFrom: options?.resumeFrom,
1361
+ intervalInMs: options?.updateIntervalInMs,
1428
1362
  });
1429
1363
  await poller.poll();
1430
1364
  return poller;
@@ -1458,14 +1392,19 @@ export class SqlResourcesImpl {
1458
1392
  return this.client.sendOperationRequest(args, spec);
1459
1393
  };
1460
1394
  const sendOperationFn = async (args, spec) => {
1461
- var _a;
1462
1395
  let currentRawResponse = undefined;
1463
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1396
+ const providedCallback = args.options?.onResponse;
1464
1397
  const callback = (rawResponse, flatResponse) => {
1465
1398
  currentRawResponse = rawResponse;
1466
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1399
+ providedCallback?.(rawResponse, flatResponse);
1400
+ };
1401
+ const updatedArgs = {
1402
+ ...args,
1403
+ options: {
1404
+ ...args.options,
1405
+ onResponse: callback,
1406
+ },
1467
1407
  };
1468
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1469
1408
  const flatResponse = await directSendOperation(updatedArgs, spec);
1470
1409
  return {
1471
1410
  flatResponse,
@@ -1489,8 +1428,8 @@ export class SqlResourcesImpl {
1489
1428
  spec: deleteSqlUserDefinedFunctionOperationSpec,
1490
1429
  });
1491
1430
  const poller = await createHttpPoller(lro, {
1492
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1493
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1431
+ restoreFrom: options?.resumeFrom,
1432
+ intervalInMs: options?.updateIntervalInMs,
1494
1433
  });
1495
1434
  await poller.poll();
1496
1435
  return poller;
@@ -1553,14 +1492,19 @@ export class SqlResourcesImpl {
1553
1492
  return this.client.sendOperationRequest(args, spec);
1554
1493
  };
1555
1494
  const sendOperationFn = async (args, spec) => {
1556
- var _a;
1557
1495
  let currentRawResponse = undefined;
1558
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1496
+ const providedCallback = args.options?.onResponse;
1559
1497
  const callback = (rawResponse, flatResponse) => {
1560
1498
  currentRawResponse = rawResponse;
1561
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1499
+ providedCallback?.(rawResponse, flatResponse);
1500
+ };
1501
+ const updatedArgs = {
1502
+ ...args,
1503
+ options: {
1504
+ ...args.options,
1505
+ onResponse: callback,
1506
+ },
1562
1507
  };
1563
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1564
1508
  const flatResponse = await directSendOperation(updatedArgs, spec);
1565
1509
  return {
1566
1510
  flatResponse,
@@ -1585,8 +1529,8 @@ export class SqlResourcesImpl {
1585
1529
  spec: createUpdateSqlTriggerOperationSpec,
1586
1530
  });
1587
1531
  const poller = await createHttpPoller(lro, {
1588
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1589
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1532
+ restoreFrom: options?.resumeFrom,
1533
+ intervalInMs: options?.updateIntervalInMs,
1590
1534
  });
1591
1535
  await poller.poll();
1592
1536
  return poller;
@@ -1619,14 +1563,19 @@ export class SqlResourcesImpl {
1619
1563
  return this.client.sendOperationRequest(args, spec);
1620
1564
  };
1621
1565
  const sendOperationFn = async (args, spec) => {
1622
- var _a;
1623
1566
  let currentRawResponse = undefined;
1624
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1567
+ const providedCallback = args.options?.onResponse;
1625
1568
  const callback = (rawResponse, flatResponse) => {
1626
1569
  currentRawResponse = rawResponse;
1627
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1570
+ providedCallback?.(rawResponse, flatResponse);
1571
+ };
1572
+ const updatedArgs = {
1573
+ ...args,
1574
+ options: {
1575
+ ...args.options,
1576
+ onResponse: callback,
1577
+ },
1628
1578
  };
1629
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1630
1579
  const flatResponse = await directSendOperation(updatedArgs, spec);
1631
1580
  return {
1632
1581
  flatResponse,
@@ -1650,8 +1599,8 @@ export class SqlResourcesImpl {
1650
1599
  spec: deleteSqlTriggerOperationSpec,
1651
1600
  });
1652
1601
  const poller = await createHttpPoller(lro, {
1653
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1654
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1602
+ restoreFrom: options?.resumeFrom,
1603
+ intervalInMs: options?.updateIntervalInMs,
1655
1604
  });
1656
1605
  await poller.poll();
1657
1606
  return poller;
@@ -1693,14 +1642,19 @@ export class SqlResourcesImpl {
1693
1642
  return this.client.sendOperationRequest(args, spec);
1694
1643
  };
1695
1644
  const sendOperationFn = async (args, spec) => {
1696
- var _a;
1697
1645
  let currentRawResponse = undefined;
1698
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1646
+ const providedCallback = args.options?.onResponse;
1699
1647
  const callback = (rawResponse, flatResponse) => {
1700
1648
  currentRawResponse = rawResponse;
1701
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1649
+ providedCallback?.(rawResponse, flatResponse);
1650
+ };
1651
+ const updatedArgs = {
1652
+ ...args,
1653
+ options: {
1654
+ ...args.options,
1655
+ onResponse: callback,
1656
+ },
1702
1657
  };
1703
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1704
1658
  const flatResponse = await directSendOperation(updatedArgs, spec);
1705
1659
  return {
1706
1660
  flatResponse,
@@ -1723,8 +1677,8 @@ export class SqlResourcesImpl {
1723
1677
  spec: createUpdateSqlRoleDefinitionOperationSpec,
1724
1678
  });
1725
1679
  const poller = await createHttpPoller(lro, {
1726
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1727
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1680
+ restoreFrom: options?.resumeFrom,
1681
+ intervalInMs: options?.updateIntervalInMs,
1728
1682
  });
1729
1683
  await poller.poll();
1730
1684
  return poller;
@@ -1754,14 +1708,19 @@ export class SqlResourcesImpl {
1754
1708
  return this.client.sendOperationRequest(args, spec);
1755
1709
  };
1756
1710
  const sendOperationFn = async (args, spec) => {
1757
- var _a;
1758
1711
  let currentRawResponse = undefined;
1759
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1712
+ const providedCallback = args.options?.onResponse;
1760
1713
  const callback = (rawResponse, flatResponse) => {
1761
1714
  currentRawResponse = rawResponse;
1762
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1715
+ providedCallback?.(rawResponse, flatResponse);
1716
+ };
1717
+ const updatedArgs = {
1718
+ ...args,
1719
+ options: {
1720
+ ...args.options,
1721
+ onResponse: callback,
1722
+ },
1763
1723
  };
1764
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1765
1724
  const flatResponse = await directSendOperation(updatedArgs, spec);
1766
1725
  return {
1767
1726
  flatResponse,
@@ -1778,8 +1737,8 @@ export class SqlResourcesImpl {
1778
1737
  spec: deleteSqlRoleDefinitionOperationSpec,
1779
1738
  });
1780
1739
  const poller = await createHttpPoller(lro, {
1781
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1782
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1740
+ restoreFrom: options?.resumeFrom,
1741
+ intervalInMs: options?.updateIntervalInMs,
1783
1742
  });
1784
1743
  await poller.poll();
1785
1744
  return poller;
@@ -1828,14 +1787,19 @@ export class SqlResourcesImpl {
1828
1787
  return this.client.sendOperationRequest(args, spec);
1829
1788
  };
1830
1789
  const sendOperationFn = async (args, spec) => {
1831
- var _a;
1832
1790
  let currentRawResponse = undefined;
1833
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1791
+ const providedCallback = args.options?.onResponse;
1834
1792
  const callback = (rawResponse, flatResponse) => {
1835
1793
  currentRawResponse = rawResponse;
1836
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1794
+ providedCallback?.(rawResponse, flatResponse);
1795
+ };
1796
+ const updatedArgs = {
1797
+ ...args,
1798
+ options: {
1799
+ ...args.options,
1800
+ onResponse: callback,
1801
+ },
1837
1802
  };
1838
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1839
1803
  const flatResponse = await directSendOperation(updatedArgs, spec);
1840
1804
  return {
1841
1805
  flatResponse,
@@ -1858,8 +1822,8 @@ export class SqlResourcesImpl {
1858
1822
  spec: createUpdateSqlRoleAssignmentOperationSpec,
1859
1823
  });
1860
1824
  const poller = await createHttpPoller(lro, {
1861
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1862
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1825
+ restoreFrom: options?.resumeFrom,
1826
+ intervalInMs: options?.updateIntervalInMs,
1863
1827
  });
1864
1828
  await poller.poll();
1865
1829
  return poller;
@@ -1889,14 +1853,19 @@ export class SqlResourcesImpl {
1889
1853
  return this.client.sendOperationRequest(args, spec);
1890
1854
  };
1891
1855
  const sendOperationFn = async (args, spec) => {
1892
- var _a;
1893
1856
  let currentRawResponse = undefined;
1894
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1857
+ const providedCallback = args.options?.onResponse;
1895
1858
  const callback = (rawResponse, flatResponse) => {
1896
1859
  currentRawResponse = rawResponse;
1897
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1860
+ providedCallback?.(rawResponse, flatResponse);
1861
+ };
1862
+ const updatedArgs = {
1863
+ ...args,
1864
+ options: {
1865
+ ...args.options,
1866
+ onResponse: callback,
1867
+ },
1898
1868
  };
1899
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1900
1869
  const flatResponse = await directSendOperation(updatedArgs, spec);
1901
1870
  return {
1902
1871
  flatResponse,
@@ -1913,8 +1882,8 @@ export class SqlResourcesImpl {
1913
1882
  spec: deleteSqlRoleAssignmentOperationSpec,
1914
1883
  });
1915
1884
  const poller = await createHttpPoller(lro, {
1916
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1917
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1885
+ restoreFrom: options?.resumeFrom,
1886
+ intervalInMs: options?.updateIntervalInMs,
1918
1887
  });
1919
1888
  await poller.poll();
1920
1889
  return poller;
@@ -1953,14 +1922,19 @@ export class SqlResourcesImpl {
1953
1922
  return this.client.sendOperationRequest(args, spec);
1954
1923
  };
1955
1924
  const sendOperationFn = async (args, spec) => {
1956
- var _a;
1957
1925
  let currentRawResponse = undefined;
1958
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1926
+ const providedCallback = args.options?.onResponse;
1959
1927
  const callback = (rawResponse, flatResponse) => {
1960
1928
  currentRawResponse = rawResponse;
1961
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1929
+ providedCallback?.(rawResponse, flatResponse);
1930
+ };
1931
+ const updatedArgs = {
1932
+ ...args,
1933
+ options: {
1934
+ ...args.options,
1935
+ onResponse: callback,
1936
+ },
1962
1937
  };
1963
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1964
1938
  const flatResponse = await directSendOperation(updatedArgs, spec);
1965
1939
  return {
1966
1940
  flatResponse,
@@ -1984,8 +1958,8 @@ export class SqlResourcesImpl {
1984
1958
  spec: retrieveContinuousBackupInformationOperationSpec,
1985
1959
  });
1986
1960
  const poller = await createHttpPoller(lro, {
1987
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1988
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1961
+ restoreFrom: options?.resumeFrom,
1962
+ intervalInMs: options?.updateIntervalInMs,
1989
1963
  resourceLocationConfig: "location",
1990
1964
  });
1991
1965
  await poller.poll();