@azure/arm-cosmosdbforpostgresql 1.0.0-beta.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 (282) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +5097 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.d.ts +2 -0
  9. package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.js +41 -0
  11. package/dist-esm/samples-dev/clustersCheckNameAvailabilitySample.js.map +1 -0
  12. package/dist-esm/samples-dev/clustersCreateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/clustersCreateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/clustersCreateSample.js +107 -0
  15. package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/clustersDeleteSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/clustersDeleteSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/clustersDeleteSample.js +39 -0
  19. package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -0
  20. package/dist-esm/samples-dev/clustersGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/clustersGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/clustersGetSample.js +39 -0
  23. package/dist-esm/samples-dev/clustersGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/clustersListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/clustersListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +59 -0
  27. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/clustersListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/clustersListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/clustersListSample.js +58 -0
  31. package/dist-esm/samples-dev/clustersListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.js +39 -0
  35. package/dist-esm/samples-dev/clustersPromoteReadReplicaSample.js.map +1 -0
  36. package/dist-esm/samples-dev/clustersRestartSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/clustersRestartSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/clustersRestartSample.js +39 -0
  39. package/dist-esm/samples-dev/clustersRestartSample.js.map +1 -0
  40. package/dist-esm/samples-dev/clustersStartSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/clustersStartSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/clustersStartSample.js +39 -0
  43. package/dist-esm/samples-dev/clustersStartSample.js.map +1 -0
  44. package/dist-esm/samples-dev/clustersStopSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/clustersStopSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/clustersStopSample.js +39 -0
  47. package/dist-esm/samples-dev/clustersStopSample.js.map +1 -0
  48. package/dist-esm/samples-dev/clustersUpdateSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/clustersUpdateSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/clustersUpdateSample.js +132 -0
  51. package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -0
  52. package/dist-esm/samples-dev/configurationsGetCoordinatorSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/configurationsGetCoordinatorSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/configurationsGetCoordinatorSample.js +40 -0
  55. package/dist-esm/samples-dev/configurationsGetCoordinatorSample.js.map +1 -0
  56. package/dist-esm/samples-dev/configurationsGetNodeSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/configurationsGetNodeSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/configurationsGetNodeSample.js +40 -0
  59. package/dist-esm/samples-dev/configurationsGetNodeSample.js.map +1 -0
  60. package/dist-esm/samples-dev/configurationsGetSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/configurationsGetSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/configurationsGetSample.js +40 -0
  63. package/dist-esm/samples-dev/configurationsGetSample.js.map +1 -0
  64. package/dist-esm/samples-dev/configurationsListByClusterSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/configurationsListByClusterSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/configurationsListByClusterSample.js +60 -0
  67. package/dist-esm/samples-dev/configurationsListByClusterSample.js.map +1 -0
  68. package/dist-esm/samples-dev/configurationsListByServerSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/configurationsListByServerSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/configurationsListByServerSample.js +61 -0
  71. package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -0
  72. package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.js +41 -0
  75. package/dist-esm/samples-dev/configurationsUpdateOnCoordinatorSample.js.map +1 -0
  76. package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.js +41 -0
  79. package/dist-esm/samples-dev/configurationsUpdateOnNodeSample.js.map +1 -0
  80. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +44 -0
  83. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -0
  84. package/dist-esm/samples-dev/firewallRulesDeleteSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/firewallRulesDeleteSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +40 -0
  87. package/dist-esm/samples-dev/firewallRulesDeleteSample.js.map +1 -0
  88. package/dist-esm/samples-dev/firewallRulesGetSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/firewallRulesGetSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/firewallRulesGetSample.js +40 -0
  91. package/dist-esm/samples-dev/firewallRulesGetSample.js.map +1 -0
  92. package/dist-esm/samples-dev/firewallRulesListByClusterSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/firewallRulesListByClusterSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/firewallRulesListByClusterSample.js +60 -0
  95. package/dist-esm/samples-dev/firewallRulesListByClusterSample.js.map +1 -0
  96. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  99. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  100. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +46 -0
  103. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
  104. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +40 -0
  107. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  108. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +40 -0
  111. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  112. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +60 -0
  115. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js.map +1 -0
  116. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +40 -0
  119. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
  120. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +60 -0
  123. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -0
  124. package/dist-esm/samples-dev/rolesCreateSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/rolesCreateSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/rolesCreateSample.js +41 -0
  127. package/dist-esm/samples-dev/rolesCreateSample.js.map +1 -0
  128. package/dist-esm/samples-dev/rolesDeleteSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/rolesDeleteSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/rolesDeleteSample.js +40 -0
  131. package/dist-esm/samples-dev/rolesDeleteSample.js.map +1 -0
  132. package/dist-esm/samples-dev/rolesGetSample.d.ts +2 -0
  133. package/dist-esm/samples-dev/rolesGetSample.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/rolesGetSample.js +40 -0
  135. package/dist-esm/samples-dev/rolesGetSample.js.map +1 -0
  136. package/dist-esm/samples-dev/rolesListByClusterSample.d.ts +2 -0
  137. package/dist-esm/samples-dev/rolesListByClusterSample.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/rolesListByClusterSample.js +60 -0
  139. package/dist-esm/samples-dev/rolesListByClusterSample.js.map +1 -0
  140. package/dist-esm/samples-dev/serversGetSample.d.ts +2 -0
  141. package/dist-esm/samples-dev/serversGetSample.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/serversGetSample.js +40 -0
  143. package/dist-esm/samples-dev/serversGetSample.js.map +1 -0
  144. package/dist-esm/samples-dev/serversListByClusterSample.d.ts +2 -0
  145. package/dist-esm/samples-dev/serversListByClusterSample.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/serversListByClusterSample.js +60 -0
  147. package/dist-esm/samples-dev/serversListByClusterSample.js.map +1 -0
  148. package/dist-esm/src/cosmosDBForPostgreSQL.d.ts +27 -0
  149. package/dist-esm/src/cosmosDBForPostgreSQL.d.ts.map +1 -0
  150. package/dist-esm/src/cosmosDBForPostgreSQL.js +107 -0
  151. package/dist-esm/src/cosmosDBForPostgreSQL.js.map +1 -0
  152. package/dist-esm/src/index.d.ts +6 -0
  153. package/dist-esm/src/index.d.ts.map +1 -0
  154. package/dist-esm/src/index.js +13 -0
  155. package/dist-esm/src/index.js.map +1 -0
  156. package/dist-esm/src/lroImpl.d.ts +11 -0
  157. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  158. package/dist-esm/src/lroImpl.js +21 -0
  159. package/dist-esm/src/lroImpl.js.map +1 -0
  160. package/dist-esm/src/models/index.d.ts +1125 -0
  161. package/dist-esm/src/models/index.d.ts.map +1 -0
  162. package/dist-esm/src/models/index.js +84 -0
  163. package/dist-esm/src/models/index.js.map +1 -0
  164. package/dist-esm/src/models/mappers.d.ts +55 -0
  165. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  166. package/dist-esm/src/models/mappers.js +1710 -0
  167. package/dist-esm/src/models/mappers.js.map +1 -0
  168. package/dist-esm/src/models/parameters.d.ts +23 -0
  169. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  170. package/dist-esm/src/models/parameters.js +213 -0
  171. package/dist-esm/src/models/parameters.js.map +1 -0
  172. package/dist-esm/src/operations/clusters.d.ts +174 -0
  173. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  174. package/dist-esm/src/operations/clusters.js +915 -0
  175. package/dist-esm/src/operations/clusters.js.map +1 -0
  176. package/dist-esm/src/operations/configurations.d.ts +126 -0
  177. package/dist-esm/src/operations/configurations.d.ts.map +1 -0
  178. package/dist-esm/src/operations/configurations.js +585 -0
  179. package/dist-esm/src/operations/configurations.js.map +1 -0
  180. package/dist-esm/src/operations/firewallRules.d.ts +73 -0
  181. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
  182. package/dist-esm/src/operations/firewallRules.js +332 -0
  183. package/dist-esm/src/operations/firewallRules.js.map +1 -0
  184. package/dist-esm/src/operations/index.d.ts +9 -0
  185. package/dist-esm/src/operations/index.d.ts.map +1 -0
  186. package/dist-esm/src/operations/index.js +16 -0
  187. package/dist-esm/src/operations/index.js.map +1 -0
  188. package/dist-esm/src/operations/operations.d.ts +26 -0
  189. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  190. package/dist-esm/src/operations/operations.js +101 -0
  191. package/dist-esm/src/operations/operations.js.map +1 -0
  192. package/dist-esm/src/operations/privateEndpointConnections.d.ts +78 -0
  193. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  194. package/dist-esm/src/operations/privateEndpointConnections.js +347 -0
  195. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  196. package/dist-esm/src/operations/privateLinkResources.d.ts +38 -0
  197. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  198. package/dist-esm/src/operations/privateLinkResources.js +142 -0
  199. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  200. package/dist-esm/src/operations/roles.d.ts +73 -0
  201. package/dist-esm/src/operations/roles.d.ts.map +1 -0
  202. package/dist-esm/src/operations/roles.js +326 -0
  203. package/dist-esm/src/operations/roles.js.map +1 -0
  204. package/dist-esm/src/operations/servers.d.ts +38 -0
  205. package/dist-esm/src/operations/servers.d.ts.map +1 -0
  206. package/dist-esm/src/operations/servers.js +142 -0
  207. package/dist-esm/src/operations/servers.js.map +1 -0
  208. package/dist-esm/src/operationsInterfaces/clusters.d.ts +138 -0
  209. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  210. package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
  211. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  212. package/dist-esm/src/operationsInterfaces/configurations.d.ts +82 -0
  213. package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
  214. package/dist-esm/src/operationsInterfaces/configurations.js +9 -0
  215. package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
  216. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +56 -0
  217. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
  218. package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
  219. package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
  220. package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
  221. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  222. package/dist-esm/src/operationsInterfaces/index.js +16 -0
  223. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  224. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  225. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  226. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  227. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  228. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +61 -0
  229. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  230. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  231. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  232. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  233. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  234. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  235. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  236. package/dist-esm/src/operationsInterfaces/roles.d.ts +56 -0
  237. package/dist-esm/src/operationsInterfaces/roles.d.ts.map +1 -0
  238. package/dist-esm/src/operationsInterfaces/roles.js +9 -0
  239. package/dist-esm/src/operationsInterfaces/roles.js.map +1 -0
  240. package/dist-esm/src/operationsInterfaces/servers.d.ts +21 -0
  241. package/dist-esm/src/operationsInterfaces/servers.d.ts.map +1 -0
  242. package/dist-esm/src/operationsInterfaces/servers.js +9 -0
  243. package/dist-esm/src/operationsInterfaces/servers.js.map +1 -0
  244. package/dist-esm/src/pagingHelper.d.ts +13 -0
  245. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  246. package/dist-esm/src/pagingHelper.js +32 -0
  247. package/dist-esm/src/pagingHelper.js.map +1 -0
  248. package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.d.ts +4 -0
  249. package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.d.ts.map +1 -0
  250. package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.js +136 -0
  251. package/dist-esm/test/cosmosdbforpostgresql_operations_test.spec.js.map +1 -0
  252. package/package.json +123 -0
  253. package/review/arm-cosmosdbforpostgresql.api.md +942 -0
  254. package/rollup.config.js +122 -0
  255. package/src/cosmosDBForPostgreSQL.ts +172 -0
  256. package/src/index.ts +13 -0
  257. package/src/lroImpl.ts +42 -0
  258. package/src/models/index.ts +1280 -0
  259. package/src/models/mappers.ts +1870 -0
  260. package/src/models/parameters.ts +247 -0
  261. package/src/operations/clusters.ts +1221 -0
  262. package/src/operations/configurations.ts +809 -0
  263. package/src/operations/firewallRules.ts +460 -0
  264. package/src/operations/index.ts +16 -0
  265. package/src/operations/operations.ts +103 -0
  266. package/src/operations/privateEndpointConnections.ts +476 -0
  267. package/src/operations/privateLinkResources.ts +181 -0
  268. package/src/operations/roles.ts +448 -0
  269. package/src/operations/servers.ts +181 -0
  270. package/src/operationsInterfaces/clusters.ts +260 -0
  271. package/src/operationsInterfaces/configurations.ts +164 -0
  272. package/src/operationsInterfaces/firewallRules.ts +115 -0
  273. package/src/operationsInterfaces/index.ts +16 -0
  274. package/src/operationsInterfaces/operations.ts +22 -0
  275. package/src/operationsInterfaces/privateEndpointConnections.ts +120 -0
  276. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  277. package/src/operationsInterfaces/roles.ts +109 -0
  278. package/src/operationsInterfaces/servers.ts +44 -0
  279. package/src/pagingHelper.ts +39 -0
  280. package/tsconfig.json +33 -0
  281. package/types/arm-cosmosdbforpostgresql.d.ts +1730 -0
  282. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,809 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
