@azure/arm-postgresqlhsc 1.0.0-beta.1

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 (421) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +115 -0
  3. package/dist/browser/api/clusters/index.d.ts +3 -0
  4. package/dist/browser/api/clusters/index.js +4 -0
  5. package/dist/browser/api/clusters/index.js.map +1 -0
  6. package/dist/browser/api/clusters/operations.d.ts +51 -0
  7. package/dist/browser/api/clusters/operations.js +371 -0
  8. package/dist/browser/api/clusters/operations.js.map +1 -0
  9. package/dist/browser/api/clusters/options.d.ts +52 -0
  10. package/dist/browser/api/clusters/options.js +4 -0
  11. package/dist/browser/api/clusters/options.js.map +1 -0
  12. package/dist/browser/api/configurations/index.d.ts +3 -0
  13. package/dist/browser/api/configurations/index.js +4 -0
  14. package/dist/browser/api/configurations/index.js.map +1 -0
  15. package/dist/browser/api/configurations/operations.d.ts +35 -0
  16. package/dist/browser/api/configurations/operations.js +244 -0
  17. package/dist/browser/api/configurations/operations.js.map +1 -0
  18. package/dist/browser/api/configurations/options.d.ts +27 -0
  19. package/dist/browser/api/configurations/options.js +4 -0
  20. package/dist/browser/api/configurations/options.js.map +1 -0
  21. package/dist/browser/api/dBforPostgreSQLContext.d.ts +22 -0
  22. package/dist/browser/api/dBforPostgreSQLContext.js +26 -0
  23. package/dist/browser/api/dBforPostgreSQLContext.js.map +1 -0
  24. package/dist/browser/api/firewallRules/index.d.ts +3 -0
  25. package/dist/browser/api/firewallRules/index.js +4 -0
  26. package/dist/browser/api/firewallRules/index.js.map +1 -0
  27. package/dist/browser/api/firewallRules/operations.d.ts +23 -0
  28. package/dist/browser/api/firewallRules/operations.js +143 -0
  29. package/dist/browser/api/firewallRules/operations.js.map +1 -0
  30. package/dist/browser/api/firewallRules/options.d.ts +18 -0
  31. package/dist/browser/api/firewallRules/options.js +4 -0
  32. package/dist/browser/api/firewallRules/options.js.map +1 -0
  33. package/dist/browser/api/index.d.ts +3 -0
  34. package/dist/browser/api/index.js +4 -0
  35. package/dist/browser/api/index.js.map +1 -0
  36. package/dist/browser/api/operations/index.d.ts +3 -0
  37. package/dist/browser/api/operations/index.js +4 -0
  38. package/dist/browser/api/operations/index.js.map +1 -0
  39. package/dist/browser/api/operations/operations.d.ts +10 -0
  40. package/dist/browser/api/operations/operations.js +37 -0
  41. package/dist/browser/api/operations/operations.js.map +1 -0
  42. package/dist/browser/api/operations/options.d.ts +5 -0
  43. package/dist/browser/api/operations/options.js +4 -0
  44. package/dist/browser/api/operations/options.js.map +1 -0
  45. package/dist/browser/api/privateEndpointConnections/index.d.ts +3 -0
  46. package/dist/browser/api/privateEndpointConnections/index.js +4 -0
  47. package/dist/browser/api/privateEndpointConnections/index.js.map +1 -0
  48. package/dist/browser/api/privateEndpointConnections/operations.d.ts +23 -0
  49. package/dist/browser/api/privateEndpointConnections/operations.js +143 -0
  50. package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -0
  51. package/dist/browser/api/privateEndpointConnections/options.d.ts +18 -0
  52. package/dist/browser/api/privateEndpointConnections/options.js +4 -0
  53. package/dist/browser/api/privateEndpointConnections/options.js.map +1 -0
  54. package/dist/browser/api/privateLinkResources/index.d.ts +3 -0
  55. package/dist/browser/api/privateLinkResources/index.js +4 -0
  56. package/dist/browser/api/privateLinkResources/index.js.map +1 -0
  57. package/dist/browser/api/privateLinkResources/operations.d.ts +14 -0
  58. package/dist/browser/api/privateLinkResources/operations.js +71 -0
  59. package/dist/browser/api/privateLinkResources/operations.js.map +1 -0
  60. package/dist/browser/api/privateLinkResources/options.d.ts +8 -0
  61. package/dist/browser/api/privateLinkResources/options.js +4 -0
  62. package/dist/browser/api/privateLinkResources/options.js.map +1 -0
  63. package/dist/browser/api/roles/index.d.ts +3 -0
  64. package/dist/browser/api/roles/index.js +4 -0
  65. package/dist/browser/api/roles/index.js.map +1 -0
  66. package/dist/browser/api/roles/operations.d.ts +23 -0
  67. package/dist/browser/api/roles/operations.js +143 -0
  68. package/dist/browser/api/roles/operations.js.map +1 -0
  69. package/dist/browser/api/roles/options.d.ts +18 -0
  70. package/dist/browser/api/roles/options.js +4 -0
  71. package/dist/browser/api/roles/options.js.map +1 -0
  72. package/dist/browser/api/servers/index.d.ts +3 -0
  73. package/dist/browser/api/servers/index.js +4 -0
  74. package/dist/browser/api/servers/index.js.map +1 -0
  75. package/dist/browser/api/servers/operations.d.ts +14 -0
  76. package/dist/browser/api/servers/operations.js +71 -0
  77. package/dist/browser/api/servers/operations.js.map +1 -0
  78. package/dist/browser/api/servers/options.d.ts +8 -0
  79. package/dist/browser/api/servers/options.js +4 -0
  80. package/dist/browser/api/servers/options.js.map +1 -0
  81. package/dist/browser/classic/clusters/index.d.ts +32 -0
  82. package/dist/browser/classic/clusters/index.js +24 -0
  83. package/dist/browser/classic/clusters/index.js.map +1 -0
  84. package/dist/browser/classic/configurations/index.d.ts +24 -0
  85. package/dist/browser/classic/configurations/index.js +20 -0
  86. package/dist/browser/classic/configurations/index.js.map +1 -0
  87. package/dist/browser/classic/firewallRules/index.d.ts +18 -0
  88. package/dist/browser/classic/firewallRules/index.js +17 -0
  89. package/dist/browser/classic/firewallRules/index.js.map +1 -0
  90. package/dist/browser/classic/index.d.ts +9 -0
  91. package/dist/browser/classic/index.js +4 -0
  92. package/dist/browser/classic/index.js.map +1 -0
  93. package/dist/browser/classic/operations/index.d.ts +11 -0
  94. package/dist/browser/classic/operations/index.js +14 -0
  95. package/dist/browser/classic/operations/index.js.map +1 -0
  96. package/dist/browser/classic/privateEndpointConnections/index.d.ts +18 -0
  97. package/dist/browser/classic/privateEndpointConnections/index.js +17 -0
  98. package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -0
  99. package/dist/browser/classic/privateLinkResources/index.d.ts +13 -0
  100. package/dist/browser/classic/privateLinkResources/index.js +15 -0
  101. package/dist/browser/classic/privateLinkResources/index.js.map +1 -0
  102. package/dist/browser/classic/roles/index.d.ts +18 -0
  103. package/dist/browser/classic/roles/index.js +17 -0
  104. package/dist/browser/classic/roles/index.js.map +1 -0
  105. package/dist/browser/classic/servers/index.d.ts +13 -0
  106. package/dist/browser/classic/servers/index.js +15 -0
  107. package/dist/browser/classic/servers/index.js.map +1 -0
  108. package/dist/browser/dBforPostgreSQLClient.d.ts +36 -0
  109. package/dist/browser/dBforPostgreSQLClient.js +53 -0
  110. package/dist/browser/dBforPostgreSQLClient.js.map +1 -0
  111. package/dist/browser/index.d.ts +22 -0
  112. package/dist/browser/index.js +9 -0
  113. package/dist/browser/index.js.map +1 -0
  114. package/dist/browser/logger.d.ts +2 -0
  115. package/dist/browser/logger.js +5 -0
  116. package/dist/browser/logger.js.map +1 -0
  117. package/dist/browser/models/index.d.ts +3 -0
  118. package/dist/browser/models/index.js +4 -0
  119. package/dist/browser/models/index.js.map +1 -0
  120. package/dist/browser/models/models.d.ts +1151 -0
  121. package/dist/browser/models/models.js +1242 -0
  122. package/dist/browser/models/models.js.map +1 -0
  123. package/dist/browser/package.json +3 -0
  124. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  125. package/dist/browser/restorePollerHelpers.js +118 -0
  126. package/dist/browser/restorePollerHelpers.js.map +1 -0
  127. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  128. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  129. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  130. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  131. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  132. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  133. package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
  134. package/dist/browser/static-helpers/pollingHelpers.js +95 -0
  135. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  136. package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  137. package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
  138. package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  139. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  140. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  141. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  142. package/dist/commonjs/api/clusters/index.d.ts +3 -0
  143. package/dist/commonjs/api/clusters/index.js +48 -0
  144. package/dist/commonjs/api/clusters/index.js.map +7 -0
  145. package/dist/commonjs/api/clusters/operations.d.ts +51 -0
  146. package/dist/commonjs/api/clusters/operations.js +502 -0
  147. package/dist/commonjs/api/clusters/operations.js.map +7 -0
  148. package/dist/commonjs/api/clusters/options.d.ts +52 -0
  149. package/dist/commonjs/api/clusters/options.js +16 -0
  150. package/dist/commonjs/api/clusters/options.js.map +7 -0
  151. package/dist/commonjs/api/configurations/index.d.ts +3 -0
  152. package/dist/commonjs/api/configurations/index.js +40 -0
  153. package/dist/commonjs/api/configurations/index.js.map +7 -0
  154. package/dist/commonjs/api/configurations/operations.d.ts +35 -0
  155. package/dist/commonjs/api/configurations/operations.js +373 -0
  156. package/dist/commonjs/api/configurations/operations.js.map +7 -0
  157. package/dist/commonjs/api/configurations/options.d.ts +27 -0
  158. package/dist/commonjs/api/configurations/options.js +16 -0
  159. package/dist/commonjs/api/configurations/options.js.map +7 -0
  160. package/dist/commonjs/api/dBforPostgreSQLContext.d.ts +22 -0
  161. package/dist/commonjs/api/dBforPostgreSQLContext.js +47 -0
  162. package/dist/commonjs/api/dBforPostgreSQLContext.js.map +7 -0
  163. package/dist/commonjs/api/firewallRules/index.d.ts +3 -0
  164. package/dist/commonjs/api/firewallRules/index.js +34 -0
  165. package/dist/commonjs/api/firewallRules/index.js.map +7 -0
  166. package/dist/commonjs/api/firewallRules/operations.d.ts +23 -0
  167. package/dist/commonjs/api/firewallRules/operations.js +214 -0
  168. package/dist/commonjs/api/firewallRules/operations.js.map +7 -0
  169. package/dist/commonjs/api/firewallRules/options.d.ts +18 -0
  170. package/dist/commonjs/api/firewallRules/options.js +16 -0
  171. package/dist/commonjs/api/firewallRules/options.js.map +7 -0
  172. package/dist/commonjs/api/index.d.ts +3 -0
  173. package/dist/commonjs/api/index.js +28 -0
  174. package/dist/commonjs/api/index.js.map +7 -0
  175. package/dist/commonjs/api/operations/index.d.ts +3 -0
  176. package/dist/commonjs/api/operations/index.js +28 -0
  177. package/dist/commonjs/api/operations/index.js.map +7 -0
  178. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  179. package/dist/commonjs/api/operations/operations.js +74 -0
  180. package/dist/commonjs/api/operations/operations.js.map +7 -0
  181. package/dist/commonjs/api/operations/options.d.ts +5 -0
  182. package/dist/commonjs/api/operations/options.js +16 -0
  183. package/dist/commonjs/api/operations/options.js.map +7 -0
  184. package/dist/commonjs/api/privateEndpointConnections/index.d.ts +3 -0
  185. package/dist/commonjs/api/privateEndpointConnections/index.js +34 -0
  186. package/dist/commonjs/api/privateEndpointConnections/index.js.map +7 -0
  187. package/dist/commonjs/api/privateEndpointConnections/operations.d.ts +23 -0
  188. package/dist/commonjs/api/privateEndpointConnections/operations.js +220 -0
  189. package/dist/commonjs/api/privateEndpointConnections/operations.js.map +7 -0
  190. package/dist/commonjs/api/privateEndpointConnections/options.d.ts +18 -0
  191. package/dist/commonjs/api/privateEndpointConnections/options.js +16 -0
  192. package/dist/commonjs/api/privateEndpointConnections/options.js.map +7 -0
  193. package/dist/commonjs/api/privateLinkResources/index.d.ts +3 -0
  194. package/dist/commonjs/api/privateLinkResources/index.js +30 -0
  195. package/dist/commonjs/api/privateLinkResources/index.js.map +7 -0
  196. package/dist/commonjs/api/privateLinkResources/operations.d.ts +14 -0
  197. package/dist/commonjs/api/privateLinkResources/operations.js +123 -0
  198. package/dist/commonjs/api/privateLinkResources/operations.js.map +7 -0
  199. package/dist/commonjs/api/privateLinkResources/options.d.ts +8 -0
  200. package/dist/commonjs/api/privateLinkResources/options.js +16 -0
  201. package/dist/commonjs/api/privateLinkResources/options.js.map +7 -0
  202. package/dist/commonjs/api/roles/index.d.ts +3 -0
  203. package/dist/commonjs/api/roles/index.js +34 -0
  204. package/dist/commonjs/api/roles/index.js.map +7 -0
  205. package/dist/commonjs/api/roles/operations.d.ts +23 -0
  206. package/dist/commonjs/api/roles/operations.js +207 -0
  207. package/dist/commonjs/api/roles/operations.js.map +7 -0
  208. package/dist/commonjs/api/roles/options.d.ts +18 -0
  209. package/dist/commonjs/api/roles/options.js +16 -0
  210. package/dist/commonjs/api/roles/options.js.map +7 -0
  211. package/dist/commonjs/api/servers/index.d.ts +3 -0
  212. package/dist/commonjs/api/servers/index.js +30 -0
  213. package/dist/commonjs/api/servers/index.js.map +7 -0
  214. package/dist/commonjs/api/servers/operations.d.ts +14 -0
  215. package/dist/commonjs/api/servers/operations.js +117 -0
  216. package/dist/commonjs/api/servers/operations.js.map +7 -0
  217. package/dist/commonjs/api/servers/options.d.ts +8 -0
  218. package/dist/commonjs/api/servers/options.js +16 -0
  219. package/dist/commonjs/api/servers/options.js.map +7 -0
  220. package/dist/commonjs/classic/clusters/index.d.ts +32 -0
  221. package/dist/commonjs/classic/clusters/index.js +48 -0
  222. package/dist/commonjs/classic/clusters/index.js.map +7 -0
  223. package/dist/commonjs/classic/configurations/index.d.ts +24 -0
  224. package/dist/commonjs/classic/configurations/index.js +51 -0
  225. package/dist/commonjs/classic/configurations/index.js.map +7 -0
  226. package/dist/commonjs/classic/firewallRules/index.d.ts +18 -0
  227. package/dist/commonjs/classic/firewallRules/index.js +48 -0
  228. package/dist/commonjs/classic/firewallRules/index.js.map +7 -0
  229. package/dist/commonjs/classic/index.d.ts +9 -0
  230. package/dist/commonjs/classic/index.js +16 -0
  231. package/dist/commonjs/classic/index.js.map +7 -0
  232. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  233. package/dist/commonjs/classic/operations/index.js +38 -0
  234. package/dist/commonjs/classic/operations/index.js.map +7 -0
  235. package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +18 -0
  236. package/dist/commonjs/classic/privateEndpointConnections/index.js +48 -0
  237. package/dist/commonjs/classic/privateEndpointConnections/index.js.map +7 -0
  238. package/dist/commonjs/classic/privateLinkResources/index.d.ts +13 -0
  239. package/dist/commonjs/classic/privateLinkResources/index.js +39 -0
  240. package/dist/commonjs/classic/privateLinkResources/index.js.map +7 -0
  241. package/dist/commonjs/classic/roles/index.d.ts +18 -0
  242. package/dist/commonjs/classic/roles/index.js +41 -0
  243. package/dist/commonjs/classic/roles/index.js.map +7 -0
  244. package/dist/commonjs/classic/servers/index.d.ts +13 -0
  245. package/dist/commonjs/classic/servers/index.js +39 -0
  246. package/dist/commonjs/classic/servers/index.js.map +7 -0
  247. package/dist/commonjs/dBforPostgreSQLClient.d.ts +36 -0
  248. package/dist/commonjs/dBforPostgreSQLClient.js +75 -0
  249. package/dist/commonjs/dBforPostgreSQLClient.js.map +7 -0
  250. package/dist/commonjs/index.d.ts +22 -0
  251. package/dist/commonjs/index.js +74 -0
  252. package/dist/commonjs/index.js.map +7 -0
  253. package/dist/commonjs/logger.d.ts +2 -0
  254. package/dist/commonjs/logger.js +29 -0
  255. package/dist/commonjs/logger.js.map +7 -0
  256. package/dist/commonjs/models/index.d.ts +3 -0
  257. package/dist/commonjs/models/index.js +60 -0
  258. package/dist/commonjs/models/index.js.map +7 -0
  259. package/dist/commonjs/models/models.d.ts +1151 -0
  260. package/dist/commonjs/models/models.js +1314 -0
  261. package/dist/commonjs/models/models.js.map +7 -0
  262. package/dist/commonjs/package.json +3 -0
  263. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  264. package/dist/commonjs/restorePollerHelpers.js +131 -0
  265. package/dist/commonjs/restorePollerHelpers.js.map +7 -0
  266. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  267. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  268. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  269. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  270. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  271. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  272. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
  273. package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
  274. package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
  275. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  276. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
  277. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
  278. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  279. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  280. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  281. package/dist/commonjs/tsdoc-metadata.json +11 -0
  282. package/dist/esm/api/clusters/index.d.ts +3 -0
  283. package/dist/esm/api/clusters/index.js +4 -0
  284. package/dist/esm/api/clusters/index.js.map +1 -0
  285. package/dist/esm/api/clusters/operations.d.ts +51 -0
  286. package/dist/esm/api/clusters/operations.js +371 -0
  287. package/dist/esm/api/clusters/operations.js.map +1 -0
  288. package/dist/esm/api/clusters/options.d.ts +52 -0
  289. package/dist/esm/api/clusters/options.js +4 -0
  290. package/dist/esm/api/clusters/options.js.map +1 -0
  291. package/dist/esm/api/configurations/index.d.ts +3 -0
  292. package/dist/esm/api/configurations/index.js +4 -0
  293. package/dist/esm/api/configurations/index.js.map +1 -0
  294. package/dist/esm/api/configurations/operations.d.ts +35 -0
  295. package/dist/esm/api/configurations/operations.js +244 -0
  296. package/dist/esm/api/configurations/operations.js.map +1 -0
  297. package/dist/esm/api/configurations/options.d.ts +27 -0
  298. package/dist/esm/api/configurations/options.js +4 -0
  299. package/dist/esm/api/configurations/options.js.map +1 -0
  300. package/dist/esm/api/dBforPostgreSQLContext.d.ts +22 -0
  301. package/dist/esm/api/dBforPostgreSQLContext.js +26 -0
  302. package/dist/esm/api/dBforPostgreSQLContext.js.map +1 -0
  303. package/dist/esm/api/firewallRules/index.d.ts +3 -0
  304. package/dist/esm/api/firewallRules/index.js +4 -0
  305. package/dist/esm/api/firewallRules/index.js.map +1 -0
  306. package/dist/esm/api/firewallRules/operations.d.ts +23 -0
  307. package/dist/esm/api/firewallRules/operations.js +143 -0
  308. package/dist/esm/api/firewallRules/operations.js.map +1 -0
  309. package/dist/esm/api/firewallRules/options.d.ts +18 -0
  310. package/dist/esm/api/firewallRules/options.js +4 -0
  311. package/dist/esm/api/firewallRules/options.js.map +1 -0
  312. package/dist/esm/api/index.d.ts +3 -0
  313. package/dist/esm/api/index.js +4 -0
  314. package/dist/esm/api/index.js.map +1 -0
  315. package/dist/esm/api/operations/index.d.ts +3 -0
  316. package/dist/esm/api/operations/index.js +4 -0
  317. package/dist/esm/api/operations/index.js.map +1 -0
  318. package/dist/esm/api/operations/operations.d.ts +10 -0
  319. package/dist/esm/api/operations/operations.js +37 -0
  320. package/dist/esm/api/operations/operations.js.map +1 -0
  321. package/dist/esm/api/operations/options.d.ts +5 -0
  322. package/dist/esm/api/operations/options.js +4 -0
  323. package/dist/esm/api/operations/options.js.map +1 -0
  324. package/dist/esm/api/privateEndpointConnections/index.d.ts +3 -0
  325. package/dist/esm/api/privateEndpointConnections/index.js +4 -0
  326. package/dist/esm/api/privateEndpointConnections/index.js.map +1 -0
  327. package/dist/esm/api/privateEndpointConnections/operations.d.ts +23 -0
  328. package/dist/esm/api/privateEndpointConnections/operations.js +143 -0
  329. package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -0
  330. package/dist/esm/api/privateEndpointConnections/options.d.ts +18 -0
  331. package/dist/esm/api/privateEndpointConnections/options.js +4 -0
  332. package/dist/esm/api/privateEndpointConnections/options.js.map +1 -0
  333. package/dist/esm/api/privateLinkResources/index.d.ts +3 -0
  334. package/dist/esm/api/privateLinkResources/index.js +4 -0
  335. package/dist/esm/api/privateLinkResources/index.js.map +1 -0
  336. package/dist/esm/api/privateLinkResources/operations.d.ts +14 -0
  337. package/dist/esm/api/privateLinkResources/operations.js +71 -0
  338. package/dist/esm/api/privateLinkResources/operations.js.map +1 -0
  339. package/dist/esm/api/privateLinkResources/options.d.ts +8 -0
  340. package/dist/esm/api/privateLinkResources/options.js +4 -0
  341. package/dist/esm/api/privateLinkResources/options.js.map +1 -0
  342. package/dist/esm/api/roles/index.d.ts +3 -0
  343. package/dist/esm/api/roles/index.js +4 -0
  344. package/dist/esm/api/roles/index.js.map +1 -0
  345. package/dist/esm/api/roles/operations.d.ts +23 -0
  346. package/dist/esm/api/roles/operations.js +143 -0
  347. package/dist/esm/api/roles/operations.js.map +1 -0
  348. package/dist/esm/api/roles/options.d.ts +18 -0
  349. package/dist/esm/api/roles/options.js +4 -0
  350. package/dist/esm/api/roles/options.js.map +1 -0
  351. package/dist/esm/api/servers/index.d.ts +3 -0
  352. package/dist/esm/api/servers/index.js +4 -0
  353. package/dist/esm/api/servers/index.js.map +1 -0
  354. package/dist/esm/api/servers/operations.d.ts +14 -0
  355. package/dist/esm/api/servers/operations.js +71 -0
  356. package/dist/esm/api/servers/operations.js.map +1 -0
  357. package/dist/esm/api/servers/options.d.ts +8 -0
  358. package/dist/esm/api/servers/options.js +4 -0
  359. package/dist/esm/api/servers/options.js.map +1 -0
  360. package/dist/esm/classic/clusters/index.d.ts +32 -0
  361. package/dist/esm/classic/clusters/index.js +24 -0
  362. package/dist/esm/classic/clusters/index.js.map +1 -0
  363. package/dist/esm/classic/configurations/index.d.ts +24 -0
  364. package/dist/esm/classic/configurations/index.js +20 -0
  365. package/dist/esm/classic/configurations/index.js.map +1 -0
  366. package/dist/esm/classic/firewallRules/index.d.ts +18 -0
  367. package/dist/esm/classic/firewallRules/index.js +17 -0
  368. package/dist/esm/classic/firewallRules/index.js.map +1 -0
  369. package/dist/esm/classic/index.d.ts +9 -0
  370. package/dist/esm/classic/index.js +4 -0
  371. package/dist/esm/classic/index.js.map +1 -0
  372. package/dist/esm/classic/operations/index.d.ts +11 -0
  373. package/dist/esm/classic/operations/index.js +14 -0
  374. package/dist/esm/classic/operations/index.js.map +1 -0
  375. package/dist/esm/classic/privateEndpointConnections/index.d.ts +18 -0
  376. package/dist/esm/classic/privateEndpointConnections/index.js +17 -0
  377. package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -0
  378. package/dist/esm/classic/privateLinkResources/index.d.ts +13 -0
  379. package/dist/esm/classic/privateLinkResources/index.js +15 -0
  380. package/dist/esm/classic/privateLinkResources/index.js.map +1 -0
  381. package/dist/esm/classic/roles/index.d.ts +18 -0
  382. package/dist/esm/classic/roles/index.js +17 -0
  383. package/dist/esm/classic/roles/index.js.map +1 -0
  384. package/dist/esm/classic/servers/index.d.ts +13 -0
  385. package/dist/esm/classic/servers/index.js +15 -0
  386. package/dist/esm/classic/servers/index.js.map +1 -0
  387. package/dist/esm/dBforPostgreSQLClient.d.ts +36 -0
  388. package/dist/esm/dBforPostgreSQLClient.js +53 -0
  389. package/dist/esm/dBforPostgreSQLClient.js.map +1 -0
  390. package/dist/esm/index.d.ts +22 -0
  391. package/dist/esm/index.js +9 -0
  392. package/dist/esm/index.js.map +1 -0
  393. package/dist/esm/logger.d.ts +2 -0
  394. package/dist/esm/logger.js +5 -0
  395. package/dist/esm/logger.js.map +1 -0
  396. package/dist/esm/models/index.d.ts +3 -0
  397. package/dist/esm/models/index.js +4 -0
  398. package/dist/esm/models/index.js.map +1 -0
  399. package/dist/esm/models/models.d.ts +1151 -0
  400. package/dist/esm/models/models.js +1242 -0
  401. package/dist/esm/models/models.js.map +1 -0
  402. package/dist/esm/package.json +3 -0
  403. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  404. package/dist/esm/restorePollerHelpers.js +118 -0
  405. package/dist/esm/restorePollerHelpers.js.map +1 -0
  406. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  407. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  408. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  409. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  410. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  411. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  412. package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
  413. package/dist/esm/static-helpers/pollingHelpers.js +95 -0
  414. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  415. package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  416. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
  417. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  418. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  419. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  420. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  421. package/package.json +267 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/models/models.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { areAllPropsUndefined } from \"../static-helpers/serialization/check-prop-undefined.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for an operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** Represents a cluster. */\nexport interface Cluster extends TrackedResource {\n /** Describes the identity of the cluster. */\n identity?: IdentityProperties;\n /** Indicates whether the cluster was created using AAD authentication. */\n readonly aadAuthEnabled?: AadEnabledEnum;\n /** The administrator's login name of the servers in the cluster. */\n readonly administratorLogin?: string;\n /** The password of the administrator login. Required for creation. */\n administratorLoginPassword?: string;\n /** The data encryption properties of a cluster. */\n dataEncryption?: DataEncryption;\n /** Provisioning state of the cluster */\n readonly provisioningState?: string;\n /** A state of a cluster/server that is visible to user. */\n readonly state?: string;\n /** The major PostgreSQL version on all cluster servers. */\n postgresqlVersion?: string;\n /** The Citus extension version on all cluster servers. */\n citusVersion?: string;\n /** Maintenance window of a cluster. */\n maintenanceWindow?: MaintenanceWindow;\n /** Preferred primary availability zone (AZ) for all cluster servers. */\n preferredPrimaryZone?: string;\n /** If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed. */\n enableShardsOnCoordinator?: boolean;\n /** If high availability (HA) is enabled or not for the cluster. */\n enableHa?: boolean;\n /** The edition of a coordinator server (default: GeneralPurpose). Required for creation. */\n coordinatorServerEdition?: string;\n /** The storage of a server in MB. Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */\n coordinatorStorageQuotaInMb?: number;\n /** The vCores count of a server (max: 96). Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */\n coordinatorVCores?: number;\n /** If public access is enabled on coordinator. */\n coordinatorEnablePublicIpAccess?: boolean;\n /** The edition of a node server (default: MemoryOptimized). */\n nodeServerEdition?: string;\n /** Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. Required for creation. */\n nodeCount?: number;\n /** The storage in MB on each worker node. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */\n nodeStorageQuotaInMb?: number;\n /** The compute in vCores on each worker node (max: 104). See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */\n nodeVCores?: number;\n /** If public access is enabled on worker nodes. */\n nodeEnablePublicIpAccess?: boolean;\n /** The list of server names in the cluster */\n readonly serverNames?: ServerNameItem[];\n /** The resource id of source cluster for read replica clusters. */\n sourceResourceId?: string;\n /** The Azure region of source cluster for read replica clusters. */\n sourceLocation?: string;\n /** Indicates whether the cluster was created with a password or using AAD authentication. */\n readonly passwordEnabled?: PasswordEnabledEnum;\n /** Date and time in UTC (ISO8601 format) for cluster restore. */\n pointInTimeUTC?: Date;\n /** The array of read replica clusters. */\n readonly readReplicas?: string[];\n /** The earliest restore point time (ISO8601 format) for the cluster. */\n readonly earliestRestoreTime?: Date;\n /** The private endpoint connections for a cluster. */\n readonly privateEndpointConnections?: SimplePrivateEndpointConnection[];\n /** The database name of the cluster. Only one database per cluster is supported. */\n databaseName?: string;\n /** If cluster backup is stored in another Azure region in addition to the copy of the backup stored in the cluster's region. Enabled only at the time of cluster creation. */\n enableGeoBackup?: boolean;\n /** Authentication configuration of a cluster. */\n authConfig?: AuthConfig;\n}\n\nexport function clusterSerializer(item: Cluster): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: areAllPropsUndefined(item, [\n \"administratorLoginPassword\",\n \"dataEncryption\",\n \"postgresqlVersion\",\n \"citusVersion\",\n \"maintenanceWindow\",\n \"preferredPrimaryZone\",\n \"enableShardsOnCoordinator\",\n \"enableHa\",\n \"coordinatorServerEdition\",\n \"coordinatorStorageQuotaInMb\",\n \"coordinatorVCores\",\n \"coordinatorEnablePublicIpAccess\",\n \"nodeServerEdition\",\n \"nodeCount\",\n \"nodeStorageQuotaInMb\",\n \"nodeVCores\",\n \"nodeEnablePublicIpAccess\",\n \"sourceResourceId\",\n \"sourceLocation\",\n \"pointInTimeUTC\",\n \"databaseName\",\n \"enableGeoBackup\",\n \"authConfig\",\n ])\n ? undefined\n : _clusterPropertiesSerializer(item),\n identity: !item[\"identity\"] ? item[\"identity\"] : identityPropertiesSerializer(item[\"identity\"]),\n };\n}\n\nexport function clusterDeserializer(item: any): Cluster {\n return {\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _clusterPropertiesDeserializer(item[\"properties\"])),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : identityPropertiesDeserializer(item[\"identity\"]),\n };\n}\n\n/** Properties of the cluster. */\nexport interface ClusterProperties {\n /** Indicates whether the cluster was created using AAD authentication. */\n readonly aadAuthEnabled?: AadEnabledEnum;\n /** The administrator's login name of the servers in the cluster. */\n readonly administratorLogin?: string;\n /** The password of the administrator login. Required for creation. */\n administratorLoginPassword?: string;\n /** The data encryption properties of a cluster. */\n dataEncryption?: DataEncryption;\n /** Provisioning state of the cluster */\n readonly provisioningState?: string;\n /** A state of a cluster/server that is visible to user. */\n readonly state?: string;\n /** The major PostgreSQL version on all cluster servers. */\n postgresqlVersion?: string;\n /** The Citus extension version on all cluster servers. */\n citusVersion?: string;\n /** Maintenance window of a cluster. */\n maintenanceWindow?: MaintenanceWindow;\n /** Preferred primary availability zone (AZ) for all cluster servers. */\n preferredPrimaryZone?: string;\n /** If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed. */\n enableShardsOnCoordinator?: boolean;\n /** If high availability (HA) is enabled or not for the cluster. */\n enableHa?: boolean;\n /** The edition of a coordinator server (default: GeneralPurpose). Required for creation. */\n coordinatorServerEdition?: string;\n /** The storage of a server in MB. Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */\n coordinatorStorageQuotaInMb?: number;\n /** The vCores count of a server (max: 96). Required for creation. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */\n coordinatorVCores?: number;\n /** If public access is enabled on coordinator. */\n coordinatorEnablePublicIpAccess?: boolean;\n /** The edition of a node server (default: MemoryOptimized). */\n nodeServerEdition?: string;\n /** Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. Required for creation. */\n nodeCount?: number;\n /** The storage in MB on each worker node. See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */\n nodeStorageQuotaInMb?: number;\n /** The compute in vCores on each worker node (max: 104). See https://learn.microsoft.com/azure/cosmos-db/postgresql/resources-compute for more information. */\n nodeVCores?: number;\n /** If public access is enabled on worker nodes. */\n nodeEnablePublicIpAccess?: boolean;\n /** The list of server names in the cluster */\n readonly serverNames?: ServerNameItem[];\n /** The resource id of source cluster for read replica clusters. */\n sourceResourceId?: string;\n /** The Azure region of source cluster for read replica clusters. */\n sourceLocation?: string;\n /** Indicates whether the cluster was created with a password or using AAD authentication. */\n readonly passwordEnabled?: PasswordEnabledEnum;\n /** Date and time in UTC (ISO8601 format) for cluster restore. */\n pointInTimeUTC?: Date;\n /** The array of read replica clusters. */\n readonly readReplicas?: string[];\n /** The earliest restore point time (ISO8601 format) for the cluster. */\n readonly earliestRestoreTime?: Date;\n /** The private endpoint connections for a cluster. */\n readonly privateEndpointConnections?: SimplePrivateEndpointConnection[];\n /** The database name of the cluster. Only one database per cluster is supported. */\n databaseName?: string;\n /** If cluster backup is stored in another Azure region in addition to the copy of the backup stored in the cluster's region. Enabled only at the time of cluster creation. */\n enableGeoBackup?: boolean;\n /** Authentication configuration of a cluster. */\n authConfig?: AuthConfig;\n}\n\nexport function clusterPropertiesSerializer(item: ClusterProperties): any {\n return {\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n dataEncryption: !item[\"dataEncryption\"]\n ? item[\"dataEncryption\"]\n : dataEncryptionSerializer(item[\"dataEncryption\"]),\n postgresqlVersion: item[\"postgresqlVersion\"],\n citusVersion: item[\"citusVersion\"],\n maintenanceWindow: !item[\"maintenanceWindow\"]\n ? item[\"maintenanceWindow\"]\n : maintenanceWindowSerializer(item[\"maintenanceWindow\"]),\n preferredPrimaryZone: item[\"preferredPrimaryZone\"],\n enableShardsOnCoordinator: item[\"enableShardsOnCoordinator\"],\n enableHa: item[\"enableHa\"],\n coordinatorServerEdition: item[\"coordinatorServerEdition\"],\n coordinatorStorageQuotaInMb: item[\"coordinatorStorageQuotaInMb\"],\n coordinatorVCores: item[\"coordinatorVCores\"],\n coordinatorEnablePublicIpAccess: item[\"coordinatorEnablePublicIpAccess\"],\n nodeServerEdition: item[\"nodeServerEdition\"],\n nodeCount: item[\"nodeCount\"],\n nodeStorageQuotaInMb: item[\"nodeStorageQuotaInMb\"],\n nodeVCores: item[\"nodeVCores\"],\n nodeEnablePublicIpAccess: item[\"nodeEnablePublicIpAccess\"],\n sourceResourceId: item[\"sourceResourceId\"],\n sourceLocation: item[\"sourceLocation\"],\n pointInTimeUTC: !item[\"pointInTimeUTC\"]\n ? item[\"pointInTimeUTC\"]\n : item[\"pointInTimeUTC\"].toISOString(),\n databaseName: item[\"databaseName\"],\n enableGeoBackup: item[\"enableGeoBackup\"],\n authConfig: !item[\"authConfig\"] ? item[\"authConfig\"] : authConfigSerializer(item[\"authConfig\"]),\n };\n}\n\nexport function clusterPropertiesDeserializer(item: any): ClusterProperties {\n return {\n aadAuthEnabled: item[\"aadAuthEnabled\"],\n administratorLogin: item[\"administratorLogin\"],\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n dataEncryption: !item[\"dataEncryption\"]\n ? item[\"dataEncryption\"]\n : dataEncryptionDeserializer(item[\"dataEncryption\"]),\n provisioningState: item[\"provisioningState\"],\n state: item[\"state\"],\n postgresqlVersion: item[\"postgresqlVersion\"],\n citusVersion: item[\"citusVersion\"],\n maintenanceWindow: !item[\"maintenanceWindow\"]\n ? item[\"maintenanceWindow\"]\n : maintenanceWindowDeserializer(item[\"maintenanceWindow\"]),\n preferredPrimaryZone: item[\"preferredPrimaryZone\"],\n enableShardsOnCoordinator: item[\"enableShardsOnCoordinator\"],\n enableHa: item[\"enableHa\"],\n coordinatorServerEdition: item[\"coordinatorServerEdition\"],\n coordinatorStorageQuotaInMb: item[\"coordinatorStorageQuotaInMb\"],\n coordinatorVCores: item[\"coordinatorVCores\"],\n coordinatorEnablePublicIpAccess: item[\"coordinatorEnablePublicIpAccess\"],\n nodeServerEdition: item[\"nodeServerEdition\"],\n nodeCount: item[\"nodeCount\"],\n nodeStorageQuotaInMb: item[\"nodeStorageQuotaInMb\"],\n nodeVCores: item[\"nodeVCores\"],\n nodeEnablePublicIpAccess: item[\"nodeEnablePublicIpAccess\"],\n serverNames: !item[\"serverNames\"]\n ? item[\"serverNames\"]\n : serverNameItemArrayDeserializer(item[\"serverNames\"]),\n sourceResourceId: item[\"sourceResourceId\"],\n sourceLocation: item[\"sourceLocation\"],\n passwordEnabled: item[\"passwordEnabled\"],\n pointInTimeUTC: !item[\"pointInTimeUTC\"]\n ? item[\"pointInTimeUTC\"]\n : new Date(item[\"pointInTimeUTC\"]),\n readReplicas: !item[\"readReplicas\"]\n ? item[\"readReplicas\"]\n : item[\"readReplicas\"].map((p: any) => {\n return p;\n }),\n earliestRestoreTime: !item[\"earliestRestoreTime\"]\n ? item[\"earliestRestoreTime\"]\n : new Date(item[\"earliestRestoreTime\"]),\n privateEndpointConnections: !item[\"privateEndpointConnections\"]\n ? item[\"privateEndpointConnections\"]\n : simplePrivateEndpointConnectionArrayDeserializer(item[\"privateEndpointConnections\"]),\n databaseName: item[\"databaseName\"],\n enableGeoBackup: item[\"enableGeoBackup\"],\n authConfig: !item[\"authConfig\"]\n ? item[\"authConfig\"]\n : authConfigDeserializer(item[\"authConfig\"]),\n };\n}\n\n/** Indicates whether the cluster was created using AAD authentication. */\nexport enum KnownAadEnabledEnum {\n /** enabled */\n Enabled = \"enabled\",\n /** disabled */\n Disabled = \"disabled\",\n}\n\n/**\n * Indicates whether the cluster was created using AAD authentication. \\\n * {@link KnownAadEnabledEnum} can be used interchangeably with AadEnabledEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **enabled** \\\n * **disabled**\n */\nexport type AadEnabledEnum = string;\n\n/** The data encryption properties of a cluster. */\nexport interface DataEncryption {\n /** URI for the key in keyvault for data encryption of the primary server. */\n primaryKeyUri?: string;\n /** Resource Id for the User assigned identity to be used for data encryption of the primary server. */\n primaryUserAssignedIdentityId?: string;\n type?: DataEncryptionType;\n}\n\nexport function dataEncryptionSerializer(item: DataEncryption): any {\n return {\n primaryKeyUri: item[\"primaryKeyUri\"],\n primaryUserAssignedIdentityId: item[\"primaryUserAssignedIdentityId\"],\n type: item[\"type\"],\n };\n}\n\nexport function dataEncryptionDeserializer(item: any): DataEncryption {\n return {\n primaryKeyUri: item[\"primaryKeyUri\"],\n primaryUserAssignedIdentityId: item[\"primaryUserAssignedIdentityId\"],\n type: item[\"type\"],\n };\n}\n\n/** Known values of {@link DataEncryptionType} that the service accepts. */\nexport enum KnownDataEncryptionType {\n /** AzureKeyVault */\n AzureKeyVault = \"AzureKeyVault\",\n /** SystemAssigned */\n SystemAssigned = \"SystemAssigned\",\n}\n\n/** Type of DataEncryptionType */\nexport type DataEncryptionType = string;\n\n/** Schedule settings for regular cluster updates. */\nexport interface MaintenanceWindow {\n /** Indicates whether custom maintenance window is enabled or not. */\n customWindow?: string;\n /** Start hour within preferred day of the week for maintenance window. */\n startHour?: number;\n /** Start minute within the start hour for maintenance window. */\n startMinute?: number;\n /** Preferred day of the week for maintenance window. */\n dayOfWeek?: number;\n}\n\nexport function maintenanceWindowSerializer(item: MaintenanceWindow): any {\n return {\n customWindow: item[\"customWindow\"],\n startHour: item[\"startHour\"],\n startMinute: item[\"startMinute\"],\n dayOfWeek: item[\"dayOfWeek\"],\n };\n}\n\nexport function maintenanceWindowDeserializer(item: any): MaintenanceWindow {\n return {\n customWindow: item[\"customWindow\"],\n startHour: item[\"startHour\"],\n startMinute: item[\"startMinute\"],\n dayOfWeek: item[\"dayOfWeek\"],\n };\n}\n\nexport function serverNameItemArrayDeserializer(result: Array<ServerNameItem>): any[] {\n return result.map((item) => {\n return serverNameItemDeserializer(item);\n });\n}\n\n/** The name object for a server. */\nexport interface ServerNameItem {\n /** The name of a server. */\n name?: string;\n /** The fully qualified domain name of a server. */\n readonly fullyQualifiedDomainName?: string;\n}\n\nexport function serverNameItemDeserializer(item: any): ServerNameItem {\n return {\n name: item[\"name\"],\n fullyQualifiedDomainName: item[\"fullyQualifiedDomainName\"],\n };\n}\n\n/** Indicates whether the cluster was created with a password or using AAD authentication. */\nexport enum KnownPasswordEnabledEnum {\n /** enabled */\n Enabled = \"enabled\",\n /** disabled */\n Disabled = \"disabled\",\n}\n\n/**\n * Indicates whether the cluster was created with a password or using AAD authentication. \\\n * {@link KnownPasswordEnabledEnum} can be used interchangeably with PasswordEnabledEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **enabled** \\\n * **disabled**\n */\nexport type PasswordEnabledEnum = string;\n\nexport function simplePrivateEndpointConnectionArrayDeserializer(\n result: Array<SimplePrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return simplePrivateEndpointConnectionDeserializer(item);\n });\n}\n\n/** A private endpoint connection. */\nexport interface SimplePrivateEndpointConnection extends ProxyResource {\n /** Private endpoint which the connection belongs to. */\n privateEndpoint?: PrivateEndpointProperty;\n /** Group ids of the private endpoint connection. */\n groupIds?: string[];\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;\n}\n\nexport function simplePrivateEndpointConnectionDeserializer(\n item: any,\n): SimplePrivateEndpointConnection {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _simplePrivateEndpointConnectionPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** The properties in private endpoint connection */\nexport interface PrivateEndpointConnectionSimpleProperties {\n /** Private endpoint which the connection belongs to. */\n privateEndpoint?: PrivateEndpointProperty;\n /** Group ids of the private endpoint connection. */\n groupIds?: string[];\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;\n}\n\nexport function privateEndpointConnectionSimplePropertiesDeserializer(\n item: any,\n): PrivateEndpointConnectionSimpleProperties {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointPropertyDeserializer(item[\"privateEndpoint\"]),\n groupIds: !item[\"groupIds\"]\n ? item[\"groupIds\"]\n : item[\"groupIds\"].map((p: any) => {\n return p;\n }),\n privateLinkServiceConnectionState: !item[\"privateLinkServiceConnectionState\"]\n ? item[\"privateLinkServiceConnectionState\"]\n : privateLinkServiceConnectionStateDeserializer(item[\"privateLinkServiceConnectionState\"]),\n };\n}\n\n/** Property to represent resource id of the private endpoint. */\nexport interface PrivateEndpointProperty {\n /** Resource id of the private endpoint. */\n id?: string;\n}\n\nexport function privateEndpointPropertyDeserializer(item: any): PrivateEndpointProperty {\n return {\n id: item[\"id\"],\n };\n}\n\n/** A collection of information about the state of the connection between service consumer and provider. */\nexport interface PrivateLinkServiceConnectionState {\n /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */\n status?: PrivateEndpointServiceConnectionStatus;\n /** The reason for approval/rejection of the connection. */\n description?: string;\n /** A message indicating if changes on the service provider require any updates on the consumer. */\n actionsRequired?: string;\n}\n\nexport function privateLinkServiceConnectionStateSerializer(\n item: PrivateLinkServiceConnectionState,\n): any {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\nexport function privateLinkServiceConnectionStateDeserializer(\n item: any,\n): PrivateLinkServiceConnectionState {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\n/** The private endpoint connection status. */\nexport enum KnownPrivateEndpointServiceConnectionStatus {\n /** Connection waiting for approval or rejection */\n Pending = \"Pending\",\n /** Connection approved */\n Approved = \"Approved\",\n /** Connection Rejected */\n Rejected = \"Rejected\",\n}\n\n/**\n * The private endpoint connection status. \\\n * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending**: Connection waiting for approval or rejection \\\n * **Approved**: Connection approved \\\n * **Rejected**: Connection Rejected\n */\nexport type PrivateEndpointServiceConnectionStatus = string;\n\n/** Authentication configuration of a cluster. */\nexport interface AuthConfig {\n activeDirectoryAuth?: ActiveDirectoryAuth;\n passwordAuth?: PasswordAuth;\n}\n\nexport function authConfigSerializer(item: AuthConfig): any {\n return { activeDirectoryAuth: item[\"activeDirectoryAuth\"], passwordAuth: item[\"passwordAuth\"] };\n}\n\nexport function authConfigDeserializer(item: any): AuthConfig {\n return {\n activeDirectoryAuth: item[\"activeDirectoryAuth\"],\n passwordAuth: item[\"passwordAuth\"],\n };\n}\n\n/** Known values of {@link ActiveDirectoryAuth} that the service accepts. */\nexport enum KnownActiveDirectoryAuth {\n /** enabled */\n Enabled = \"enabled\",\n /** disabled */\n Disabled = \"disabled\",\n}\n\n/** Type of ActiveDirectoryAuth */\nexport type ActiveDirectoryAuth = string;\n\n/** Known values of {@link PasswordAuth} that the service accepts. */\nexport enum KnownPasswordAuth {\n /** enabled */\n Enabled = \"enabled\",\n /** disabled */\n Disabled = \"disabled\",\n}\n\n/** Type of PasswordAuth */\nexport type PasswordAuth = string;\n\n/** Describes the identity of the cluster. */\nexport interface IdentityProperties {\n type?: IdentityType;\n /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity>;\n}\n\nexport function identityPropertiesSerializer(item: IdentityProperties): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: !item[\"userAssignedIdentities\"]\n ? item[\"userAssignedIdentities\"]\n : userAssignedIdentityRecordSerializer(item[\"userAssignedIdentities\"]),\n };\n}\n\nexport function identityPropertiesDeserializer(item: any): IdentityProperties {\n return {\n type: item[\"type\"],\n userAssignedIdentities: !item[\"userAssignedIdentities\"]\n ? item[\"userAssignedIdentities\"]\n : userAssignedIdentityRecordDeserializer(item[\"userAssignedIdentities\"]),\n };\n}\n\n/** Known values of {@link IdentityType} that the service accepts. */\nexport enum KnownIdentityType {\n /** UserAssigned */\n UserAssigned = \"UserAssigned\",\n /** SystemAssigned */\n SystemAssigned = \"SystemAssigned\",\n}\n\n/** Type of IdentityType */\nexport type IdentityType = string;\n\nexport function userAssignedIdentityRecordSerializer(\n item: Record<string, UserAssignedIdentity>,\n): Record<string, any> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : userAssignedIdentitySerializer(item[key]);\n });\n return result;\n}\n\nexport function userAssignedIdentityRecordDeserializer(\n item: Record<string, any>,\n): Record<string, UserAssignedIdentity> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : userAssignedIdentityDeserializer(item[key]);\n });\n return result;\n}\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(_item: UserAssignedIdentity): any {\n return {};\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\n };\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(_item: ProxyResource): any {\n return {};\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(_item: Resource): any {\n return {};\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n };\n}\n\n/** Represents a cluster for update. */\nexport interface ClusterForUpdate {\n /** Describes the identity of the cluster. */\n identity?: IdentityProperties;\n /** Application-specific metadata in the form of key-value pairs. */\n tags?: Record<string, string>;\n /** The password of the administrator login. Each cluster is created with pre-defined administrative role called \u2018citus\u2019. */\n administratorLoginPassword?: string;\n /** The major PostgreSQL version on all cluster servers. */\n postgresqlVersion?: string;\n /** The Citus extension version on all cluster servers. */\n citusVersion?: string;\n /** If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed. */\n enableShardsOnCoordinator?: boolean;\n /** If high availability (HA) is enabled or not for the cluster. */\n enableHa?: boolean;\n /** Preferred primary availability zone (AZ) for all cluster servers. */\n preferredPrimaryZone?: string;\n /** The edition of the coordinator (default: GeneralPurpose). */\n coordinatorServerEdition?: string;\n /** The storage of the coordinator in MB. */\n coordinatorStorageQuotaInMb?: number;\n /** The vCores count of the coordinator (max: 96). */\n coordinatorVCores?: number;\n /** If public access is enabled on coordinator. */\n coordinatorEnablePublicIpAccess?: boolean;\n /** The edition of a node (default: MemoryOptimized). */\n nodeServerEdition?: string;\n /** Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. */\n nodeCount?: number;\n /** The storage in MB on each worker node. */\n nodeStorageQuotaInMb?: number;\n /** The compute in vCores on each worker node (max: 104). */\n nodeVCores?: number;\n /** If public access is enabled on worker nodes. */\n readonly nodeEnablePublicIpAccess?: boolean;\n /** Maintenance window of a cluster. */\n maintenanceWindow?: MaintenanceWindow;\n}\n\nexport function clusterForUpdateSerializer(item: ClusterForUpdate): any {\n return {\n properties: areAllPropsUndefined(item, [\n \"administratorLoginPassword\",\n \"postgresqlVersion\",\n \"citusVersion\",\n \"enableShardsOnCoordinator\",\n \"enableHa\",\n \"preferredPrimaryZone\",\n \"coordinatorServerEdition\",\n \"coordinatorStorageQuotaInMb\",\n \"coordinatorVCores\",\n \"coordinatorEnablePublicIpAccess\",\n \"nodeServerEdition\",\n \"nodeCount\",\n \"nodeStorageQuotaInMb\",\n \"nodeVCores\",\n \"maintenanceWindow\",\n ])\n ? undefined\n : _clusterForUpdatePropertiesSerializer(item),\n identity: !item[\"identity\"] ? item[\"identity\"] : identityPropertiesSerializer(item[\"identity\"]),\n tags: item[\"tags\"],\n };\n}\n\n/** The properties used to update a cluster. */\nexport interface ClusterPropertiesForUpdate {\n /** The password of the administrator login. Each cluster is created with pre-defined administrative role called \u2018citus\u2019. */\n administratorLoginPassword?: string;\n /** The major PostgreSQL version on all cluster servers. */\n postgresqlVersion?: string;\n /** The Citus extension version on all cluster servers. */\n citusVersion?: string;\n /** If distributed tables are placed on coordinator or not. Should be set to 'true' on single node clusters. Requires shard rebalancing after value is changed. */\n enableShardsOnCoordinator?: boolean;\n /** If high availability (HA) is enabled or not for the cluster. */\n enableHa?: boolean;\n /** Preferred primary availability zone (AZ) for all cluster servers. */\n preferredPrimaryZone?: string;\n /** The edition of the coordinator (default: GeneralPurpose). */\n coordinatorServerEdition?: string;\n /** The storage of the coordinator in MB. */\n coordinatorStorageQuotaInMb?: number;\n /** The vCores count of the coordinator (max: 96). */\n coordinatorVCores?: number;\n /** If public access is enabled on coordinator. */\n coordinatorEnablePublicIpAccess?: boolean;\n /** The edition of a node (default: MemoryOptimized). */\n nodeServerEdition?: string;\n /** Worker node count of the cluster. When node count is 0, it represents a single node configuration with the ability to create distributed tables on that node. 2 or more worker nodes represent multi-node configuration. Node count value cannot be 1. */\n nodeCount?: number;\n /** The storage in MB on each worker node. */\n nodeStorageQuotaInMb?: number;\n /** The compute in vCores on each worker node (max: 104). */\n nodeVCores?: number;\n /** If public access is enabled on worker nodes. */\n readonly nodeEnablePublicIpAccess?: boolean;\n /** Maintenance window of a cluster. */\n maintenanceWindow?: MaintenanceWindow;\n}\n\nexport function clusterPropertiesForUpdateSerializer(item: ClusterPropertiesForUpdate): any {\n return {\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n postgresqlVersion: item[\"postgresqlVersion\"],\n citusVersion: item[\"citusVersion\"],\n enableShardsOnCoordinator: item[\"enableShardsOnCoordinator\"],\n enableHa: item[\"enableHa\"],\n preferredPrimaryZone: item[\"preferredPrimaryZone\"],\n coordinatorServerEdition: item[\"coordinatorServerEdition\"],\n coordinatorStorageQuotaInMb: item[\"coordinatorStorageQuotaInMb\"],\n coordinatorVCores: item[\"coordinatorVCores\"],\n coordinatorEnablePublicIpAccess: item[\"coordinatorEnablePublicIpAccess\"],\n nodeServerEdition: item[\"nodeServerEdition\"],\n nodeCount: item[\"nodeCount\"],\n nodeStorageQuotaInMb: item[\"nodeStorageQuotaInMb\"],\n nodeVCores: item[\"nodeVCores\"],\n maintenanceWindow: !item[\"maintenanceWindow\"]\n ? item[\"maintenanceWindow\"]\n : maintenanceWindowSerializer(item[\"maintenanceWindow\"]),\n };\n}\n\n/** The response of a Cluster list operation. */\nexport interface _ClusterListResult {\n /** The Cluster items on this page */\n value: Cluster[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _clusterListResultDeserializer(item: any): _ClusterListResult {\n return {\n value: clusterArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function clusterArraySerializer(result: Array<Cluster>): any[] {\n return result.map((item) => {\n return clusterSerializer(item);\n });\n}\n\nexport function clusterArrayDeserializer(result: Array<Cluster>): any[] {\n return result.map((item) => {\n return clusterDeserializer(item);\n });\n}\n\n/** Request from client to promote geo-redundant replica */\nexport interface PromoteRequest {\n /** Boolean property to enable geo-redundant replica promotion. */\n enableGeoBackup?: boolean;\n}\n\nexport function promoteRequestSerializer(item: PromoteRequest): any {\n return { enableGeoBackup: item[\"enableGeoBackup\"] };\n}\n\n/** Request from client to check cluster name availability. */\nexport interface NameAvailabilityRequest {\n /** Cluster name to verify. */\n name: string;\n /** Resource type used for verification. */\n type: CheckNameAvailabilityResourceType;\n}\n\nexport function nameAvailabilityRequestSerializer(item: NameAvailabilityRequest): any {\n return { name: item[\"name\"], type: item[\"type\"] };\n}\n\n/** Resource type used for name availability verification. */\nexport type CheckNameAvailabilityResourceType = \"Microsoft.DBforPostgreSQL/serverGroupsv2\";\n\n/** Represents cluster name availability. */\nexport interface NameAvailability {\n /** Error message. */\n message?: string;\n /** Indicates whether the cluster name is available. */\n nameAvailable?: boolean;\n /** Name of the cluster. */\n name?: string;\n /** Type of the cluster. */\n type?: string;\n}\n\nexport function nameAvailabilityDeserializer(item: any): NameAvailability {\n return {\n message: item[\"message\"],\n nameAvailable: item[\"nameAvailable\"],\n name: item[\"name\"],\n type: item[\"type\"],\n };\n}\n\n/** Represents configuration details for coordinator and node. */\nexport interface Configuration extends ProxyResource {\n /** Description of the configuration. */\n readonly description?: string;\n /** Data type of the configuration. */\n readonly dataType?: ConfigurationDataType;\n /** Allowed values of the configuration. */\n readonly allowedValues?: string;\n /** If configuration change requires restart. */\n requiresRestart?: boolean;\n /** The list of server role group configuration values. */\n serverRoleGroupConfigurations?: ServerRoleGroupConfiguration[];\n /** Provisioning state of the configuration */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function configurationDeserializer(item: any): Configuration {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _configurationPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** The properties of configuration. */\nexport interface ConfigurationProperties {\n /** Description of the configuration. */\n readonly description?: string;\n /** Data type of the configuration. */\n readonly dataType?: ConfigurationDataType;\n /** Allowed values of the configuration. */\n readonly allowedValues?: string;\n /** If configuration change requires restart. */\n requiresRestart?: boolean;\n /** The list of server role group configuration values. */\n serverRoleGroupConfigurations: ServerRoleGroupConfiguration[];\n /** Provisioning state of the configuration */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function configurationPropertiesDeserializer(item: any): ConfigurationProperties {\n return {\n description: item[\"description\"],\n dataType: item[\"dataType\"],\n allowedValues: item[\"allowedValues\"],\n requiresRestart: item[\"requiresRestart\"],\n serverRoleGroupConfigurations: serverRoleGroupConfigurationArrayDeserializer(\n item[\"serverRoleGroupConfigurations\"],\n ),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Data type of the configuration. */\nexport enum KnownConfigurationDataType {\n /** Boolean */\n Boolean = \"Boolean\",\n /** Numeric */\n Numeric = \"Numeric\",\n /** Integer */\n Integer = \"Integer\",\n /** Enumeration */\n Enumeration = \"Enumeration\",\n}\n\n/**\n * Data type of the configuration. \\\n * {@link KnownConfigurationDataType} can be used interchangeably with ConfigurationDataType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Boolean** \\\n * **Numeric** \\\n * **Integer** \\\n * **Enumeration**\n */\nexport type ConfigurationDataType = string;\n\nexport function serverRoleGroupConfigurationArrayDeserializer(\n result: Array<ServerRoleGroupConfiguration>,\n): any[] {\n return result.map((item) => {\n return serverRoleGroupConfigurationDeserializer(item);\n });\n}\n\n/** Represents server role group configuration value. */\nexport interface ServerRoleGroupConfiguration {\n /** The role of servers in the server role group. */\n role: ServerRole;\n /** Value of the configuration. */\n value: string;\n /** Default value of the configuration. */\n readonly defaultValue?: string;\n /** Source of the configuration. */\n readonly source?: string;\n}\n\nexport function serverRoleGroupConfigurationDeserializer(item: any): ServerRoleGroupConfiguration {\n return {\n role: item[\"role\"],\n value: item[\"value\"],\n defaultValue: item[\"defaultValue\"],\n source: item[\"source\"],\n };\n}\n\n/** The role of a server. */\nexport enum KnownServerRole {\n /** Coordinator */\n Coordinator = \"Coordinator\",\n /** Worker */\n Worker = \"Worker\",\n}\n\n/**\n * The role of a server. \\\n * {@link KnownServerRole} can be used interchangeably with ServerRole,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Coordinator** \\\n * **Worker**\n */\nexport type ServerRole = string;\n\n/** The current provisioning state. */\nexport enum KnownProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** InProgress */\n InProgress = \"InProgress\",\n /** Failed */\n Failed = \"Failed\",\n}\n\n/**\n * The current provisioning state. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Canceled** \\\n * **InProgress** \\\n * **Failed**\n */\nexport type ProvisioningState = string;\n\n/** Pagination result of configurations. */\nexport interface _ClusterConfigurationListResult {\n /** The list of configurations. */\n value?: Configuration[];\n /** The link to the next page of results. */\n nextLink?: string;\n}\n\nexport function _clusterConfigurationListResultDeserializer(\n item: any,\n): _ClusterConfigurationListResult {\n return {\n value: !item[\"value\"] ? item[\"value\"] : configurationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function configurationArrayDeserializer(result: Array<Configuration>): any[] {\n return result.map((item) => {\n return configurationDeserializer(item);\n });\n}\n\n/** The response of a ServerConfiguration list operation. */\nexport interface _ServerConfigurationListResult {\n /** The ServerConfiguration items on this page */\n value: ServerConfiguration[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _serverConfigurationListResultDeserializer(\n item: any,\n): _ServerConfigurationListResult {\n return {\n value: serverConfigurationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function serverConfigurationArraySerializer(result: Array<ServerConfiguration>): any[] {\n return result.map((item) => {\n return serverConfigurationSerializer(item);\n });\n}\n\nexport function serverConfigurationArrayDeserializer(result: Array<ServerConfiguration>): any[] {\n return result.map((item) => {\n return serverConfigurationDeserializer(item);\n });\n}\n\n/** Represents a configuration. */\nexport interface ServerConfiguration extends ProxyResource {\n /** Value of the configuration. */\n value?: string;\n /** Source of the configuration. */\n readonly source?: string;\n /** Description of the configuration. */\n readonly description?: string;\n /** Default value of the configuration. */\n readonly defaultValue?: string;\n /** Data type of the configuration. */\n readonly dataType?: ConfigurationDataType;\n /** Allowed values of the configuration. */\n readonly allowedValues?: string;\n /** If configuration change requires restart. */\n readonly requiresRestart?: boolean;\n /** Provisioning state of the configuration. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function serverConfigurationSerializer(item: ServerConfiguration): any {\n return {\n properties: areAllPropsUndefined(item, [\"value\"])\n ? undefined\n : _serverConfigurationPropertiesSerializer(item),\n };\n}\n\nexport function serverConfigurationDeserializer(item: any): ServerConfiguration {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _serverConfigurationPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** The properties of a configuration. */\nexport interface ServerConfigurationProperties {\n /** Value of the configuration. */\n value: string;\n /** Source of the configuration. */\n readonly source?: string;\n /** Description of the configuration. */\n readonly description?: string;\n /** Default value of the configuration. */\n readonly defaultValue?: string;\n /** Data type of the configuration. */\n readonly dataType?: ConfigurationDataType;\n /** Allowed values of the configuration. */\n readonly allowedValues?: string;\n /** If configuration change requires restart. */\n readonly requiresRestart?: boolean;\n /** Provisioning state of the configuration. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function serverConfigurationPropertiesSerializer(item: ServerConfigurationProperties): any {\n return { value: item[\"value\"] };\n}\n\nexport function serverConfigurationPropertiesDeserializer(\n item: any,\n): ServerConfigurationProperties {\n return {\n value: item[\"value\"],\n source: item[\"source\"],\n description: item[\"description\"],\n defaultValue: item[\"defaultValue\"],\n dataType: item[\"dataType\"],\n allowedValues: item[\"allowedValues\"],\n requiresRestart: item[\"requiresRestart\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Represents a cluster firewall rule. */\nexport interface FirewallRule extends ProxyResource {\n /** The start IP address of the cluster firewall rule. Must be IPv4 format. */\n startIpAddress: string;\n /** The end IP address of the cluster firewall rule. Must be IPv4 format. */\n endIpAddress: string;\n /** Provisioning state of the firewall rule. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function firewallRuleSerializer(item: FirewallRule): any {\n return { properties: _firewallRulePropertiesSerializer(item) };\n}\n\nexport function firewallRuleDeserializer(item: any): FirewallRule {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ..._firewallRulePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of a cluster firewall rule. */\nexport interface FirewallRuleProperties {\n /** The start IP address of the cluster firewall rule. Must be IPv4 format. */\n startIpAddress: string;\n /** The end IP address of the cluster firewall rule. Must be IPv4 format. */\n endIpAddress: string;\n /** Provisioning state of the firewall rule. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function firewallRulePropertiesSerializer(item: FirewallRuleProperties): any {\n return { startIpAddress: item[\"startIpAddress\"], endIpAddress: item[\"endIpAddress\"] };\n}\n\nexport function firewallRulePropertiesDeserializer(item: any): FirewallRuleProperties {\n return {\n startIpAddress: item[\"startIpAddress\"],\n endIpAddress: item[\"endIpAddress\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The response of a FirewallRule list operation. */\nexport interface _FirewallRuleListResult {\n /** The FirewallRule items on this page */\n value: FirewallRule[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _firewallRuleListResultDeserializer(item: any): _FirewallRuleListResult {\n return {\n value: firewallRuleArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function firewallRuleArraySerializer(result: Array<FirewallRule>): any[] {\n return result.map((item) => {\n return firewallRuleSerializer(item);\n });\n}\n\nexport function firewallRuleArrayDeserializer(result: Array<FirewallRule>): any[] {\n return result.map((item) => {\n return firewallRuleDeserializer(item);\n });\n}\n\n/** A private endpoint connection resource */\nexport interface PrivateEndpointConnection extends Resource {\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;\n /** The provisioning state of the private endpoint connection resource. */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningState;\n}\n\nexport function privateEndpointConnectionSerializer(item: PrivateEndpointConnection): any {\n return {\n properties: areAllPropsUndefined(item, [\"privateEndpoint\", \"privateLinkServiceConnectionState\"])\n ? undefined\n : _privateEndpointConnectionPropertiesSerializer(item),\n };\n}\n\nexport function privateEndpointConnectionDeserializer(item: any): PrivateEndpointConnection {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _privateEndpointConnectionPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Properties of the private endpoint connection. */\nexport interface PrivateEndpointConnectionProperties {\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;\n /** The provisioning state of the private endpoint connection resource. */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningState;\n}\n\nexport function privateEndpointConnectionPropertiesSerializer(\n item: PrivateEndpointConnectionProperties,\n): any {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointSerializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateSerializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n };\n}\n\nexport function privateEndpointConnectionPropertiesDeserializer(\n item: any,\n): PrivateEndpointConnectionProperties {\n return {\n groupIds: !item[\"groupIds\"]\n ? item[\"groupIds\"]\n : item[\"groupIds\"].map((p: any) => {\n return p;\n }),\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointDeserializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateDeserializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The private endpoint resource. */\nexport interface PrivateEndpoint {\n /** The resource identifier of the private endpoint */\n readonly id?: string;\n}\n\nexport function privateEndpointSerializer(_item: PrivateEndpoint): any {\n return {};\n}\n\nexport function privateEndpointDeserializer(item: any): PrivateEndpoint {\n return {\n id: item[\"id\"],\n };\n}\n\n/** The current provisioning state. */\nexport enum KnownPrivateEndpointConnectionProvisioningState {\n /** Connection has been provisioned */\n Succeeded = \"Succeeded\",\n /** Connection is being created */\n Creating = \"Creating\",\n /** Connection is being deleted */\n Deleting = \"Deleting\",\n /** Connection provisioning has failed */\n Failed = \"Failed\",\n}\n\n/**\n * The current provisioning state. \\\n * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Connection has been provisioned \\\n * **Creating**: Connection is being created \\\n * **Deleting**: Connection is being deleted \\\n * **Failed**: Connection provisioning has failed\n */\nexport type PrivateEndpointConnectionProvisioningState = string;\n\n/** The response of a PrivateEndpointConnection list operation. */\nexport interface _PrivateEndpointConnectionListResult {\n /** The PrivateEndpointConnection items on this page */\n value: PrivateEndpointConnection[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _privateEndpointConnectionListResultDeserializer(\n item: any,\n): _PrivateEndpointConnectionListResult {\n return {\n value: privateEndpointConnectionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function privateEndpointConnectionArraySerializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionSerializer(item);\n });\n}\n\nexport function privateEndpointConnectionArrayDeserializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionDeserializer(item);\n });\n}\n\n/** A private link resource. */\nexport interface PrivateLinkResource extends ProxyResource {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\nexport function privateLinkResourceDeserializer(item: any): PrivateLinkResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _privateLinkResourcePropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Properties of a private link resource. */\nexport interface PrivateLinkResourceProperties {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\nexport function privateLinkResourcePropertiesDeserializer(\n item: any,\n): PrivateLinkResourceProperties {\n return {\n groupId: item[\"groupId\"],\n requiredMembers: !item[\"requiredMembers\"]\n ? item[\"requiredMembers\"]\n : item[\"requiredMembers\"].map((p: any) => {\n return p;\n }),\n requiredZoneNames: !item[\"requiredZoneNames\"]\n ? item[\"requiredZoneNames\"]\n : item[\"requiredZoneNames\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The response of a PrivateLinkResource list operation. */\nexport interface _PrivateLinkResourceListResult {\n /** The PrivateLinkResource items on this page */\n value: PrivateLinkResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _privateLinkResourceListResultDeserializer(\n item: any,\n): _PrivateLinkResourceListResult {\n return {\n value: privateLinkResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function privateLinkResourceArrayDeserializer(result: Array<PrivateLinkResource>): any[] {\n return result.map((item) => {\n return privateLinkResourceDeserializer(item);\n });\n}\n\n/** Represents a cluster role. */\nexport interface Role extends ProxyResource {\n roleType?: RoleType;\n /** The password of the cluster role. If an identity is used, password will not be required. */\n password?: string;\n externalIdentity?: RolePropertiesExternalIdentity;\n /** Provisioning state of the role */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function roleSerializer(item: Role): any {\n return { properties: _rolePropertiesSerializer(item) };\n}\n\nexport function roleDeserializer(item: any): Role {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ..._rolePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of a cluster role. */\nexport interface RoleProperties {\n roleType?: RoleType;\n /** The password of the cluster role. If an identity is used, password will not be required. */\n password?: string;\n /** Provisioning state of the role */\n readonly provisioningState?: ProvisioningState;\n /** A type definition that refers the id to an Azure Resource Manager resource. */\n objectId?: string;\n principalType?: PrincipalType;\n /** A type definition that refers the id to an Azure Resource Manager resource. */\n tenantId?: string;\n}\n\nexport function rolePropertiesSerializer(item: RoleProperties): any {\n return {\n roleType: item[\"roleType\"],\n password: item[\"password\"],\n externalIdentity: areAllPropsUndefined(item, [\"objectId\", \"principalType\", \"tenantId\"])\n ? undefined\n : _rolePropertiesExternalIdentitySerializer(item),\n };\n}\n\nexport function rolePropertiesDeserializer(item: any): RoleProperties {\n return {\n roleType: item[\"roleType\"],\n password: item[\"password\"],\n ...(!item[\"externalIdentity\"]\n ? item[\"externalIdentity\"]\n : _rolePropertiesExternalIdentityDeserializer(item[\"externalIdentity\"])),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Known values of {@link RoleType} that the service accepts. */\nexport enum KnownRoleType {\n /** user */\n User = \"user\",\n /** admin */\n Admin = \"admin\",\n}\n\n/** Type of RoleType */\nexport type RoleType = string;\n\n/** model interface RolePropertiesExternalIdentity */\nexport interface RolePropertiesExternalIdentity {\n /** A type definition that refers the id to an Azure Resource Manager resource. */\n objectId: string;\n principalType: PrincipalType;\n /** A type definition that refers the id to an Azure Resource Manager resource. */\n tenantId?: string;\n}\n\nexport function rolePropertiesExternalIdentitySerializer(\n item: RolePropertiesExternalIdentity,\n): any {\n return {\n objectId: item[\"objectId\"],\n principalType: item[\"principalType\"],\n tenantId: item[\"tenantId\"],\n };\n}\n\nexport function rolePropertiesExternalIdentityDeserializer(\n item: any,\n): RolePropertiesExternalIdentity {\n return {\n objectId: item[\"objectId\"],\n principalType: item[\"principalType\"],\n tenantId: item[\"tenantId\"],\n };\n}\n\n/** Known values of {@link PrincipalType} that the service accepts. */\nexport enum KnownPrincipalType {\n /** user */\n User = \"user\",\n /** servicePrincipal */\n ServicePrincipal = \"servicePrincipal\",\n /** group */\n Group = \"group\",\n}\n\n/** Type of PrincipalType */\nexport type PrincipalType = string;\n\n/** The response of a Role list operation. */\nexport interface _RoleListResult {\n /** The Role items on this page */\n value: Role[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _roleListResultDeserializer(item: any): _RoleListResult {\n return {\n value: roleArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function roleArraySerializer(result: Array<Role>): any[] {\n return result.map((item) => {\n return roleSerializer(item);\n });\n}\n\nexport function roleArrayDeserializer(result: Array<Role>): any[] {\n return result.map((item) => {\n return roleDeserializer(item);\n });\n}\n\n/** Represents a server in a cluster. */\nexport interface ClusterServer extends ProxyResource {\n /** The edition of a server. */\n serverEdition?: string;\n /** The storage of a server in MB. */\n storageQuotaInMb?: number;\n /** The vCores count of a server. */\n vCores?: number;\n /** If high availability (HA) is enabled or not for the server. */\n enableHa?: boolean;\n /** If public access is enabled on server. */\n readonly enablePublicIpAccess?: boolean;\n /** If server database is set to read-only by system maintenance depending on high disk space usage. */\n readonly isReadOnly?: boolean;\n /** The administrator's login name of the servers in the cluster. */\n readonly administratorLogin?: string;\n /** The fully qualified domain name of a server. */\n readonly fullyQualifiedDomainName?: string;\n /** The role of server in the cluster. */\n role?: ServerRole;\n /** A state of a cluster/server that is visible to user. */\n readonly state?: string;\n /** A state of HA feature for the cluster. */\n readonly haState?: string;\n /** Availability Zone information of the server. */\n availabilityZone?: string;\n /** The major PostgreSQL version of server. */\n postgresqlVersion?: string;\n /** The Citus extension version of server. */\n citusVersion?: string;\n}\n\nexport function clusterServerDeserializer(item: any): ClusterServer {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _clusterServerPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** The properties of a server in cluster. */\nexport interface ClusterServerProperties extends ServerProperties {\n /** The fully qualified domain name of a server. */\n readonly fullyQualifiedDomainName?: string;\n /** The role of server in the cluster. */\n role?: ServerRole;\n /** A state of a cluster/server that is visible to user. */\n readonly state?: string;\n /** A state of HA feature for the cluster. */\n readonly haState?: string;\n /** Availability Zone information of the server. */\n availabilityZone?: string;\n /** The major PostgreSQL version of server. */\n postgresqlVersion?: string;\n /** The Citus extension version of server. */\n citusVersion?: string;\n}\n\nexport function clusterServerPropertiesDeserializer(item: any): ClusterServerProperties {\n return {\n serverEdition: item[\"serverEdition\"],\n storageQuotaInMb: item[\"storageQuotaInMb\"],\n vCores: item[\"vCores\"],\n enableHa: item[\"enableHa\"],\n enablePublicIpAccess: item[\"enablePublicIpAccess\"],\n isReadOnly: item[\"isReadOnly\"],\n administratorLogin: item[\"administratorLogin\"],\n fullyQualifiedDomainName: item[\"fullyQualifiedDomainName\"],\n role: item[\"role\"],\n state: item[\"state\"],\n haState: item[\"haState\"],\n availabilityZone: item[\"availabilityZone\"],\n postgresqlVersion: item[\"postgresqlVersion\"],\n citusVersion: item[\"citusVersion\"],\n };\n}\n\n/** The properties of a server. */\nexport interface ServerProperties {\n /** The edition of a server. */\n serverEdition?: string;\n /** The storage of a server in MB. */\n storageQuotaInMb?: number;\n /** The vCores count of a server. */\n vCores?: number;\n /** If high availability (HA) is enabled or not for the server. */\n enableHa?: boolean;\n /** If public access is enabled on server. */\n readonly enablePublicIpAccess?: boolean;\n /** If server database is set to read-only by system maintenance depending on high disk space usage. */\n readonly isReadOnly?: boolean;\n /** The administrator's login name of the servers in the cluster. */\n readonly administratorLogin?: string;\n}\n\nexport function serverPropertiesDeserializer(item: any): ServerProperties {\n return {\n serverEdition: item[\"serverEdition\"],\n storageQuotaInMb: item[\"storageQuotaInMb\"],\n vCores: item[\"vCores\"],\n enableHa: item[\"enableHa\"],\n enablePublicIpAccess: item[\"enablePublicIpAccess\"],\n isReadOnly: item[\"isReadOnly\"],\n administratorLogin: item[\"administratorLogin\"],\n };\n}\n\n/** The response of a ClusterServer list operation. */\nexport interface _ClusterServerListResult {\n /** The ClusterServer items on this page */\n value: ClusterServer[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _clusterServerListResultDeserializer(item: any): _ClusterServerListResult {\n return {\n value: clusterServerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function clusterServerArrayDeserializer(result: Array<ClusterServer>): any[] {\n return result.map((item) => {\n return clusterServerDeserializer(item);\n });\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2023-03-02-preview API version. */\n V20230302Preview = \"2023-03-02-preview\",\n}\n\nexport function _simplePrivateEndpointConnectionPropertiesDeserializer(item: any) {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointPropertyDeserializer(item[\"privateEndpoint\"]),\n groupIds: !item[\"groupIds\"]\n ? item[\"groupIds\"]\n : item[\"groupIds\"].map((p: any) => {\n return p;\n }),\n privateLinkServiceConnectionState: !item[\"privateLinkServiceConnectionState\"]\n ? item[\"privateLinkServiceConnectionState\"]\n : privateLinkServiceConnectionStateDeserializer(item[\"privateLinkServiceConnectionState\"]),\n };\n}\n\nexport function _clusterPropertiesSerializer(item: Cluster): any {\n return {\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n dataEncryption: !item[\"dataEncryption\"]\n ? item[\"dataEncryption\"]\n : dataEncryptionSerializer(item[\"dataEncryption\"]),\n postgresqlVersion: item[\"postgresqlVersion\"],\n citusVersion: item[\"citusVersion\"],\n maintenanceWindow: !item[\"maintenanceWindow\"]\n ? item[\"maintenanceWindow\"]\n : maintenanceWindowSerializer(item[\"maintenanceWindow\"]),\n preferredPrimaryZone: item[\"preferredPrimaryZone\"],\n enableShardsOnCoordinator: item[\"enableShardsOnCoordinator\"],\n enableHa: item[\"enableHa\"],\n coordinatorServerEdition: item[\"coordinatorServerEdition\"],\n coordinatorStorageQuotaInMb: item[\"coordinatorStorageQuotaInMb\"],\n coordinatorVCores: item[\"coordinatorVCores\"],\n coordinatorEnablePublicIpAccess: item[\"coordinatorEnablePublicIpAccess\"],\n nodeServerEdition: item[\"nodeServerEdition\"],\n nodeCount: item[\"nodeCount\"],\n nodeStorageQuotaInMb: item[\"nodeStorageQuotaInMb\"],\n nodeVCores: item[\"nodeVCores\"],\n nodeEnablePublicIpAccess: item[\"nodeEnablePublicIpAccess\"],\n sourceResourceId: item[\"sourceResourceId\"],\n sourceLocation: item[\"sourceLocation\"],\n pointInTimeUTC: !item[\"pointInTimeUTC\"]\n ? item[\"pointInTimeUTC\"]\n : item[\"pointInTimeUTC\"].toISOString(),\n databaseName: item[\"databaseName\"],\n enableGeoBackup: item[\"enableGeoBackup\"],\n authConfig: !item[\"authConfig\"] ? item[\"authConfig\"] : authConfigSerializer(item[\"authConfig\"]),\n };\n}\n\nexport function _clusterPropertiesDeserializer(item: any) {\n return {\n aadAuthEnabled: item[\"aadAuthEnabled\"],\n administratorLogin: item[\"administratorLogin\"],\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n dataEncryption: !item[\"dataEncryption\"]\n ? item[\"dataEncryption\"]\n : dataEncryptionDeserializer(item[\"dataEncryption\"]),\n provisioningState: item[\"provisioningState\"],\n state: item[\"state\"],\n postgresqlVersion: item[\"postgresqlVersion\"],\n citusVersion: item[\"citusVersion\"],\n maintenanceWindow: !item[\"maintenanceWindow\"]\n ? item[\"maintenanceWindow\"]\n : maintenanceWindowDeserializer(item[\"maintenanceWindow\"]),\n preferredPrimaryZone: item[\"preferredPrimaryZone\"],\n enableShardsOnCoordinator: item[\"enableShardsOnCoordinator\"],\n enableHa: item[\"enableHa\"],\n coordinatorServerEdition: item[\"coordinatorServerEdition\"],\n coordinatorStorageQuotaInMb: item[\"coordinatorStorageQuotaInMb\"],\n coordinatorVCores: item[\"coordinatorVCores\"],\n coordinatorEnablePublicIpAccess: item[\"coordinatorEnablePublicIpAccess\"],\n nodeServerEdition: item[\"nodeServerEdition\"],\n nodeCount: item[\"nodeCount\"],\n nodeStorageQuotaInMb: item[\"nodeStorageQuotaInMb\"],\n nodeVCores: item[\"nodeVCores\"],\n nodeEnablePublicIpAccess: item[\"nodeEnablePublicIpAccess\"],\n serverNames: !item[\"serverNames\"]\n ? item[\"serverNames\"]\n : serverNameItemArrayDeserializer(item[\"serverNames\"]),\n sourceResourceId: item[\"sourceResourceId\"],\n sourceLocation: item[\"sourceLocation\"],\n passwordEnabled: item[\"passwordEnabled\"],\n pointInTimeUTC: !item[\"pointInTimeUTC\"]\n ? item[\"pointInTimeUTC\"]\n : new Date(item[\"pointInTimeUTC\"]),\n readReplicas: !item[\"readReplicas\"]\n ? item[\"readReplicas\"]\n : item[\"readReplicas\"].map((p: any) => {\n return p;\n }),\n earliestRestoreTime: !item[\"earliestRestoreTime\"]\n ? item[\"earliestRestoreTime\"]\n : new Date(item[\"earliestRestoreTime\"]),\n privateEndpointConnections: !item[\"privateEndpointConnections\"]\n ? item[\"privateEndpointConnections\"]\n : simplePrivateEndpointConnectionArrayDeserializer(item[\"privateEndpointConnections\"]),\n databaseName: item[\"databaseName\"],\n enableGeoBackup: item[\"enableGeoBackup\"],\n authConfig: !item[\"authConfig\"]\n ? item[\"authConfig\"]\n : authConfigDeserializer(item[\"authConfig\"]),\n };\n}\n\nexport function _clusterForUpdatePropertiesSerializer(item: ClusterForUpdate): any {\n return {\n administratorLoginPassword: item[\"administratorLoginPassword\"],\n postgresqlVersion: item[\"postgresqlVersion\"],\n citusVersion: item[\"citusVersion\"],\n enableShardsOnCoordinator: item[\"enableShardsOnCoordinator\"],\n enableHa: item[\"enableHa\"],\n preferredPrimaryZone: item[\"preferredPrimaryZone\"],\n coordinatorServerEdition: item[\"coordinatorServerEdition\"],\n coordinatorStorageQuotaInMb: item[\"coordinatorStorageQuotaInMb\"],\n coordinatorVCores: item[\"coordinatorVCores\"],\n coordinatorEnablePublicIpAccess: item[\"coordinatorEnablePublicIpAccess\"],\n nodeServerEdition: item[\"nodeServerEdition\"],\n nodeCount: item[\"nodeCount\"],\n nodeStorageQuotaInMb: item[\"nodeStorageQuotaInMb\"],\n nodeVCores: item[\"nodeVCores\"],\n maintenanceWindow: !item[\"maintenanceWindow\"]\n ? item[\"maintenanceWindow\"]\n : maintenanceWindowSerializer(item[\"maintenanceWindow\"]),\n };\n}\n\nexport function _configurationPropertiesDeserializer(item: any) {\n return {\n description: item[\"description\"],\n dataType: item[\"dataType\"],\n allowedValues: item[\"allowedValues\"],\n requiresRestart: item[\"requiresRestart\"],\n serverRoleGroupConfigurations: !item[\"serverRoleGroupConfigurations\"]\n ? item[\"serverRoleGroupConfigurations\"]\n : serverRoleGroupConfigurationArrayDeserializer(item[\"serverRoleGroupConfigurations\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\nexport function _serverConfigurationPropertiesSerializer(item: ServerConfiguration): any {\n return { value: item[\"value\"] };\n}\n\nexport function _serverConfigurationPropertiesDeserializer(item: any) {\n return {\n value: item[\"value\"],\n source: item[\"source\"],\n description: item[\"description\"],\n defaultValue: item[\"defaultValue\"],\n dataType: item[\"dataType\"],\n allowedValues: item[\"allowedValues\"],\n requiresRestart: item[\"requiresRestart\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\nexport function _firewallRulePropertiesSerializer(item: FirewallRule): any {\n return { startIpAddress: item[\"startIpAddress\"], endIpAddress: item[\"endIpAddress\"] };\n}\n\nexport function _firewallRulePropertiesDeserializer(item: any) {\n return {\n startIpAddress: item[\"startIpAddress\"],\n endIpAddress: item[\"endIpAddress\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\nexport function _privateEndpointConnectionPropertiesSerializer(\n item: PrivateEndpointConnection,\n): any {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointSerializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: !item[\"privateLinkServiceConnectionState\"]\n ? item[\"privateLinkServiceConnectionState\"]\n : privateLinkServiceConnectionStateSerializer(item[\"privateLinkServiceConnectionState\"]),\n };\n}\n\nexport function _privateEndpointConnectionPropertiesDeserializer(item: any) {\n return {\n groupIds: !item[\"groupIds\"]\n ? item[\"groupIds\"]\n : item[\"groupIds\"].map((p: any) => {\n return p;\n }),\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointDeserializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: !item[\"privateLinkServiceConnectionState\"]\n ? item[\"privateLinkServiceConnectionState\"]\n : privateLinkServiceConnectionStateDeserializer(item[\"privateLinkServiceConnectionState\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\nexport function _privateLinkResourcePropertiesDeserializer(item: any) {\n return {\n groupId: item[\"groupId\"],\n requiredMembers: !item[\"requiredMembers\"]\n ? item[\"requiredMembers\"]\n : item[\"requiredMembers\"].map((p: any) => {\n return p;\n }),\n requiredZoneNames: !item[\"requiredZoneNames\"]\n ? item[\"requiredZoneNames\"]\n : item[\"requiredZoneNames\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function _rolePropertiesExternalIdentitySerializer(item: RoleProperties): any {\n return {\n objectId: item[\"objectId\"],\n principalType: item[\"principalType\"],\n tenantId: item[\"tenantId\"],\n };\n}\n\nexport function _rolePropertiesExternalIdentityDeserializer(item: any) {\n return {\n objectId: item[\"objectId\"],\n principalType: item[\"principalType\"],\n tenantId: item[\"tenantId\"],\n };\n}\n\nexport function _rolePropertiesSerializer(item: Role): any {\n return {\n roleType: item[\"roleType\"],\n password: item[\"password\"],\n externalIdentity: !item[\"externalIdentity\"]\n ? item[\"externalIdentity\"]\n : rolePropertiesExternalIdentitySerializer(item[\"externalIdentity\"]),\n };\n}\n\nexport function _rolePropertiesDeserializer(item: any) {\n return {\n roleType: item[\"roleType\"],\n password: item[\"password\"],\n externalIdentity: !item[\"externalIdentity\"]\n ? item[\"externalIdentity\"]\n : rolePropertiesExternalIdentityDeserializer(item[\"externalIdentity\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\nexport function _clusterServerPropertiesDeserializer(item: any) {\n return {\n serverEdition: item[\"serverEdition\"],\n storageQuotaInMb: item[\"storageQuotaInMb\"],\n vCores: item[\"vCores\"],\n enableHa: item[\"enableHa\"],\n enablePublicIpAccess: item[\"enablePublicIpAccess\"],\n isReadOnly: item[\"isReadOnly\"],\n administratorLogin: item[\"administratorLogin\"],\n fullyQualifiedDomainName: item[\"fullyQualifiedDomainName\"],\n role: item[\"role\"],\n state: item[\"state\"],\n haState: item[\"haState\"],\n availabilityZone: item[\"availabilityZone\"],\n postgresqlVersion: item[\"postgresqlVersion\"],\n citusVersion: item[\"citusVersion\"],\n };\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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AAK,kBAAkB,CAAC;AAAA,IACvE,mBAAmB,KAAK,mBAAmB;AAAA,EAC7C;AACF;AAEO,SAAS,qCAAqC,MAAW;AAC9D,SAAO;AAAA,IACL,eAAe,KAAK,eAAe;AAAA,IACnC,kBAAkB,KAAK,kBAAkB;AAAA,IACzC,QAAQ,KAAK,QAAQ;AAAA,IACrB,UAAU,KAAK,UAAU;AAAA,IACzB,sBAAsB,KAAK,sBAAsB;AAAA,IACjD,YAAY,KAAK,YAAY;AAAA,IAC7B,oBAAoB,KAAK,oBAAoB;AAAA,IAC7C,0BAA0B,KAAK,0BAA0B;AAAA,IACzD,MAAM,KAAK,MAAM;AAAA,IACjB,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,KAAK,SAAS;AAAA,IACvB,kBAAkB,KAAK,kBAAkB;AAAA,IACzC,mBAAmB,KAAK,mBAAmB;AAAA,IAC3C,cAAc,KAAK,cAAc;AAAA,EACnC;AACF;",
