@azure/arm-postgresql-flexible 2.0.0 → 5.0.0

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