@azure/arm-postgresql-flexible 8.0.0-beta.3 → 8.0.0-beta.5

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 (252) hide show
  1. package/CHANGELOG.md +501 -0
  2. package/dist/index.js +6142 -3689
  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 +1 -1
  15. package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js +1 -1
  16. package/dist-esm/samples-dev/checkNameAvailabilityWithLocationExecuteSample.js +1 -1
  17. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  18. package/dist-esm/samples-dev/configurationsListByServerSample.js +4 -9
  19. package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
  20. package/dist-esm/samples-dev/configurationsPutSample.js +1 -1
  21. package/dist-esm/samples-dev/configurationsUpdateSample.js +1 -1
  22. package/dist-esm/samples-dev/databasesCreateSample.js +1 -1
  23. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  24. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  25. package/dist-esm/samples-dev/databasesListByServerSample.js +4 -9
  26. package/dist-esm/samples-dev/databasesListByServerSample.js.map +1 -1
  27. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +1 -1
  28. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
  29. package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
  30. package/dist-esm/samples-dev/firewallRulesListByServerSample.js +4 -9
  31. package/dist-esm/samples-dev/firewallRulesListByServerSample.js.map +1 -1
  32. package/dist-esm/samples-dev/flexibleServerStartLtrBackupSample.js +1 -1
  33. package/dist-esm/samples-dev/flexibleServerTriggerLtrPreBackupSample.js +1 -1
  34. package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +1 -1
  35. package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js +4 -9
  36. package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js.map +1 -1
  37. package/dist-esm/samples-dev/logFilesListByServerSample.js +4 -9
  38. package/dist-esm/samples-dev/logFilesListByServerSample.js.map +1 -1
  39. package/dist-esm/samples-dev/ltrBackupOperationsGetSample.js +1 -1
  40. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js +4 -9
  41. package/dist-esm/samples-dev/ltrBackupOperationsListByServerSample.js.map +1 -1
  42. package/dist-esm/samples-dev/migrationsCreateSample.js +70 -2
  43. package/dist-esm/samples-dev/migrationsCreateSample.js.map +1 -1
  44. package/dist-esm/samples-dev/migrationsDeleteSample.js +1 -1
  45. package/dist-esm/samples-dev/migrationsGetSample.js +77 -1
  46. package/dist-esm/samples-dev/migrationsGetSample.js.map +1 -1
  47. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js +4 -9
  48. package/dist-esm/samples-dev/migrationsListByTargetServerSample.js.map +1 -1
  49. package/dist-esm/samples-dev/migrationsUpdateSample.js +2 -2
  50. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  51. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +40 -0
  54. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -0
  55. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +46 -0
  58. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -0
  59. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +40 -0
  62. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.js +55 -0
  66. package/dist-esm/samples-dev/privateEndpointConnectionsListByServerSample.js.map +1 -0
  67. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +40 -0
  70. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
  71. package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.js +55 -0
  74. package/dist-esm/samples-dev/privateLinkResourcesListByServerSample.js.map +1 -0
  75. package/dist-esm/samples-dev/quotaUsagesListSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/quotaUsagesListSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/quotaUsagesListSample.js +54 -0
  78. package/dist-esm/samples-dev/quotaUsagesListSample.js.map +1 -0
  79. package/dist-esm/samples-dev/replicasListByServerSample.js +4 -9
  80. package/dist-esm/samples-dev/replicasListByServerSample.js.map +1 -1
  81. package/dist-esm/samples-dev/serverCapabilitiesListSample.js +4 -9
  82. package/dist-esm/samples-dev/serverCapabilitiesListSample.js.map +1 -1
  83. package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.js +41 -0
  86. package/dist-esm/samples-dev/serverThreatProtectionSettingsCreateOrUpdateSample.js.map +1 -0
  87. package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.js +40 -0
  90. package/dist-esm/samples-dev/serverThreatProtectionSettingsGetSample.js.map +1 -0
  91. package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.js +55 -0
  94. package/dist-esm/samples-dev/serverThreatProtectionSettingsListByServerSample.js.map +1 -0
  95. package/dist-esm/samples-dev/serversCreateSample.js +7 -7
  96. package/dist-esm/samples-dev/serversDeleteSample.js +1 -1
  97. package/dist-esm/samples-dev/serversGetSample.js +21 -2
  98. package/dist-esm/samples-dev/serversGetSample.js.map +1 -1
  99. package/dist-esm/samples-dev/serversListByResourceGroupSample.js +4 -9
  100. package/dist-esm/samples-dev/serversListByResourceGroupSample.js.map +1 -1
  101. package/dist-esm/samples-dev/serversListSample.js +4 -9
  102. package/dist-esm/samples-dev/serversListSample.js.map +1 -1
  103. package/dist-esm/samples-dev/serversRestartSample.js +2 -2
  104. package/dist-esm/samples-dev/serversStartSample.js +1 -1
  105. package/dist-esm/samples-dev/serversStopSample.js +1 -1
  106. package/dist-esm/samples-dev/serversUpdateSample.js +93 -5
  107. package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
  108. package/dist-esm/samples-dev/virtualEndpointsCreateSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/virtualEndpointsCreateSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/virtualEndpointsCreateSample.js +44 -0
  111. package/dist-esm/samples-dev/virtualEndpointsCreateSample.js.map +1 -0
  112. package/dist-esm/samples-dev/virtualEndpointsDeleteSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/virtualEndpointsDeleteSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/virtualEndpointsDeleteSample.js +40 -0
  115. package/dist-esm/samples-dev/virtualEndpointsDeleteSample.js.map +1 -0
  116. package/dist-esm/samples-dev/virtualEndpointsGetSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/virtualEndpointsGetSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/virtualEndpointsGetSample.js +40 -0
  119. package/dist-esm/samples-dev/virtualEndpointsGetSample.js.map +1 -0
  120. package/dist-esm/samples-dev/virtualEndpointsListByServerSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/virtualEndpointsListByServerSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/virtualEndpointsListByServerSample.js +55 -0
  123. package/dist-esm/samples-dev/virtualEndpointsListByServerSample.js.map +1 -0
  124. package/dist-esm/samples-dev/virtualEndpointsUpdateSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/virtualEndpointsUpdateSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/virtualEndpointsUpdateSample.js +44 -0
  127. package/dist-esm/samples-dev/virtualEndpointsUpdateSample.js.map +1 -0
  128. package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js +1 -1
  129. package/dist-esm/src/models/index.d.ts +825 -118
  130. package/dist-esm/src/models/index.d.ts.map +1 -1
  131. package/dist-esm/src/models/index.js +158 -12
  132. package/dist-esm/src/models/index.js.map +1 -1
  133. package/dist-esm/src/models/mappers.d.ts +33 -7
  134. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  135. package/dist-esm/src/models/mappers.js +1108 -282
  136. package/dist-esm/src/models/mappers.js.map +1 -1
  137. package/dist-esm/src/models/parameters.d.ts +12 -4
  138. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  139. package/dist-esm/src/models/parameters.js +82 -18
  140. package/dist-esm/src/models/parameters.js.map +1 -1
  141. package/dist-esm/src/operations/administrators.js +3 -8
  142. package/dist-esm/src/operations/administrators.js.map +1 -1
  143. package/dist-esm/src/operations/backups.js +3 -8
  144. package/dist-esm/src/operations/backups.js.map +1 -1
  145. package/dist-esm/src/operations/configurations.js +3 -8
  146. package/dist-esm/src/operations/configurations.js.map +1 -1
  147. package/dist-esm/src/operations/databases.js +3 -8
  148. package/dist-esm/src/operations/databases.js.map +1 -1
  149. package/dist-esm/src/operations/firewallRules.js +3 -8
  150. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  151. package/dist-esm/src/operations/flexibleServer.js +2 -2
  152. package/dist-esm/src/operations/flexibleServer.js.map +1 -1
  153. package/dist-esm/src/operations/index.d.ts +8 -2
  154. package/dist-esm/src/operations/index.d.ts.map +1 -1
  155. package/dist-esm/src/operations/index.js +8 -2
  156. package/dist-esm/src/operations/index.js.map +1 -1
  157. package/dist-esm/src/operations/locationBasedCapabilities.js +3 -8
  158. package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -1
  159. package/dist-esm/src/operations/logFiles.js +3 -8
  160. package/dist-esm/src/operations/logFiles.js.map +1 -1
  161. package/dist-esm/src/operations/ltrBackupOperations.js +3 -8
  162. package/dist-esm/src/operations/ltrBackupOperations.js.map +1 -1
  163. package/dist-esm/src/operations/migrations.js +5 -10
  164. package/dist-esm/src/operations/migrations.js.map +1 -1
  165. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +48 -0
  166. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
  167. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +218 -0
  168. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
  169. package/dist-esm/src/operations/privateEndpointConnections.d.ts +46 -0
  170. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  171. package/dist-esm/src/operations/privateEndpointConnections.js +182 -0
  172. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  173. package/dist-esm/src/operations/privateLinkResources.d.ts +46 -0
  174. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  175. package/dist-esm/src/operations/privateLinkResources.js +182 -0
  176. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  177. package/dist-esm/src/operations/quotaUsages.d.ts +35 -0
  178. package/dist-esm/src/operations/quotaUsages.d.ts.map +1 -0
  179. package/dist-esm/src/operations/quotaUsages.js +145 -0
  180. package/dist-esm/src/operations/quotaUsages.js.map +1 -0
  181. package/dist-esm/src/operations/replicas.js +3 -8
  182. package/dist-esm/src/operations/replicas.js.map +1 -1
  183. package/dist-esm/src/operations/serverCapabilities.js +3 -8
  184. package/dist-esm/src/operations/serverCapabilities.js.map +1 -1
  185. package/dist-esm/src/operations/serverThreatProtectionSettings.d.ts +65 -0
  186. package/dist-esm/src/operations/serverThreatProtectionSettings.d.ts.map +1 -0
  187. package/dist-esm/src/operations/serverThreatProtectionSettings.js +283 -0
  188. package/dist-esm/src/operations/serverThreatProtectionSettings.js.map +1 -0
  189. package/dist-esm/src/operations/servers.js +6 -16
  190. package/dist-esm/src/operations/servers.js.map +1 -1
  191. package/dist-esm/src/operations/virtualEndpoints.d.ts +101 -0
  192. package/dist-esm/src/operations/virtualEndpoints.d.ts.map +1 -0
  193. package/dist-esm/src/operations/virtualEndpoints.js +473 -0
  194. package/dist-esm/src/operations/virtualEndpoints.js.map +1 -0
  195. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js +1 -1
  196. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -2
  197. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  198. package/dist-esm/src/operationsInterfaces/index.js +8 -2
  199. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  200. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +40 -0
  201. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
  202. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
  203. package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
  204. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +21 -0
  205. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  206. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  207. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  208. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  209. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  210. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  211. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  212. package/dist-esm/src/operationsInterfaces/quotaUsages.d.ts +12 -0
  213. package/dist-esm/src/operationsInterfaces/quotaUsages.d.ts.map +1 -0
  214. package/dist-esm/src/operationsInterfaces/quotaUsages.js +9 -0
  215. package/dist-esm/src/operationsInterfaces/quotaUsages.js.map +1 -0
  216. package/dist-esm/src/operationsInterfaces/serverThreatProtectionSettings.d.ts +40 -0
  217. package/dist-esm/src/operationsInterfaces/serverThreatProtectionSettings.d.ts.map +1 -0
  218. package/dist-esm/src/operationsInterfaces/serverThreatProtectionSettings.js +9 -0
  219. package/dist-esm/src/operationsInterfaces/serverThreatProtectionSettings.js.map +1 -0
  220. package/dist-esm/src/operationsInterfaces/virtualEndpoints.d.ts +76 -0
  221. package/dist-esm/src/operationsInterfaces/virtualEndpoints.d.ts.map +1 -0
  222. package/dist-esm/src/operationsInterfaces/virtualEndpoints.js +9 -0
  223. package/dist-esm/src/operationsInterfaces/virtualEndpoints.js.map +1 -0
  224. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts +10 -4
  225. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts.map +1 -1
  226. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +12 -6
  227. package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  228. package/package.json +9 -7
  229. package/review/arm-postgresql-flexible.api.md +554 -4
  230. package/src/models/index.ts +938 -134
  231. package/src/models/mappers.ts +1252 -373
  232. package/src/models/parameters.ts +96 -20
  233. package/src/operations/flexibleServer.ts +2 -2
  234. package/src/operations/index.ts +8 -2
  235. package/src/operations/migrations.ts +2 -2
  236. package/src/operations/privateEndpointConnectionOperations.ts +316 -0
  237. package/src/operations/privateEndpointConnections.ts +243 -0
  238. package/src/operations/privateLinkResources.ts +242 -0
  239. package/src/operations/quotaUsages.ts +170 -0
  240. package/src/operations/serverThreatProtectionSettings.ts +393 -0
  241. package/src/operations/virtualEndpoints.ts +667 -0
  242. package/src/operations/virtualNetworkSubnetUsage.ts +1 -1
  243. package/src/operationsInterfaces/index.ts +8 -2
  244. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +86 -0
  245. package/src/operationsInterfaces/privateEndpointConnections.ts +44 -0
  246. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  247. package/src/operationsInterfaces/quotaUsages.ts +24 -0
  248. package/src/operationsInterfaces/serverThreatProtectionSettings.ts +83 -0
  249. package/src/operationsInterfaces/virtualEndpoints.ts +155 -0
  250. package/src/postgreSQLManagementFlexibleServerClient.ts +42 -14
  251. package/types/arm-postgresql-flexible.d.ts +1027 -25
  252. package/types/tsdoc-metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"migrationsCreateSample.js","sourceRoot":"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AAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,QAAQ,CAAC;QACvD,MAAM,kBAAkB,GAAG,YAAY,CAAC;QACxC,MAAM,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,UAAU,GAAsB;YACpC,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;YAC1C,QAAQ,EAAE,QAAQ;YAClB,aAAa,EAAE,SAAS;YACxB,oBAAoB,EAAE,MAAM;YAC5B,gBAAgB,EAAE;gBAChB,gBAAgB,EAAE;oBAChB,oBAAoB,EAAE,UAAU;oBAChC,oBAAoB,EAAE,UAAU;iBACjC;aACF;YACD,wBAAwB,EACtB,kIAAkI;SACrI,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CAAC,UAAU,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,CAC3C,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kCAAkC,EAAE,CAAC;QACrC,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"migrationsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/migrationsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,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AAA;AAED,SAAe,IAAI;;QACjB,wDAAwD,EAAE,CAAC;QAC3D,4BAA4B,EAAE,CAAC;QAC/B,kCAAkC,EAAE,CAAC;QACrC,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes a migration.
