@azure/arm-postgresql-flexible 8.1.0-alpha.20250718.1 → 8.1.0-alpha.20250721.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +395 -183
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/administrators.js +45 -52
  6. package/dist/browser/operations/administrators.js.map +1 -1
  7. package/dist/browser/operations/backups.js +45 -52
  8. package/dist/browser/operations/backups.js.map +1 -1
  9. package/dist/browser/operations/checkNameAvailability.js +1 -0
  10. package/dist/browser/operations/checkNameAvailability.js.map +1 -1
  11. package/dist/browser/operations/checkNameAvailabilityWithLocation.js +1 -0
  12. package/dist/browser/operations/checkNameAvailabilityWithLocation.js.map +1 -1
  13. package/dist/browser/operations/configurations.js +45 -52
  14. package/dist/browser/operations/configurations.js.map +1 -1
  15. package/dist/browser/operations/databases.js +45 -52
  16. package/dist/browser/operations/databases.js.map +1 -1
  17. package/dist/browser/operations/firewallRules.js +45 -52
  18. package/dist/browser/operations/firewallRules.js.map +1 -1
  19. package/dist/browser/operations/flexibleServer.js +12 -6
  20. package/dist/browser/operations/flexibleServer.js.map +1 -1
  21. package/dist/browser/operations/getPrivateDnsZoneSuffix.js +1 -0
  22. package/dist/browser/operations/getPrivateDnsZoneSuffix.js.map +1 -1
  23. package/dist/browser/operations/locationBasedCapabilities.js +23 -40
  24. package/dist/browser/operations/locationBasedCapabilities.js.map +1 -1
  25. package/dist/browser/operations/logFiles.js +23 -40
  26. package/dist/browser/operations/logFiles.js.map +1 -1
  27. package/dist/browser/operations/ltrBackupOperations.js +23 -40
  28. package/dist/browser/operations/ltrBackupOperations.js.map +1 -1
  29. package/dist/browser/operations/migrations.js +23 -40
  30. package/dist/browser/operations/migrations.js.map +1 -1
  31. package/dist/browser/operations/operations.js +23 -40
  32. package/dist/browser/operations/operations.js.map +1 -1
  33. package/dist/browser/operations/privateEndpointConnectionOperations.js +23 -12
  34. package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
  35. package/dist/browser/operations/privateEndpointConnections.js +23 -40
  36. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  37. package/dist/browser/operations/privateLinkResources.js +23 -40
  38. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  39. package/dist/browser/operations/quotaUsages.js +23 -40
  40. package/dist/browser/operations/quotaUsages.js.map +1 -1
  41. package/dist/browser/operations/replicas.js +10 -27
  42. package/dist/browser/operations/replicas.js.map +1 -1
  43. package/dist/browser/operations/serverCapabilities.js +23 -40
  44. package/dist/browser/operations/serverCapabilities.js.map +1 -1
  45. package/dist/browser/operations/serverThreatProtectionSettings.js +34 -46
  46. package/dist/browser/operations/serverThreatProtectionSettings.js.map +1 -1
  47. package/dist/browser/operations/servers.js +111 -115
  48. package/dist/browser/operations/servers.js.map +1 -1
  49. package/dist/browser/operations/tuningConfiguration.js +89 -103
  50. package/dist/browser/operations/tuningConfiguration.js.map +1 -1
  51. package/dist/browser/operations/tuningIndex.js +23 -40
  52. package/dist/browser/operations/tuningIndex.js.map +1 -1
  53. package/dist/browser/operations/tuningOptions.js +23 -40
  54. package/dist/browser/operations/tuningOptions.js.map +1 -1
  55. package/dist/browser/operations/virtualEndpoints.js +56 -58
  56. package/dist/browser/operations/virtualEndpoints.js.map +1 -1
  57. package/dist/browser/operations/virtualNetworkSubnetUsage.js +1 -0
  58. package/dist/browser/operations/virtualNetworkSubnetUsage.js.map +1 -1
  59. package/dist/browser/pagingHelper.js +2 -4
  60. package/dist/browser/pagingHelper.js.map +1 -1
  61. package/dist/browser/postgreSQLManagementFlexibleServerClient.js +39 -5
  62. package/dist/browser/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  63. package/dist/commonjs/lroImpl.js +7 -3
  64. package/dist/commonjs/lroImpl.js.map +1 -1
  65. package/dist/commonjs/models/mappers.js +395 -183
  66. package/dist/commonjs/models/mappers.js.map +1 -1
  67. package/dist/commonjs/operations/administrators.js +45 -51
  68. package/dist/commonjs/operations/administrators.js.map +1 -1
  69. package/dist/commonjs/operations/backups.js +45 -51
  70. package/dist/commonjs/operations/backups.js.map +1 -1
  71. package/dist/commonjs/operations/checkNameAvailability.js +1 -0
  72. package/dist/commonjs/operations/checkNameAvailability.js.map +1 -1
  73. package/dist/commonjs/operations/checkNameAvailabilityWithLocation.js +1 -0
  74. package/dist/commonjs/operations/checkNameAvailabilityWithLocation.js.map +1 -1
  75. package/dist/commonjs/operations/configurations.js +45 -51
  76. package/dist/commonjs/operations/configurations.js.map +1 -1
  77. package/dist/commonjs/operations/databases.js +45 -51
  78. package/dist/commonjs/operations/databases.js.map +1 -1
  79. package/dist/commonjs/operations/firewallRules.js +45 -51
  80. package/dist/commonjs/operations/firewallRules.js.map +1 -1
  81. package/dist/commonjs/operations/flexibleServer.js +12 -6
  82. package/dist/commonjs/operations/flexibleServer.js.map +1 -1
  83. package/dist/commonjs/operations/getPrivateDnsZoneSuffix.js +1 -0
  84. package/dist/commonjs/operations/getPrivateDnsZoneSuffix.js.map +1 -1
  85. package/dist/commonjs/operations/locationBasedCapabilities.js +23 -39
  86. package/dist/commonjs/operations/locationBasedCapabilities.js.map +1 -1
  87. package/dist/commonjs/operations/logFiles.js +23 -39
  88. package/dist/commonjs/operations/logFiles.js.map +1 -1
  89. package/dist/commonjs/operations/ltrBackupOperations.js +23 -39
  90. package/dist/commonjs/operations/ltrBackupOperations.js.map +1 -1
  91. package/dist/commonjs/operations/migrations.js +23 -39
  92. package/dist/commonjs/operations/migrations.js.map +1 -1
  93. package/dist/commonjs/operations/operations.js +23 -39
  94. package/dist/commonjs/operations/operations.js.map +1 -1
  95. package/dist/commonjs/operations/privateEndpointConnectionOperations.js +23 -12
  96. package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
  97. package/dist/commonjs/operations/privateEndpointConnections.js +23 -39
  98. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  99. package/dist/commonjs/operations/privateLinkResources.js +23 -39
  100. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  101. package/dist/commonjs/operations/quotaUsages.js +23 -39
  102. package/dist/commonjs/operations/quotaUsages.js.map +1 -1
  103. package/dist/commonjs/operations/replicas.js +10 -26
  104. package/dist/commonjs/operations/replicas.js.map +1 -1
  105. package/dist/commonjs/operations/serverCapabilities.js +23 -39
  106. package/dist/commonjs/operations/serverCapabilities.js.map +1 -1
  107. package/dist/commonjs/operations/serverThreatProtectionSettings.js +34 -45
  108. package/dist/commonjs/operations/serverThreatProtectionSettings.js.map +1 -1
  109. package/dist/commonjs/operations/servers.js +111 -114
  110. package/dist/commonjs/operations/servers.js.map +1 -1
  111. package/dist/commonjs/operations/tuningConfiguration.js +89 -102
  112. package/dist/commonjs/operations/tuningConfiguration.js.map +1 -1
  113. package/dist/commonjs/operations/tuningIndex.js +23 -39
  114. package/dist/commonjs/operations/tuningIndex.js.map +1 -1
  115. package/dist/commonjs/operations/tuningOptions.js +23 -39
  116. package/dist/commonjs/operations/tuningOptions.js.map +1 -1
  117. package/dist/commonjs/operations/virtualEndpoints.js +56 -57
  118. package/dist/commonjs/operations/virtualEndpoints.js.map +1 -1
  119. package/dist/commonjs/operations/virtualNetworkSubnetUsage.js +1 -0
  120. package/dist/commonjs/operations/virtualNetworkSubnetUsage.js.map +1 -1
  121. package/dist/commonjs/pagingHelper.js +2 -4
  122. package/dist/commonjs/pagingHelper.js.map +1 -1
  123. package/dist/commonjs/postgreSQLManagementFlexibleServerClient.js +39 -5
  124. package/dist/commonjs/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  125. package/dist/commonjs/tsdoc-metadata.json +11 -11
  126. package/dist/esm/lroImpl.js +7 -3
  127. package/dist/esm/lroImpl.js.map +1 -1
  128. package/dist/esm/models/mappers.js +395 -183
  129. package/dist/esm/models/mappers.js.map +1 -1
  130. package/dist/esm/operations/administrators.js +45 -52
  131. package/dist/esm/operations/administrators.js.map +1 -1
  132. package/dist/esm/operations/backups.js +45 -52
  133. package/dist/esm/operations/backups.js.map +1 -1
  134. package/dist/esm/operations/checkNameAvailability.js +1 -0
  135. package/dist/esm/operations/checkNameAvailability.js.map +1 -1
  136. package/dist/esm/operations/checkNameAvailabilityWithLocation.js +1 -0
  137. package/dist/esm/operations/checkNameAvailabilityWithLocation.js.map +1 -1
  138. package/dist/esm/operations/configurations.js +45 -52
  139. package/dist/esm/operations/configurations.js.map +1 -1
  140. package/dist/esm/operations/databases.js +45 -52
  141. package/dist/esm/operations/databases.js.map +1 -1
  142. package/dist/esm/operations/firewallRules.js +45 -52
  143. package/dist/esm/operations/firewallRules.js.map +1 -1
  144. package/dist/esm/operations/flexibleServer.js +12 -6
  145. package/dist/esm/operations/flexibleServer.js.map +1 -1
  146. package/dist/esm/operations/getPrivateDnsZoneSuffix.js +1 -0
  147. package/dist/esm/operations/getPrivateDnsZoneSuffix.js.map +1 -1
  148. package/dist/esm/operations/locationBasedCapabilities.js +23 -40
  149. package/dist/esm/operations/locationBasedCapabilities.js.map +1 -1
  150. package/dist/esm/operations/logFiles.js +23 -40
  151. package/dist/esm/operations/logFiles.js.map +1 -1
  152. package/dist/esm/operations/ltrBackupOperations.js +23 -40
  153. package/dist/esm/operations/ltrBackupOperations.js.map +1 -1
  154. package/dist/esm/operations/migrations.js +23 -40
  155. package/dist/esm/operations/migrations.js.map +1 -1
  156. package/dist/esm/operations/operations.js +23 -40
  157. package/dist/esm/operations/operations.js.map +1 -1
  158. package/dist/esm/operations/privateEndpointConnectionOperations.js +23 -12
  159. package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
  160. package/dist/esm/operations/privateEndpointConnections.js +23 -40
  161. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  162. package/dist/esm/operations/privateLinkResources.js +23 -40
  163. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  164. package/dist/esm/operations/quotaUsages.js +23 -40
  165. package/dist/esm/operations/quotaUsages.js.map +1 -1
  166. package/dist/esm/operations/replicas.js +10 -27
  167. package/dist/esm/operations/replicas.js.map +1 -1
  168. package/dist/esm/operations/serverCapabilities.js +23 -40
  169. package/dist/esm/operations/serverCapabilities.js.map +1 -1
  170. package/dist/esm/operations/serverThreatProtectionSettings.js +34 -46
  171. package/dist/esm/operations/serverThreatProtectionSettings.js.map +1 -1
  172. package/dist/esm/operations/servers.js +111 -115
  173. package/dist/esm/operations/servers.js.map +1 -1
  174. package/dist/esm/operations/tuningConfiguration.js +89 -103
  175. package/dist/esm/operations/tuningConfiguration.js.map +1 -1
  176. package/dist/esm/operations/tuningIndex.js +23 -40
  177. package/dist/esm/operations/tuningIndex.js.map +1 -1
  178. package/dist/esm/operations/tuningOptions.js +23 -40
  179. package/dist/esm/operations/tuningOptions.js.map +1 -1
  180. package/dist/esm/operations/virtualEndpoints.js +56 -58
  181. package/dist/esm/operations/virtualEndpoints.js.map +1 -1
  182. package/dist/esm/operations/virtualNetworkSubnetUsage.js +1 -0
  183. package/dist/esm/operations/virtualNetworkSubnetUsage.js.map +1 -1
  184. package/dist/esm/pagingHelper.js +2 -4
  185. package/dist/esm/pagingHelper.js.map +1 -1
  186. package/dist/esm/postgreSQLManagementFlexibleServerClient.js +39 -5
  187. package/dist/esm/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  188. package/dist/react-native/lroImpl.js +7 -3
  189. package/dist/react-native/lroImpl.js.map +1 -1
  190. package/dist/react-native/models/mappers.js +395 -183
  191. package/dist/react-native/models/mappers.js.map +1 -1
  192. package/dist/react-native/operations/administrators.js +45 -52
  193. package/dist/react-native/operations/administrators.js.map +1 -1
  194. package/dist/react-native/operations/backups.js +45 -52
  195. package/dist/react-native/operations/backups.js.map +1 -1
  196. package/dist/react-native/operations/checkNameAvailability.js +1 -0
  197. package/dist/react-native/operations/checkNameAvailability.js.map +1 -1
  198. package/dist/react-native/operations/checkNameAvailabilityWithLocation.js +1 -0
  199. package/dist/react-native/operations/checkNameAvailabilityWithLocation.js.map +1 -1
  200. package/dist/react-native/operations/configurations.js +45 -52
  201. package/dist/react-native/operations/configurations.js.map +1 -1
  202. package/dist/react-native/operations/databases.js +45 -52
  203. package/dist/react-native/operations/databases.js.map +1 -1
  204. package/dist/react-native/operations/firewallRules.js +45 -52
  205. package/dist/react-native/operations/firewallRules.js.map +1 -1
  206. package/dist/react-native/operations/flexibleServer.js +12 -6
  207. package/dist/react-native/operations/flexibleServer.js.map +1 -1
  208. package/dist/react-native/operations/getPrivateDnsZoneSuffix.js +1 -0
  209. package/dist/react-native/operations/getPrivateDnsZoneSuffix.js.map +1 -1
  210. package/dist/react-native/operations/locationBasedCapabilities.js +23 -40
  211. package/dist/react-native/operations/locationBasedCapabilities.js.map +1 -1
  212. package/dist/react-native/operations/logFiles.js +23 -40
  213. package/dist/react-native/operations/logFiles.js.map +1 -1
  214. package/dist/react-native/operations/ltrBackupOperations.js +23 -40
  215. package/dist/react-native/operations/ltrBackupOperations.js.map +1 -1
  216. package/dist/react-native/operations/migrations.js +23 -40
  217. package/dist/react-native/operations/migrations.js.map +1 -1
  218. package/dist/react-native/operations/operations.js +23 -40
  219. package/dist/react-native/operations/operations.js.map +1 -1
  220. package/dist/react-native/operations/privateEndpointConnectionOperations.js +23 -12
  221. package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
  222. package/dist/react-native/operations/privateEndpointConnections.js +23 -40
  223. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  224. package/dist/react-native/operations/privateLinkResources.js +23 -40
  225. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  226. package/dist/react-native/operations/quotaUsages.js +23 -40
  227. package/dist/react-native/operations/quotaUsages.js.map +1 -1
  228. package/dist/react-native/operations/replicas.js +10 -27
  229. package/dist/react-native/operations/replicas.js.map +1 -1
  230. package/dist/react-native/operations/serverCapabilities.js +23 -40
  231. package/dist/react-native/operations/serverCapabilities.js.map +1 -1
  232. package/dist/react-native/operations/serverThreatProtectionSettings.js +34 -46
  233. package/dist/react-native/operations/serverThreatProtectionSettings.js.map +1 -1
  234. package/dist/react-native/operations/servers.js +111 -115
  235. package/dist/react-native/operations/servers.js.map +1 -1
  236. package/dist/react-native/operations/tuningConfiguration.js +89 -103
  237. package/dist/react-native/operations/tuningConfiguration.js.map +1 -1
  238. package/dist/react-native/operations/tuningIndex.js +23 -40
  239. package/dist/react-native/operations/tuningIndex.js.map +1 -1
  240. package/dist/react-native/operations/tuningOptions.js +23 -40
  241. package/dist/react-native/operations/tuningOptions.js.map +1 -1
  242. package/dist/react-native/operations/virtualEndpoints.js +56 -58
  243. package/dist/react-native/operations/virtualEndpoints.js.map +1 -1
  244. package/dist/react-native/operations/virtualNetworkSubnetUsage.js +1 -0
  245. package/dist/react-native/operations/virtualNetworkSubnetUsage.js.map +1 -1
  246. package/dist/react-native/pagingHelper.js +2 -4
  247. package/dist/react-native/pagingHelper.js.map +1 -1
  248. package/dist/react-native/postgreSQLManagementFlexibleServerClient.js +39 -5
  249. package/dist/react-native/postgreSQLManagementFlexibleServerClient.js.map +1 -1
  250. package/package.json +2 -2
  251. package/review/arm-postgresql-flexible-node.api.md +2723 -2723