11
+ import { Configurations } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { CosmosDBForPostgreSQL } from "../cosmosDBForPostgreSQL";
16
+ import {
17
+ SimplePollerLike,
18
+ OperationState,
19
+ createHttpPoller
20
+ } from "@azure/core-lro";
21
+ import { createLroSpec } from "../lroImpl";
22
+ import {
23
+ ServerConfiguration,
24
+ ConfigurationsListByServerNextOptionalParams,
25
+ ConfigurationsListByServerOptionalParams,
26
+ ConfigurationsListByServerResponse,
27
+ Configuration,
28
+ ConfigurationsListByClusterNextOptionalParams,
29
+ ConfigurationsListByClusterOptionalParams,
30
+ ConfigurationsListByClusterResponse,
31
+ ConfigurationsGetOptionalParams,
32
+ ConfigurationsGetResponse,
33
+ ConfigurationsGetCoordinatorOptionalParams,
34
+ ConfigurationsGetCoordinatorResponse,
35
+ ConfigurationsUpdateOnCoordinatorOptionalParams,
36
+ ConfigurationsUpdateOnCoordinatorResponse,
37
+ ConfigurationsGetNodeOptionalParams,
38
+ ConfigurationsGetNodeResponse,
39
+ ConfigurationsUpdateOnNodeOptionalParams,
40
+ ConfigurationsUpdateOnNodeResponse,
41
+ ConfigurationsListByServerNextResponse,
42
+ ConfigurationsListByClusterNextResponse
43
+ } from "../models";
44
+
45
+ /// <reference lib="esnext.asynciterable" />
46
+ /** Class containing Configurations operations. */
47
+ export class ConfigurationsImpl implements Configurations {
48
+ private readonly client: CosmosDBForPostgreSQL;
49
+
50
+ /**
51
+ * Initialize a new instance of the class Configurations class.
52
+ * @param client Reference to the service client
53
+ */
54
+ constructor(client: CosmosDBForPostgreSQL) {
55
+ this.client = client;
56
+ }
57
+
58
+ /**
59
+ * List all the configurations of a server in cluster.
60
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
61
+ * @param clusterName The name of the cluster.
62
+ * @param serverName The name of the server.
63
+ * @param options The options parameters.
64
+ */
65
+ public listByServer(
66
+ resourceGroupName: string,
67
+ clusterName: string,
68
+ serverName: string,
69
+ options?: ConfigurationsListByServerOptionalParams
70
+ ): PagedAsyncIterableIterator<ServerConfiguration> {
71
+ const iter = this.listByServerPagingAll(
72
+ resourceGroupName,
73
+ clusterName,
74
+ serverName,
75
+ options
76
+ );
77
+ return {
78
+ next() {
79
+ return iter.next();
80
+ },
81
+ [Symbol.asyncIterator]() {
82
+ return this;
83
+ },
84
+ byPage: (settings?: PageSettings) => {
85
+ if (settings?.maxPageSize) {
86
+ throw new Error("maxPageSize is not supported by this operation.");
87
+ }
88
+ return this.listByServerPagingPage(
89
+ resourceGroupName,
90
+ clusterName,
91
+ serverName,
92
+ options,
93
+ settings
94
+ );
95
+ }
96
+ };
97
+ }
98
+
99
+ private async *listByServerPagingPage(
100
+ resourceGroupName: string,
101
+ clusterName: string,
102
+ serverName: string,
103
+ options?: ConfigurationsListByServerOptionalParams,
104
+ settings?: PageSettings
105
+ ): AsyncIterableIterator<ServerConfiguration[]> {
106
+ let result: ConfigurationsListByServerResponse;
107
+ let continuationToken = settings?.continuationToken;
108
+ if (!continuationToken) {
109
+ result = await this._listByServer(
110
+ resourceGroupName,
111
+ clusterName,
112
+ serverName,
113
+ options
114
+ );
115
+ let page = result.value || [];
116
+ continuationToken = result.nextLink;
117
+ setContinuationToken(page, continuationToken);
118
+ yield page;
119
+ }
120
+ while (continuationToken) {
121
+ result = await this._listByServerNext(
122
+ resourceGroupName,
123
+ clusterName,
124
+ serverName,
125
+ continuationToken,
126
+ options
127
+ );
128
+ continuationToken = result.nextLink;
129
+ let page = result.value || [];
130
+ setContinuationToken(page, continuationToken);
131
+ yield page;
132
+ }
133
+ }
134
+
135
+ private async *listByServerPagingAll(
136
+ resourceGroupName: string,
137
+ clusterName: string,
138
+ serverName: string,
139
+ options?: ConfigurationsListByServerOptionalParams
140
+ ): AsyncIterableIterator<ServerConfiguration> {
141
+ for await (const page of this.listByServerPagingPage(
142
+ resourceGroupName,
143
+ clusterName,
144
+ serverName,
145
+ options
146
+ )) {
147
+ yield* page;
148
+ }
149
+ }
150
+
151
+ /**
152
+ * List all the configurations of a cluster.
153
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
154
+ * @param clusterName The name of the cluster.
155
+ * @param options The options parameters.
156
+ */
157
+ public listByCluster(
158
+ resourceGroupName: string,
159
+ clusterName: string,
160
+ options?: ConfigurationsListByClusterOptionalParams
161
+ ): PagedAsyncIterableIterator<Configuration> {
162
+ const iter = this.listByClusterPagingAll(
163
+ resourceGroupName,
164
+ clusterName,
165
+ options
166
+ );
167
+ return {
168
+ next() {
169
+ return iter.next();
170
+ },
171
+ [Symbol.asyncIterator]() {
172
+ return this;
173
+ },
174
+ byPage: (settings?: PageSettings) => {
175
+ if (settings?.maxPageSize) {
176
+ throw new Error("maxPageSize is not supported by this operation.");
177
+ }
178
+ return this.listByClusterPagingPage(
179
+ resourceGroupName,
180
+ clusterName,
181
+ options,
182
+ settings
183
+ );
184
+ }
185
+ };
186
+ }
187
+
188
+ private async *listByClusterPagingPage(
189
+ resourceGroupName: string,
190
+ clusterName: string,
191
+ options?: ConfigurationsListByClusterOptionalParams,
192
+ settings?: PageSettings
193
+ ): AsyncIterableIterator<Configuration[]> {
194
+ let result: ConfigurationsListByClusterResponse;
195
+ let continuationToken = settings?.continuationToken;
196
+ if (!continuationToken) {
197
+ result = await this._listByCluster(
198
+ resourceGroupName,
199
+ clusterName,
200
+ options
201
+ );
202
+ let page = result.value || [];
203
+ continuationToken = result.nextLink;
204
+ setContinuationToken(page, continuationToken);
205
+ yield page;
206
+ }
207
+ while (continuationToken) {
208
+ result = await this._listByClusterNext(
209
+ resourceGroupName,
210
+ clusterName,
211
+ continuationToken,
212
+ options
213
+ );
214
+ continuationToken = result.nextLink;
215
+ let page = result.value || [];
216
+ setContinuationToken(page, continuationToken);
217
+ yield page;
218
+ }
219
+ }
220
+
221
+ private async *listByClusterPagingAll(
222
+ resourceGroupName: string,
223
+ clusterName: string,
224
+ options?: ConfigurationsListByClusterOptionalParams
225
+ ): AsyncIterableIterator<Configuration> {
226
+ for await (const page of this.listByClusterPagingPage(
227
+ resourceGroupName,
228
+ clusterName,
229
+ options
230
+ )) {
231
+ yield* page;
232
+ }
233
+ }
234
+
235
+ /**
236
+ * List all the configurations of a server in cluster.
237
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
238
+ * @param clusterName The name of the cluster.
239
+ * @param serverName The name of the server.
240
+ * @param options The options parameters.
241
+ */
242
+ private _listByServer(
243
+ resourceGroupName: string,
244
+ clusterName: string,
245
+ serverName: string,
246
+ options?: ConfigurationsListByServerOptionalParams
247
+ ): Promise<ConfigurationsListByServerResponse> {
248
+ return this.client.sendOperationRequest(
249
+ { resourceGroupName, clusterName, serverName, options },
250
+ listByServerOperationSpec
251
+ );
252
+ }
253
+
254
+ /**
255
+ * List all the configurations of a cluster.
256
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
257
+ * @param clusterName The name of the cluster.
258
+ * @param options The options parameters.
259
+ */
260
+ private _listByCluster(
261
+ resourceGroupName: string,
262
+ clusterName: string,
263
+ options?: ConfigurationsListByClusterOptionalParams
264
+ ): Promise<ConfigurationsListByClusterResponse> {
265
+ return this.client.sendOperationRequest(
266
+ { resourceGroupName, clusterName, options },
267
+ listByClusterOperationSpec
268
+ );
269
+ }
270
+
271
+ /**
272
+ * Gets information of a configuration for coordinator and nodes.
273
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
274
+ * @param clusterName The name of the cluster.
275
+ * @param configurationName The name of the cluster configuration.
276
+ * @param options The options parameters.
277
+ */
278
+ get(
279
+ resourceGroupName: string,
280
+ clusterName: string,
281
+ configurationName: string,
282
+ options?: ConfigurationsGetOptionalParams
283
+ ): Promise<ConfigurationsGetResponse> {
284
+ return this.client.sendOperationRequest(
285
+ { resourceGroupName, clusterName, configurationName, options },
286
+ getOperationSpec
287
+ );
288
+ }
289
+
290
+ /**
291
+ * Gets information of a configuration for coordinator.
292
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
293
+ * @param clusterName The name of the cluster.
294
+ * @param configurationName The name of the cluster configuration.
295
+ * @param options The options parameters.
296
+ */
297
+ getCoordinator(
298
+ resourceGroupName: string,
299
+ clusterName: string,
300
+ configurationName: string,
301
+ options?: ConfigurationsGetCoordinatorOptionalParams
302
+ ): Promise<ConfigurationsGetCoordinatorResponse> {
303
+ return this.client.sendOperationRequest(
304
+ { resourceGroupName, clusterName, configurationName, options },
305
+ getCoordinatorOperationSpec
306
+ );
307
+ }
308
+
309
+ /**
310
+ * Updates configuration of coordinator in a cluster
311
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
312
+ * @param clusterName The name of the cluster.
313
+ * @param configurationName The name of the cluster configuration.
314
+ * @param parameters The required parameters for updating a cluster configuration.
315
+ * @param options The options parameters.
316
+ */
317
+ async beginUpdateOnCoordinator(
318
+ resourceGroupName: string,
319
+ clusterName: string,
320
+ configurationName: string,
321
+ parameters: ServerConfiguration,
322
+ options?: ConfigurationsUpdateOnCoordinatorOptionalParams
323
+ ): Promise<
324
+ SimplePollerLike<
325
+ OperationState<ConfigurationsUpdateOnCoordinatorResponse>,
326
+ ConfigurationsUpdateOnCoordinatorResponse
327
+ >
328
+ > {
329
+ const directSendOperation = async (
330
+ args: coreClient.OperationArguments,
331
+ spec: coreClient.OperationSpec
332
+ ): Promise<ConfigurationsUpdateOnCoordinatorResponse> => {
333
+ return this.client.sendOperationRequest(args, spec);
334
+ };
335
+ const sendOperationFn = async (
336
+ args: coreClient.OperationArguments,
337
+ spec: coreClient.OperationSpec
338
+ ) => {
339
+ let currentRawResponse:
340
+ | coreClient.FullOperationResponse
341
+ | undefined = undefined;
342
+ const providedCallback = args.options?.onResponse;
343
+ const callback: coreClient.RawResponseCallback = (
344
+ rawResponse: coreClient.FullOperationResponse,
345
+ flatResponse: unknown
346
+ ) => {
347
+ currentRawResponse = rawResponse;
348
+ providedCallback?.(rawResponse, flatResponse);
349
+ };
350
+ const updatedArgs = {
351
+ ...args,
352
+ options: {
353
+ ...args.options,
354
+ onResponse: callback
355
+ }
356
+ };
357
+ const flatResponse = await directSendOperation(updatedArgs, spec);
358
+ return {
359
+ flatResponse,
360
+ rawResponse: {
361
+ statusCode: currentRawResponse!.status,
362
+ body: currentRawResponse!.parsedBody,
363
+ headers: currentRawResponse!.headers.toJSON()
364
+ }
365
+ };
366
+ };
367
+
368
+ const lro = createLroSpec({
369
+ sendOperationFn,
370
+ args: {
371
+ resourceGroupName,
372
+ clusterName,
373
+ configurationName,
374
+ parameters,
375
+ options
376
+ },
377
+ spec: updateOnCoordinatorOperationSpec
378
+ });
379
+ const poller = await createHttpPoller<
380
+ ConfigurationsUpdateOnCoordinatorResponse,
381
+ OperationState<ConfigurationsUpdateOnCoordinatorResponse>
382
+ >(lro, {
383
+ restoreFrom: options?.resumeFrom,
384
+ intervalInMs: options?.updateIntervalInMs,
385
+ resourceLocationConfig: "azure-async-operation"
386
+ });
387
+ await poller.poll();
388
+ return poller;
389
+ }
390
+
391
+ /**
392
+ * Updates configuration of coordinator in a cluster
393
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
394
+ * @param clusterName The name of the cluster.
395
+ * @param configurationName The name of the cluster configuration.
396
+ * @param parameters The required parameters for updating a cluster configuration.
397
+ * @param options The options parameters.
398
+ */
399
+ async beginUpdateOnCoordinatorAndWait(
400
+ resourceGroupName: string,
401
+ clusterName: string,
402
+ configurationName: string,
403
+ parameters: ServerConfiguration,
404
+ options?: ConfigurationsUpdateOnCoordinatorOptionalParams
405
+ ): Promise<ConfigurationsUpdateOnCoordinatorResponse> {
406
+ const poller = await this.beginUpdateOnCoordinator(
407
+ resourceGroupName,
408
+ clusterName,
409
+ configurationName,
410
+ parameters,
411
+ options
412
+ );
413
+ return poller.pollUntilDone();
414
+ }
415
+
416
+ /**
417
+ * Gets information of a configuration for worker nodes.
418
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
419
+ * @param clusterName The name of the cluster.
420
+ * @param configurationName The name of the cluster configuration.
421
+ * @param options The options parameters.
422
+ */
423
+ getNode(
424
+ resourceGroupName: string,
425
+ clusterName: string,
426
+ configurationName: string,
427
+ options?: ConfigurationsGetNodeOptionalParams
428
+ ): Promise<ConfigurationsGetNodeResponse> {
429
+ return this.client.sendOperationRequest(
430
+ { resourceGroupName, clusterName, configurationName, options },
431
+ getNodeOperationSpec
432
+ );
433
+ }
434
+
435
+ /**
436
+ * Updates configuration of worker nodes in a cluster
437
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
438
+ * @param clusterName The name of the cluster.
439
+ * @param configurationName The name of the cluster configuration.
440
+ * @param parameters The required parameters for updating a cluster configuration.
441
+ * @param options The options parameters.
442
+ */
443
+ async beginUpdateOnNode(
444
+ resourceGroupName: string,
445
+ clusterName: string,
446
+ configurationName: string,
447
+ parameters: ServerConfiguration,
448
+ options?: ConfigurationsUpdateOnNodeOptionalParams
449
+ ): Promise<
450
+ SimplePollerLike<
451
+ OperationState<ConfigurationsUpdateOnNodeResponse>,
452
+ ConfigurationsUpdateOnNodeResponse
453
+ >
454
+ > {
455
+ const directSendOperation = async (
456
+ args: coreClient.OperationArguments,
457
+ spec: coreClient.OperationSpec
458
+ ): Promise<ConfigurationsUpdateOnNodeResponse> => {
459
+ return this.client.sendOperationRequest(args, spec);
460
+ };
461
+ const sendOperationFn = async (
462
+ args: coreClient.OperationArguments,
463
+ spec: coreClient.OperationSpec
464
+ ) => {
465
+ let currentRawResponse:
466
+ | coreClient.FullOperationResponse
467
+ | undefined = undefined;
468
+ const providedCallback = args.options?.onResponse;
469
+ const callback: coreClient.RawResponseCallback = (
470
+ rawResponse: coreClient.FullOperationResponse,
471
+ flatResponse: unknown
472
+ ) => {
473
+ currentRawResponse = rawResponse;
474
+ providedCallback?.(rawResponse, flatResponse);
475
+ };
476
+ const updatedArgs = {
477
+ ...args,
478
+ options: {
479
+ ...args.options,
480
+ onResponse: callback
481
+ }
482
+ };
483
+ const flatResponse = await directSendOperation(updatedArgs, spec);
484
+ return {
485
+ flatResponse,
486
+ rawResponse: {
487
+ statusCode: currentRawResponse!.status,
488
+ body: currentRawResponse!.parsedBody,
489
+ headers: currentRawResponse!.headers.toJSON()
490
+ }
491
+ };
492
+ };
493
+
494
+ const lro = createLroSpec({
495
+ sendOperationFn,
496
+ args: {
497
+ resourceGroupName,
498
+ clusterName,
499
+ configurationName,
500
+ parameters,
501
+ options
502
+ },
503
+ spec: updateOnNodeOperationSpec
504
+ });
505
+ const poller = await createHttpPoller<
506
+ ConfigurationsUpdateOnNodeResponse,
507
+ OperationState<ConfigurationsUpdateOnNodeResponse>
508
+ >(lro, {
509
+ restoreFrom: options?.resumeFrom,
510
+ intervalInMs: options?.updateIntervalInMs,
511
+ resourceLocationConfig: "azure-async-operation"
512
+ });
513
+ await poller.poll();
514
+ return poller;
515
+ }
516
+
517
+ /**
518
+ * Updates configuration of worker nodes in a cluster
519
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
520
+ * @param clusterName The name of the cluster.
521
+ * @param configurationName The name of the cluster configuration.
522
+ * @param parameters The required parameters for updating a cluster configuration.
523
+ * @param options The options parameters.
524
+ */
525
+ async beginUpdateOnNodeAndWait(
526
+ resourceGroupName: string,
527
+ clusterName: string,
528
+ configurationName: string,
529
+ parameters: ServerConfiguration,
530
+ options?: ConfigurationsUpdateOnNodeOptionalParams
531
+ ): Promise<ConfigurationsUpdateOnNodeResponse> {
532
+ const poller = await this.beginUpdateOnNode(
533
+ resourceGroupName,
534
+ clusterName,
535
+ configurationName,
536
+ parameters,
537
+ options
538
+ );
539
+ return poller.pollUntilDone();
540
+ }
541
+
542
+ /**
543
+ * ListByServerNext
544
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
545
+ * @param clusterName The name of the cluster.
546
+ * @param serverName The name of the server.
547
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
548
+ * @param options The options parameters.
549
+ */
550
+ private _listByServerNext(
551
+ resourceGroupName: string,
552
+ clusterName: string,
553
+ serverName: string,
554
+ nextLink: string,
555
+ options?: ConfigurationsListByServerNextOptionalParams
556
+ ): Promise<ConfigurationsListByServerNextResponse> {
557
+ return this.client.sendOperationRequest(
558
+ { resourceGroupName, clusterName, serverName, nextLink, options },
559
+ listByServerNextOperationSpec
560
+ );
561
+ }
562
+
563
+ /**
564
+ * ListByClusterNext
565
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
566
+ * @param clusterName The name of the cluster.
567
+ * @param nextLink The nextLink from the previous successful call to the ListByCluster method.
568
+ * @param options The options parameters.
569
+ */
570
+ private _listByClusterNext(
571
+ resourceGroupName: string,
572
+ clusterName: string,
573
+ nextLink: string,
574
+ options?: ConfigurationsListByClusterNextOptionalParams
575
+ ): Promise<ConfigurationsListByClusterNextResponse> {
576
+ return this.client.sendOperationRequest(
577
+ { resourceGroupName, clusterName, nextLink, options },
578
+ listByClusterNextOperationSpec
579
+ );
580
+ }
581
+ }
582
+ // Operation Specifications
583
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
584
+
585
+ const listByServerOperationSpec: coreClient.OperationSpec = {
586
+ path:
587
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/servers/{serverName}/configurations",
588
+ httpMethod: "GET",
589
+ responses: {
590
+ 200: {
591
+ bodyMapper: Mappers.ServerConfigurationListResult
592
+ },
593
+ default: {
594
+ bodyMapper: Mappers.ErrorResponse
595
+ }
596
+ },
597
+ queryParameters: [Parameters.apiVersion],
598
+ urlParameters: [
599
+ Parameters.$host,
600
+ Parameters.subscriptionId,
601
+ Parameters.resourceGroupName,
602
+ Parameters.clusterName,
603
+ Parameters.serverName
604
+ ],
605
+ headerParameters: [Parameters.accept],
606
+ serializer
607
+ };
608
+ const listByClusterOperationSpec: coreClient.OperationSpec = {
609
+ path:
610
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations",
611
+ httpMethod: "GET",
612
+ responses: {
613
+ 200: {
614
+ bodyMapper: Mappers.ClusterConfigurationListResult
615
+ },
616
+ default: {
617
+ bodyMapper: Mappers.ErrorResponse
618
+ }
619
+ },
620
+ queryParameters: [Parameters.apiVersion],
621
+ urlParameters: [
622
+ Parameters.$host,
623
+ Parameters.subscriptionId,
624
+ Parameters.resourceGroupName,
625
+ Parameters.clusterName
626
+ ],
627
+ headerParameters: [Parameters.accept],
628
+ serializer
629
+ };
630
+ const getOperationSpec: coreClient.OperationSpec = {
631
+ path:
632
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/configurations/{configurationName}",
633
+ httpMethod: "GET",
634
+ responses: {
635
+ 200: {
636
+ bodyMapper: Mappers.Configuration
637
+ },
638
+ default: {
639
+ bodyMapper: Mappers.ErrorResponse
640
+ }
641
+ },
642
+ queryParameters: [Parameters.apiVersion],
643
+ urlParameters: [
644
+ Parameters.$host,
645
+ Parameters.subscriptionId,
646
+ Parameters.resourceGroupName,
647
+ Parameters.clusterName,
648
+ Parameters.configurationName
649
+ ],
650
+ headerParameters: [Parameters.accept],
651
+ serializer
652
+ };
653
+ const getCoordinatorOperationSpec: coreClient.OperationSpec = {
654
+ path:
655
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/coordinatorConfigurations/{configurationName}",
656
+ httpMethod: "GET",
657
+ responses: {
658
+ 200: {
659
+ bodyMapper: Mappers.ServerConfiguration
660
+ },
661
+ default: {
662
+ bodyMapper: Mappers.ErrorResponse
663
+ }
664
+ },
665
+ queryParameters: [Parameters.apiVersion],
666
+ urlParameters: [
667
+ Parameters.$host,
668
+ Parameters.subscriptionId,
669
+ Parameters.resourceGroupName,
670
+ Parameters.clusterName,
671
+ Parameters.configurationName
672
+ ],
673
+ headerParameters: [Parameters.accept],
674
+ serializer
675
+ };
676
+ const updateOnCoordinatorOperationSpec: coreClient.OperationSpec = {
677
+ path:
678
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/coordinatorConfigurations/{configurationName}",
679
+ httpMethod: "PUT",
680
+ responses: {
681
+ 200: {
682
+ bodyMapper: Mappers.ServerConfiguration
683
+ },
684
+ 201: {
685
+ bodyMapper: Mappers.ServerConfiguration
686
+ },
687
+ 202: {
688
+ bodyMapper: Mappers.ServerConfiguration
689
+ },
690
+ 204: {
691
+ bodyMapper: Mappers.ServerConfiguration
692
+ },
693
+ default: {
694
+ bodyMapper: Mappers.ErrorResponse
695
+ }
696
+ },
697
+ requestBody: Parameters.parameters2,
698
+ queryParameters: [Parameters.apiVersion],
699
+ urlParameters: [
700
+ Parameters.$host,
701
+ Parameters.subscriptionId,
702
+ Parameters.resourceGroupName,
703
+ Parameters.clusterName,
704
+ Parameters.configurationName
705
+ ],
706
+ headerParameters: [Parameters.accept, Parameters.contentType],
707
+ mediaType: "json",
708
+ serializer
709
+ };
710
+ const getNodeOperationSpec: coreClient.OperationSpec = {
711
+ path:
712
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/nodeConfigurations/{configurationName}",
713
+ httpMethod: "GET",
714
+ responses: {
715
+ 200: {
716
+ bodyMapper: Mappers.ServerConfiguration
717
+ },
718
+ default: {
719
+ bodyMapper: Mappers.ErrorResponse
720
+ }
721
+ },
722
+ queryParameters: [Parameters.apiVersion],
723
+ urlParameters: [
724
+ Parameters.$host,
725
+ Parameters.subscriptionId,
726
+ Parameters.resourceGroupName,
727
+ Parameters.clusterName,
728
+ Parameters.configurationName
729
+ ],
730
+ headerParameters: [Parameters.accept],
731
+ serializer
732
+ };
733
+ const updateOnNodeOperationSpec: coreClient.OperationSpec = {
734
+ path:
735
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/nodeConfigurations/{configurationName}",
736
+ httpMethod: "PUT",
737
+ responses: {
738
+ 200: {
739
+ bodyMapper: Mappers.ServerConfiguration
740
+ },
741
+ 201: {
742
+ bodyMapper: Mappers.ServerConfiguration
743
+ },
744
+ 202: {
745
+ bodyMapper: Mappers.ServerConfiguration
746
+ },
747
+ 204: {
748
+ bodyMapper: Mappers.ServerConfiguration
749
+ },
750
+ default: {
751
+ bodyMapper: Mappers.ErrorResponse
752
+ }
753
+ },
754
+ requestBody: Parameters.parameters2,
755
+ queryParameters: [Parameters.apiVersion],
756
+ urlParameters: [
757
+ Parameters.$host,
758
+ Parameters.subscriptionId,
759
+ Parameters.resourceGroupName,
760
+ Parameters.clusterName,
761
+ Parameters.configurationName
762
+ ],
763
+ headerParameters: [Parameters.accept, Parameters.contentType],
764
+ mediaType: "json",
765
+ serializer
766
+ };
767
+ const listByServerNextOperationSpec: coreClient.OperationSpec = {
768
+ path: "{nextLink}",
769
+ httpMethod: "GET",
770
+ responses: {
771
+ 200: {
772
+ bodyMapper: Mappers.ServerConfigurationListResult
773
+ },
774
+ default: {
775
+ bodyMapper: Mappers.ErrorResponse
776
+ }
777
+ },
778
+ urlParameters: [
779
+ Parameters.$host,
780
+ Parameters.subscriptionId,
781
+ Parameters.resourceGroupName,
782
+ Parameters.clusterName,
783
+ Parameters.nextLink,
784
+ Parameters.serverName
785
+ ],
786
+ headerParameters: [Parameters.accept],
787
+ serializer
788
+ };
789
+ const listByClusterNextOperationSpec: coreClient.OperationSpec = {
790
+ path: "{nextLink}",
791
+ httpMethod: "GET",
792
+ responses: {
793
+ 200: {
794
+ bodyMapper: Mappers.ClusterConfigurationListResult
795
+ },
796
+ default: {
797
+ bodyMapper: Mappers.ErrorResponse
798
+ }
799
+ },
800
+ urlParameters: [
801
+ Parameters.$host,
802
+ Parameters.subscriptionId,
803
+ Parameters.resourceGroupName,
804
+ Parameters.clusterName,
805
+ Parameters.nextLink
806
+ ],
807
+ headerParameters: [Parameters.accept],
808
+ serializer
809
+ };