17
17
  *
18
18
  * @summary Deletes a migration.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/Migrations_Delete.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_Delete.json
20
20
  */
21
21
  function migrationsDelete() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets details of a migration.
17
17
  *
18
18
  * @summary Gets details of a migration.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/Migrations_Get.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_Get.json
20
20
  */
21
21
  function migrationsGet() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -30,9 +30,85 @@ function migrationsGet() {
30
30
  console.log(result);
31
31
  });
32
32
  }
33
+ /**
34
+ * This sample demonstrates how to Gets details of a migration.
35
+ *
36
+ * @summary Gets details of a migration.
37
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationAndMigration.json
38
+ */
39
+ function migrationsGetMigrationWithSuccessfulValidationAndMigration() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
42
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "testrg";
43
+ const targetDbServerName = "testtarget";
44
+ const migrationName = "testmigrationwithsuccessfulvalidationandmigration";
45
+ const credential = new DefaultAzureCredential();
46
+ const client = new PostgreSQLManagementFlexibleServerClient(credential);
47
+ const result = yield client.migrations.get(subscriptionId, resourceGroupName, targetDbServerName, migrationName);
48
+ console.log(result);
49
+ });
50
+ }
51
+ /**
52
+ * This sample demonstrates how to Gets details of a migration.
53
+ *
54
+ * @summary Gets details of a migration.
55
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationButMigrationFailure.json
56
+ */
57
+ function migrationsGetMigrationWithSuccessfulValidationButMigrationFailure() {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
60
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "testrg";
61
+ const targetDbServerName = "testtarget";
62
+ const migrationName = "testmigrationwithsuccessfulvalidationbutmigrationfailure";
63
+ const credential = new DefaultAzureCredential();
64
+ const client = new PostgreSQLManagementFlexibleServerClient(credential);
65
+ const result = yield client.migrations.get(subscriptionId, resourceGroupName, targetDbServerName, migrationName);
66
+ console.log(result);
67
+ });
68
+ }
69
+ /**
70
+ * This sample demonstrates how to Gets details of a migration.
71
+ *
72
+ * @summary Gets details of a migration.
73
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_GetMigrationWithSuccessfulValidationOnly.json
74
+ */
75
+ function migrationsGetMigrationWithSuccessfulValidationOnly() {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
78
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "testrg";
79
+ const targetDbServerName = "testtarget";
80
+ const migrationName = "testmigrationwithsuccessfulvalidationonly";
81
+ const credential = new DefaultAzureCredential();
82
+ const client = new PostgreSQLManagementFlexibleServerClient(credential);
83
+ const result = yield client.migrations.get(subscriptionId, resourceGroupName, targetDbServerName, migrationName);
84
+ console.log(result);
85
+ });
86
+ }
87
+ /**
88
+ * This sample demonstrates how to Gets details of a migration.
89
+ *
90
+ * @summary Gets details of a migration.
91
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_GetMigrationWithValidationFailures.json
92
+ */
93
+ function migrationsGetMigrationWithValidationFailures() {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
96
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "testrg";
97
+ const targetDbServerName = "testtarget";
98
+ const migrationName = "testmigrationwithvalidationfailure";
99
+ const credential = new DefaultAzureCredential();
100
+ const client = new PostgreSQLManagementFlexibleServerClient(credential);
101
+ const result = yield client.migrations.get(subscriptionId, resourceGroupName, targetDbServerName, migrationName);
102
+ console.log(result);
103
+ });
104
+ }
33
105
  function main() {
34
106
  return __awaiter(this, void 0, void 0, function* () {
35
107
  migrationsGet();
108
+ migrationsGetMigrationWithSuccessfulValidationAndMigration();
109
+ migrationsGetMigrationWithSuccessfulValidationButMigrationFailure();
110
+ migrationsGetMigrationWithSuccessfulValidationOnly();
111
+ migrationsGetMigrationWithValidationFailures();
36
112
  });
37
113
  }
