@azure/arm-postgresql-flexible 2.0.0 → 5.0.0

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 (359) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +70 -82
  4. package/dist/index.js +3801 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/capabilitiesList.d.ts +2 -0
  9. package/dist-esm/samples-dev/capabilitiesList.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/capabilitiesList.js +44 -0
  11. package/dist-esm/samples-dev/capabilitiesList.js.map +1 -0
  12. package/dist-esm/samples-dev/configurationGet.d.ts +2 -0
  13. package/dist-esm/samples-dev/configurationGet.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/configurationGet.js +32 -0
  15. package/dist-esm/samples-dev/configurationGet.js.map +1 -0
  16. package/dist-esm/samples-dev/configurationList.d.ts +2 -0
  17. package/dist-esm/samples-dev/configurationList.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/configurationList.js +45 -0
  19. package/dist-esm/samples-dev/configurationList.js.map +1 -0
  20. package/dist-esm/samples-dev/createADatabase.d.ts +2 -0
  21. package/dist-esm/samples-dev/createADatabase.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/createADatabase.js +33 -0
  23. package/dist-esm/samples-dev/createADatabase.js.map +1 -0
  24. package/dist-esm/samples-dev/createADatabaseAsAPointInTimeRestore.d.ts +2 -0
  25. package/dist-esm/samples-dev/createADatabaseAsAPointInTimeRestore.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/createADatabaseAsAPointInTimeRestore.js +37 -0
  27. package/dist-esm/samples-dev/createADatabaseAsAPointInTimeRestore.js.map +1 -0
  28. package/dist-esm/samples-dev/createANewServer.d.ts +2 -0
  29. package/dist-esm/samples-dev/createANewServer.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/createANewServer.js +48 -0
  31. package/dist-esm/samples-dev/createANewServer.js.map +1 -0
  32. package/dist-esm/samples-dev/deleteADatabase.d.ts +2 -0
  33. package/dist-esm/samples-dev/deleteADatabase.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/deleteADatabase.js +32 -0
  35. package/dist-esm/samples-dev/deleteADatabase.js.map +1 -0
  36. package/dist-esm/samples-dev/firewallRuleCreate.d.ts +2 -0
  37. package/dist-esm/samples-dev/firewallRuleCreate.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/firewallRuleCreate.js +36 -0
  39. package/dist-esm/samples-dev/firewallRuleCreate.js.map +1 -0
  40. package/dist-esm/samples-dev/firewallRuleDelete.d.ts +2 -0
  41. package/dist-esm/samples-dev/firewallRuleDelete.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/firewallRuleDelete.js +32 -0
  43. package/dist-esm/samples-dev/firewallRuleDelete.js.map +1 -0
  44. package/dist-esm/samples-dev/firewallRuleList.d.ts +2 -0
  45. package/dist-esm/samples-dev/firewallRuleList.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/firewallRuleList.js +45 -0
  47. package/dist-esm/samples-dev/firewallRuleList.js.map +1 -0
  48. package/dist-esm/samples-dev/getADatabase.d.ts +2 -0
  49. package/dist-esm/samples-dev/getADatabase.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/getADatabase.js +32 -0
  51. package/dist-esm/samples-dev/getADatabase.js.map +1 -0
  52. package/dist-esm/samples-dev/getPrivateDnsZoneSuffix.d.ts +2 -0
  53. package/dist-esm/samples-dev/getPrivateDnsZoneSuffix.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/getPrivateDnsZoneSuffix.js +29 -0
  55. package/dist-esm/samples-dev/getPrivateDnsZoneSuffix.js.map +1 -0
  56. package/dist-esm/samples-dev/listDatabasesInAServer.d.ts +2 -0
  57. package/dist-esm/samples-dev/listDatabasesInAServer.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/listDatabasesInAServer.js +45 -0
  59. package/dist-esm/samples-dev/listDatabasesInAServer.js.map +1 -0
  60. package/dist-esm/samples-dev/nameAvailability.d.ts +2 -0
  61. package/dist-esm/samples-dev/nameAvailability.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/nameAvailability.js +33 -0
  63. package/dist-esm/samples-dev/nameAvailability.js.map +1 -0
  64. package/dist-esm/samples-dev/operationList.d.ts +2 -0
  65. package/dist-esm/samples-dev/operationList.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/operationList.js +29 -0
  67. package/dist-esm/samples-dev/operationList.js.map +1 -0
  68. package/dist-esm/samples-dev/serverDelete.d.ts +2 -0
  69. package/dist-esm/samples-dev/serverDelete.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/serverDelete.js +31 -0
  71. package/dist-esm/samples-dev/serverDelete.js.map +1 -0
  72. package/dist-esm/samples-dev/serverGet.d.ts +2 -0
  73. package/dist-esm/samples-dev/serverGet.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/serverGet.js +31 -0
  75. package/dist-esm/samples-dev/serverGet.js.map +1 -0
  76. package/dist-esm/samples-dev/serverGetWithVnet.d.ts +2 -0
  77. package/dist-esm/samples-dev/serverGetWithVnet.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/serverGetWithVnet.js +31 -0
  79. package/dist-esm/samples-dev/serverGetWithVnet.js.map +1 -0
  80. package/dist-esm/samples-dev/serverList.d.ts +2 -0
  81. package/dist-esm/samples-dev/serverList.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/serverList.js +43 -0
  83. package/dist-esm/samples-dev/serverList.js.map +1 -0
  84. package/dist-esm/samples-dev/serverListByResourceGroup.d.ts +2 -0
  85. package/dist-esm/samples-dev/serverListByResourceGroup.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/serverListByResourceGroup.js +44 -0
  87. package/dist-esm/samples-dev/serverListByResourceGroup.js.map +1 -0
  88. package/dist-esm/samples-dev/serverRestart.d.ts +2 -0
  89. package/dist-esm/samples-dev/serverRestart.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/serverRestart.js +31 -0
  91. package/dist-esm/samples-dev/serverRestart.js.map +1 -0
  92. package/dist-esm/samples-dev/serverRestartWithFailover.d.ts +2 -0
  93. package/dist-esm/samples-dev/serverRestartWithFailover.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/serverRestartWithFailover.js +36 -0
  95. package/dist-esm/samples-dev/serverRestartWithFailover.js.map +1 -0
  96. package/dist-esm/samples-dev/serverStart.d.ts +2 -0
  97. package/dist-esm/samples-dev/serverStart.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/serverStart.js +31 -0
  99. package/dist-esm/samples-dev/serverStart.js.map +1 -0
  100. package/dist-esm/samples-dev/serverStop.d.ts +2 -0
  101. package/dist-esm/samples-dev/serverStop.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/serverStop.js +31 -0
  103. package/dist-esm/samples-dev/serverStop.js.map +1 -0
  104. package/dist-esm/samples-dev/serverUpdate.d.ts +2 -0
  105. package/dist-esm/samples-dev/serverUpdate.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/serverUpdate.js +39 -0
  107. package/dist-esm/samples-dev/serverUpdate.js.map +1 -0
  108. package/dist-esm/samples-dev/serverUpdateWithCustomerMaintenanceWindow.d.ts +2 -0
  109. package/dist-esm/samples-dev/serverUpdateWithCustomerMaintenanceWindow.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/serverUpdateWithCustomerMaintenanceWindow.js +41 -0
  111. package/dist-esm/samples-dev/serverUpdateWithCustomerMaintenanceWindow.js.map +1 -0
  112. package/dist-esm/samples-dev/updateAUserConfiguration.d.ts +2 -0
  113. package/dist-esm/samples-dev/updateAUserConfiguration.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/updateAUserConfiguration.js +33 -0
  115. package/dist-esm/samples-dev/updateAUserConfiguration.js.map +1 -0
  116. package/dist-esm/samples-dev/virtualNetworkSubnetUsageList.d.ts +2 -0
  117. package/dist-esm/samples-dev/virtualNetworkSubnetUsageList.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/virtualNetworkSubnetUsageList.js +33 -0
  119. package/dist-esm/samples-dev/virtualNetworkSubnetUsageList.js.map +1 -0
  120. package/dist-esm/src/index.d.ts +5 -0
  121. package/dist-esm/src/index.d.ts.map +1 -0
  122. package/{esm/models/checkNameAvailabilityMappers.js → dist-esm/src/index.js} +5 -2
  123. package/dist-esm/src/index.js.map +1 -0
  124. package/dist-esm/src/lroImpl.d.ts +16 -0
  125. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  126. package/dist-esm/src/lroImpl.js +29 -0
  127. package/dist-esm/src/lroImpl.js.map +1 -0
  128. package/dist-esm/src/models/index.d.ts +1104 -0
  129. package/dist-esm/src/models/index.d.ts.map +1 -0
  130. package/dist-esm/src/models/index.js +112 -0
  131. package/dist-esm/src/models/index.js.map +1 -0
  132. package/dist-esm/src/models/mappers.d.ts +42 -0
  133. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  134. package/{esm → dist-esm/src}/models/mappers.js +819 -743
  135. package/dist-esm/src/models/mappers.js.map +1 -0
  136. package/dist-esm/src/models/parameters.d.ts +22 -0
  137. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  138. package/{esm → dist-esm/src}/models/parameters.js +84 -63
  139. package/dist-esm/src/models/parameters.js.map +1 -0
  140. package/dist-esm/src/operations/checkNameAvailability.d.ts +19 -0
  141. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -0
  142. package/dist-esm/src/operations/checkNameAvailability.js +49 -0
  143. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -0
  144. package/dist-esm/src/operations/configurations.d.ts +83 -0
  145. package/dist-esm/src/operations/configurations.d.ts.map +1 -0
  146. package/dist-esm/src/operations/configurations.js +343 -0
  147. package/dist-esm/src/operations/configurations.js.map +1 -0
  148. package/dist-esm/src/operations/databases.d.ts +81 -0
  149. package/dist-esm/src/operations/databases.d.ts.map +1 -0
  150. package/dist-esm/src/operations/databases.js +331 -0
  151. package/dist-esm/src/operations/databases.js.map +1 -0
  152. package/dist-esm/src/operations/firewallRules.d.ts +81 -0
  153. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
  154. package/dist-esm/src/operations/firewallRules.js +331 -0
  155. package/dist-esm/src/operations/firewallRules.js.map +1 -0
  156. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.d.ts +18 -0
  157. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.d.ts.map +1 -0
  158. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js +46 -0
  159. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js.map +1 -0
  160. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  161. package/dist-esm/src/operations/index.d.ts.map +1 -0
  162. package/{esm → dist-esm/src}/operations/index.js +1 -2
  163. package/dist-esm/src/operations/index.js.map +1 -0
  164. package/dist-esm/src/operations/locationBasedCapabilities.d.ts +35 -0
  165. package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -0
  166. package/dist-esm/src/operations/locationBasedCapabilities.js +132 -0
  167. package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -0
  168. package/dist-esm/src/operations/operations.d.ts +18 -0
  169. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  170. package/dist-esm/src/operations/operations.js +46 -0
  171. package/dist-esm/src/operations/operations.js.map +1 -0
  172. package/dist-esm/src/operations/servers.d.ts +151 -0
  173. package/dist-esm/src/operations/servers.d.ts.map +1 -0
  174. package/dist-esm/src/operations/servers.js +717 -0
  175. package/dist-esm/src/operations/servers.js.map +1 -0
  176. package/dist-esm/src/operations/virtualNetworkSubnetUsage.d.ts +20 -0
  177. package/dist-esm/src/operations/virtualNetworkSubnetUsage.d.ts.map +1 -0
  178. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js +54 -0
  179. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js.map +1 -0
  180. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +11 -0
  181. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -0
  182. package/{src/models/getPrivateDnsZoneSuffixMappers.ts → dist-esm/src/operationsInterfaces/checkNameAvailability.js} +2 -6
  183. package/dist-esm/src/operationsInterfaces/checkNameAvailability.js.map +1 -0
  184. package/dist-esm/src/operationsInterfaces/configurations.d.ts +58 -0
  185. package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
  186. package/{src/models/checkNameAvailabilityMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -8
  187. package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
  188. package/dist-esm/src/operationsInterfaces/databases.d.ts +56 -0
  189. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -0
  190. package/{esm/models/getPrivateDnsZoneSuffixMappers.js → dist-esm/src/operationsInterfaces/databases.js} +2 -2
  191. package/dist-esm/src/operationsInterfaces/databases.js.map +1 -0
  192. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +56 -0
  193. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
  195. package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
  196. package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.d.ts +10 -0
  197. package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.d.ts.map +1 -0
  198. package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.js +9 -0
  199. package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.js.map +1 -0
  200. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  201. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  202. package/dist-esm/src/operationsInterfaces/index.js +17 -0
  203. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  204. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts +12 -0
  205. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts.map +1 -0
  206. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.js +9 -0
  207. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.js.map +1 -0
  208. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  209. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  210. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  211. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  212. package/dist-esm/src/operationsInterfaces/servers.d.ts +115 -0
  213. package/dist-esm/src/operationsInterfaces/servers.d.ts.map +1 -0
  214. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/servers.js} +2 -1
  215. package/dist-esm/src/operationsInterfaces/servers.js.map +1 -0
  216. package/dist-esm/src/operationsInterfaces/virtualNetworkSubnetUsage.d.ts +12 -0
  217. package/dist-esm/src/operationsInterfaces/virtualNetworkSubnetUsage.d.ts.map +1 -0
  218. package/dist-esm/src/operationsInterfaces/virtualNetworkSubnetUsage.js +9 -0
  219. package/dist-esm/src/operationsInterfaces/virtualNetworkSubnetUsage.js.map +1 -0
  220. package/dist-esm/src/postgreSQLManagementClient.d.ts +26 -0
  221. package/dist-esm/src/postgreSQLManagementClient.d.ts.map +1 -0
  222. package/dist-esm/src/postgreSQLManagementClient.js +59 -0
  223. package/dist-esm/src/postgreSQLManagementClient.js.map +1 -0
  224. package/dist-esm/test/sampleTest.d.ts +2 -0
  225. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  226. package/dist-esm/test/sampleTest.js +40 -0
  227. package/dist-esm/test/sampleTest.js.map +1 -0
  228. package/package.json +80 -33
  229. package/review/arm-postgresql-flexible.api.md +865 -0
  230. package/rollup.config.js +181 -30
  231. package/src/{models/operationsMappers.ts → index.ts} +4 -8
  232. package/src/lroImpl.ts +34 -0
  233. package/src/models/index.ts +908 -1203
  234. package/src/models/mappers.ts +789 -718
  235. package/src/models/parameters.ts +117 -64
  236. package/src/operations/checkNameAvailability.ts +35 -57
  237. package/src/operations/configurations.ts +374 -148
  238. package/src/operations/databases.ts +355 -212
  239. package/src/operations/firewallRules.ts +355 -212
  240. package/src/operations/getPrivateDnsZoneSuffix.ts +28 -67
  241. package/src/operations/index.ts +1 -2
  242. package/src/operations/locationBasedCapabilities.ts +109 -79
  243. package/src/operations/operations.ts +27 -41
  244. package/src/operations/servers.ts +745 -412
  245. package/src/operations/virtualNetworkSubnetUsage.ts +40 -57
  246. package/src/operationsInterfaces/checkNameAvailability.ts +26 -0
  247. package/src/operationsInterfaces/configurations.ts +119 -0
  248. package/src/operationsInterfaces/databases.ts +109 -0
  249. package/src/operationsInterfaces/firewallRules.ts +109 -0
  250. package/src/operationsInterfaces/getPrivateDnsZoneSuffix.ts +23 -0
  251. package/src/operationsInterfaces/index.ts +17 -0
  252. package/src/operationsInterfaces/locationBasedCapabilities.ts +27 -0
  253. package/src/operationsInterfaces/operations.ts +21 -0
  254. package/src/operationsInterfaces/servers.ts +202 -0
  255. package/src/operationsInterfaces/virtualNetworkSubnetUsage.ts +28 -0
  256. package/src/postgreSQLManagementClient.ts +97 -49
  257. package/tsconfig.json +5 -4
  258. package/types/arm-postgresql-flexible.d.ts +1581 -0
  259. package/types/tsdoc-metadata.json +11 -0
  260. package/dist/arm-postgresql-flexible.js +0 -3349
  261. package/dist/arm-postgresql-flexible.js.map +0 -1
  262. package/dist/arm-postgresql-flexible.min.js +0 -1
  263. package/dist/arm-postgresql-flexible.min.js.map +0 -1
  264. package/esm/models/checkNameAvailabilityMappers.d.ts +0 -2
  265. package/esm/models/checkNameAvailabilityMappers.d.ts.map +0 -1
  266. package/esm/models/checkNameAvailabilityMappers.js.map +0 -1
  267. package/esm/models/configurationsMappers.d.ts +0 -2
  268. package/esm/models/configurationsMappers.d.ts.map +0 -1
  269. package/esm/models/configurationsMappers.js +0 -9
  270. package/esm/models/configurationsMappers.js.map +0 -1
  271. package/esm/models/databasesMappers.d.ts +0 -2
  272. package/esm/models/databasesMappers.d.ts.map +0 -1
  273. package/esm/models/databasesMappers.js +0 -9
  274. package/esm/models/databasesMappers.js.map +0 -1
  275. package/esm/models/firewallRulesMappers.d.ts +0 -2
  276. package/esm/models/firewallRulesMappers.d.ts.map +0 -1
  277. package/esm/models/firewallRulesMappers.js +0 -9
  278. package/esm/models/firewallRulesMappers.js.map +0 -1
  279. package/esm/models/getPrivateDnsZoneSuffixMappers.d.ts +0 -2
  280. package/esm/models/getPrivateDnsZoneSuffixMappers.d.ts.map +0 -1
  281. package/esm/models/getPrivateDnsZoneSuffixMappers.js.map +0 -1
  282. package/esm/models/index.d.ts +0 -1426
  283. package/esm/models/index.d.ts.map +0 -1
  284. package/esm/models/index.js.map +0 -1
  285. package/esm/models/locationBasedCapabilitiesMappers.d.ts +0 -2
  286. package/esm/models/locationBasedCapabilitiesMappers.d.ts.map +0 -1
  287. package/esm/models/locationBasedCapabilitiesMappers.js +0 -9
  288. package/esm/models/locationBasedCapabilitiesMappers.js.map +0 -1
  289. package/esm/models/mappers.d.ts +0 -45
  290. package/esm/models/mappers.d.ts.map +0 -1
  291. package/esm/models/mappers.js.map +0 -1
  292. package/esm/models/operationsMappers.d.ts +0 -2
  293. package/esm/models/operationsMappers.d.ts.map +0 -1
  294. package/esm/models/operationsMappers.js +0 -9
  295. package/esm/models/operationsMappers.js.map +0 -1
  296. package/esm/models/parameters.d.ts +0 -14
  297. package/esm/models/parameters.d.ts.map +0 -1
  298. package/esm/models/parameters.js.map +0 -1
  299. package/esm/models/serversMappers.d.ts +0 -2
  300. package/esm/models/serversMappers.d.ts.map +0 -1
  301. package/esm/models/serversMappers.js +0 -9
  302. package/esm/models/serversMappers.js.map +0 -1
  303. package/esm/models/virtualNetworkSubnetUsageMappers.d.ts +0 -2
  304. package/esm/models/virtualNetworkSubnetUsageMappers.d.ts.map +0 -1
  305. package/esm/models/virtualNetworkSubnetUsageMappers.js +0 -9
  306. package/esm/models/virtualNetworkSubnetUsageMappers.js.map +0 -1
  307. package/esm/operations/checkNameAvailability.d.ts +0 -34
  308. package/esm/operations/checkNameAvailability.d.ts.map +0 -1
  309. package/esm/operations/checkNameAvailability.js +0 -59
  310. package/esm/operations/checkNameAvailability.js.map +0 -1
  311. package/esm/operations/configurations.d.ts +0 -97
  312. package/esm/operations/configurations.d.ts.map +0 -1
  313. package/esm/operations/configurations.js +0 -181
  314. package/esm/operations/configurations.js.map +0 -1
  315. package/esm/operations/databases.d.ts +0 -115
  316. package/esm/operations/databases.d.ts.map +0 -1
  317. package/esm/operations/databases.js +0 -237
  318. package/esm/operations/databases.js.map +0 -1
  319. package/esm/operations/firewallRules.d.ts +0 -115
  320. package/esm/operations/firewallRules.d.ts.map +0 -1
  321. package/esm/operations/firewallRules.js +0 -237
  322. package/esm/operations/firewallRules.js.map +0 -1
  323. package/esm/operations/getPrivateDnsZoneSuffix.d.ts +0 -34
  324. package/esm/operations/getPrivateDnsZoneSuffix.d.ts.map +0 -1
  325. package/esm/operations/getPrivateDnsZoneSuffix.js +0 -69
  326. package/esm/operations/getPrivateDnsZoneSuffix.js.map +0 -1
  327. package/esm/operations/index.d.ts.map +0 -1
  328. package/esm/operations/index.js.map +0 -1
  329. package/esm/operations/locationBasedCapabilities.d.ts +0 -49
  330. package/esm/operations/locationBasedCapabilities.d.ts.map +0 -1
  331. package/esm/operations/locationBasedCapabilities.js +0 -84
  332. package/esm/operations/locationBasedCapabilities.js.map +0 -1
  333. package/esm/operations/operations.d.ts +0 -28
  334. package/esm/operations/operations.d.ts.map +0 -1
  335. package/esm/operations/operations.js +0 -50
  336. package/esm/operations/operations.js.map +0 -1
  337. package/esm/operations/servers.d.ts +0 -206
  338. package/esm/operations/servers.d.ts.map +0 -1
  339. package/esm/operations/servers.js +0 -484
  340. package/esm/operations/servers.js.map +0 -1
  341. package/esm/operations/virtualNetworkSubnetUsage.d.ts +0 -34
  342. package/esm/operations/virtualNetworkSubnetUsage.d.ts.map +0 -1
  343. package/esm/operations/virtualNetworkSubnetUsage.js +0 -61
  344. package/esm/operations/virtualNetworkSubnetUsage.js.map +0 -1
  345. package/esm/postgreSQLManagementClient.d.ts +0 -32
  346. package/esm/postgreSQLManagementClient.d.ts.map +0 -1
  347. package/esm/postgreSQLManagementClient.js +0 -45
  348. package/esm/postgreSQLManagementClient.js.map +0 -1
  349. package/esm/postgreSQLManagementClientContext.d.ts +0 -21
  350. package/esm/postgreSQLManagementClientContext.d.ts.map +0 -1
  351. package/esm/postgreSQLManagementClientContext.js +0 -59
  352. package/esm/postgreSQLManagementClientContext.js.map +0 -1
  353. package/src/models/configurationsMappers.ts +0 -34
  354. package/src/models/databasesMappers.ts +0 -34
  355. package/src/models/firewallRulesMappers.ts +0 -34
  356. package/src/models/locationBasedCapabilitiesMappers.ts +0 -20
  357. package/src/models/serversMappers.ts +0 -35
  358. package/src/models/virtualNetworkSubnetUsageMappers.ts +0 -16
  359. package/src/postgreSQLManagementClientContext.ts +0 -65