6
+ "names": ["KnownOrigin", "KnownActionType", "KnownAadEnabledEnum", "KnownDataEncryptionType", "KnownPasswordEnabledEnum", "KnownPrivateEndpointServiceConnectionStatus", "KnownActiveDirectoryAuth", "KnownPasswordAuth", "KnownIdentityType", "KnownCreatedByType", "KnownConfigurationDataType", "KnownServerRole", "KnownProvisioningState", "KnownPrivateEndpointConnectionProvisioningState", "KnownRoleType", "KnownPrincipalType", "KnownVersions"]
7
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,21 @@
1
+ import { DBforPostgreSQLClient } from "./dBforPostgreSQLClient.js";
2
+ import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import { AbortSignalLike } from "@azure/abort-controller";
4
+ import { PollerLike, OperationState } from "@azure/core-lro";
5
+ export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
6
+ /** Delay to wait until next poll, in milliseconds. */
7
+ updateIntervalInMs?: number;
8
+ /**
9
+ * The signal which can be used to abort requests.
10
+ */
11
+ abortSignal?: AbortSignalLike;
12
+ /** Deserialization function for raw response body */
13
+ processResponseBody?: (result: TResponse) => Promise<TResult>;
14
+ }
15
+ /**
16
+ * Creates a poller from the serialized state of another poller. This can be
17
+ * useful when you want to create pollers on a different host or a poller
18
+ * needs to be constructed after the original one is not in scope.
19
+ */
20
+ export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: DBforPostgreSQLClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
21
+ //# sourceMappingURL=restorePollerHelpers.d.ts.map
@@ -0,0 +1,131 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var restorePollerHelpers_exports = {};
19
+ __export(restorePollerHelpers_exports, {
20
+ restorePoller: () => restorePoller
21
+ });
22
+ module.exports = __toCommonJS(restorePollerHelpers_exports);
23
+ var import_operations = require("./api/roles/operations.js");
24
+ var import_operations2 = require("./api/privateEndpointConnections/operations.js");
25
+ var import_operations3 = require("./api/firewallRules/operations.js");
26
+ var import_operations4 = require("./api/configurations/operations.js");
27
+ var import_operations5 = require("./api/clusters/operations.js");
28
+ var import_pollingHelpers = require("./static-helpers/pollingHelpers.js");
29
+ var import_core_lro = require("@azure/core-lro");
30
+ function restorePoller(client, serializedState, sourceOperation, options) {
31
+ const pollerConfig = (0, import_core_lro.deserializeState)(serializedState).config;
32
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
33
+ if (!initialRequestUrl || !requestMethod) {
34
+ throw new Error(
35
+ `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`
36
+ );
37
+ }
38
+ const resourceLocationConfig = metadata?.["resourceLocationConfig"];
39
+ const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
40
+ const deserializeHelper = options?.processResponseBody ?? deserializer;
41
+ if (!deserializeHelper) {
42
+ throw new Error(
43
+ `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`
44
+ );
45
+ }
46
+ const apiVersion = getApiVersionFromUrl(initialRequestUrl);
47
+ return (0, import_pollingHelpers.getLongRunningPoller)(
48
+ client["_client"] ?? client,
49
+ deserializeHelper,
50
+ expectedStatuses,
51
+ {
52
+ updateIntervalInMs: options?.updateIntervalInMs,
53
+ abortSignal: options?.abortSignal,
54
+ resourceLocationConfig,
55
+ restoreFrom: serializedState,
56
+ initialRequestUrl,
57
+ apiVersion
58
+ }
59
+ );
60
+ }
61
+ const deserializeMap = {
62
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}": { deserializer: import_operations._$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
63
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}": { deserializer: import_operations._createDeserialize, expectedStatuses: ["200", "201", "202"] },
64
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}": {
65
+ deserializer: import_operations2._$deleteDeserialize,
66
+ expectedStatuses: ["202", "204", "200"]
67
+ },
68
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}": { deserializer: import_operations2._createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] },
69
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/firewallRules/{firewallRuleName}": { deserializer: import_operations3._$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
70
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/firewallRules/{firewallRuleName}": {
71
+ deserializer: import_operations3._createOrUpdateDeserialize,
72
+ expectedStatuses: ["200", "201", "202"]
73
+ },
74
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/coordinatorConfigurations/{configurationName}": { deserializer: import_operations4._updateOnCoordinatorDeserialize, expectedStatuses: ["200", "201", "202"] },
75
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/nodeConfigurations/{configurationName}": { deserializer: import_operations4._updateOnNodeDeserialize, expectedStatuses: ["200", "201", "202"] },
76
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop": { deserializer: import_operations5._stopDeserialize, expectedStatuses: ["202", "200", "201"] },
77
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start": { deserializer: import_operations5._startDeserialize, expectedStatuses: ["202", "200", "201"] },
78
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart": { deserializer: import_operations5._restartDeserialize, expectedStatuses: ["202", "200", "201"] },
79
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote": { deserializer: import_operations5._promoteReadReplicaDeserialize, expectedStatuses: ["202", "200", "201"] },
80
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}": { deserializer: import_operations5._$deleteDeserialize, expectedStatuses: ["200", "202", "204"] },
81
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}": { deserializer: import_operations5._updateDeserialize, expectedStatuses: ["200", "202", "201"] },
82
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}": { deserializer: import_operations5._createDeserialize, expectedStatuses: ["200", "201", "202"] }
83
+ };
84
+ function getDeserializationHelper(urlStr, method) {
85
+ const path = new URL(urlStr).pathname;
86
+ const pathParts = path.split("/");
87
+ let matchedLen = -1, matchedValue;
88
+ for (const [key, value] of Object.entries(deserializeMap)) {
89
+ if (!key.startsWith(method)) {
90
+ continue;
91
+ }
92
+ const candidatePath = getPathFromMapKey(key);
93
+ const candidateParts = candidatePath.split("/");
94
+ let found = true;
95
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
96
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
97
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
98
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(
99
+ pathParts[j] || ""
100
+ );
101
+ if (!isMatched) {
102
+ found = false;
103
+ break;
104
+ }
105
+ continue;
106
+ }
107
+ if (candidateParts[i] !== pathParts[j]) {
108
+ found = false;
109
+ break;
110
+ }
111
+ }
112
+ if (found && candidatePath.length > matchedLen) {
113
+ matchedLen = candidatePath.length;
114
+ matchedValue = value;
115
+ }
116
+ }
117
+ return matchedValue;
118
+ }
119
+ function getPathFromMapKey(mapKey) {
120
+ const pathStart = mapKey.indexOf("/");
121
+ return mapKey.slice(pathStart);
122
+ }
123
+ function getApiVersionFromUrl(urlStr) {
124
+ const url = new URL(urlStr);
125
+ return url.searchParams.get("api-version") ?? void 0;
126
+ }
127
+ // Annotate the CommonJS export names for ESM import in node:
128
+ 0 && (module.exports = {
129
+ restorePoller
130
+ });
131
+ //# sourceMappingURL=restorePollerHelpers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/restorePollerHelpers.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { DBforPostgreSQLClient } from \"./dBforPostgreSQLClient.js\";\nimport { _$deleteDeserialize, _createDeserialize } from \"./api/roles/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializePrivateEndpointConnections,\n _createOrUpdateDeserialize,\n} from \"./api/privateEndpointConnections/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeFirewallRules,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeFirewallRules,\n} from \"./api/firewallRules/operations.js\";\nimport {\n _updateOnCoordinatorDeserialize,\n _updateOnNodeDeserialize,\n} from \"./api/configurations/operations.js\";\nimport {\n _stopDeserialize,\n _startDeserialize,\n _restartDeserialize,\n _promoteReadReplicaDeserialize,\n _$deleteDeserialize as _$deleteDeserializeClusters,\n _updateDeserialize,\n _createDeserialize as _createDeserializeClusters,\n} from \"./api/clusters/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: DBforPostgreSQLClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n const apiVersion = getApiVersionFromUrl(initialRequestUrl);\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}\":\n { deserializer: _createDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _$deleteDeserializePrivateEndpointConnections,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/firewallRules/{firewallRuleName}\":\n { deserializer: _$deleteDeserializeFirewallRules, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/firewallRules/{firewallRuleName}\":\n {\n deserializer: _createOrUpdateDeserializeFirewallRules,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/coordinatorConfigurations/{configurationName}\":\n { deserializer: _updateOnCoordinatorDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/nodeConfigurations/{configurationName}\":\n { deserializer: _updateOnNodeDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/stop\":\n { deserializer: _stopDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/start\":\n { deserializer: _startDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/restart\":\n { deserializer: _restartDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/promote\":\n { deserializer: _promoteReadReplicaDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}\":\n { deserializer: _$deleteDeserializeClusters, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}\":\n { deserializer: _createDeserializeClusters, expectedStatuses: [\"200\", \"201\", \"202\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {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C,IAAI,WAAW,MAAM,GAAG;AAC3B;AAAA,IACF;AACA,UAAM,gBAAgB,kBAAkB,GAAG;AAE3C,UAAM,iBAAiB,cAAc,MAAM,GAAG;AAG9C,QAAI,QAAQ;AACZ,aAAS,IAAI,eAAe,SAAS,GAAG,IAAI,UAAU,SAAS,GAAG,KAAK,KAAK,KAAK,GAAG,KAAK,KAAK;AAC5F,UAAI,eAAe,CAAC,GAAG,WAAW,GAAG,KAAK,eAAe,CAAC,GAAG,QAAQ,GAAG,MAAM,IAAI;AAChF,cAAM,QAAQ,eAAe,CAAC,EAAG,QAAQ,GAAG,IAAI,GAC9C,MAAM,eAAe,CAAC,GAAG;AAK3B,cAAM,YAAY,IAAI,OAAO,GAAG,eAAe,CAAC,GAAG,MAAM,OAAO,GAAG,CAAC,EAAE,EAAE;AAAA,UACtE,UAAU,CAAC,KAAK;AAAA,QAClB;AAEA,YAAI,CAAC,WAAW;AACd,kBAAQ;AACR;AAAA,QACF;AACA;AAAA,MACF;AAKA,UAAI,eAAe,CAAC,MAAM,UAAU,CAAC,GAAG;AACtC,gBAAQ;AACR;AAAA,MACF;AAAA,IACF;AAIA,QAAI,SAAS,cAAc,SAAS,YAAY;AAC9C,mBAAa,cAAc;AAC3B,qBAAe;AAAA,IACjB;AAAA,EACF;AAEA,SAAO;AACT;AAEA,SAAS,kBAAkB,QAAwB;AACjD,QAAM,YAAY,OAAO,QAAQ,GAAG;AACpC,SAAO,OAAO,MAAM,SAAS;AAC/B;AAEA,SAAS,qBAAqB,QAAoC;AAChE,QAAM,MAAM,IAAI,IAAI,MAAM;AAC1B,SAAO,IAAI,aAAa,IAAI,aAAa,KAAK;AAChD;",
6
+ "names": ["import_operations", "_$deleteDeserializePrivateEndpointConnections", "_$deleteDeserializeFirewallRules", "_createOrUpdateDeserializeFirewallRules", "_$deleteDeserializeClusters", "_createDeserializeClusters"]
7
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * An enum to describe Azure Cloud environments.
3
+ * @enum {string}
4
+ */
5
+ export declare enum AzureClouds {
6
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
7
+ AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
8
+ /** Azure China cloud */
9
+ AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
10
+ /** Azure US government cloud */
11
+ AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
12
+ }
13
+ /** The supported values for cloud setting as a string literal type */
14
+ export type AzureSupportedClouds = `${AzureClouds}`;
15
+ /**
16
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
17
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
18
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
19
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
20
+ */
21
+ export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
22
+ //# sourceMappingURL=cloudSettingHelpers.d.ts.map
@@ -0,0 +1,52 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var cloudSettingHelpers_exports = {};
19
+ __export(cloudSettingHelpers_exports, {
20
+ AzureClouds: () => AzureClouds,
21
+ getArmEndpoint: () => getArmEndpoint
22
+ });
23
+ module.exports = __toCommonJS(cloudSettingHelpers_exports);
24
+ var AzureClouds = /* @__PURE__ */ ((AzureClouds2) => {
25
+ AzureClouds2["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
26
+ AzureClouds2["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
27
+ AzureClouds2["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
28
+ return AzureClouds2;
29
+ })(AzureClouds || {});
30
+ function getArmEndpoint(cloudSetting) {
31
+ if (cloudSetting === void 0) {
32
+ return void 0;
33
+ }
34
+ const cloudEndpoints = {
35
+ AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
36
+ AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
37
+ AZURE_PUBLIC_CLOUD: "https://management.azure.com/"
38
+ };
39
+ if (cloudSetting in cloudEndpoints) {
40
+ return cloudEndpoints[cloudSetting];
41
+ } else {
42
+ throw new Error(
43
+ `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`
44
+ );
45
+ }
46
+ }
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ AzureClouds,
50
+ getArmEndpoint
51
+ });
52
+ //# sourceMappingURL=cloudSettingHelpers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/static-helpers/cloudSettingHelpers.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAK,cAAL,kBAAKA,iBAAL;AAEL,EAAAA,aAAA,wBAAqB;AAErB,EAAAA,aAAA,uBAAoB;AAEpB,EAAAA,aAAA,yBAAsB;AANZ,SAAAA;AAAA,GAAA;AAkBL,SAAS,eAAe,cAAyD;AACtF,MAAI,iBAAiB,QAAW;AAC9B,WAAO;AAAA,EACT;AACA,QAAM,iBAA2D;AAAA,IAC/D,mBAAmB;AAAA,IACnB,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,EACtB;AACA,MAAI,gBAAgB,gBAAgB;AAClC,WAAO,eAAe,YAAY;AAAA,EACpC,OAAO;AACL,UAAM,IAAI;AAAA,MACR,0BAA0B,YAAY;AAAA,IACxC;AAAA,EACF;AACF;",
6
+ "names": ["AzureClouds"]
7
+ }