@@ -1 +1 @@
1
- {"version":3,"file":"tuningIndex.js","sourceRoot":"","sources":["../../../src/operations/tuningIndex.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,UAAk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,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,kLAAkL;IACxL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACvE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { TuningIndex } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { PostgreSQLManagementFlexibleServerClient } from \"../postgreSQLManagementFlexibleServerClient.js\";\nimport type {\n IndexRecommendationResource,\n TuningOptionEnum,\n TuningIndexListRecommendationsNextOptionalParams,\n TuningIndexListRecommendationsOptionalParams,\n TuningIndexListRecommendationsResponse,\n TuningIndexListRecommendationsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TuningIndex operations. */\nexport class TuningIndexImpl implements TuningIndex {\n private readonly client: PostgreSQLManagementFlexibleServerClient;\n\n /**\n * Initialize a new instance of the class TuningIndex class.\n * @param client Reference to the service client\n */\n constructor(client: PostgreSQLManagementFlexibleServerClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the list of available tuning index recommendations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param tuningOption The name of the tuning option.\n * @param options The options parameters.\n */\n public listRecommendations(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningIndexListRecommendationsOptionalParams,\n ): PagedAsyncIterableIterator<IndexRecommendationResource> {\n const iter = this.listRecommendationsPagingAll(\n resourceGroupName,\n serverName,\n tuningOption,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listRecommendationsPagingPage(\n resourceGroupName,\n serverName,\n tuningOption,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listRecommendationsPagingPage(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningIndexListRecommendationsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<IndexRecommendationResource[]> {\n let result: TuningIndexListRecommendationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listRecommendations(\n resourceGroupName,\n serverName,\n tuningOption,\n options,\n );\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listRecommendationsNext(\n resourceGroupName,\n serverName,\n tuningOption,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listRecommendationsPagingAll(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningIndexListRecommendationsOptionalParams,\n ): AsyncIterableIterator<IndexRecommendationResource> {\n for await (const page of this.listRecommendationsPagingPage(\n resourceGroupName,\n serverName,\n tuningOption,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the list of available tuning index recommendations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param tuningOption The name of the tuning option.\n * @param options The options parameters.\n */\n private _listRecommendations(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningIndexListRecommendationsOptionalParams,\n ): Promise<TuningIndexListRecommendationsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, tuningOption, options },\n listRecommendationsOperationSpec,\n );\n }\n\n /**\n * ListRecommendationsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param tuningOption The name of the tuning option.\n * @param nextLink The nextLink from the previous successful call to the ListRecommendations method.\n * @param options The options parameters.\n */\n private _listRecommendationsNext(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n nextLink: string,\n options?: TuningIndexListRecommendationsNextOptionalParams,\n ): Promise<TuningIndexListRecommendationsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, tuningOption, nextLink, options },\n listRecommendationsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listRecommendationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}/recommendations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IndexRecommendationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.recommendationType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.tuningOption,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listRecommendationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IndexRecommendationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.nextLink,\n Parameters.tuningOption,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"tuningIndex.js","sourceRoot":"","sources":["../../../src/operations/tuningIndex.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAA2C;IAElE;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC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AAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACvE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { TuningIndex } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { PostgreSQLManagementFlexibleServerClient } from \"../postgreSQLManagementFlexibleServerClient.js\";\nimport type {\n IndexRecommendationResource,\n TuningOptionEnum,\n TuningIndexListRecommendationsNextOptionalParams,\n TuningIndexListRecommendationsOptionalParams,\n TuningIndexListRecommendationsResponse,\n TuningIndexListRecommendationsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TuningIndex operations. */\nexport class TuningIndexImpl implements TuningIndex {\n private readonly client: PostgreSQLManagementFlexibleServerClient;\n\n /**\n * Initialize a new instance of the class TuningIndex class.\n * @param client Reference to the service client\n */\n constructor(client: PostgreSQLManagementFlexibleServerClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the list of available tuning index recommendations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param tuningOption The name of the tuning option.\n * @param options The options parameters.\n */\n public listRecommendations(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningIndexListRecommendationsOptionalParams,\n ): PagedAsyncIterableIterator<IndexRecommendationResource> {\n const iter = this.listRecommendationsPagingAll(\n resourceGroupName,\n serverName,\n tuningOption,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listRecommendationsPagingPage(\n resourceGroupName,\n serverName,\n tuningOption,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listRecommendationsPagingPage(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningIndexListRecommendationsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<IndexRecommendationResource[]> {\n let result: TuningIndexListRecommendationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listRecommendations(\n resourceGroupName,\n serverName,\n tuningOption,\n options,\n );\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listRecommendationsNext(\n resourceGroupName,\n serverName,\n tuningOption,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listRecommendationsPagingAll(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningIndexListRecommendationsOptionalParams,\n ): AsyncIterableIterator<IndexRecommendationResource> {\n for await (const page of this.listRecommendationsPagingPage(\n resourceGroupName,\n serverName,\n tuningOption,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the list of available tuning index recommendations.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param tuningOption The name of the tuning option.\n * @param options The options parameters.\n */\n private _listRecommendations(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningIndexListRecommendationsOptionalParams,\n ): Promise<TuningIndexListRecommendationsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, tuningOption, options },\n listRecommendationsOperationSpec,\n );\n }\n\n /**\n * ListRecommendationsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param tuningOption The name of the tuning option.\n * @param nextLink The nextLink from the previous successful call to the ListRecommendations method.\n * @param options The options parameters.\n */\n private _listRecommendationsNext(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n nextLink: string,\n options?: TuningIndexListRecommendationsNextOptionalParams,\n ): Promise<TuningIndexListRecommendationsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, tuningOption, nextLink, options },\n listRecommendationsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listRecommendationsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}/recommendations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IndexRecommendationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.recommendationType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.tuningOption,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listRecommendationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.IndexRecommendationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.nextLink,\n Parameters.tuningOption,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing TuningOptions operations. */
15
14
  export class TuningOptionsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class TuningOptions class.
18
18
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class TuningOptionsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
43
43
  },
44
44
  };