@@ -0,0 +1,331 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing FirewallRules operations. */
16
+ export class FirewallRulesImpl {
17
+ /**
18
+ * Initialize a new instance of the class FirewallRules class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * List all the firewall rules in a given PostgreSQL server.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param serverName The name of the server.
28
+ * @param options The options parameters.
29
+ */
30
+ listByServer(resourceGroupName, serverName, options) {
31
+ const iter = this.listByServerPagingAll(resourceGroupName, serverName, options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: () => {
40
+ return this.listByServerPagingPage(resourceGroupName, serverName, options);
41
+ }
42
+ };
43
+ }
44
+ listByServerPagingPage(resourceGroupName, serverName, options) {
45
+ return __asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
46
+ let result = yield __await(this._listByServer(resourceGroupName, serverName, options));
47
+ yield yield __await(result.value || []);
48
+ let continuationToken = result.nextLink;
49
+ while (continuationToken) {
50
+ result = yield __await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
51
+ continuationToken = result.nextLink;
52
+ yield yield __await(result.value || []);
53
+ }
54
+ });
55
+ }
56
+ listByServerPagingAll(resourceGroupName, serverName, options) {
57
+ return __asyncGenerator(this, arguments, function* listByServerPagingAll_1() {
58
+ var e_1, _a;
59
+ try {
60
+ for (var _b = __asyncValues(this.listByServerPagingPage(resourceGroupName, serverName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
61
+ const page = _c.value;
62
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
63
+ }
64
+ }
65
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
66
+ finally {
67
+ try {
68
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
69
+ }
70
+ finally { if (e_1) throw e_1.error; }
71
+ }
72
+ });
73
+ }
74
+ /**
75
+ * Creates a new firewall rule or updates an existing firewall rule.
76
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
+ * @param serverName The name of the server.
78
+ * @param firewallRuleName The name of the server firewall rule.
79
+ * @param parameters The required parameters for creating or updating a firewall rule.
80
+ * @param options The options parameters.
81
+ */
82
+ beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
85
+ return this.client.sendOperationRequest(args, spec);
86
+ });
87
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
88
+ var _a;
89
+ let currentRawResponse = undefined;
90
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
91
+ const callback = (rawResponse, flatResponse) => {
92
+ currentRawResponse = rawResponse;
93
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
94
+ };
95
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
96
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
97
+ return {
98
+ flatResponse,
99
+ rawResponse: {
100
+ statusCode: currentRawResponse.status,
101
+ body: currentRawResponse.parsedBody,
102
+ headers: currentRawResponse.headers.toJSON()
103
+ }
104
+ };
105
+ });
106
+ const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, parameters, options }, createOrUpdateOperationSpec);
107
+ return new LroEngine(lro, {
108
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
109
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
110
+ });
111
+ });
112
+ }
113
+ /**
114
+ * Creates a new firewall rule or updates an existing firewall rule.
115
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
116
+ * @param serverName The name of the server.
117
+ * @param firewallRuleName The name of the server firewall rule.
118
+ * @param parameters The required parameters for creating or updating a firewall rule.
119
+ * @param options The options parameters.
120
+ */
121
+ beginCreateOrUpdateAndWait(resourceGroupName, serverName, firewallRuleName, parameters, options) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options);
124
+ return poller.pollUntilDone();
125
+ });
126
+ }
127
+ /**
128
+ * Deletes a PostgreSQL server firewall rule.
129
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
130
+ * @param serverName The name of the server.
131
+ * @param firewallRuleName The name of the server firewall rule.
132
+ * @param options The options parameters.
133
+ */
134
+ beginDelete(resourceGroupName, serverName, firewallRuleName, options) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
137
+ return this.client.sendOperationRequest(args, spec);
138
+ });
139
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
140
+ var _a;
141
+ let currentRawResponse = undefined;
142
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
143
+ const callback = (rawResponse, flatResponse) => {
144
+ currentRawResponse = rawResponse;
145
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
146
+ };
147
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
148
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
149
+ return {
150
+ flatResponse,
151
+ rawResponse: {
152
+ statusCode: currentRawResponse.status,
153
+ body: currentRawResponse.parsedBody,
154
+ headers: currentRawResponse.headers.toJSON()
155
+ }
156
+ };
157
+ });
158
+ const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, options }, deleteOperationSpec);
159
+ return new LroEngine(lro, {
160
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
161
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
162
+ });
163
+ });
164
+ }
165
+ /**
166
+ * Deletes a PostgreSQL server firewall rule.
167
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
168
+ * @param serverName The name of the server.
169
+ * @param firewallRuleName The name of the server firewall rule.
170
+ * @param options The options parameters.
171
+ */
172
+ beginDeleteAndWait(resourceGroupName, serverName, firewallRuleName, options) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ const poller = yield this.beginDelete(resourceGroupName, serverName, firewallRuleName, options);
175
+ return poller.pollUntilDone();
176
+ });
177
+ }
178
+ /**
179
+ * List all the firewall rules in a given server.
180
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
181
+ * @param serverName The name of the server.
182
+ * @param firewallRuleName The name of the server firewall rule.
183
+ * @param options The options parameters.
184
+ */
185
+ get(resourceGroupName, serverName, firewallRuleName, options) {
186
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, firewallRuleName, options }, getOperationSpec);
187
+ }
188
+ /**
189
+ * List all the firewall rules in a given PostgreSQL server.
190
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
191
+ * @param serverName The name of the server.
192
+ * @param options The options parameters.
193
+ */
194
+ _listByServer(resourceGroupName, serverName, options) {
195
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, options }, listByServerOperationSpec);
196
+ }
197
+ /**
198
+ * ListByServerNext
199
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
200
+ * @param serverName The name of the server.
201
+ * @param nextLink The nextLink from the previous successful call to the ListByServer method.
202
+ * @param options The options parameters.
203
+ */
204
+ _listByServerNext(resourceGroupName, serverName, nextLink, options) {
205
+ return this.client.sendOperationRequest({ resourceGroupName, serverName, nextLink, options }, listByServerNextOperationSpec);
206
+ }
207
+ }
208
+ // Operation Specifications
209
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
210
+ const createOrUpdateOperationSpec = {
211
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
212
+ httpMethod: "PUT",
213
+ responses: {
214
+ 200: {
215
+ bodyMapper: Mappers.FirewallRule
216
+ },
217
+ 201: {
218
+ bodyMapper: Mappers.FirewallRule
219
+ },
220
+ 202: {
221
+ bodyMapper: Mappers.FirewallRule
222
+ },
223
+ 204: {
224
+ bodyMapper: Mappers.FirewallRule
225
+ },
226
+ default: {
227
+ bodyMapper: Mappers.CloudError
228
+ }
229
+ },
230
+ requestBody: Parameters.parameters3,
231
+ queryParameters: [Parameters.apiVersion],
232
+ urlParameters: [
233
+ Parameters.$host,
234
+ Parameters.subscriptionId,
235
+ Parameters.resourceGroupName,
236
+ Parameters.serverName,
237
+ Parameters.firewallRuleName
238
+ ],
239
+ headerParameters: [Parameters.contentType, Parameters.accept],
240
+ mediaType: "json",
241
+ serializer
242
+ };
243
+ const deleteOperationSpec = {
244
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
245
+ httpMethod: "DELETE",
246
+ responses: {
247
+ 200: {},
248
+ 201: {},
249
+ 202: {},
250
+ 204: {},
251
+ default: {
252
+ bodyMapper: Mappers.CloudError
253
+ }
254
+ },
255
+ queryParameters: [Parameters.apiVersion],
256
+ urlParameters: [
257
+ Parameters.$host,
258
+ Parameters.subscriptionId,
259
+ Parameters.resourceGroupName,
260
+ Parameters.serverName,
261
+ Parameters.firewallRuleName
262
+ ],
263
+ headerParameters: [Parameters.accept],
264
+ serializer
265
+ };
266
+ const getOperationSpec = {
267
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}",
268
+ httpMethod: "GET",
269
+ responses: {
270
+ 200: {
271
+ bodyMapper: Mappers.FirewallRule
272
+ },
273
+ default: {
274
+ bodyMapper: Mappers.CloudError
275
+ }
276
+ },
277
+ queryParameters: [Parameters.apiVersion],
278
+ urlParameters: [
279
+ Parameters.$host,
280
+ Parameters.subscriptionId,
281
+ Parameters.resourceGroupName,
282
+ Parameters.serverName,
283
+ Parameters.firewallRuleName
284
+ ],
285
+ headerParameters: [Parameters.accept],
286
+ serializer
287
+ };
288
+ const listByServerOperationSpec = {
289
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules",
290
+ httpMethod: "GET",
291
+ responses: {
292
+ 200: {
293
+ bodyMapper: Mappers.FirewallRuleListResult
294
+ },
295
+ default: {
296
+ bodyMapper: Mappers.CloudError
297
+ }
298
+ },
299
+ queryParameters: [Parameters.apiVersion],
300
+ urlParameters: [
301
+ Parameters.$host,
302
+ Parameters.subscriptionId,
303
+ Parameters.resourceGroupName,
304
+ Parameters.serverName
305
+ ],
306
+ headerParameters: [Parameters.accept],
307
+ serializer
308
+ };
309
+ const listByServerNextOperationSpec = {
310
+ path: "{nextLink}",
311
+ httpMethod: "GET",
312
+ responses: {
313
+ 200: {
314
+ bodyMapper: Mappers.FirewallRuleListResult
315
+ },
316
+ default: {
317
+ bodyMapper: Mappers.CloudError
318
+ }
319
+ },
320
+ queryParameters: [Parameters.apiVersion],
321
+ urlParameters: [
322
+ Parameters.$host,
323
+ Parameters.subscriptionId,
324
+ Parameters.resourceGroupName,
325
+ Parameters.serverName,
326
+ Parameters.nextLink
327
+ ],
328
+ headerParameters: [Parameters.accept],
329
+ serializer
330
+ };
331
+ //# sourceMappingURL=firewallRules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firewallRules.js","sourceRoot":"","sources":["../../../src/operations/firewallRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAcrC,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAkC;QAC5C,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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,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,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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;QACrB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { GetPrivateDnsZoneSuffix } from "../operationsInterfaces";
2
+ import { PostgreSQLManagementClient } from "../postgreSQLManagementClient";
3
+ import { GetPrivateDnsZoneSuffixExecuteOptionalParams, GetPrivateDnsZoneSuffixExecuteResponse } from "../models";
4
+ /** Class containing GetPrivateDnsZoneSuffix operations. */
5
+ export declare class GetPrivateDnsZoneSuffixImpl implements GetPrivateDnsZoneSuffix {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class GetPrivateDnsZoneSuffix class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: PostgreSQLManagementClient);
12
+ /**
13
+ * Get private DNS zone suffix in the cloud
14
+ * @param options The options parameters.
15
+ */
16
+ execute(options?: GetPrivateDnsZoneSuffixExecuteOptionalParams): Promise<GetPrivateDnsZoneSuffixExecuteResponse>;
17
+ }
18
+ //# sourceMappingURL=getPrivateDnsZoneSuffix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrivateDnsZoneSuffix.d.ts","sourceRoot":"","sources":["../../../src/operations/getPrivateDnsZoneSuffix.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAIlE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,WAAW,CAAC;AAEnB,2DAA2D;AAC3D,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;OAGG;IACH,OAAO,CACL,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;CAGnD"}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing GetPrivateDnsZoneSuffix operations. */
12
+ export class GetPrivateDnsZoneSuffixImpl {
13
+ /**
14
+ * Initialize a new instance of the class GetPrivateDnsZoneSuffix class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Get private DNS zone suffix in the cloud
22
+ * @param options The options parameters.
23
+ */
24
+ execute(options) {
25
+ return this.client.sendOperationRequest({ options }, executeOperationSpec);
26
+ }
27
+ }
28
+ // Operation Specifications
29
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
30
+ const executeOperationSpec = {
31
+ path: "/providers/Microsoft.DBforPostgreSQL/getPrivateDnsZoneSuffix",
32
+ httpMethod: "POST",
33
+ responses: {
34
+ 200: {
35
+ bodyMapper: { type: { name: "String" } }
36
+ },
37
+ default: {
38
+ bodyMapper: Mappers.CloudError
39
+ }
40
+ },
41
+ queryParameters: [Parameters.apiVersion],
42
+ urlParameters: [Parameters.$host],
43
+ headerParameters: [Parameters.accept],
44
+ serializer
45
+ };
46
+ //# sourceMappingURL=getPrivateDnsZoneSuffix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrivateDnsZoneSuffix.js","sourceRoot":"","sources":["../../../src/operations/getPrivateDnsZoneSuffix.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IAGtC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,OAAO,CACL,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,oBAAoB,CAAC,CAAC;IAC7E,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,8DAA8D;IACpE,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC"}
@@ -3,8 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
  export * from "./servers";
