@azure/arm-postgresql-flexible 8.0.0-beta.2 → 8.0.0-beta.4

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 (266) hide show
  1. package/CHANGELOG.md +540 -1
  2. package/dist/index.js +6111 -3678
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/administratorsCreateSample.js +1 -1
  7. package/dist-esm/samples-dev/administratorsDeleteSample.js +1 -1
  8. package/dist-esm/samples-dev/administratorsGetSample.js +1 -1
  9. package/dist-esm/samples-dev/administratorsListByServerSample.js +4 -9
  10. package/dist-esm/samples-dev/administratorsListByServerSample.js.map +1 -1
  11. package/dist-esm/samples-dev/backupsGetSample.js +1 -1
  12. package/dist-esm/samples-dev/backupsListByServerSample.js +4 -9
  13. package/dist-esm/samples-dev/backupsListByServerSample.js.map +1 -1
  14. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js +3 -4
  15. package/dist-esm/samples-dev/checkMigrationNameAvailabilitySample.js.map +1 -1
  16. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +1 -1
  17. package/dist-esm/samples-dev/checkNameAvailabilityWithLocationExecuteSample.js +1 -1
  18. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  19. package/dist-esm/samples-dev/configurationsListByServerSample.js +4 -9
  20. package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
  21. package/dist-esm/samples-dev/configurationsPutSample.js +1 -1
  22. package/dist-esm/samples-dev/configurationsUpdateSample.js +1 -1
  23. package/dist-esm/samples-dev/databasesCreateSample.js +1 -1
  24. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  25. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  26. package/dist-esm/samples-dev/databasesListByServerSample.js +4 -9
  27. package/dist-esm/samples-dev/databasesListByServerSample.js.map +1 -1
  28. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +1 -1
  29. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
  30. package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
  31. package/dist-esm/samples-dev/firewallRulesListByServerSample.js +4 -9
  32. package/dist-esm/samples-dev/firewallRulesListByServerSample.js.map +1 -1
  33. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.js +1 -1
  34. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.js +1 -1
  35. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +2 -4
  36. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js.map +1 -1
  37. package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js +4 -9
  38. package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js.map +1 -1
  39. package/dist-esm/samples-dev/logFilesListByServerSample.js +4 -9
  40. package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -1
  41. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.js +1 -1
  42. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js +4 -9
  43. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js.map +1 -1
  44. package/dist-esm/samples-dev/migrationsCreateSample.js +74 -8
  45. package/dist-esm/samples-dev/migrationsCreateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/migrationsDeleteSample.js +3 -4
  47. package/dist-esm/samples-dev/migrationsDeleteSample.js.map +1 -1
  48. package/dist-esm/samples-dev/migrationsGetSample.js +79 -4
  49. package/dist-esm/samples-dev/migrationsGetSample.js.map +1 -1
  50. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js +6 -12
  51. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js.map +1 -1
  52. package/dist-esm/samples-dev/migrationsUpdateSample.js +6 -8
  53. package/dist-esm/samples-dev/migrationsUpdateSample.js.map +1 -1
  54. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  55. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +40 -0
  58. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -0
  59. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +46 -0
  62. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -0
  63. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +40 -0
  66. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  67. package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.js +55 -0
  70. package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.js.map +1 -0
  71. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +40 -0
  74. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
  75. package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.js +55 -0
  78. package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.js.map +1 -0
  79. package/dist-esm/samples-dev/quotaUsagesListSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/quotaUsagesListSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/quotaUsagesListSample.js +54 -0
  82. package/dist-esm/samples-dev/quotaUsagesListSample.js.map +1 -0
  83. package/dist-esm/samples-dev/replicasListByServerSample.js +4 -9
  84. package/dist-esm/samples-dev/replicasListByServerSample.js.map +1 -1
  85. package/dist-esm/samples-dev/serverCapabilitiesListSample.js +4 -9
  86. package/dist-esm/samples-dev/serverCapabilitiesListSample.js.map +1 -1
  87. package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.js +41 -0
  90. package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.js.map +1 -0
  91. package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.js +40 -0
  94. package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.js.map +1 -0
  95. package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.js +55 -0
  98. package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.js.map +1 -0
  99. package/dist-esm/samples-dev/serversCreateSample.js +9 -9
  100. package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
  101. package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
  102. package/dist-esm/samples-dev/serversGetSample.js +21 -2
  103. package/dist-esm/samples-dev/serversGetSample.js.map +1 -1
  104. package/dist-esm/samples-dev/serversListByResourceGroupSample.js +4 -9
  105. package/dist-esm/samples-dev/serversListByResourceGroupSample.js.map +1 -1
  106. package/dist-esm/samples-dev/serversListSample.js +4 -9
  107. package/dist-esm/samples-dev/serversListSample.js.map +1 -1
  108. package/dist-esm/samples-dev/serversRestartSample.js +2 -2
  109. package/dist-esm/samples-dev/serversStartSample.js +1 -1
  110. package/dist-esm/samples-dev/serversStopSample.js +1 -1
  111. package/dist-esm/samples-dev/serversUpdateSample.js +95 -7
  112. package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
  113. package/dist-esm/samples-dev/virtualEndpointsCreateSample.d.ts +2 -0
  114. package/dist-esm/samples-dev/virtualEndpointsCreateSample.d.ts.map +1 -0
  115. package/dist-esm/samples-dev/virtualEndpointsCreateSample.js +44 -0
  116. package/dist-esm/samples-dev/virtualEndpointsCreateSample.js.map +1 -0
  117. package/dist-esm/samples-dev/virtualEndpointsDeleteSample.d.ts +2 -0
  118. package/dist-esm/samples-dev/virtualEndpointsDeleteSample.d.ts.map +1 -0
  119. package/dist-esm/samples-dev/virtualEndpointsDeleteSample.js +40 -0
  120. package/dist-esm/samples-dev/virtualEndpointsDeleteSample.js.map +1 -0
  121. package/dist-esm/samples-dev/virtualEndpointsGetSample.d.ts +2 -0
  122. package/dist-esm/samples-dev/virtualEndpointsGetSample.d.ts.map +1 -0
  123. package/dist-esm/samples-dev/virtualEndpointsGetSample.js +40 -0
  124. package/dist-esm/samples-dev/virtualEndpointsGetSample.js.map +1 -0
  125. package/dist-esm/samples-dev/virtualEndpointsListByServerSample.d.ts +2 -0
  126. package/dist-esm/samples-dev/virtualEndpointsListByServerSample.d.ts.map +1 -0
  127. package/dist-esm/samples-dev/virtualEndpointsListByServerSample.js +55 -0
  128. package/dist-esm/samples-dev/virtualEndpointsListByServerSample.js.map +1 -0
  129. package/dist-esm/samples-dev/virtualEndpointsUpdateSample.d.ts +2 -0
  130. package/dist-esm/samples-dev/virtualEndpointsUpdateSample.d.ts.map +1 -0
  131. package/dist-esm/samples-dev/virtualEndpointsUpdateSample.js +44 -0
  132. package/dist-esm/samples-dev/virtualEndpointsUpdateSample.js.map +1 -0
  133. package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js +1 -1
  134. package/dist-esm/src/models/index.d.ts +822 -119
  135. package/dist-esm/src/models/index.d.ts.map +1 -1
  136. package/dist-esm/src/models/index.js +158 -12
  137. package/dist-esm/src/models/index.js.map +1 -1
  138. package/dist-esm/src/models/mappers.d.ts +32 -7
  139. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  140. package/dist-esm/src/models/mappers.js +972 -160
  141. package/dist-esm/src/models/mappers.js.map +1 -1
  142. package/dist-esm/src/models/parameters.d.ts +12 -4
  143. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  144. package/dist-esm/src/models/parameters.js +82 -18
  145. package/dist-esm/src/models/parameters.js.map +1 -1
  146. package/dist-esm/src/operations/administrators.js +3 -8
  147. package/dist-esm/src/operations/administrators.js.map +1 -1
  148. package/dist-esm/src/operations/backups.js +3 -8
  149. package/dist-esm/src/operations/backups.js.map +1 -1
  150. package/dist-esm/src/operations/configurations.js +3 -8
  151. package/dist-esm/src/operations/configurations.js.map +1 -1
  152. package/dist-esm/src/operations/databases.js +3 -8
  153. package/dist-esm/src/operations/databases.js.map +1 -1
  154. package/dist-esm/src/operations/firewallRules.js +3 -8
  155. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  156. package/dist-esm/src/operations/flexibleServer.js +2 -2
  157. package/dist-esm/src/operations/flexibleServer.js.map +1 -1
  158. package/dist-esm/src/operations/index.d.ts +8 -2
  159. package/dist-esm/src/operations/index.d.ts.map +1 -1
  160. package/dist-esm/src/operations/index.js +8 -2
  161. package/dist-esm/src/operations/index.js.map +1 -1
  162. package/dist-esm/src/operations/locationBasedCapabilities.js +3 -8
  163. package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -1
  164. package/dist-esm/src/operations/logFiles.js +3 -8
  165. package/dist-esm/src/operations/logFiles.js.map +1 -1
  166. package/dist-esm/src/operations/ltrBackupOperations.js +3 -8
  167. package/dist-esm/src/operations/ltrBackupOperations.js.map +1 -1
  168. package/dist-esm/src/operations/migrations.js +5 -10
  169. package/dist-esm/src/operations/migrations.js.map +1 -1
  170. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +48 -0
  171. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
  172. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +218 -0
  173. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
  174. package/dist-esm/src/operations/privateEndpointConnections.d.ts +46 -0
  175. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  176. package/dist-esm/src/operations/privateEndpointConnections.js +182 -0
  177. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  178. package/dist-esm/src/operations/privateLinkResources.d.ts +46 -0
  179. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  180. package/dist-esm/src/operations/privateLinkResources.js +182 -0
  181. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  182. package/dist-esm/src/operations/quotaUsages.d.ts +35 -0
  183. package/dist-esm/src/operations/quotaUsages.d.ts.map +1 -0
  184. package/dist-esm/src/operations/quotaUsages.js +145 -0
  185. package/dist-esm/src/operations/quotaUsages.js.map +1 -0
  186. package/dist-esm/src/operations/replicas.js +3 -8
  187. package/dist-esm/src/operations/replicas.js.map +1 -1
  188. package/dist-esm/src/operations/serverCapabilities.js +3 -8
  189. package/dist-esm/src/operations/serverCapabilities.js.map +1 -1
  190. package/dist-esm/src/operations/serverThreatProtectionSettings.d.ts +65 -0
  191. package/dist-esm/src/operations/serverThreatProtectionSettings.d.ts.map +1 -0
  192. package/dist-esm/src/operations/serverThreatProtectionSettings.js +283 -0
  193. package/dist-esm/src/operations/serverThreatProtectionSettings.js.map +1 -0
  194. package/dist-esm/src/operations/servers.js +6 -16
  195. package/dist-esm/src/operations/servers.js.map +1 -1
  196. package/dist-esm/src/operations/virtualEndpoints.d.ts +101 -0
  197. package/dist-esm/src/operations/virtualEndpoints.d.ts.map +1 -0
  198. package/dist-esm/src/operations/virtualEndpoints.js +473 -0
  199. package/dist-esm/src/operations/virtualEndpoints.js.map +1 -0
  200. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js +1 -1
  201. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -2
  202. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  203. package/dist-esm/src/operationsInterfaces/index.js +8 -2
  204. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  205. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +40 -0
  206. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
  207. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
  208. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
  209. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +21 -0
  210. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  211. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  212. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  213. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  214. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  215. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  216. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  217. package/dist-esm/src/operationsInterfaces/quotaUsages.d.ts +12 -0
  218. package/dist-esm/src/operationsInterfaces/quotaUsages.d.ts.map +1 -0
  219. package/dist-esm/src/operationsInterfaces/quotaUsages.js +9 -0
  220. package/dist-esm/src/operationsInterfaces/quotaUsages.js.map +1 -0
  221. package/dist-esm/src/operationsInterfaces/serverThreatProtectionSettings.d.ts +40 -0
  222. package/dist-esm/src/operationsInterfaces/serverThreatProtectionSettings.d.ts.map +1 -0
  223. package/dist-esm/src/operationsInterfaces/serverThreatProtectionSettings.js +9 -0
  224. package/dist-esm/src/operationsInterfaces/serverThreatProtectionSettings.js.map +1 -0
  225. package/dist-esm/src/operationsInterfaces/virtualEndpoints.d.ts +76 -0
  226. package/dist-esm/src/operationsInterfaces/virtualEndpoints.d.ts.map +1 -0
  227. package/dist-esm/src/operationsInterfaces/virtualEndpoints.js +9 -0
  228. package/dist-esm/src/operationsInterfaces/virtualEndpoints.js.map +1 -0
  229. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts +12 -5
  230. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts.map +1 -1
  231. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +19 -15
  232. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  233. package/dist-esm/test/postgresql_flexible_operations_test.spec.d.ts +4 -0
  234. package/dist-esm/test/postgresql_flexible_operations_test.spec.d.ts.map +1 -0
  235. package/dist-esm/test/postgresql_flexible_operations_test.spec.js +55 -0
  236. package/dist-esm/test/postgresql_flexible_operations_test.spec.js.map +1 -0
  237. package/package.json +15 -19
  238. package/review/arm-postgresql-flexible.api.md +551 -6
  239. package/src/models/index.ts +934 -135
  240. package/src/models/mappers.ts +1189 -325
  241. package/src/models/parameters.ts +96 -20
  242. package/src/operations/flexibleServer.ts +2 -2
  243. package/src/operations/index.ts +8 -2
  244. package/src/operations/migrations.ts +2 -2
  245. package/src/operations/privateEndpointConnectionOperations.ts +316 -0
  246. package/src/operations/privateEndpointConnections.ts +243 -0
  247. package/src/operations/privateLinkResources.ts +242 -0
  248. package/src/operations/quotaUsages.ts +170 -0
  249. package/src/operations/serverThreatProtectionSettings.ts +393 -0
  250. package/src/operations/virtualEndpoints.ts +667 -0
  251. package/src/operations/virtualNetworkSubnetUsage.ts +1 -1
  252. package/src/operationsInterfaces/index.ts +8 -2
  253. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +86 -0
  254. package/src/operationsInterfaces/privateEndpointConnections.ts +44 -0
  255. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  256. package/src/operationsInterfaces/quotaUsages.ts +24 -0
  257. package/src/operationsInterfaces/serverThreatProtectionSettings.ts +83 -0
  258. package/src/operationsInterfaces/virtualEndpoints.ts +155 -0
  259. package/src/postgreSQLManagementFlexibleServerClient.ts +61 -17
  260. package/types/arm-postgresql-flexible.d.ts +1025 -27
  261. package/types/tsdoc-metadata.json +1 -1
  262. package/dist-esm/test/sampleTest.d.ts +0 -2
  263. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  264. package/dist-esm/test/sampleTest.js +0 -38
  265. package/dist-esm/test/sampleTest.js.map +0 -1
  266. package/rollup.config.js +0 -122