45
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
- const 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
- const page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listByServerPagingPage(resourceGroupName, serverName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listByServer(resourceGroupName, serverName, options);
51
+ const page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listByServerNext(resourceGroupName, serverName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ const page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
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
- });
64
+ async *listByServerPagingAll(resourceGroupName, serverName, options) {
65
+ for await (const page of this.listByServerPagingPage(resourceGroupName, serverName, options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Retrieve the tuning option on a server.
@@ -1 +1 @@
1
- {"version":3,"file":"tuningOptions.js","sourceRoot":"","sources":["../../../src/operations/tuningOptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,YAAY,CACjB,iBAAyB,EACzB,UAAkB,EAClB,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAChF,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,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAAC,iBAAiB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C,iBAAiB;QAC5B,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,mJAAmJ;IACzJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;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,uBAAuB;SAC5C;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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { TuningOptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { PostgreSQLManagementFlexibleServerClient } from \"../postgreSQLManagementFlexibleServerClient.js\";\nimport type {\n TuningOptionsResource,\n TuningOptionsListByServerNextOptionalParams,\n TuningOptionsListByServerOptionalParams,\n TuningOptionsListByServerResponse,\n TuningOptionEnum,\n TuningOptionsGetOptionalParams,\n TuningOptionsGetResponse,\n TuningOptionsListByServerNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TuningOptions operations. */\nexport class TuningOptionsImpl implements TuningOptions {\n private readonly client: PostgreSQLManagementFlexibleServerClient;\n\n /**\n * Initialize a new instance of the class TuningOptions class.\n * @param client Reference to the service client\n */\n constructor(client: PostgreSQLManagementFlexibleServerClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the list of available tuning options.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n public listByServer(\n resourceGroupName: string,\n serverName: string,\n options?: TuningOptionsListByServerOptionalParams,\n ): PagedAsyncIterableIterator<TuningOptionsResource> {\n const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);\n },\n };\n }\n\n private async *listByServerPagingPage(\n resourceGroupName: string,\n serverName: string,\n options?: TuningOptionsListByServerOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TuningOptionsResource[]> {\n let result: TuningOptionsListByServerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByServer(resourceGroupName, serverName, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByServerNext(\n resourceGroupName,\n serverName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByServerPagingAll(\n resourceGroupName: string,\n serverName: string,\n options?: TuningOptionsListByServerOptionalParams,\n ): AsyncIterableIterator<TuningOptionsResource> {\n for await (const page of this.listByServerPagingPage(resourceGroupName, serverName, options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the tuning option on a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param tuningOption The name of the tuning option.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningOptionsGetOptionalParams,\n ): Promise<TuningOptionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, tuningOption, options },\n getOperationSpec,\n );\n }\n\n /**\n * Retrieve the list of available tuning options.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n private _listByServer(\n resourceGroupName: string,\n serverName: string,\n options?: TuningOptionsListByServerOptionalParams,\n ): Promise<TuningOptionsListByServerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, options },\n listByServerOperationSpec,\n );\n }\n\n /**\n * ListByServerNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param nextLink The nextLink from the previous successful call to the ListByServer method.\n * @param options The options parameters.\n */\n private _listByServerNext(\n resourceGroupName: string,\n serverName: string,\n nextLink: string,\n options?: TuningOptionsListByServerNextOptionalParams,\n ): Promise<TuningOptionsListByServerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, nextLink, options },\n listByServerNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TuningOptionsResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.tuningOption,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TuningOptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TuningOptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"tuningOptions.js","sourceRoot":"","sources":["../../../src/operations/tuningOptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,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C;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { TuningOptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { PostgreSQLManagementFlexibleServerClient } from \"../postgreSQLManagementFlexibleServerClient.js\";\nimport type {\n TuningOptionsResource,\n TuningOptionsListByServerNextOptionalParams,\n TuningOptionsListByServerOptionalParams,\n TuningOptionsListByServerResponse,\n TuningOptionEnum,\n TuningOptionsGetOptionalParams,\n TuningOptionsGetResponse,\n TuningOptionsListByServerNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TuningOptions operations. */\nexport class TuningOptionsImpl implements TuningOptions {\n private readonly client: PostgreSQLManagementFlexibleServerClient;\n\n /**\n * Initialize a new instance of the class TuningOptions class.\n * @param client Reference to the service client\n */\n constructor(client: PostgreSQLManagementFlexibleServerClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the list of available tuning options.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n public listByServer(\n resourceGroupName: string,\n serverName: string,\n options?: TuningOptionsListByServerOptionalParams,\n ): PagedAsyncIterableIterator<TuningOptionsResource> {\n const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);\n },\n };\n }\n\n private async *listByServerPagingPage(\n resourceGroupName: string,\n serverName: string,\n options?: TuningOptionsListByServerOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TuningOptionsResource[]> {\n let result: TuningOptionsListByServerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByServer(resourceGroupName, serverName, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByServerNext(\n resourceGroupName,\n serverName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByServerPagingAll(\n resourceGroupName: string,\n serverName: string,\n options?: TuningOptionsListByServerOptionalParams,\n ): AsyncIterableIterator<TuningOptionsResource> {\n for await (const page of this.listByServerPagingPage(resourceGroupName, serverName, options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the tuning option on a server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param tuningOption The name of the tuning option.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serverName: string,\n tuningOption: TuningOptionEnum,\n options?: TuningOptionsGetOptionalParams,\n ): Promise<TuningOptionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, tuningOption, options },\n getOperationSpec,\n );\n }\n\n /**\n * Retrieve the list of available tuning options.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n private _listByServer(\n resourceGroupName: string,\n serverName: string,\n options?: TuningOptionsListByServerOptionalParams,\n ): Promise<TuningOptionsListByServerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, options },\n listByServerOperationSpec,\n );\n }\n\n /**\n * ListByServerNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param nextLink The nextLink from the previous successful call to the ListByServer method.\n * @param options The options parameters.\n */\n private _listByServerNext(\n resourceGroupName: string,\n serverName: string,\n nextLink: string,\n options?: TuningOptionsListByServerNextOptionalParams,\n ): Promise<TuningOptionsListByServerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, nextLink, options },\n listByServerNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TuningOptionsResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.tuningOption,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TuningOptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TuningOptionsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing VirtualEndpoints operations. */
17
16
  export class VirtualEndpointsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class VirtualEndpoints class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class VirtualEndpointsImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listByServerPagingPage(resourceGroupName, serverName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByServer(resourceGroupName, serverName, options));
54
- const page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- const page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listByServerPagingPage(resourceGroupName, serverName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByServer(resourceGroupName, serverName, options);
53
+ const page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listByServerNext(resourceGroupName, serverName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ const page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listByServerPagingAll(resourceGroupName, serverName, options) {
69
- return __asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listByServerPagingAll(resourceGroupName, serverName, options) {
67
+ for await (const page of this.listByServerPagingPage(resourceGroupName, serverName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Creates a new virtual endpoint for PostgreSQL flexible server.
@@ -98,14 +81,19 @@ export class VirtualEndpointsImpl {
98
81
  return this.client.sendOperationRequest(args, spec);
99
82
  };
100
83
  const sendOperationFn = async (args, spec) => {
101
- var _a;
102
84
  let currentRawResponse = undefined;
103
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
85
+ const providedCallback = args.options?.onResponse;
104
86
  const callback = (rawResponse, flatResponse) => {
105
87
  currentRawResponse = rawResponse;
106
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
88
+ providedCallback?.(rawResponse, flatResponse);
89
+ };
90
+ const updatedArgs = {
91
+ ...args,
92
+ options: {
93
+ ...args.options,
94
+ onResponse: callback,
95
+ },
107
96
  };
108
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
109
97
  const flatResponse = await directSendOperation(updatedArgs, spec);
110
98
  return {
111
99
  flatResponse,
@@ -128,8 +116,8 @@ export class VirtualEndpointsImpl {
128
116
  spec: createOperationSpec,
129
117
  });
130
118
  const poller = await createHttpPoller(lro, {
131
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
132
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
119
+ restoreFrom: options?.resumeFrom,
120
+ intervalInMs: options?.updateIntervalInMs,
133
121
  resourceLocationConfig: "azure-async-operation",
134
122
  });
135
123
  await poller.poll();
@@ -161,14 +149,19 @@ export class VirtualEndpointsImpl {
161
149
  return this.client.sendOperationRequest(args, spec);
162
150
  };
163
151
  const sendOperationFn = async (args, spec) => {
164
- var _a;
165
152
  let currentRawResponse = undefined;
166
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
153
+ const providedCallback = args.options?.onResponse;
167
154
  const callback = (rawResponse, flatResponse) => {
168
155
  currentRawResponse = rawResponse;
169
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
156
+ providedCallback?.(rawResponse, flatResponse);
157
+ };
158
+ const updatedArgs = {
159
+ ...args,
160
+ options: {
161
+ ...args.options,
162
+ onResponse: callback,
163
+ },
170
164
  };
171
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
172
165
  const flatResponse = await directSendOperation(updatedArgs, spec);
173
166
  return {
174
167
  flatResponse,
@@ -191,8 +184,8 @@ export class VirtualEndpointsImpl {
191
184
  spec: updateOperationSpec,
192
185
  });
193
186
  const poller = await createHttpPoller(lro, {
194
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
195
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
187
+ restoreFrom: options?.resumeFrom,
188
+ intervalInMs: options?.updateIntervalInMs,
196
189
  resourceLocationConfig: "azure-async-operation",
197
190
  });
198
191
  await poller.poll();
@@ -223,14 +216,19 @@ export class VirtualEndpointsImpl {
223
216
  return this.client.sendOperationRequest(args, spec);
224
217
  };
225
218
  const sendOperationFn = async (args, spec) => {
226
- var _a;
227
219
  let currentRawResponse = undefined;
228
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
220
+ const providedCallback = args.options?.onResponse;
229
221
  const callback = (rawResponse, flatResponse) => {
230
222
  currentRawResponse = rawResponse;
231
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
223
+ providedCallback?.(rawResponse, flatResponse);
224
+ };
225
+ const updatedArgs = {
226
+ ...args,
227
+ options: {
228
+ ...args.options,
229
+ onResponse: callback,
230
+ },
232
231
  };
233
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
234
232
  const flatResponse = await directSendOperation(updatedArgs, spec);
235
233
  return {
236
234
  flatResponse,
@@ -247,8 +245,8 @@ export class VirtualEndpointsImpl {
247
245
  spec: deleteOperationSpec,
248
246
  });
249
247
  const poller = await createHttpPoller(lro, {
250
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
251
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
248
+ restoreFrom: options?.resumeFrom,
249
+ intervalInMs: options?.updateIntervalInMs,
252
250
  resourceLocationConfig: "location",
253
251
  });
254
252
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"virtualEndpoints.js","sourceRoot":"","sources":["../../../src/operations/virtualEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkB9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,YAAY,CACjB,iBAAyB,EACzB,UAAkB,EAClB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAChF,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,E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,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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { VirtualEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { PostgreSQLManagementFlexibleServerClient } from \"../postgreSQLManagementFlexibleServerClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n VirtualEndpointResource,\n VirtualEndpointsListByServerNextOptionalParams,\n VirtualEndpointsListByServerOptionalParams,\n VirtualEndpointsListByServerResponse,\n VirtualEndpointsCreateOptionalParams,\n VirtualEndpointsCreateResponse,\n VirtualEndpointResourceForPatch,\n VirtualEndpointsUpdateOptionalParams,\n VirtualEndpointsUpdateResponse,\n VirtualEndpointsDeleteOptionalParams,\n VirtualEndpointsDeleteResponse,\n VirtualEndpointsGetOptionalParams,\n VirtualEndpointsGetResponse,\n VirtualEndpointsListByServerNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing VirtualEndpoints operations. */\nexport class VirtualEndpointsImpl implements VirtualEndpoints {\n private readonly client: PostgreSQLManagementFlexibleServerClient;\n\n /**\n * Initialize a new instance of the class VirtualEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: PostgreSQLManagementFlexibleServerClient) {\n this.client = client;\n }\n\n /**\n * List all the servers in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n public listByServer(\n resourceGroupName: string,\n serverName: string,\n options?: VirtualEndpointsListByServerOptionalParams,\n ): PagedAsyncIterableIterator<VirtualEndpointResource> {\n const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);\n },\n };\n }\n\n private async *listByServerPagingPage(\n resourceGroupName: string,\n serverName: string,\n options?: VirtualEndpointsListByServerOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<VirtualEndpointResource[]> {\n let result: VirtualEndpointsListByServerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByServer(resourceGroupName, serverName, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByServerNext(\n resourceGroupName,\n serverName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByServerPagingAll(\n resourceGroupName: string,\n serverName: string,\n options?: VirtualEndpointsListByServerOptionalParams,\n ): AsyncIterableIterator<VirtualEndpointResource> {\n for await (const page of this.listByServerPagingPage(resourceGroupName, serverName, options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a new virtual endpoint for PostgreSQL flexible server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param parameters The required parameters for creating or updating virtual endpoints.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n parameters: VirtualEndpointResource,\n options?: VirtualEndpointsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<VirtualEndpointsCreateResponse>, VirtualEndpointsCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VirtualEndpointsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n serverName,\n virtualEndpointName,\n parameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n VirtualEndpointsCreateResponse,\n OperationState<VirtualEndpointsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new virtual endpoint for PostgreSQL flexible server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param parameters The required parameters for creating or updating virtual endpoints.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n parameters: VirtualEndpointResource,\n options?: VirtualEndpointsCreateOptionalParams,\n ): Promise<VirtualEndpointsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n serverName,\n virtualEndpointName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing virtual endpoint. The request body can contain one to many of the properties\n * present in the normal virtual endpoint definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param parameters The required parameters for updating a server.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n parameters: VirtualEndpointResourceForPatch,\n options?: VirtualEndpointsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<VirtualEndpointsUpdateResponse>, VirtualEndpointsUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VirtualEndpointsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n serverName,\n virtualEndpointName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n VirtualEndpointsUpdateResponse,\n OperationState<VirtualEndpointsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing virtual endpoint. The request body can contain one to many of the properties\n * present in the normal virtual endpoint definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param parameters The required parameters for updating a server.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n parameters: VirtualEndpointResourceForPatch,\n options?: VirtualEndpointsUpdateOptionalParams,\n ): Promise<VirtualEndpointsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n serverName,\n virtualEndpointName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a virtual endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n options?: VirtualEndpointsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<VirtualEndpointsDeleteResponse>, VirtualEndpointsDeleteResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VirtualEndpointsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, serverName, virtualEndpointName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n VirtualEndpointsDeleteResponse,\n OperationState<VirtualEndpointsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a virtual endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n options?: VirtualEndpointsDeleteOptionalParams,\n ): Promise<VirtualEndpointsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n serverName,\n virtualEndpointName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about a virtual endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n options?: VirtualEndpointsGetOptionalParams,\n ): Promise<VirtualEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, virtualEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * List all the servers in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n private _listByServer(\n resourceGroupName: string,\n serverName: string,\n options?: VirtualEndpointsListByServerOptionalParams,\n ): Promise<VirtualEndpointsListByServerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, options },\n listByServerOperationSpec,\n );\n }\n\n /**\n * ListByServerNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param nextLink The nextLink from the previous successful call to the ListByServer method.\n * @param options The options parameters.\n */\n private _listByServerNext(\n resourceGroupName: string,\n serverName: string,\n nextLink: string,\n options?: VirtualEndpointsListByServerNextOptionalParams,\n ): Promise<VirtualEndpointsListByServerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, nextLink, options },\n listByServerNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 201: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 202: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 204: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters15,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.virtualEndpointName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 201: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 202: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 204: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.virtualEndpointName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.VirtualEndpointsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.VirtualEndpointsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.VirtualEndpointsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.VirtualEndpointsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.virtualEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.virtualEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"virtualEndpoints.js","sourceRoot":"","sources":["../../../src/operations/virtualEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkB9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAA2C;IAElE;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,G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;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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { VirtualEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { PostgreSQLManagementFlexibleServerClient } from \"../postgreSQLManagementFlexibleServerClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n VirtualEndpointResource,\n VirtualEndpointsListByServerNextOptionalParams,\n VirtualEndpointsListByServerOptionalParams,\n VirtualEndpointsListByServerResponse,\n VirtualEndpointsCreateOptionalParams,\n VirtualEndpointsCreateResponse,\n VirtualEndpointResourceForPatch,\n VirtualEndpointsUpdateOptionalParams,\n VirtualEndpointsUpdateResponse,\n VirtualEndpointsDeleteOptionalParams,\n VirtualEndpointsDeleteResponse,\n VirtualEndpointsGetOptionalParams,\n VirtualEndpointsGetResponse,\n VirtualEndpointsListByServerNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing VirtualEndpoints operations. */\nexport class VirtualEndpointsImpl implements VirtualEndpoints {\n private readonly client: PostgreSQLManagementFlexibleServerClient;\n\n /**\n * Initialize a new instance of the class VirtualEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: PostgreSQLManagementFlexibleServerClient) {\n this.client = client;\n }\n\n /**\n * List all the servers in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n public listByServer(\n resourceGroupName: string,\n serverName: string,\n options?: VirtualEndpointsListByServerOptionalParams,\n ): PagedAsyncIterableIterator<VirtualEndpointResource> {\n const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);\n },\n };\n }\n\n private async *listByServerPagingPage(\n resourceGroupName: string,\n serverName: string,\n options?: VirtualEndpointsListByServerOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<VirtualEndpointResource[]> {\n let result: VirtualEndpointsListByServerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByServer(resourceGroupName, serverName, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByServerNext(\n resourceGroupName,\n serverName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByServerPagingAll(\n resourceGroupName: string,\n serverName: string,\n options?: VirtualEndpointsListByServerOptionalParams,\n ): AsyncIterableIterator<VirtualEndpointResource> {\n for await (const page of this.listByServerPagingPage(resourceGroupName, serverName, options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a new virtual endpoint for PostgreSQL flexible server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param parameters The required parameters for creating or updating virtual endpoints.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n parameters: VirtualEndpointResource,\n options?: VirtualEndpointsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<VirtualEndpointsCreateResponse>, VirtualEndpointsCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VirtualEndpointsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n serverName,\n virtualEndpointName,\n parameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n VirtualEndpointsCreateResponse,\n OperationState<VirtualEndpointsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new virtual endpoint for PostgreSQL flexible server.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param parameters The required parameters for creating or updating virtual endpoints.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n parameters: VirtualEndpointResource,\n options?: VirtualEndpointsCreateOptionalParams,\n ): Promise<VirtualEndpointsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n serverName,\n virtualEndpointName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing virtual endpoint. The request body can contain one to many of the properties\n * present in the normal virtual endpoint definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param parameters The required parameters for updating a server.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n parameters: VirtualEndpointResourceForPatch,\n options?: VirtualEndpointsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<VirtualEndpointsUpdateResponse>, VirtualEndpointsUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VirtualEndpointsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n serverName,\n virtualEndpointName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n VirtualEndpointsUpdateResponse,\n OperationState<VirtualEndpointsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing virtual endpoint. The request body can contain one to many of the properties\n * present in the normal virtual endpoint definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param parameters The required parameters for updating a server.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n parameters: VirtualEndpointResourceForPatch,\n options?: VirtualEndpointsUpdateOptionalParams,\n ): Promise<VirtualEndpointsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n serverName,\n virtualEndpointName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a virtual endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n options?: VirtualEndpointsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<VirtualEndpointsDeleteResponse>, VirtualEndpointsDeleteResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<VirtualEndpointsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, serverName, virtualEndpointName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n VirtualEndpointsDeleteResponse,\n OperationState<VirtualEndpointsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a virtual endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n options?: VirtualEndpointsDeleteOptionalParams,\n ): Promise<VirtualEndpointsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n serverName,\n virtualEndpointName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets information about a virtual endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param virtualEndpointName The name of the virtual endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serverName: string,\n virtualEndpointName: string,\n options?: VirtualEndpointsGetOptionalParams,\n ): Promise<VirtualEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, virtualEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * List all the servers in a given resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param options The options parameters.\n */\n private _listByServer(\n resourceGroupName: string,\n serverName: string,\n options?: VirtualEndpointsListByServerOptionalParams,\n ): Promise<VirtualEndpointsListByServerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, options },\n listByServerOperationSpec,\n );\n }\n\n /**\n * ListByServerNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serverName The name of the server.\n * @param nextLink The nextLink from the previous successful call to the ListByServer method.\n * @param options The options parameters.\n */\n private _listByServerNext(\n resourceGroupName: string,\n serverName: string,\n nextLink: string,\n options?: VirtualEndpointsListByServerNextOptionalParams,\n ): Promise<VirtualEndpointsListByServerNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serverName, nextLink, options },\n listByServerNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 201: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 202: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 204: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters15,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.virtualEndpointName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 201: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 202: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n 204: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.virtualEndpointName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.VirtualEndpointsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.VirtualEndpointsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.VirtualEndpointsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.VirtualEndpointsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.virtualEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.virtualEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByServerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualEndpointsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.serverName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing VirtualNetworkSubnetUsage operations. */
12
12
  export class VirtualNetworkSubnetUsageImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class VirtualNetworkSubnetUsage class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"virtualNetworkSubnetUsage.js","sourceRoot":"","sources":["../../../src/operations/virtualNetworkSubnetUsage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAGxC;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,OAAO,CACL,YAAoB,EACpB,UAA8C,EAC9C,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,EACrC,oBAAoB,CACrB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,6HAA6H;IACnI,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,YAAY,CAAC;IACrF,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { VirtualNetworkSubnetUsage } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { PostgreSQLManagementFlexibleServerClient } from \"../postgreSQLManagementFlexibleServerClient.js\";\nimport type {\n VirtualNetworkSubnetUsageParameter,\n VirtualNetworkSubnetUsageExecuteOptionalParams,\n VirtualNetworkSubnetUsageExecuteResponse,\n} from \"../models/index.js\";\n\n/** Class containing VirtualNetworkSubnetUsage operations. */\nexport class VirtualNetworkSubnetUsageImpl implements VirtualNetworkSubnetUsage {\n private readonly client: PostgreSQLManagementFlexibleServerClient;\n\n /**\n * Initialize a new instance of the class VirtualNetworkSubnetUsage class.\n * @param client Reference to the service client\n */\n constructor(client: PostgreSQLManagementFlexibleServerClient) {\n this.client = client;\n }\n\n /**\n * Get virtual network subnet usage for a given vNet resource id.\n * @param locationName The name of the location.\n * @param parameters The required parameters for creating or updating a server.\n * @param options The options parameters.\n */\n execute(\n locationName: string,\n parameters: VirtualNetworkSubnetUsageParameter,\n options?: VirtualNetworkSubnetUsageExecuteOptionalParams,\n ): Promise<VirtualNetworkSubnetUsageExecuteResponse> {\n return this.client.sendOperationRequest(\n { locationName, parameters, options },\n executeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst executeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualNetworkSubnetUsageResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.locationName],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"virtualNetworkSubnetUsage.js","sourceRoot":"","sources":["../../../src/operations/virtualNetworkSubnetUsage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IACvB,MAAM,CAA2C;IAElE;;;OAGG;IACH,YAAY,MAAgD;QAC1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,OAAO,CACL,YAAoB,EACpB,UAA8C,EAC9C,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,EACrC,oBAAoB,CACrB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,6HAA6H;IACnI,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,YAAY,CAAC;IACrF,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { VirtualNetworkSubnetUsage } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { PostgreSQLManagementFlexibleServerClient } from \"../postgreSQLManagementFlexibleServerClient.js\";\nimport type {\n VirtualNetworkSubnetUsageParameter,\n VirtualNetworkSubnetUsageExecuteOptionalParams,\n VirtualNetworkSubnetUsageExecuteResponse,\n} from \"../models/index.js\";\n\n/** Class containing VirtualNetworkSubnetUsage operations. */\nexport class VirtualNetworkSubnetUsageImpl implements VirtualNetworkSubnetUsage {\n private readonly client: PostgreSQLManagementFlexibleServerClient;\n\n /**\n * Initialize a new instance of the class VirtualNetworkSubnetUsage class.\n * @param client Reference to the service client\n */\n constructor(client: PostgreSQLManagementFlexibleServerClient) {\n this.client = client;\n }\n\n /**\n * Get virtual network subnet usage for a given vNet resource id.\n * @param locationName The name of the location.\n * @param parameters The required parameters for creating or updating a server.\n * @param options The options parameters.\n */\n execute(\n locationName: string,\n parameters: VirtualNetworkSubnetUsageParameter,\n options?: VirtualNetworkSubnetUsageExecuteOptionalParams,\n ): Promise<VirtualNetworkSubnetUsageExecuteResponse> {\n return this.client.sendOperationRequest(\n { locationName, parameters, options },\n executeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst executeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.VirtualNetworkSubnetUsageResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.locationName],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
14
14
  * @returns The continuation token that can be passed into byPage() during future calls.
15
15
  */
16
16
  export function getContinuationToken(page) {
17
- var _a;
18
17
  if (typeof page !== "object" || page === null) {
19
18
  return undefined;
20
19
  }
21
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
20
+ return pageMap.get(page)?.continuationToken;
22
21
  }
23
22
  export function setContinuationToken(page, continuationToken) {
24
- var _a;
25
23
  if (typeof page !== "object" || page === null || !continuationToken) {
26
24
  return;
27
25
  }
28
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
26
+ const pageInfo = pageMap.get(page) ?? {};
29
27
  pageInfo.continuationToken = continuationToken;
30
28
  pageMap.set(page, pageInfo);
31
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;;IACvF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(page: unknown, continuationToken: string | undefined): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;IACvF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(page: unknown, continuationToken: string | undefined): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}