@azure/arm-postgresql-flexible 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +70 -82
  4. package/dist/index.js +3801 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/capabilitiesList.d.ts +2 -0
  9. package/dist-esm/samples-dev/capabilitiesList.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/capabilitiesList.js +44 -0
  11. package/dist-esm/samples-dev/capabilitiesList.js.map +1 -0
  12. package/dist-esm/samples-dev/configurationGet.d.ts +2 -0
  13. package/dist-esm/samples-dev/configurationGet.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/configurationGet.js +32 -0
  15. package/dist-esm/samples-dev/configurationGet.js.map +1 -0
  16. package/dist-esm/samples-dev/configurationList.d.ts +2 -0
  17. package/dist-esm/samples-dev/configurationList.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/configurationList.js +45 -0
  19. package/dist-esm/samples-dev/configurationList.js.map +1 -0
  20. package/dist-esm/samples-dev/createADatabase.d.ts +2 -0
  21. package/dist-esm/samples-dev/createADatabase.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/createADatabase.js +33 -0
  23. package/dist-esm/samples-dev/createADatabase.js.map +1 -0
  24. package/dist-esm/samples-dev/createADatabaseAsAPointInTimeRestore.d.ts +2 -0
  25. package/dist-esm/samples-dev/createADatabaseAsAPointInTimeRestore.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/createADatabaseAsAPointInTimeRestore.js +37 -0
  27. package/dist-esm/samples-dev/createADatabaseAsAPointInTimeRestore.js.map +1 -0
  28. package/dist-esm/samples-dev/createANewServer.d.ts +2 -0
  29. package/dist-esm/samples-dev/createANewServer.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/createANewServer.js +48 -0
  31. package/dist-esm/samples-dev/createANewServer.js.map +1 -0
  32. package/dist-esm/samples-dev/deleteADatabase.d.ts +2 -0
  33. package/dist-esm/samples-dev/deleteADatabase.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/deleteADatabase.js +32 -0
  35. package/dist-esm/samples-dev/deleteADatabase.js.map +1 -0
  36. package/dist-esm/samples-dev/firewallRuleCreate.d.ts +2 -0
  37. package/dist-esm/samples-dev/firewallRuleCreate.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/firewallRuleCreate.js +36 -0
  39. package/dist-esm/samples-dev/firewallRuleCreate.js.map +1 -0
  40. package/dist-esm/samples-dev/firewallRuleDelete.d.ts +2 -0
  41. package/dist-esm/samples-dev/firewallRuleDelete.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/firewallRuleDelete.js +32 -0
  43. package/dist-esm/samples-dev/firewallRuleDelete.js.map +1 -0
  44. package/dist-esm/samples-dev/firewallRuleList.d.ts +2 -0
  45. package/dist-esm/samples-dev/firewallRuleList.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/firewallRuleList.js +45 -0
  47. package/dist-esm/samples-dev/firewallRuleList.js.map +1 -0
  48. package/dist-esm/samples-dev/getADatabase.d.ts +2 -0
  49. package/dist-esm/samples-dev/getADatabase.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/getADatabase.js +32 -0
  51. package/dist-esm/samples-dev/getADatabase.js.map +1 -0
  52. package/dist-esm/samples-dev/getPrivateDnsZoneSuffix.d.ts +2 -0
  53. package/dist-esm/samples-dev/getPrivateDnsZoneSuffix.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/getPrivateDnsZoneSuffix.js +29 -0
  55. package/dist-esm/samples-dev/getPrivateDnsZoneSuffix.js.map +1 -0
  56. package/dist-esm/samples-dev/listDatabasesInAServer.d.ts +2 -0
  57. package/dist-esm/samples-dev/listDatabasesInAServer.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/listDatabasesInAServer.js +45 -0
  59. package/dist-esm/samples-dev/listDatabasesInAServer.js.map +1 -0
  60. package/dist-esm/samples-dev/nameAvailability.d.ts +2 -0
  61. package/dist-esm/samples-dev/nameAvailability.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/nameAvailability.js +33 -0
  63. package/dist-esm/samples-dev/nameAvailability.js.map +1 -0
  64. package/dist-esm/samples-dev/operationList.d.ts +2 -0
  65. package/dist-esm/samples-dev/operationList.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/operationList.js +29 -0
  67. package/dist-esm/samples-dev/operationList.js.map +1 -0
  68. package/dist-esm/samples-dev/serverDelete.d.ts +2 -0
  69. package/dist-esm/samples-dev/serverDelete.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/serverDelete.js +31 -0
  71. package/dist-esm/samples-dev/serverDelete.js.map +1 -0
  72. package/dist-esm/samples-dev/serverGet.d.ts +2 -0
  73. package/dist-esm/samples-dev/serverGet.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/serverGet.js +31 -0
  75. package/dist-esm/samples-dev/serverGet.js.map +1 -0
  76. package/dist-esm/samples-dev/serverGetWithVnet.d.ts +2 -0
  77. package/dist-esm/samples-dev/serverGetWithVnet.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/serverGetWithVnet.js +31 -0
  79. package/dist-esm/samples-dev/serverGetWithVnet.js.map +1 -0
  80. package/dist-esm/samples-dev/serverList.d.ts +2 -0
  81. package/dist-esm/samples-dev/serverList.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/serverList.js +43 -0
  83. package/dist-esm/samples-dev/serverList.js.map +1 -0
  84. package/dist-esm/samples-dev/serverListByResourceGroup.d.ts +2 -0
  85. package/dist-esm/samples-dev/serverListByResourceGroup.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/serverListByResourceGroup.js +44 -0
  87. package/dist-esm/samples-dev/serverListByResourceGroup.js.map +1 -0
  88. package/dist-esm/samples-dev/serverRestart.d.ts +2 -0
  89. package/dist-esm/samples-dev/serverRestart.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/serverRestart.js +31 -0
  91. package/dist-esm/samples-dev/serverRestart.js.map +1 -0
  92. package/dist-esm/samples-dev/serverRestartWithFailover.d.ts +2 -0
  93. package/dist-esm/samples-dev/serverRestartWithFailover.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/serverRestartWithFailover.js +36 -0
  95. package/dist-esm/samples-dev/serverRestartWithFailover.js.map +1 -0
  96. package/dist-esm/samples-dev/serverStart.d.ts +2 -0
  97. package/dist-esm/samples-dev/serverStart.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/serverStart.js +31 -0
  99. package/dist-esm/samples-dev/serverStart.js.map +1 -0
  100. package/dist-esm/samples-dev/serverStop.d.ts +2 -0
  101. package/dist-esm/samples-dev/serverStop.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/serverStop.js +31 -0
  103. package/dist-esm/samples-dev/serverStop.js.map +1 -0
  104. package/dist-esm/samples-dev/serverUpdate.d.ts +2 -0
  105. package/dist-esm/samples-dev/serverUpdate.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/serverUpdate.js +39 -0
  107. package/dist-esm/samples-dev/serverUpdate.js.map +1 -0
  108. package/dist-esm/samples-dev/serverUpdateWithCustomerMaintenanceWindow.d.ts +2 -0
  109. package/dist-esm/samples-dev/serverUpdateWithCustomerMaintenanceWindow.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/serverUpdateWithCustomerMaintenanceWindow.js +41 -0
  111. package/dist-esm/samples-dev/serverUpdateWithCustomerMaintenanceWindow.js.map +1 -0
  112. package/dist-esm/samples-dev/updateAUserConfiguration.d.ts +2 -0
  113. package/dist-esm/samples-dev/updateAUserConfiguration.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/updateAUserConfiguration.js +33 -0
  115. package/dist-esm/samples-dev/updateAUserConfiguration.js.map +1 -0
  116. package/dist-esm/samples-dev/virtualNetworkSubnetUsageList.d.ts +2 -0
  117. package/dist-esm/samples-dev/virtualNetworkSubnetUsageList.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/virtualNetworkSubnetUsageList.js +33 -0
  119. package/dist-esm/samples-dev/virtualNetworkSubnetUsageList.js.map +1 -0
  120. package/dist-esm/src/index.d.ts +5 -0
  121. package/dist-esm/src/index.d.ts.map +1 -0
  122. package/{esm/models/checkNameAvailabilityMappers.js → dist-esm/src/index.js} +5 -2
  123. package/dist-esm/src/index.js.map +1 -0
  124. package/dist-esm/src/lroImpl.d.ts +16 -0
  125. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  126. package/dist-esm/src/lroImpl.js +29 -0
  127. package/dist-esm/src/lroImpl.js.map +1 -0
  128. package/dist-esm/src/models/index.d.ts +1104 -0
  129. package/dist-esm/src/models/index.d.ts.map +1 -0
  130. package/dist-esm/src/models/index.js +112 -0
  131. package/dist-esm/src/models/index.js.map +1 -0
  132. package/dist-esm/src/models/mappers.d.ts +42 -0
  133. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  134. package/{esm → dist-esm/src}/models/mappers.js +794 -808
  135. package/dist-esm/src/models/mappers.js.map +1 -0
  136. package/dist-esm/src/models/parameters.d.ts +22 -0
  137. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  138. package/dist-esm/src/models/parameters.js +173 -0
  139. package/dist-esm/src/models/parameters.js.map +1 -0
  140. package/dist-esm/src/operations/checkNameAvailability.d.ts +19 -0
  141. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -0
  142. package/dist-esm/src/operations/checkNameAvailability.js +49 -0
  143. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -0
  144. package/dist-esm/src/operations/configurations.d.ts +83 -0
  145. package/dist-esm/src/operations/configurations.d.ts.map +1 -0
  146. package/dist-esm/src/operations/configurations.js +343 -0
  147. package/dist-esm/src/operations/configurations.js.map +1 -0
  148. package/dist-esm/src/operations/databases.d.ts +81 -0
  149. package/dist-esm/src/operations/databases.d.ts.map +1 -0
  150. package/dist-esm/src/operations/databases.js +331 -0
  151. package/dist-esm/src/operations/databases.js.map +1 -0
  152. package/dist-esm/src/operations/firewallRules.d.ts +81 -0
  153. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
  154. package/dist-esm/src/operations/firewallRules.js +331 -0
  155. package/dist-esm/src/operations/firewallRules.js.map +1 -0
  156. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.d.ts +18 -0
  157. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.d.ts.map +1 -0
  158. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js +46 -0
  159. package/dist-esm/src/operations/getPrivateDnsZoneSuffix.js.map +1 -0
  160. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  161. package/dist-esm/src/operations/index.d.ts.map +1 -0
  162. package/{esm → dist-esm/src}/operations/index.js +1 -2
  163. package/dist-esm/src/operations/index.js.map +1 -0
  164. package/dist-esm/src/operations/locationBasedCapabilities.d.ts +35 -0
  165. package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -0
  166. package/dist-esm/src/operations/locationBasedCapabilities.js +132 -0
  167. package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -0
  168. package/dist-esm/src/operations/operations.d.ts +18 -0
  169. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  170. package/dist-esm/src/operations/operations.js +46 -0
  171. package/dist-esm/src/operations/operations.js.map +1 -0
  172. package/dist-esm/src/operations/servers.d.ts +151 -0
  173. package/dist-esm/src/operations/servers.d.ts.map +1 -0
  174. package/dist-esm/src/operations/servers.js +717 -0
  175. package/dist-esm/src/operations/servers.js.map +1 -0
  176. package/dist-esm/src/operations/virtualNetworkSubnetUsage.d.ts +20 -0
  177. package/dist-esm/src/operations/virtualNetworkSubnetUsage.d.ts.map +1 -0
  178. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js +54 -0
  179. package/dist-esm/src/operations/virtualNetworkSubnetUsage.js.map +1 -0
  180. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +11 -0
  181. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -0
  182. package/{src/models/getPrivateDnsZoneSuffixMappers.ts → dist-esm/src/operationsInterfaces/checkNameAvailability.js} +2 -6
  183. package/dist-esm/src/operationsInterfaces/checkNameAvailability.js.map +1 -0
  184. package/dist-esm/src/operationsInterfaces/configurations.d.ts +58 -0
  185. package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
  186. package/{src/models/checkNameAvailabilityMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -8
  187. package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
  188. package/dist-esm/src/operationsInterfaces/databases.d.ts +56 -0
  189. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -0
  190. package/{esm/models/getPrivateDnsZoneSuffixMappers.js → dist-esm/src/operationsInterfaces/databases.js} +2 -2
  191. package/dist-esm/src/operationsInterfaces/databases.js.map +1 -0
  192. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +56 -0
  193. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
  195. package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
  196. package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.d.ts +10 -0
  197. package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.d.ts.map +1 -0
  198. package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.js +9 -0
  199. package/dist-esm/src/operationsInterfaces/getPrivateDnsZoneSuffix.js.map +1 -0
  200. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  201. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  202. package/dist-esm/src/operationsInterfaces/index.js +17 -0
  203. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  204. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts +12 -0
  205. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.d.ts.map +1 -0
  206. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.js +9 -0
  207. package/dist-esm/src/operationsInterfaces/locationBasedCapabilities.js.map +1 -0
  208. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  209. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  210. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  211. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  212. package/dist-esm/src/operationsInterfaces/servers.d.ts +115 -0
  213. package/dist-esm/src/operationsInterfaces/servers.d.ts.map +1 -0
  214. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/servers.js} +2 -1
  215. package/dist-esm/src/operationsInterfaces/servers.js.map +1 -0
  216. package/dist-esm/src/operationsInterfaces/virtualNetworkSubnetUsage.d.ts +12 -0
  217. package/dist-esm/src/operationsInterfaces/virtualNetworkSubnetUsage.d.ts.map +1 -0
  218. package/dist-esm/src/operationsInterfaces/virtualNetworkSubnetUsage.js +9 -0
  219. package/dist-esm/src/operationsInterfaces/virtualNetworkSubnetUsage.js.map +1 -0
  220. package/dist-esm/src/postgreSQLManagementClient.d.ts +26 -0
  221. package/dist-esm/src/postgreSQLManagementClient.d.ts.map +1 -0
  222. package/dist-esm/src/postgreSQLManagementClient.js +59 -0
  223. package/dist-esm/src/postgreSQLManagementClient.js.map +1 -0
  224. package/dist-esm/test/sampleTest.d.ts +2 -0
  225. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  226. package/dist-esm/test/sampleTest.js +40 -0
  227. package/dist-esm/test/sampleTest.js.map +1 -0
  228. package/package.json +80 -33
  229. package/review/arm-postgresql-flexible.api.md +865 -0
  230. package/rollup.config.js +181 -30
  231. package/src/{models/operationsMappers.ts → index.ts} +4 -8
  232. package/src/lroImpl.ts +34 -0
  233. package/src/models/index.ts +896 -1332
  234. package/src/models/mappers.ts +790 -799
  235. package/src/models/parameters.ts +130 -45
  236. package/src/operations/checkNameAvailability.ts +35 -57
  237. package/src/operations/configurations.ts +356 -200
  238. package/src/operations/databases.ts +355 -212
  239. package/src/operations/firewallRules.ts +355 -212
  240. package/src/operations/getPrivateDnsZoneSuffix.ts +28 -47
  241. package/src/operations/index.ts +1 -2
  242. package/src/operations/locationBasedCapabilities.ts +109 -79
  243. package/src/operations/operations.ts +27 -41
  244. package/src/operations/servers.ts +745 -419
  245. package/src/operations/virtualNetworkSubnetUsage.ts +40 -57
  246. package/src/operationsInterfaces/checkNameAvailability.ts +26 -0
  247. package/src/operationsInterfaces/configurations.ts +119 -0
  248. package/src/operationsInterfaces/databases.ts +109 -0
  249. package/src/operationsInterfaces/firewallRules.ts +109 -0
  250. package/src/operationsInterfaces/getPrivateDnsZoneSuffix.ts +23 -0
  251. package/src/operationsInterfaces/index.ts +17 -0
  252. package/src/operationsInterfaces/locationBasedCapabilities.ts +27 -0
  253. package/src/operationsInterfaces/operations.ts +21 -0
  254. package/src/operationsInterfaces/servers.ts +202 -0
  255. package/src/operationsInterfaces/virtualNetworkSubnetUsage.ts +28 -0
  256. package/src/postgreSQLManagementClient.ts +97 -49
  257. package/tsconfig.json +5 -4
  258. package/types/arm-postgresql-flexible.d.ts +1581 -0
  259. package/types/tsdoc-metadata.json +11 -0
  260. package/dist/arm-postgresql-flexible.js +0 -3448
  261. package/dist/arm-postgresql-flexible.js.map +0 -1
  262. package/dist/arm-postgresql-flexible.min.js +0 -1
  263. package/dist/arm-postgresql-flexible.min.js.map +0 -1
  264. package/esm/models/checkNameAvailabilityMappers.d.ts +0 -2
  265. package/esm/models/checkNameAvailabilityMappers.d.ts.map +0 -1
  266. package/esm/models/checkNameAvailabilityMappers.js.map +0 -1
  267. package/esm/models/configurationsMappers.d.ts +0 -2
  268. package/esm/models/configurationsMappers.d.ts.map +0 -1
  269. package/esm/models/configurationsMappers.js +0 -9
  270. package/esm/models/configurationsMappers.js.map +0 -1
  271. package/esm/models/databasesMappers.d.ts +0 -2
  272. package/esm/models/databasesMappers.d.ts.map +0 -1
  273. package/esm/models/databasesMappers.js +0 -9
  274. package/esm/models/databasesMappers.js.map +0 -1
  275. package/esm/models/firewallRulesMappers.d.ts +0 -2
  276. package/esm/models/firewallRulesMappers.d.ts.map +0 -1
  277. package/esm/models/firewallRulesMappers.js +0 -9
  278. package/esm/models/firewallRulesMappers.js.map +0 -1
  279. package/esm/models/getPrivateDnsZoneSuffixMappers.d.ts +0 -2
  280. package/esm/models/getPrivateDnsZoneSuffixMappers.d.ts.map +0 -1
  281. package/esm/models/getPrivateDnsZoneSuffixMappers.js.map +0 -1
  282. package/esm/models/index.d.ts +0 -1558
  283. package/esm/models/index.d.ts.map +0 -1
  284. package/esm/models/index.js.map +0 -1
  285. package/esm/models/locationBasedCapabilitiesMappers.d.ts +0 -2
  286. package/esm/models/locationBasedCapabilitiesMappers.d.ts.map +0 -1
  287. package/esm/models/locationBasedCapabilitiesMappers.js +0 -9
  288. package/esm/models/locationBasedCapabilitiesMappers.js.map +0 -1
  289. package/esm/models/mappers.d.ts +0 -44
  290. package/esm/models/mappers.d.ts.map +0 -1
  291. package/esm/models/mappers.js.map +0 -1
  292. package/esm/models/operationsMappers.d.ts +0 -2
  293. package/esm/models/operationsMappers.d.ts.map +0 -1
  294. package/esm/models/operationsMappers.js +0 -9
  295. package/esm/models/operationsMappers.js.map +0 -1
  296. package/esm/models/parameters.d.ts +0 -12
  297. package/esm/models/parameters.d.ts.map +0 -1
  298. package/esm/models/parameters.js +0 -120
  299. package/esm/models/parameters.js.map +0 -1
  300. package/esm/models/serversMappers.d.ts +0 -2
  301. package/esm/models/serversMappers.d.ts.map +0 -1
  302. package/esm/models/serversMappers.js +0 -9
  303. package/esm/models/serversMappers.js.map +0 -1
  304. package/esm/models/virtualNetworkSubnetUsageMappers.d.ts +0 -2
  305. package/esm/models/virtualNetworkSubnetUsageMappers.d.ts.map +0 -1
  306. package/esm/models/virtualNetworkSubnetUsageMappers.js +0 -9
  307. package/esm/models/virtualNetworkSubnetUsageMappers.js.map +0 -1
  308. package/esm/operations/checkNameAvailability.d.ts +0 -34
  309. package/esm/operations/checkNameAvailability.d.ts.map +0 -1
  310. package/esm/operations/checkNameAvailability.js +0 -59
  311. package/esm/operations/checkNameAvailability.js.map +0 -1
  312. package/esm/operations/configurations.d.ts +0 -117
  313. package/esm/operations/configurations.d.ts.map +0 -1
  314. package/esm/operations/configurations.js +0 -242
  315. package/esm/operations/configurations.js.map +0 -1
  316. package/esm/operations/databases.d.ts +0 -115
  317. package/esm/operations/databases.d.ts.map +0 -1
  318. package/esm/operations/databases.js +0 -237
  319. package/esm/operations/databases.js.map +0 -1
  320. package/esm/operations/firewallRules.d.ts +0 -115
  321. package/esm/operations/firewallRules.d.ts.map +0 -1
  322. package/esm/operations/firewallRules.js +0 -237
  323. package/esm/operations/firewallRules.js.map +0 -1
  324. package/esm/operations/getPrivateDnsZoneSuffix.d.ts +0 -28
  325. package/esm/operations/getPrivateDnsZoneSuffix.d.ts.map +0 -1
  326. package/esm/operations/getPrivateDnsZoneSuffix.js +0 -55
  327. package/esm/operations/getPrivateDnsZoneSuffix.js.map +0 -1
  328. package/esm/operations/index.d.ts.map +0 -1
  329. package/esm/operations/index.js.map +0 -1
  330. package/esm/operations/locationBasedCapabilities.d.ts +0 -49
  331. package/esm/operations/locationBasedCapabilities.d.ts.map +0 -1
  332. package/esm/operations/locationBasedCapabilities.js +0 -84
  333. package/esm/operations/locationBasedCapabilities.js.map +0 -1
  334. package/esm/operations/operations.d.ts +0 -28
  335. package/esm/operations/operations.d.ts.map +0 -1
  336. package/esm/operations/operations.js +0 -50
  337. package/esm/operations/operations.js.map +0 -1
  338. package/esm/operations/servers.d.ts +0 -206
  339. package/esm/operations/servers.d.ts.map +0 -1
  340. package/esm/operations/servers.js +0 -491
  341. package/esm/operations/servers.js.map +0 -1
  342. package/esm/operations/virtualNetworkSubnetUsage.d.ts +0 -34
  343. package/esm/operations/virtualNetworkSubnetUsage.d.ts.map +0 -1
  344. package/esm/operations/virtualNetworkSubnetUsage.js +0 -61
  345. package/esm/operations/virtualNetworkSubnetUsage.js.map +0 -1
  346. package/esm/postgreSQLManagementClient.d.ts +0 -32
  347. package/esm/postgreSQLManagementClient.d.ts.map +0 -1
  348. package/esm/postgreSQLManagementClient.js +0 -45
  349. package/esm/postgreSQLManagementClient.js.map +0 -1
  350. package/esm/postgreSQLManagementClientContext.d.ts +0 -22
  351. package/esm/postgreSQLManagementClientContext.d.ts.map +0 -1
  352. package/esm/postgreSQLManagementClientContext.js +0 -60
  353. package/esm/postgreSQLManagementClientContext.js.map +0 -1
  354. package/src/models/configurationsMappers.ts +0 -30
  355. package/src/models/databasesMappers.ts +0 -30
  356. package/src/models/firewallRulesMappers.ts +0 -30
  357. package/src/models/locationBasedCapabilitiesMappers.ts +0 -22
  358. package/src/models/serversMappers.ts +0 -32
  359. package/src/models/virtualNetworkSubnetUsageMappers.ts +0 -16
  360. package/src/postgreSQLManagementClientContext.ts +0 -67
