@distilled.cloud/scaleway 0.0.0 → 1.0.0-rc.21

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 (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +171 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +635 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +89 -2
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +946 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2130 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5377 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,4211 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
3
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
7
+ import { ScalewayServiceErrors } from "../errors.ts";
8
+ import { paginateByTotalCount } from "../pagination.ts";
9
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
10
+ import * as Retry from "../retry.ts";
11
+ import * as T from "../traits.ts";
12
+ // Schema table, filled on first reach (see __S at the end).
13
+ const __s: any[] = [];
14
+
15
+ export type { ScalewayOpError, ScalewayOpContext };
16
+
17
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
18
+ const TELEMETRY = {
19
+ system: "scaleway-api",
20
+ responseHeaders: [
21
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
22
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
23
+ ],
24
+ prefix: "Scaleway",
25
+ service: "RdbV1",
26
+ labels: "scaleway",
27
+ propagate: "w3c",
28
+ } as const;
29
+
30
+ export type AddInstanceACLRulesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
31
+ export interface ACLRuleRequest {
32
+ /** (IP network) */
33
+ ip?: string | undefined;
34
+ description?: string | undefined;
35
+ }
36
+ /** ACL rules to add to the Database Instance. */
37
+ export type AddInstanceACLRulesRequestRulesList = Array<ACLRuleRequest>;
38
+ export interface AddInstanceACLRulesRequest {
39
+ /** The region you want to target */
40
+ region?: AddInstanceACLRulesRequestRegion | (string & {}) | undefined;
41
+ /** UUID of the Database Instance you want to add ACL rules to. */
42
+ instance_id: string;
43
+ /** ACL rules to add to the Database Instance. */
44
+ rules: AddInstanceACLRulesRequestRulesList;
45
+ }
46
+ export type ACLRuleProtocol = "tcp" | "udp" | "icmp";
47
+ export type ACLRuleDirection = "inbound" | "outbound";
48
+ export type ACLRuleAction = "allow" | "deny";
49
+ export interface ACLRule {
50
+ /** (IP network) */
51
+ ip?: string | undefined;
52
+ protocol?: ACLRuleProtocol | undefined;
53
+ direction?: ACLRuleDirection | undefined;
54
+ action?: ACLRuleAction | undefined;
55
+ description?: string | undefined;
56
+ port?: number | undefined;
57
+ }
58
+ /** ACL Rules enabled for the Database Instance. */
59
+ export type AddInstanceACLRulesResponseRulesList = Array<ACLRule>;
60
+ export interface AddInstanceACLRulesResponse {
61
+ /** ACL Rules enabled for the Database Instance. */
62
+ rules?: AddInstanceACLRulesResponseRulesList | undefined;
63
+ }
64
+ export type AddInstanceSettingsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
65
+ export interface InstanceSetting {
66
+ name?: string | undefined;
67
+ value?: string | undefined;
68
+ }
69
+ /** Settings to add to the Database Instance. */
70
+ export type AddInstanceSettingsRequestSettingsList = Array<InstanceSetting>;
71
+ export interface AddInstanceSettingsRequest {
72
+ /** The region you want to target */
73
+ region?: AddInstanceSettingsRequestRegion | (string & {}) | undefined;
74
+ /** UUID of the Database Instance you want to add settings to. */
75
+ instance_id: string;
76
+ /** Settings to add to the Database Instance. */
77
+ settings: AddInstanceSettingsRequestSettingsList;
78
+ }
79
+ /** Settings available on the Database Instance. */
80
+ export type AddInstanceSettingsResponseSettingsList = Array<InstanceSetting>;
81
+ export interface AddInstanceSettingsResponse {
82
+ /** Settings available on the Database Instance. */
83
+ settings?: AddInstanceSettingsResponseSettingsList | undefined;
84
+ }
85
+ export type ApplyInstanceMaintenanceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
86
+ export interface ApplyInstanceMaintenanceRequest {
87
+ /** The region you want to target */
88
+ region?: ApplyInstanceMaintenanceRequestRegion | (string & {}) | undefined;
89
+ /** UUID of the Database Instance you want to apply maintenance. */
90
+ instance_id: string;
91
+ }
92
+ export type MaintenanceStatus = "unknown" | "pending" | "done" | "canceled" | "ongoing";
93
+ export interface Maintenance {
94
+ /** Start date of the maintenance window. (RFC 3339 format) */
95
+ starts_at?: string | null | undefined;
96
+ /** End date of the maintenance window. (RFC 3339 format) */
97
+ stops_at?: string | null | undefined;
98
+ /** Closed maintenance date. (RFC 3339 format) */
99
+ closed_at?: string | null | undefined;
100
+ /** Maintenance information message. */
101
+ reason?: string | undefined;
102
+ /** Status of the maintenance. */
103
+ status?: MaintenanceStatus | undefined;
104
+ /** Time when Scaleway-side maintenance will be applied. (RFC 3339 format) */
105
+ forced_at?: string | null | undefined;
106
+ /** Indicate if the maintenance can be applied by the user. */
107
+ is_applicable?: boolean | undefined;
108
+ }
109
+ export type CloneInstanceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
110
+ export interface CloneInstanceRequest {
111
+ /** The region you want to target */
112
+ region?: CloneInstanceRequestRegion | (string & {}) | undefined;
113
+ /** UUID of the Database Instance you want to clone. */
114
+ instance_id: string;
115
+ /** Name of the Database Instance clone. */
116
+ name?: string | undefined;
117
+ /** Node type of the clone. */
118
+ node_type?: string | null | undefined;
119
+ }
120
+ export type VolumeType = "lssd" | "bssd" | "sbs_5k" | "sbs_15k";
121
+ export type StorageClass = "unknown_storage_class" | "lssd" | "bssd" | "sbs";
122
+ export interface Volume {
123
+ type?: VolumeType | undefined;
124
+ /** (in bytes) */
125
+ size?: number | undefined;
126
+ class?: StorageClass | undefined;
127
+ }
128
+ export type InstanceStatus =
129
+ | "unknown"
130
+ | "ready"
131
+ | "provisioning"
132
+ | "configuring"
133
+ | "deleting"
134
+ | "error"
135
+ | "autohealing"
136
+ | "locked"
137
+ | "initializing"
138
+ | "disk_full"
139
+ | "backuping"
140
+ | "snapshotting"
141
+ | "restarting";
142
+ export interface UpgradableVersion {
143
+ /** (UUID format) */
144
+ id?: string | undefined;
145
+ name?: string | undefined;
146
+ version?: string | undefined;
147
+ minor_version?: string | undefined;
148
+ }
149
+ /** Available database engine versions for upgrade. */
150
+ export type InstanceUpgradableVersionList = Array<UpgradableVersion>;
151
+ export type EndpointPrivateNetworkDetailsProvisioningMode = "static" | "ipam";
152
+ export interface EndpointPrivateNetworkDetails {
153
+ /** UUID of the private network. (UUID format) */
154
+ private_network_id?: string | undefined;
155
+ /** CIDR notation of the endpoint IPv4 address. (IP network) */
156
+ service_ip?: string | undefined;
157
+ /** Private network zone. */
158
+ zone?: string | undefined;
159
+ /** How endpoint ips are provisioned. */
160
+ provisioning_mode?: EndpointPrivateNetworkDetailsProvisioningMode | undefined;
161
+ }
162
+ export interface Endpoint {
163
+ /** UUID of the endpoint. (UUID format) */
164
+ id?: string | undefined;
165
+ /** IPv4 address of the endpoint. (IP address) Precisely one of ip, hostname can be set. */
166
+ ip?: string | null | undefined;
167
+ /** TCP port of the endpoint. */
168
+ port?: number | undefined;
169
+ /** Name of the endpoint. */
170
+ name?: string | null | undefined;
171
+ /** Private Network details. One maximum per Database Instance or Read Replica (a Database Instance and its Read Replica can have different Private Networks). Cannot be updated (has to be deleted and recreated). Precisely one of private_network, load_balancer, direct_access can be set. */
172
+ private_network?: EndpointPrivateNetworkDetails | null | undefined;
173
+ /** Load balancer details. Public endpoint for Database Instance which is systematically present. One per Database Instance. Precisely one of private_network, load_balancer, direct_access can be set. */
174
+ load_balancer?: unknown | null | undefined;
175
+ /** Direct access details. Public endpoint reserved for Read Replicas. One per Read Replica. Precisely one of private_network, load_balancer, direct_access can be set. */
176
+ direct_access?: unknown | null | undefined;
177
+ /** Hostname of the endpoint. Precisely one of ip, hostname can be set. */
178
+ hostname?: string | null | undefined;
179
+ }
180
+ /** List of tags applied to the Database Instance. */
181
+ export type InstanceTagsList = Array<string>;
182
+ /** Advanced settings of the Database Instance. */
183
+ export type InstanceSettingsList = Array<InstanceSetting>;
184
+ export interface BackupSchedule {
185
+ /** Frequency of the backup schedule (in hours). */
186
+ frequency?: number | undefined;
187
+ /** Default retention period of backups (in days). */
188
+ retention?: number | undefined;
189
+ /** Defines whether the backup schedule feature is disabled. */
190
+ disabled?: boolean | undefined;
191
+ /** Next run of the backup schedule (accurate to 10 minutes). (RFC 3339 format) */
192
+ next_run_at?: string | null | undefined;
193
+ }
194
+ export type HighAvailabilityMode =
195
+ | "unknown_high_availability_mode"
196
+ | "disabled"
197
+ | "single_zone"
198
+ | "multiple_zone";
199
+ /** Display Read Replica connection information. */
200
+ export type ReadReplicaEndpointsList = Array<Endpoint>;
201
+ export type ReadReplicaStatus =
202
+ | "unknown"
203
+ | "provisioning"
204
+ | "initializing"
205
+ | "ready"
206
+ | "deleting"
207
+ | "error"
208
+ | "locked"
209
+ | "configuring"
210
+ | "promoting";
211
+ export interface ReadReplica {
212
+ /** UUID of the Read Replica. (UUID format) */
213
+ id?: string | undefined;
214
+ /** Display Read Replica connection information. */
215
+ endpoints?: ReadReplicaEndpointsList | undefined;
216
+ /** Read replica status. */
217
+ status?: ReadReplicaStatus | undefined;
218
+ /** Region the Read Replica is in. */
219
+ region?: string | undefined;
220
+ /** Whether the replica is in the same availability zone as the main instance nodes or not. */
221
+ same_zone?: boolean | undefined;
222
+ /** UUID of the Database Instance. */
223
+ instance_id?: string | undefined;
224
+ }
225
+ /** Read Replicas of the Database Instance. */
226
+ export type InstanceReadReplicasList = Array<ReadReplica>;
227
+ /** List of engine settings to be set at database initialization. */
228
+ export type InstanceInitSettingsList = Array<InstanceSetting>;
229
+ /** List of Database Instance endpoints. */
230
+ export type InstanceEndpointsList = Array<Endpoint>;
231
+ export interface LogsPolicy {
232
+ /** Max age (in days) of remote logs to keep on the Database Instance. */
233
+ max_age_retention?: number | null | undefined;
234
+ /** Max disk size of remote logs to keep on the Database Instance. (in bytes) */
235
+ total_disk_retention?: number | null | undefined;
236
+ }
237
+ /** List of Database Instance maintenance events. */
238
+ export type InstanceMaintenancesList = Array<Maintenance>;
239
+ export interface EncryptionAtRest {
240
+ enabled?: boolean | undefined;
241
+ /** (UUID format) */
242
+ kms_key_id?: string | null | undefined;
243
+ }
244
+ export interface Instance {
245
+ /** Creation date (must follow the ISO 8601 format). (RFC 3339 format) */
246
+ created_at?: string | null | undefined;
247
+ /** Volumes of the Database Instance. */
248
+ volume?: Volume | undefined;
249
+ /** Region the Database Instance is in. */
250
+ region?: string | undefined;
251
+ /** UUID of the Database Instance. (UUID format) */
252
+ id?: string | undefined;
253
+ /** Name of the Database Instance. */
254
+ name?: string | undefined;
255
+ /** Organization ID the Database Instance belongs to. (UUID format) */
256
+ organization_id?: string | undefined;
257
+ /** Project ID the Database Instance belongs to. (UUID format) */
258
+ project_id?: string | undefined;
259
+ /** Status of the Database Instance. */
260
+ status?: InstanceStatus | undefined;
261
+ /** Database engine of the database (PostgreSQL, MySQL, ...). */
262
+ engine?: string | undefined;
263
+ /** Available database engine versions for upgrade. */
264
+ upgradable_version?: InstanceUpgradableVersionList | undefined;
265
+ /** Endpoint of the Database Instance. */
266
+ endpoint?: Endpoint | undefined;
267
+ /** List of tags applied to the Database Instance. */
268
+ tags?: InstanceTagsList | undefined;
269
+ /** Advanced settings of the Database Instance. */
270
+ settings?: InstanceSettingsList | undefined;
271
+ /** Backup schedule of the Database Instance. */
272
+ backup_schedule?: BackupSchedule | undefined;
273
+ /** Defines whether or not High-Availability is enabled. */
274
+ is_ha_cluster?: boolean | undefined;
275
+ /** Defines the High-Availability mode of the instance. */
276
+ high_availability_mode?: HighAvailabilityMode | undefined;
277
+ /** Read Replicas of the Database Instance. */
278
+ read_replicas?: InstanceReadReplicasList | undefined;
279
+ /** Node type of the Database Instance. */
280
+ node_type?: string | undefined;
281
+ /** List of engine settings to be set at database initialization. */
282
+ init_settings?: InstanceInitSettingsList | undefined;
283
+ /** List of Database Instance endpoints. */
284
+ endpoints?: InstanceEndpointsList | undefined;
285
+ /** Logs policy of the Database Instance. */
286
+ logs_policy?: LogsPolicy | undefined;
287
+ /** Store logical backups in the same region as the Database Instance. */
288
+ backup_same_region?: boolean | undefined;
289
+ /** List of Database Instance maintenance events. */
290
+ maintenances?: InstanceMaintenancesList | undefined;
291
+ /** Encryption at rest settings for your Database Instance. */
292
+ encryption?: EncryptionAtRest | undefined;
293
+ }
294
+ export type CreateDatabaseRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
295
+ export interface CreateDatabaseRequest {
296
+ /** The region you want to target */
297
+ region?: CreateDatabaseRequestRegion | (string & {}) | undefined;
298
+ /** UUID of the Database Instance where to create the database. */
299
+ instance_id: string;
300
+ /** Name of the database. */
301
+ name?: string | undefined;
302
+ }
303
+ export interface Database {
304
+ /** Name of the database. */
305
+ name?: string | undefined;
306
+ /** Name of the database owner. */
307
+ owner?: string | undefined;
308
+ /** Defines whether the database is managed or not. */
309
+ managed?: boolean | undefined;
310
+ /** Size of the database. Set to 0 if the size retrieval is too time-consuming or `skip_size_retrieval` is set to true. (in bytes) */
311
+ size?: number | undefined;
312
+ }
313
+ export type CreateDatabaseBackupRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
314
+ export interface CreateDatabaseBackupRequest {
315
+ /** The region you want to target */
316
+ region?: CreateDatabaseBackupRequestRegion | (string & {}) | undefined;
317
+ /** UUID of the Database Instance. */
318
+ instance_id: string;
319
+ /** Name of the database you want to back up. */
320
+ database_name: string;
321
+ /** Name of the backup. */
322
+ name?: string | undefined;
323
+ /** Expiration date (must follow the ISO 8601 format). (RFC 3339 format) */
324
+ expires_at?: string | null | undefined;
325
+ }
326
+ export type DatabaseBackupStatus =
327
+ | "unknown"
328
+ | "creating"
329
+ | "ready"
330
+ | "restoring"
331
+ | "deleting"
332
+ | "error"
333
+ | "exporting"
334
+ | "locked";
335
+ export interface DatabaseBackup {
336
+ /** UUID of the database backup. */
337
+ id?: string | undefined;
338
+ /** UUID of the Database Instance. */
339
+ instance_id?: string | undefined;
340
+ /** Name of backed up database. */
341
+ database_name?: string | undefined;
342
+ /** Name of the backup. */
343
+ name?: string | undefined;
344
+ /** Status of the backup. */
345
+ status?: DatabaseBackupStatus | undefined;
346
+ /** Size of the database backup. (in bytes) */
347
+ size?: number | null | undefined;
348
+ /** Expiration date (must follow the ISO 8601 format). (RFC 3339 format) */
349
+ expires_at?: string | null | undefined;
350
+ /** Creation date (must follow the ISO 8601 format). (RFC 3339 format) */
351
+ created_at?: string | null | undefined;
352
+ /** Updated date (must follow the ISO 8601 format). (RFC 3339 format) */
353
+ updated_at?: string | null | undefined;
354
+ /** Name of the Database Instance of the backup. */
355
+ instance_name?: string | undefined;
356
+ /** URL you can download the backup from. */
357
+ download_url?: string | null | undefined;
358
+ /** Expiration date of the download link. (RFC 3339 format) */
359
+ download_url_expires_at?: string | null | undefined;
360
+ /** Region of the database backup. */
361
+ region?: string | undefined;
362
+ /** Store logical backups in the same region as the source Database Instance. */
363
+ same_region?: boolean | undefined;
364
+ }
365
+ export type CreateEndpointRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
366
+ export interface EndpointSpecPrivateNetwork {
367
+ /** UUID of the Private Network to be connected to the Database Instance. (UUID format) */
368
+ private_network_id?: string | undefined;
369
+ /** Endpoint IPv4 address with a CIDR notation. Refer to the official Scaleway documentation to learn more about IP and subnet limitations. (IP network) Precisely one of service_ip, ipam_config can be set. */
370
+ service_ip?: string | null | undefined;
371
+ /** Automated configuration of your Private Network endpoint with Scaleway IPAM service. One at the most per Database Instance or Read Replica (a Database Instance and its Read Replica can have different Private Networks). Cannot be updated (has to be deleted and recreated). Precisely one of service_ip, ipam_config can be set. */
372
+ ipam_config?: unknown | null | undefined;
373
+ }
374
+ export interface EndpointSpec {
375
+ /** Load balancer endpoint specifications. Public endpoint for Database Instance which is systematically present. One per RDB instance. Precisely one of load_balancer, private_network can be set. */
376
+ load_balancer?: unknown | null | undefined;
377
+ /** Private Network endpoint specifications. One maximum per Database Instance or Read Replica (a Database Instance and its Read Replica can have different Private Networks). Cannot be updated (has to be deleted and recreated). Precisely one of load_balancer, private_network can be set. */
378
+ private_network?: EndpointSpecPrivateNetwork | null | undefined;
379
+ }
380
+ export interface CreateEndpointRequest {
381
+ /** The region you want to target */
382
+ region?: CreateEndpointRequestRegion | (string & {}) | undefined;
383
+ /** UUID of the Database Instance you to which you want to add an endpoint. */
384
+ instance_id: string;
385
+ /** Specification of the endpoint you want to create. */
386
+ endpoint_spec?: EndpointSpec | undefined;
387
+ }
388
+ export type CreateInstanceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
389
+ /** Tags to apply to the Database Instance. */
390
+ export type CreateInstanceRequestTagsList = Array<string>;
391
+ /** List of engine settings to be set upon Database Instance initialization. */
392
+ export type CreateInstanceRequestInitSettingsList = Array<InstanceSetting>;
393
+ /** One or multiple EndpointSpec used to expose your Database Instance. A load_balancer public endpoint is systematically created. */
394
+ export type CreateInstanceRequestInitEndpointsList = Array<EndpointSpec>;
395
+ export interface CreateInstanceRequest {
396
+ /** The region you want to target */
397
+ region?: CreateInstanceRequestRegion | (string & {}) | undefined;
398
+ /** Please use project_id instead. Precisely one of project_id, organization_id can be set. */
399
+ organization_id?: string | null | undefined;
400
+ /** The Project ID on which the Database Instance will be created. Precisely one of project_id, organization_id can be set. */
401
+ project_id?: string | null | undefined;
402
+ /** Name of the Database Instance. */
403
+ name?: string | undefined;
404
+ /** Database engine of the Database Instance (PostgreSQL, MySQL, ...). */
405
+ engine: string;
406
+ /** Username created when the Database Instance is created. */
407
+ user_name: string;
408
+ /** Password of the user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character. */
409
+ password: string | Redacted.Redacted<string>;
410
+ /** Type of node to use for the Database Instance. */
411
+ node_type: string;
412
+ /** Defines whether or not High-Availability is enabled. */
413
+ is_ha_cluster?: boolean | undefined;
414
+ /** Defines the High-Availability mode of the instance. */
415
+ high_availability_mode?: HighAvailabilityMode | (string & {}) | undefined;
416
+ /** Defines whether or not backups are disabled. */
417
+ disable_backup?: boolean | undefined;
418
+ /** Tags to apply to the Database Instance. */
419
+ tags?: CreateInstanceRequestTagsList | undefined;
420
+ /** List of engine settings to be set upon Database Instance initialization. */
421
+ init_settings?: CreateInstanceRequestInitSettingsList | undefined;
422
+ /** Type of volume where data is stored (lssd, bssd, ...). */
423
+ volume_type?: VolumeType | (string & {}) | undefined;
424
+ /** Volume size when volume_type is not lssd. (in bytes) */
425
+ volume_size?: number | undefined;
426
+ /** One or multiple EndpointSpec used to expose your Database Instance. A load_balancer public endpoint is systematically created. */
427
+ init_endpoints?: CreateInstanceRequestInitEndpointsList | undefined;
428
+ /** Defines whether to or not to store logical backups in the same region as the Database Instance. */
429
+ backup_same_region?: boolean | undefined;
430
+ /** Encryption at rest settings for your Database Instance. */
431
+ encryption?: EncryptionAtRest | undefined;
432
+ }
433
+ export type CreateInstanceFromSnapshotRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
434
+ export interface CreateInstanceFromSnapshotRequest {
435
+ /** The region you want to target */
436
+ region?: CreateInstanceFromSnapshotRequestRegion | (string & {}) | undefined;
437
+ /** Block snapshot of the Database Instance. */
438
+ snapshot_id: string;
439
+ /** Name of the Database Instance created with the snapshot. */
440
+ instance_name?: string | undefined;
441
+ /** Defines whether or not High-Availability is enabled on the new Database Instance. */
442
+ is_ha_cluster?: boolean | null | undefined;
443
+ /** Defines the High-Availability mode of the instance. */
444
+ high_availability_mode?: HighAvailabilityMode | (string & {}) | undefined;
445
+ /** The node type used to restore the snapshot. */
446
+ node_type?: string | null | undefined;
447
+ }
448
+ export type CreateReadReplicaRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
449
+ export interface ReadReplicaEndpointSpecPrivateNetwork {
450
+ /** UUID of the Private Network to be connected to the Read Replica. (UUID format) */
451
+ private_network_id?: string | undefined;
452
+ /** Endpoint IPv4 address with a CIDR notation. Refer to the official Scaleway documentation to learn more about IP and subnet limitations. (IP network) Precisely one of service_ip, ipam_config can be set. */
453
+ service_ip?: string | null | undefined;
454
+ /** Automated configuration of your Private Network endpoint with Scaleway IPAM service. One at the most per Database Instance or Read Replica (a Database Instance and its Read Replica can have different private networks). Cannot be updated (has to be deleted and recreated). Precisely one of service_ip, ipam_config can be set. */
455
+ ipam_config?: unknown | null | undefined;
456
+ }
457
+ export interface ReadReplicaEndpointSpec {
458
+ /** Direct access endpoint specifications. Public endpoint reserved for Read Replicas. One per Read Replica. Precisely one of direct_access, private_network can be set. */
459
+ direct_access?: unknown | null | undefined;
460
+ /** Private Network endpoint specifications. One at the most per Read Replica. Cannot be updated (has to be deleted and recreated). Precisely one of direct_access, private_network can be set. */
461
+ private_network?: ReadReplicaEndpointSpecPrivateNetwork | null | undefined;
462
+ }
463
+ /** Specification of the endpoint you want to create. */
464
+ export type CreateReadReplicaRequestEndpointSpecList = Array<ReadReplicaEndpointSpec>;
465
+ export interface CreateReadReplicaRequest {
466
+ /** The region you want to target */
467
+ region?: CreateReadReplicaRequestRegion | (string & {}) | undefined;
468
+ /** UUID of the Database Instance you want to create a Read Replica from. (UUID format) */
469
+ instance_id: string;
470
+ /** Specification of the endpoint you want to create. */
471
+ endpoint_spec?: CreateReadReplicaRequestEndpointSpecList | undefined;
472
+ /** Defines whether to create the replica in the same availability zone as the main instance nodes or not. */
473
+ same_zone?: boolean | null | undefined;
474
+ }
475
+ export type CreateReadReplicaEndpointRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
476
+ /** Specification of the endpoint you want to create. */
477
+ export type CreateReadReplicaEndpointRequestEndpointSpecList = Array<ReadReplicaEndpointSpec>;
478
+ export interface CreateReadReplicaEndpointRequest {
479
+ /** The region you want to target */
480
+ region?: CreateReadReplicaEndpointRequestRegion | (string & {}) | undefined;
481
+ /** UUID of the Read Replica. (UUID format) */
482
+ read_replica_id: string;
483
+ /** Specification of the endpoint you want to create. */
484
+ endpoint_spec: CreateReadReplicaEndpointRequestEndpointSpecList;
485
+ }
486
+ export type CreateSnapshotRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
487
+ export interface CreateSnapshotRequest {
488
+ /** The region you want to target */
489
+ region?: CreateSnapshotRequestRegion | (string & {}) | undefined;
490
+ /** UUID of the Database Instance. */
491
+ instance_id: string;
492
+ /** Name of the snapshot. */
493
+ name: string;
494
+ /** Expiration date (must follow the ISO 8601 format). (RFC 3339 format) */
495
+ expires_at?: string | null | undefined;
496
+ }
497
+ export type SnapshotStatus =
498
+ | "unknown"
499
+ | "creating"
500
+ | "ready"
501
+ | "restoring"
502
+ | "deleting"
503
+ | "error"
504
+ | "locked";
505
+ export interface SnapshotVolumeType {
506
+ type?: VolumeType | undefined;
507
+ class?: StorageClass | undefined;
508
+ }
509
+ export interface Snapshot {
510
+ /** UUID of the snapshot. */
511
+ id?: string | undefined;
512
+ /** UUID of the Database Instance. */
513
+ instance_id?: string | undefined;
514
+ /** Name of the snapshot. */
515
+ name?: string | undefined;
516
+ /** Status of the snapshot. */
517
+ status?: SnapshotStatus | undefined;
518
+ /** Size of the snapshot. (in bytes) */
519
+ size?: number | null | undefined;
520
+ /** Expiration date (must follow the ISO 8601 format). (RFC 3339 format) */
521
+ expires_at?: string | null | undefined;
522
+ /** Creation date (must follow the ISO 8601 format). (RFC 3339 format) */
523
+ created_at?: string | null | undefined;
524
+ /** Updated date (must follow the ISO 8601 format). (RFC 3339 format) */
525
+ updated_at?: string | null | undefined;
526
+ /** Name of the Database Instance of the snapshot. */
527
+ instance_name?: string | undefined;
528
+ /** Source node type. */
529
+ node_type?: string | undefined;
530
+ /** Type of volume where data is stored (lssd, bssd or sbs). */
531
+ volume_type?: SnapshotVolumeType | undefined;
532
+ /** Region of this snapshot. */
533
+ region?: string | undefined;
534
+ }
535
+ export type CreateUserRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
536
+ export interface CreateUserRequest {
537
+ /** The region you want to target */
538
+ region?: CreateUserRequestRegion | (string & {}) | undefined;
539
+ /** UUID of the Database Instance in which you want to create a user. */
540
+ instance_id: string;
541
+ /** Name of the user you want to create. */
542
+ name?: string | undefined;
543
+ /** Password of the user you want to create. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character. */
544
+ password?: string | Redacted.Redacted<string> | undefined;
545
+ /** Defines whether the user will have administrative privileges. */
546
+ is_admin?: boolean | undefined;
547
+ }
548
+ export interface User {
549
+ /** Name of the user (Length must be between 1 and 63 characters for PostgreSQL and between 1 and 32 characters for MySQL. First character must be an alphabet character (a-zA-Z). Your username cannot start with '_rdb' or in PostgreSQL, 'pg_'. Only a-zA-Z0-9_$- characters are accepted). */
550
+ name?: string | undefined;
551
+ /** Defines whether or not a user got administrative privileges on the Database Instance. */
552
+ is_admin?: boolean | undefined;
553
+ }
554
+ export type DeleteDatabaseRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
555
+ export interface DeleteDatabaseRequest {
556
+ /** The region you want to target */
557
+ region?: DeleteDatabaseRequestRegion | (string & {}) | undefined;
558
+ /** UUID of the Database Instance where to delete the database. */
559
+ instance_id: string;
560
+ /** Name of the database to delete. */
561
+ name: string;
562
+ }
563
+ export interface DeleteDatabaseResponse {}
564
+ export type DeleteDatabaseBackupRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
565
+ export interface DeleteDatabaseBackupRequest {
566
+ /** The region you want to target */
567
+ region?: DeleteDatabaseBackupRequestRegion | (string & {}) | undefined;
568
+ /** UUID of the database backup to delete. */
569
+ database_backup_id: string;
570
+ }
571
+ export type DeleteEndpointRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
572
+ export interface DeleteEndpointRequest {
573
+ /** The region you want to target */
574
+ region?: DeleteEndpointRequestRegion | (string & {}) | undefined;
575
+ /** UUID of the endpoint you want to delete. This endpoint can also be used to delete a Read Replica endpoint. */
576
+ endpoint_id: string;
577
+ }
578
+ export interface DeleteEndpointResponse {}
579
+ export type DeleteInstanceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
580
+ export interface DeleteInstanceRequest {
581
+ /** The region you want to target */
582
+ region?: DeleteInstanceRequestRegion | (string & {}) | undefined;
583
+ /** UUID of the Database Instance to delete. */
584
+ instance_id: string;
585
+ }
586
+ export type DeleteInstanceACLRulesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
587
+ /** IP addresses defined in the ACL rules of the Database Instance. */
588
+ export type DeleteInstanceACLRulesRequestAclRuleIpsList = Array<string>;
589
+ export interface DeleteInstanceACLRulesRequest {
590
+ /** The region you want to target */
591
+ region?: DeleteInstanceACLRulesRequestRegion | (string & {}) | undefined;
592
+ /** UUID of the Database Instance you want to delete an ACL rule from. */
593
+ instance_id: string;
594
+ /** IP addresses defined in the ACL rules of the Database Instance. */
595
+ acl_rule_ips: DeleteInstanceACLRulesRequestAclRuleIpsList;
596
+ }
597
+ /** IP addresses defined in the ACL rules of the Database Instance. */
598
+ export type DeleteInstanceACLRulesResponseRulesList = Array<ACLRule>;
599
+ export interface DeleteInstanceACLRulesResponse {
600
+ /** IP addresses defined in the ACL rules of the Database Instance. */
601
+ rules?: DeleteInstanceACLRulesResponseRulesList | undefined;
602
+ }
603
+ export type DeleteInstanceSettingsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
604
+ /** Settings names to delete. */
605
+ export type DeleteInstanceSettingsRequestSettingNamesList = Array<string>;
606
+ export interface DeleteInstanceSettingsRequest {
607
+ /** The region you want to target */
608
+ region?: DeleteInstanceSettingsRequestRegion | (string & {}) | undefined;
609
+ /** UUID of the Database Instance to delete settings from. */
610
+ instance_id: string;
611
+ /** Settings names to delete. */
612
+ setting_names: DeleteInstanceSettingsRequestSettingNamesList;
613
+ }
614
+ /** Settings names to delete from the Database Instance. */
615
+ export type DeleteInstanceSettingsResponseSettingsList = Array<InstanceSetting>;
616
+ export interface DeleteInstanceSettingsResponse {
617
+ /** Settings names to delete from the Database Instance. */
618
+ settings?: DeleteInstanceSettingsResponseSettingsList | undefined;
619
+ }
620
+ export type DeleteReadReplicaRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
621
+ export interface DeleteReadReplicaRequest {
622
+ /** The region you want to target */
623
+ region?: DeleteReadReplicaRequestRegion | (string & {}) | undefined;
624
+ /** UUID of the Read Replica. (UUID format) */
625
+ read_replica_id: string;
626
+ }
627
+ export type DeleteSnapshotRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
628
+ export interface DeleteSnapshotRequest {
629
+ /** The region you want to target */
630
+ region?: DeleteSnapshotRequestRegion | (string & {}) | undefined;
631
+ /** UUID of the snapshot to delete. */
632
+ snapshot_id: string;
633
+ }
634
+ export type DeleteUserRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
635
+ export interface DeleteUserRequest {
636
+ /** The region you want to target */
637
+ region?: DeleteUserRequestRegion | (string & {}) | undefined;
638
+ /** UUID of the Database Instance to delete the user from. */
639
+ instance_id: string;
640
+ /** Name of the user. */
641
+ name: string;
642
+ }
643
+ export interface DeleteUserResponse {}
644
+ export type ExportDatabaseBackupRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
645
+ export interface ExportDatabaseBackupRequest {
646
+ /** The region you want to target */
647
+ region?: ExportDatabaseBackupRequestRegion | (string & {}) | undefined;
648
+ /** UUID of the database backup you want to export. */
649
+ database_backup_id: string;
650
+ }
651
+ export type GetDatabaseBackupRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
652
+ export interface GetDatabaseBackupRequest {
653
+ /** The region you want to target */
654
+ region?: GetDatabaseBackupRequestRegion | (string & {}) | undefined;
655
+ /** UUID of the database backup. */
656
+ database_backup_id: string;
657
+ }
658
+ export type GetEndpointRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
659
+ export interface GetEndpointRequest {
660
+ /** The region you want to target */
661
+ region?: GetEndpointRequestRegion | (string & {}) | undefined;
662
+ /** UUID of the endpoint you want to get. */
663
+ endpoint_id: string;
664
+ }
665
+ export type GetInstanceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
666
+ export interface GetInstanceRequest {
667
+ /** The region you want to target */
668
+ region?: GetInstanceRequestRegion | (string & {}) | undefined;
669
+ /** UUID of the Database Instance. */
670
+ instance_id: string;
671
+ }
672
+ export type GetInstanceCertificateRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
673
+ export interface GetInstanceCertificateRequest {
674
+ /** The region you want to target */
675
+ region?: GetInstanceCertificateRequestRegion | (string & {}) | undefined;
676
+ /** UUID of the Database Instance. */
677
+ instance_id: string;
678
+ }
679
+ export interface ScalewayStdFile {
680
+ name?: string | undefined;
681
+ content_type?: string | undefined;
682
+ content?: string | undefined;
683
+ }
684
+ export interface GetInstanceCertificateRawRequest {
685
+ /** The region you want to target */
686
+ region?: GetInstanceCertificateRequestRegion | (string & {}) | undefined;
687
+ /** UUID of the Database Instance. */
688
+ instance_id: string;
689
+ }
690
+ export interface GetInstanceCertificateRawResponse {
691
+ body: BinaryStream;
692
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
693
+ contentType?: string | undefined;
694
+ }
695
+ export type GetInstanceLogRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
696
+ export interface GetInstanceLogRequest {
697
+ /** The region you want to target */
698
+ region?: GetInstanceLogRequestRegion | (string & {}) | undefined;
699
+ /** UUID of the instance_log you want. */
700
+ instance_log_id: string;
701
+ }
702
+ export type InstanceLogStatus = "unknown" | "ready" | "creating" | "error";
703
+ export interface InstanceLog {
704
+ /** Presigned Object Storage URL to download your log file. */
705
+ download_url?: string | null | undefined;
706
+ /** UUID of the Database Instance log. */
707
+ id?: string | undefined;
708
+ /** Status of the logs in a Database Instance. */
709
+ status?: InstanceLogStatus | undefined;
710
+ /** Name of the underlying node. */
711
+ node_name?: string | undefined;
712
+ /** Expiration date (must follow the ISO 8601 format). (RFC 3339 format) */
713
+ expires_at?: string | null | undefined;
714
+ /** Creation date (must follow the ISO 8601 format). (RFC 3339 format) */
715
+ created_at?: string | null | undefined;
716
+ /** Region the Database Instance is in. */
717
+ region?: string | undefined;
718
+ }
719
+ export type GetReadReplicaRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
720
+ export interface GetReadReplicaRequest {
721
+ /** The region you want to target */
722
+ region?: GetReadReplicaRequestRegion | (string & {}) | undefined;
723
+ /** UUID of the Read Replica. (UUID format) */
724
+ read_replica_id: string;
725
+ }
726
+ export type GetSnapshotRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
727
+ export interface GetSnapshotRequest {
728
+ /** The region you want to target */
729
+ region?: GetSnapshotRequestRegion | (string & {}) | undefined;
730
+ /** UUID of the snapshot. */
731
+ snapshot_id: string;
732
+ }
733
+ export type ListDatabaseBackupsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
734
+ export type ListDatabaseBackupsRequestOrderBy =
735
+ | "created_at_asc"
736
+ | "created_at_desc"
737
+ | "name_asc"
738
+ | "name_desc"
739
+ | "status_asc"
740
+ | "status_desc";
741
+ export interface ListDatabaseBackupsRequest {
742
+ /** The region you want to target */
743
+ region?: ListDatabaseBackupsRequestRegion | (string & {}) | undefined;
744
+ /** Name of the database backups. */
745
+ name?: string | undefined;
746
+ /** Criteria to use when ordering database backups listing. */
747
+ order_by?: ListDatabaseBackupsRequestOrderBy | (string & {}) | undefined;
748
+ /** UUID of the Database Instance. */
749
+ instance_id?: string | undefined;
750
+ /** Organization ID of the Organization the database backups belong to. */
751
+ organization_id?: string | undefined;
752
+ /** Project ID of the Project the database backups belong to. */
753
+ project_id?: string | undefined;
754
+ page?: number | undefined;
755
+ page_size?: number | undefined;
756
+ }
757
+ /** List of database backups. */
758
+ export type ListDatabaseBackupsResponseDatabaseBackupsList = Array<DatabaseBackup>;
759
+ export interface ListDatabaseBackupsResponse {
760
+ /** List of database backups. */
761
+ database_backups: ListDatabaseBackupsResponseDatabaseBackupsList;
762
+ /** Total count of database backups available. */
763
+ total_count?: number | undefined;
764
+ }
765
+ export type ListDatabaseEnginesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
766
+ export interface ListDatabaseEnginesRequest {
767
+ /** The region you want to target */
768
+ region?: ListDatabaseEnginesRequestRegion | (string & {}) | undefined;
769
+ /** Name of the database engine. */
770
+ name?: string | undefined;
771
+ /** Version of the database engine. */
772
+ version?: string | undefined;
773
+ page?: number | undefined;
774
+ page_size?: number | undefined;
775
+ }
776
+ export type EngineSettingPropertyType = "BOOLEAN" | "INT" | "STRING" | "FLOAT";
777
+ export interface EngineSetting {
778
+ /** Setting name from the database engine. */
779
+ name?: string | undefined;
780
+ /** Value set when not specified. */
781
+ default_value?: string | undefined;
782
+ /** Setting can be applied without restarting. */
783
+ hot_configurable?: boolean | undefined;
784
+ /** Setting description. */
785
+ description?: string | undefined;
786
+ /** Setting type. */
787
+ property_type?: EngineSettingPropertyType | undefined;
788
+ /** Setting base unit. */
789
+ unit?: string | null | undefined;
790
+ /** Validation regex for string type settings. */
791
+ string_constraint?: string | null | undefined;
792
+ /** Minimum value for int types. */
793
+ int_min?: number | null | undefined;
794
+ /** Maximum value for int types. */
795
+ int_max?: number | null | undefined;
796
+ /** Minimum value for float types. */
797
+ float_min?: number | null | undefined;
798
+ /** Maximum value for float types. */
799
+ float_max?: number | null | undefined;
800
+ }
801
+ /** Engine settings available to be set. */
802
+ export type EngineVersionAvailableSettingsList = Array<EngineSetting>;
803
+ /** Engine settings available to be set at database initialization. */
804
+ export type EngineVersionAvailableInitSettingsList = Array<EngineSetting>;
805
+ export interface EngineVersion {
806
+ /** Database engine version. */
807
+ version?: string | undefined;
808
+ /** Database engine name. */
809
+ name?: string | undefined;
810
+ /** End of life date. (RFC 3339 format) */
811
+ end_of_life?: string | null | undefined;
812
+ /** Engine settings available to be set. */
813
+ available_settings?: EngineVersionAvailableSettingsList | undefined;
814
+ /** Disabled versions cannot be created. */
815
+ disabled?: boolean | undefined;
816
+ /** Beta status of engine version. */
817
+ beta?: boolean | undefined;
818
+ /** Engine settings available to be set at database initialization. */
819
+ available_init_settings?: EngineVersionAvailableInitSettingsList | undefined;
820
+ /** Version release date. (RFC 3339 format) */
821
+ release_date?: string | null | undefined;
822
+ }
823
+ /** Available versions. */
824
+ export type DatabaseEngineVersionsList = Array<EngineVersion>;
825
+ export interface DatabaseEngine {
826
+ /** Engine name. */
827
+ name?: string | undefined;
828
+ /** Engine logo URL. */
829
+ logo_url?: string | undefined;
830
+ /** Available versions. */
831
+ versions?: DatabaseEngineVersionsList | undefined;
832
+ /** Region of this Database Instance. */
833
+ region?: string | undefined;
834
+ }
835
+ /** List of the available database engines. */
836
+ export type ListDatabaseEnginesResponseEnginesList = Array<DatabaseEngine>;
837
+ export interface ListDatabaseEnginesResponse {
838
+ /** List of the available database engines. */
839
+ engines: ListDatabaseEnginesResponseEnginesList;
840
+ /** Total count of database engines available. */
841
+ total_count?: number | undefined;
842
+ }
843
+ export type ListDatabasesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
844
+ export type ListDatabasesRequestOrderBy = "name_asc" | "name_desc" | "size_asc" | "size_desc";
845
+ export interface ListDatabasesRequest {
846
+ /** The region you want to target */
847
+ region?: ListDatabasesRequestRegion | (string & {}) | undefined;
848
+ /** UUID of the Database Instance to list the databases of. */
849
+ instance_id: string;
850
+ /** Name of the database. */
851
+ name?: string | undefined;
852
+ /** Defines whether or not the database is managed. */
853
+ managed?: boolean | undefined;
854
+ /** User that owns this database. */
855
+ owner?: string | undefined;
856
+ /** Criteria to use when ordering database listing. */
857
+ order_by?: ListDatabasesRequestOrderBy | (string & {}) | undefined;
858
+ /** Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0. */
859
+ skip_size_retrieval?: boolean | undefined;
860
+ page?: number | undefined;
861
+ page_size?: number | undefined;
862
+ }
863
+ /** List of the databases. */
864
+ export type ListDatabasesResponseDatabasesList = Array<Database>;
865
+ export interface ListDatabasesResponse {
866
+ /** List of the databases. */
867
+ databases: ListDatabasesResponseDatabasesList;
868
+ /** Total count of databases present on a Database Instance. */
869
+ total_count?: number | undefined;
870
+ }
871
+ export type ListInstanceACLRulesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
872
+ export interface ListInstanceACLRulesRequest {
873
+ /** The region you want to target */
874
+ region?: ListInstanceACLRulesRequestRegion | (string & {}) | undefined;
875
+ /** UUID of the Database Instance. */
876
+ instance_id: string;
877
+ page?: number | undefined;
878
+ page_size?: number | undefined;
879
+ }
880
+ /** List of ACL rules present on a Database Instance. */
881
+ export type ListInstanceACLRulesResponseRulesList = Array<ACLRule>;
882
+ export interface ListInstanceACLRulesResponse {
883
+ /** List of ACL rules present on a Database Instance. */
884
+ rules: ListInstanceACLRulesResponseRulesList;
885
+ /** Total count of ACL rules present on a Database Instance. */
886
+ total_count?: number | undefined;
887
+ }
888
+ export type ListInstanceLogsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
889
+ export type ListInstanceLogsRequestOrderBy = "created_at_asc" | "created_at_desc";
890
+ export interface ListInstanceLogsRequest {
891
+ /** The region you want to target */
892
+ region?: ListInstanceLogsRequestRegion | (string & {}) | undefined;
893
+ /** UUID of the Database Instance you want logs of. */
894
+ instance_id: string;
895
+ /** Criteria to use when ordering Database Instance logs listing. */
896
+ order_by?: ListInstanceLogsRequestOrderBy | (string & {}) | undefined;
897
+ }
898
+ /** Available logs in a Database Instance. */
899
+ export type ListInstanceLogsResponseInstanceLogsList = Array<InstanceLog>;
900
+ export interface ListInstanceLogsResponse {
901
+ /** Available logs in a Database Instance. */
902
+ instance_logs?: ListInstanceLogsResponseInstanceLogsList | undefined;
903
+ }
904
+ export type ListInstanceLogsDetailsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
905
+ export interface ListInstanceLogsDetailsRequest {
906
+ /** The region you want to target */
907
+ region?: ListInstanceLogsDetailsRequestRegion | (string & {}) | undefined;
908
+ /** UUID of the Database Instance you want logs of. */
909
+ instance_id: string;
910
+ }
911
+ export interface ListInstanceLogsDetailsResponseInstanceLogDetail {
912
+ log_name?: string | undefined;
913
+ size?: number | undefined;
914
+ }
915
+ /** Remote Database Instance logs details. */
916
+ export type ListInstanceLogsDetailsResponseDetailsList =
917
+ Array<ListInstanceLogsDetailsResponseInstanceLogDetail>;
918
+ export interface ListInstanceLogsDetailsResponse {
919
+ /** Remote Database Instance logs details. */
920
+ details?: ListInstanceLogsDetailsResponseDetailsList | undefined;
921
+ }
922
+ export type ListInstancesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
923
+ export type ListInstancesRequestTagsList = Array<string>;
924
+ export type ListInstancesRequestOrderBy =
925
+ | "created_at_asc"
926
+ | "created_at_desc"
927
+ | "name_asc"
928
+ | "name_desc"
929
+ | "region"
930
+ | "status_asc"
931
+ | "status_desc";
932
+ export interface ListInstancesRequest {
933
+ /** The region you want to target */
934
+ region?: ListInstancesRequestRegion | (string & {}) | undefined;
935
+ /** List Database Instances that have a given tag. */
936
+ tags?: ListInstancesRequestTagsList | undefined;
937
+ /** Lists Database Instances that match a name pattern. */
938
+ name?: string | undefined;
939
+ /** Criteria to use when ordering Database Instance listings. */
940
+ order_by?: ListInstancesRequestOrderBy | (string & {}) | undefined;
941
+ /** Please use project_id instead. */
942
+ organization_id?: string | undefined;
943
+ /** Project ID to list the Database Instance of. */
944
+ project_id?: string | undefined;
945
+ /** Filter to only list instances with a scheduled maintenance. */
946
+ has_maintenances?: boolean | undefined;
947
+ page?: number | undefined;
948
+ page_size?: number | undefined;
949
+ }
950
+ /** List of all Database Instances available in an Organization or Project. */
951
+ export type ListInstancesResponseInstancesList = Array<Instance>;
952
+ export interface ListInstancesResponse {
953
+ /** List of all Database Instances available in an Organization or Project. */
954
+ instances: ListInstancesResponseInstancesList;
955
+ /** Total count of Database Instances available in a Organization or Project. */
956
+ total_count?: number | undefined;
957
+ }
958
+ export type ListNodeTypesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
959
+ export interface ListNodeTypesRequest {
960
+ /** The region you want to target */
961
+ region?: ListNodeTypesRequestRegion | (string & {}) | undefined;
962
+ /** Defines whether or not to include disabled types. */
963
+ include_disabled_types: boolean;
964
+ page?: number | undefined;
965
+ page_size?: number | undefined;
966
+ }
967
+ export type NodeTypeStock = "unknown" | "low_stock" | "out_of_stock" | "available";
968
+ export interface NodeTypeVolumeConstraintSizes {
969
+ /** [deprecated] Minimum size required for the Volume. (in bytes) */
970
+ min_size?: number | undefined;
971
+ /** [deprecated] Maximum size required for the Volume. (in bytes) */
972
+ max_size?: number | undefined;
973
+ }
974
+ export interface NodeTypeVolumeType {
975
+ /** Volume Type. */
976
+ type?: VolumeType | undefined;
977
+ /** The description of the Volume. */
978
+ description?: string | undefined;
979
+ /** Minimum size required for the Volume. (in bytes) */
980
+ min_size?: number | undefined;
981
+ /** Maximum size required for the Volume. (in bytes) */
982
+ max_size?: number | undefined;
983
+ /** Minimum increment level for a Block Storage volume size. (in bytes) */
984
+ chunk_size?: number | undefined;
985
+ /** The storage class of the volume. */
986
+ class?: StorageClass | undefined;
987
+ }
988
+ /** Available storage options for the Node Type. */
989
+ export type NodeTypeAvailableVolumeTypesList = Array<NodeTypeVolumeType>;
990
+ export type NodeTypeGeneration =
991
+ | "unknown_generation"
992
+ | "generation_v1"
993
+ | "generation_v2"
994
+ | "generation_v3";
995
+ export interface NodeType {
996
+ /** Node Type name identifier. */
997
+ name?: string | undefined;
998
+ /** Current stock status for the Node Type. */
999
+ stock_status?: NodeTypeStock | undefined;
1000
+ /** Current specs of the offer. */
1001
+ description?: string | undefined;
1002
+ /** Number of virtual CPUs. */
1003
+ vcpus?: number | undefined;
1004
+ /** Quantity of RAM. (in bytes) */
1005
+ memory?: number | undefined;
1006
+ /** [deprecated] Node Type volume constraints. */
1007
+ volume_constraint?: NodeTypeVolumeConstraintSizes | undefined;
1008
+ /** The Node Type is compliant with Block Storage. */
1009
+ is_bssd_compatible?: boolean | undefined;
1010
+ /** The Node Type is currently disabled. */
1011
+ disabled?: boolean | undefined;
1012
+ /** The Node Type is currently in beta. */
1013
+ beta?: boolean | undefined;
1014
+ /** Available storage options for the Node Type. */
1015
+ available_volume_types?: NodeTypeAvailableVolumeTypesList | undefined;
1016
+ /** The Node Type can be used only with high availability option. */
1017
+ is_ha_required?: boolean | undefined;
1018
+ /** Generation associated with the NodeType offer. */
1019
+ generation?: NodeTypeGeneration | undefined;
1020
+ /** Instance range associated with the NodeType offer. */
1021
+ instance_range?: string | undefined;
1022
+ /** Region the Node Type is in. */
1023
+ region?: string | undefined;
1024
+ }
1025
+ /** Types of the node. */
1026
+ export type ListNodeTypesResponseNodeTypesList = Array<NodeType>;
1027
+ export interface ListNodeTypesResponse {
1028
+ /** Types of the node. */
1029
+ node_types: ListNodeTypesResponseNodeTypesList;
1030
+ /** Total count of node-types available. */
1031
+ total_count?: number | undefined;
1032
+ }
1033
+ export type ListPrivilegesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1034
+ export type ListPrivilegesRequestOrderBy =
1035
+ | "user_name_asc"
1036
+ | "user_name_desc"
1037
+ | "database_name_asc"
1038
+ | "database_name_desc";
1039
+ export interface ListPrivilegesRequest {
1040
+ /** The region you want to target */
1041
+ region?: ListPrivilegesRequestRegion | (string & {}) | undefined;
1042
+ /** UUID of the Database Instance. */
1043
+ instance_id: string;
1044
+ /** Criteria to use when ordering privileges listing. */
1045
+ order_by?: ListPrivilegesRequestOrderBy | (string & {}) | undefined;
1046
+ page?: number | undefined;
1047
+ page_size?: number | undefined;
1048
+ /** Name of the database. */
1049
+ database_name?: string | undefined;
1050
+ /** Name of the user. */
1051
+ user_name?: string | undefined;
1052
+ }
1053
+ export type Permission = "readonly" | "readwrite" | "all" | "custom" | "none";
1054
+ export interface Privilege {
1055
+ /** Permission (Read, Read/Write, All, Custom). */
1056
+ permission?: Permission | undefined;
1057
+ /** Name of the database. */
1058
+ database_name?: string | undefined;
1059
+ /** Name of the user. */
1060
+ user_name?: string | undefined;
1061
+ }
1062
+ /** Privileges of a user in a database in a Database Instance. */
1063
+ export type ListPrivilegesResponsePrivilegesList = Array<Privilege>;
1064
+ export interface ListPrivilegesResponse {
1065
+ /** Privileges of a user in a database in a Database Instance. */
1066
+ privileges: ListPrivilegesResponsePrivilegesList;
1067
+ /** Total count of privileges present on a database. */
1068
+ total_count?: number | undefined;
1069
+ }
1070
+ export type ListSnapshotsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1071
+ export type ListSnapshotsRequestOrderBy =
1072
+ | "created_at_asc"
1073
+ | "created_at_desc"
1074
+ | "name_asc"
1075
+ | "name_desc"
1076
+ | "expires_at_asc"
1077
+ | "expires_at_desc";
1078
+ export interface ListSnapshotsRequest {
1079
+ /** The region you want to target */
1080
+ region?: ListSnapshotsRequestRegion | (string & {}) | undefined;
1081
+ /** Name of the snapshot. */
1082
+ name?: string | undefined;
1083
+ /** Criteria to use when ordering snapshot listing. */
1084
+ order_by?: ListSnapshotsRequestOrderBy | (string & {}) | undefined;
1085
+ /** UUID of the Database Instance. */
1086
+ instance_id?: string | undefined;
1087
+ /** Organization ID the snapshots belongs to. */
1088
+ organization_id?: string | undefined;
1089
+ /** Project ID the snapshots belongs to. */
1090
+ project_id?: string | undefined;
1091
+ page?: number | undefined;
1092
+ page_size?: number | undefined;
1093
+ }
1094
+ /** List of snapshots. */
1095
+ export type ListSnapshotsResponseSnapshotsList = Array<Snapshot>;
1096
+ export interface ListSnapshotsResponse {
1097
+ /** List of snapshots. */
1098
+ snapshots: ListSnapshotsResponseSnapshotsList;
1099
+ /** Total count of snapshots available. */
1100
+ total_count?: number | undefined;
1101
+ }
1102
+ export type ListUsersRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1103
+ export type ListUsersRequestOrderBy = "name_asc" | "name_desc" | "is_admin_asc" | "is_admin_desc";
1104
+ export interface ListUsersRequest {
1105
+ /** The region you want to target */
1106
+ region?: ListUsersRequestRegion | (string & {}) | undefined;
1107
+ /** UUID of the Database Instance. */
1108
+ instance_id: string;
1109
+ /** Name of the user. */
1110
+ name?: string | undefined;
1111
+ /** Criteria to use when requesting user listing. */
1112
+ order_by?: ListUsersRequestOrderBy | (string & {}) | undefined;
1113
+ page?: number | undefined;
1114
+ page_size?: number | undefined;
1115
+ }
1116
+ /** List of users in a Database Instance. */
1117
+ export type ListUsersResponseUsersList = Array<User>;
1118
+ export interface ListUsersResponse {
1119
+ /** List of users in a Database Instance. */
1120
+ users: ListUsersResponseUsersList;
1121
+ /** Total count of users present on a Database Instance. */
1122
+ total_count?: number | undefined;
1123
+ }
1124
+ export type MigrateEndpointRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1125
+ export interface MigrateEndpointRequest {
1126
+ /** The region you want to target */
1127
+ region?: MigrateEndpointRequestRegion | (string & {}) | undefined;
1128
+ /** UUID of the endpoint you want to migrate. */
1129
+ endpoint_id: string;
1130
+ /** UUID of the instance you want to attach the endpoint to. */
1131
+ instance_id: string;
1132
+ }
1133
+ export type PrepareInstanceLogsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1134
+ export interface PrepareInstanceLogsRequest {
1135
+ /** The region you want to target */
1136
+ region?: PrepareInstanceLogsRequestRegion | (string & {}) | undefined;
1137
+ /** UUID of the Database Instance you want logs of. */
1138
+ instance_id: string;
1139
+ /** Start datetime of your log. (RFC 3339 format). (RFC 3339 format) */
1140
+ start_date?: string | null | undefined;
1141
+ /** End datetime of your log. (RFC 3339 format). (RFC 3339 format) */
1142
+ end_date?: string | null | undefined;
1143
+ }
1144
+ /** Instance logs for a Database Instance between a start and an end date. */
1145
+ export type PrepareInstanceLogsResponseInstanceLogsList = Array<InstanceLog>;
1146
+ export interface PrepareInstanceLogsResponse {
1147
+ /** Instance logs for a Database Instance between a start and an end date. */
1148
+ instance_logs?: PrepareInstanceLogsResponseInstanceLogsList | undefined;
1149
+ }
1150
+ export type PromoteReadReplicaRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1151
+ export interface PromoteReadReplicaRequest {
1152
+ /** The region you want to target */
1153
+ region?: PromoteReadReplicaRequestRegion | (string & {}) | undefined;
1154
+ /** UUID of the Read Replica. (UUID format) */
1155
+ read_replica_id: string;
1156
+ }
1157
+ export type PurgeInstanceLogsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1158
+ export interface PurgeInstanceLogsRequest {
1159
+ /** The region you want to target */
1160
+ region?: PurgeInstanceLogsRequestRegion | (string & {}) | undefined;
1161
+ /** UUID of the Database Instance you want logs of. */
1162
+ instance_id: string;
1163
+ /** Given log name to purge. */
1164
+ log_name?: string | null | undefined;
1165
+ }
1166
+ export interface PurgeInstanceLogsResponse {}
1167
+ export type RenewInstanceCertificateRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1168
+ export interface RenewInstanceCertificateRequest {
1169
+ /** The region you want to target */
1170
+ region?: RenewInstanceCertificateRequestRegion | (string & {}) | undefined;
1171
+ /** UUID of the Database Instance you want logs of. */
1172
+ instance_id: string;
1173
+ }
1174
+ export interface RenewInstanceCertificateResponse {}
1175
+ export type ResetReadReplicaRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1176
+ export interface ResetReadReplicaRequest {
1177
+ /** The region you want to target */
1178
+ region?: ResetReadReplicaRequestRegion | (string & {}) | undefined;
1179
+ /** UUID of the Read Replica. (UUID format) */
1180
+ read_replica_id: string;
1181
+ }
1182
+ export type RestartInstanceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1183
+ export interface RestartInstanceRequest {
1184
+ /** The region you want to target */
1185
+ region?: RestartInstanceRequestRegion | (string & {}) | undefined;
1186
+ /** UUID of the Database Instance you want to restart. */
1187
+ instance_id: string;
1188
+ }
1189
+ export type RestoreDatabaseBackupRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1190
+ export interface RestoreDatabaseBackupRequest {
1191
+ /** The region you want to target */
1192
+ region?: RestoreDatabaseBackupRequestRegion | (string & {}) | undefined;
1193
+ /** Backup of a logical database. */
1194
+ database_backup_id: string;
1195
+ /** Defines the destination database to restore into a specified database (the default destination is set to the origin database of the backup). */
1196
+ database_name?: string | null | undefined;
1197
+ /** Defines the Database Instance where the backup has to be restored. */
1198
+ instance_id: string;
1199
+ }
1200
+ export type SetInstanceACLRulesRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1201
+ /** ACL rules to define for the Database Instance. */
1202
+ export type SetInstanceACLRulesRequestRulesList = Array<ACLRuleRequest>;
1203
+ export interface SetInstanceACLRulesRequest {
1204
+ /** The region you want to target */
1205
+ region?: SetInstanceACLRulesRequestRegion | (string & {}) | undefined;
1206
+ /** UUID of the Database Instance where the ACL rules must be set. */
1207
+ instance_id: string;
1208
+ /** ACL rules to define for the Database Instance. */
1209
+ rules: SetInstanceACLRulesRequestRulesList;
1210
+ }
1211
+ /** ACLs rules configured for a Database Instance. */
1212
+ export type SetInstanceACLRulesResponseRulesList = Array<ACLRule>;
1213
+ export interface SetInstanceACLRulesResponse {
1214
+ /** ACLs rules configured for a Database Instance. */
1215
+ rules?: SetInstanceACLRulesResponseRulesList | undefined;
1216
+ }
1217
+ export type SetInstanceSettingsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1218
+ /** Settings to define for the Database Instance. */
1219
+ export type SetInstanceSettingsRequestSettingsList = Array<InstanceSetting>;
1220
+ export interface SetInstanceSettingsRequest {
1221
+ /** The region you want to target */
1222
+ region?: SetInstanceSettingsRequestRegion | (string & {}) | undefined;
1223
+ /** UUID of the Database Instance where the settings must be set. */
1224
+ instance_id: string;
1225
+ /** Settings to define for the Database Instance. */
1226
+ settings: SetInstanceSettingsRequestSettingsList;
1227
+ }
1228
+ /** Settings configured for a Database Instance. */
1229
+ export type SetInstanceSettingsResponseSettingsList = Array<InstanceSetting>;
1230
+ export interface SetInstanceSettingsResponse {
1231
+ /** Settings configured for a Database Instance. */
1232
+ settings?: SetInstanceSettingsResponseSettingsList | undefined;
1233
+ }
1234
+ export type SetPrivilegeRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1235
+ export interface SetPrivilegeRequest {
1236
+ /** The region you want to target */
1237
+ region?: SetPrivilegeRequestRegion | (string & {}) | undefined;
1238
+ /** UUID of the Database Instance. */
1239
+ instance_id: string;
1240
+ /** Name of the database. */
1241
+ database_name?: string | undefined;
1242
+ /** Name of the user. */
1243
+ user_name?: string | undefined;
1244
+ /** Permission to set (Read, Read/Write, All, Custom). */
1245
+ permission?: Permission | (string & {}) | undefined;
1246
+ }
1247
+ export type UpdateDatabaseBackupRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1248
+ export interface UpdateDatabaseBackupRequest {
1249
+ /** The region you want to target */
1250
+ region?: UpdateDatabaseBackupRequestRegion | (string & {}) | undefined;
1251
+ /** UUID of the database backup to update. */
1252
+ database_backup_id: string;
1253
+ /** Name of the Database Backup. */
1254
+ name?: string | null | undefined;
1255
+ /** Expiration date (must follow the ISO 8601 format). (RFC 3339 format) */
1256
+ expires_at?: string | null | undefined;
1257
+ }
1258
+ export type UpdateInstanceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1259
+ /** Tags of a Database Instance. */
1260
+ export type UpdateInstanceRequestTagsList = Array<unknown>;
1261
+ export interface UpdateInstanceRequest {
1262
+ /** The region you want to target */
1263
+ region?: UpdateInstanceRequestRegion | (string & {}) | undefined;
1264
+ /** UUID of the Database Instance to update. */
1265
+ instance_id: string;
1266
+ /** In hours. */
1267
+ backup_schedule_frequency?: number | null | undefined;
1268
+ /** In days. */
1269
+ backup_schedule_retention?: number | null | undefined;
1270
+ /** Defines whether or not the backup schedule is disabled. */
1271
+ is_backup_schedule_disabled?: boolean | null | undefined;
1272
+ /** Name of the Database Instance. */
1273
+ name?: string | null | undefined;
1274
+ /** Tags of a Database Instance. */
1275
+ tags?: UpdateInstanceRequestTagsList | null | undefined;
1276
+ /** Logs policy of the Database Instance. */
1277
+ logs_policy?: LogsPolicy | undefined;
1278
+ /** Store logical backups in the same region as the Database Instance. */
1279
+ backup_same_region?: boolean | null | undefined;
1280
+ /** Defines the start time of the autobackup. */
1281
+ backup_schedule_start_hour?: number | null | undefined;
1282
+ }
1283
+ export type UpdateSnapshotRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1284
+ export interface UpdateSnapshotRequest {
1285
+ /** The region you want to target */
1286
+ region?: UpdateSnapshotRequestRegion | (string & {}) | undefined;
1287
+ /** UUID of the snapshot to update. */
1288
+ snapshot_id: string;
1289
+ /** Name of the snapshot. */
1290
+ name?: string | null | undefined;
1291
+ /** Expiration date (must follow the ISO 8601 format). (RFC 3339 format) */
1292
+ expires_at?: string | null | undefined;
1293
+ }
1294
+ export type UpdateUserRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1295
+ export interface UpdateUserRequest {
1296
+ /** The region you want to target */
1297
+ region?: UpdateUserRequestRegion | (string & {}) | undefined;
1298
+ /** UUID of the Database Instance the user belongs to. */
1299
+ instance_id: string;
1300
+ /** Name of the database user. */
1301
+ name: string;
1302
+ /** Password of the database user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character. */
1303
+ password?: string | Redacted.Redacted<string> | null | undefined;
1304
+ /** Defines whether or not this user got administrative privileges. */
1305
+ is_admin?: boolean | null | undefined;
1306
+ }
1307
+ export type UpgradeInstanceRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
1308
+ export interface UpgradeInstanceRequestMajorUpgradeWorkflow {
1309
+ /** Update your database engine to a newer version. This will create a new Database Instance with same specifications as the current one and perform a Database Engine upgrade. (UUID format) */
1310
+ upgradable_version_id?: string | undefined;
1311
+ /** Include endpoint during the migration. At the end of the migration procedure this option let you migrate all your database endpoint to the upgraded instance. */
1312
+ with_endpoints?: boolean | undefined;
1313
+ }
1314
+ export interface UpgradeInstanceRequest {
1315
+ /** The region you want to target */
1316
+ region?: UpgradeInstanceRequestRegion | (string & {}) | undefined;
1317
+ /** UUID of the Database Instance you want to upgrade. */
1318
+ instance_id: string;
1319
+ /** Node type of the Database Instance you want to upgrade to. Precisely one of node_type, enable_ha, high_availability_mode, volume_size, volume_type, upgradable_version_id, major_upgrade_workflow, enable_encryption can be set. */
1320
+ node_type?: string | null | undefined;
1321
+ /** Defines whether or not high availability should be enabled on the Database Instance. Precisely one of node_type, enable_ha, high_availability_mode, volume_size, volume_type, upgradable_version_id, major_upgrade_workflow, enable_encryption can be set. */
1322
+ enable_ha?: boolean | null | undefined;
1323
+ /** Defines the High-Availability mode of the instance. Precisely one of node_type, enable_ha, high_availability_mode, volume_size, volume_type, upgradable_version_id, major_upgrade_workflow, enable_encryption can be set. */
1324
+ high_availability_mode?: HighAvailabilityMode | (string & {}) | null | undefined;
1325
+ /** Increase your block storage volume size. Precisely one of node_type, enable_ha, high_availability_mode, volume_size, volume_type, upgradable_version_id, major_upgrade_workflow, enable_encryption can be set. */
1326
+ volume_size?: number | null | undefined;
1327
+ /** Change your Database Instance storage type. Precisely one of node_type, enable_ha, high_availability_mode, volume_size, volume_type, upgradable_version_id, major_upgrade_workflow, enable_encryption can be set. */
1328
+ volume_type?: VolumeType | (string & {}) | null | undefined;
1329
+ /** Update your database engine to a newer version. This will create a new Database Instance with same specifications as the current one and perform a Database Engine upgrade. (UUID format) Precisely one of node_type, enable_ha, high_availability_mode, volume_size, volume_type, upgradable_version_id, major_upgrade_workflow, enable_encryption can be set. */
1330
+ upgradable_version_id?: string | null | undefined;
1331
+ /** Upgrade your database engine to a new major version including instance endpoints. Precisely one of node_type, enable_ha, high_availability_mode, volume_size, volume_type, upgradable_version_id, major_upgrade_workflow, enable_encryption can be set. */
1332
+ major_upgrade_workflow?: UpgradeInstanceRequestMajorUpgradeWorkflow | null | undefined;
1333
+ /** Defines whether or not encryption should be enabled on the Database Instance. Precisely one of node_type, enable_ha, high_availability_mode, volume_size, volume_type, upgradable_version_id, major_upgrade_workflow, enable_encryption can be set. */
1334
+ enable_encryption?: boolean | null | undefined;
1335
+ }
1336
+ export type AddInstanceACLRulesError = ScalewayOpError;
1337
+ /** Add an ACL rule to a Database Instance Add an additional ACL rule to a Database Instance. */
1338
+ export const addInstanceACLRules: API.OperationMethod<
1339
+ AddInstanceACLRulesRequest,
1340
+ AddInstanceACLRulesResponse,
1341
+ AddInstanceACLRulesError,
1342
+ ScalewayOpContext
1343
+ > = /*@__PURE__*/ API.make(() => ({
1344
+ input: __S(0, __c0, 0) as any as S.Schema<AddInstanceACLRulesRequest>,
1345
+ output: __S(32, __c2, 0) as any as S.Schema<AddInstanceACLRulesResponse>,
1346
+ errors: [],
1347
+ serviceErrors: ScalewayServiceErrors,
1348
+ protocol: ScalewayProtocol,
1349
+ retry: Retry.Retry,
1350
+ telemetry: TELEMETRY,
1351
+ span: "AddInstanceACLRules",
1352
+ }));
1353
+
1354
+ export type AddInstanceSettingsError = ScalewayOpError;
1355
+ /** Add Database Instance advanced settings Add an advanced setting to a Database Instance. You must set the `name` and the `value` of each setting. */
1356
+ export const addInstanceSettings: API.OperationMethod<
1357
+ AddInstanceSettingsRequest,
1358
+ AddInstanceSettingsResponse,
1359
+ AddInstanceSettingsError,
1360
+ ScalewayOpContext
1361
+ > = /*@__PURE__*/ API.make(() => ({
1362
+ input: __S(64, __c4, 0) as any as S.Schema<AddInstanceSettingsRequest>,
1363
+ output: __S(80, __c5, 0) as any as S.Schema<AddInstanceSettingsResponse>,
1364
+ errors: [],
1365
+ serviceErrors: ScalewayServiceErrors,
1366
+ protocol: ScalewayProtocol,
1367
+ retry: Retry.Retry,
1368
+ telemetry: TELEMETRY,
1369
+ span: "AddInstanceSettings",
1370
+ }));
1371
+
1372
+ export type ApplyInstanceMaintenanceError = ScalewayOpError;
1373
+ /** Apply Database Instance maintenance Apply maintenance tasks to your Database Instance. This will trigger pending maintenance tasks to start in your Database Instance and can generate service interruption. Maintenance tasks can be applied between `starts_at` and `stops_at` times, and are run directly by Scaleway at `forced_at` timestamp. */
1374
+ export const applyInstanceMaintenance: API.OperationMethod<
1375
+ ApplyInstanceMaintenanceRequest,
1376
+ Maintenance,
1377
+ ApplyInstanceMaintenanceError,
1378
+ ScalewayOpContext
1379
+ > = /*@__PURE__*/ API.make(() => ({
1380
+ input: __S(320, __c20, 0) as any as S.Schema<ApplyInstanceMaintenanceRequest>,
1381
+ output: __S(336, __c21, 0) as any as S.Schema<Maintenance>,
1382
+ errors: [],
1383
+ serviceErrors: ScalewayServiceErrors,
1384
+ protocol: ScalewayProtocol,
1385
+ retry: Retry.Retry,
1386
+ telemetry: TELEMETRY,
1387
+ span: "ApplyInstanceMaintenance",
1388
+ }));
1389
+
1390
+ export type CloneInstanceError = ScalewayOpError;
1391
+ /** Clone a Database Instance Clone a given Database Instance, specified by the `region` and `instance_id` parameters. The clone feature allows you to create a new Database Instance from an existing one. The clone includes all existing databases, users and permissions. You can create a clone on a Database Instance bigger than your current one. */
1392
+ export const cloneInstance: API.OperationMethod<
1393
+ CloneInstanceRequest,
1394
+ Instance,
1395
+ CloneInstanceError,
1396
+ ScalewayOpContext
1397
+ > = /*@__PURE__*/ API.make(() => ({
1398
+ input: __S(528, __c33, 0) as any as S.Schema<CloneInstanceRequest>,
1399
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
1400
+ errors: [],
1401
+ serviceErrors: ScalewayServiceErrors,
1402
+ protocol: ScalewayProtocol,
1403
+ retry: Retry.Retry,
1404
+ telemetry: TELEMETRY,
1405
+ span: "CloneInstance",
1406
+ }));
1407
+
1408
+ export type CreateDatabaseError = ScalewayOpError;
1409
+ /** Create a database in a Database Instance Create a new database. You must define the `name` parameter in the request. */
1410
+ export const createDatabase: API.OperationMethod<
1411
+ CreateDatabaseRequest,
1412
+ Database,
1413
+ CreateDatabaseError,
1414
+ ScalewayOpContext
1415
+ > = /*@__PURE__*/ API.make(() => ({
1416
+ input: __S(800, __c50, 0) as any as S.Schema<CreateDatabaseRequest>,
1417
+ output: __S(816, __c51, 0) as any as S.Schema<Database>,
1418
+ errors: [],
1419
+ serviceErrors: ScalewayServiceErrors,
1420
+ protocol: ScalewayProtocol,
1421
+ retry: Retry.Retry,
1422
+ telemetry: TELEMETRY,
1423
+ span: "CreateDatabase",
1424
+ }));
1425
+
1426
+ export type CreateDatabaseBackupError = ScalewayOpError;
1427
+ /** Create a database backup Create a new backup. You must set the `instance_id`, `database_name`, `name` and `expires_at` parameters. */
1428
+ export const createDatabaseBackup: API.OperationMethod<
1429
+ CreateDatabaseBackupRequest,
1430
+ DatabaseBackup,
1431
+ CreateDatabaseBackupError,
1432
+ ScalewayOpContext
1433
+ > = /*@__PURE__*/ API.make(() => ({
1434
+ input: __S(992, __c62, 0) as any as S.Schema<CreateDatabaseBackupRequest>,
1435
+ output: __S(1008, __c63, 0) as any as S.Schema<DatabaseBackup>,
1436
+ errors: [],
1437
+ serviceErrors: ScalewayServiceErrors,
1438
+ protocol: ScalewayProtocol,
1439
+ retry: Retry.Retry,
1440
+ telemetry: TELEMETRY,
1441
+ span: "CreateDatabaseBackup",
1442
+ }));
1443
+
1444
+ export type CreateEndpointError = ScalewayOpError;
1445
+ /** Create a new Database Instance endpoint Create a new endpoint for a Database Instance. You can add `load_balancer` and `private_network` specifications to the body of the request. */
1446
+ export const createEndpoint: API.OperationMethod<
1447
+ CreateEndpointRequest,
1448
+ Endpoint,
1449
+ CreateEndpointError,
1450
+ ScalewayOpContext
1451
+ > = /*@__PURE__*/ API.make(() => ({
1452
+ input: __S(1152, __c72, 0) as any as S.Schema<CreateEndpointRequest>,
1453
+ output: __S(545, __c34, 1) as any as S.Schema<Endpoint>,
1454
+ errors: [],
1455
+ serviceErrors: ScalewayServiceErrors,
1456
+ protocol: ScalewayProtocol,
1457
+ retry: Retry.Retry,
1458
+ telemetry: TELEMETRY,
1459
+ span: "CreateEndpoint",
1460
+ }));
1461
+
1462
+ export type CreateInstanceError = ScalewayOpError;
1463
+ /** Create a Database Instance Create a new Database Instance. You must set the `engine`, `user_name`, `password` and `node_type` parameters. Optionally, you can specify the volume type and size. */
1464
+ export const createInstance: API.OperationMethod<
1465
+ CreateInstanceRequest,
1466
+ Instance,
1467
+ CreateInstanceError,
1468
+ ScalewayOpContext
1469
+ > = /*@__PURE__*/ API.make(() => ({
1470
+ input: __S(1201, __c75, 1) as any as S.Schema<CreateInstanceRequest>,
1471
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
1472
+ errors: [],
1473
+ serviceErrors: ScalewayServiceErrors,
1474
+ protocol: ScalewayProtocol,
1475
+ retry: Retry.Retry,
1476
+ telemetry: TELEMETRY,
1477
+ span: "CreateInstance",
1478
+ }));
1479
+
1480
+ export type CreateInstanceFromSnapshotError = ScalewayOpError;
1481
+ /** Create a new Database Instance from a snapshot Restore a snapshot. When you restore a snapshot, a new Instance is created and billed to your account. Note that is possible to select a larger node type for your new Database Instance. However, the Block volume size will be the same as the size of the restored snapshot. All Instance settings will be restored if you chose a node type with the same or more memory size than the initial Instance. Settings will be reset to the default if your node type has less memory. */
1482
+ export const createInstanceFromSnapshot: API.OperationMethod<
1483
+ CreateInstanceFromSnapshotRequest,
1484
+ Instance,
1485
+ CreateInstanceFromSnapshotError,
1486
+ ScalewayOpContext
1487
+ > = /*@__PURE__*/ API.make(() => ({
1488
+ input: __S(1216, __c76, 0) as any as S.Schema<CreateInstanceFromSnapshotRequest>,
1489
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
1490
+ errors: [],
1491
+ serviceErrors: ScalewayServiceErrors,
1492
+ protocol: ScalewayProtocol,
1493
+ retry: Retry.Retry,
1494
+ telemetry: TELEMETRY,
1495
+ span: "CreateInstanceFromSnapshot",
1496
+ }));
1497
+
1498
+ export type CreateReadReplicaError = ScalewayOpError;
1499
+ /** Create a Read Replica Create a new Read Replica of a Database Instance. You must specify the `region` and the `instance_id`. You can only create a maximum of 3 Read Replicas per Database Instance. */
1500
+ export const createReadReplica: API.OperationMethod<
1501
+ CreateReadReplicaRequest,
1502
+ ReadReplica,
1503
+ CreateReadReplicaError,
1504
+ ScalewayOpContext
1505
+ > = /*@__PURE__*/ API.make(() => ({
1506
+ input: __S(1232, __c77, 0) as any as S.Schema<CreateReadReplicaRequest>,
1507
+ output: __S(593, __c37, 1) as any as S.Schema<ReadReplica>,
1508
+ errors: [],
1509
+ serviceErrors: ScalewayServiceErrors,
1510
+ protocol: ScalewayProtocol,
1511
+ retry: Retry.Retry,
1512
+ telemetry: TELEMETRY,
1513
+ span: "CreateReadReplica",
1514
+ }));
1515
+
1516
+ export type CreateReadReplicaEndpointError = ScalewayOpError;
1517
+ /** Create an endpoint for a Read Replica Create a new endpoint for a Read Replica. Read Replicas can have at most one direct access and one Private Network endpoint. */
1518
+ export const createReadReplicaEndpoint: API.OperationMethod<
1519
+ CreateReadReplicaEndpointRequest,
1520
+ ReadReplica,
1521
+ CreateReadReplicaEndpointError,
1522
+ ScalewayOpContext
1523
+ > = /*@__PURE__*/ API.make(() => ({
1524
+ input: __S(112, __c7, 0) as any as S.Schema<CreateReadReplicaEndpointRequest>,
1525
+ output: __S(593, __c37, 1) as any as S.Schema<ReadReplica>,
1526
+ errors: [],
1527
+ serviceErrors: ScalewayServiceErrors,
1528
+ protocol: ScalewayProtocol,
1529
+ retry: Retry.Retry,
1530
+ telemetry: TELEMETRY,
1531
+ span: "CreateReadReplicaEndpoint",
1532
+ }));
1533
+
1534
+ export type CreateSnapshotError = ScalewayOpError;
1535
+ /** Create a Database Instance snapshot Create a new snapshot of a Database Instance. You must define the `name` parameter in the request. */
1536
+ export const createSnapshot: API.OperationMethod<
1537
+ CreateSnapshotRequest,
1538
+ Snapshot,
1539
+ CreateSnapshotError,
1540
+ ScalewayOpContext
1541
+ > = /*@__PURE__*/ API.make(() => ({
1542
+ input: __S(128, __c8, 0) as any as S.Schema<CreateSnapshotRequest>,
1543
+ output: __S(145, __c9, 1) as any as S.Schema<Snapshot>,
1544
+ errors: [],
1545
+ serviceErrors: ScalewayServiceErrors,
1546
+ protocol: ScalewayProtocol,
1547
+ retry: Retry.Retry,
1548
+ telemetry: TELEMETRY,
1549
+ span: "CreateSnapshot",
1550
+ }));
1551
+
1552
+ export type CreateUserError = ScalewayOpError;
1553
+ /** Create a user for a Database Instance Create a new user for a Database Instance. You must define the `name`, `password` and `is_admin` parameters. */
1554
+ export const createUser: API.OperationMethod<
1555
+ CreateUserRequest,
1556
+ User,
1557
+ CreateUserError,
1558
+ ScalewayOpContext
1559
+ > = /*@__PURE__*/ API.make(() => ({
1560
+ input: __S(160, __c10, 0) as any as S.Schema<CreateUserRequest>,
1561
+ output: __S(176, __c11, 0) as any as S.Schema<User>,
1562
+ errors: [],
1563
+ serviceErrors: ScalewayServiceErrors,
1564
+ protocol: ScalewayProtocol,
1565
+ retry: Retry.Retry,
1566
+ telemetry: TELEMETRY,
1567
+ span: "CreateUser",
1568
+ }));
1569
+
1570
+ export type DeleteDatabaseError = ScalewayOpError;
1571
+ /** Delete a database in a Database Instance Delete a given database on a Database Instance. You must specify, in the endpoint, the `region`, `instance_id` and `name` parameters of the database you want to delete. */
1572
+ export const deleteDatabase: API.OperationMethod<
1573
+ DeleteDatabaseRequest,
1574
+ DeleteDatabaseResponse,
1575
+ DeleteDatabaseError,
1576
+ ScalewayOpContext
1577
+ > = /*@__PURE__*/ API.make(() => ({
1578
+ input: __S(192, __c12, 0) as any as S.Schema<DeleteDatabaseRequest>,
1579
+ output: __S(208, __c13, 0) as any as S.Schema<DeleteDatabaseResponse>,
1580
+ errors: [],
1581
+ serviceErrors: ScalewayServiceErrors,
1582
+ protocol: ScalewayProtocol,
1583
+ retry: Retry.Retry,
1584
+ telemetry: TELEMETRY,
1585
+ span: "DeleteDatabase",
1586
+ }));
1587
+
1588
+ export type DeleteDatabaseBackupError = ScalewayOpError;
1589
+ /** Delete a database backup Delete a backup, specified by its database backup ID and region. Deleting a backup is permanent, and cannot be undone. */
1590
+ export const deleteDatabaseBackup: API.OperationMethod<
1591
+ DeleteDatabaseBackupRequest,
1592
+ DatabaseBackup,
1593
+ DeleteDatabaseBackupError,
1594
+ ScalewayOpContext
1595
+ > = /*@__PURE__*/ API.make(() => ({
1596
+ input: __S(224, __c14, 0) as any as S.Schema<DeleteDatabaseBackupRequest>,
1597
+ output: __S(1008, __c63, 0) as any as S.Schema<DatabaseBackup>,
1598
+ errors: [],
1599
+ serviceErrors: ScalewayServiceErrors,
1600
+ protocol: ScalewayProtocol,
1601
+ retry: Retry.Retry,
1602
+ telemetry: TELEMETRY,
1603
+ span: "DeleteDatabaseBackup",
1604
+ }));
1605
+
1606
+ export type DeleteEndpointError = ScalewayOpError;
1607
+ /** Delete a Database Instance endpoint Delete the endpoint of a Database Instance. You must specify the `region` and `endpoint_id` parameters of the endpoint you want to delete. Note that might need to update any environment configurations that point to the deleted endpoint. */
1608
+ export const deleteEndpoint: API.OperationMethod<
1609
+ DeleteEndpointRequest,
1610
+ DeleteEndpointResponse,
1611
+ DeleteEndpointError,
1612
+ ScalewayOpContext
1613
+ > = /*@__PURE__*/ API.make(() => ({
1614
+ input: __S(240, __c15, 0) as any as S.Schema<DeleteEndpointRequest>,
1615
+ output: __S(208, __c13, 0) as any as S.Schema<DeleteEndpointResponse>,
1616
+ errors: [],
1617
+ serviceErrors: ScalewayServiceErrors,
1618
+ protocol: ScalewayProtocol,
1619
+ retry: Retry.Retry,
1620
+ telemetry: TELEMETRY,
1621
+ span: "DeleteEndpoint",
1622
+ }));
1623
+
1624
+ export type DeleteInstanceError = ScalewayOpError;
1625
+ /** Delete a Database Instance Delete a given Database Instance, specified by the `region` and `instance_id` parameters. Deleting a Database Instance is permanent, and cannot be undone. Note that upon deletion all your data will be lost. */
1626
+ export const deleteInstance: API.OperationMethod<
1627
+ DeleteInstanceRequest,
1628
+ Instance,
1629
+ DeleteInstanceError,
1630
+ ScalewayOpContext
1631
+ > = /*@__PURE__*/ API.make(() => ({
1632
+ input: __S(256, __c16, 0) as any as S.Schema<DeleteInstanceRequest>,
1633
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
1634
+ errors: [],
1635
+ serviceErrors: ScalewayServiceErrors,
1636
+ protocol: ScalewayProtocol,
1637
+ retry: Retry.Retry,
1638
+ telemetry: TELEMETRY,
1639
+ span: "DeleteInstance",
1640
+ }));
1641
+
1642
+ export type DeleteInstanceACLRulesError = ScalewayOpError;
1643
+ /** Delete ACL rules of a Database Instance Delete one or more ACL rules of a Database Instance. */
1644
+ export const deleteInstanceACLRules: API.OperationMethod<
1645
+ DeleteInstanceACLRulesRequest,
1646
+ DeleteInstanceACLRulesResponse,
1647
+ DeleteInstanceACLRulesError,
1648
+ ScalewayOpContext
1649
+ > = /*@__PURE__*/ API.make(() => ({
1650
+ input: __S(272, __c17, 0) as any as S.Schema<DeleteInstanceACLRulesRequest>,
1651
+ output: __S(32, __c2, 0) as any as S.Schema<DeleteInstanceACLRulesResponse>,
1652
+ errors: [],
1653
+ serviceErrors: ScalewayServiceErrors,
1654
+ protocol: ScalewayProtocol,
1655
+ retry: Retry.Retry,
1656
+ telemetry: TELEMETRY,
1657
+ span: "DeleteInstanceACLRules",
1658
+ }));
1659
+
1660
+ export type DeleteInstanceSettingsError = ScalewayOpError;
1661
+ /** Delete Database Instance advanced settings Delete an advanced setting in a Database Instance. You must specify the names of the settings you want to delete in the request. */
1662
+ export const deleteInstanceSettings: API.OperationMethod<
1663
+ DeleteInstanceSettingsRequest,
1664
+ DeleteInstanceSettingsResponse,
1665
+ DeleteInstanceSettingsError,
1666
+ ScalewayOpContext
1667
+ > = /*@__PURE__*/ API.make(() => ({
1668
+ input: __S(288, __c18, 0) as any as S.Schema<DeleteInstanceSettingsRequest>,
1669
+ output: __S(80, __c5, 0) as any as S.Schema<DeleteInstanceSettingsResponse>,
1670
+ errors: [],
1671
+ serviceErrors: ScalewayServiceErrors,
1672
+ protocol: ScalewayProtocol,
1673
+ retry: Retry.Retry,
1674
+ telemetry: TELEMETRY,
1675
+ span: "DeleteInstanceSettings",
1676
+ }));
1677
+
1678
+ export type DeleteReadReplicaError = ScalewayOpError;
1679
+ /** Delete a Read Replica Delete a Read Replica of a Database Instance. You must specify the `region` and `read_replica_id` parameters of the Read Replica you want to delete. */
1680
+ export const deleteReadReplica: API.OperationMethod<
1681
+ DeleteReadReplicaRequest,
1682
+ ReadReplica,
1683
+ DeleteReadReplicaError,
1684
+ ScalewayOpContext
1685
+ > = /*@__PURE__*/ API.make(() => ({
1686
+ input: __S(304, __c19, 0) as any as S.Schema<DeleteReadReplicaRequest>,
1687
+ output: __S(593, __c37, 1) as any as S.Schema<ReadReplica>,
1688
+ errors: [],
1689
+ serviceErrors: ScalewayServiceErrors,
1690
+ protocol: ScalewayProtocol,
1691
+ retry: Retry.Retry,
1692
+ telemetry: TELEMETRY,
1693
+ span: "DeleteReadReplica",
1694
+ }));
1695
+
1696
+ export type DeleteSnapshotError = ScalewayOpError;
1697
+ /** Delete a Database Instance snapshot Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `region` and `snapshot_id` parameters of the snapshot you want to delete. */
1698
+ export const deleteSnapshot: API.OperationMethod<
1699
+ DeleteSnapshotRequest,
1700
+ Snapshot,
1701
+ DeleteSnapshotError,
1702
+ ScalewayOpContext
1703
+ > = /*@__PURE__*/ API.make(() => ({
1704
+ input: __S(352, __c22, 0) as any as S.Schema<DeleteSnapshotRequest>,
1705
+ output: __S(145, __c9, 1) as any as S.Schema<Snapshot>,
1706
+ errors: [],
1707
+ serviceErrors: ScalewayServiceErrors,
1708
+ protocol: ScalewayProtocol,
1709
+ retry: Retry.Retry,
1710
+ telemetry: TELEMETRY,
1711
+ span: "DeleteSnapshot",
1712
+ }));
1713
+
1714
+ export type DeleteUserError = ScalewayOpError;
1715
+ /** Delete a user on a Database Instance Delete a given user on a Database Instance. You must specify, in the endpoint, the `region`, `instance_id` and `name` parameters of the user you want to delete. */
1716
+ export const deleteUser: API.OperationMethod<
1717
+ DeleteUserRequest,
1718
+ DeleteUserResponse,
1719
+ DeleteUserError,
1720
+ ScalewayOpContext
1721
+ > = /*@__PURE__*/ API.make(() => ({
1722
+ input: __S(368, __c23, 0) as any as S.Schema<DeleteUserRequest>,
1723
+ output: __S(208, __c13, 0) as any as S.Schema<DeleteUserResponse>,
1724
+ errors: [],
1725
+ serviceErrors: ScalewayServiceErrors,
1726
+ protocol: ScalewayProtocol,
1727
+ retry: Retry.Retry,
1728
+ telemetry: TELEMETRY,
1729
+ span: "DeleteUser",
1730
+ }));
1731
+
1732
+ export type ExportDatabaseBackupError = ScalewayOpError;
1733
+ /** Export a database backup Export a backup, specified by the `database_backup_id` and the `region` parameters. The download URL is returned in the response. */
1734
+ export const exportDatabaseBackup: API.OperationMethod<
1735
+ ExportDatabaseBackupRequest,
1736
+ DatabaseBackup,
1737
+ ExportDatabaseBackupError,
1738
+ ScalewayOpContext
1739
+ > = /*@__PURE__*/ API.make(() => ({
1740
+ input: __S(384, __c24, 0) as any as S.Schema<ExportDatabaseBackupRequest>,
1741
+ output: __S(1008, __c63, 0) as any as S.Schema<DatabaseBackup>,
1742
+ errors: [],
1743
+ serviceErrors: ScalewayServiceErrors,
1744
+ protocol: ScalewayProtocol,
1745
+ retry: Retry.Retry,
1746
+ telemetry: TELEMETRY,
1747
+ span: "ExportDatabaseBackup",
1748
+ }));
1749
+
1750
+ export type GetDatabaseBackupError = ScalewayOpError;
1751
+ /** Get a database backup Retrieve information about a given backup, specified by its database backup ID and region. Full details about the backup, like size, URL and expiration date, are returned in the response. */
1752
+ export const getDatabaseBackup: API.OperationMethod<
1753
+ GetDatabaseBackupRequest,
1754
+ DatabaseBackup,
1755
+ GetDatabaseBackupError,
1756
+ ScalewayOpContext
1757
+ > = /*@__PURE__*/ API.make(() => ({
1758
+ input: __S(400, __c25, 0) as any as S.Schema<GetDatabaseBackupRequest>,
1759
+ output: __S(1008, __c63, 0) as any as S.Schema<DatabaseBackup>,
1760
+ errors: [],
1761
+ serviceErrors: ScalewayServiceErrors,
1762
+ protocol: ScalewayProtocol,
1763
+ retry: Retry.Retry,
1764
+ telemetry: TELEMETRY,
1765
+ span: "GetDatabaseBackup",
1766
+ }));
1767
+
1768
+ export type GetEndpointError = ScalewayOpError;
1769
+ /** Get a Database Instance endpoint Retrieve information about a Database Instance endpoint. Full details about the endpoint, like `ip`, `port`, `private_network` and `load_balancer` specifications are returned in the response. */
1770
+ export const getEndpoint: API.OperationMethod<
1771
+ GetEndpointRequest,
1772
+ Endpoint,
1773
+ GetEndpointError,
1774
+ ScalewayOpContext
1775
+ > = /*@__PURE__*/ API.make(() => ({
1776
+ input: __S(416, __c26, 0) as any as S.Schema<GetEndpointRequest>,
1777
+ output: __S(545, __c34, 1) as any as S.Schema<Endpoint>,
1778
+ errors: [],
1779
+ serviceErrors: ScalewayServiceErrors,
1780
+ protocol: ScalewayProtocol,
1781
+ retry: Retry.Retry,
1782
+ telemetry: TELEMETRY,
1783
+ span: "GetEndpoint",
1784
+ }));
1785
+
1786
+ export type GetInstanceError = ScalewayOpError;
1787
+ /** Get a Database Instance Retrieve information about a given Database Instance, specified by the `region` and `instance_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object. */
1788
+ export const getInstance: API.OperationMethod<
1789
+ GetInstanceRequest,
1790
+ Instance,
1791
+ GetInstanceError,
1792
+ ScalewayOpContext
1793
+ > = /*@__PURE__*/ API.make(() => ({
1794
+ input: __S(432, __c27, 0) as any as S.Schema<GetInstanceRequest>,
1795
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
1796
+ errors: [],
1797
+ serviceErrors: ScalewayServiceErrors,
1798
+ protocol: ScalewayProtocol,
1799
+ retry: Retry.Retry,
1800
+ telemetry: TELEMETRY,
1801
+ span: "GetInstance",
1802
+ }));
1803
+
1804
+ export type GetInstanceCertificateError = ScalewayOpError;
1805
+ /** Get the TLS certificate of a Database Instance Retrieve information about the TLS certificate of a given Database Instance. Details like name and content are returned in the response. */
1806
+ export const getInstanceCertificate: API.OperationMethod<
1807
+ GetInstanceCertificateRequest,
1808
+ ScalewayStdFile,
1809
+ GetInstanceCertificateError,
1810
+ ScalewayOpContext
1811
+ > = /*@__PURE__*/ API.make(() => ({
1812
+ input: __S(448, __c28, 0) as any as S.Schema<GetInstanceCertificateRequest>,
1813
+ output: __S(449, __c28, 1) as any as S.Schema<ScalewayStdFile>,
1814
+ errors: [],
1815
+ serviceErrors: ScalewayServiceErrors,
1816
+ protocol: ScalewayProtocol,
1817
+ retry: Retry.Retry,
1818
+ telemetry: TELEMETRY,
1819
+ span: "GetInstanceCertificate",
1820
+ }));
1821
+
1822
+ export type GetInstanceCertificateRawError = ScalewayOpError;
1823
+ /** The file `getInstanceCertificate` returns, as bytes (`?dl=1`), rather than the JSON file object. */
1824
+ export const getInstanceCertificateRaw: API.OperationMethod<
1825
+ GetInstanceCertificateRawRequest,
1826
+ GetInstanceCertificateRawResponse,
1827
+ GetInstanceCertificateRawError,
1828
+ ScalewayOpContext
1829
+ > = /*@__PURE__*/ API.make(() => ({
1830
+ input: __S(464, __c29, 0) as any as S.Schema<GetInstanceCertificateRawRequest>,
1831
+ output: __S(465, __c29, 1) as any as S.Schema<GetInstanceCertificateRawResponse>,
1832
+ errors: [],
1833
+ serviceErrors: ScalewayServiceErrors,
1834
+ protocol: ScalewayProtocol,
1835
+ retry: Retry.Retry,
1836
+ telemetry: TELEMETRY,
1837
+ span: "GetInstanceCertificateRaw",
1838
+ }));
1839
+
1840
+ export type GetInstanceLogError = ScalewayOpError;
1841
+ /** Get given logs of a Database Instance Retrieve information about the logs of a Database Instance. Specify the `instance_log_id` and `region` in your request to get information such as `download_url`, `status`, `expires_at` and `created_at` about your logs in the response. */
1842
+ export const getInstanceLog: API.OperationMethod<
1843
+ GetInstanceLogRequest,
1844
+ InstanceLog,
1845
+ GetInstanceLogError,
1846
+ ScalewayOpContext
1847
+ > = /*@__PURE__*/ API.make(() => ({
1848
+ input: __S(480, __c30, 0) as any as S.Schema<GetInstanceLogRequest>,
1849
+ output: __S(496, __c31, 0) as any as S.Schema<InstanceLog>,
1850
+ errors: [],
1851
+ serviceErrors: ScalewayServiceErrors,
1852
+ protocol: ScalewayProtocol,
1853
+ retry: Retry.Retry,
1854
+ telemetry: TELEMETRY,
1855
+ span: "GetInstanceLog",
1856
+ }));
1857
+
1858
+ export type GetReadReplicaError = ScalewayOpError;
1859
+ /** Get a Read Replica Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. */
1860
+ export const getReadReplica: API.OperationMethod<
1861
+ GetReadReplicaRequest,
1862
+ ReadReplica,
1863
+ GetReadReplicaError,
1864
+ ScalewayOpContext
1865
+ > = /*@__PURE__*/ API.make(() => ({
1866
+ input: __S(512, __c32, 0) as any as S.Schema<GetReadReplicaRequest>,
1867
+ output: __S(593, __c37, 1) as any as S.Schema<ReadReplica>,
1868
+ errors: [],
1869
+ serviceErrors: ScalewayServiceErrors,
1870
+ protocol: ScalewayProtocol,
1871
+ retry: Retry.Retry,
1872
+ telemetry: TELEMETRY,
1873
+ span: "GetReadReplica",
1874
+ }));
1875
+
1876
+ export type GetSnapshotError = ScalewayOpError;
1877
+ /** Get a Database Instance snapshot Retrieve information about a given snapshot, specified by its `snapshot_id` and `region`. Full details about the snapshot, like size and expiration date, are returned in the response. */
1878
+ export const getSnapshot: API.OperationMethod<
1879
+ GetSnapshotRequest,
1880
+ Snapshot,
1881
+ GetSnapshotError,
1882
+ ScalewayOpContext
1883
+ > = /*@__PURE__*/ API.make(() => ({
1884
+ input: __S(608, __c38, 0) as any as S.Schema<GetSnapshotRequest>,
1885
+ output: __S(145, __c9, 1) as any as S.Schema<Snapshot>,
1886
+ errors: [],
1887
+ serviceErrors: ScalewayServiceErrors,
1888
+ protocol: ScalewayProtocol,
1889
+ retry: Retry.Retry,
1890
+ telemetry: TELEMETRY,
1891
+ span: "GetSnapshot",
1892
+ }));
1893
+
1894
+ export type ListDatabaseBackupsError = ScalewayOpError;
1895
+ /** List database backups List all backups in a specified region, for a given Scaleway Organization or Scaleway Project. By default, the backups listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. */
1896
+ export const listDatabaseBackups: API.PaginatedOperationMethod<
1897
+ ListDatabaseBackupsRequest,
1898
+ ListDatabaseBackupsResponse,
1899
+ ListDatabaseBackupsError,
1900
+ ScalewayOpContext,
1901
+ DatabaseBackup
1902
+ > = /*@__PURE__*/ API.makePaginated(
1903
+ () => ({
1904
+ input: __S(624, __c39, 0) as any as S.Schema<ListDatabaseBackupsRequest>,
1905
+ output: __S(626, __c39, 2) as any as S.Schema<ListDatabaseBackupsResponse>,
1906
+ errors: [],
1907
+ serviceErrors: ScalewayServiceErrors,
1908
+ protocol: ScalewayProtocol,
1909
+ retry: Retry.Retry,
1910
+ telemetry: TELEMETRY,
1911
+ span: "ListDatabaseBackups",
1912
+ pagination: {
1913
+ mode: "page",
1914
+ inputToken: "page",
1915
+ outputToken: "total_count",
1916
+ items: "database_backups",
1917
+ pageSize: "page_size",
1918
+ } as const,
1919
+ }),
1920
+ paginateByTotalCount,
1921
+ ) as any;
1922
+
1923
+ export type ListDatabaseEnginesError = ScalewayOpError;
1924
+ /** List available database engines List the PostgreSQL and MySQL database engines available at Scaleway. */
1925
+ export const listDatabaseEngines: API.PaginatedOperationMethod<
1926
+ ListDatabaseEnginesRequest,
1927
+ ListDatabaseEnginesResponse,
1928
+ ListDatabaseEnginesError,
1929
+ ScalewayOpContext,
1930
+ DatabaseEngine
1931
+ > = /*@__PURE__*/ API.makePaginated(
1932
+ () => ({
1933
+ input: __S(640, __c40, 0) as any as S.Schema<ListDatabaseEnginesRequest>,
1934
+ output: __S(647, __c40, 7) as any as S.Schema<ListDatabaseEnginesResponse>,
1935
+ errors: [],
1936
+ serviceErrors: ScalewayServiceErrors,
1937
+ protocol: ScalewayProtocol,
1938
+ retry: Retry.Retry,
1939
+ telemetry: TELEMETRY,
1940
+ span: "ListDatabaseEngines",
1941
+ pagination: {
1942
+ mode: "page",
1943
+ inputToken: "page",
1944
+ outputToken: "total_count",
1945
+ items: "engines",
1946
+ pageSize: "page_size",
1947
+ } as const,
1948
+ }),
1949
+ paginateByTotalCount,
1950
+ ) as any;
1951
+
1952
+ export type ListDatabasesError = ScalewayOpError;
1953
+ /** List databases in a Database Instance List all databases of a given Database Instance. By default, the databases returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `name`, `managed` and `owner`. */
1954
+ export const listDatabases: API.PaginatedOperationMethod<
1955
+ ListDatabasesRequest,
1956
+ ListDatabasesResponse,
1957
+ ListDatabasesError,
1958
+ ScalewayOpContext,
1959
+ Database
1960
+ > = /*@__PURE__*/ API.makePaginated(
1961
+ () => ({
1962
+ input: __S(656, __c41, 0) as any as S.Schema<ListDatabasesRequest>,
1963
+ output: __S(658, __c41, 2) as any as S.Schema<ListDatabasesResponse>,
1964
+ errors: [],
1965
+ serviceErrors: ScalewayServiceErrors,
1966
+ protocol: ScalewayProtocol,
1967
+ retry: Retry.Retry,
1968
+ telemetry: TELEMETRY,
1969
+ span: "ListDatabases",
1970
+ pagination: {
1971
+ mode: "page",
1972
+ inputToken: "page",
1973
+ outputToken: "total_count",
1974
+ items: "databases",
1975
+ pageSize: "page_size",
1976
+ } as const,
1977
+ }),
1978
+ paginateByTotalCount,
1979
+ ) as any;
1980
+
1981
+ export type ListInstanceACLRulesError = ScalewayOpError;
1982
+ /** List ACL rules of a Database Instance List the ACL rules for a given Database Instance. The response is an array of ACL objects, each one representing an ACL that denies, allows or redirects traffic based on certain conditions. */
1983
+ export const listInstanceACLRules: API.PaginatedOperationMethod<
1984
+ ListInstanceACLRulesRequest,
1985
+ ListInstanceACLRulesResponse,
1986
+ ListInstanceACLRulesError,
1987
+ ScalewayOpContext,
1988
+ ACLRule
1989
+ > = /*@__PURE__*/ API.makePaginated(
1990
+ () => ({
1991
+ input: __S(672, __c42, 0) as any as S.Schema<ListInstanceACLRulesRequest>,
1992
+ output: __S(673, __c42, 1) as any as S.Schema<ListInstanceACLRulesResponse>,
1993
+ errors: [],
1994
+ serviceErrors: ScalewayServiceErrors,
1995
+ protocol: ScalewayProtocol,
1996
+ retry: Retry.Retry,
1997
+ telemetry: TELEMETRY,
1998
+ span: "ListInstanceACLRules",
1999
+ pagination: {
2000
+ mode: "page",
2001
+ inputToken: "page",
2002
+ outputToken: "total_count",
2003
+ items: "rules",
2004
+ pageSize: "page_size",
2005
+ } as const,
2006
+ }),
2007
+ paginateByTotalCount,
2008
+ ) as any;
2009
+
2010
+ export type ListInstanceLogsError = ScalewayOpError;
2011
+ /** List available logs of a Database Instance List the available logs of a Database Instance. By default, the logs returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. */
2012
+ export const listInstanceLogs: API.OperationMethod<
2013
+ ListInstanceLogsRequest,
2014
+ ListInstanceLogsResponse,
2015
+ ListInstanceLogsError,
2016
+ ScalewayOpContext
2017
+ > = /*@__PURE__*/ API.make(() => ({
2018
+ input: __S(688, __c43, 0) as any as S.Schema<ListInstanceLogsRequest>,
2019
+ output: __S(705, __c44, 1) as any as S.Schema<ListInstanceLogsResponse>,
2020
+ errors: [],
2021
+ serviceErrors: ScalewayServiceErrors,
2022
+ protocol: ScalewayProtocol,
2023
+ retry: Retry.Retry,
2024
+ telemetry: TELEMETRY,
2025
+ span: "ListInstanceLogs",
2026
+ }));
2027
+
2028
+ export type ListInstanceLogsDetailsError = ScalewayOpError;
2029
+ /** List remote Database Instance logs details List remote log details. By default, the details returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. */
2030
+ export const listInstanceLogsDetails: API.OperationMethod<
2031
+ ListInstanceLogsDetailsRequest,
2032
+ ListInstanceLogsDetailsResponse,
2033
+ ListInstanceLogsDetailsError,
2034
+ ScalewayOpContext
2035
+ > = /*@__PURE__*/ API.make(() => ({
2036
+ input: __S(720, __c45, 0) as any as S.Schema<ListInstanceLogsDetailsRequest>,
2037
+ output: __S(723, __c45, 3) as any as S.Schema<ListInstanceLogsDetailsResponse>,
2038
+ errors: [],
2039
+ serviceErrors: ScalewayServiceErrors,
2040
+ protocol: ScalewayProtocol,
2041
+ retry: Retry.Retry,
2042
+ telemetry: TELEMETRY,
2043
+ span: "ListInstanceLogsDetails",
2044
+ }));
2045
+
2046
+ export type ListInstancesError = ScalewayOpError;
2047
+ /** List Database Instances List all Database Instances in the specified region, for a given Scaleway Organization or Scaleway Project. By default, the Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter. */
2048
+ export const listInstances: API.PaginatedOperationMethod<
2049
+ ListInstancesRequest,
2050
+ ListInstancesResponse,
2051
+ ListInstancesError,
2052
+ ScalewayOpContext,
2053
+ Instance
2054
+ > = /*@__PURE__*/ API.makePaginated(
2055
+ () => ({
2056
+ input: __S(736, __c46, 0) as any as S.Schema<ListInstancesRequest>,
2057
+ output: __S(738, __c46, 2) as any as S.Schema<ListInstancesResponse>,
2058
+ errors: [],
2059
+ serviceErrors: ScalewayServiceErrors,
2060
+ protocol: ScalewayProtocol,
2061
+ retry: Retry.Retry,
2062
+ telemetry: TELEMETRY,
2063
+ span: "ListInstances",
2064
+ pagination: {
2065
+ mode: "page",
2066
+ inputToken: "page",
2067
+ outputToken: "total_count",
2068
+ items: "instances",
2069
+ pageSize: "page_size",
2070
+ } as const,
2071
+ }),
2072
+ paginateByTotalCount,
2073
+ ) as any;
2074
+
2075
+ export type ListNodeTypesError = ScalewayOpError;
2076
+ /** List available node types List all available node types. By default, the node types returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
2077
+ export const listNodeTypes: API.PaginatedOperationMethod<
2078
+ ListNodeTypesRequest,
2079
+ ListNodeTypesResponse,
2080
+ ListNodeTypesError,
2081
+ ScalewayOpContext,
2082
+ NodeType
2083
+ > = /*@__PURE__*/ API.makePaginated(
2084
+ () => ({
2085
+ input: __S(752, __c47, 0) as any as S.Schema<ListNodeTypesRequest>,
2086
+ output: __S(758, __c47, 6) as any as S.Schema<ListNodeTypesResponse>,
2087
+ errors: [],
2088
+ serviceErrors: ScalewayServiceErrors,
2089
+ protocol: ScalewayProtocol,
2090
+ retry: Retry.Retry,
2091
+ telemetry: TELEMETRY,
2092
+ span: "ListNodeTypes",
2093
+ pagination: {
2094
+ mode: "page",
2095
+ inputToken: "page",
2096
+ outputToken: "total_count",
2097
+ items: "node_types",
2098
+ pageSize: "page_size",
2099
+ } as const,
2100
+ }),
2101
+ paginateByTotalCount,
2102
+ ) as any;
2103
+
2104
+ export type ListPrivilegesError = ScalewayOpError;
2105
+ /** List user privileges for a database List privileges of a user on a database. By default, the details returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `database_name` and `user_name`. */
2106
+ export const listPrivileges: API.PaginatedOperationMethod<
2107
+ ListPrivilegesRequest,
2108
+ ListPrivilegesResponse,
2109
+ ListPrivilegesError,
2110
+ ScalewayOpContext,
2111
+ Privilege
2112
+ > = /*@__PURE__*/ API.makePaginated(
2113
+ () => ({
2114
+ input: __S(768, __c48, 0) as any as S.Schema<ListPrivilegesRequest>,
2115
+ output: __S(770, __c48, 2) as any as S.Schema<ListPrivilegesResponse>,
2116
+ errors: [],
2117
+ serviceErrors: ScalewayServiceErrors,
2118
+ protocol: ScalewayProtocol,
2119
+ retry: Retry.Retry,
2120
+ telemetry: TELEMETRY,
2121
+ span: "ListPrivileges",
2122
+ pagination: {
2123
+ mode: "page",
2124
+ inputToken: "page",
2125
+ outputToken: "total_count",
2126
+ items: "privileges",
2127
+ pageSize: "page_size",
2128
+ } as const,
2129
+ }),
2130
+ paginateByTotalCount,
2131
+ ) as any;
2132
+
2133
+ export type ListSnapshotsError = ScalewayOpError;
2134
+ /** List snapshots List snapshots. You can include the `instance_id` or `project_id` in your query to get the list of snapshots for specific Database Instances and/or Projects. By default, the details returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
2135
+ export const listSnapshots: API.PaginatedOperationMethod<
2136
+ ListSnapshotsRequest,
2137
+ ListSnapshotsResponse,
2138
+ ListSnapshotsError,
2139
+ ScalewayOpContext,
2140
+ Snapshot
2141
+ > = /*@__PURE__*/ API.makePaginated(
2142
+ () => ({
2143
+ input: __S(832, __c52, 0) as any as S.Schema<ListSnapshotsRequest>,
2144
+ output: __S(834, __c52, 2) as any as S.Schema<ListSnapshotsResponse>,
2145
+ errors: [],
2146
+ serviceErrors: ScalewayServiceErrors,
2147
+ protocol: ScalewayProtocol,
2148
+ retry: Retry.Retry,
2149
+ telemetry: TELEMETRY,
2150
+ span: "ListSnapshots",
2151
+ pagination: {
2152
+ mode: "page",
2153
+ inputToken: "page",
2154
+ outputToken: "total_count",
2155
+ items: "snapshots",
2156
+ pageSize: "page_size",
2157
+ } as const,
2158
+ }),
2159
+ paginateByTotalCount,
2160
+ ) as any;
2161
+
2162
+ export type ListUsersError = ScalewayOpError;
2163
+ /** List users of a Database Instance List all users of a given Database Instance. By default, the users returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. */
2164
+ export const listUsers: API.PaginatedOperationMethod<
2165
+ ListUsersRequest,
2166
+ ListUsersResponse,
2167
+ ListUsersError,
2168
+ ScalewayOpContext,
2169
+ User
2170
+ > = /*@__PURE__*/ API.makePaginated(
2171
+ () => ({
2172
+ input: __S(848, __c53, 0) as any as S.Schema<ListUsersRequest>,
2173
+ output: __S(850, __c53, 2) as any as S.Schema<ListUsersResponse>,
2174
+ errors: [],
2175
+ serviceErrors: ScalewayServiceErrors,
2176
+ protocol: ScalewayProtocol,
2177
+ retry: Retry.Retry,
2178
+ telemetry: TELEMETRY,
2179
+ span: "ListUsers",
2180
+ pagination: {
2181
+ mode: "page",
2182
+ inputToken: "page",
2183
+ outputToken: "total_count",
2184
+ items: "users",
2185
+ pageSize: "page_size",
2186
+ } as const,
2187
+ }),
2188
+ paginateByTotalCount,
2189
+ ) as any;
2190
+
2191
+ export type MigrateEndpointError = ScalewayOpError;
2192
+ /** Migrate an existing instance endpoint to another instance */
2193
+ export const migrateEndpoint: API.OperationMethod<
2194
+ MigrateEndpointRequest,
2195
+ Endpoint,
2196
+ MigrateEndpointError,
2197
+ ScalewayOpContext
2198
+ > = /*@__PURE__*/ API.make(() => ({
2199
+ input: __S(864, __c54, 0) as any as S.Schema<MigrateEndpointRequest>,
2200
+ output: __S(545, __c34, 1) as any as S.Schema<Endpoint>,
2201
+ errors: [],
2202
+ serviceErrors: ScalewayServiceErrors,
2203
+ protocol: ScalewayProtocol,
2204
+ retry: Retry.Retry,
2205
+ telemetry: TELEMETRY,
2206
+ span: "MigrateEndpoint",
2207
+ }));
2208
+
2209
+ export type PrepareInstanceLogsError = ScalewayOpError;
2210
+ /** Prepare logs of a Database Instance Prepare your Database Instance logs. You can define the `start_date` and `end_date` parameters for your query. The download URL is returned in the response. Logs are recorded from 00h00 to 23h59 and then aggregated in a `.log` file once a day. Therefore, even if you specify a timeframe from which you want to get the logs, you will receive logs from the full 24 hours. */
2211
+ export const prepareInstanceLogs: API.OperationMethod<
2212
+ PrepareInstanceLogsRequest,
2213
+ PrepareInstanceLogsResponse,
2214
+ PrepareInstanceLogsError,
2215
+ ScalewayOpContext
2216
+ > = /*@__PURE__*/ API.make(() => ({
2217
+ input: __S(880, __c55, 0) as any as S.Schema<PrepareInstanceLogsRequest>,
2218
+ output: __S(705, __c44, 1) as any as S.Schema<PrepareInstanceLogsResponse>,
2219
+ errors: [],
2220
+ serviceErrors: ScalewayServiceErrors,
2221
+ protocol: ScalewayProtocol,
2222
+ retry: Retry.Retry,
2223
+ telemetry: TELEMETRY,
2224
+ span: "PrepareInstanceLogs",
2225
+ }));
2226
+
2227
+ export type PromoteReadReplicaError = ScalewayOpError;
2228
+ /** Promote a Read Replica Promote a Read Replica to Database Instance automatically. */
2229
+ export const promoteReadReplica: API.OperationMethod<
2230
+ PromoteReadReplicaRequest,
2231
+ Instance,
2232
+ PromoteReadReplicaError,
2233
+ ScalewayOpContext
2234
+ > = /*@__PURE__*/ API.make(() => ({
2235
+ input: __S(896, __c56, 0) as any as S.Schema<PromoteReadReplicaRequest>,
2236
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
2237
+ errors: [],
2238
+ serviceErrors: ScalewayServiceErrors,
2239
+ protocol: ScalewayProtocol,
2240
+ retry: Retry.Retry,
2241
+ telemetry: TELEMETRY,
2242
+ span: "PromoteReadReplica",
2243
+ }));
2244
+
2245
+ export type PurgeInstanceLogsError = ScalewayOpError;
2246
+ /** Purge remote Database Instance logs Purge a given remote log from a Database Instance. You can specify the `log_name` of the log you wish to clean from your Database Instance. */
2247
+ export const purgeInstanceLogs: API.OperationMethod<
2248
+ PurgeInstanceLogsRequest,
2249
+ PurgeInstanceLogsResponse,
2250
+ PurgeInstanceLogsError,
2251
+ ScalewayOpContext
2252
+ > = /*@__PURE__*/ API.make(() => ({
2253
+ input: __S(912, __c57, 0) as any as S.Schema<PurgeInstanceLogsRequest>,
2254
+ output: __S(208, __c13, 0) as any as S.Schema<PurgeInstanceLogsResponse>,
2255
+ errors: [],
2256
+ serviceErrors: ScalewayServiceErrors,
2257
+ protocol: ScalewayProtocol,
2258
+ retry: Retry.Retry,
2259
+ telemetry: TELEMETRY,
2260
+ span: "PurgeInstanceLogs",
2261
+ }));
2262
+
2263
+ export type RenewInstanceCertificateError = ScalewayOpError;
2264
+ /** Renew the TLS certificate of a Database Instance Renew a TLS for a Database Instance. Renewing a certificate means that you will not be able to connect to your Database Instance using the previous certificate. You will also need to download and update the new certificate for all database clients. */
2265
+ export const renewInstanceCertificate: API.OperationMethod<
2266
+ RenewInstanceCertificateRequest,
2267
+ RenewInstanceCertificateResponse,
2268
+ RenewInstanceCertificateError,
2269
+ ScalewayOpContext
2270
+ > = /*@__PURE__*/ API.make(() => ({
2271
+ input: __S(928, __c58, 0) as any as S.Schema<RenewInstanceCertificateRequest>,
2272
+ output: __S(208, __c13, 0) as any as S.Schema<RenewInstanceCertificateResponse>,
2273
+ errors: [],
2274
+ serviceErrors: ScalewayServiceErrors,
2275
+ protocol: ScalewayProtocol,
2276
+ retry: Retry.Retry,
2277
+ telemetry: TELEMETRY,
2278
+ span: "RenewInstanceCertificate",
2279
+ }));
2280
+
2281
+ export type ResetReadReplicaError = ScalewayOpError;
2282
+ /** Resync a Read Replica When you resync a Read Replica, first it is reset, then its data is resynchronized from the primary node. Your Read Replica remains unavailable during the resync process. The duration of this process is proportional to the size of your Database Instance. The configured endpoints do not change. */
2283
+ export const resetReadReplica: API.OperationMethod<
2284
+ ResetReadReplicaRequest,
2285
+ ReadReplica,
2286
+ ResetReadReplicaError,
2287
+ ScalewayOpContext
2288
+ > = /*@__PURE__*/ API.make(() => ({
2289
+ input: __S(944, __c59, 0) as any as S.Schema<ResetReadReplicaRequest>,
2290
+ output: __S(593, __c37, 1) as any as S.Schema<ReadReplica>,
2291
+ errors: [],
2292
+ serviceErrors: ScalewayServiceErrors,
2293
+ protocol: ScalewayProtocol,
2294
+ retry: Retry.Retry,
2295
+ telemetry: TELEMETRY,
2296
+ span: "ResetReadReplica",
2297
+ }));
2298
+
2299
+ export type RestartInstanceError = ScalewayOpError;
2300
+ /** Restart Database Instance Restart a given Database Instance, specified by the `region` and `instance_id` parameters. The status of the Database Instance returned in the response. */
2301
+ export const restartInstance: API.OperationMethod<
2302
+ RestartInstanceRequest,
2303
+ Instance,
2304
+ RestartInstanceError,
2305
+ ScalewayOpContext
2306
+ > = /*@__PURE__*/ API.make(() => ({
2307
+ input: __S(960, __c60, 0) as any as S.Schema<RestartInstanceRequest>,
2308
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
2309
+ errors: [],
2310
+ serviceErrors: ScalewayServiceErrors,
2311
+ protocol: ScalewayProtocol,
2312
+ retry: Retry.Retry,
2313
+ telemetry: TELEMETRY,
2314
+ span: "RestartInstance",
2315
+ }));
2316
+
2317
+ export type RestoreDatabaseBackupError = ScalewayOpError;
2318
+ /** Restore a database backup Launch the process of restoring database backup. You must specify the `instance_id` of the Database Instance of destination, where the backup will be restored. Note that large database backups can take up to several hours to restore. */
2319
+ export const restoreDatabaseBackup: API.OperationMethod<
2320
+ RestoreDatabaseBackupRequest,
2321
+ DatabaseBackup,
2322
+ RestoreDatabaseBackupError,
2323
+ ScalewayOpContext
2324
+ > = /*@__PURE__*/ API.make(() => ({
2325
+ input: __S(976, __c61, 0) as any as S.Schema<RestoreDatabaseBackupRequest>,
2326
+ output: __S(1008, __c63, 0) as any as S.Schema<DatabaseBackup>,
2327
+ errors: [],
2328
+ serviceErrors: ScalewayServiceErrors,
2329
+ protocol: ScalewayProtocol,
2330
+ retry: Retry.Retry,
2331
+ telemetry: TELEMETRY,
2332
+ span: "RestoreDatabaseBackup",
2333
+ }));
2334
+
2335
+ export type SetInstanceACLRulesError = ScalewayOpError;
2336
+ /** Set ACL rules for a Database Instance Replace all the ACL rules of a Database Instance. */
2337
+ export const setInstanceACLRules: API.OperationMethod<
2338
+ SetInstanceACLRulesRequest,
2339
+ SetInstanceACLRulesResponse,
2340
+ SetInstanceACLRulesError,
2341
+ ScalewayOpContext
2342
+ > = /*@__PURE__*/ API.make(() => ({
2343
+ input: __S(1024, __c64, 0) as any as S.Schema<SetInstanceACLRulesRequest>,
2344
+ output: __S(32, __c2, 0) as any as S.Schema<SetInstanceACLRulesResponse>,
2345
+ errors: [],
2346
+ serviceErrors: ScalewayServiceErrors,
2347
+ protocol: ScalewayProtocol,
2348
+ retry: Retry.Retry,
2349
+ telemetry: TELEMETRY,
2350
+ span: "SetInstanceACLRules",
2351
+ }));
2352
+
2353
+ export type SetInstanceSettingsError = ScalewayOpError;
2354
+ /** Set Database Instance advanced settings Update an advanced setting for a Database Instance. Settings added upon database engine initialization can only be defined once, and cannot, therefore, be updated. */
2355
+ export const setInstanceSettings: API.OperationMethod<
2356
+ SetInstanceSettingsRequest,
2357
+ SetInstanceSettingsResponse,
2358
+ SetInstanceSettingsError,
2359
+ ScalewayOpContext
2360
+ > = /*@__PURE__*/ API.make(() => ({
2361
+ input: __S(1040, __c65, 0) as any as S.Schema<SetInstanceSettingsRequest>,
2362
+ output: __S(80, __c5, 0) as any as S.Schema<SetInstanceSettingsResponse>,
2363
+ errors: [],
2364
+ serviceErrors: ScalewayServiceErrors,
2365
+ protocol: ScalewayProtocol,
2366
+ retry: Retry.Retry,
2367
+ telemetry: TELEMETRY,
2368
+ span: "SetInstanceSettings",
2369
+ }));
2370
+
2371
+ export type SetPrivilegeError = ScalewayOpError;
2372
+ /** Set user privileges for a database Set the privileges of a user on a database. You must define `database_name`, `user_name` and `permission` in the request body. */
2373
+ export const setPrivilege: API.OperationMethod<
2374
+ SetPrivilegeRequest,
2375
+ Privilege,
2376
+ SetPrivilegeError,
2377
+ ScalewayOpContext
2378
+ > = /*@__PURE__*/ API.make(() => ({
2379
+ input: __S(1056, __c66, 0) as any as S.Schema<SetPrivilegeRequest>,
2380
+ output: __S(784, __c49, 0) as any as S.Schema<Privilege>,
2381
+ errors: [],
2382
+ serviceErrors: ScalewayServiceErrors,
2383
+ protocol: ScalewayProtocol,
2384
+ retry: Retry.Retry,
2385
+ telemetry: TELEMETRY,
2386
+ span: "SetPrivilege",
2387
+ }));
2388
+
2389
+ export type UpdateDatabaseBackupError = ScalewayOpError;
2390
+ /** Update a database backup Update the parameters of a backup, including name and expiration date. */
2391
+ export const updateDatabaseBackup: API.OperationMethod<
2392
+ UpdateDatabaseBackupRequest,
2393
+ DatabaseBackup,
2394
+ UpdateDatabaseBackupError,
2395
+ ScalewayOpContext
2396
+ > = /*@__PURE__*/ API.make(() => ({
2397
+ input: __S(1072, __c67, 0) as any as S.Schema<UpdateDatabaseBackupRequest>,
2398
+ output: __S(1008, __c63, 0) as any as S.Schema<DatabaseBackup>,
2399
+ errors: [],
2400
+ serviceErrors: ScalewayServiceErrors,
2401
+ protocol: ScalewayProtocol,
2402
+ retry: Retry.Retry,
2403
+ telemetry: TELEMETRY,
2404
+ span: "UpdateDatabaseBackup",
2405
+ }));
2406
+
2407
+ export type UpdateInstanceError = ScalewayOpError;
2408
+ /** Update a Database Instance Update the parameters of a Database Instance, including name, tags and backup schedule details. */
2409
+ export const updateInstance: API.OperationMethod<
2410
+ UpdateInstanceRequest,
2411
+ Instance,
2412
+ UpdateInstanceError,
2413
+ ScalewayOpContext
2414
+ > = /*@__PURE__*/ API.make(() => ({
2415
+ input: __S(1089, __c68, 1) as any as S.Schema<UpdateInstanceRequest>,
2416
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
2417
+ errors: [],
2418
+ serviceErrors: ScalewayServiceErrors,
2419
+ protocol: ScalewayProtocol,
2420
+ retry: Retry.Retry,
2421
+ telemetry: TELEMETRY,
2422
+ span: "UpdateInstance",
2423
+ }));
2424
+
2425
+ export type UpdateSnapshotError = ScalewayOpError;
2426
+ /** Update a Database Instance snapshot Update the parameters of a snapshot of a Database Instance. You can update the `name` and `expires_at` parameters. */
2427
+ export const updateSnapshot: API.OperationMethod<
2428
+ UpdateSnapshotRequest,
2429
+ Snapshot,
2430
+ UpdateSnapshotError,
2431
+ ScalewayOpContext
2432
+ > = /*@__PURE__*/ API.make(() => ({
2433
+ input: __S(1104, __c69, 0) as any as S.Schema<UpdateSnapshotRequest>,
2434
+ output: __S(145, __c9, 1) as any as S.Schema<Snapshot>,
2435
+ errors: [],
2436
+ serviceErrors: ScalewayServiceErrors,
2437
+ protocol: ScalewayProtocol,
2438
+ retry: Retry.Retry,
2439
+ telemetry: TELEMETRY,
2440
+ span: "UpdateSnapshot",
2441
+ }));
2442
+
2443
+ export type UpdateUserError = ScalewayOpError;
2444
+ /** Update a user on a Database Instance Update the parameters of a user on a Database Instance. You can update the `password` and `is_admin` parameters, but you cannot change the name of the user. */
2445
+ export const updateUser: API.OperationMethod<
2446
+ UpdateUserRequest,
2447
+ User,
2448
+ UpdateUserError,
2449
+ ScalewayOpContext
2450
+ > = /*@__PURE__*/ API.make(() => ({
2451
+ input: __S(1120, __c70, 0) as any as S.Schema<UpdateUserRequest>,
2452
+ output: __S(176, __c11, 0) as any as S.Schema<User>,
2453
+ errors: [],
2454
+ serviceErrors: ScalewayServiceErrors,
2455
+ protocol: ScalewayProtocol,
2456
+ retry: Retry.Retry,
2457
+ telemetry: TELEMETRY,
2458
+ span: "UpdateUser",
2459
+ }));
2460
+
2461
+ export type UpgradeInstanceError = ScalewayOpError;
2462
+ /** Upgrade a Database Instance Upgrade your current Database Instance specifications like node type, high availability, volume, or the database engine version. Note that upon upgrade the `enable_ha` parameter can only be set to `true`. */
2463
+ export const upgradeInstance: API.OperationMethod<
2464
+ UpgradeInstanceRequest,
2465
+ Instance,
2466
+ UpgradeInstanceError,
2467
+ ScalewayOpContext
2468
+ > = /*@__PURE__*/ API.make(() => ({
2469
+ input: __S(1137, __c71, 1) as any as S.Schema<UpgradeInstanceRequest>,
2470
+ output: __S(584, __c36, 8) as any as S.Schema<Instance>,
2471
+ errors: [],
2472
+ serviceErrors: ScalewayServiceErrors,
2473
+ protocol: ScalewayProtocol,
2474
+ retry: Retry.Retry,
2475
+ telemetry: TELEMETRY,
2476
+ span: "UpgradeInstance",
2477
+ }));
2478
+
2479
+ // Schema builders: each runs one schema initializer, on that schema's first use.
2480
+ function __c0(j: number): any {
2481
+ switch (j) {
2482
+ case 0:
2483
+ return S.suspend(() =>
2484
+ S.Struct({
2485
+ region: S.optional(S.String.pipe(T.Label())),
2486
+ instance_id: S.String.pipe(T.Label()),
2487
+ rules: __S(49, __c3, 1),
2488
+ }).pipe(
2489
+ T.Http({
2490
+ method: "POST",
2491
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/acls",
2492
+ code: 200,
2493
+ baseUrl: "https://api.scaleway.com",
2494
+ }),
2495
+ ),
2496
+ ).annotate({ identifier: "AddInstanceACLRulesRequest" });
2497
+ }
2498
+ }
2499
+ function __c1(j: number): any {
2500
+ switch (j) {
2501
+ case 0:
2502
+ return S.suspend(() =>
2503
+ S.Struct({
2504
+ ip: S.optional(S.String),
2505
+ protocol: S.optional(S.String),
2506
+ direction: S.optional(S.String),
2507
+ action: S.optional(S.String),
2508
+ description: S.optional(S.String),
2509
+ port: S.optional(S.Number),
2510
+ }),
2511
+ ).annotate({ identifier: "ACLRule" });
2512
+ case 1:
2513
+ return S.Array(__S(16, __c1, 0));
2514
+ }
2515
+ }
2516
+ function __c2(j: number): any {
2517
+ switch (j) {
2518
+ case 0:
2519
+ return S.suspend(() =>
2520
+ S.Struct({
2521
+ rules: S.optional(__S(17, __c1, 1)),
2522
+ }),
2523
+ ).annotate({ identifier: "AddInstanceACLRulesResponse" });
2524
+ }
2525
+ }
2526
+ function __c3(j: number): any {
2527
+ switch (j) {
2528
+ case 0:
2529
+ return S.suspend(() =>
2530
+ S.Struct({
2531
+ ip: S.optional(S.String),
2532
+ description: S.optional(S.String),
2533
+ }),
2534
+ ).annotate({ identifier: "ACLRuleRequest" });
2535
+ case 1:
2536
+ return S.Array(__S(48, __c3, 0));
2537
+ }
2538
+ }
2539
+ function __c4(j: number): any {
2540
+ switch (j) {
2541
+ case 0:
2542
+ return S.suspend(() =>
2543
+ S.Struct({
2544
+ region: S.optional(S.String.pipe(T.Label())),
2545
+ instance_id: S.String.pipe(T.Label()),
2546
+ settings: __S(97, __c6, 1),
2547
+ }).pipe(
2548
+ T.Http({
2549
+ method: "POST",
2550
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/settings",
2551
+ code: 200,
2552
+ baseUrl: "https://api.scaleway.com",
2553
+ }),
2554
+ ),
2555
+ ).annotate({ identifier: "AddInstanceSettingsRequest" });
2556
+ }
2557
+ }
2558
+ function __c5(j: number): any {
2559
+ switch (j) {
2560
+ case 0:
2561
+ return S.suspend(() =>
2562
+ S.Struct({
2563
+ settings: S.optional(__S(97, __c6, 1)),
2564
+ }),
2565
+ ).annotate({ identifier: "AddInstanceSettingsResponse" });
2566
+ }
2567
+ }
2568
+ function __c6(j: number): any {
2569
+ switch (j) {
2570
+ case 0:
2571
+ return S.suspend(() =>
2572
+ S.Struct({
2573
+ name: S.optional(S.String),
2574
+ value: S.optional(S.String),
2575
+ }),
2576
+ ).annotate({ identifier: "InstanceSetting" });
2577
+ case 1:
2578
+ return S.Array(__S(96, __c6, 0));
2579
+ }
2580
+ }
2581
+ function __c7(j: number): any {
2582
+ switch (j) {
2583
+ case 0:
2584
+ return S.suspend(() =>
2585
+ S.Struct({
2586
+ region: S.optional(S.String.pipe(T.Label())),
2587
+ read_replica_id: S.String.pipe(T.Label()),
2588
+ endpoint_spec: __S(1249, __c78, 1),
2589
+ }).pipe(
2590
+ T.Http({
2591
+ method: "POST",
2592
+ uri: "/rdb/v1/regions/{region}/read-replicas/{read_replica_id}/endpoints",
2593
+ code: 200,
2594
+ baseUrl: "https://api.scaleway.com",
2595
+ }),
2596
+ ),
2597
+ ).annotate({ identifier: "CreateReadReplicaEndpointRequest" });
2598
+ }
2599
+ }
2600
+ function __c8(j: number): any {
2601
+ switch (j) {
2602
+ case 0:
2603
+ return S.suspend(() =>
2604
+ S.Struct({
2605
+ region: S.optional(S.String.pipe(T.Label())),
2606
+ instance_id: S.String.pipe(T.Label()),
2607
+ name: S.String,
2608
+ expires_at: S.optional(S.NullOr(S.String)),
2609
+ }).pipe(
2610
+ T.Http({
2611
+ method: "POST",
2612
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/snapshots",
2613
+ code: 200,
2614
+ baseUrl: "https://api.scaleway.com",
2615
+ }),
2616
+ ),
2617
+ ).annotate({ identifier: "CreateSnapshotRequest" });
2618
+ }
2619
+ }
2620
+ function __c9(j: number): any {
2621
+ switch (j) {
2622
+ case 0:
2623
+ return S.suspend(() =>
2624
+ S.Struct({
2625
+ type: S.optional(S.String),
2626
+ class: S.optional(S.String),
2627
+ }),
2628
+ ).annotate({ identifier: "SnapshotVolumeType" });
2629
+ case 1:
2630
+ return S.suspend(() =>
2631
+ S.Struct({
2632
+ id: S.optional(S.String),
2633
+ instance_id: S.optional(S.String),
2634
+ name: S.optional(S.String),
2635
+ status: S.optional(S.String),
2636
+ size: S.optional(S.NullOr(S.Number)),
2637
+ expires_at: S.optional(S.NullOr(S.String)),
2638
+ created_at: S.optional(S.NullOr(S.String)),
2639
+ updated_at: S.optional(S.NullOr(S.String)),
2640
+ instance_name: S.optional(S.String),
2641
+ node_type: S.optional(S.String),
2642
+ volume_type: S.optional(__S(144, __c9, 0)),
2643
+ region: S.optional(S.String),
2644
+ }),
2645
+ ).annotate({ identifier: "Snapshot" });
2646
+ }
2647
+ }
2648
+ function __c10(j: number): any {
2649
+ switch (j) {
2650
+ case 0:
2651
+ return S.suspend(() =>
2652
+ S.Struct({
2653
+ region: S.optional(S.String.pipe(T.Label())),
2654
+ instance_id: S.String.pipe(T.Label()),
2655
+ name: S.optional(S.String),
2656
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
2657
+ is_admin: S.optional(S.Boolean),
2658
+ }).pipe(
2659
+ T.Http({
2660
+ method: "POST",
2661
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/users",
2662
+ code: 200,
2663
+ baseUrl: "https://api.scaleway.com",
2664
+ }),
2665
+ ),
2666
+ ).annotate({ identifier: "CreateUserRequest" });
2667
+ }
2668
+ }
2669
+ function __c11(j: number): any {
2670
+ switch (j) {
2671
+ case 0:
2672
+ return S.suspend(() =>
2673
+ S.Struct({
2674
+ name: S.optional(S.String),
2675
+ is_admin: S.optional(S.Boolean),
2676
+ }),
2677
+ ).annotate({ identifier: "User" });
2678
+ }
2679
+ }
2680
+ function __c12(j: number): any {
2681
+ switch (j) {
2682
+ case 0:
2683
+ return S.suspend(() =>
2684
+ S.Struct({
2685
+ region: S.optional(S.String.pipe(T.Label())),
2686
+ instance_id: S.String.pipe(T.Label()),
2687
+ name: S.String.pipe(T.Label()),
2688
+ }).pipe(
2689
+ T.Http({
2690
+ method: "DELETE",
2691
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/databases/{name}",
2692
+ code: 200,
2693
+ baseUrl: "https://api.scaleway.com",
2694
+ }),
2695
+ ),
2696
+ ).annotate({ identifier: "DeleteDatabaseRequest" });
2697
+ }
2698
+ }
2699
+ function __c13(j: number): any {
2700
+ switch (j) {
2701
+ case 0:
2702
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteDatabaseResponse" });
2703
+ }
2704
+ }
2705
+ function __c14(j: number): any {
2706
+ switch (j) {
2707
+ case 0:
2708
+ return S.suspend(() =>
2709
+ S.Struct({
2710
+ region: S.optional(S.String.pipe(T.Label())),
2711
+ database_backup_id: S.String.pipe(T.Label()),
2712
+ }).pipe(
2713
+ T.Http({
2714
+ method: "DELETE",
2715
+ uri: "/rdb/v1/regions/{region}/backups/{database_backup_id}",
2716
+ code: 200,
2717
+ baseUrl: "https://api.scaleway.com",
2718
+ }),
2719
+ ),
2720
+ ).annotate({ identifier: "DeleteDatabaseBackupRequest" });
2721
+ }
2722
+ }
2723
+ function __c15(j: number): any {
2724
+ switch (j) {
2725
+ case 0:
2726
+ return S.suspend(() =>
2727
+ S.Struct({
2728
+ region: S.optional(S.String.pipe(T.Label())),
2729
+ endpoint_id: S.String.pipe(T.Label()),
2730
+ }).pipe(
2731
+ T.Http({
2732
+ method: "DELETE",
2733
+ uri: "/rdb/v1/regions/{region}/endpoints/{endpoint_id}",
2734
+ code: 200,
2735
+ baseUrl: "https://api.scaleway.com",
2736
+ }),
2737
+ ),
2738
+ ).annotate({ identifier: "DeleteEndpointRequest" });
2739
+ }
2740
+ }
2741
+ function __c16(j: number): any {
2742
+ switch (j) {
2743
+ case 0:
2744
+ return S.suspend(() =>
2745
+ S.Struct({
2746
+ region: S.optional(S.String.pipe(T.Label())),
2747
+ instance_id: S.String.pipe(T.Label()),
2748
+ }).pipe(
2749
+ T.Http({
2750
+ method: "DELETE",
2751
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}",
2752
+ code: 200,
2753
+ baseUrl: "https://api.scaleway.com",
2754
+ }),
2755
+ ),
2756
+ ).annotate({ identifier: "DeleteInstanceRequest" });
2757
+ }
2758
+ }
2759
+ function __c17(j: number): any {
2760
+ switch (j) {
2761
+ case 0:
2762
+ return S.suspend(() =>
2763
+ S.Struct({
2764
+ region: S.optional(S.String.pipe(T.Label())),
2765
+ instance_id: S.String.pipe(T.Label()),
2766
+ acl_rule_ips: __S(560, __c35, 0),
2767
+ }).pipe(
2768
+ T.Http({
2769
+ method: "DELETE",
2770
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/acls",
2771
+ code: 200,
2772
+ baseUrl: "https://api.scaleway.com",
2773
+ }),
2774
+ ),
2775
+ ).annotate({ identifier: "DeleteInstanceACLRulesRequest" });
2776
+ }
2777
+ }
2778
+ function __c18(j: number): any {
2779
+ switch (j) {
2780
+ case 0:
2781
+ return S.suspend(() =>
2782
+ S.Struct({
2783
+ region: S.optional(S.String.pipe(T.Label())),
2784
+ instance_id: S.String.pipe(T.Label()),
2785
+ setting_names: __S(560, __c35, 0),
2786
+ }).pipe(
2787
+ T.Http({
2788
+ method: "DELETE",
2789
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/settings",
2790
+ code: 200,
2791
+ baseUrl: "https://api.scaleway.com",
2792
+ }),
2793
+ ),
2794
+ ).annotate({ identifier: "DeleteInstanceSettingsRequest" });
2795
+ }
2796
+ }
2797
+ function __c19(j: number): any {
2798
+ switch (j) {
2799
+ case 0:
2800
+ return S.suspend(() =>
2801
+ S.Struct({
2802
+ region: S.optional(S.String.pipe(T.Label())),
2803
+ read_replica_id: S.String.pipe(T.Label()),
2804
+ }).pipe(
2805
+ T.Http({
2806
+ method: "DELETE",
2807
+ uri: "/rdb/v1/regions/{region}/read-replicas/{read_replica_id}",
2808
+ code: 200,
2809
+ baseUrl: "https://api.scaleway.com",
2810
+ }),
2811
+ ),
2812
+ ).annotate({ identifier: "DeleteReadReplicaRequest" });
2813
+ }
2814
+ }
2815
+ function __c20(j: number): any {
2816
+ switch (j) {
2817
+ case 0:
2818
+ return S.suspend(() =>
2819
+ S.Struct({
2820
+ region: S.optional(S.String.pipe(T.Label())),
2821
+ instance_id: S.String.pipe(T.Label()),
2822
+ }).pipe(
2823
+ T.Http({
2824
+ method: "POST",
2825
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/apply-maintenance",
2826
+ code: 200,
2827
+ baseUrl: "https://api.scaleway.com",
2828
+ }),
2829
+ ),
2830
+ ).annotate({ identifier: "ApplyInstanceMaintenanceRequest" });
2831
+ }
2832
+ }
2833
+ function __c21(j: number): any {
2834
+ switch (j) {
2835
+ case 0:
2836
+ return S.suspend(() =>
2837
+ S.Struct({
2838
+ starts_at: S.optional(S.NullOr(S.String)),
2839
+ stops_at: S.optional(S.NullOr(S.String)),
2840
+ closed_at: S.optional(S.NullOr(S.String)),
2841
+ reason: S.optional(S.String),
2842
+ status: S.optional(S.String),
2843
+ forced_at: S.optional(S.NullOr(S.String)),
2844
+ is_applicable: S.optional(S.Boolean),
2845
+ }),
2846
+ ).annotate({ identifier: "Maintenance" });
2847
+ }
2848
+ }
2849
+ function __c22(j: number): any {
2850
+ switch (j) {
2851
+ case 0:
2852
+ return S.suspend(() =>
2853
+ S.Struct({
2854
+ region: S.optional(S.String.pipe(T.Label())),
2855
+ snapshot_id: S.String.pipe(T.Label()),
2856
+ }).pipe(
2857
+ T.Http({
2858
+ method: "DELETE",
2859
+ uri: "/rdb/v1/regions/{region}/snapshots/{snapshot_id}",
2860
+ code: 200,
2861
+ baseUrl: "https://api.scaleway.com",
2862
+ }),
2863
+ ),
2864
+ ).annotate({ identifier: "DeleteSnapshotRequest" });
2865
+ }
2866
+ }
2867
+ function __c23(j: number): any {
2868
+ switch (j) {
2869
+ case 0:
2870
+ return S.suspend(() =>
2871
+ S.Struct({
2872
+ region: S.optional(S.String.pipe(T.Label())),
2873
+ instance_id: S.String.pipe(T.Label()),
2874
+ name: S.String.pipe(T.Label()),
2875
+ }).pipe(
2876
+ T.Http({
2877
+ method: "DELETE",
2878
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/users/{name}",
2879
+ code: 200,
2880
+ baseUrl: "https://api.scaleway.com",
2881
+ }),
2882
+ ),
2883
+ ).annotate({ identifier: "DeleteUserRequest" });
2884
+ }
2885
+ }
2886
+ function __c24(j: number): any {
2887
+ switch (j) {
2888
+ case 0:
2889
+ return S.suspend(() =>
2890
+ S.Struct({
2891
+ region: S.optional(S.String.pipe(T.Label())),
2892
+ database_backup_id: S.String.pipe(T.Label()),
2893
+ }).pipe(
2894
+ T.Http({
2895
+ method: "POST",
2896
+ uri: "/rdb/v1/regions/{region}/backups/{database_backup_id}/export",
2897
+ code: 200,
2898
+ baseUrl: "https://api.scaleway.com",
2899
+ }),
2900
+ ),
2901
+ ).annotate({ identifier: "ExportDatabaseBackupRequest" });
2902
+ }
2903
+ }
2904
+ function __c25(j: number): any {
2905
+ switch (j) {
2906
+ case 0:
2907
+ return S.suspend(() =>
2908
+ S.Struct({
2909
+ region: S.optional(S.String.pipe(T.Label())),
2910
+ database_backup_id: S.String.pipe(T.Label()),
2911
+ }).pipe(
2912
+ T.Http({
2913
+ method: "GET",
2914
+ uri: "/rdb/v1/regions/{region}/backups/{database_backup_id}",
2915
+ code: 200,
2916
+ baseUrl: "https://api.scaleway.com",
2917
+ }),
2918
+ ),
2919
+ ).annotate({ identifier: "GetDatabaseBackupRequest" });
2920
+ }
2921
+ }
2922
+ function __c26(j: number): any {
2923
+ switch (j) {
2924
+ case 0:
2925
+ return S.suspend(() =>
2926
+ S.Struct({
2927
+ region: S.optional(S.String.pipe(T.Label())),
2928
+ endpoint_id: S.String.pipe(T.Label()),
2929
+ }).pipe(
2930
+ T.Http({
2931
+ method: "GET",
2932
+ uri: "/rdb/v1/regions/{region}/endpoints/{endpoint_id}",
2933
+ code: 200,
2934
+ baseUrl: "https://api.scaleway.com",
2935
+ }),
2936
+ ),
2937
+ ).annotate({ identifier: "GetEndpointRequest" });
2938
+ }
2939
+ }
2940
+ function __c27(j: number): any {
2941
+ switch (j) {
2942
+ case 0:
2943
+ return S.suspend(() =>
2944
+ S.Struct({
2945
+ region: S.optional(S.String.pipe(T.Label())),
2946
+ instance_id: S.String.pipe(T.Label()),
2947
+ }).pipe(
2948
+ T.Http({
2949
+ method: "GET",
2950
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}",
2951
+ code: 200,
2952
+ baseUrl: "https://api.scaleway.com",
2953
+ }),
2954
+ ),
2955
+ ).annotate({ identifier: "GetInstanceRequest" });
2956
+ }
2957
+ }
2958
+ function __c28(j: number): any {
2959
+ switch (j) {
2960
+ case 0:
2961
+ return S.suspend(() =>
2962
+ S.Struct({
2963
+ region: S.optional(S.String.pipe(T.Label())),
2964
+ instance_id: S.String.pipe(T.Label()),
2965
+ }).pipe(
2966
+ T.Http({
2967
+ method: "GET",
2968
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/certificate",
2969
+ code: 200,
2970
+ baseUrl: "https://api.scaleway.com",
2971
+ }),
2972
+ ),
2973
+ ).annotate({ identifier: "GetInstanceCertificateRequest" });
2974
+ case 1:
2975
+ return S.suspend(() =>
2976
+ S.Struct({
2977
+ name: S.optional(S.String),
2978
+ content_type: S.optional(S.String),
2979
+ content: S.optional(S.String),
2980
+ }),
2981
+ ).annotate({ identifier: "ScalewayStdFile" });
2982
+ }
2983
+ }
2984
+ function __c29(j: number): any {
2985
+ switch (j) {
2986
+ case 0:
2987
+ return S.suspend(() =>
2988
+ S.Struct({
2989
+ region: S.optional(S.String.pipe(T.Label())),
2990
+ instance_id: S.String.pipe(T.Label()),
2991
+ }).pipe(
2992
+ T.Http({
2993
+ method: "GET",
2994
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/certificate",
2995
+ code: 200,
2996
+ baseUrl: "https://api.scaleway.com",
2997
+ rawDownload: true,
2998
+ }),
2999
+ ),
3000
+ ).annotate({ identifier: "GetInstanceCertificateRawRequest" });
3001
+ case 1:
3002
+ return S.suspend(() =>
3003
+ S.Struct({
3004
+ body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
3005
+ contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
3006
+ }),
3007
+ ).annotate({ identifier: "GetInstanceCertificateRawResponse" });
3008
+ }
3009
+ }
3010
+ function __c30(j: number): any {
3011
+ switch (j) {
3012
+ case 0:
3013
+ return S.suspend(() =>
3014
+ S.Struct({
3015
+ region: S.optional(S.String.pipe(T.Label())),
3016
+ instance_log_id: S.String.pipe(T.Label()),
3017
+ }).pipe(
3018
+ T.Http({
3019
+ method: "GET",
3020
+ uri: "/rdb/v1/regions/{region}/logs/{instance_log_id}",
3021
+ code: 200,
3022
+ baseUrl: "https://api.scaleway.com",
3023
+ }),
3024
+ ),
3025
+ ).annotate({ identifier: "GetInstanceLogRequest" });
3026
+ }
3027
+ }
3028
+ function __c31(j: number): any {
3029
+ switch (j) {
3030
+ case 0:
3031
+ return S.suspend(() =>
3032
+ S.Struct({
3033
+ download_url: S.optional(S.NullOr(S.String)),
3034
+ id: S.optional(S.String),
3035
+ status: S.optional(S.String),
3036
+ node_name: S.optional(S.String),
3037
+ expires_at: S.optional(S.NullOr(S.String)),
3038
+ created_at: S.optional(S.NullOr(S.String)),
3039
+ region: S.optional(S.String),
3040
+ }),
3041
+ ).annotate({ identifier: "InstanceLog" });
3042
+ }
3043
+ }
3044
+ function __c32(j: number): any {
3045
+ switch (j) {
3046
+ case 0:
3047
+ return S.suspend(() =>
3048
+ S.Struct({
3049
+ region: S.optional(S.String.pipe(T.Label())),
3050
+ read_replica_id: S.String.pipe(T.Label()),
3051
+ }).pipe(
3052
+ T.Http({
3053
+ method: "GET",
3054
+ uri: "/rdb/v1/regions/{region}/read-replicas/{read_replica_id}",
3055
+ code: 200,
3056
+ baseUrl: "https://api.scaleway.com",
3057
+ }),
3058
+ ),
3059
+ ).annotate({ identifier: "GetReadReplicaRequest" });
3060
+ }
3061
+ }
3062
+ function __c33(j: number): any {
3063
+ switch (j) {
3064
+ case 0:
3065
+ return S.suspend(() =>
3066
+ S.Struct({
3067
+ region: S.optional(S.String.pipe(T.Label())),
3068
+ instance_id: S.String.pipe(T.Label()),
3069
+ name: S.optional(S.String),
3070
+ node_type: S.optional(S.NullOr(S.String)),
3071
+ }).pipe(
3072
+ T.Http({
3073
+ method: "POST",
3074
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/clone",
3075
+ code: 200,
3076
+ baseUrl: "https://api.scaleway.com",
3077
+ }),
3078
+ ),
3079
+ ).annotate({ identifier: "CloneInstanceRequest" });
3080
+ }
3081
+ }
3082
+ function __c34(j: number): any {
3083
+ switch (j) {
3084
+ case 0:
3085
+ return S.suspend(() =>
3086
+ S.Struct({
3087
+ private_network_id: S.optional(S.String),
3088
+ service_ip: S.optional(S.String),
3089
+ zone: S.optional(S.String),
3090
+ provisioning_mode: S.optional(S.String),
3091
+ }),
3092
+ ).annotate({ identifier: "EndpointPrivateNetworkDetails" });
3093
+ case 1:
3094
+ return S.suspend(() =>
3095
+ S.Struct({
3096
+ id: S.optional(S.String),
3097
+ ip: S.optional(S.NullOr(S.String)),
3098
+ port: S.optional(S.Number),
3099
+ name: S.optional(S.NullOr(S.String)),
3100
+ private_network: S.optional(S.NullOr(__S(544, __c34, 0))),
3101
+ load_balancer: S.optional(S.NullOr(S.Unknown)),
3102
+ direct_access: S.optional(S.NullOr(S.Unknown)),
3103
+ hostname: S.optional(S.NullOr(S.String)),
3104
+ }),
3105
+ ).annotate({ identifier: "Endpoint" });
3106
+ }
3107
+ }
3108
+ function __c35(j: number): any {
3109
+ switch (j) {
3110
+ case 0:
3111
+ return S.Array(S.String);
3112
+ }
3113
+ }
3114
+ function __c36(j: number): any {
3115
+ switch (j) {
3116
+ case 0:
3117
+ return S.suspend(() =>
3118
+ S.Struct({
3119
+ type: S.optional(S.String),
3120
+ size: S.optional(S.Number),
3121
+ class: S.optional(S.String),
3122
+ }),
3123
+ ).annotate({ identifier: "Volume" });
3124
+ case 1:
3125
+ return S.suspend(() =>
3126
+ S.Struct({
3127
+ id: S.optional(S.String),
3128
+ name: S.optional(S.String),
3129
+ version: S.optional(S.String),
3130
+ minor_version: S.optional(S.String),
3131
+ }),
3132
+ ).annotate({ identifier: "UpgradableVersion" });
3133
+ case 2:
3134
+ return S.Array(__S(577, __c36, 1));
3135
+ case 3:
3136
+ return S.suspend(() =>
3137
+ S.Struct({
3138
+ frequency: S.optional(S.Number),
3139
+ retention: S.optional(S.Number),
3140
+ disabled: S.optional(S.Boolean),
3141
+ next_run_at: S.optional(S.NullOr(S.String)),
3142
+ }),
3143
+ ).annotate({ identifier: "BackupSchedule" });
3144
+ case 4:
3145
+ return S.Array(__S(593, __c37, 1));
3146
+ case 5:
3147
+ return S.suspend(() =>
3148
+ S.Struct({
3149
+ max_age_retention: S.optional(S.NullOr(S.Number)),
3150
+ total_disk_retention: S.optional(S.NullOr(S.Number)),
3151
+ }),
3152
+ ).annotate({ identifier: "LogsPolicy" });
3153
+ case 6:
3154
+ return S.Array(__S(336, __c21, 0));
3155
+ case 7:
3156
+ return S.suspend(() =>
3157
+ S.Struct({
3158
+ enabled: S.optional(S.Boolean),
3159
+ kms_key_id: S.optional(S.NullOr(S.String)),
3160
+ }),
3161
+ ).annotate({ identifier: "EncryptionAtRest" });
3162
+ case 8:
3163
+ return S.suspend(() =>
3164
+ S.Struct({
3165
+ created_at: S.optional(S.NullOr(S.String)),
3166
+ volume: S.optional(__S(576, __c36, 0)),
3167
+ region: S.optional(S.String),
3168
+ id: S.optional(S.String),
3169
+ name: S.optional(S.String),
3170
+ organization_id: S.optional(S.String),
3171
+ project_id: S.optional(S.String),
3172
+ status: S.optional(S.String),
3173
+ engine: S.optional(S.String),
3174
+ upgradable_version: S.optional(__S(578, __c36, 2)),
3175
+ endpoint: S.optional(__S(545, __c34, 1)),
3176
+ tags: S.optional(__S(560, __c35, 0)),
3177
+ settings: S.optional(__S(97, __c6, 1)),
3178
+ backup_schedule: S.optional(__S(579, __c36, 3)),
3179
+ is_ha_cluster: S.optional(S.Boolean),
3180
+ high_availability_mode: S.optional(S.String),
3181
+ read_replicas: S.optional(__S(580, __c36, 4)),
3182
+ node_type: S.optional(S.String),
3183
+ init_settings: S.optional(__S(97, __c6, 1)),
3184
+ endpoints: S.optional(__S(592, __c37, 0)),
3185
+ logs_policy: S.optional(__S(581, __c36, 5)),
3186
+ backup_same_region: S.optional(S.Boolean),
3187
+ maintenances: S.optional(__S(582, __c36, 6)),
3188
+ encryption: S.optional(__S(583, __c36, 7)),
3189
+ }),
3190
+ ).annotate({ identifier: "Instance" });
3191
+ }
3192
+ }
3193
+ function __c37(j: number): any {
3194
+ switch (j) {
3195
+ case 0:
3196
+ return S.Array(__S(545, __c34, 1));
3197
+ case 1:
3198
+ return S.suspend(() =>
3199
+ S.Struct({
3200
+ id: S.optional(S.String),
3201
+ endpoints: S.optional(__S(592, __c37, 0)),
3202
+ status: S.optional(S.String),
3203
+ region: S.optional(S.String),
3204
+ same_zone: S.optional(S.Boolean),
3205
+ instance_id: S.optional(S.String),
3206
+ }),
3207
+ ).annotate({ identifier: "ReadReplica" });
3208
+ }
3209
+ }
3210
+ function __c38(j: number): any {
3211
+ switch (j) {
3212
+ case 0:
3213
+ return S.suspend(() =>
3214
+ S.Struct({
3215
+ region: S.optional(S.String.pipe(T.Label())),
3216
+ snapshot_id: S.String.pipe(T.Label()),
3217
+ }).pipe(
3218
+ T.Http({
3219
+ method: "GET",
3220
+ uri: "/rdb/v1/regions/{region}/snapshots/{snapshot_id}",
3221
+ code: 200,
3222
+ baseUrl: "https://api.scaleway.com",
3223
+ }),
3224
+ ),
3225
+ ).annotate({ identifier: "GetSnapshotRequest" });
3226
+ }
3227
+ }
3228
+ function __c39(j: number): any {
3229
+ switch (j) {
3230
+ case 0:
3231
+ return S.suspend(() =>
3232
+ S.Struct({
3233
+ region: S.optional(S.String.pipe(T.Label())),
3234
+ name: S.optional(S.String.pipe(T.Query())),
3235
+ order_by: S.optional(S.String.pipe(T.Query())),
3236
+ instance_id: S.optional(S.String.pipe(T.Query())),
3237
+ organization_id: S.optional(S.String.pipe(T.Query())),
3238
+ project_id: S.optional(S.String.pipe(T.Query())),
3239
+ page: S.optional(S.Number.pipe(T.Query())),
3240
+ page_size: S.optional(S.Number.pipe(T.Query())),
3241
+ }).pipe(
3242
+ T.Http({
3243
+ method: "GET",
3244
+ uri: "/rdb/v1/regions/{region}/backups",
3245
+ code: 200,
3246
+ baseUrl: "https://api.scaleway.com",
3247
+ }),
3248
+ ),
3249
+ ).annotate({ identifier: "ListDatabaseBackupsRequest" });
3250
+ case 1:
3251
+ return S.Array(__S(1008, __c63, 0));
3252
+ case 2:
3253
+ return S.suspend(() =>
3254
+ S.Struct({
3255
+ database_backups: __S(625, __c39, 1),
3256
+ total_count: S.optional(S.Number),
3257
+ }),
3258
+ ).annotate({ identifier: "ListDatabaseBackupsResponse" });
3259
+ }
3260
+ }
3261
+ function __c40(j: number): any {
3262
+ switch (j) {
3263
+ case 0:
3264
+ return S.suspend(() =>
3265
+ S.Struct({
3266
+ region: S.optional(S.String.pipe(T.Label())),
3267
+ name: S.optional(S.String.pipe(T.Query())),
3268
+ version: S.optional(S.String.pipe(T.Query())),
3269
+ page: S.optional(S.Number.pipe(T.Query())),
3270
+ page_size: S.optional(S.Number.pipe(T.Query())),
3271
+ }).pipe(
3272
+ T.Http({
3273
+ method: "GET",
3274
+ uri: "/rdb/v1/regions/{region}/database-engines",
3275
+ code: 200,
3276
+ baseUrl: "https://api.scaleway.com",
3277
+ }),
3278
+ ),
3279
+ ).annotate({ identifier: "ListDatabaseEnginesRequest" });
3280
+ case 1:
3281
+ return S.suspend(() =>
3282
+ S.Struct({
3283
+ name: S.optional(S.String),
3284
+ default_value: S.optional(S.String),
3285
+ hot_configurable: S.optional(S.Boolean),
3286
+ description: S.optional(S.String),
3287
+ property_type: S.optional(S.String),
3288
+ unit: S.optional(S.NullOr(S.String)),
3289
+ string_constraint: S.optional(S.NullOr(S.String)),
3290
+ int_min: S.optional(S.NullOr(S.Number)),
3291
+ int_max: S.optional(S.NullOr(S.Number)),
3292
+ float_min: S.optional(S.NullOr(S.Number)),
3293
+ float_max: S.optional(S.NullOr(S.Number)),
3294
+ }),
3295
+ ).annotate({ identifier: "EngineSetting" });
3296
+ case 2:
3297
+ return S.Array(__S(641, __c40, 1));
3298
+ case 3:
3299
+ return S.suspend(() =>
3300
+ S.Struct({
3301
+ version: S.optional(S.String),
3302
+ name: S.optional(S.String),
3303
+ end_of_life: S.optional(S.NullOr(S.String)),
3304
+ available_settings: S.optional(__S(642, __c40, 2)),
3305
+ disabled: S.optional(S.Boolean),
3306
+ beta: S.optional(S.Boolean),
3307
+ available_init_settings: S.optional(__S(642, __c40, 2)),
3308
+ release_date: S.optional(S.NullOr(S.String)),
3309
+ }),
3310
+ ).annotate({ identifier: "EngineVersion" });
3311
+ case 4:
3312
+ return S.Array(__S(643, __c40, 3));
3313
+ case 5:
3314
+ return S.suspend(() =>
3315
+ S.Struct({
3316
+ name: S.optional(S.String),
3317
+ logo_url: S.optional(S.String),
3318
+ versions: S.optional(__S(644, __c40, 4)),
3319
+ region: S.optional(S.String),
3320
+ }),
3321
+ ).annotate({ identifier: "DatabaseEngine" });
3322
+ case 6:
3323
+ return S.Array(__S(645, __c40, 5));
3324
+ case 7:
3325
+ return S.suspend(() =>
3326
+ S.Struct({
3327
+ engines: __S(646, __c40, 6),
3328
+ total_count: S.optional(S.Number),
3329
+ }),
3330
+ ).annotate({ identifier: "ListDatabaseEnginesResponse" });
3331
+ }
3332
+ }
3333
+ function __c41(j: number): any {
3334
+ switch (j) {
3335
+ case 0:
3336
+ return S.suspend(() =>
3337
+ S.Struct({
3338
+ region: S.optional(S.String.pipe(T.Label())),
3339
+ instance_id: S.String.pipe(T.Label()),
3340
+ name: S.optional(S.String.pipe(T.Query())),
3341
+ managed: S.optional(S.Boolean.pipe(T.Query())),
3342
+ owner: S.optional(S.String.pipe(T.Query())),
3343
+ order_by: S.optional(S.String.pipe(T.Query())),
3344
+ skip_size_retrieval: S.optional(S.Boolean.pipe(T.Query())),
3345
+ page: S.optional(S.Number.pipe(T.Query())),
3346
+ page_size: S.optional(S.Number.pipe(T.Query())),
3347
+ }).pipe(
3348
+ T.Http({
3349
+ method: "GET",
3350
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/databases",
3351
+ code: 200,
3352
+ baseUrl: "https://api.scaleway.com",
3353
+ }),
3354
+ ),
3355
+ ).annotate({ identifier: "ListDatabasesRequest" });
3356
+ case 1:
3357
+ return S.Array(__S(816, __c51, 0));
3358
+ case 2:
3359
+ return S.suspend(() =>
3360
+ S.Struct({
3361
+ databases: __S(657, __c41, 1),
3362
+ total_count: S.optional(S.Number),
3363
+ }),
3364
+ ).annotate({ identifier: "ListDatabasesResponse" });
3365
+ }
3366
+ }
3367
+ function __c42(j: number): any {
3368
+ switch (j) {
3369
+ case 0:
3370
+ return S.suspend(() =>
3371
+ S.Struct({
3372
+ region: S.optional(S.String.pipe(T.Label())),
3373
+ instance_id: S.String.pipe(T.Label()),
3374
+ page: S.optional(S.Number.pipe(T.Query())),
3375
+ page_size: S.optional(S.Number.pipe(T.Query())),
3376
+ }).pipe(
3377
+ T.Http({
3378
+ method: "GET",
3379
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/acls",
3380
+ code: 200,
3381
+ baseUrl: "https://api.scaleway.com",
3382
+ }),
3383
+ ),
3384
+ ).annotate({ identifier: "ListInstanceACLRulesRequest" });
3385
+ case 1:
3386
+ return S.suspend(() =>
3387
+ S.Struct({
3388
+ rules: __S(17, __c1, 1),
3389
+ total_count: S.optional(S.Number),
3390
+ }),
3391
+ ).annotate({ identifier: "ListInstanceACLRulesResponse" });
3392
+ }
3393
+ }
3394
+ function __c43(j: number): any {
3395
+ switch (j) {
3396
+ case 0:
3397
+ return S.suspend(() =>
3398
+ S.Struct({
3399
+ region: S.optional(S.String.pipe(T.Label())),
3400
+ instance_id: S.String.pipe(T.Label()),
3401
+ order_by: S.optional(S.String.pipe(T.Query())),
3402
+ }).pipe(
3403
+ T.Http({
3404
+ method: "GET",
3405
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/logs",
3406
+ code: 200,
3407
+ baseUrl: "https://api.scaleway.com",
3408
+ }),
3409
+ ),
3410
+ ).annotate({ identifier: "ListInstanceLogsRequest" });
3411
+ }
3412
+ }
3413
+ function __c44(j: number): any {
3414
+ switch (j) {
3415
+ case 0:
3416
+ return S.Array(__S(496, __c31, 0));
3417
+ case 1:
3418
+ return S.suspend(() =>
3419
+ S.Struct({
3420
+ instance_logs: S.optional(__S(704, __c44, 0)),
3421
+ }),
3422
+ ).annotate({ identifier: "ListInstanceLogsResponse" });
3423
+ }
3424
+ }
3425
+ function __c45(j: number): any {
3426
+ switch (j) {
3427
+ case 0:
3428
+ return S.suspend(() =>
3429
+ S.Struct({
3430
+ region: S.optional(S.String.pipe(T.Label())),
3431
+ instance_id: S.String.pipe(T.Label()),
3432
+ }).pipe(
3433
+ T.Http({
3434
+ method: "GET",
3435
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/logs-details",
3436
+ code: 200,
3437
+ baseUrl: "https://api.scaleway.com",
3438
+ }),
3439
+ ),
3440
+ ).annotate({ identifier: "ListInstanceLogsDetailsRequest" });
3441
+ case 1:
3442
+ return S.suspend(() =>
3443
+ S.Struct({
3444
+ log_name: S.optional(S.String),
3445
+ size: S.optional(S.Number),
3446
+ }),
3447
+ ).annotate({ identifier: "ListInstanceLogsDetailsResponseInstanceLogDetail" });
3448
+ case 2:
3449
+ return S.Array(__S(721, __c45, 1));
3450
+ case 3:
3451
+ return S.suspend(() =>
3452
+ S.Struct({
3453
+ details: S.optional(__S(722, __c45, 2)),
3454
+ }),
3455
+ ).annotate({ identifier: "ListInstanceLogsDetailsResponse" });
3456
+ }
3457
+ }
3458
+ function __c46(j: number): any {
3459
+ switch (j) {
3460
+ case 0:
3461
+ return S.suspend(() =>
3462
+ S.Struct({
3463
+ region: S.optional(S.String.pipe(T.Label())),
3464
+ tags: S.optional(__S(560, __c35, 0).pipe(T.Query())),
3465
+ name: S.optional(S.String.pipe(T.Query())),
3466
+ order_by: S.optional(S.String.pipe(T.Query())),
3467
+ organization_id: S.optional(S.String.pipe(T.Query())),
3468
+ project_id: S.optional(S.String.pipe(T.Query())),
3469
+ has_maintenances: S.optional(S.Boolean.pipe(T.Query())),
3470
+ page: S.optional(S.Number.pipe(T.Query())),
3471
+ page_size: S.optional(S.Number.pipe(T.Query())),
3472
+ }).pipe(
3473
+ T.Http({
3474
+ method: "GET",
3475
+ uri: "/rdb/v1/regions/{region}/instances",
3476
+ code: 200,
3477
+ baseUrl: "https://api.scaleway.com",
3478
+ }),
3479
+ ),
3480
+ ).annotate({ identifier: "ListInstancesRequest" });
3481
+ case 1:
3482
+ return S.Array(__S(584, __c36, 8));
3483
+ case 2:
3484
+ return S.suspend(() =>
3485
+ S.Struct({
3486
+ instances: __S(737, __c46, 1),
3487
+ total_count: S.optional(S.Number),
3488
+ }),
3489
+ ).annotate({ identifier: "ListInstancesResponse" });
3490
+ }
3491
+ }
3492
+ function __c47(j: number): any {
3493
+ switch (j) {
3494
+ case 0:
3495
+ return S.suspend(() =>
3496
+ S.Struct({
3497
+ region: S.optional(S.String.pipe(T.Label())),
3498
+ include_disabled_types: S.Boolean.pipe(T.Query()),
3499
+ page: S.optional(S.Number.pipe(T.Query())),
3500
+ page_size: S.optional(S.Number.pipe(T.Query())),
3501
+ }).pipe(
3502
+ T.Http({
3503
+ method: "GET",
3504
+ uri: "/rdb/v1/regions/{region}/node-types",
3505
+ code: 200,
3506
+ baseUrl: "https://api.scaleway.com",
3507
+ }),
3508
+ ),
3509
+ ).annotate({ identifier: "ListNodeTypesRequest" });
3510
+ case 1:
3511
+ return S.suspend(() =>
3512
+ S.Struct({
3513
+ min_size: S.optional(S.Number),
3514
+ max_size: S.optional(S.Number),
3515
+ }),
3516
+ ).annotate({ identifier: "NodeTypeVolumeConstraintSizes" });
3517
+ case 2:
3518
+ return S.suspend(() =>
3519
+ S.Struct({
3520
+ type: S.optional(S.String),
3521
+ description: S.optional(S.String),
3522
+ min_size: S.optional(S.Number),
3523
+ max_size: S.optional(S.Number),
3524
+ chunk_size: S.optional(S.Number),
3525
+ class: S.optional(S.String),
3526
+ }),
3527
+ ).annotate({ identifier: "NodeTypeVolumeType" });
3528
+ case 3:
3529
+ return S.Array(__S(754, __c47, 2));
3530
+ case 4:
3531
+ return S.suspend(() =>
3532
+ S.Struct({
3533
+ name: S.optional(S.String),
3534
+ stock_status: S.optional(S.String),
3535
+ description: S.optional(S.String),
3536
+ vcpus: S.optional(S.Number),
3537
+ memory: S.optional(S.Number),
3538
+ volume_constraint: S.optional(__S(753, __c47, 1)),
3539
+ is_bssd_compatible: S.optional(S.Boolean),
3540
+ disabled: S.optional(S.Boolean),
3541
+ beta: S.optional(S.Boolean),
3542
+ available_volume_types: S.optional(__S(755, __c47, 3)),
3543
+ is_ha_required: S.optional(S.Boolean),
3544
+ generation: S.optional(S.String),
3545
+ instance_range: S.optional(S.String),
3546
+ region: S.optional(S.String),
3547
+ }),
3548
+ ).annotate({ identifier: "NodeType" });
3549
+ case 5:
3550
+ return S.Array(__S(756, __c47, 4));
3551
+ case 6:
3552
+ return S.suspend(() =>
3553
+ S.Struct({
3554
+ node_types: __S(757, __c47, 5),
3555
+ total_count: S.optional(S.Number),
3556
+ }),
3557
+ ).annotate({ identifier: "ListNodeTypesResponse" });
3558
+ }
3559
+ }
3560
+ function __c48(j: number): any {
3561
+ switch (j) {
3562
+ case 0:
3563
+ return S.suspend(() =>
3564
+ S.Struct({
3565
+ region: S.optional(S.String.pipe(T.Label())),
3566
+ instance_id: S.String.pipe(T.Label()),
3567
+ order_by: S.optional(S.String.pipe(T.Query())),
3568
+ page: S.optional(S.Number.pipe(T.Query())),
3569
+ page_size: S.optional(S.Number.pipe(T.Query())),
3570
+ database_name: S.optional(S.String.pipe(T.Query())),
3571
+ user_name: S.optional(S.String.pipe(T.Query())),
3572
+ }).pipe(
3573
+ T.Http({
3574
+ method: "GET",
3575
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/privileges",
3576
+ code: 200,
3577
+ baseUrl: "https://api.scaleway.com",
3578
+ }),
3579
+ ),
3580
+ ).annotate({ identifier: "ListPrivilegesRequest" });
3581
+ case 1:
3582
+ return S.Array(__S(784, __c49, 0));
3583
+ case 2:
3584
+ return S.suspend(() =>
3585
+ S.Struct({
3586
+ privileges: __S(769, __c48, 1),
3587
+ total_count: S.optional(S.Number),
3588
+ }),
3589
+ ).annotate({ identifier: "ListPrivilegesResponse" });
3590
+ }
3591
+ }
3592
+ function __c49(j: number): any {
3593
+ switch (j) {
3594
+ case 0:
3595
+ return S.suspend(() =>
3596
+ S.Struct({
3597
+ permission: S.optional(S.String),
3598
+ database_name: S.optional(S.String),
3599
+ user_name: S.optional(S.String),
3600
+ }),
3601
+ ).annotate({ identifier: "Privilege" });
3602
+ }
3603
+ }
3604
+ function __c50(j: number): any {
3605
+ switch (j) {
3606
+ case 0:
3607
+ return S.suspend(() =>
3608
+ S.Struct({
3609
+ region: S.optional(S.String.pipe(T.Label())),
3610
+ instance_id: S.String.pipe(T.Label()),
3611
+ name: S.optional(S.String),
3612
+ }).pipe(
3613
+ T.Http({
3614
+ method: "POST",
3615
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/databases",
3616
+ code: 200,
3617
+ baseUrl: "https://api.scaleway.com",
3618
+ }),
3619
+ ),
3620
+ ).annotate({ identifier: "CreateDatabaseRequest" });
3621
+ }
3622
+ }
3623
+ function __c51(j: number): any {
3624
+ switch (j) {
3625
+ case 0:
3626
+ return S.suspend(() =>
3627
+ S.Struct({
3628
+ name: S.optional(S.String),
3629
+ owner: S.optional(S.String),
3630
+ managed: S.optional(S.Boolean),
3631
+ size: S.optional(S.Number),
3632
+ }),
3633
+ ).annotate({ identifier: "Database" });
3634
+ }
3635
+ }
3636
+ function __c52(j: number): any {
3637
+ switch (j) {
3638
+ case 0:
3639
+ return S.suspend(() =>
3640
+ S.Struct({
3641
+ region: S.optional(S.String.pipe(T.Label())),
3642
+ name: S.optional(S.String.pipe(T.Query())),
3643
+ order_by: S.optional(S.String.pipe(T.Query())),
3644
+ instance_id: S.optional(S.String.pipe(T.Query())),
3645
+ organization_id: S.optional(S.String.pipe(T.Query())),
3646
+ project_id: S.optional(S.String.pipe(T.Query())),
3647
+ page: S.optional(S.Number.pipe(T.Query())),
3648
+ page_size: S.optional(S.Number.pipe(T.Query())),
3649
+ }).pipe(
3650
+ T.Http({
3651
+ method: "GET",
3652
+ uri: "/rdb/v1/regions/{region}/snapshots",
3653
+ code: 200,
3654
+ baseUrl: "https://api.scaleway.com",
3655
+ }),
3656
+ ),
3657
+ ).annotate({ identifier: "ListSnapshotsRequest" });
3658
+ case 1:
3659
+ return S.Array(__S(145, __c9, 1));
3660
+ case 2:
3661
+ return S.suspend(() =>
3662
+ S.Struct({
3663
+ snapshots: __S(833, __c52, 1),
3664
+ total_count: S.optional(S.Number),
3665
+ }),
3666
+ ).annotate({ identifier: "ListSnapshotsResponse" });
3667
+ }
3668
+ }
3669
+ function __c53(j: number): any {
3670
+ switch (j) {
3671
+ case 0:
3672
+ return S.suspend(() =>
3673
+ S.Struct({
3674
+ region: S.optional(S.String.pipe(T.Label())),
3675
+ instance_id: S.String.pipe(T.Label()),
3676
+ name: S.optional(S.String.pipe(T.Query())),
3677
+ order_by: S.optional(S.String.pipe(T.Query())),
3678
+ page: S.optional(S.Number.pipe(T.Query())),
3679
+ page_size: S.optional(S.Number.pipe(T.Query())),
3680
+ }).pipe(
3681
+ T.Http({
3682
+ method: "GET",
3683
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/users",
3684
+ code: 200,
3685
+ baseUrl: "https://api.scaleway.com",
3686
+ }),
3687
+ ),
3688
+ ).annotate({ identifier: "ListUsersRequest" });
3689
+ case 1:
3690
+ return S.Array(__S(176, __c11, 0));
3691
+ case 2:
3692
+ return S.suspend(() =>
3693
+ S.Struct({
3694
+ users: __S(849, __c53, 1),
3695
+ total_count: S.optional(S.Number),
3696
+ }),
3697
+ ).annotate({ identifier: "ListUsersResponse" });
3698
+ }
3699
+ }
3700
+ function __c54(j: number): any {
3701
+ switch (j) {
3702
+ case 0:
3703
+ return S.suspend(() =>
3704
+ S.Struct({
3705
+ region: S.optional(S.String.pipe(T.Label())),
3706
+ endpoint_id: S.String.pipe(T.Label()),
3707
+ instance_id: S.String,
3708
+ }).pipe(
3709
+ T.Http({
3710
+ method: "POST",
3711
+ uri: "/rdb/v1/regions/{region}/endpoints/{endpoint_id}/migrate",
3712
+ code: 200,
3713
+ baseUrl: "https://api.scaleway.com",
3714
+ }),
3715
+ ),
3716
+ ).annotate({ identifier: "MigrateEndpointRequest" });
3717
+ }
3718
+ }
3719
+ function __c55(j: number): any {
3720
+ switch (j) {
3721
+ case 0:
3722
+ return S.suspend(() =>
3723
+ S.Struct({
3724
+ region: S.optional(S.String.pipe(T.Label())),
3725
+ instance_id: S.String.pipe(T.Label()),
3726
+ start_date: S.optional(S.NullOr(S.String)),
3727
+ end_date: S.optional(S.NullOr(S.String)),
3728
+ }).pipe(
3729
+ T.Http({
3730
+ method: "POST",
3731
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/prepare-logs",
3732
+ code: 200,
3733
+ baseUrl: "https://api.scaleway.com",
3734
+ }),
3735
+ ),
3736
+ ).annotate({ identifier: "PrepareInstanceLogsRequest" });
3737
+ }
3738
+ }
3739
+ function __c56(j: number): any {
3740
+ switch (j) {
3741
+ case 0:
3742
+ return S.suspend(() =>
3743
+ S.Struct({
3744
+ region: S.optional(S.String.pipe(T.Label())),
3745
+ read_replica_id: S.String.pipe(T.Label()),
3746
+ }).pipe(
3747
+ T.Http({
3748
+ method: "POST",
3749
+ uri: "/rdb/v1/regions/{region}/read-replicas/{read_replica_id}/promote",
3750
+ code: 200,
3751
+ baseUrl: "https://api.scaleway.com",
3752
+ }),
3753
+ ),
3754
+ ).annotate({ identifier: "PromoteReadReplicaRequest" });
3755
+ }
3756
+ }
3757
+ function __c57(j: number): any {
3758
+ switch (j) {
3759
+ case 0:
3760
+ return S.suspend(() =>
3761
+ S.Struct({
3762
+ region: S.optional(S.String.pipe(T.Label())),
3763
+ instance_id: S.String.pipe(T.Label()),
3764
+ log_name: S.optional(S.NullOr(S.String)),
3765
+ }).pipe(
3766
+ T.Http({
3767
+ method: "POST",
3768
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/purge-logs",
3769
+ code: 200,
3770
+ baseUrl: "https://api.scaleway.com",
3771
+ }),
3772
+ ),
3773
+ ).annotate({ identifier: "PurgeInstanceLogsRequest" });
3774
+ }
3775
+ }
3776
+ function __c58(j: number): any {
3777
+ switch (j) {
3778
+ case 0:
3779
+ return S.suspend(() =>
3780
+ S.Struct({
3781
+ region: S.optional(S.String.pipe(T.Label())),
3782
+ instance_id: S.String.pipe(T.Label()),
3783
+ }).pipe(
3784
+ T.Http({
3785
+ method: "POST",
3786
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/renew-certificate",
3787
+ code: 200,
3788
+ baseUrl: "https://api.scaleway.com",
3789
+ }),
3790
+ ),
3791
+ ).annotate({ identifier: "RenewInstanceCertificateRequest" });
3792
+ }
3793
+ }
3794
+ function __c59(j: number): any {
3795
+ switch (j) {
3796
+ case 0:
3797
+ return S.suspend(() =>
3798
+ S.Struct({
3799
+ region: S.optional(S.String.pipe(T.Label())),
3800
+ read_replica_id: S.String.pipe(T.Label()),
3801
+ }).pipe(
3802
+ T.Http({
3803
+ method: "POST",
3804
+ uri: "/rdb/v1/regions/{region}/read-replicas/{read_replica_id}/reset",
3805
+ code: 200,
3806
+ baseUrl: "https://api.scaleway.com",
3807
+ }),
3808
+ ),
3809
+ ).annotate({ identifier: "ResetReadReplicaRequest" });
3810
+ }
3811
+ }
3812
+ function __c60(j: number): any {
3813
+ switch (j) {
3814
+ case 0:
3815
+ return S.suspend(() =>
3816
+ S.Struct({
3817
+ region: S.optional(S.String.pipe(T.Label())),
3818
+ instance_id: S.String.pipe(T.Label()),
3819
+ }).pipe(
3820
+ T.Http({
3821
+ method: "POST",
3822
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/restart",
3823
+ code: 200,
3824
+ baseUrl: "https://api.scaleway.com",
3825
+ }),
3826
+ ),
3827
+ ).annotate({ identifier: "RestartInstanceRequest" });
3828
+ }
3829
+ }
3830
+ function __c61(j: number): any {
3831
+ switch (j) {
3832
+ case 0:
3833
+ return S.suspend(() =>
3834
+ S.Struct({
3835
+ region: S.optional(S.String.pipe(T.Label())),
3836
+ database_backup_id: S.String.pipe(T.Label()),
3837
+ database_name: S.optional(S.NullOr(S.String)),
3838
+ instance_id: S.String,
3839
+ }).pipe(
3840
+ T.Http({
3841
+ method: "POST",
3842
+ uri: "/rdb/v1/regions/{region}/backups/{database_backup_id}/restore",
3843
+ code: 200,
3844
+ baseUrl: "https://api.scaleway.com",
3845
+ }),
3846
+ ),
3847
+ ).annotate({ identifier: "RestoreDatabaseBackupRequest" });
3848
+ }
3849
+ }
3850
+ function __c62(j: number): any {
3851
+ switch (j) {
3852
+ case 0:
3853
+ return S.suspend(() =>
3854
+ S.Struct({
3855
+ region: S.optional(S.String.pipe(T.Label())),
3856
+ instance_id: S.String,
3857
+ database_name: S.String,
3858
+ name: S.optional(S.String),
3859
+ expires_at: S.optional(S.NullOr(S.String)),
3860
+ }).pipe(
3861
+ T.Http({
3862
+ method: "POST",
3863
+ uri: "/rdb/v1/regions/{region}/backups",
3864
+ code: 200,
3865
+ baseUrl: "https://api.scaleway.com",
3866
+ }),
3867
+ ),
3868
+ ).annotate({ identifier: "CreateDatabaseBackupRequest" });
3869
+ }
3870
+ }
3871
+ function __c63(j: number): any {
3872
+ switch (j) {
3873
+ case 0:
3874
+ return S.suspend(() =>
3875
+ S.Struct({
3876
+ id: S.optional(S.String),
3877
+ instance_id: S.optional(S.String),
3878
+ database_name: S.optional(S.String),
3879
+ name: S.optional(S.String),
3880
+ status: S.optional(S.String),
3881
+ size: S.optional(S.NullOr(S.Number)),
3882
+ expires_at: S.optional(S.NullOr(S.String)),
3883
+ created_at: S.optional(S.NullOr(S.String)),
3884
+ updated_at: S.optional(S.NullOr(S.String)),
3885
+ instance_name: S.optional(S.String),
3886
+ download_url: S.optional(S.NullOr(S.String)),
3887
+ download_url_expires_at: S.optional(S.NullOr(S.String)),
3888
+ region: S.optional(S.String),
3889
+ same_region: S.optional(S.Boolean),
3890
+ }),
3891
+ ).annotate({ identifier: "DatabaseBackup" });
3892
+ }
3893
+ }
3894
+ function __c64(j: number): any {
3895
+ switch (j) {
3896
+ case 0:
3897
+ return S.suspend(() =>
3898
+ S.Struct({
3899
+ region: S.optional(S.String.pipe(T.Label())),
3900
+ instance_id: S.String.pipe(T.Label()),
3901
+ rules: __S(49, __c3, 1),
3902
+ }).pipe(
3903
+ T.Http({
3904
+ method: "PUT",
3905
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/acls",
3906
+ code: 200,
3907
+ baseUrl: "https://api.scaleway.com",
3908
+ }),
3909
+ ),
3910
+ ).annotate({ identifier: "SetInstanceACLRulesRequest" });
3911
+ }
3912
+ }
3913
+ function __c65(j: number): any {
3914
+ switch (j) {
3915
+ case 0:
3916
+ return S.suspend(() =>
3917
+ S.Struct({
3918
+ region: S.optional(S.String.pipe(T.Label())),
3919
+ instance_id: S.String.pipe(T.Label()),
3920
+ settings: __S(97, __c6, 1),
3921
+ }).pipe(
3922
+ T.Http({
3923
+ method: "PUT",
3924
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/settings",
3925
+ code: 200,
3926
+ baseUrl: "https://api.scaleway.com",
3927
+ }),
3928
+ ),
3929
+ ).annotate({ identifier: "SetInstanceSettingsRequest" });
3930
+ }
3931
+ }
3932
+ function __c66(j: number): any {
3933
+ switch (j) {
3934
+ case 0:
3935
+ return S.suspend(() =>
3936
+ S.Struct({
3937
+ region: S.optional(S.String.pipe(T.Label())),
3938
+ instance_id: S.String.pipe(T.Label()),
3939
+ database_name: S.optional(S.String),
3940
+ user_name: S.optional(S.String),
3941
+ permission: S.optional(S.String),
3942
+ }).pipe(
3943
+ T.Http({
3944
+ method: "PUT",
3945
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/privileges",
3946
+ code: 200,
3947
+ baseUrl: "https://api.scaleway.com",
3948
+ }),
3949
+ ),
3950
+ ).annotate({ identifier: "SetPrivilegeRequest" });
3951
+ }
3952
+ }
3953
+ function __c67(j: number): any {
3954
+ switch (j) {
3955
+ case 0:
3956
+ return S.suspend(() =>
3957
+ S.Struct({
3958
+ region: S.optional(S.String.pipe(T.Label())),
3959
+ database_backup_id: S.String.pipe(T.Label()),
3960
+ name: S.optional(S.NullOr(S.String)),
3961
+ expires_at: S.optional(S.NullOr(S.String)),
3962
+ }).pipe(
3963
+ T.Http({
3964
+ method: "PATCH",
3965
+ uri: "/rdb/v1/regions/{region}/backups/{database_backup_id}",
3966
+ code: 200,
3967
+ baseUrl: "https://api.scaleway.com",
3968
+ }),
3969
+ ),
3970
+ ).annotate({ identifier: "UpdateDatabaseBackupRequest" });
3971
+ }
3972
+ }
3973
+ function __c68(j: number): any {
3974
+ switch (j) {
3975
+ case 0:
3976
+ return S.Array(S.Unknown);
3977
+ case 1:
3978
+ return S.suspend(() =>
3979
+ S.Struct({
3980
+ region: S.optional(S.String.pipe(T.Label())),
3981
+ instance_id: S.String.pipe(T.Label()),
3982
+ backup_schedule_frequency: S.optional(S.NullOr(S.Number)),
3983
+ backup_schedule_retention: S.optional(S.NullOr(S.Number)),
3984
+ is_backup_schedule_disabled: S.optional(S.NullOr(S.Boolean)),
3985
+ name: S.optional(S.NullOr(S.String)),
3986
+ tags: S.optional(S.NullOr(__S(1088, __c68, 0))),
3987
+ logs_policy: S.optional(__S(581, __c36, 5)),
3988
+ backup_same_region: S.optional(S.NullOr(S.Boolean)),
3989
+ backup_schedule_start_hour: S.optional(S.NullOr(S.Number)),
3990
+ }).pipe(
3991
+ T.Http({
3992
+ method: "PATCH",
3993
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}",
3994
+ code: 200,
3995
+ baseUrl: "https://api.scaleway.com",
3996
+ }),
3997
+ ),
3998
+ ).annotate({ identifier: "UpdateInstanceRequest" });
3999
+ }
4000
+ }
4001
+ function __c69(j: number): any {
4002
+ switch (j) {
4003
+ case 0:
4004
+ return S.suspend(() =>
4005
+ S.Struct({
4006
+ region: S.optional(S.String.pipe(T.Label())),
4007
+ snapshot_id: S.String.pipe(T.Label()),
4008
+ name: S.optional(S.NullOr(S.String)),
4009
+ expires_at: S.optional(S.NullOr(S.String)),
4010
+ }).pipe(
4011
+ T.Http({
4012
+ method: "PATCH",
4013
+ uri: "/rdb/v1/regions/{region}/snapshots/{snapshot_id}",
4014
+ code: 200,
4015
+ baseUrl: "https://api.scaleway.com",
4016
+ }),
4017
+ ),
4018
+ ).annotate({ identifier: "UpdateSnapshotRequest" });
4019
+ }
4020
+ }
4021
+ function __c70(j: number): any {
4022
+ switch (j) {
4023
+ case 0:
4024
+ return S.suspend(() =>
4025
+ S.Struct({
4026
+ region: S.optional(S.String.pipe(T.Label())),
4027
+ instance_id: S.String.pipe(T.Label()),
4028
+ name: S.String.pipe(T.Label()),
4029
+ password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
4030
+ is_admin: S.optional(S.NullOr(S.Boolean)),
4031
+ }).pipe(
4032
+ T.Http({
4033
+ method: "PATCH",
4034
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/users/{name}",
4035
+ code: 200,
4036
+ baseUrl: "https://api.scaleway.com",
4037
+ }),
4038
+ ),
4039
+ ).annotate({ identifier: "UpdateUserRequest" });
4040
+ }
4041
+ }
4042
+ function __c71(j: number): any {
4043
+ switch (j) {
4044
+ case 0:
4045
+ return S.suspend(() =>
4046
+ S.Struct({
4047
+ upgradable_version_id: S.optional(S.String),
4048
+ with_endpoints: S.optional(S.Boolean),
4049
+ }),
4050
+ ).annotate({ identifier: "UpgradeInstanceRequestMajorUpgradeWorkflow" });
4051
+ case 1:
4052
+ return S.suspend(() =>
4053
+ S.Struct({
4054
+ region: S.optional(S.String.pipe(T.Label())),
4055
+ instance_id: S.String.pipe(T.Label()),
4056
+ node_type: S.optional(S.NullOr(S.String)),
4057
+ enable_ha: S.optional(S.NullOr(S.Boolean)),
4058
+ high_availability_mode: S.optional(S.NullOr(S.String)),
4059
+ volume_size: S.optional(S.NullOr(S.Number)),
4060
+ volume_type: S.optional(S.NullOr(S.String)),
4061
+ upgradable_version_id: S.optional(S.NullOr(S.String)),
4062
+ major_upgrade_workflow: S.optional(S.NullOr(__S(1136, __c71, 0))),
4063
+ enable_encryption: S.optional(S.NullOr(S.Boolean)),
4064
+ }).pipe(
4065
+ T.Http({
4066
+ method: "POST",
4067
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/upgrade",
4068
+ code: 200,
4069
+ baseUrl: "https://api.scaleway.com",
4070
+ }),
4071
+ ),
4072
+ ).annotate({ identifier: "UpgradeInstanceRequest" });
4073
+ }
4074
+ }
4075
+ function __c72(j: number): any {
4076
+ switch (j) {
4077
+ case 0:
4078
+ return S.suspend(() =>
4079
+ S.Struct({
4080
+ region: S.optional(S.String.pipe(T.Label())),
4081
+ instance_id: S.String.pipe(T.Label()),
4082
+ endpoint_spec: S.optional(__S(1168, __c73, 0)),
4083
+ }).pipe(
4084
+ T.Http({
4085
+ method: "POST",
4086
+ uri: "/rdb/v1/regions/{region}/instances/{instance_id}/endpoints",
4087
+ code: 200,
4088
+ baseUrl: "https://api.scaleway.com",
4089
+ }),
4090
+ ),
4091
+ ).annotate({ identifier: "CreateEndpointRequest" });
4092
+ }
4093
+ }
4094
+ function __c73(j: number): any {
4095
+ switch (j) {
4096
+ case 0:
4097
+ return S.suspend(() =>
4098
+ S.Struct({
4099
+ load_balancer: S.optional(S.NullOr(S.Unknown)),
4100
+ private_network: S.optional(S.NullOr(__S(1184, __c74, 0))),
4101
+ }),
4102
+ ).annotate({ identifier: "EndpointSpec" });
4103
+ }
4104
+ }
4105
+ function __c74(j: number): any {
4106
+ switch (j) {
4107
+ case 0:
4108
+ return S.suspend(() =>
4109
+ S.Struct({
4110
+ private_network_id: S.optional(S.String),
4111
+ service_ip: S.optional(S.NullOr(S.String)),
4112
+ ipam_config: S.optional(S.NullOr(S.Unknown)),
4113
+ }),
4114
+ ).annotate({ identifier: "EndpointSpecPrivateNetwork" });
4115
+ }
4116
+ }
4117
+ function __c75(j: number): any {
4118
+ switch (j) {
4119
+ case 0:
4120
+ return S.Array(__S(1168, __c73, 0));
4121
+ case 1:
4122
+ return S.suspend(() =>
4123
+ S.Struct({
4124
+ region: S.optional(S.String.pipe(T.Label())),
4125
+ organization_id: S.optional(S.NullOr(S.String)),
4126
+ project_id: S.optional(S.NullOr(S.String)),
4127
+ name: S.optional(S.String),
4128
+ engine: S.String,
4129
+ user_name: S.String,
4130
+ password: S.String.pipe(T.SensitiveValue({})),
4131
+ node_type: S.String,
4132
+ is_ha_cluster: S.optional(S.Boolean),
4133
+ high_availability_mode: S.optional(S.String),
4134
+ disable_backup: S.optional(S.Boolean),
4135
+ tags: S.optional(__S(560, __c35, 0)),
4136
+ init_settings: S.optional(__S(97, __c6, 1)),
4137
+ volume_type: S.optional(S.String),
4138
+ volume_size: S.optional(S.Number),
4139
+ init_endpoints: S.optional(__S(1200, __c75, 0)),
4140
+ backup_same_region: S.optional(S.Boolean),
4141
+ encryption: S.optional(__S(583, __c36, 7)),
4142
+ }).pipe(
4143
+ T.Http({
4144
+ method: "POST",
4145
+ uri: "/rdb/v1/regions/{region}/instances",
4146
+ code: 200,
4147
+ baseUrl: "https://api.scaleway.com",
4148
+ }),
4149
+ ),
4150
+ ).annotate({ identifier: "CreateInstanceRequest" });
4151
+ }
4152
+ }
4153
+ function __c76(j: number): any {
4154
+ switch (j) {
4155
+ case 0:
4156
+ return S.suspend(() =>
4157
+ S.Struct({
4158
+ region: S.optional(S.String.pipe(T.Label())),
4159
+ snapshot_id: S.String.pipe(T.Label()),
4160
+ instance_name: S.optional(S.String),
4161
+ is_ha_cluster: S.optional(S.NullOr(S.Boolean)),
4162
+ high_availability_mode: S.optional(S.String),
4163
+ node_type: S.optional(S.NullOr(S.String)),
4164
+ }).pipe(
4165
+ T.Http({
4166
+ method: "POST",
4167
+ uri: "/rdb/v1/regions/{region}/snapshots/{snapshot_id}/create-instance",
4168
+ code: 200,
4169
+ baseUrl: "https://api.scaleway.com",
4170
+ }),
4171
+ ),
4172
+ ).annotate({ identifier: "CreateInstanceFromSnapshotRequest" });
4173
+ }
4174
+ }
4175
+ function __c77(j: number): any {
4176
+ switch (j) {
4177
+ case 0:
4178
+ return S.suspend(() =>
4179
+ S.Struct({
4180
+ region: S.optional(S.String.pipe(T.Label())),
4181
+ instance_id: S.String,
4182
+ endpoint_spec: S.optional(__S(1249, __c78, 1)),
4183
+ same_zone: S.optional(S.NullOr(S.Boolean)),
4184
+ }).pipe(
4185
+ T.Http({
4186
+ method: "POST",
4187
+ uri: "/rdb/v1/regions/{region}/read-replicas",
4188
+ code: 200,
4189
+ baseUrl: "https://api.scaleway.com",
4190
+ }),
4191
+ ),
4192
+ ).annotate({ identifier: "CreateReadReplicaRequest" });
4193
+ }
4194
+ }
4195
+ function __c78(j: number): any {
4196
+ switch (j) {
4197
+ case 0:
4198
+ return S.suspend(() =>
4199
+ S.Struct({
4200
+ direct_access: S.optional(S.NullOr(S.Unknown)),
4201
+ private_network: S.optional(S.NullOr(__S(1184, __c74, 0))),
4202
+ }),
4203
+ ).annotate({ identifier: "ReadReplicaEndpointSpec" });
4204
+ case 1:
4205
+ return S.Array(__S(1248, __c78, 0));
4206
+ }
4207
+ }
4208
+ // Schema table: entry i is schema j of builder f, made on first reach.
4209
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
4210
+ return (__s[i] ??= __L.at(f, j));
4211
+ }