@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,78 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
3
+ import { CosmosDBForPostgreSQL } from "../cosmosDBForPostgreSQL";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { PrivateEndpointConnection, PrivateEndpointConnectionsListByClusterOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsDeleteResponse } from "../models";
6
+ /** Class containing PrivateEndpointConnections operations. */
7
+ export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class PrivateEndpointConnections class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: CosmosDBForPostgreSQL);
14
+ /**
15
+ * Gets list of private endpoint connections on a cluster.
16
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
17
+ * @param clusterName The name of the cluster.
18
+ * @param options The options parameters.
19
+ */
20
+ listByCluster(resourceGroupName: string, clusterName: string, options?: PrivateEndpointConnectionsListByClusterOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
21
+ private listByClusterPagingPage;
22
+ private listByClusterPagingAll;
23
+ /**
24
+ * Gets list of private endpoint connections on a cluster.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param clusterName The name of the cluster.
27
+ * @param options The options parameters.
28
+ */
29
+ private _listByCluster;
30
+ /**
31
+ * Gets private endpoint connection.
32
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
+ * @param clusterName The name of the cluster.
34
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
35
+ * cluster.
36
+ * @param options The options parameters.
37
+ */
38
+ get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
39
+ /**
40
+ * Approves or Rejects a private endpoint connection with a given name.
41
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
42
+ * @param clusterName The name of the cluster.
43
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
44
+ * cluster.
45
+ * @param parameters The required parameters for approving a private endpoint connection.
46
+ * @param options The options parameters.
47
+ */
48
+ beginCreateOrUpdate(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
49
+ /**
50
+ * Approves or Rejects a private endpoint connection with a given name.
51
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
52
+ * @param clusterName The name of the cluster.
53
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
54
+ * cluster.
55
+ * @param parameters The required parameters for approving a private endpoint connection.
56
+ * @param options The options parameters.
57
+ */
58
+ beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
59
+ /**
60
+ * Deletes a private endpoint connection with a given name.
61
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
62
+ * @param clusterName The name of the cluster.
63
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
64
+ * cluster.
65
+ * @param options The options parameters.
66
+ */
67
+ beginDelete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsDeleteResponse>, PrivateEndpointConnectionsDeleteResponse>>;
68
+ /**
69
+ * Deletes a private endpoint connection with a given name.
70
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
+ * @param clusterName The name of the cluster.
72
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
73
+ * cluster.
74
+ * @param options The options parameters.
75
+ */
76
+ beginDeleteAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<PrivateEndpointConnectionsDeleteResponse>;
77
+ }
78
+ //# sourceMappingURL=privateEndpointConnections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM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AE,sDAAsD,GAC/D,OAAO,CAAC,gDAAgD,CAAC;IAW5D;;;;;;;OAOG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,wCAAwC,CAAC,EACxD,wCAAwC,CACzC,CACF;IA8DD;;;;;;;OAOG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;CASrD"}
@@ -0,0 +1,347 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { createHttpPoller } from "@azure/core-lro";
13
+ import { createLroSpec } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing PrivateEndpointConnections operations. */
16
+ export class PrivateEndpointConnectionsImpl {
17
+ /**
18
+ * Initialize a new instance of the class PrivateEndpointConnections class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Gets list of private endpoint connections on a cluster.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param clusterName The name of the cluster.
28
+ * @param options The options parameters.
29
+ */
30
+ listByCluster(resourceGroupName, clusterName, options) {
31
+ const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: (settings) => {
40
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ throw new Error("maxPageSize is not supported by this operation.");
42
+ }
43
+ return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
44
+ }
45
+ };
46
+ }
47
+ listByClusterPagingPage(resourceGroupName, clusterName, options, _settings) {
48
+ return __asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
49
+ let result;
50
+ result = yield __await(this._listByCluster(resourceGroupName, clusterName, options));
51
+ yield yield __await(result.value || []);
52
+ });
53
+ }
54
+ listByClusterPagingAll(resourceGroupName, clusterName, options) {
55
+ return __asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
56
+ var _a, e_1, _b, _c;
57
+ try {
58
+ for (var _d = true, _e = __asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
59
+ _c = _f.value;
60
+ _d = false;
61
+ try {
62
+ const page = _c;
63
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
64
+ }
65
+ finally {
66
+ _d = true;
67
+ }
68
+ }
69
+ }
70
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
71
+ finally {
72
+ try {
73
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
74
+ }
75
+ finally { if (e_1) throw e_1.error; }
76
+ }
77
+ });
78
+ }
79
+ /**
80
+ * Gets list of private endpoint connections on a cluster.
81
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
82
+ * @param clusterName The name of the cluster.
83
+ * @param options The options parameters.
84
+ */
85
+ _listByCluster(resourceGroupName, clusterName, options) {
86
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
87
+ }
88
+ /**
89
+ * Gets private endpoint connection.
90
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
91
+ * @param clusterName The name of the cluster.
92
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
93
+ * cluster.
94
+ * @param options The options parameters.
95
+ */
96
+ get(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
97
+ return this.client.sendOperationRequest({
98
+ resourceGroupName,
99
+ clusterName,
100
+ privateEndpointConnectionName,
101
+ options
102
+ }, getOperationSpec);
103
+ }
104
+ /**
105
+ * Approves or Rejects a private endpoint connection with a given name.
106
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
107
+ * @param clusterName The name of the cluster.
108
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
109
+ * cluster.
110
+ * @param parameters The required parameters for approving a private endpoint connection.
111
+ * @param options The options parameters.
112
+ */
113
+ beginCreateOrUpdate(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
116
+ return this.client.sendOperationRequest(args, spec);
117
+ });
118
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
119
+ var _a;
120
+ let currentRawResponse = undefined;
121
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
122
+ const callback = (rawResponse, flatResponse) => {
123
+ currentRawResponse = rawResponse;
124
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
125
+ };
126
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
127
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
128
+ return {
129
+ flatResponse,
130
+ rawResponse: {
131
+ statusCode: currentRawResponse.status,
132
+ body: currentRawResponse.parsedBody,
133
+ headers: currentRawResponse.headers.toJSON()
134
+ }
135
+ };
136
+ });
137
+ const lro = createLroSpec({
138
+ sendOperationFn,
139
+ args: {
140
+ resourceGroupName,
141
+ clusterName,
142
+ privateEndpointConnectionName,
143
+ parameters,
144
+ options
145
+ },
146
+ spec: createOrUpdateOperationSpec
147
+ });
148
+ const poller = yield createHttpPoller(lro, {
149
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
150
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
151
+ resourceLocationConfig: "azure-async-operation"
152
+ });
153
+ yield poller.poll();
154
+ return poller;
155
+ });
156
+ }
157
+ /**
158
+ * Approves or Rejects a private endpoint connection with a given name.
159
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
160
+ * @param clusterName The name of the cluster.
161
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
162
+ * cluster.
163
+ * @param parameters The required parameters for approving a private endpoint connection.
164
+ * @param options The options parameters.
165
+ */
166
+ beginCreateOrUpdateAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options) {
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options);
169
+ return poller.pollUntilDone();
170
+ });
171
+ }
172
+ /**
173
+ * Deletes a private endpoint connection with a given name.
174
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
175
+ * @param clusterName The name of the cluster.
176
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
177
+ * cluster.
178
+ * @param options The options parameters.
179
+ */
180
+ beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
183
+ return this.client.sendOperationRequest(args, spec);
184
+ });
185
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
186
+ var _a;
187
+ let currentRawResponse = undefined;
188
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
189
+ const callback = (rawResponse, flatResponse) => {
190
+ currentRawResponse = rawResponse;
191
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
192
+ };
193
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
194
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
195
+ return {
196
+ flatResponse,
197
+ rawResponse: {
198
+ statusCode: currentRawResponse.status,
199
+ body: currentRawResponse.parsedBody,
200
+ headers: currentRawResponse.headers.toJSON()
201
+ }
202
+ };
203
+ });
204
+ const lro = createLroSpec({
205
+ sendOperationFn,
206
+ args: {
207
+ resourceGroupName,
208
+ clusterName,
209
+ privateEndpointConnectionName,
210
+ options
211
+ },
212
+ spec: deleteOperationSpec
213
+ });
214
+ const poller = yield createHttpPoller(lro, {
215
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
216
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
217
+ resourceLocationConfig: "location"
218
+ });
219
+ yield poller.poll();
220
+ return poller;
221
+ });
222
+ }
223
+ /**
224
+ * Deletes a private endpoint connection with a given name.
225
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
226
+ * @param clusterName The name of the cluster.
227
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
228
+ * cluster.
229
+ * @param options The options parameters.
230
+ */
231
+ beginDeleteAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ const poller = yield this.beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options);
234
+ return poller.pollUntilDone();
235
+ });
236
+ }
237
+ }
238
+ // Operation Specifications
239
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
240
+ const listByClusterOperationSpec = {
241
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections",
242
+ httpMethod: "GET",
243
+ responses: {
244
+ 200: {
245
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
246
+ },
247
+ default: {
248
+ bodyMapper: Mappers.ErrorResponse
249
+ }
250
+ },
251
+ queryParameters: [Parameters.apiVersion],
252
+ urlParameters: [
253
+ Parameters.$host,
254
+ Parameters.subscriptionId,
255
+ Parameters.resourceGroupName,
256
+ Parameters.clusterName
257
+ ],
258
+ headerParameters: [Parameters.accept],
259
+ serializer
260
+ };
261
+ const getOperationSpec = {
262
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
263
+ httpMethod: "GET",
264
+ responses: {
265
+ 200: {
266
+ bodyMapper: Mappers.PrivateEndpointConnection
267
+ },
268
+ default: {
269
+ bodyMapper: Mappers.ErrorResponse
270
+ }
271
+ },
272
+ queryParameters: [Parameters.apiVersion],
273
+ urlParameters: [
274
+ Parameters.$host,
275
+ Parameters.subscriptionId,
276
+ Parameters.resourceGroupName,
277
+ Parameters.clusterName,
278
+ Parameters.privateEndpointConnectionName
279
+ ],
280
+ headerParameters: [Parameters.accept],
281
+ serializer
282
+ };
283
+ const createOrUpdateOperationSpec = {
284
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
285
+ httpMethod: "PUT",
286
+ responses: {
287
+ 200: {
288
+ bodyMapper: Mappers.PrivateEndpointConnection
289
+ },
290
+ 201: {
291
+ bodyMapper: Mappers.PrivateEndpointConnection
292
+ },
293
+ 202: {
294
+ bodyMapper: Mappers.PrivateEndpointConnection
295
+ },
296
+ 204: {
297
+ bodyMapper: Mappers.PrivateEndpointConnection
298
+ },
299
+ default: {
300
+ bodyMapper: Mappers.ErrorResponse
301
+ }
302
+ },
303
+ requestBody: Parameters.parameters5,
304
+ queryParameters: [Parameters.apiVersion],
305
+ urlParameters: [
306
+ Parameters.$host,
307
+ Parameters.subscriptionId,
308
+ Parameters.resourceGroupName,
309
+ Parameters.clusterName,
310
+ Parameters.privateEndpointConnectionName
311
+ ],
312
+ headerParameters: [Parameters.accept, Parameters.contentType],
313
+ mediaType: "json",
314
+ serializer
315
+ };
316
+ const deleteOperationSpec = {
317
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
318
+ httpMethod: "DELETE",
319
+ responses: {
320
+ 200: {
321
+ headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders
322
+ },
323
+ 201: {
324
+ headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders
325
+ },
326
+ 202: {
327
+ headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders
328
+ },
329
+ 204: {
330
+ headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders
331
+ },
332
+ default: {
333
+ bodyMapper: Mappers.ErrorResponse
334
+ }
335
+ },
336
+ queryParameters: [Parameters.apiVersion],
337
+ urlParameters: [
338
+ Parameters.$host,
339
+ Parameters.subscriptionId,
340
+ Parameters.resourceGroupName,
341
+ Parameters.clusterName,
342
+ Parameters.privateEndpointConnectionName
343
+ ],
344
+ headerParameters: [Parameters.accept],
345
+ serializer
346
+ };
347
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAa3C,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;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C;SAC/D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateLinkResources } from "../operationsInterfaces";
3
+ import { CosmosDBForPostgreSQL } from "../cosmosDBForPostgreSQL";
4
+ import { PrivateLinkResource, PrivateLinkResourcesListByClusterOptionalParams, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models";
5
+ /** Class containing PrivateLinkResources operations. */
6
+ export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class PrivateLinkResources class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: CosmosDBForPostgreSQL);
13
+ /**
14
+ * Gets the private link resources for cluster.
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param clusterName The name of the cluster.
17
+ * @param options The options parameters.
18
+ */
19
+ listByCluster(resourceGroupName: string, clusterName: string, options?: PrivateLinkResourcesListByClusterOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
20
+ private listByClusterPagingPage;
21
+ private listByClusterPagingAll;
22
+ /**
23
+ * Gets the private link resources for cluster.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param clusterName The name of the cluster.
26
+ * @param options The options parameters.
27
+ */
28
+ private _listByCluster;
29
+ /**
30
+ * Gets a private link resource for cluster.
31
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
+ * @param clusterName The name of the cluster.
33
+ * @param privateLinkResourceName The name of the private link resource.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName: string, clusterName: string, privateLinkResourceName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
37
+ }
38
+ //# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,+CAA+C,EAE/C,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAE/C;;;OAGG;gBACS,MAAM,EAAE,qBAAqB;IAIzC;;;;;OAKG;IACI,aAAa,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+CAA+C,GACxD,0BAA0B,CAAC,mBAAmB,CAAC;YA2BnC,uBAAuB;YAWvB,sBAAsB;IAcrC;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;CAM5C"}
@@ -0,0 +1,142 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing PrivateLinkResources operations. */
14
+ export class PrivateLinkResourcesImpl {
15
+ /**
16
+ * Initialize a new instance of the class PrivateLinkResources class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Gets the private link resources for cluster.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param clusterName The name of the cluster.
26
+ * @param options The options parameters.
27
+ */
28
+ listByCluster(resourceGroupName, clusterName, options) {
29
+ const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
30
+ return {
31
+ next() {
32
+ return iter.next();
33
+ },
34
+ [Symbol.asyncIterator]() {
35
+ return this;
36
+ },
37
+ byPage: (settings) => {
38
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ throw new Error("maxPageSize is not supported by this operation.");
40
+ }
41
+ return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
42
+ }
43
+ };
44
+ }
45
+ listByClusterPagingPage(resourceGroupName, clusterName, options, _settings) {
46
+ return __asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
47
+ let result;
48
+ result = yield __await(this._listByCluster(resourceGroupName, clusterName, options));
49
+ yield yield __await(result.value || []);
50
+ });
51
+ }
52
+ listByClusterPagingAll(resourceGroupName, clusterName, options) {
53
+ return __asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
54
+ var _a, e_1, _b, _c;
55
+ try {
56
+ for (var _d = true, _e = __asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
57
+ _c = _f.value;
58
+ _d = false;
59
+ try {
60
+ const page = _c;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ finally {
64
+ _d = true;
65
+ }
66
+ }
67
+ }
68
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
69
+ finally {
70
+ try {
71
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
72
+ }
73
+ finally { if (e_1) throw e_1.error; }
74
+ }
75
+ });
76
+ }
77
+ /**
78
+ * Gets the private link resources for cluster.
79
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
80
+ * @param clusterName The name of the cluster.
81
+ * @param options The options parameters.
82
+ */
83
+ _listByCluster(resourceGroupName, clusterName, options) {
84
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
85
+ }
86
+ /**
87
+ * Gets a private link resource for cluster.
88
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
89
+ * @param clusterName The name of the cluster.
90
+ * @param privateLinkResourceName The name of the private link resource.
91
+ * @param options The options parameters.
92
+ */
93
+ get(resourceGroupName, clusterName, privateLinkResourceName, options) {
94
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, privateLinkResourceName, options }, getOperationSpec);
95
+ }
96
+ }
97
+ // Operation Specifications
98
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
99
+ const listByClusterOperationSpec = {
100
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources",
101
+ httpMethod: "GET",
102
+ responses: {
103
+ 200: {
104
+ bodyMapper: Mappers.PrivateLinkResourceListResult
105
+ },
106
+ default: {
107
+ bodyMapper: Mappers.ErrorResponse
108
+ }
109
+ },
110
+ queryParameters: [Parameters.apiVersion],
111
+ urlParameters: [
112
+ Parameters.$host,
113
+ Parameters.subscriptionId,
114
+ Parameters.resourceGroupName,
115
+ Parameters.clusterName
116
+ ],
117
+ headerParameters: [Parameters.accept],
118
+ serializer
119
+ };
120
+ const getOperationSpec = {
121
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateLinkResources/{privateLinkResourceName}",
122
+ httpMethod: "GET",
123
+ responses: {
124
+ 200: {
125
+ bodyMapper: Mappers.PrivateLinkResource
126
+ },
127
+ default: {
128
+ bodyMapper: Mappers.ErrorResponse
129
+ }
130
+ },
131
+ queryParameters: [Parameters.apiVersion],
132
+ urlParameters: [
133
+ Parameters.$host,
134
+ Parameters.subscriptionId,
135
+ Parameters.resourceGroupName,
136
+ Parameters.clusterName,
137
+ Parameters.privateLinkResourceName
138
+ ],
139
+ headerParameters: [Parameters.accept],
140
+ serializer
141
+ };
142
+ //# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,C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