@@ -3,76 +3,57 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/getPrivateDnsZoneSuffixMappers";
9
+ import { GetPrivateDnsZoneSuffix } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
13
12
  import * as Parameters from "../models/parameters";
14
- import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext";
13
+ import { PostgreSQLManagementClient } from "../postgreSQLManagementClient";
14
+ import {
15
+ GetPrivateDnsZoneSuffixExecuteOptionalParams,
16
+ GetPrivateDnsZoneSuffixExecuteResponse
17
+ } from "../models";
15
18
 
16
- /** Class representing a GetPrivateDnsZoneSuffix. */
17
- export class GetPrivateDnsZoneSuffix {
18
- private readonly client: PostgreSQLManagementClientContext;
19
+ /** Class containing GetPrivateDnsZoneSuffix operations. */
20
+ export class GetPrivateDnsZoneSuffixImpl implements GetPrivateDnsZoneSuffix {
21
+ private readonly client: PostgreSQLManagementClient;
19
22
 
20
23
  /**
21
- * Create a GetPrivateDnsZoneSuffix.
22
- * @param {PostgreSQLManagementClientContext} client Reference to the service client.
24
+ * Initialize a new instance of the class GetPrivateDnsZoneSuffix class.
25
+ * @param client Reference to the service client
23
26
  */
24
- constructor(client: PostgreSQLManagementClientContext) {
27
+ constructor(client: PostgreSQLManagementClient) {
25
28
  this.client = client;
26
29
  }
27
30
 
28
31
  /**
29
32
  * Get private DNS zone suffix in the cloud
30
- * @param [options] The optional parameters
31
- * @returns Promise<Models.GetPrivateDnsZoneSuffixExecuteResponse>
33
+ * @param options The options parameters.
32
34
  */
33
- execute(options?: msRest.RequestOptionsBase): Promise<Models.GetPrivateDnsZoneSuffixExecuteResponse>;
34
- /**
35
- * @param callback The callback
36
- */
37
- execute(callback: msRest.ServiceCallback<string>): void;
38
- /**
39
- * @param options The optional parameters
40
- * @param callback The callback
41
- */
42
- execute(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string>): void;
43
- execute(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<string>, callback?: msRest.ServiceCallback<string>): Promise<Models.GetPrivateDnsZoneSuffixExecuteResponse> {
44
- return this.client.sendOperationRequest(
45
- {
46
- options
47
- },
48
- executeOperationSpec,
49
- callback) as Promise<Models.GetPrivateDnsZoneSuffixExecuteResponse>;
35
+ execute(
36
+ options?: GetPrivateDnsZoneSuffixExecuteOptionalParams
37
+ ): Promise<GetPrivateDnsZoneSuffixExecuteResponse> {
38
+ return this.client.sendOperationRequest({ options }, executeOperationSpec);
50
39
  }
51
40
  }
52
-
53
41
  // Operation Specifications
54
- const serializer = new msRest.Serializer(Mappers);
55
- const executeOperationSpec: msRest.OperationSpec = {
42
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
43
+
44
+ const executeOperationSpec: coreClient.OperationSpec = {
45
+ path: "/providers/Microsoft.DBforPostgreSQL/getPrivateDnsZoneSuffix",
56
46
  httpMethod: "POST",
57
- path: "providers/Microsoft.DBforPostgreSQL/getPrivateDnsZoneSuffix",
58
- queryParameters: [
59
- Parameters.apiVersion
60
- ],
61
- headerParameters: [
62
- Parameters.acceptLanguage
63
- ],
64
47
  responses: {
65
48
  200: {
66
- bodyMapper: {
67
- serializedName: "parsedResponse",
68
- type: {
69
- name: "String"
70
- }
71
- }
49
+ bodyMapper: { type: { name: "String" } }
72
50
  },
73
51
  default: {
74
52
  bodyMapper: Mappers.CloudError
75
53
  }
76
54
  },
55
+ queryParameters: [Parameters.apiVersion],
56
+ urlParameters: [Parameters.$host],
57
+ headerParameters: [Parameters.accept],
77
58
  serializer
78
59
  };
@@ -3,8 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
9
  export * from "./servers";
@@ -3,100 +3,126 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/locationBasedCapabilitiesMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { LocationBasedCapabilities } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
- import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext";
14
+ import { PostgreSQLManagementClient } from "../postgreSQLManagementClient";
15
+ import {
16
+ CapabilityProperties,
17
+ LocationBasedCapabilitiesExecuteNextOptionalParams,
18
+ LocationBasedCapabilitiesExecuteOptionalParams,
19
+ LocationBasedCapabilitiesExecuteResponse,
20
+ LocationBasedCapabilitiesExecuteNextResponse
21
+ } from "../models";
15
22
 
16
- /** Class representing a LocationBasedCapabilities. */
17
- export class LocationBasedCapabilities {
18
- private readonly client: PostgreSQLManagementClientContext;
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing LocationBasedCapabilities operations. */
25
+ export class LocationBasedCapabilitiesImpl
26
+ implements LocationBasedCapabilities {
27
+ private readonly client: PostgreSQLManagementClient;
19
28
 
20
29
  /**
21
- * Create a LocationBasedCapabilities.
22
- * @param {PostgreSQLManagementClientContext} client Reference to the service client.
30
+ * Initialize a new instance of the class LocationBasedCapabilities class.
31
+ * @param client Reference to the service client
23
32
  */
24
- constructor(client: PostgreSQLManagementClientContext) {
33
+ constructor(client: PostgreSQLManagementClient) {
25
34
  this.client = client;
26
35
  }
27
36
 
28
37
  /**
29
38
  * Get capabilities at specified location in a given subscription.
30
39
  * @param locationName The name of the location.
31
- * @param [options] The optional parameters
32
- * @returns Promise<Models.LocationBasedCapabilitiesExecuteResponse>
40
+ * @param options The options parameters.
33
41
  */
34
- execute(locationName: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationBasedCapabilitiesExecuteResponse>;
35
- /**
36
- * @param locationName The name of the location.
37
- * @param callback The callback
38
- */
39
- execute(locationName: string, callback: msRest.ServiceCallback<Models.CapabilitiesListResult>): void;
40
- /**
41
- * @param locationName The name of the location.
42
- * @param options The optional parameters
43
- * @param callback The callback
44
- */
45
- execute(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CapabilitiesListResult>): void;
46
- execute(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CapabilitiesListResult>, callback?: msRest.ServiceCallback<Models.CapabilitiesListResult>): Promise<Models.LocationBasedCapabilitiesExecuteResponse> {
47
- return this.client.sendOperationRequest(
48
- {
42
+ public listExecute(
43
+ locationName: string,
44
+ options?: LocationBasedCapabilitiesExecuteOptionalParams
45
+ ): PagedAsyncIterableIterator<CapabilityProperties> {
46
+ const iter = this.executePagingAll(locationName, options);
47
+ return {
48
+ next() {
49
+ return iter.next();
50
+ },
51
+ [Symbol.asyncIterator]() {
52
+ return this;
53
+ },
54
+ byPage: () => {
55
+ return this.executePagingPage(locationName, options);
56
+ }
57
+ };
58
+ }
59
+
60
+ private async *executePagingPage(
61
+ locationName: string,
62
+ options?: LocationBasedCapabilitiesExecuteOptionalParams
63
+ ): AsyncIterableIterator<CapabilityProperties[]> {
64
+ let result = await this._execute(locationName, options);
65
+ yield result.value || [];
66
+ let continuationToken = result.nextLink;
67
+ while (continuationToken) {
68
+ result = await this._executeNext(
49
69
  locationName,
70
+ continuationToken,
50
71
  options
51
- },
52
- executeOperationSpec,
53
- callback) as Promise<Models.LocationBasedCapabilitiesExecuteResponse>;
72
+ );
73
+ continuationToken = result.nextLink;
74
+ yield result.value || [];
75
+ }
76
+ }
77
+
78
+ private async *executePagingAll(
79
+ locationName: string,
80
+ options?: LocationBasedCapabilitiesExecuteOptionalParams
81
+ ): AsyncIterableIterator<CapabilityProperties> {
82
+ for await (const page of this.executePagingPage(locationName, options)) {
83
+ yield* page;
84
+ }
54
85
  }
55
86
 
56
87
  /**
57
88
  * Get capabilities at specified location in a given subscription.
58
- * @param nextPageLink The NextLink from the previous successful call to List operation.
59
- * @param [options] The optional parameters
60
- * @returns Promise<Models.LocationBasedCapabilitiesExecuteNextResponse>
61
- */
62
- executeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.LocationBasedCapabilitiesExecuteNextResponse>;
63
- /**
64
- * @param nextPageLink The NextLink from the previous successful call to List operation.
65
- * @param callback The callback
89
+ * @param locationName The name of the location.
90
+ * @param options The options parameters.
66
91
  */
67
- executeNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.CapabilitiesListResult>): void;
92
+ private _execute(
93
+ locationName: string,
94
+ options?: LocationBasedCapabilitiesExecuteOptionalParams
95
+ ): Promise<LocationBasedCapabilitiesExecuteResponse> {
96
+ return this.client.sendOperationRequest(
97
+ { locationName, options },
98
+ executeOperationSpec
99
+ );
100
+ }
101
+
68
102
  /**
69
- * @param nextPageLink The NextLink from the previous successful call to List operation.
70
- * @param options The optional parameters
71
- * @param callback The callback
103
+ * ExecuteNext
104
+ * @param locationName The name of the location.
105
+ * @param nextLink The nextLink from the previous successful call to the Execute method.
106
+ * @param options The options parameters.
72
107
  */
73
- executeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CapabilitiesListResult>): void;
74
- executeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CapabilitiesListResult>, callback?: msRest.ServiceCallback<Models.CapabilitiesListResult>): Promise<Models.LocationBasedCapabilitiesExecuteNextResponse> {
108
+ private _executeNext(
109
+ locationName: string,
110
+ nextLink: string,
111
+ options?: LocationBasedCapabilitiesExecuteNextOptionalParams
112
+ ): Promise<LocationBasedCapabilitiesExecuteNextResponse> {
75
113
  return this.client.sendOperationRequest(
76
- {
77
- nextPageLink,
78
- options
79
- },
80
- executeNextOperationSpec,
81
- callback) as Promise<Models.LocationBasedCapabilitiesExecuteNextResponse>;
114
+ { locationName, nextLink, options },
115
+ executeNextOperationSpec
116
+ );
82
117
  }
83
118
  }
84
-
85
119
  // Operation Specifications
86
- const serializer = new msRest.Serializer(Mappers);
87
- const executeOperationSpec: msRest.OperationSpec = {
120
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
121
+
122
+ const executeOperationSpec: coreClient.OperationSpec = {
123
+ path:
124
+ "/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities",
88
125
  httpMethod: "GET",
89
- path: "subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities",
90
- urlParameters: [
91
- Parameters.subscriptionId,
92
- Parameters.locationName
93
- ],
94
- queryParameters: [
95
- Parameters.apiVersion
96
- ],
97
- headerParameters: [
98
- Parameters.acceptLanguage
99
- ],
100
126
  responses: {
101
127
  200: {
102
128
  bodyMapper: Mappers.CapabilitiesListResult
@@ -105,22 +131,18 @@ const executeOperationSpec: msRest.OperationSpec = {
105
131
  bodyMapper: Mappers.CloudError
106
132
  }
107
133
  },
134
+ queryParameters: [Parameters.apiVersion],
135
+ urlParameters: [
136
+ Parameters.$host,
137
+ Parameters.subscriptionId,
138
+ Parameters.locationName
139
+ ],
140
+ headerParameters: [Parameters.accept],
108
141
  serializer
109
142
  };
110
-
111
- const executeNextOperationSpec: msRest.OperationSpec = {
112
- httpMethod: "GET",
113
- baseUrl: "https://management.azure.com",
143
+ const executeNextOperationSpec: coreClient.OperationSpec = {
114
144
  path: "{nextLink}",
115
- urlParameters: [
116
- Parameters.nextPageLink
117
- ],
118
- queryParameters: [
119
- Parameters.apiVersion
120
- ],
121
- headerParameters: [
122
- Parameters.acceptLanguage
123
- ],
145
+ httpMethod: "GET",
124
146
  responses: {
125
147
  200: {
126
148
  bodyMapper: Mappers.CapabilitiesListResult
@@ -129,5 +151,13 @@ const executeNextOperationSpec: msRest.OperationSpec = {
129
151
  bodyMapper: Mappers.CloudError
130
152
  }
131
153
  },
154
+ queryParameters: [Parameters.apiVersion],
155
+ urlParameters: [
156
+ Parameters.$host,
157
+ Parameters.subscriptionId,
158
+ Parameters.nextLink,
159
+ Parameters.locationName
160
+ ],
161
+ headerParameters: [Parameters.accept],
132
162
  serializer
133
163
  };
@@ -3,64 +3,47 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Models from "../models";
12
- import * as Mappers from "../models/operationsMappers";
9
+ import { Operations } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
13
12
  import * as Parameters from "../models/parameters";
14
- import { PostgreSQLManagementClientContext } from "../postgreSQLManagementClientContext";
13
+ import { PostgreSQLManagementClient } from "../postgreSQLManagementClient";
14
+ import {
15
+ OperationsListOptionalParams,
16
+ OperationsListResponse
17
+ } from "../models";
15
18
 
16
- /** Class representing a Operations. */
17
- export class Operations {
18
- private readonly client: PostgreSQLManagementClientContext;
19
+ /** Class containing Operations operations. */
20
+ export class OperationsImpl implements Operations {
21
+ private readonly client: PostgreSQLManagementClient;
19
22
 
20
23
  /**
21
- * Create a Operations.
22
- * @param {PostgreSQLManagementClientContext} client Reference to the service client.
24
+ * Initialize a new instance of the class Operations class.
25
+ * @param client Reference to the service client
23
26
  */
24
- constructor(client: PostgreSQLManagementClientContext) {
27
+ constructor(client: PostgreSQLManagementClient) {
25
28
  this.client = client;
26
29
  }
27
30
 
28
31
  /**
29
32
  * Lists all of the available REST API operations.
30
- * @param [options] The optional parameters
31
- * @returns Promise<Models.OperationsListResponse>
33
+ * @param options The options parameters.
32
34
  */
33
- list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
34
- /**
35
- * @param callback The callback
36
- */
37
- list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
38
- /**
39
- * @param options The optional parameters
40
- * @param callback The callback
41
- */
42
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
43
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
44
- return this.client.sendOperationRequest(
45
- {
46
- options
47
- },
48
- listOperationSpec,
49
- callback) as Promise<Models.OperationsListResponse>;
35
+ list(
36
+ options?: OperationsListOptionalParams
37
+ ): Promise<OperationsListResponse> {
38
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
50
39
  }
51
40
  }
52
-
53
41
  // Operation Specifications
54
- const serializer = new msRest.Serializer(Mappers);
55
- const listOperationSpec: msRest.OperationSpec = {
42
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
43
+
44
+ const listOperationSpec: coreClient.OperationSpec = {
45
+ path: "/providers/Microsoft.DBforPostgreSQL/operations",
56
46
  httpMethod: "GET",
57
- path: "providers/Microsoft.DBforPostgreSQL/operations",
58
- queryParameters: [
59
- Parameters.apiVersion
60
- ],
61
- headerParameters: [
62
- Parameters.acceptLanguage
63
- ],
64
47
  responses: {
65
48
  200: {
66
49
  bodyMapper: Mappers.OperationListResult
@@ -69,5 +52,8 @@ const listOperationSpec: msRest.OperationSpec = {
69
52
  bodyMapper: Mappers.CloudError
70
53
  }
71
54
  },
55
+ queryParameters: [Parameters.apiVersion],
56
+ urlParameters: [Parameters.$host],
57
+ headerParameters: [Parameters.accept],
72
58
  serializer
73
59
  };