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