10
9
  export * from "./firewallRules";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { LocationBasedCapabilities } from "../operationsInterfaces";
3
+ import { PostgreSQLManagementClient } from "../postgreSQLManagementClient";
4
+ import { CapabilityProperties, LocationBasedCapabilitiesExecuteOptionalParams } from "../models";
5
+ /** Class containing LocationBasedCapabilities operations. */
6
+ export declare class LocationBasedCapabilitiesImpl implements LocationBasedCapabilities {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class LocationBasedCapabilities class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: PostgreSQLManagementClient);
13
+ /**
14
+ * Get capabilities at specified location in a given subscription.
15
+ * @param locationName The name of the location.
16
+ * @param options The options parameters.
17
+ */
18
+ listExecute(locationName: string, options?: LocationBasedCapabilitiesExecuteOptionalParams): PagedAsyncIterableIterator<CapabilityProperties>;
19
+ private executePagingPage;
20
+ private executePagingAll;
21
+ /**
22
+ * Get capabilities at specified location in a given subscription.
23
+ * @param locationName The name of the location.
24
+ * @param options The options parameters.
25
+ */
26
+ private _execute;
27
+ /**
28
+ * ExecuteNext
29
+ * @param locationName The name of the location.
30
+ * @param nextLink The nextLink from the previous successful call to the Execute method.
31
+ * @param options The options parameters.
32
+ */
33
+ private _executeNext;
34
+ }
35
+ //# sourceMappingURL=locationBasedCapabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locationBasedCapabilities.d.ts","sourceRoot":"","sources":["../../../src/operations/locationBasedCapabilities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAIpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,oBAAoB,EAEpB,8CAA8C,EAG/C,MAAM,WAAW,CAAC;AAGnB,6DAA6D;AAC7D,qBAAa,6BACX,YAAW,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;;OAIG;IACI,WAAW,CAChB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,oBAAoB,CAAC;YAepC,iBAAiB;YAkBjB,gBAAgB;IAS/B;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAUhB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;CAUrB"}
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing LocationBasedCapabilities operations. */
14
+ export class LocationBasedCapabilitiesImpl {
15
+ /**
16
+ * Initialize a new instance of the class LocationBasedCapabilities class.
17
+ * @param client Reference to the service client
18
+ */
19
+ constructor(client) {
20
+ this.client = client;
21
+ }
22
+ /**
23
+ * Get capabilities at specified location in a given subscription.
24
+ * @param locationName The name of the location.
25
+ * @param options The options parameters.
26
+ */
27
+ listExecute(locationName, options) {
28
+ const iter = this.executePagingAll(locationName, options);
29
+ return {
30
+ next() {
31
+ return iter.next();
32
+ },
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ },
36
+ byPage: () => {
37
+ return this.executePagingPage(locationName, options);
38
+ }
39
+ };
40
+ }
41
+ executePagingPage(locationName, options) {
42
+ return __asyncGenerator(this, arguments, function* executePagingPage_1() {
43
+ let result = yield __await(this._execute(locationName, options));
44
+ yield yield __await(result.value || []);
45
+ let continuationToken = result.nextLink;
46
+ while (continuationToken) {
47
+ result = yield __await(this._executeNext(locationName, continuationToken, options));
48
+ continuationToken = result.nextLink;
49
+ yield yield __await(result.value || []);
50
+ }
51
+ });
52
+ }
53
+ executePagingAll(locationName, options) {
54
+ return __asyncGenerator(this, arguments, function* executePagingAll_1() {
55
+ var e_1, _a;
56
+ try {
57
+ for (var _b = __asyncValues(this.executePagingPage(locationName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
58
+ const page = _c.value;
59
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
60
+ }
61
+ }
62
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
63
+ finally {
64
+ try {
65
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
66
+ }
67
+ finally { if (e_1) throw e_1.error; }
68
+ }
69
+ });
70
+ }
71
+ /**
72
+ * Get capabilities at specified location in a given subscription.
73
+ * @param locationName The name of the location.
74
+ * @param options The options parameters.
75
+ */
76
+ _execute(locationName, options) {
77
+ return this.client.sendOperationRequest({ locationName, options }, executeOperationSpec);
78
+ }
79
+ /**
80
+ * ExecuteNext
81
+ * @param locationName The name of the location.
82
+ * @param nextLink The nextLink from the previous successful call to the Execute method.
83
+ * @param options The options parameters.
84
+ */
85
+ _executeNext(locationName, nextLink, options) {
86
+ return this.client.sendOperationRequest({ locationName, nextLink, options }, executeNextOperationSpec);
87
+ }
88
+ }
89
+ // Operation Specifications
90
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
91
+ const executeOperationSpec = {
92
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities",
93
+ httpMethod: "GET",
94
+ responses: {
95
+ 200: {
96
+ bodyMapper: Mappers.CapabilitiesListResult
97
+ },
98
+ default: {
99
+ bodyMapper: Mappers.CloudError
100
+ }
101
+ },
102
+ queryParameters: [Parameters.apiVersion],
103
+ urlParameters: [
104
+ Parameters.$host,
105
+ Parameters.subscriptionId,
106
+ Parameters.locationName
107
+ ],
108
+ headerParameters: [Parameters.accept],
109
+ serializer
110
+ };
111
+ const executeNextOperationSpec = {
112
+ path: "{nextLink}",
113
+ httpMethod: "GET",
114
+ responses: {
115
+ 200: {
116
+ bodyMapper: Mappers.CapabilitiesListResult
117
+ },
118
+ default: {
119
+ bodyMapper: Mappers.CloudError
120
+ }
121
+ },
122
+ queryParameters: [Parameters.apiVersion],
123
+ urlParameters: [
124
+ Parameters.$host,
125
+ Parameters.subscriptionId,
126
+ Parameters.nextLink,
127
+ Parameters.locationName
128
+ ],
129
+ headerParameters: [Parameters.accept],
130
+ serializer
131
+ };
132
+ //# sourceMappingURL=locationBasedCapabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locationBasedCapabilities.js","sourceRoot":"","sources":["../../../src/operations/locationBasedCapabilities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAIxC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,WAAW,CAChB,YAAoB,EACpB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1D,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,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YACvD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,iBAAiB,CAC9B,YAAoB,EACpB,OAAwD;;YAExD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA,CAAC;YACxD,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,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,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { Operations } from "../operationsInterfaces";
2
+ import { PostgreSQLManagementClient } from "../postgreSQLManagementClient";
3
+ import { OperationsListOptionalParams, OperationsListResponse } from "../models";
4
+ /** Class containing Operations operations. */
5
+ export declare class OperationsImpl implements Operations {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class Operations class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: PostgreSQLManagementClient);
12
+ /**
13
+ * Lists all of the available REST API operations.
14
+ * @param options The options parameters.
15
+ */
16
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
17
+ }
18
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD;;;OAGG;gBACS,MAAM,EAAE,0BAA0B;IAI9C;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;CAGnC"}