38
114
  main().catch(console.error);
@@ -1 +1 @@
1
- {"version":3,"file":"migrationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/migrationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,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G,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;QAChB,0DAA0D,EAAE,CAAC;QAC7D,iEAAiE,EAAE,CAAC;QACpE,kDAAkD,EAAE,CAAC;QACrD,4CAA4C,EAAE,CAAC;IACjD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to List all the migrations on a given target server.
17
17
  *
18
18
  * @summary List all the migrations on a given target server.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/Migrations_ListByTargetServer.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_ListByTargetServer.json
20
20
  */
21
21
  function migrationsListByTargetServer() {
22
22
  var _a, e_1, _b, _c;
@@ -32,16 +32,11 @@ function migrationsListByTargetServer() {
32
32
  const client = new PostgreSQLManagementFlexibleServerClient(credential);
33
33
  const resArray = new Array();
34
34
  try {
35
- for (var _d = true, _e = __asyncValues(client.migrations.listByTargetServer(subscriptionId, resourceGroupName, targetDbServerName, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
35
+ for (var _d = true, _e = __asyncValues(client.migrations.listByTargetServer(subscriptionId, resourceGroupName, targetDbServerName, options)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
36
36
  _c = _f.value;
37
37
  _d = false;
38
- try {
39
- let item = _c;
40
- resArray.push(item);
41
- }
42
- finally {
43
- _d = true;
44
- }
38
+ let item = _c;
39
+ resArray.push(item);
45
40
  }
46
41
  }
47
42
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1 +1 @@
1
- {"version":3,"file":"migrationsListByTargetServerSample.js","sourceRoot":"","sources":["../../samples-dev/migrationsListByTargetServerSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,QAAQ,CAAC;QACvD,MAAM,kBAAkB,GAAG,YAAY,CAAC;QACxC,MAAM,mBAAmB,GAAG,KAAK,CAAC;QAClC,MAAM,OAAO,GAA+C;YAC1D,mBAAmB;SACpB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CAAC,UAAU,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACzD,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAA,IAAA;gBALsB,cAKtB;gBALsB,WAKtB;;oBALU,IAAI,IAAI,KAAA,CAAA;oBAMjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"migrationsListByTargetServerSample.js","sourceRoot":"","sources":["../../samples-dev/migrationsListByTargetServerSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,QAAQ,CAAC;QACvD,MAAM,kBAAkB,GAAG,YAAY,CAAC;QACxC,MAAM,mBAAmB,GAAG,KAAK,CAAC;QAClC,MAAM,OAAO,GAA+C;YAC1D,mBAAmB;SACpB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CAAC,UAAU,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACzD,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,OAAO,CACR,CAAA,IAAA,sDAAE;gBALoB,cAKtB;gBALsB,WAKtB;gBALU,IAAI,IAAI,KAAA,CAAA;gBAMjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.
17
17
  *
18
18
  * @summary Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/Migrations_Cancel.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_Cancel.json
20
20
  */
21
21
  function cancelMigration() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -35,7 +35,7 @@ function cancelMigration() {
35
35
  * This sample demonstrates how to Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.
36
36
  *
37
37
  * @summary Updates an existing migration. The request body can contain one to many of the mutable properties present in the migration definition. Certain property updates initiate migration state transitions.
38
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/Migrations_Update.json
38
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/Migrations_Update.json
39
39
  */
40
40
  function migrationsUpdate() {
41
41
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists all of the available REST API operations.
17
17
  *
18
18
  * @summary Lists all of the available REST API operations.
19
- * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/examples/OperationList.json
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/OperationList.json
20
20
  */
21
21
  function operationList() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Deletes a private endpoint connection with a given name.
17
+ *
18
+ * @summary Deletes a private endpoint connection with a given name.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/PrivateEndpointConnectionDelete.json
20
+ */
21
+ function deletesAPrivateEndpointConnectionWithAGivenName() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "Default";
26
+ const serverName = "test-svr";
27
+ const privateEndpointConnectionName = "private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const result = yield client.privateEndpointConnectionOperations.beginDeleteAndWait(resourceGroupName, serverName, privateEndpointConnectionName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ deletesAPrivateEndpointConnectionWithAGivenName();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=privateEndpointConnectionDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+CAA+C;;QAC5D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,SAAS,CAAC;QACxD,MAAM,UAAU,GAAG,UAAU,CAAC;QAC9B,MAAM,6BAA6B,GACjC,uEAAuE,CAAC;QAC1E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,kBAAkB,CAChF,iBAAiB,EACjB,UAAU,EACV,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+CAA+C,EAAE,CAAC;IACpD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Approve or reject a private endpoint connection with a given name.
17
+ *
18
+ * @summary Approve or reject a private endpoint connection with a given name.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/PrivateEndpointConnectionUpdate.json
20
+ */
21
+ function approveOrRejectAPrivateEndpointConnectionWithAGivenName() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "Default";
26
+ const serverName = "test-svr";
27
+ const privateEndpointConnectionName = "private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e";
28
+ const parameters = {
29
+ privateLinkServiceConnectionState: {
30
+ description: "Approved by johndoe@contoso.com",
31
+ status: "Approved"
32
+ }
33
+ };
34
+ const credential = new DefaultAzureCredential();
35
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
36
+ const result = yield client.privateEndpointConnectionOperations.beginUpdateAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters);
37
+ console.log(result);
38
+ });
39
+ }
40
+ function main() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ approveOrRejectAPrivateEndpointConnectionWithAGivenName();
43
+ });
44
+ }
45
+ main().catch(console.error);
46
+ //# sourceMappingURL=privateEndpointConnectionUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uDAAuD;;QACpE,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,SAAS,CAAC;QACxD,MAAM,UAAU,GAAG,UAAU,CAAC;QAC9B,MAAM,6BAA6B,GACjC,uEAAuE,CAAC;QAC1E,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,iCAAiC;gBAC9C,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,kBAAkB,CAChF,iBAAiB,EACjB,UAAU,EACV,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,uDAAuD,EAAE,CAAC;IAC5D,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets a private endpoint connection.
17
+ *
18
+ * @summary Gets a private endpoint connection.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/PrivateEndpointConnectionGet.json
20
+ */
21
+ function getsPrivateEndpointConnection() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "Default";
26
+ const serverName = "test-svr";
27
+ const privateEndpointConnectionName = "private-endpoint-connection-name.1fa229cd-bf3f-47f0-8c49-afb36723997e";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const result = yield client.privateEndpointConnections.get(resourceGroupName, serverName, privateEndpointConnectionName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ getsPrivateEndpointConnection();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,SAAS,CAAC;QACxD,MAAM,UAAU,GAAG,UAAU,CAAC;QAC9B,MAAM,6BAA6B,GACjC,uEAAuE,CAAC;QAC1E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,UAAU,EACV,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6BAA6B,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsListByServerSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListByServerSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByServerSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets all private endpoint connections on a server.
17
+ *
18
+ * @summary Gets all private endpoint connections on a server.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/PrivateEndpointConnectionList.json
20
+ */
21
+ function getsListOfPrivateEndpointConnectionsOnAServer() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
25
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
26
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "Default";
27
+ const serverName = "test-svr";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const resArray = new Array();
31
+ try {
32
+ for (var _d = true, _e = __asyncValues(client.privateEndpointConnections.listByServer(resourceGroupName, serverName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
33
+ _c = _f.value;
34
+ _d = false;
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ }
39
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
40
+ finally {
41
+ try {
42
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
43
+ }
44
+ finally { if (e_1) throw e_1.error; }
45
+ }
46
+ console.log(resArray);
47
+ });
48
+ }
49
+ function main() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ getsListOfPrivateEndpointConnectionsOnAServer();
52
+ });
53
+ }
54
+ main().catch(console.error);
55
+ //# sourceMappingURL=privateEndpointConnectionsListByServerSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListByServerSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListByServerSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6CAA6C;;;QAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,SAAS,CAAC;QACxD,MAAM,UAAU,GAAG,UAAU,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,YAAY,CACnE,iBAAiB,EACjB,UAAU,CACX,CAAA,IAAA,sDAAE;gBAHoB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,6CAA6C,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourcesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets a private link resource for PostgreSQL server.
17
+ *
18
+ * @summary Gets a private link resource for PostgreSQL server.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/PrivateLinkResourcesGet.json
20
+ */
21
+ function getsAPrivateLinkResourceForPostgreSql() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
24
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
25
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "Default";
26
+ const serverName = "test-svr";
27
+ const groupName = "plr";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const result = yield client.privateLinkResources.get(resourceGroupName, serverName, groupName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ getsAPrivateLinkResourceForPostgreSql();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=privateLinkResourcesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qCAAqC;;QAClD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,SAAS,CAAC;QACxD,MAAM,UAAU,GAAG,UAAU,CAAC;QAC9B,MAAM,SAAS,GAAG,KAAK,CAAC;QACxB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAClD,iBAAiB,EACjB,UAAU,EACV,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qCAAqC,EAAE,CAAC;IAC1C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourcesListByServerSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListByServerSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByServerSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the private link resources for PostgreSQL server.
17
+ *
18
+ * @summary Gets the private link resources for PostgreSQL server.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/PrivateLinkResourcesList.json
20
+ */
21
+ function getsPrivateLinkResourcesForPostgreSql() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
25
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
26
+ const resourceGroupName = process.env["POSTGRESQL_RESOURCE_GROUP"] || "Default";
27
+ const serverName = "test-svr";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
30
+ const resArray = new Array();
31
+ try {
32
+ for (var _d = true, _e = __asyncValues(client.privateLinkResources.listByServer(resourceGroupName, serverName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
33
+ _c = _f.value;
34
+ _d = false;
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ }
39
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
40
+ finally {
41
+ try {
42
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
43
+ }
44
+ finally { if (e_1) throw e_1.error; }
45
+ }
46
+ console.log(resArray);
47
+ });
48
+ }
49
+ function main() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ getsPrivateLinkResourcesForPostgreSql();
52
+ });
53
+ }
54
+ main().catch(console.error);
55
+ //# sourceMappingURL=privateLinkResourcesListByServerSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListByServerSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByServerSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qCAAqC;;;QAClD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,SAAS,CAAC;QACxD,MAAM,UAAU,GAAG,UAAU,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,YAAY,CAC7D,iBAAiB,EACjB,UAAU,CACX,CAAA,IAAA,sDAAE;gBAHoB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,qCAAqC,EAAE,CAAC;IAC1C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=quotaUsagesListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotaUsagesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/quotaUsagesListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { PostgreSQLManagementFlexibleServerClient } from "@azure/arm-postgresql-flexible";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Get quota usages at specified location in a given subscription.
17
+ *
18
+ * @summary Get quota usages at specified location in a given subscription.
19
+ * x-ms-original-file: specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/examples/QuotaUsagesForFlexibleServers.json
20
+ */
21
+ function listOfQuotaUsagesForFlexibleServers() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["POSTGRESQL_SUBSCRIPTION_ID"] ||
25
+ "ffffffff-ffff-ffff-ffff-ffffffffffff";
26
+ const locationName = "westus";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
29
+ const resArray = new Array();
30
+ try {
31
+ for (var _d = true, _e = __asyncValues(client.quotaUsages.list(locationName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
32
+ _c = _f.value;
33
+ _d = false;
34
+ let item = _c;
35
+ resArray.push(item);
36
+ }
37
+ }
38
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
39
+ finally {
40
+ try {
41
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
42
+ }
43
+ finally { if (e_1) throw e_1.error; }
44
+ }
45
+ console.log(resArray);
46
+ });
47
+ }
48
+ function main() {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ listOfQuotaUsagesForFlexibleServers();
51
+ });
52
+ }
53
+ main().catch(console.error);
54
+ //# sourceMappingURL=quotaUsagesListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotaUsagesListSample.js","sourceRoot":"","sources":["../../samples-dev/quotaUsagesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mCAAmC;;;QAChD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;YACzC,sCAAsC,CAAC;QACzC,MAAM,YAAY,GAAG,QAAQ,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA,IAAA,sDAAE;gBAAvC,cAAqC;gBAArC,WAAqC;gBAAjD,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,mCAAmC,EAAE,CAAC;IACxC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}