@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,1581 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+ import { PollerLike } from '@azure/core-lro';
5
+ import { PollOperationState } from '@azure/core-lro';
6
+
7
+ /** Backup properties of a server */
8
+ export declare interface Backup {
9
+ /** Backup retention days for the server. */
10
+ backupRetentionDays?: number;
11
+ /** A value indicating whether Geo-Redundant backup is enabled on the server. */
12
+ geoRedundantBackup?: GeoRedundantBackupEnum;
13
+ /**
14
+ * The earliest restore point time (ISO8601 format) for server.
15
+ * NOTE: This property will not be serialized. It can only be populated by the server.
16
+ */
17
+ readonly earliestRestoreDate?: Date;
18
+ }
19
+
20
+ /** location capability */
21
+ export declare interface CapabilitiesListResult {
22
+ /**
23
+ * A list of supported capabilities.
24
+ * NOTE: This property will not be serialized. It can only be populated by the server.
25
+ */
26
+ readonly value?: CapabilityProperties[];
27
+ /**
28
+ * Link to retrieve next page of results.
29
+ * NOTE: This property will not be serialized. It can only be populated by the server.
30
+ */
31
+ readonly nextLink?: string;
32
+ }
33
+
34
+ /** Location capabilities. */
35
+ export declare interface CapabilityProperties {
36
+ /**
37
+ * zone name
38
+ * NOTE: This property will not be serialized. It can only be populated by the server.
39
+ */
40
+ readonly zone?: string;
41
+ /**
42
+ * A value indicating whether a new server in this region can have geo-backups to paired region.
43
+ * NOTE: This property will not be serialized. It can only be populated by the server.
44
+ */
45
+ readonly geoBackupSupported?: boolean;
46
+ /**
47
+ * A value indicating whether a new server in this region can support multi zone HA.
48
+ * NOTE: This property will not be serialized. It can only be populated by the server.
49
+ */
50
+ readonly zoneRedundantHaSupported?: boolean;
51
+ /**
52
+ * A value indicating whether a new server in this region can have geo-backups to paired region.
53
+ * NOTE: This property will not be serialized. It can only be populated by the server.
54
+ */
55
+ readonly zoneRedundantHaAndGeoBackupSupported?: boolean;
56
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
57
+ readonly supportedFlexibleServerEditions?: FlexibleServerEditionCapability[];
58
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
59
+ readonly supportedHyperscaleNodeEditions?: HyperscaleNodeEditionCapability[];
60
+ /**
61
+ * The status
62
+ * NOTE: This property will not be serialized. It can only be populated by the server.
63
+ */
64
+ readonly status?: string;
65
+ }
66
+
67
+ /** Interface representing a CheckNameAvailability. */
68
+ export declare interface CheckNameAvailability {
69
+ /**
70
+ * Check the availability of name for resource
71
+ * @param nameAvailabilityRequest The required parameters for checking if resource name is available.
72
+ * @param options The options parameters.
73
+ */
74
+ execute(nameAvailabilityRequest: NameAvailabilityRequest, options?: CheckNameAvailabilityExecuteOptionalParams): Promise<CheckNameAvailabilityExecuteResponse>;
75
+ }
76
+
77
+ /** Optional parameters. */
78
+ export declare interface CheckNameAvailabilityExecuteOptionalParams extends coreClient.OperationOptions {
79
+ }
80
+
81
+ /** Contains response data for the execute operation. */
82
+ export declare type CheckNameAvailabilityExecuteResponse = NameAvailability;
83
+
84
+ /** An error response from the Batch service. */
85
+ export declare interface CloudError {
86
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */
87
+ error?: ErrorResponse;
88
+ }
89
+
90
+ /** Represents a Configuration. */
91
+ export declare type Configuration = ProxyResource & {
92
+ /**
93
+ * The system metadata relating to this resource.
94
+ * NOTE: This property will not be serialized. It can only be populated by the server.
95
+ */
96
+ readonly systemData?: SystemData;
97
+ /** Value of the configuration. */
98
+ value?: string;
99
+ /**
100
+ * Description of the configuration.
101
+ * NOTE: This property will not be serialized. It can only be populated by the server.
102
+ */
103
+ readonly description?: string;
104
+ /**
105
+ * Default value of the configuration.
106
+ * NOTE: This property will not be serialized. It can only be populated by the server.
107
+ */
108
+ readonly defaultValue?: string;
109
+ /**
110
+ * Data type of the configuration.
111
+ * NOTE: This property will not be serialized. It can only be populated by the server.
112
+ */
113
+ readonly dataType?: ConfigurationDataType;
114
+ /**
115
+ * Allowed values of the configuration.
116
+ * NOTE: This property will not be serialized. It can only be populated by the server.
117
+ */
118
+ readonly allowedValues?: string;
119
+ /** Source of the configuration. */
120
+ source?: string;
121
+ /**
122
+ * Configuration dynamic or static.
123
+ * NOTE: This property will not be serialized. It can only be populated by the server.
124
+ */
125
+ readonly isDynamicConfig?: boolean;
126
+ /**
127
+ * Configuration read-only or not.
128
+ * NOTE: This property will not be serialized. It can only be populated by the server.
129
+ */
130
+ readonly isReadOnly?: boolean;
131
+ /**
132
+ * Configuration is pending restart or not.
133
+ * NOTE: This property will not be serialized. It can only be populated by the server.
134
+ */
135
+ readonly isConfigPendingRestart?: boolean;
136
+ /**
137
+ * Configuration unit.
138
+ * NOTE: This property will not be serialized. It can only be populated by the server.
139
+ */
140
+ readonly unit?: string;
141
+ /**
142
+ * Configuration documentation link.
143
+ * NOTE: This property will not be serialized. It can only be populated by the server.
144
+ */
145
+ readonly documentationLink?: string;
146
+ };
147
+
148
+ /**
149
+ * Defines values for ConfigurationDataType. \
150
+ * {@link KnownConfigurationDataType} can be used interchangeably with ConfigurationDataType,
151
+ * this enum contains the known values that the service supports.
152
+ * ### Known values supported by the service
153
+ * **Boolean** \
154
+ * **Numeric** \
155
+ * **Integer** \
156
+ * **Enumeration**
157
+ */
158
+ export declare type ConfigurationDataType = string;
159
+
160
+ /** A list of server configurations. */
161
+ export declare interface ConfigurationListResult {
162
+ /** The list of server configurations. */
163
+ value?: Configuration[];
164
+ /** The link used to get the next page of operations. */
165
+ nextLink?: string;
166
+ }
167
+
168
+ /** Interface representing a Configurations. */
169
+ export declare interface Configurations {
170
+ /**
171
+ * List all the configurations in a given server.
172
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
173
+ * @param serverName The name of the server.
174
+ * @param options The options parameters.
175
+ */
176
+ listByServer(resourceGroupName: string, serverName: string, options?: ConfigurationsListByServerOptionalParams): PagedAsyncIterableIterator<Configuration>;
177
+ /**
178
+ * Gets information about a configuration of server.
179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
180
+ * @param serverName The name of the server.
181
+ * @param configurationName The name of the server configuration.
182
+ * @param options The options parameters.
183
+ */
184
+ get(resourceGroupName: string, serverName: string, configurationName: string, options?: ConfigurationsGetOptionalParams): Promise<ConfigurationsGetResponse>;
185
+ /**
186
+ * Updates a configuration of a server.
187
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
188
+ * @param serverName The name of the server.
189
+ * @param configurationName The name of the server configuration.
190
+ * @param parameters The required parameters for updating a server configuration.
191
+ * @param options The options parameters.
192
+ */
193
+ beginUpdate(resourceGroupName: string, serverName: string, configurationName: string, parameters: Configuration, options?: ConfigurationsUpdateOptionalParams): Promise<PollerLike<PollOperationState<ConfigurationsUpdateResponse>, ConfigurationsUpdateResponse>>;
194
+ /**
195
+ * Updates a configuration of a server.
196
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
197
+ * @param serverName The name of the server.
198
+ * @param configurationName The name of the server configuration.
199
+ * @param parameters The required parameters for updating a server configuration.
200
+ * @param options The options parameters.
201
+ */
202
+ beginUpdateAndWait(resourceGroupName: string, serverName: string, configurationName: string, parameters: Configuration, options?: ConfigurationsUpdateOptionalParams): Promise<ConfigurationsUpdateResponse>;
203
+ /**
204
+ * Updates a configuration of a server.
205
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
206
+ * @param serverName The name of the server.
207
+ * @param configurationName The name of the server configuration.
208
+ * @param parameters The required parameters for updating a server configuration.
209
+ * @param options The options parameters.
210
+ */
211
+ beginPut(resourceGroupName: string, serverName: string, configurationName: string, parameters: Configuration, options?: ConfigurationsPutOptionalParams): Promise<PollerLike<PollOperationState<ConfigurationsPutResponse>, ConfigurationsPutResponse>>;
212
+ /**
213
+ * Updates a configuration of a server.
214
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
215
+ * @param serverName The name of the server.
216
+ * @param configurationName The name of the server configuration.
217
+ * @param parameters The required parameters for updating a server configuration.
218
+ * @param options The options parameters.
219
+ */
220
+ beginPutAndWait(resourceGroupName: string, serverName: string, configurationName: string, parameters: Configuration, options?: ConfigurationsPutOptionalParams): Promise<ConfigurationsPutResponse>;
221
+ }
222
+
223
+ /** Optional parameters. */
224
+ export declare interface ConfigurationsGetOptionalParams extends coreClient.OperationOptions {
225
+ }
226
+
227
+ /** Contains response data for the get operation. */
228
+ export declare type ConfigurationsGetResponse = Configuration;
229
+
230
+ /** Optional parameters. */
231
+ export declare interface ConfigurationsListByServerNextOptionalParams extends coreClient.OperationOptions {
232
+ }
233
+
234
+ /** Contains response data for the listByServerNext operation. */
235
+ export declare type ConfigurationsListByServerNextResponse = ConfigurationListResult;
236
+
237
+ /** Optional parameters. */
238
+ export declare interface ConfigurationsListByServerOptionalParams extends coreClient.OperationOptions {
239
+ }
240
+
241
+ /** Contains response data for the listByServer operation. */
242
+ export declare type ConfigurationsListByServerResponse = ConfigurationListResult;
243
+
244
+ /** Optional parameters. */
245
+ export declare interface ConfigurationsPutOptionalParams extends coreClient.OperationOptions {
246
+ /** Delay to wait until next poll, in milliseconds. */
247
+ updateIntervalInMs?: number;
248
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
249
+ resumeFrom?: string;
250
+ }
251
+
252
+ /** Contains response data for the put operation. */
253
+ export declare type ConfigurationsPutResponse = Configuration;
254
+
255
+ /** Optional parameters. */
256
+ export declare interface ConfigurationsUpdateOptionalParams extends coreClient.OperationOptions {
257
+ /** Delay to wait until next poll, in milliseconds. */
258
+ updateIntervalInMs?: number;
259
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
260
+ resumeFrom?: string;
261
+ }
262
+
263
+ /** Contains response data for the update operation. */
264
+ export declare type ConfigurationsUpdateResponse = Configuration;
265
+
266
+ /**
267
+ * Defines values for CreatedByType. \
268
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
269
+ * this enum contains the known values that the service supports.
270
+ * ### Known values supported by the service
271
+ * **User** \
272
+ * **Application** \
273
+ * **ManagedIdentity** \
274
+ * **Key**
275
+ */
276
+ export declare type CreatedByType = string;
277
+
278
+ /**
279
+ * Defines values for CreateMode. \
280
+ * {@link KnownCreateMode} can be used interchangeably with CreateMode,
281
+ * this enum contains the known values that the service supports.
282
+ * ### Known values supported by the service
283
+ * **Default** \
284
+ * **Create** \
285
+ * **Update** \
286
+ * **PointInTimeRestore**
287
+ */
288
+ export declare type CreateMode = string;
289
+
290
+ /**
291
+ * Defines values for CreateModeForUpdate. \
292
+ * {@link KnownCreateModeForUpdate} can be used interchangeably with CreateModeForUpdate,
293
+ * this enum contains the known values that the service supports.
294
+ * ### Known values supported by the service
295
+ * **Default** \
296
+ * **Update**
297
+ */
298
+ export declare type CreateModeForUpdate = string;
299
+
300
+ /** Represents a Database. */
301
+ export declare type Database = ProxyResource & {
302
+ /**
303
+ * The system metadata relating to this resource.
304
+ * NOTE: This property will not be serialized. It can only be populated by the server.
305
+ */
306
+ readonly systemData?: SystemData;
307
+ /** The charset of the database. */
308
+ charset?: string;
309
+ /** The collation of the database. */
310
+ collation?: string;
311
+ };
312
+
313
+ /** A List of databases. */
314
+ export declare interface DatabaseListResult {
315
+ /** The list of databases housed in a server */
316
+ value?: Database[];
317
+ /** The link used to get the next page of databases. */
318
+ nextLink?: string;
319
+ }
320
+
321
+ /** Interface representing a Databases. */
322
+ export declare interface Databases {
323
+ /**
324
+ * List all the databases in a given server.
325
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
326
+ * @param serverName The name of the server.
327
+ * @param options The options parameters.
328
+ */
329
+ listByServer(resourceGroupName: string, serverName: string, options?: DatabasesListByServerOptionalParams): PagedAsyncIterableIterator<Database>;
330
+ /**
331
+ * Creates a new database or updates an existing database.
332
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
333
+ * @param serverName The name of the server.
334
+ * @param databaseName The name of the database.
335
+ * @param parameters The required parameters for creating or updating a database.
336
+ * @param options The options parameters.
337
+ */
338
+ beginCreate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): Promise<PollerLike<PollOperationState<DatabasesCreateResponse>, DatabasesCreateResponse>>;
339
+ /**
340
+ * Creates a new database or updates an existing database.
341
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
342
+ * @param serverName The name of the server.
343
+ * @param databaseName The name of the database.
344
+ * @param parameters The required parameters for creating or updating a database.
345
+ * @param options The options parameters.
346
+ */
347
+ beginCreateAndWait(resourceGroupName: string, serverName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): Promise<DatabasesCreateResponse>;
348
+ /**
349
+ * Deletes a database.
350
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
351
+ * @param serverName The name of the server.
352
+ * @param databaseName The name of the database.
353
+ * @param options The options parameters.
354
+ */
355
+ beginDelete(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
356
+ /**
357
+ * Deletes a database.
358
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
359
+ * @param serverName The name of the server.
360
+ * @param databaseName The name of the database.
361
+ * @param options The options parameters.
362
+ */
363
+ beginDeleteAndWait(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<void>;
364
+ /**
365
+ * Gets information about a database.
366
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
367
+ * @param serverName The name of the server.
368
+ * @param databaseName The name of the database.
369
+ * @param options The options parameters.
370
+ */
371
+ get(resourceGroupName: string, serverName: string, databaseName: string, options?: DatabasesGetOptionalParams): Promise<DatabasesGetResponse>;
372
+ }
373
+
374
+ /** Optional parameters. */
375
+ export declare interface DatabasesCreateOptionalParams extends coreClient.OperationOptions {
376
+ /** Delay to wait until next poll, in milliseconds. */
377
+ updateIntervalInMs?: number;
378
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
379
+ resumeFrom?: string;
380
+ }
381
+
382
+ /** Contains response data for the create operation. */
383
+ export declare type DatabasesCreateResponse = Database;
384
+
385
+ /** Optional parameters. */
386
+ export declare interface DatabasesDeleteOptionalParams extends coreClient.OperationOptions {
387
+ /** Delay to wait until next poll, in milliseconds. */
388
+ updateIntervalInMs?: number;
389
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
390
+ resumeFrom?: string;
391
+ }
392
+
393
+ /** Optional parameters. */
394
+ export declare interface DatabasesGetOptionalParams extends coreClient.OperationOptions {
395
+ }
396
+
397
+ /** Contains response data for the get operation. */
398
+ export declare type DatabasesGetResponse = Database;
399
+
400
+ /** Optional parameters. */
401
+ export declare interface DatabasesListByServerNextOptionalParams extends coreClient.OperationOptions {
402
+ }
403
+
404
+ /** Contains response data for the listByServerNext operation. */
405
+ export declare type DatabasesListByServerNextResponse = DatabaseListResult;
406
+
407
+ /** Optional parameters. */
408
+ export declare interface DatabasesListByServerOptionalParams extends coreClient.OperationOptions {
409
+ }
410
+
411
+ /** Contains response data for the listByServer operation. */
412
+ export declare type DatabasesListByServerResponse = DatabaseListResult;
413
+
414
+ /** Delegated subnet usage data. */
415
+ export declare interface DelegatedSubnetUsage {
416
+ /**
417
+ * name of the subnet
418
+ * NOTE: This property will not be serialized. It can only be populated by the server.
419
+ */
420
+ readonly subnetName?: string;
421
+ /**
422
+ * Number of used delegated subnets
423
+ * NOTE: This property will not be serialized. It can only be populated by the server.
424
+ */
425
+ readonly usage?: number;
426
+ }
427
+
428
+ /** The resource management error additional info. */
429
+ export declare interface ErrorAdditionalInfo {
430
+ /**
431
+ * The additional info type.
432
+ * NOTE: This property will not be serialized. It can only be populated by the server.
433
+ */
434
+ readonly type?: string;
435
+ /**
436
+ * The additional info.
437
+ * NOTE: This property will not be serialized. It can only be populated by the server.
438
+ */
439
+ readonly info?: Record<string, unknown>;
440
+ }
441
+
442
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */
443
+ export declare interface ErrorResponse {
444
+ /**
445
+ * The error code.
446
+ * NOTE: This property will not be serialized. It can only be populated by the server.
447
+ */
448
+ readonly code?: string;
449
+ /**
450
+ * The error message.
451
+ * NOTE: This property will not be serialized. It can only be populated by the server.
452
+ */
453
+ readonly message?: string;
454
+ /**
455
+ * The error target.
456
+ * NOTE: This property will not be serialized. It can only be populated by the server.
457
+ */
458
+ readonly target?: string;
459
+ /**
460
+ * The error details.
461
+ * NOTE: This property will not be serialized. It can only be populated by the server.
462
+ */
463
+ readonly details?: ErrorResponse[];
464
+ /**
465
+ * The error additional info.
466
+ * NOTE: This property will not be serialized. It can only be populated by the server.
467
+ */
468
+ readonly additionalInfo?: ErrorAdditionalInfo[];
469
+ }
470
+
471
+ /**
472
+ * Defines values for FailoverMode. \
473
+ * {@link KnownFailoverMode} can be used interchangeably with FailoverMode,
474
+ * this enum contains the known values that the service supports.
475
+ * ### Known values supported by the service
476
+ * **PlannedFailover** \
477
+ * **ForcedFailover** \
478
+ * **PlannedSwitchover** \
479
+ * **ForcedSwitchover**
480
+ */
481
+ export declare type FailoverMode = string;
482
+
483
+ /** Represents a server firewall rule. */
484
+ export declare type FirewallRule = ProxyResource & {
485
+ /**
486
+ * The system metadata relating to this resource.
487
+ * NOTE: This property will not be serialized. It can only be populated by the server.
488
+ */
489
+ readonly systemData?: SystemData;
490
+ /** The start IP address of the server firewall rule. Must be IPv4 format. */
491
+ startIpAddress: string;
492
+ /** The end IP address of the server firewall rule. Must be IPv4 format. */
493
+ endIpAddress: string;
494
+ };
495
+
496
+ /** A list of firewall rules. */
497
+ export declare interface FirewallRuleListResult {
498
+ /** The list of firewall rules in a server. */
499
+ value?: FirewallRule[];
500
+ /** The link used to get the next page of operations. */
501
+ nextLink?: string;
502
+ }
503
+
504
+ /** Interface representing a FirewallRules. */
505
+ export declare interface FirewallRules {
506
+ /**
507
+ * List all the firewall rules in a given PostgreSQL server.
508
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
509
+ * @param serverName The name of the server.
510
+ * @param options The options parameters.
511
+ */
512
+ listByServer(resourceGroupName: string, serverName: string, options?: FirewallRulesListByServerOptionalParams): PagedAsyncIterableIterator<FirewallRule>;
513
+ /**
514
+ * Creates a new firewall rule or updates an existing firewall rule.
515
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
516
+ * @param serverName The name of the server.
517
+ * @param firewallRuleName The name of the server firewall rule.
518
+ * @param parameters The required parameters for creating or updating a firewall rule.
519
+ * @param options The options parameters.
520
+ */
521
+ beginCreateOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: FirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<FirewallRulesCreateOrUpdateResponse>, FirewallRulesCreateOrUpdateResponse>>;
522
+ /**
523
+ * Creates a new firewall rule or updates an existing firewall rule.
524
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
525
+ * @param serverName The name of the server.
526
+ * @param firewallRuleName The name of the server firewall rule.
527
+ * @param parameters The required parameters for creating or updating a firewall rule.
528
+ * @param options The options parameters.
529
+ */
530
+ beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: FirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise<FirewallRulesCreateOrUpdateResponse>;
531
+ /**
532
+ * Deletes a PostgreSQL server firewall rule.
533
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
534
+ * @param serverName The name of the server.
535
+ * @param firewallRuleName The name of the server firewall rule.
536
+ * @param options The options parameters.
537
+ */
538
+ beginDelete(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
539
+ /**
540
+ * Deletes a PostgreSQL server firewall rule.
541
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
542
+ * @param serverName The name of the server.
543
+ * @param firewallRuleName The name of the server firewall rule.
544
+ * @param options The options parameters.
545
+ */
546
+ beginDeleteAndWait(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<void>;
547
+ /**
548
+ * List all the firewall rules in a given server.
549
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
550
+ * @param serverName The name of the server.
551
+ * @param firewallRuleName The name of the server firewall rule.
552
+ * @param options The options parameters.
553
+ */
554
+ get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: FirewallRulesGetOptionalParams): Promise<FirewallRulesGetResponse>;
555
+ }
556
+
557
+ /** Optional parameters. */
558
+ export declare interface FirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
559
+ /** Delay to wait until next poll, in milliseconds. */
560
+ updateIntervalInMs?: number;
561
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
562
+ resumeFrom?: string;
563
+ }
564
+
565
+ /** Contains response data for the createOrUpdate operation. */
566
+ export declare type FirewallRulesCreateOrUpdateResponse = FirewallRule;
567
+
568
+ /** Optional parameters. */
569
+ export declare interface FirewallRulesDeleteOptionalParams extends coreClient.OperationOptions {
570
+ /** Delay to wait until next poll, in milliseconds. */
571
+ updateIntervalInMs?: number;
572
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
573
+ resumeFrom?: string;
574
+ }
575
+
576
+ /** Optional parameters. */
577
+ export declare interface FirewallRulesGetOptionalParams extends coreClient.OperationOptions {
578
+ }
579
+
580
+ /** Contains response data for the get operation. */
581
+ export declare type FirewallRulesGetResponse = FirewallRule;
582
+
583
+ /** Optional parameters. */
584
+ export declare interface FirewallRulesListByServerNextOptionalParams extends coreClient.OperationOptions {
585
+ }
586
+
587
+ /** Contains response data for the listByServerNext operation. */
588
+ export declare type FirewallRulesListByServerNextResponse = FirewallRuleListResult;
589
+
590
+ /** Optional parameters. */
591
+ export declare interface FirewallRulesListByServerOptionalParams extends coreClient.OperationOptions {
592
+ }
593
+
594
+ /** Contains response data for the listByServer operation. */
595
+ export declare type FirewallRulesListByServerResponse = FirewallRuleListResult;
596
+
597
+ /** Flexible server edition capabilities. */
598
+ export declare interface FlexibleServerEditionCapability {
599
+ /**
600
+ * Server edition name
601
+ * NOTE: This property will not be serialized. It can only be populated by the server.
602
+ */
603
+ readonly name?: string;
604
+ /**
605
+ * The list of editions supported by this server edition.
606
+ * NOTE: This property will not be serialized. It can only be populated by the server.
607
+ */
608
+ readonly supportedStorageEditions?: StorageEditionCapability[];
609
+ /**
610
+ * The list of server versions supported by this server edition.
611
+ * NOTE: This property will not be serialized. It can only be populated by the server.
612
+ */
613
+ readonly supportedServerVersions?: ServerVersionCapability[];
614
+ /**
615
+ * The status
616
+ * NOTE: This property will not be serialized. It can only be populated by the server.
617
+ */
618
+ readonly status?: string;
619
+ }
620
+
621
+ /**
622
+ * Defines values for GeoRedundantBackupEnum. \
623
+ * {@link KnownGeoRedundantBackupEnum} can be used interchangeably with GeoRedundantBackupEnum,
624
+ * this enum contains the known values that the service supports.
625
+ * ### Known values supported by the service
626
+ * **Enabled** \
627
+ * **Disabled**
628
+ */
629
+ export declare type GeoRedundantBackupEnum = string;
630
+
631
+ /** Interface representing a GetPrivateDnsZoneSuffix. */
632
+ export declare interface GetPrivateDnsZoneSuffix {
633
+ /**
634
+ * Get private DNS zone suffix in the cloud
635
+ * @param options The options parameters.
636
+ */
637
+ execute(options?: GetPrivateDnsZoneSuffixExecuteOptionalParams): Promise<GetPrivateDnsZoneSuffixExecuteResponse>;
638
+ }
639
+
640
+ /** Optional parameters. */
641
+ export declare interface GetPrivateDnsZoneSuffixExecuteOptionalParams extends coreClient.OperationOptions {
642
+ }
643
+
644
+ /** Contains response data for the execute operation. */
645
+ export declare type GetPrivateDnsZoneSuffixExecuteResponse = {
646
+ /** The parsed response body. */
647
+ body: string;
648
+ };
649
+
650
+ /** High availability properties of a server */
651
+ export declare interface HighAvailability {
652
+ /** The HA mode for the server. */
653
+ mode?: HighAvailabilityMode;
654
+ /**
655
+ * A state of a HA server that is visible to user.
656
+ * NOTE: This property will not be serialized. It can only be populated by the server.
657
+ */
658
+ readonly state?: ServerHAState;
659
+ /** availability zone information of the standby. */
660
+ standbyAvailabilityZone?: string;
661
+ }
662
+
663
+ /**
664
+ * Defines values for HighAvailabilityMode. \
665
+ * {@link KnownHighAvailabilityMode} can be used interchangeably with HighAvailabilityMode,
666
+ * this enum contains the known values that the service supports.
667
+ * ### Known values supported by the service
668
+ * **Disabled** \
669
+ * **ZoneRedundant**
670
+ */
671
+ export declare type HighAvailabilityMode = string;
672
+
673
+ /** Hyperscale node edition capabilities. */
674
+ export declare interface HyperscaleNodeEditionCapability {
675
+ /**
676
+ * Server edition name
677
+ * NOTE: This property will not be serialized. It can only be populated by the server.
678
+ */
679
+ readonly name?: string;
680
+ /**
681
+ * The list of editions supported by this server edition.
682
+ * NOTE: This property will not be serialized. It can only be populated by the server.
683
+ */
684
+ readonly supportedStorageEditions?: StorageEditionCapability[];
685
+ /**
686
+ * The list of server versions supported by this server edition.
687
+ * NOTE: This property will not be serialized. It can only be populated by the server.
688
+ */
689
+ readonly supportedServerVersions?: ServerVersionCapability[];
690
+ /**
691
+ * The list of Node Types supported by this server edition.
692
+ * NOTE: This property will not be serialized. It can only be populated by the server.
693
+ */
694
+ readonly supportedNodeTypes?: NodeTypeCapability[];
695
+ /**
696
+ * The status
697
+ * NOTE: This property will not be serialized. It can only be populated by the server.
698
+ */
699
+ readonly status?: string;
700
+ }
701
+
702
+ /** Known values of {@link ConfigurationDataType} that the service accepts. */
703
+ export declare enum KnownConfigurationDataType {
704
+ Boolean = "Boolean",
705
+ Numeric = "Numeric",
706
+ Integer = "Integer",
707
+ Enumeration = "Enumeration"
708
+ }
709
+
710
+ /** Known values of {@link CreatedByType} that the service accepts. */
711
+ export declare enum KnownCreatedByType {
712
+ User = "User",
713
+ Application = "Application",
714
+ ManagedIdentity = "ManagedIdentity",
715
+ Key = "Key"
716
+ }
717
+
718
+ /** Known values of {@link CreateMode} that the service accepts. */
719
+ export declare enum KnownCreateMode {
720
+ Default = "Default",
721
+ Create = "Create",
722
+ Update = "Update",
723
+ PointInTimeRestore = "PointInTimeRestore"
724
+ }
725
+
726
+ /** Known values of {@link CreateModeForUpdate} that the service accepts. */
727
+ export declare enum KnownCreateModeForUpdate {
728
+ Default = "Default",
729
+ Update = "Update"
730
+ }
731
+
732
+ /** Known values of {@link FailoverMode} that the service accepts. */
733
+ export declare enum KnownFailoverMode {
734
+ PlannedFailover = "PlannedFailover",
735
+ ForcedFailover = "ForcedFailover",
736
+ PlannedSwitchover = "PlannedSwitchover",
737
+ ForcedSwitchover = "ForcedSwitchover"
738
+ }
739
+
740
+ /** Known values of {@link GeoRedundantBackupEnum} that the service accepts. */
741
+ export declare enum KnownGeoRedundantBackupEnum {
742
+ Enabled = "Enabled",
743
+ Disabled = "Disabled"
744
+ }
745
+
746
+ /** Known values of {@link HighAvailabilityMode} that the service accepts. */
747
+ export declare enum KnownHighAvailabilityMode {
748
+ Disabled = "Disabled",
749
+ ZoneRedundant = "ZoneRedundant"
750
+ }
751
+
752
+ /** Known values of {@link OperationOrigin} that the service accepts. */
753
+ export declare enum KnownOperationOrigin {
754
+ NotSpecified = "NotSpecified",
755
+ User = "user",
756
+ System = "system"
757
+ }
758
+
759
+ /** Known values of {@link Reason} that the service accepts. */
760
+ export declare enum KnownReason {
761
+ Invalid = "Invalid",
762
+ AlreadyExists = "AlreadyExists"
763
+ }
764
+
765
+ /** Known values of {@link ServerHAState} that the service accepts. */
766
+ export declare enum KnownServerHAState {
767
+ NotEnabled = "NotEnabled",
768
+ CreatingStandby = "CreatingStandby",
769
+ ReplicatingData = "ReplicatingData",
770
+ FailingOver = "FailingOver",
771
+ Healthy = "Healthy",
772
+ RemovingStandby = "RemovingStandby"
773
+ }
774
+
775
+ /** Known values of {@link ServerPublicNetworkAccessState} that the service accepts. */
776
+ export declare enum KnownServerPublicNetworkAccessState {
777
+ Enabled = "Enabled",
778
+ Disabled = "Disabled"
779
+ }
780
+
781
+ /** Known values of {@link ServerState} that the service accepts. */
782
+ export declare enum KnownServerState {
783
+ Ready = "Ready",
784
+ Dropping = "Dropping",
785
+ Disabled = "Disabled",
786
+ Starting = "Starting",
787
+ Stopping = "Stopping",
788
+ Stopped = "Stopped",
789
+ Updating = "Updating"
790
+ }
791
+
792
+ /** Known values of {@link ServerVersion} that the service accepts. */
793
+ export declare enum KnownServerVersion {
794
+ Thirteen = "13",
795
+ Twelve = "12",
796
+ Eleven = "11"
797
+ }
798
+
799
+ /** Known values of {@link SkuTier} that the service accepts. */
800
+ export declare enum KnownSkuTier {
801
+ Burstable = "Burstable",
802
+ GeneralPurpose = "GeneralPurpose",
803
+ MemoryOptimized = "MemoryOptimized"
804
+ }
805
+
806
+ /** Interface representing a LocationBasedCapabilities. */
807
+ export declare interface LocationBasedCapabilities {
808
+ /**
809
+ * Get capabilities at specified location in a given subscription.
810
+ * @param locationName The name of the location.
811
+ * @param options The options parameters.
812
+ */
813
+ listExecute(locationName: string, options?: LocationBasedCapabilitiesExecuteOptionalParams): PagedAsyncIterableIterator<CapabilityProperties>;
814
+ }
815
+
816
+ /** Optional parameters. */
817
+ export declare interface LocationBasedCapabilitiesExecuteNextOptionalParams extends coreClient.OperationOptions {
818
+ }
819
+
820
+ /** Contains response data for the executeNext operation. */
821
+ export declare type LocationBasedCapabilitiesExecuteNextResponse = CapabilitiesListResult;
822
+
823
+ /** Optional parameters. */
824
+ export declare interface LocationBasedCapabilitiesExecuteOptionalParams extends coreClient.OperationOptions {
825
+ }
826
+
827
+ /** Contains response data for the execute operation. */
828
+ export declare type LocationBasedCapabilitiesExecuteResponse = CapabilitiesListResult;
829
+
830
+ /** Maintenance window properties of a server. */
831
+ export declare interface MaintenanceWindow {
832
+ /** indicates whether custom window is enabled or disabled */
833
+ customWindow?: string;
834
+ /** start hour for maintenance window */
835
+ startHour?: number;
836
+ /** start minute for maintenance window */
837
+ startMinute?: number;
838
+ /** day of week for maintenance window */
839
+ dayOfWeek?: number;
840
+ }
841
+
842
+ /** Represents a resource name availability. */
843
+ export declare interface NameAvailability {
844
+ /**
845
+ * Error Message.
846
+ * NOTE: This property will not be serialized. It can only be populated by the server.
847
+ */
848
+ readonly message?: string;
849
+ /**
850
+ * Indicates whether the resource name is available.
851
+ * NOTE: This property will not be serialized. It can only be populated by the server.
852
+ */
853
+ readonly nameAvailable?: boolean;
854
+ /**
855
+ * name of the PostgreSQL server.
856
+ * NOTE: This property will not be serialized. It can only be populated by the server.
857
+ */
858
+ readonly name?: string;
859
+ /**
860
+ * type of the server
861
+ * NOTE: This property will not be serialized. It can only be populated by the server.
862
+ */
863
+ readonly type?: string;
864
+ /**
865
+ * The name availability reason.
866
+ * NOTE: This property will not be serialized. It can only be populated by the server.
867
+ */
868
+ readonly reason?: Reason;
869
+ }
870
+
871
+ /** Request from client to check resource name availability. */
872
+ export declare interface NameAvailabilityRequest {
873
+ /** Resource name to verify. */
874
+ name: string;
875
+ /** Resource type used for verification. */
876
+ type?: string;
877
+ }
878
+
879
+ /** Network properties of a server */
880
+ export declare interface Network {
881
+ /**
882
+ * public network access is enabled or not
883
+ * NOTE: This property will not be serialized. It can only be populated by the server.
884
+ */
885
+ readonly publicNetworkAccess?: ServerPublicNetworkAccessState;
886
+ /** delegated subnet arm resource id. */
887
+ delegatedSubnetResourceId?: string;
888
+ /** private dns zone arm resource id. */
889
+ privateDnsZoneArmResourceId?: string;
890
+ }
891
+
892
+ /** node type capability */
893
+ export declare interface NodeTypeCapability {
894
+ /**
895
+ * note type name
896
+ * NOTE: This property will not be serialized. It can only be populated by the server.
897
+ */
898
+ readonly name?: string;
899
+ /**
900
+ * note type
901
+ * NOTE: This property will not be serialized. It can only be populated by the server.
902
+ */
903
+ readonly nodeType?: string;
904
+ /**
905
+ * The status
906
+ * NOTE: This property will not be serialized. It can only be populated by the server.
907
+ */
908
+ readonly status?: string;
909
+ }
910
+
911
+ /** REST API operation definition. */
912
+ export declare interface Operation {
913
+ /**
914
+ * The name of the operation being performed on this particular object.
915
+ * NOTE: This property will not be serialized. It can only be populated by the server.
916
+ */
917
+ readonly name?: string;
918
+ /**
919
+ * The localized display information for this particular operation or action.
920
+ * NOTE: This property will not be serialized. It can only be populated by the server.
921
+ */
922
+ readonly display?: OperationDisplay;
923
+ /** Indicates whether the operation is a data action */
924
+ isDataAction?: boolean;
925
+ /**
926
+ * The intended executor of the operation.
927
+ * NOTE: This property will not be serialized. It can only be populated by the server.
928
+ */
929
+ readonly origin?: OperationOrigin;
930
+ /**
931
+ * Additional descriptions for the operation.
932
+ * NOTE: This property will not be serialized. It can only be populated by the server.
933
+ */
934
+ readonly properties?: {
935
+ [propertyName: string]: Record<string, unknown>;
936
+ };
937
+ }
938
+
939
+ /** Display metadata associated with the operation. */
940
+ export declare interface OperationDisplay {
941
+ /**
942
+ * Operation resource provider name.
943
+ * NOTE: This property will not be serialized. It can only be populated by the server.
944
+ */
945
+ readonly provider?: string;
946
+ /**
947
+ * Resource on which the operation is performed.
948
+ * NOTE: This property will not be serialized. It can only be populated by the server.
949
+ */
950
+ readonly resource?: string;
951
+ /**
952
+ * Localized friendly name for the operation.
953
+ * NOTE: This property will not be serialized. It can only be populated by the server.
954
+ */
955
+ readonly operation?: string;
956
+ /**
957
+ * Operation description.
958
+ * NOTE: This property will not be serialized. It can only be populated by the server.
959
+ */
960
+ readonly description?: string;
961
+ }
962
+
963
+ /** A list of resource provider operations. */
964
+ export declare interface OperationListResult {
965
+ /** Collection of available operation details */
966
+ value?: Operation[];
967
+ /**
968
+ * URL client should use to fetch the next page (per server side paging).
969
+ * It's null for now, added for future use.
970
+ */
971
+ nextLink?: string;
972
+ }
973
+
974
+ /**
975
+ * Defines values for OperationOrigin. \
976
+ * {@link KnownOperationOrigin} can be used interchangeably with OperationOrigin,
977
+ * this enum contains the known values that the service supports.
978
+ * ### Known values supported by the service
979
+ * **NotSpecified** \
980
+ * **user** \
981
+ * **system**
982
+ */
983
+ export declare type OperationOrigin = string;
984
+
985
+ /** Interface representing a Operations. */
986
+ export declare interface Operations {
987
+ /**
988
+ * Lists all of the available REST API operations.
989
+ * @param options The options parameters.
990
+ */
991
+ list(options?: OperationsListOptionalParams): Promise<OperationsListResponse>;
992
+ }
993
+
994
+ /** Optional parameters. */
995
+ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
996
+ }
997
+
998
+ /** Contains response data for the list operation. */
999
+ export declare type OperationsListResponse = OperationListResult;
1000
+
1001
+ export declare class PostgreSQLManagementClient extends coreClient.ServiceClient {
1002
+ $host: string;
1003
+ apiVersion: string;
1004
+ subscriptionId: string;
1005
+ /**
1006
+ * Initializes a new instance of the PostgreSQLManagementClient class.
1007
+ * @param credentials Subscription credentials which uniquely identify client subscription.
1008
+ * @param subscriptionId The ID of the target subscription.
1009
+ * @param options The parameter options
1010
+ */
1011
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PostgreSQLManagementClientOptionalParams);
1012
+ servers: Servers;
1013
+ firewallRules: FirewallRules;
1014
+ configurations: Configurations;
1015
+ checkNameAvailability: CheckNameAvailability;
1016
+ locationBasedCapabilities: LocationBasedCapabilities;
1017
+ virtualNetworkSubnetUsage: VirtualNetworkSubnetUsage;
1018
+ operations: Operations;
1019
+ databases: Databases;
1020
+ getPrivateDnsZoneSuffix: GetPrivateDnsZoneSuffix;
1021
+ }
1022
+
1023
+ /** Optional parameters. */
1024
+ export declare interface PostgreSQLManagementClientOptionalParams extends coreClient.ServiceClientOptions {
1025
+ /** server parameter */
1026
+ $host?: string;
1027
+ /** Api Version */
1028
+ apiVersion?: string;
1029
+ /** Overrides client endpoint. */
1030
+ endpoint?: string;
1031
+ }
1032
+
1033
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
1034
+ export declare type ProxyResource = Resource & {};
1035
+
1036
+ /**
1037
+ * Defines values for Reason. \
1038
+ * {@link KnownReason} can be used interchangeably with Reason,
1039
+ * this enum contains the known values that the service supports.
1040
+ * ### Known values supported by the service
1041
+ * **Invalid** \
1042
+ * **AlreadyExists**
1043
+ */
1044
+ export declare type Reason = string;
1045
+
1046
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
1047
+ export declare interface Resource {
1048
+ /**
1049
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
1050
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1051
+ */
1052
+ readonly id?: string;
1053
+ /**
1054
+ * The name of the resource
1055
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1056
+ */
1057
+ readonly name?: string;
1058
+ /**
1059
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
1060
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1061
+ */
1062
+ readonly type?: string;
1063
+ }
1064
+
1065
+ /** Represents server restart parameters. */
1066
+ export declare interface RestartParameter {
1067
+ /** Indicates whether to restart the server with failover. */
1068
+ restartWithFailover?: boolean;
1069
+ /** Failover mode. */
1070
+ failoverMode?: FailoverMode;
1071
+ }
1072
+
1073
+ /** Represents a server. */
1074
+ export declare type Server = TrackedResource & {
1075
+ /** The SKU (pricing tier) of the server. */
1076
+ sku?: Sku;
1077
+ /**
1078
+ * The system metadata relating to this resource.
1079
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1080
+ */
1081
+ readonly systemData?: SystemData;
1082
+ /** The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). */
1083
+ administratorLogin?: string;
1084
+ /**
1085
+ * The administrator login password (required for server creation).
1086
+ * This value contains a credential. Consider obscuring before showing to users
1087
+ */
1088
+ administratorLoginPassword?: string;
1089
+ /** PostgreSQL Server version. */
1090
+ version?: ServerVersion;
1091
+ /**
1092
+ * The minor version of the server.
1093
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1094
+ */
1095
+ readonly minorVersion?: string;
1096
+ /**
1097
+ * A state of a server that is visible to user.
1098
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1099
+ */
1100
+ readonly state?: ServerState;
1101
+ /**
1102
+ * The fully qualified domain name of a server.
1103
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1104
+ */
1105
+ readonly fullyQualifiedDomainName?: string;
1106
+ /** Storage properties of a server. */
1107
+ storage?: Storage_2;
1108
+ /** Backup properties of a server. */
1109
+ backup?: Backup;
1110
+ /** Network properties of a server. */
1111
+ network?: Network;
1112
+ /** High availability properties of a server. */
1113
+ highAvailability?: HighAvailability;
1114
+ /** Maintenance window properties of a server. */
1115
+ maintenanceWindow?: MaintenanceWindow;
1116
+ /** The source server resource ID to restore from. It's required when 'createMode' is 'PointInTimeRestore'. */
1117
+ sourceServerResourceId?: string;
1118
+ /** Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when 'createMode' is 'PointInTimeRestore'. */
1119
+ pointInTimeUTC?: Date;
1120
+ /** availability zone information of the server. */
1121
+ availabilityZone?: string;
1122
+ /** The mode to create a new PostgreSQL server. */
1123
+ createMode?: CreateMode;
1124
+ };
1125
+
1126
+ /** Represents a server to be updated. */
1127
+ export declare interface ServerForUpdate {
1128
+ /** The location the resource resides in. */
1129
+ location?: string;
1130
+ /** The SKU (pricing tier) of the server. */
1131
+ sku?: Sku;
1132
+ /** Application-specific metadata in the form of key-value pairs. */
1133
+ tags?: {
1134
+ [propertyName: string]: string;
1135
+ };
1136
+ /**
1137
+ * The password of the administrator login.
1138
+ * This value contains a credential. Consider obscuring before showing to users
1139
+ */
1140
+ administratorLoginPassword?: string;
1141
+ /** Storage properties of a server. */
1142
+ storage?: Storage_2;
1143
+ /** Backup properties of a server. */
1144
+ backup?: Backup;
1145
+ /** High availability properties of a server. */
1146
+ highAvailability?: HighAvailability;
1147
+ /** Maintenance window properties of a server. */
1148
+ maintenanceWindow?: MaintenanceWindow;
1149
+ /** The mode to update a new PostgreSQL server. */
1150
+ createMode?: CreateModeForUpdate;
1151
+ }
1152
+
1153
+ /**
1154
+ * Defines values for ServerHAState. \
1155
+ * {@link KnownServerHAState} can be used interchangeably with ServerHAState,
1156
+ * this enum contains the known values that the service supports.
1157
+ * ### Known values supported by the service
1158
+ * **NotEnabled** \
1159
+ * **CreatingStandby** \
1160
+ * **ReplicatingData** \
1161
+ * **FailingOver** \
1162
+ * **Healthy** \
1163
+ * **RemovingStandby**
1164
+ */
1165
+ export declare type ServerHAState = string;
1166
+
1167
+ /** A list of servers. */
1168
+ export declare interface ServerListResult {
1169
+ /** The list of flexible servers */
1170
+ value?: Server[];
1171
+ /** The link used to get the next page of operations. */
1172
+ nextLink?: string;
1173
+ }
1174
+
1175
+ /**
1176
+ * Defines values for ServerPublicNetworkAccessState. \
1177
+ * {@link KnownServerPublicNetworkAccessState} can be used interchangeably with ServerPublicNetworkAccessState,
1178
+ * this enum contains the known values that the service supports.
1179
+ * ### Known values supported by the service
1180
+ * **Enabled** \
1181
+ * **Disabled**
1182
+ */
1183
+ export declare type ServerPublicNetworkAccessState = string;
1184
+
1185
+ /** Interface representing a Servers. */
1186
+ export declare interface Servers {
1187
+ /**
1188
+ * List all the servers in a given resource group.
1189
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1190
+ * @param options The options parameters.
1191
+ */
1192
+ listByResourceGroup(resourceGroupName: string, options?: ServersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Server>;
1193
+ /**
1194
+ * List all the servers in a given subscription.
1195
+ * @param options The options parameters.
1196
+ */
1197
+ list(options?: ServersListOptionalParams): PagedAsyncIterableIterator<Server>;
1198
+ /**
1199
+ * Creates a new server.
1200
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1201
+ * @param serverName The name of the server.
1202
+ * @param parameters The required parameters for creating or updating a server.
1203
+ * @param options The options parameters.
1204
+ */
1205
+ beginCreate(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOptionalParams): Promise<PollerLike<PollOperationState<ServersCreateResponse>, ServersCreateResponse>>;
1206
+ /**
1207
+ * Creates a new server.
1208
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1209
+ * @param serverName The name of the server.
1210
+ * @param parameters The required parameters for creating or updating a server.
1211
+ * @param options The options parameters.
1212
+ */
1213
+ beginCreateAndWait(resourceGroupName: string, serverName: string, parameters: Server, options?: ServersCreateOptionalParams): Promise<ServersCreateResponse>;
1214
+ /**
1215
+ * Updates an existing server. The request body can contain one to many of the properties present in
1216
+ * the normal server definition.
1217
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1218
+ * @param serverName The name of the server.
1219
+ * @param parameters The required parameters for updating a server.
1220
+ * @param options The options parameters.
1221
+ */
1222
+ beginUpdate(resourceGroupName: string, serverName: string, parameters: ServerForUpdate, options?: ServersUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServersUpdateResponse>, ServersUpdateResponse>>;
1223
+ /**
1224
+ * Updates an existing server. The request body can contain one to many of the properties present in
1225
+ * the normal server definition.
1226
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1227
+ * @param serverName The name of the server.
1228
+ * @param parameters The required parameters for updating a server.
1229
+ * @param options The options parameters.
1230
+ */
1231
+ beginUpdateAndWait(resourceGroupName: string, serverName: string, parameters: ServerForUpdate, options?: ServersUpdateOptionalParams): Promise<ServersUpdateResponse>;
1232
+ /**
1233
+ * Deletes a server.
1234
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1235
+ * @param serverName The name of the server.
1236
+ * @param options The options parameters.
1237
+ */
1238
+ beginDelete(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1239
+ /**
1240
+ * Deletes a server.
1241
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1242
+ * @param serverName The name of the server.
1243
+ * @param options The options parameters.
1244
+ */
1245
+ beginDeleteAndWait(resourceGroupName: string, serverName: string, options?: ServersDeleteOptionalParams): Promise<void>;
1246
+ /**
1247
+ * Gets information about a server.
1248
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1249
+ * @param serverName The name of the server.
1250
+ * @param options The options parameters.
1251
+ */
1252
+ get(resourceGroupName: string, serverName: string, options?: ServersGetOptionalParams): Promise<ServersGetResponse>;
1253
+ /**
1254
+ * Restarts a server.
1255
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1256
+ * @param serverName The name of the server.
1257
+ * @param options The options parameters.
1258
+ */
1259
+ beginRestart(resourceGroupName: string, serverName: string, options?: ServersRestartOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1260
+ /**
1261
+ * Restarts a server.
1262
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1263
+ * @param serverName The name of the server.
1264
+ * @param options The options parameters.
1265
+ */
1266
+ beginRestartAndWait(resourceGroupName: string, serverName: string, options?: ServersRestartOptionalParams): Promise<void>;
1267
+ /**
1268
+ * Starts a server.
1269
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1270
+ * @param serverName The name of the server.
1271
+ * @param options The options parameters.
1272
+ */
1273
+ beginStart(resourceGroupName: string, serverName: string, options?: ServersStartOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1274
+ /**
1275
+ * Starts a server.
1276
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1277
+ * @param serverName The name of the server.
1278
+ * @param options The options parameters.
1279
+ */
1280
+ beginStartAndWait(resourceGroupName: string, serverName: string, options?: ServersStartOptionalParams): Promise<void>;
1281
+ /**
1282
+ * Stops a server.
1283
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1284
+ * @param serverName The name of the server.
1285
+ * @param options The options parameters.
1286
+ */
1287
+ beginStop(resourceGroupName: string, serverName: string, options?: ServersStopOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1288
+ /**
1289
+ * Stops a server.
1290
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1291
+ * @param serverName The name of the server.
1292
+ * @param options The options parameters.
1293
+ */
1294
+ beginStopAndWait(resourceGroupName: string, serverName: string, options?: ServersStopOptionalParams): Promise<void>;
1295
+ }
1296
+
1297
+ /** Optional parameters. */
1298
+ export declare interface ServersCreateOptionalParams extends coreClient.OperationOptions {
1299
+ /** Delay to wait until next poll, in milliseconds. */
1300
+ updateIntervalInMs?: number;
1301
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1302
+ resumeFrom?: string;
1303
+ }
1304
+
1305
+ /** Contains response data for the create operation. */
1306
+ export declare type ServersCreateResponse = Server;
1307
+
1308
+ /** Optional parameters. */
1309
+ export declare interface ServersDeleteOptionalParams extends coreClient.OperationOptions {
1310
+ /** Delay to wait until next poll, in milliseconds. */
1311
+ updateIntervalInMs?: number;
1312
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1313
+ resumeFrom?: string;
1314
+ }
1315
+
1316
+ /** Optional parameters. */
1317
+ export declare interface ServersGetOptionalParams extends coreClient.OperationOptions {
1318
+ }
1319
+
1320
+ /** Contains response data for the get operation. */
1321
+ export declare type ServersGetResponse = Server;
1322
+
1323
+ /** Optional parameters. */
1324
+ export declare interface ServersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
1325
+ }
1326
+
1327
+ /** Contains response data for the listByResourceGroupNext operation. */
1328
+ export declare type ServersListByResourceGroupNextResponse = ServerListResult;
1329
+
1330
+ /** Optional parameters. */
1331
+ export declare interface ServersListByResourceGroupOptionalParams extends coreClient.OperationOptions {
1332
+ }
1333
+
1334
+ /** Contains response data for the listByResourceGroup operation. */
1335
+ export declare type ServersListByResourceGroupResponse = ServerListResult;
1336
+
1337
+ /** Optional parameters. */
1338
+ export declare interface ServersListNextOptionalParams extends coreClient.OperationOptions {
1339
+ }
1340
+
1341
+ /** Contains response data for the listNext operation. */
1342
+ export declare type ServersListNextResponse = ServerListResult;
1343
+
1344
+ /** Optional parameters. */
1345
+ export declare interface ServersListOptionalParams extends coreClient.OperationOptions {
1346
+ }
1347
+
1348
+ /** Contains response data for the list operation. */
1349
+ export declare type ServersListResponse = ServerListResult;
1350
+
1351
+ /** Optional parameters. */
1352
+ export declare interface ServersRestartOptionalParams extends coreClient.OperationOptions {
1353
+ /** The parameters for restarting a server. */
1354
+ parameters?: RestartParameter;
1355
+ /** Delay to wait until next poll, in milliseconds. */
1356
+ updateIntervalInMs?: number;
1357
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1358
+ resumeFrom?: string;
1359
+ }
1360
+
1361
+ /** Optional parameters. */
1362
+ export declare interface ServersStartOptionalParams extends coreClient.OperationOptions {
1363
+ /** Delay to wait until next poll, in milliseconds. */
1364
+ updateIntervalInMs?: number;
1365
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1366
+ resumeFrom?: string;
1367
+ }
1368
+
1369
+ /** Optional parameters. */
1370
+ export declare interface ServersStopOptionalParams extends coreClient.OperationOptions {
1371
+ /** Delay to wait until next poll, in milliseconds. */
1372
+ updateIntervalInMs?: number;
1373
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1374
+ resumeFrom?: string;
1375
+ }
1376
+
1377
+ /**
1378
+ * Defines values for ServerState. \
1379
+ * {@link KnownServerState} can be used interchangeably with ServerState,
1380
+ * this enum contains the known values that the service supports.
1381
+ * ### Known values supported by the service
1382
+ * **Ready** \
1383
+ * **Dropping** \
1384
+ * **Disabled** \
1385
+ * **Starting** \
1386
+ * **Stopping** \
1387
+ * **Stopped** \
1388
+ * **Updating**
1389
+ */
1390
+ export declare type ServerState = string;
1391
+
1392
+ /** Optional parameters. */
1393
+ export declare interface ServersUpdateOptionalParams extends coreClient.OperationOptions {
1394
+ /** Delay to wait until next poll, in milliseconds. */
1395
+ updateIntervalInMs?: number;
1396
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1397
+ resumeFrom?: string;
1398
+ }
1399
+
1400
+ /** Contains response data for the update operation. */
1401
+ export declare type ServersUpdateResponse = Server;
1402
+
1403
+ /**
1404
+ * Defines values for ServerVersion. \
1405
+ * {@link KnownServerVersion} can be used interchangeably with ServerVersion,
1406
+ * this enum contains the known values that the service supports.
1407
+ * ### Known values supported by the service
1408
+ * **13** \
1409
+ * **12** \
1410
+ * **11**
1411
+ */
1412
+ export declare type ServerVersion = string;
1413
+
1414
+ /** Server version capabilities. */
1415
+ export declare interface ServerVersionCapability {
1416
+ /**
1417
+ * server version
1418
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1419
+ */
1420
+ readonly name?: string;
1421
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
1422
+ readonly supportedVcores?: VcoreCapability[];
1423
+ /**
1424
+ * The status
1425
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1426
+ */
1427
+ readonly status?: string;
1428
+ }
1429
+
1430
+ /** Sku information related properties of a server. */
1431
+ export declare interface Sku {
1432
+ /** The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3. */
1433
+ name: string;
1434
+ /** The tier of the particular SKU, e.g. Burstable. */
1435
+ tier: SkuTier;
1436
+ }
1437
+
1438
+ /**
1439
+ * Defines values for SkuTier. \
1440
+ * {@link KnownSkuTier} can be used interchangeably with SkuTier,
1441
+ * this enum contains the known values that the service supports.
1442
+ * ### Known values supported by the service
1443
+ * **Burstable** \
1444
+ * **GeneralPurpose** \
1445
+ * **MemoryOptimized**
1446
+ */
1447
+ export declare type SkuTier = string;
1448
+
1449
+ /** Storage properties of a server */
1450
+ declare interface Storage_2 {
1451
+ /** Max storage allowed for a server. */
1452
+ storageSizeGB?: number;
1453
+ }
1454
+ export { Storage_2 as Storage }
1455
+
1456
+ /** storage edition capability */
1457
+ export declare interface StorageEditionCapability {
1458
+ /**
1459
+ * storage edition name
1460
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1461
+ */
1462
+ readonly name?: string;
1463
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
1464
+ readonly supportedStorageMB?: StorageMBCapability[];
1465
+ /**
1466
+ * The status
1467
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1468
+ */
1469
+ readonly status?: string;
1470
+ }
1471
+
1472
+ /** storage size in MB capability */
1473
+ export declare interface StorageMBCapability {
1474
+ /**
1475
+ * storage MB name
1476
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1477
+ */
1478
+ readonly name?: string;
1479
+ /**
1480
+ * supported IOPS
1481
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1482
+ */
1483
+ readonly supportedIops?: number;
1484
+ /**
1485
+ * storage size in MB
1486
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1487
+ */
1488
+ readonly storageSizeMB?: number;
1489
+ /**
1490
+ * The status
1491
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1492
+ */
1493
+ readonly status?: string;
1494
+ }
1495
+
1496
+ /** Metadata pertaining to creation and last modification of the resource. */
1497
+ export declare interface SystemData {
1498
+ /** The identity that created the resource. */
1499
+ createdBy?: string;
1500
+ /** The type of identity that created the resource. */
1501
+ createdByType?: CreatedByType;
1502
+ /** The timestamp of resource creation (UTC). */
1503
+ createdAt?: Date;
1504
+ /** The identity that last modified the resource. */
1505
+ lastModifiedBy?: string;
1506
+ /** The type of identity that last modified the resource. */
1507
+ lastModifiedByType?: CreatedByType;
1508
+ /** The timestamp of resource last modification (UTC) */
1509
+ lastModifiedAt?: Date;
1510
+ }
1511
+
1512
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
1513
+ export declare type TrackedResource = Resource & {
1514
+ /** Resource tags. */
1515
+ tags?: {
1516
+ [propertyName: string]: string;
1517
+ };
1518
+ /** The geo-location where the resource lives */
1519
+ location: string;
1520
+ };
1521
+
1522
+ /** Vcores capability */
1523
+ export declare interface VcoreCapability {
1524
+ /**
1525
+ * vCore name
1526
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1527
+ */
1528
+ readonly name?: string;
1529
+ /**
1530
+ * supported vCores
1531
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1532
+ */
1533
+ readonly vCores?: number;
1534
+ /**
1535
+ * supported IOPS
1536
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1537
+ */
1538
+ readonly supportedIops?: number;
1539
+ /**
1540
+ * supported memory per vCore in MB
1541
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1542
+ */
1543
+ readonly supportedMemoryPerVcoreMB?: number;
1544
+ /**
1545
+ * The status
1546
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1547
+ */
1548
+ readonly status?: string;
1549
+ }
1550
+
1551
+ /** Interface representing a VirtualNetworkSubnetUsage. */
1552
+ export declare interface VirtualNetworkSubnetUsage {
1553
+ /**
1554
+ * Get virtual network subnet usage for a given vNet resource id.
1555
+ * @param locationName The name of the location.
1556
+ * @param parameters The required parameters for creating or updating a server.
1557
+ * @param options The options parameters.
1558
+ */
1559
+ execute(locationName: string, parameters: VirtualNetworkSubnetUsageParameter, options?: VirtualNetworkSubnetUsageExecuteOptionalParams): Promise<VirtualNetworkSubnetUsageExecuteResponse>;
1560
+ }
1561
+
1562
+ /** Optional parameters. */
1563
+ export declare interface VirtualNetworkSubnetUsageExecuteOptionalParams extends coreClient.OperationOptions {
1564
+ }
1565
+
1566
+ /** Contains response data for the execute operation. */
1567
+ export declare type VirtualNetworkSubnetUsageExecuteResponse = VirtualNetworkSubnetUsageResult;
1568
+
1569
+ /** Virtual network subnet usage parameter */
1570
+ export declare interface VirtualNetworkSubnetUsageParameter {
1571
+ /** Virtual network resource id. */
1572
+ virtualNetworkArmResourceId?: string;
1573
+ }
1574
+
1575
+ /** Virtual network subnet usage data. */
1576
+ export declare interface VirtualNetworkSubnetUsageResult {
1577
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
1578
+ readonly delegatedSubnetsUsage?: DelegatedSubnetUsage[];
1579
+ }
1580
+
1581
+ export { }