@@ -0,0 +1,218 @@
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 { __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
+ /** Class containing PrivateEndpointConnectionOperations operations. */
15
+ export class PrivateEndpointConnectionOperationsImpl {
16
+ /**
17
+ * Initialize a new instance of the class PrivateEndpointConnectionOperations class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Approve or reject a private endpoint connection with a given name.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param serverName The name of the server.
27
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
28
+ * @param parameters The required parameters for updating private endpoint connection.
29
+ * @param options The options parameters.
30
+ */
31
+ beginUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
34
+ return this.client.sendOperationRequest(args, spec);
35
+ });
36
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
37
+ var _a;
38
+ let currentRawResponse = undefined;
39
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
40
+ const callback = (rawResponse, flatResponse) => {
41
+ currentRawResponse = rawResponse;
42
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
43
+ };
44
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
45
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
46
+ return {
47
+ flatResponse,
48
+ rawResponse: {
49
+ statusCode: currentRawResponse.status,
50
+ body: currentRawResponse.parsedBody,
51
+ headers: currentRawResponse.headers.toJSON()
52
+ }
53
+ };
54
+ });
55
+ const lro = createLroSpec({
56
+ sendOperationFn,
57
+ args: {
58
+ resourceGroupName,
59
+ serverName,
60
+ privateEndpointConnectionName,
61
+ parameters,
62
+ options
63
+ },
64
+ spec: updateOperationSpec
65
+ });
66
+ const poller = yield createHttpPoller(lro, {
67
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
68
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
69
+ });
70
+ yield poller.poll();
71
+ return poller;
72
+ });
73
+ }
74
+ /**
75
+ * Approve or reject a private endpoint connection with a given name.
76
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
+ * @param serverName The name of the server.
78
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
79
+ * @param parameters The required parameters for updating private endpoint connection.
80
+ * @param options The options parameters.
81
+ */
82
+ beginUpdateAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ const poller = yield this.beginUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options);
85
+ return poller.pollUntilDone();
86
+ });
87
+ }
88
+ /**
89
+ * Deletes a private endpoint connection with a given name.
90
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
91
+ * @param serverName The name of the server.
92
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
93
+ * @param options The options parameters.
94
+ */
95
+ beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
98
+ return this.client.sendOperationRequest(args, spec);
99
+ });
100
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
101
+ var _a;
102
+ let currentRawResponse = undefined;
103
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
104
+ const callback = (rawResponse, flatResponse) => {
105
+ currentRawResponse = rawResponse;
106
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
107
+ };
108
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
109
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
110
+ return {
111
+ flatResponse,
112
+ rawResponse: {
113
+ statusCode: currentRawResponse.status,
114
+ body: currentRawResponse.parsedBody,
115
+ headers: currentRawResponse.headers.toJSON()
116
+ }
117
+ };
118
+ });
119
+ const lro = createLroSpec({
120
+ sendOperationFn,
121
+ args: {
122
+ resourceGroupName,
123
+ serverName,
124
+ privateEndpointConnectionName,
125
+ options
126
+ },
127
+ spec: deleteOperationSpec
128
+ });
129
+ const poller = yield createHttpPoller(lro, {
130
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
131
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
132
+ resourceLocationConfig: "azure-async-operation"
133
+ });
134
+ yield poller.poll();
135
+ return poller;
136
+ });
137
+ }
138
+ /**
139
+ * Deletes a private endpoint connection with a given name.
140
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
141
+ * @param serverName The name of the server.
142
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
143
+ * @param options The options parameters.
144
+ */
145
+ beginDeleteAndWait(resourceGroupName, serverName, privateEndpointConnectionName, options) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ const poller = yield this.beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options);
148
+ return poller.pollUntilDone();
149
+ });
150
+ }
151
+ }
152
+ // Operation Specifications
153
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
154
+ const updateOperationSpec = {
155
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
156
+ httpMethod: "PUT",
157
+ responses: {
158
+ 200: {
159
+ bodyMapper: Mappers.PrivateEndpointConnection
160
+ },
161
+ 201: {
162
+ bodyMapper: Mappers.PrivateEndpointConnection
163
+ },
164
+ 202: {
165
+ bodyMapper: Mappers.PrivateEndpointConnection
166
+ },
167
+ 204: {
168
+ bodyMapper: Mappers.PrivateEndpointConnection
169
+ },
170
+ default: {
171
+ bodyMapper: Mappers.ErrorResponse
172
+ }
173
+ },
174
+ requestBody: Parameters.parameters13,
175
+ queryParameters: [Parameters.apiVersion],
176
+ urlParameters: [
177
+ Parameters.$host,
178
+ Parameters.subscriptionId,
179
+ Parameters.resourceGroupName,
180
+ Parameters.serverName,
181
+ Parameters.privateEndpointConnectionName
182
+ ],
183
+ headerParameters: [Parameters.contentType, Parameters.accept],
184
+ mediaType: "json",
185
+ serializer
186
+ };
187
+ const deleteOperationSpec = {
188
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
189
+ httpMethod: "DELETE",
190
+ responses: {
191
+ 200: {
192
+ headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
193
+ },
194
+ 201: {
195
+ headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
196
+ },
197
+ 202: {
198
+ headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
199
+ },
200
+ 204: {
201
+ headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
202
+ },
203
+ default: {
204
+ bodyMapper: Mappers.ErrorResponse
205
+ }
206
+ },
207
+ queryParameters: [Parameters.apiVersion],
208
+ urlParameters: [
209
+ Parameters.$host,
210
+ Parameters.subscriptionId,
211
+ Parameters.resourceGroupName,
212
+ Parameters.serverName,
213
+ Parameters.privateEndpointConnectionName
214
+ ],
215
+ headerParameters: [Parameters.accept],
216
+ serializer
217
+ };
218
+ //# sourceMappingURL=privateEndpointConnectionOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnectionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,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;AAS3C,uEAAuE;AACvE,MAAM,OAAO,uCAAuC;IAIlD;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACG,WAAW,CACf,iBAAyB,EACzB,UAAkB,EAClB,6BAAqC,EACrC,UAAqC,EACrC,OAAuD;;YAOvD,MAAM,mBAAmB,GAAG,CAC1B,IAAmC,EACnC,IAA8B,EACoB,EA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AC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateEndpointConnections } from "../operationsInterfaces";
3
+ import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagementFlexibleServerClient";
4
+ import { PrivateEndpointConnection, PrivateEndpointConnectionsListByServerOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse } from "../models";
5
+ /** Class containing PrivateEndpointConnections operations. */
6
+ export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class PrivateEndpointConnections class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: PostgreSQLManagementFlexibleServerClient);
13
+ /**
14
+ * Gets all private endpoint connections on a server.
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param serverName The name of the server.
17
+ * @param options The options parameters.
18
+ */
19
+ listByServer(resourceGroupName: string, serverName: string, options?: PrivateEndpointConnectionsListByServerOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
20
+ private listByServerPagingPage;
21
+ private listByServerPagingAll;
22
+ /**
23
+ * Gets a private endpoint connection.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param serverName The name of the server.
26
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
27
+ * @param options The options parameters.
28
+ */
29
+ get(resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
30
+ /**
31
+ * Gets all private endpoint connections on a server.
32
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
+ * @param serverName The name of the server.
34
+ * @param options The options parameters.
35
+ */
36
+ private _listByServer;
37
+ /**
38
+ * ListByServerNext
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param serverName The name of the server.
41
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
42
+ * @param options The options parameters.
43
+ */
44
+ private _listByServerNext;
45
+ }
46
+ //# 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;AAE9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAIrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EACL,yBAAyB,EAEzB,oDAAoD,EAEpD,2CAA2C,EAC3C,qCAAqC,EAEtC,MAAM,WAAW,CAAC;AAGnB,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;;OAGG;gBACS,MAAM,EAAE,wCAAwC;IAI5D;;;;;OAKG;IACI,YAAY,CACjB,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,oDAAoD,GAC7D,0BAA0B,CAAC,yBAAyB,CAAC;YA2BzC,sBAAsB;YA6BtB,qBAAqB;IAcpC;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAOjD;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAWrB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;CAW1B"}
@@ -0,0 +1,182 @@
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 { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing PrivateEndpointConnections operations. */
15
+ export class PrivateEndpointConnectionsImpl {
16
+ /**
17
+ * Initialize a new instance of the class PrivateEndpointConnections class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Gets all private endpoint connections on a server.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param serverName The name of the server.
27
+ * @param options The options parameters.
28
+ */
29
+ listByServer(resourceGroupName, serverName, options) {
30
+ const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: (settings) => {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
43
+ }
44
+ };
45
+ }
46
+ listByServerPagingPage(resourceGroupName, serverName, options, settings) {
47
+ return __asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
48
+ let result;
49
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
+ if (!continuationToken) {
51
+ result = yield __await(this._listByServer(resourceGroupName, serverName, options));
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield yield __await(page);
56
+ }
57
+ while (continuationToken) {
58
+ result = yield __await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield yield __await(page);
63
+ }
64
+ });
65
+ }
66
+ listByServerPagingAll(resourceGroupName, serverName, options) {
67
+ return __asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
68
+ var _a, e_1, _b, _c;
69
+ try {
70
+ for (var _d = true, _e = __asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
+ _c = _f.value;
72
+ _d = false;
73
+ const page = _c;
74
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
+ }
76
+ }
77
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
+ finally {
79
+ try {
80
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
+ }
82
+ finally { if (e_1) throw e_1.error; }
83
+ }
84
+ });
85
+ }
86
+ /**
87
+ * Gets a private endpoint connection.
88
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
89
+ * @param serverName The name of the server.
90
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
91
+ * @param options The options parameters.
92
+ */
93
+ get(resourceGroupName, serverName, privateEndpointConnectionName, options) {
94
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, privateEndpointConnectionName, options }, getOperationSpec);
95
+ }
96
+ /**
97
+ * Gets all private endpoint connections on a server.
98
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
99
+ * @param serverName The name of the server.
100
+ * @param options The options parameters.
101
+ */
102
+ _listByServer(resourceGroupName, serverName, options) {
103
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec);
104
+ }
105
+ /**
106
+ * ListByServerNext
107
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
108
+ * @param serverName The name of the server.
109
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
110
+ * @param options The options parameters.
111
+ */
112
+ _listByServerNext(resourceGroupName, serverName, nextLink, options) {
113
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec);
114
+ }
115
+ }
116
+ // Operation Specifications
117
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
118
+ const getOperationSpec = {
119
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}",
120
+ httpMethod: "GET",
121
+ responses: {
122
+ 200: {
123
+ bodyMapper: Mappers.PrivateEndpointConnection
124
+ },
125
+ default: {
126
+ bodyMapper: Mappers.ErrorResponse
127
+ }
128
+ },
129
+ queryParameters: [Parameters.apiVersion],
130
+ urlParameters: [
131
+ Parameters.$host,
132
+ Parameters.subscriptionId,
133
+ Parameters.resourceGroupName,
134
+ Parameters.serverName,
135
+ Parameters.privateEndpointConnectionName
136
+ ],
137
+ headerParameters: [Parameters.accept],
138
+ serializer
139
+ };
140
+ const listByServerOperationSpec = {
141
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/privateEndpointConnections",
142
+ httpMethod: "GET",
143
+ responses: {
144
+ 200: {
145
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
146
+ },
147
+ default: {
148
+ bodyMapper: Mappers.ErrorResponse
149
+ }
150
+ },
151
+ queryParameters: [Parameters.apiVersion],
152
+ urlParameters: [
153
+ Parameters.$host,
154
+ Parameters.subscriptionId,
155
+ Parameters.resourceGroupName,
156
+ Parameters.serverName
157
+ ],
158
+ headerParameters: [Parameters.accept],
159
+ serializer
160
+ };
161
+ const listByServerNextOperationSpec = {
162
+ path: "{nextLink}",
163
+ httpMethod: "GET",
164
+ responses: {
165
+ 200: {
166
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult
167
+ },
168
+ default: {
169
+ bodyMapper: Mappers.ErrorResponse
170
+ }
171
+ },
172
+ urlParameters: [
173
+ Parameters.$host,
174
+ Parameters.subscriptionId,
175
+ Parameters.resourceGroupName,
176
+ Parameters.serverName,
177
+ Parameters.nextLink
178
+ ],
179
+ headerParameters: [Parameters.accept],
180
+ serializer
181
+ };
182
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,YAAY,CACjB,iBAAyB,EACzB,UAAkB,EAClB,OAA8D;QAE9D,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,iBAAiB,EACjB,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAChC,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,sBAAsB,CACnC,iBAAyB,EACzB,UAAkB,EAClB,OAA8D,EAC9D,QAAuB;;YAEvB,IAAI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UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateLinkResources } from "../operationsInterfaces";
3
+ import { PostgreSQLManagementFlexibleServerClient } from "../postgreSQLManagementFlexibleServerClient";
4
+ import { PrivateLinkResource, PrivateLinkResourcesListByServerOptionalParams, 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: PostgreSQLManagementFlexibleServerClient);
13
+ /**
14
+ * Gets the private link resources for PostgreSQL server.
15
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
16
+ * @param serverName The name of the server.
17
+ * @param options The options parameters.
18
+ */
19
+ listByServer(resourceGroupName: string, serverName: string, options?: PrivateLinkResourcesListByServerOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
20
+ private listByServerPagingPage;
21
+ private listByServerPagingAll;
22
+ /**
23
+ * Gets the private link resources for PostgreSQL server.
24
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
25
+ * @param serverName The name of the server.
26
+ * @param options The options parameters.
27
+ */
28
+ private _listByServer;
29
+ /**
30
+ * Gets a private link resource for PostgreSQL server.
31
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
32
+ * @param serverName The name of the server.
33
+ * @param groupName The name of the private link resource.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName: string, serverName: string, groupName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
37
+ /**
38
+ * ListByServerNext
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param serverName The name of the server.
41
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
42
+ * @param options The options parameters.
43
+ */
44
+ private _listByServerNext;
45
+ }
46
+ //# 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;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EACL,mBAAmB,EAEnB,8CAA8C,EAE9C,qCAAqC,EACrC,+BAA+B,EAEhC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2C;IAElE;;;OAGG;gBACS,MAAM,EAAE,wCAAwC;IAI5D;;;;;OAKG;IACI,YAAY,CACjB,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,mBAAmB,CAAC;YA2BnC,sBAAsB;YA6BtB,qBAAqB;IAcpC;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAWrB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;CAW1B"}