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

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 +640 -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 +1755 -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 +479 -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 +947 -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 +2137 -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 +5395 -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 +1113 -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,4533 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
+ import { ScalewayServiceErrors } from "../errors.ts";
6
+ import { paginateByTotalCount } from "../pagination.ts";
7
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
8
+ import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
12
+
13
+ export type { ScalewayOpError, ScalewayOpContext };
14
+
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "scaleway-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Scaleway",
23
+ service: "LbZonedV1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type AddBackendServersRequestZone =
29
+ | "fr-par-1"
30
+ | "fr-par-2"
31
+ | "nl-ams-1"
32
+ | "nl-ams-2"
33
+ | "nl-ams-3"
34
+ | "pl-waw-1"
35
+ | "pl-waw-2"
36
+ | "pl-waw-3";
37
+ /** List of IP addresses to add to backend servers. */
38
+ export type AddBackendServersRequestServerIpList = Array<string>;
39
+ export interface AddBackendServersRequest {
40
+ /** The zone you want to target */
41
+ zone?: AddBackendServersRequestZone | (string & {}) | undefined;
42
+ /** Backend ID. */
43
+ backend_id: string;
44
+ /** List of IP addresses to add to backend servers. */
45
+ server_ip: AddBackendServersRequestServerIpList;
46
+ }
47
+ export type Protocol = "tcp" | "http";
48
+ export type ForwardPortAlgorithm = "roundrobin" | "leastconn" | "first";
49
+ export type StickySessionsType = "none" | "cookie" | "table";
50
+ export interface HealthCheckMysqlConfig {
51
+ /** MySQL user to use for the health check. */
52
+ user?: string | undefined;
53
+ }
54
+ export interface HealthCheckPgsqlConfig {
55
+ /** PostgreSQL user to use for the health check. */
56
+ user?: string | undefined;
57
+ }
58
+ export interface HealthCheckHttpConfig {
59
+ /** HTTP path used for the health check. The HTTP path to use when performing a health check on backend servers. */
60
+ uri?: string | undefined;
61
+ /** HTTP method used for the health check. The HTTP method used when performing a health check on backend servers. */
62
+ method?: string | undefined;
63
+ /** HTTP response code expected for a successful health check. The HTTP response code that should be returned for a health check to be considered successful. */
64
+ code?: number | null | undefined;
65
+ /** HTTP host header used for the health check. The HTTP host header used when performing a health check on backend servers. */
66
+ host_header?: string | undefined;
67
+ }
68
+ export interface HealthCheckHttpsConfig {
69
+ /** HTTP path used for the health check. The HTTP path to use when performing a health check on backend servers. */
70
+ uri?: string | undefined;
71
+ /** HTTP method used for the health check. The HTTP method used when performing a health check on backend servers. */
72
+ method?: string | undefined;
73
+ /** HTTP response code expected for a successful health check. The HTTP response code that should be returned for a health check to be considered successful. */
74
+ code?: number | null | undefined;
75
+ /** HTTP host header used for the health check. The HTTP host header used when performing a health check on backend servers. */
76
+ host_header?: string | undefined;
77
+ /** SNI used for SSL health checks. The SNI value used when performing a health check on backend servers over SSL. */
78
+ sni?: string | undefined;
79
+ }
80
+ export interface HealthCheck {
81
+ /** Port to use for the backend server health check. */
82
+ port?: number | undefined;
83
+ /** Time to wait between two consecutive health checks. (in milliseconds) */
84
+ check_delay?: number | undefined;
85
+ /** Maximum time a backend server has to reply to the health check. (in milliseconds) */
86
+ check_timeout?: number | undefined;
87
+ /** Number of consecutive unsuccessful health checks after which the server will be considered dead. */
88
+ check_max_retries?: number | undefined;
89
+ /** Object to configure a basic TCP health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
90
+ tcp_config?: unknown | null | undefined;
91
+ /** Object to configure a MySQL health check. The check requires MySQL >=3.22 or <9.0. For older or newer versions, use a TCP health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
92
+ mysql_config?: HealthCheckMysqlConfig | null | undefined;
93
+ /** Object to configure a PostgreSQL health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
94
+ pgsql_config?: HealthCheckPgsqlConfig | null | undefined;
95
+ /** Object to configure an LDAP health check. The response is analyzed to find the LDAPv3 response message. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
96
+ ldap_config?: unknown | null | undefined;
97
+ /** Object to configure a Redis health check. The response is analyzed to find the +PONG response message. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
98
+ redis_config?: unknown | null | undefined;
99
+ /** Object to configure an HTTP health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
100
+ http_config?: HealthCheckHttpConfig | null | undefined;
101
+ /** Object to configure an HTTPS health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
102
+ https_config?: HealthCheckHttpsConfig | null | undefined;
103
+ /** Defines whether proxy protocol should be activated for the health check. */
104
+ check_send_proxy?: boolean | undefined;
105
+ /** Time to wait between two consecutive health checks when a backend server is in a transient state (going UP or DOWN). (in seconds) */
106
+ transient_check_delay?: string | null | undefined;
107
+ }
108
+ /** List of IP addresses of backend servers attached to this backend. */
109
+ export type BackendPoolList = Array<string>;
110
+ export type LbStatus =
111
+ | "unknown"
112
+ | "ready"
113
+ | "pending"
114
+ | "stopped"
115
+ | "error"
116
+ | "locked"
117
+ | "migrating"
118
+ | "to_create"
119
+ | "creating"
120
+ | "to_delete"
121
+ | "deleting";
122
+ export type InstanceStatus =
123
+ | "unknown"
124
+ | "ready"
125
+ | "pending"
126
+ | "stopped"
127
+ | "error"
128
+ | "locked"
129
+ | "migrating";
130
+ export interface Instance {
131
+ /** Underlying Instance ID. */
132
+ id?: string | undefined;
133
+ /** Instance status. */
134
+ status?: InstanceStatus | undefined;
135
+ /** Instance IP address. */
136
+ ip_address?: string | undefined;
137
+ /** Date on which the Instance was created. (RFC 3339 format) */
138
+ created_at?: string | null | undefined;
139
+ /** Date on which the Instance was last updated. (RFC 3339 format) */
140
+ updated_at?: string | null | undefined;
141
+ /** The region the Instance is in. */
142
+ region?: string | undefined;
143
+ /** The zone the Instance is in. */
144
+ zone?: string | undefined;
145
+ }
146
+ /** List of underlying Instances. */
147
+ export type LbInstancesList = Array<Instance>;
148
+ /** IP tags. */
149
+ export type IpTagsList = Array<string>;
150
+ export interface Ip {
151
+ /** IP address ID. */
152
+ id?: string | undefined;
153
+ /** IP address. */
154
+ ip_address?: string | undefined;
155
+ /** Organization ID of the Scaleway Organization the IP address is in. */
156
+ organization_id?: string | undefined;
157
+ /** Project ID of the Scaleway Project the IP address is in. */
158
+ project_id?: string | undefined;
159
+ /** Load Balancer ID. */
160
+ lb_id?: string | null | undefined;
161
+ /** Reverse DNS (domain name) of the IP address. */
162
+ reverse?: string | undefined;
163
+ /** IP tags. */
164
+ tags?: IpTagsList | undefined;
165
+ /** The region the IP address is in. */
166
+ region?: string | undefined;
167
+ /** The zone the IP address is in. */
168
+ zone?: string | undefined;
169
+ /** The SRN of the IP address. */
170
+ srn?: string | undefined;
171
+ }
172
+ /** List of IP addresses attached to the Load Balancer. */
173
+ export type LbIpList = Array<Ip>;
174
+ /** Load Balancer tags. */
175
+ export type LbTagsList = Array<string>;
176
+ export interface SubscriberEmailConfig {
177
+ /** Email address to send alerts to. */
178
+ email?: string | undefined;
179
+ }
180
+ export interface SubscriberWebhookConfig {
181
+ /** URI to receive POST requests. */
182
+ uri?: string | undefined;
183
+ }
184
+ export interface Subscriber {
185
+ /** Subscriber ID. */
186
+ id?: string | undefined;
187
+ /** Subscriber name. */
188
+ name?: string | undefined;
189
+ /** Email address of subscriber. Precisely one of email_config, webhook_config can be set. */
190
+ email_config?: SubscriberEmailConfig | null | undefined;
191
+ /** Webhook URI of subscriber. Precisely one of email_config, webhook_config can be set. */
192
+ webhook_config?: SubscriberWebhookConfig | null | undefined;
193
+ /** The zone the subscriber is in. */
194
+ zone?: string | undefined;
195
+ /** The SRN of the subscriber. */
196
+ srn?: string | undefined;
197
+ }
198
+ export type SSLCompatibilityLevel =
199
+ | "ssl_compatibility_level_unknown"
200
+ | "ssl_compatibility_level_intermediate"
201
+ | "ssl_compatibility_level_modern"
202
+ | "ssl_compatibility_level_old";
203
+ export interface Lb {
204
+ /** Underlying Instance ID. */
205
+ id?: string | undefined;
206
+ /** Load Balancer name. */
207
+ name?: string | undefined;
208
+ /** Load Balancer description. */
209
+ description?: string | undefined;
210
+ /** Load Balancer status. */
211
+ status?: LbStatus | undefined;
212
+ /** List of underlying Instances. */
213
+ instances?: LbInstancesList | undefined;
214
+ /** Scaleway Organization ID. */
215
+ organization_id?: string | undefined;
216
+ /** Scaleway Project ID. */
217
+ project_id?: string | undefined;
218
+ /** List of IP addresses attached to the Load Balancer. */
219
+ ip?: LbIpList | undefined;
220
+ /** Load Balancer tags. */
221
+ tags?: LbTagsList | undefined;
222
+ /** Number of frontends the Load Balancer has. */
223
+ frontend_count?: number | undefined;
224
+ /** Number of backends the Load Balancer has. */
225
+ backend_count?: number | undefined;
226
+ /** Load Balancer offer type. */
227
+ type?: string | undefined;
228
+ /** Subscriber information. */
229
+ subscriber?: Subscriber | undefined;
230
+ /** Determines the minimal SSL version which needs to be supported on client side. */
231
+ ssl_compatibility_level?: SSLCompatibilityLevel | undefined;
232
+ /** Date on which the Load Balancer was created. (RFC 3339 format) */
233
+ created_at?: string | null | undefined;
234
+ /** Date on which the Load Balancer was last updated. (RFC 3339 format) */
235
+ updated_at?: string | null | undefined;
236
+ /** Number of Private Networks attached to the Load Balancer. */
237
+ private_network_count?: number | undefined;
238
+ /** Number of routes configured on the Load Balancer. */
239
+ route_count?: number | undefined;
240
+ /** The region the Load Balancer is in. */
241
+ region?: string | undefined;
242
+ /** The zone the Load Balancer is in. */
243
+ zone?: string | undefined;
244
+ /** The SRN of the Load Balancer. */
245
+ srn?: string | undefined;
246
+ }
247
+ export type OnMarkedDownAction = "on_marked_down_action_none" | "shutdown_sessions";
248
+ export type ProxyProtocol =
249
+ | "proxy_protocol_unknown"
250
+ | "proxy_protocol_none"
251
+ | "proxy_protocol_v1"
252
+ | "proxy_protocol_v2"
253
+ | "proxy_protocol_v2_ssl"
254
+ | "proxy_protocol_v2_ssl_cn";
255
+ export interface Backend {
256
+ /** Backend ID. */
257
+ id?: string | undefined;
258
+ /** Name of the backend. */
259
+ name?: string | undefined;
260
+ /** Protocol used by the backend when forwarding traffic to backend servers. */
261
+ forward_protocol?: Protocol | undefined;
262
+ /** Port used by the backend when forwarding traffic to backend servers. */
263
+ forward_port?: number | undefined;
264
+ /** Load balancing algorithm to use when determining which backend server to forward new traffic to. */
265
+ forward_port_algorithm?: ForwardPortAlgorithm | undefined;
266
+ /** Defines whether sticky sessions (binding a particular session to a particular backend server) are activated and the method to use if so. None disables sticky sessions. Cookie-based uses an HTTP cookie to stick a session to a backend server. Table-based uses the source (client) IP address to stick a session to a backend server. */
267
+ sticky_sessions?: StickySessionsType | undefined;
268
+ /** Cookie name for cookie-based sticky sessions. */
269
+ sticky_sessions_cookie_name?: string | undefined;
270
+ /** Object defining the health check to be carried out by the backend when checking the status and health of backend servers. */
271
+ health_check?: HealthCheck | undefined;
272
+ /** List of IP addresses of backend servers attached to this backend. */
273
+ pool?: BackendPoolList | undefined;
274
+ /** Load Balancer the backend is attached to. */
275
+ lb?: Lb | undefined;
276
+ /** Deprecated in favor of proxy_protocol field. */
277
+ send_proxy_v2?: boolean | undefined;
278
+ /** Maximum allowed time for a backend server to process a request. (in milliseconds) */
279
+ timeout_server?: number | undefined;
280
+ /** Maximum allowed time for establishing a connection to a backend server. (in milliseconds) */
281
+ timeout_connect?: number | undefined;
282
+ /** Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout). (in milliseconds) */
283
+ timeout_tunnel?: number | undefined;
284
+ /** Action to take when a backend server is marked as down. */
285
+ on_marked_down_action?: OnMarkedDownAction | undefined;
286
+ /** Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software. */
287
+ proxy_protocol?: ProxyProtocol | undefined;
288
+ /** Date at which the backend was created. (RFC 3339 format) */
289
+ created_at?: string | null | undefined;
290
+ /** Date at which the backend was updated. (RFC 3339 format) */
291
+ updated_at?: string | null | undefined;
292
+ /** Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud. */
293
+ failover_host?: string | null | undefined;
294
+ /** Defines whether to enable SSL bridging between the Load Balancer and backend servers. */
295
+ ssl_bridging?: boolean | null | undefined;
296
+ /** Defines whether the server certificate verification should be ignored. */
297
+ ignore_ssl_server_verify?: boolean | null | undefined;
298
+ /** Whether to use another backend server on each attempt. */
299
+ redispatch_attempt_count?: number | null | undefined;
300
+ /** Number of retries when a backend server connection failed. */
301
+ max_retries?: number | null | undefined;
302
+ /** Maximum number of connections allowed per backend server. */
303
+ max_connections?: number | null | undefined;
304
+ /** Maximum time for a request to be left pending in queue when `max_connections` is reached. (in seconds) */
305
+ timeout_queue?: string | null | undefined;
306
+ /** Host value to use when connecting to backend servers. When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. */
307
+ host?: string | null | undefined;
308
+ /** The zone the backend is in. */
309
+ zone?: string | undefined;
310
+ /** The SRN of the backend. */
311
+ srn?: string | undefined;
312
+ }
313
+ export type AttachPrivateNetworkRequestZone =
314
+ | "fr-par-1"
315
+ | "fr-par-2"
316
+ | "nl-ams-1"
317
+ | "nl-ams-2"
318
+ | "nl-ams-3"
319
+ | "pl-waw-1"
320
+ | "pl-waw-2"
321
+ | "pl-waw-3";
322
+ /** IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this Private Network. In the future, it will be possible to specify multiple IPs in this field (IPv4 and IPv6), for now only one ID of an IPv4 address is expected. When null, a new private IP address is created for the Load Balancer on this Private Network. (UUID format) */
323
+ export type AttachPrivateNetworkRequestIpamIdsList = Array<string>;
324
+ export interface AttachPrivateNetworkRequest {
325
+ /** The zone you want to target */
326
+ zone?: AttachPrivateNetworkRequestZone | (string & {}) | undefined;
327
+ /** Load Balancer ID. */
328
+ lb_id: string;
329
+ /** Private Network ID. */
330
+ private_network_id: string;
331
+ /** IPAM ID of a pre-reserved IP address to assign to the Load Balancer on this Private Network. In the future, it will be possible to specify multiple IPs in this field (IPv4 and IPv6), for now only one ID of an IPv4 address is expected. When null, a new private IP address is created for the Load Balancer on this Private Network. (UUID format) */
332
+ ipam_ids?: AttachPrivateNetworkRequestIpamIdsList | undefined;
333
+ }
334
+ /** IPAM IDs of the booked IP addresses. (UUID format) */
335
+ export type PrivateNetworkIpamIdsList = Array<string>;
336
+ /** Array of a local IP address for the Load Balancer on this Private Network. */
337
+ export type PrivateNetworkStaticConfigIpAddressList = Array<string>;
338
+ export interface PrivateNetworkStaticConfig {
339
+ /** Array of a local IP address for the Load Balancer on this Private Network. */
340
+ ip_address?: PrivateNetworkStaticConfigIpAddressList | undefined;
341
+ }
342
+ export interface PrivateNetworkDHCPConfig {
343
+ /** (UUID format) */
344
+ ip_id?: string | null | undefined;
345
+ }
346
+ export type PrivateNetworkStatus = "unknown" | "ready" | "pending" | "error";
347
+ export interface PrivateNetwork {
348
+ /** Load Balancer object which is attached to the Private Network. */
349
+ lb?: Lb | undefined;
350
+ /** IPAM IDs of the booked IP addresses. (UUID format) */
351
+ ipam_ids?: PrivateNetworkIpamIdsList | undefined;
352
+ /** Object containing an array of a local IP address for the Load Balancer on this Private Network. Precisely one of static_config, dhcp_config can be set. */
353
+ static_config?: PrivateNetworkStaticConfig | null | undefined;
354
+ /** Object containing DHCP-assigned IP addresses. Precisely one of static_config, dhcp_config can be set. */
355
+ dhcp_config?: PrivateNetworkDHCPConfig | null | undefined;
356
+ /** Private Network ID. */
357
+ private_network_id?: string | undefined;
358
+ /** Status of Private Network connection. */
359
+ status?: PrivateNetworkStatus | undefined;
360
+ /** Date on which the Private Network was created. (RFC 3339 format) */
361
+ created_at?: string | null | undefined;
362
+ /** Date on which the PN was last updated. (RFC 3339 format) */
363
+ updated_at?: string | null | undefined;
364
+ }
365
+ export type CreateAclRequestZone =
366
+ | "fr-par-1"
367
+ | "fr-par-2"
368
+ | "nl-ams-1"
369
+ | "nl-ams-2"
370
+ | "nl-ams-3"
371
+ | "pl-waw-1"
372
+ | "pl-waw-2"
373
+ | "pl-waw-3";
374
+ export type AclActionType = "allow" | "deny" | "redirect";
375
+ export type AclActionRedirectRedirectType = "location" | "scheme";
376
+ export interface AclActionRedirect {
377
+ /** Redirect type. */
378
+ type?: AclActionRedirectRedirectType | (string & {}) | undefined;
379
+ /** Redirect target. For a location redirect, you can use a URL e.g. `https://scaleway.com`. Using a scheme name (e.g. `https`, `http`, `ftp`, `git`) will replace the request's original scheme. This can be useful to implement HTTP to HTTPS redirects. Valid placeholders that can be used in a `location` redirect to preserve parts of the original request in the redirection URL are \{\{host\}\}, \{\{query\}\}, \{\{path\}\} and \{\{scheme\}\}. */
380
+ target?: string | undefined;
381
+ /** HTTP redirect code to use. Valid values are 301, 302, 303, 307 and 308. Default value is 302. */
382
+ code?: number | null | undefined;
383
+ }
384
+ export interface AclAction {
385
+ /** Action to take when incoming traffic matches an ACL filter. */
386
+ type?: AclActionType | (string & {}) | undefined;
387
+ /** Redirection parameters when using an ACL with a `redirect` action. */
388
+ redirect?: AclActionRedirect | undefined;
389
+ }
390
+ /** List of IPs or CIDR v4/v6 addresses to filter for from the client side. */
391
+ export type AclMatchIpSubnetList = Array<string | null>;
392
+ export type AclHttpFilter =
393
+ | "acl_http_filter_none"
394
+ | "path_begin"
395
+ | "path_end"
396
+ | "regex"
397
+ | "http_header_match";
398
+ /** List of values to filter for. */
399
+ export type AclMatchHttpFilterValueList = Array<string | null>;
400
+ export interface AclMatch {
401
+ /** List of IPs or CIDR v4/v6 addresses to filter for from the client side. */
402
+ ip_subnet?: AclMatchIpSubnetList | undefined;
403
+ /** Defines whether Edge Services IPs should be matched. If set to `true`, restricts all connections except for Edge Services. */
404
+ ips_edge_services?: boolean | undefined;
405
+ /** Type of HTTP filter to match. Extracts the request's URL path, which starts at the first slash and ends before the question mark (without the host part). Defines where to filter for the http_filter_value. Only supported for HTTP backends. */
406
+ http_filter?: AclHttpFilter | (string & {}) | undefined;
407
+ /** List of values to filter for. */
408
+ http_filter_value?: AclMatchHttpFilterValueList | undefined;
409
+ /** Name of the HTTP header to filter on if `http_header_match` was selected in `http_filter`. */
410
+ http_filter_option?: string | null | undefined;
411
+ /** Defines whether to invert the match condition. If set to `true`, the ACL carries out its action when the condition DOES NOT match. */
412
+ invert?: boolean | undefined;
413
+ }
414
+ export interface CreateAclRequest {
415
+ /** The zone you want to target */
416
+ zone?: CreateAclRequestZone | (string & {}) | undefined;
417
+ /** Frontend ID to attach the ACL to. */
418
+ frontend_id: string;
419
+ /** ACL name. */
420
+ name: string;
421
+ /** Action to take when incoming traffic matches an ACL filter. */
422
+ action: AclAction;
423
+ /** ACL match filter object. One of `ip_subnet`, `ips_edge_services` or `http_filter` & `http_filter_value` are required. */
424
+ match?: AclMatch | undefined;
425
+ /** Priority of this ACL (ACLs are applied in ascending order, 0 is the first ACL executed). */
426
+ index: number;
427
+ /** ACL description. */
428
+ description?: string | undefined;
429
+ }
430
+ export type CertificateType = "letsencryt" | "custom" | "letsencrypt";
431
+ /** Alternative domain names. */
432
+ export type CertificateSubjectAlternativeNameList = Array<string>;
433
+ export type CertificateStatus = "pending" | "ready" | "error";
434
+ export interface Certificate {
435
+ /** Certificate type (Let's Encrypt or custom). */
436
+ type?: CertificateType | undefined;
437
+ /** Certificate ID. */
438
+ id?: string | undefined;
439
+ /** Main domain name of certificate. */
440
+ common_name?: string | undefined;
441
+ /** Alternative domain names. */
442
+ subject_alternative_name?: CertificateSubjectAlternativeNameList | undefined;
443
+ /** Identifier (SHA-1) of the certificate. */
444
+ fingerprint?: string | undefined;
445
+ /** Lower validity bound. (RFC 3339 format) */
446
+ not_valid_before?: string | null | undefined;
447
+ /** Upper validity bound. (RFC 3339 format) */
448
+ not_valid_after?: string | null | undefined;
449
+ /** Certificate status. */
450
+ status?: CertificateStatus | undefined;
451
+ /** Load Balancer object the certificate is attached to. */
452
+ lb?: Lb | undefined;
453
+ /** Certificate name. */
454
+ name?: string | undefined;
455
+ /** Date on which the certificate was created. (RFC 3339 format) */
456
+ created_at?: string | null | undefined;
457
+ /** Date on which the certificate was last updated. (RFC 3339 format) */
458
+ updated_at?: string | null | undefined;
459
+ /** Additional information about the certificate status (useful in case of certificate generation failure, for example). */
460
+ status_details?: string | null | undefined;
461
+ /** The zone the certificate is in. */
462
+ zone?: string | undefined;
463
+ /** The SRN of the certificate. */
464
+ srn?: string | undefined;
465
+ }
466
+ /** List of SSL/TLS certificate IDs to bind to the frontend. */
467
+ export type FrontendCertificateIdsList = Array<string>;
468
+ export interface Frontend {
469
+ /** Frontend ID. */
470
+ id?: string | undefined;
471
+ /** Name of the frontend. */
472
+ name?: string | undefined;
473
+ /** Port the frontend listens on. */
474
+ inbound_port?: number | undefined;
475
+ /** Backend object the frontend is attached to. */
476
+ backend?: Backend | undefined;
477
+ /** Load Balancer object the frontend is attached to. */
478
+ lb?: Lb | undefined;
479
+ /** Maximum allowed inactivity time on the client side. (in milliseconds) */
480
+ timeout_client?: number | undefined;
481
+ /** Certificate, deprecated in favor of certificate_ids array. */
482
+ certificate?: Certificate | undefined;
483
+ /** List of SSL/TLS certificate IDs to bind to the frontend. */
484
+ certificate_ids?: FrontendCertificateIdsList | undefined;
485
+ /** Date on which the frontend was created. (RFC 3339 format) */
486
+ created_at?: string | null | undefined;
487
+ /** Date on which the frontend was last updated. (RFC 3339 format) */
488
+ updated_at?: string | null | undefined;
489
+ /** Defines whether to enable HTTP/3 protocol on the frontend. */
490
+ enable_http3?: boolean | undefined;
491
+ /** Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. */
492
+ connection_rate_limit?: number | null | undefined;
493
+ /** Defines whether to enable access logs on the frontend. */
494
+ enable_access_logs?: boolean | undefined;
495
+ /** The zone the frontend is in. */
496
+ zone?: string | undefined;
497
+ /** The SRN of the frontend. */
498
+ srn?: string | undefined;
499
+ }
500
+ export interface Acl {
501
+ /** ACL ID. */
502
+ id?: string | undefined;
503
+ /** ACL name. */
504
+ name?: string | undefined;
505
+ /** ACL match filter object. One of `ip_subnet`, `ips_edge_services` or `http_filter` & `http_filter_value` are required. */
506
+ match?: AclMatch | undefined;
507
+ /** Action to take when incoming traffic matches an ACL filter. */
508
+ action?: AclAction | undefined;
509
+ /** ACL is attached to this frontend object. */
510
+ frontend?: Frontend | undefined;
511
+ /** Priority of this ACL (ACLs are applied in ascending order, 0 is the first ACL executed). */
512
+ index?: number | undefined;
513
+ /** Date on which the ACL was created. (RFC 3339 format) */
514
+ created_at?: string | null | undefined;
515
+ /** Date on which the ACL was last updated. (RFC 3339 format) */
516
+ updated_at?: string | null | undefined;
517
+ /** ACL description. */
518
+ description?: string | undefined;
519
+ /** The zone the ACL is in. */
520
+ zone?: string | undefined;
521
+ /** The SRN of the ACL. */
522
+ srn?: string | undefined;
523
+ }
524
+ export type CreateBackendRequestZone =
525
+ | "fr-par-1"
526
+ | "fr-par-2"
527
+ | "nl-ams-1"
528
+ | "nl-ams-2"
529
+ | "nl-ams-3"
530
+ | "pl-waw-1"
531
+ | "pl-waw-2"
532
+ | "pl-waw-3";
533
+ /** List of backend server IP addresses (IPv4 or IPv6) the backend should forward traffic to. */
534
+ export type CreateBackendRequestServerIpList = Array<string>;
535
+ export interface CreateBackendRequest {
536
+ /** The zone you want to target */
537
+ zone?: CreateBackendRequestZone | (string & {}) | undefined;
538
+ /** Load Balancer ID. */
539
+ lb_id: string;
540
+ /** Name for the backend. */
541
+ name: string;
542
+ /** Protocol to be used by the backend when forwarding traffic to backend servers. */
543
+ forward_protocol: Protocol | (string & {});
544
+ /** Port to be used by the backend when forwarding traffic to backend servers. */
545
+ forward_port: number;
546
+ /** Load balancing algorithm to be used when determining which backend server to forward new traffic to. */
547
+ forward_port_algorithm: ForwardPortAlgorithm | (string & {});
548
+ /** Defines whether to activate sticky sessions (binding a particular session to a particular backend server) and the method to use if so. None disables sticky sessions. Cookie-based uses an HTTP cookie TO stick a session to a backend server. Table-based uses the source (client) IP address to stick a session to a backend server. */
549
+ sticky_sessions: StickySessionsType | (string & {});
550
+ /** Cookie name for cookie-based sticky sessions. */
551
+ sticky_sessions_cookie_name?: string | undefined;
552
+ /** Object defining the health check to be carried out by the backend when checking the status and health of backend servers. */
553
+ health_check: HealthCheck;
554
+ /** List of backend server IP addresses (IPv4 or IPv6) the backend should forward traffic to. */
555
+ server_ip: CreateBackendRequestServerIpList;
556
+ /** Deprecated in favor of proxy_protocol field. */
557
+ send_proxy_v2?: boolean | undefined;
558
+ /** Maximum allowed time for a backend server to process a request. (in milliseconds) */
559
+ timeout_server?: number | undefined;
560
+ /** Maximum allowed time for establishing a connection to a backend server. (in milliseconds) */
561
+ timeout_connect?: number | undefined;
562
+ /** Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout). (in milliseconds) */
563
+ timeout_tunnel?: number | undefined;
564
+ /** Action to take when a backend server is marked as down. */
565
+ on_marked_down_action?: OnMarkedDownAction | (string & {}) | undefined;
566
+ /** Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software. */
567
+ proxy_protocol?: ProxyProtocol | (string & {}) | undefined;
568
+ /** Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud. */
569
+ failover_host?: string | null | undefined;
570
+ /** Defines whether to enable SSL bridging between the Load Balancer and backend servers. */
571
+ ssl_bridging?: boolean | null | undefined;
572
+ /** Defines whether the server certificate verification should be ignored. */
573
+ ignore_ssl_server_verify?: boolean | null | undefined;
574
+ /** Whether to use another backend server on each attempt. */
575
+ redispatch_attempt_count?: number | null | undefined;
576
+ /** Number of retries when a backend server connection failed. */
577
+ max_retries?: number | null | undefined;
578
+ /** Maximum number of connections allowed per backend server. */
579
+ max_connections?: number | null | undefined;
580
+ /** Maximum time for a request to be left pending in queue when `max_connections` is reached. (in seconds) */
581
+ timeout_queue?: string | null | undefined;
582
+ /** Host value to use when connecting to backend servers. When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. */
583
+ host?: string | null | undefined;
584
+ }
585
+ export type CreateCertificateRequestZone =
586
+ | "fr-par-1"
587
+ | "fr-par-2"
588
+ | "nl-ams-1"
589
+ | "nl-ams-2"
590
+ | "nl-ams-3"
591
+ | "pl-waw-1"
592
+ | "pl-waw-2"
593
+ | "pl-waw-3";
594
+ /** Alternative domain names (all domain names must exist and resolve to your Load Balancer IP address). */
595
+ export type CreateCertificateRequestLetsencryptConfigSubjectAlternativeNameList = Array<string>;
596
+ export interface CreateCertificateRequestLetsencryptConfig {
597
+ /** Main domain name of certificate (this domain must exist and resolve to your Load Balancer IP address). */
598
+ common_name: string;
599
+ /** Alternative domain names (all domain names must exist and resolve to your Load Balancer IP address). */
600
+ subject_alternative_name?:
601
+ | CreateCertificateRequestLetsencryptConfigSubjectAlternativeNameList
602
+ | undefined;
603
+ }
604
+ export interface CreateCertificateRequestCustomCertificate {
605
+ /** Full PEM-formatted certificate, consisting of the entire certificate chain including public key, private key, and (optionally) Certificate Authorities. */
606
+ certificate_chain: string;
607
+ }
608
+ export interface CreateCertificateRequest {
609
+ /** The zone you want to target */
610
+ zone?: CreateCertificateRequestZone | (string & {}) | undefined;
611
+ /** Load Balancer ID. */
612
+ lb_id: string;
613
+ /** Name for the certificate. */
614
+ name: string;
615
+ /** Object to define a new Let's Encrypt certificate to be generated. Precisely one of letsencrypt, custom_certificate can be set. */
616
+ letsencrypt?: CreateCertificateRequestLetsencryptConfig | null | undefined;
617
+ /** Object to define an existing custom certificate to be imported. Precisely one of letsencrypt, custom_certificate can be set. */
618
+ custom_certificate?: CreateCertificateRequestCustomCertificate | null | undefined;
619
+ }
620
+ export type CreateFrontendRequestZone =
621
+ | "fr-par-1"
622
+ | "fr-par-2"
623
+ | "nl-ams-1"
624
+ | "nl-ams-2"
625
+ | "nl-ams-3"
626
+ | "pl-waw-1"
627
+ | "pl-waw-2"
628
+ | "pl-waw-3";
629
+ /** List of SSL/TLS certificate IDs to bind to the frontend. */
630
+ export type CreateFrontendRequestCertificateIdsList = Array<unknown>;
631
+ export interface CreateFrontendRequest {
632
+ /** The zone you want to target */
633
+ zone?: CreateFrontendRequestZone | (string & {}) | undefined;
634
+ /** Load Balancer ID (ID of the Load Balancer to attach the frontend to). */
635
+ lb_id: string;
636
+ /** Name for the frontend. */
637
+ name: string;
638
+ /** Port the frontend should listen on. */
639
+ inbound_port: number;
640
+ /** Backend ID (ID of the backend the frontend should pass traffic to). */
641
+ backend_id: string;
642
+ /** Maximum allowed inactivity time on the client side. (in milliseconds) */
643
+ timeout_client?: number | undefined;
644
+ /** Certificate ID, deprecated in favor of certificate_ids array. */
645
+ certificate_id?: string | null | undefined;
646
+ /** List of SSL/TLS certificate IDs to bind to the frontend. */
647
+ certificate_ids?: CreateFrontendRequestCertificateIdsList | null | undefined;
648
+ /** Defines whether to enable HTTP/3 protocol on the frontend. */
649
+ enable_http3?: boolean | undefined;
650
+ /** Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. */
651
+ connection_rate_limit?: number | null | undefined;
652
+ /** Defines whether to enable access logs on the frontend. */
653
+ enable_access_logs?: boolean | undefined;
654
+ }
655
+ export type CreateIpRequestZone =
656
+ | "fr-par-1"
657
+ | "fr-par-2"
658
+ | "nl-ams-1"
659
+ | "nl-ams-2"
660
+ | "nl-ams-3"
661
+ | "pl-waw-1"
662
+ | "pl-waw-2"
663
+ | "pl-waw-3";
664
+ /** List of tags for the IP. */
665
+ export type CreateIpRequestTagsList = Array<string>;
666
+ export interface CreateIpRequest {
667
+ /** The zone you want to target */
668
+ zone?: CreateIpRequestZone | (string & {}) | undefined;
669
+ /** Organization ID of the Organization where the IP address should be created. Precisely one of project_id, organization_id can be set. */
670
+ organization_id?: string | null | undefined;
671
+ /** Project ID of the Project where the IP address should be created. Precisely one of project_id, organization_id can be set. */
672
+ project_id?: string | null | undefined;
673
+ /** Reverse DNS (domain name) for the IP address. */
674
+ reverse?: string | null | undefined;
675
+ /** If true, creates a Flexible IP with an ipv6 address. */
676
+ is_ipv6?: boolean | undefined;
677
+ /** List of tags for the IP. */
678
+ tags?: CreateIpRequestTagsList | undefined;
679
+ }
680
+ export type CreateLbRequestZone =
681
+ | "fr-par-1"
682
+ | "fr-par-2"
683
+ | "nl-ams-1"
684
+ | "nl-ams-2"
685
+ | "nl-ams-3"
686
+ | "pl-waw-1"
687
+ | "pl-waw-2"
688
+ | "pl-waw-3";
689
+ /** List of IP IDs to attach to the Load Balancer. */
690
+ export type CreateLbRequestIpIdsList = Array<string>;
691
+ /** List of tags for the Load Balancer. */
692
+ export type CreateLbRequestTagsList = Array<string>;
693
+ export interface CreateLbRequest {
694
+ /** The zone you want to target */
695
+ zone?: CreateLbRequestZone | (string & {}) | undefined;
696
+ /** Scaleway Organization to create the Load Balancer in. Precisely one of project_id, organization_id can be set. */
697
+ organization_id?: string | null | undefined;
698
+ /** Scaleway Project to create the Load Balancer in. Precisely one of project_id, organization_id can be set. */
699
+ project_id?: string | null | undefined;
700
+ /** Name for the Load Balancer. */
701
+ name: string;
702
+ /** Description for the Load Balancer. */
703
+ description?: string | undefined;
704
+ /** ID of an existing flexible IP address to attach to the Load Balancer. */
705
+ ip_id?: string | null | undefined;
706
+ /** Defines whether to automatically assign a flexible public IP to the Load Balancer. Default value is `true` (assign). */
707
+ assign_flexible_ip?: boolean | null | undefined;
708
+ /** Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. Default value is `false` (do not assign). */
709
+ assign_flexible_ipv6?: boolean | null | undefined;
710
+ /** List of IP IDs to attach to the Load Balancer. */
711
+ ip_ids?: CreateLbRequestIpIdsList | undefined;
712
+ /** List of tags for the Load Balancer. */
713
+ tags?: CreateLbRequestTagsList | undefined;
714
+ /** Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types. */
715
+ type?: string | undefined;
716
+ /** Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems (>= TLS1.2). Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility (= TLS1.3). Old is compatible with a small number of very old clients and should be used only as a last resort (>= TLS1.0). */
717
+ ssl_compatibility_level?: SSLCompatibilityLevel | (string & {}) | undefined;
718
+ }
719
+ export type CreateRouteRequestZone =
720
+ | "fr-par-1"
721
+ | "fr-par-2"
722
+ | "nl-ams-1"
723
+ | "nl-ams-2"
724
+ | "nl-ams-3"
725
+ | "pl-waw-1"
726
+ | "pl-waw-2"
727
+ | "pl-waw-3";
728
+ export interface RouteMatch {
729
+ /** Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. This field should be set for routes on TCP Load Balancers. Precisely one of sni, host_header, path_begin can be set. */
730
+ sni?: string | null | undefined;
731
+ /** HTTP host header to match. Value to match in the HTTP Host request header from an incoming request. This field should be set for routes on HTTP Load Balancers. Precisely one of sni, host_header, path_begin can be set. */
732
+ host_header?: string | null | undefined;
733
+ /** If true, all subdomains will match. */
734
+ match_subdomains?: boolean | undefined;
735
+ /** Path begin value to match. Value to match in the URL beginning path from an incoming request. Precisely one of sni, host_header, path_begin can be set. */
736
+ path_begin?: string | null | undefined;
737
+ }
738
+ export interface CreateRouteRequest {
739
+ /** The zone you want to target */
740
+ zone?: CreateRouteRequestZone | (string & {}) | undefined;
741
+ /** ID of the source frontend to create the route on. */
742
+ frontend_id?: string | undefined;
743
+ /** ID of the target backend for the route. */
744
+ backend_id?: string | undefined;
745
+ /** Object defining the match condition for a route to be applied. If an incoming client session matches the specified condition (i.e. it has a matching SNI value or HTTP Host header value), it will be passed to the target backend. */
746
+ match?: RouteMatch | undefined;
747
+ }
748
+ export interface Route {
749
+ /** Route ID. */
750
+ id?: string | undefined;
751
+ /** ID of the source frontend. */
752
+ frontend_id?: string | undefined;
753
+ /** ID of the target backend. */
754
+ backend_id?: string | undefined;
755
+ /** Object defining the match condition for a route to be applied. If an incoming client session matches the specified condition (i.e. it has a matching SNI value or HTTP Host header value), it will be passed to the target backend. */
756
+ match?: RouteMatch | undefined;
757
+ /** Date on which the route was created. (RFC 3339 format) */
758
+ created_at?: string | null | undefined;
759
+ /** Date on which the route was last updated. (RFC 3339 format) */
760
+ updated_at?: string | null | undefined;
761
+ /** The zone the route is in. */
762
+ zone?: string | undefined;
763
+ /** The SRN of the route. */
764
+ srn?: string | undefined;
765
+ }
766
+ export type CreateSubscriberRequestZone =
767
+ | "fr-par-1"
768
+ | "fr-par-2"
769
+ | "nl-ams-1"
770
+ | "nl-ams-2"
771
+ | "nl-ams-3"
772
+ | "pl-waw-1"
773
+ | "pl-waw-2"
774
+ | "pl-waw-3";
775
+ export interface CreateSubscriberRequest {
776
+ /** The zone you want to target */
777
+ zone?: CreateSubscriberRequestZone | (string & {}) | undefined;
778
+ /** Subscriber name. */
779
+ name: string;
780
+ /** Email address configuration. Precisely one of email_config, webhook_config can be set. */
781
+ email_config?: SubscriberEmailConfig | null | undefined;
782
+ /** WebHook URI configuration. Precisely one of email_config, webhook_config can be set. */
783
+ webhook_config?: SubscriberWebhookConfig | null | undefined;
784
+ /** Organization ID to create the subscriber in. Precisely one of project_id, organization_id can be set. */
785
+ organization_id?: string | null | undefined;
786
+ /** Project ID to create the subscriber in. Precisely one of project_id, organization_id can be set. */
787
+ project_id?: string | null | undefined;
788
+ }
789
+ export type DeleteAclRequestZone =
790
+ | "fr-par-1"
791
+ | "fr-par-2"
792
+ | "nl-ams-1"
793
+ | "nl-ams-2"
794
+ | "nl-ams-3"
795
+ | "pl-waw-1"
796
+ | "pl-waw-2"
797
+ | "pl-waw-3";
798
+ export interface DeleteAclRequest {
799
+ /** The zone you want to target */
800
+ zone?: DeleteAclRequestZone | (string & {}) | undefined;
801
+ /** ACL ID. */
802
+ acl_id: string;
803
+ }
804
+ export interface DeleteAclResponse {}
805
+ export type DeleteBackendRequestZone =
806
+ | "fr-par-1"
807
+ | "fr-par-2"
808
+ | "nl-ams-1"
809
+ | "nl-ams-2"
810
+ | "nl-ams-3"
811
+ | "pl-waw-1"
812
+ | "pl-waw-2"
813
+ | "pl-waw-3";
814
+ export interface DeleteBackendRequest {
815
+ /** The zone you want to target */
816
+ zone?: DeleteBackendRequestZone | (string & {}) | undefined;
817
+ /** ID of the backend to delete. */
818
+ backend_id: string;
819
+ }
820
+ export interface DeleteBackendResponse {}
821
+ export type DeleteCertificateRequestZone =
822
+ | "fr-par-1"
823
+ | "fr-par-2"
824
+ | "nl-ams-1"
825
+ | "nl-ams-2"
826
+ | "nl-ams-3"
827
+ | "pl-waw-1"
828
+ | "pl-waw-2"
829
+ | "pl-waw-3";
830
+ export interface DeleteCertificateRequest {
831
+ /** The zone you want to target */
832
+ zone?: DeleteCertificateRequestZone | (string & {}) | undefined;
833
+ /** Certificate ID. */
834
+ certificate_id: string;
835
+ }
836
+ export interface DeleteCertificateResponse {}
837
+ export type DeleteFrontendRequestZone =
838
+ | "fr-par-1"
839
+ | "fr-par-2"
840
+ | "nl-ams-1"
841
+ | "nl-ams-2"
842
+ | "nl-ams-3"
843
+ | "pl-waw-1"
844
+ | "pl-waw-2"
845
+ | "pl-waw-3";
846
+ export interface DeleteFrontendRequest {
847
+ /** The zone you want to target */
848
+ zone?: DeleteFrontendRequestZone | (string & {}) | undefined;
849
+ /** ID of the frontend to delete. */
850
+ frontend_id: string;
851
+ }
852
+ export interface DeleteFrontendResponse {}
853
+ export type DeleteLbRequestZone =
854
+ | "fr-par-1"
855
+ | "fr-par-2"
856
+ | "nl-ams-1"
857
+ | "nl-ams-2"
858
+ | "nl-ams-3"
859
+ | "pl-waw-1"
860
+ | "pl-waw-2"
861
+ | "pl-waw-3";
862
+ export interface DeleteLbRequest {
863
+ /** The zone you want to target */
864
+ zone?: DeleteLbRequestZone | (string & {}) | undefined;
865
+ /** ID of the Load Balancer to delete. */
866
+ lb_id: string;
867
+ /** Defines whether the Load Balancer's flexible IP should be deleted. Set to true to release the flexible IP, or false to keep it available in your account for future Load Balancers. */
868
+ release_ip: boolean;
869
+ }
870
+ export interface DeleteLbResponse {}
871
+ export type DeleteRouteRequestZone =
872
+ | "fr-par-1"
873
+ | "fr-par-2"
874
+ | "nl-ams-1"
875
+ | "nl-ams-2"
876
+ | "nl-ams-3"
877
+ | "pl-waw-1"
878
+ | "pl-waw-2"
879
+ | "pl-waw-3";
880
+ export interface DeleteRouteRequest {
881
+ /** The zone you want to target */
882
+ zone?: DeleteRouteRequestZone | (string & {}) | undefined;
883
+ /** Route ID. */
884
+ route_id: string;
885
+ }
886
+ export interface DeleteRouteResponse {}
887
+ export type DeleteSubscriberRequestZone =
888
+ | "fr-par-1"
889
+ | "fr-par-2"
890
+ | "nl-ams-1"
891
+ | "nl-ams-2"
892
+ | "nl-ams-3"
893
+ | "pl-waw-1"
894
+ | "pl-waw-2"
895
+ | "pl-waw-3";
896
+ export interface DeleteSubscriberRequest {
897
+ /** The zone you want to target */
898
+ zone?: DeleteSubscriberRequestZone | (string & {}) | undefined;
899
+ /** Subscriber ID. */
900
+ subscriber_id: string;
901
+ }
902
+ export interface DeleteSubscriberResponse {}
903
+ export type DetachPrivateNetworkRequestZone =
904
+ | "fr-par-1"
905
+ | "fr-par-2"
906
+ | "nl-ams-1"
907
+ | "nl-ams-2"
908
+ | "nl-ams-3"
909
+ | "pl-waw-1"
910
+ | "pl-waw-2"
911
+ | "pl-waw-3";
912
+ export interface DetachPrivateNetworkRequest {
913
+ /** The zone you want to target */
914
+ zone?: DetachPrivateNetworkRequestZone | (string & {}) | undefined;
915
+ /** Load balancer ID. */
916
+ lb_id: string;
917
+ /** Set your instance private network id. */
918
+ private_network_id: string;
919
+ }
920
+ export interface DetachPrivateNetworkResponse {}
921
+ export type GetAclRequestZone =
922
+ | "fr-par-1"
923
+ | "fr-par-2"
924
+ | "nl-ams-1"
925
+ | "nl-ams-2"
926
+ | "nl-ams-3"
927
+ | "pl-waw-1"
928
+ | "pl-waw-2"
929
+ | "pl-waw-3";
930
+ export interface GetAclRequest {
931
+ /** The zone you want to target */
932
+ zone?: GetAclRequestZone | (string & {}) | undefined;
933
+ /** ACL ID. */
934
+ acl_id: string;
935
+ }
936
+ export type GetBackendRequestZone =
937
+ | "fr-par-1"
938
+ | "fr-par-2"
939
+ | "nl-ams-1"
940
+ | "nl-ams-2"
941
+ | "nl-ams-3"
942
+ | "pl-waw-1"
943
+ | "pl-waw-2"
944
+ | "pl-waw-3";
945
+ export interface GetBackendRequest {
946
+ /** The zone you want to target */
947
+ zone?: GetBackendRequestZone | (string & {}) | undefined;
948
+ /** Backend ID. */
949
+ backend_id: string;
950
+ }
951
+ export type GetCertificateRequestZone =
952
+ | "fr-par-1"
953
+ | "fr-par-2"
954
+ | "nl-ams-1"
955
+ | "nl-ams-2"
956
+ | "nl-ams-3"
957
+ | "pl-waw-1"
958
+ | "pl-waw-2"
959
+ | "pl-waw-3";
960
+ export interface GetCertificateRequest {
961
+ /** The zone you want to target */
962
+ zone?: GetCertificateRequestZone | (string & {}) | undefined;
963
+ /** Certificate ID. */
964
+ certificate_id: string;
965
+ }
966
+ export type GetFrontendRequestZone =
967
+ | "fr-par-1"
968
+ | "fr-par-2"
969
+ | "nl-ams-1"
970
+ | "nl-ams-2"
971
+ | "nl-ams-3"
972
+ | "pl-waw-1"
973
+ | "pl-waw-2"
974
+ | "pl-waw-3";
975
+ export interface GetFrontendRequest {
976
+ /** The zone you want to target */
977
+ zone?: GetFrontendRequestZone | (string & {}) | undefined;
978
+ /** Frontend ID. */
979
+ frontend_id: string;
980
+ }
981
+ export type GetIpRequestZone =
982
+ | "fr-par-1"
983
+ | "fr-par-2"
984
+ | "nl-ams-1"
985
+ | "nl-ams-2"
986
+ | "nl-ams-3"
987
+ | "pl-waw-1"
988
+ | "pl-waw-2"
989
+ | "pl-waw-3";
990
+ export interface GetIpRequest {
991
+ /** The zone you want to target */
992
+ zone?: GetIpRequestZone | (string & {}) | undefined;
993
+ /** IP address ID. */
994
+ ip_id: string;
995
+ }
996
+ export type GetLbRequestZone =
997
+ | "fr-par-1"
998
+ | "fr-par-2"
999
+ | "nl-ams-1"
1000
+ | "nl-ams-2"
1001
+ | "nl-ams-3"
1002
+ | "pl-waw-1"
1003
+ | "pl-waw-2"
1004
+ | "pl-waw-3";
1005
+ export interface GetLbRequest {
1006
+ /** The zone you want to target */
1007
+ zone?: GetLbRequestZone | (string & {}) | undefined;
1008
+ /** Load Balancer ID. */
1009
+ lb_id: string;
1010
+ }
1011
+ export type GetRouteRequestZone =
1012
+ | "fr-par-1"
1013
+ | "fr-par-2"
1014
+ | "nl-ams-1"
1015
+ | "nl-ams-2"
1016
+ | "nl-ams-3"
1017
+ | "pl-waw-1"
1018
+ | "pl-waw-2"
1019
+ | "pl-waw-3";
1020
+ export interface GetRouteRequest {
1021
+ /** The zone you want to target */
1022
+ zone?: GetRouteRequestZone | (string & {}) | undefined;
1023
+ /** Route ID. */
1024
+ route_id: string;
1025
+ }
1026
+ export type GetSubscriberRequestZone =
1027
+ | "fr-par-1"
1028
+ | "fr-par-2"
1029
+ | "nl-ams-1"
1030
+ | "nl-ams-2"
1031
+ | "nl-ams-3"
1032
+ | "pl-waw-1"
1033
+ | "pl-waw-2"
1034
+ | "pl-waw-3";
1035
+ export interface GetSubscriberRequest {
1036
+ /** The zone you want to target */
1037
+ zone?: GetSubscriberRequestZone | (string & {}) | undefined;
1038
+ /** Subscriber ID. */
1039
+ subscriber_id: string;
1040
+ }
1041
+ export type ListAclsRequestZone =
1042
+ | "fr-par-1"
1043
+ | "fr-par-2"
1044
+ | "nl-ams-1"
1045
+ | "nl-ams-2"
1046
+ | "nl-ams-3"
1047
+ | "pl-waw-1"
1048
+ | "pl-waw-2"
1049
+ | "pl-waw-3";
1050
+ export type ListAclRequestOrderBy = "created_at_asc" | "created_at_desc" | "name_asc" | "name_desc";
1051
+ export interface ListAclsRequest {
1052
+ /** The zone you want to target */
1053
+ zone?: ListAclsRequestZone | (string & {}) | undefined;
1054
+ /** Frontend ID (ACLs attached to this frontend will be returned in the response). */
1055
+ frontend_id: string;
1056
+ /** Sort order of ACLs in the response. */
1057
+ order_by?: ListAclRequestOrderBy | (string & {}) | undefined;
1058
+ /** The page number to return, from the paginated results. */
1059
+ page?: number | undefined;
1060
+ /** The number of ACLs to return. */
1061
+ page_size?: number | undefined;
1062
+ /** ACL name to filter for. */
1063
+ name?: string | undefined;
1064
+ }
1065
+ /** List of ACL objects. */
1066
+ export type ListAclResponseAclsList = Array<Acl>;
1067
+ export interface ListAclResponse {
1068
+ /** List of ACL objects. */
1069
+ acls: ListAclResponseAclsList;
1070
+ /** The total number of objects. */
1071
+ total_count?: number | undefined;
1072
+ }
1073
+ export type ListBackendsRequestZone =
1074
+ | "fr-par-1"
1075
+ | "fr-par-2"
1076
+ | "nl-ams-1"
1077
+ | "nl-ams-2"
1078
+ | "nl-ams-3"
1079
+ | "pl-waw-1"
1080
+ | "pl-waw-2"
1081
+ | "pl-waw-3";
1082
+ export type ListBackendsRequestOrderBy =
1083
+ | "created_at_asc"
1084
+ | "created_at_desc"
1085
+ | "name_asc"
1086
+ | "name_desc";
1087
+ export interface ListBackendsRequest {
1088
+ /** The zone you want to target */
1089
+ zone?: ListBackendsRequestZone | (string & {}) | undefined;
1090
+ /** Load Balancer ID. */
1091
+ lb_id: string;
1092
+ /** Name of the backend to filter for. */
1093
+ name?: string | undefined;
1094
+ /** Sort order of backends in the response. */
1095
+ order_by?: ListBackendsRequestOrderBy | (string & {}) | undefined;
1096
+ /** The page number to return, from the paginated results. */
1097
+ page?: number | undefined;
1098
+ /** Number of backends to return. */
1099
+ page_size?: number | undefined;
1100
+ }
1101
+ /** List of backend objects of a given Load Balancer. */
1102
+ export type ListBackendsResponseBackendsList = Array<Backend>;
1103
+ export interface ListBackendsResponse {
1104
+ /** List of backend objects of a given Load Balancer. */
1105
+ backends: ListBackendsResponseBackendsList;
1106
+ /** Total count of backend objects, without pagination. */
1107
+ total_count?: number | undefined;
1108
+ }
1109
+ export type ListBackendStatsRequestZone =
1110
+ | "fr-par-1"
1111
+ | "fr-par-2"
1112
+ | "nl-ams-1"
1113
+ | "nl-ams-2"
1114
+ | "nl-ams-3"
1115
+ | "pl-waw-1"
1116
+ | "pl-waw-2"
1117
+ | "pl-waw-3";
1118
+ export interface ListBackendStatsRequest {
1119
+ /** The zone you want to target */
1120
+ zone?: ListBackendStatsRequestZone | (string & {}) | undefined;
1121
+ /** Load Balancer ID. */
1122
+ lb_id: string;
1123
+ /** The page number to return, from the paginated results. */
1124
+ page?: number | undefined;
1125
+ /** Number of items to return. */
1126
+ page_size?: number | undefined;
1127
+ /** ID of the backend. */
1128
+ backend_id?: string | undefined;
1129
+ }
1130
+ export type BackendServerStatsServerState = "stopped" | "starting" | "running" | "stopping";
1131
+ export type BackendServerStatsHealthCheckStatus =
1132
+ | "unknown"
1133
+ | "neutral"
1134
+ | "failed"
1135
+ | "passed"
1136
+ | "condpass";
1137
+ export interface BackendServerStats {
1138
+ /** ID of your Load Balancer's underlying Instance. */
1139
+ instance_id?: string | undefined;
1140
+ /** Backend ID. */
1141
+ backend_id?: string | undefined;
1142
+ /** IPv4 or IPv6 address of the backend server. */
1143
+ ip?: string | undefined;
1144
+ /** Server operational state (stopped/starting/running/stopping). */
1145
+ server_state?: BackendServerStatsServerState | undefined;
1146
+ /** Time since last operational change. (RFC 3339 format) */
1147
+ server_state_changed_at?: string | null | undefined;
1148
+ /** Last health check status (unknown/neutral/failed/passed/condpass). */
1149
+ last_health_check_status?: BackendServerStatsHealthCheckStatus | undefined;
1150
+ }
1151
+ /** List of objects containing backend server statistics. */
1152
+ export type ListBackendStatsResponseBackendServersStatsList = Array<BackendServerStats>;
1153
+ export interface ListBackendStatsResponse {
1154
+ /** List of objects containing backend server statistics. */
1155
+ backend_servers_stats: ListBackendStatsResponseBackendServersStatsList;
1156
+ /** The total number of objects. */
1157
+ total_count?: number | undefined;
1158
+ }
1159
+ export type ListCertificatesRequestZone =
1160
+ | "fr-par-1"
1161
+ | "fr-par-2"
1162
+ | "nl-ams-1"
1163
+ | "nl-ams-2"
1164
+ | "nl-ams-3"
1165
+ | "pl-waw-1"
1166
+ | "pl-waw-2"
1167
+ | "pl-waw-3";
1168
+ export type ListCertificatesRequestOrderBy =
1169
+ | "created_at_asc"
1170
+ | "created_at_desc"
1171
+ | "name_asc"
1172
+ | "name_desc";
1173
+ export interface ListCertificatesRequest {
1174
+ /** The zone you want to target */
1175
+ zone?: ListCertificatesRequestZone | (string & {}) | undefined;
1176
+ /** Load Balancer ID. */
1177
+ lb_id: string;
1178
+ /** Sort order of certificates in the response. */
1179
+ order_by?: ListCertificatesRequestOrderBy | (string & {}) | undefined;
1180
+ /** The page number to return, from the paginated results. */
1181
+ page?: number | undefined;
1182
+ /** Number of certificates to return. */
1183
+ page_size?: number | undefined;
1184
+ /** Certificate name to filter for, only certificates of this name will be returned. */
1185
+ name?: string | undefined;
1186
+ }
1187
+ /** List of certificate objects. */
1188
+ export type ListCertificatesResponseCertificatesList = Array<Certificate>;
1189
+ export interface ListCertificatesResponse {
1190
+ /** List of certificate objects. */
1191
+ certificates: ListCertificatesResponseCertificatesList;
1192
+ /** The total number of objects. */
1193
+ total_count?: number | undefined;
1194
+ }
1195
+ export type ListFrontendsRequestZone =
1196
+ | "fr-par-1"
1197
+ | "fr-par-2"
1198
+ | "nl-ams-1"
1199
+ | "nl-ams-2"
1200
+ | "nl-ams-3"
1201
+ | "pl-waw-1"
1202
+ | "pl-waw-2"
1203
+ | "pl-waw-3";
1204
+ export type ListFrontendsRequestOrderBy =
1205
+ | "created_at_asc"
1206
+ | "created_at_desc"
1207
+ | "name_asc"
1208
+ | "name_desc";
1209
+ export interface ListFrontendsRequest {
1210
+ /** The zone you want to target */
1211
+ zone?: ListFrontendsRequestZone | (string & {}) | undefined;
1212
+ /** Load Balancer ID. */
1213
+ lb_id: string;
1214
+ /** Name of the frontend to filter for. */
1215
+ name?: string | undefined;
1216
+ /** Sort order of frontends in the response. */
1217
+ order_by?: ListFrontendsRequestOrderBy | (string & {}) | undefined;
1218
+ /** The page number to return, from the paginated results. */
1219
+ page?: number | undefined;
1220
+ /** Number of frontends to return. */
1221
+ page_size?: number | undefined;
1222
+ }
1223
+ /** List of frontend objects of a given Load Balancer. */
1224
+ export type ListFrontendsResponseFrontendsList = Array<Frontend>;
1225
+ export interface ListFrontendsResponse {
1226
+ /** List of frontend objects of a given Load Balancer. */
1227
+ frontends: ListFrontendsResponseFrontendsList;
1228
+ /** Total count of frontend objects, without pagination. */
1229
+ total_count?: number | undefined;
1230
+ }
1231
+ export type ListIPsRequestZone =
1232
+ | "fr-par-1"
1233
+ | "fr-par-2"
1234
+ | "nl-ams-1"
1235
+ | "nl-ams-2"
1236
+ | "nl-ams-3"
1237
+ | "pl-waw-1"
1238
+ | "pl-waw-2"
1239
+ | "pl-waw-3";
1240
+ export type ListIpsRequestIpType = "all" | "ipv4" | "ipv6";
1241
+ export type ListIPsRequestTagsList = Array<string>;
1242
+ export interface ListIPsRequest {
1243
+ /** The zone you want to target */
1244
+ zone?: ListIPsRequestZone | (string & {}) | undefined;
1245
+ /** The page number to return, from the paginated results. */
1246
+ page?: number | undefined;
1247
+ /** Number of IP addresses to return. */
1248
+ page_size?: number | undefined;
1249
+ /** IP address to filter for. */
1250
+ ip_address?: string | undefined;
1251
+ /** Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned. */
1252
+ organization_id?: string | undefined;
1253
+ /** Project ID to filter for, only Load Balancer IP addresses from this Project will be returned. */
1254
+ project_id?: string | undefined;
1255
+ /** IP type to filter for. */
1256
+ ip_type?: ListIpsRequestIpType | (string & {}) | undefined;
1257
+ /** Tag to filter for, only IPs with one or more matching tags will be returned. */
1258
+ tags?: ListIPsRequestTagsList | undefined;
1259
+ }
1260
+ /** List of IP address objects. */
1261
+ export type ListIpsResponseIpsList = Array<Ip>;
1262
+ export interface ListIpsResponse {
1263
+ /** List of IP address objects. */
1264
+ ips: ListIpsResponseIpsList;
1265
+ /** Total count of IP address objects, without pagination. */
1266
+ total_count?: number | undefined;
1267
+ }
1268
+ export type ListLbPrivateNetworksRequestZone =
1269
+ | "fr-par-1"
1270
+ | "fr-par-2"
1271
+ | "nl-ams-1"
1272
+ | "nl-ams-2"
1273
+ | "nl-ams-3"
1274
+ | "pl-waw-1"
1275
+ | "pl-waw-2"
1276
+ | "pl-waw-3";
1277
+ export type ListPrivateNetworksRequestOrderBy = "created_at_asc" | "created_at_desc";
1278
+ export interface ListLbPrivateNetworksRequest {
1279
+ /** The zone you want to target */
1280
+ zone?: ListLbPrivateNetworksRequestZone | (string & {}) | undefined;
1281
+ /** Load Balancer ID. */
1282
+ lb_id: string;
1283
+ /** Sort order of Private Network objects in the response. */
1284
+ order_by?: ListPrivateNetworksRequestOrderBy | (string & {}) | undefined;
1285
+ /** Number of objects to return. */
1286
+ page_size?: number | undefined;
1287
+ /** The page number to return, from the paginated results. */
1288
+ page?: number | undefined;
1289
+ }
1290
+ /** List of Private Network objects attached to the Load Balancer. */
1291
+ export type ListLbPrivateNetworksResponsePrivateNetworkList = Array<PrivateNetwork>;
1292
+ export interface ListLbPrivateNetworksResponse {
1293
+ /** List of Private Network objects attached to the Load Balancer. */
1294
+ private_network: ListLbPrivateNetworksResponsePrivateNetworkList;
1295
+ /** Total number of objects in the response. */
1296
+ total_count?: number | undefined;
1297
+ }
1298
+ export type ListLbsRequestZone =
1299
+ | "fr-par-1"
1300
+ | "fr-par-2"
1301
+ | "nl-ams-1"
1302
+ | "nl-ams-2"
1303
+ | "nl-ams-3"
1304
+ | "pl-waw-1"
1305
+ | "pl-waw-2"
1306
+ | "pl-waw-3";
1307
+ export type ListLbsRequestOrderBy = "created_at_asc" | "created_at_desc" | "name_asc" | "name_desc";
1308
+ export type ListLbsRequestTagsList = Array<string>;
1309
+ export type ListLbsRequestLbIdsList = Array<string>;
1310
+ export interface ListLbsRequest {
1311
+ /** The zone you want to target */
1312
+ zone?: ListLbsRequestZone | (string & {}) | undefined;
1313
+ /** Load Balancer name to filter for. */
1314
+ name?: string | undefined;
1315
+ /** Sort order of Load Balancers in the response. */
1316
+ order_by?: ListLbsRequestOrderBy | (string & {}) | undefined;
1317
+ /** Number of Load Balancers to return. */
1318
+ page_size?: number | undefined;
1319
+ /** Page number to return, from the paginated results. */
1320
+ page?: number | undefined;
1321
+ /** Organization ID to filter for, only Load Balancers from this Organization will be returned. */
1322
+ organization_id?: string | undefined;
1323
+ /** Project ID to filter for, only Load Balancers from this Project will be returned. */
1324
+ project_id?: string | undefined;
1325
+ /** Filter by tag, only Load Balancers with one or more matching tags will be returned. */
1326
+ tags?: ListLbsRequestTagsList | undefined;
1327
+ /** Filter by lb_ids, only Load Balancers with these IDs will be returned. */
1328
+ lb_ids?: ListLbsRequestLbIdsList | undefined;
1329
+ }
1330
+ /** List of Load Balancer objects. */
1331
+ export type ListLbsResponseLbsList = Array<Lb>;
1332
+ export interface ListLbsResponse {
1333
+ /** List of Load Balancer objects. */
1334
+ lbs: ListLbsResponseLbsList;
1335
+ /** The total number of Load Balancer objects. */
1336
+ total_count?: number | undefined;
1337
+ }
1338
+ export type ListLbTypesRequestZone =
1339
+ | "fr-par-1"
1340
+ | "fr-par-2"
1341
+ | "nl-ams-1"
1342
+ | "nl-ams-2"
1343
+ | "nl-ams-3"
1344
+ | "pl-waw-1"
1345
+ | "pl-waw-2"
1346
+ | "pl-waw-3";
1347
+ export interface ListLbTypesRequest {
1348
+ /** The zone you want to target */
1349
+ zone?: ListLbTypesRequestZone | (string & {}) | undefined;
1350
+ /** The page number to return, from the paginated results. */
1351
+ page?: number | undefined;
1352
+ /** The number of items to return. */
1353
+ page_size?: number | undefined;
1354
+ }
1355
+ export type LbTypeStock = "unknown" | "low_stock" | "out_of_stock" | "available";
1356
+ export interface LbType {
1357
+ /** Load Balancer commercial offer type name. */
1358
+ name?: string | undefined;
1359
+ /** Current stock status for a given Load Balancer type. */
1360
+ stock_status?: LbTypeStock | undefined;
1361
+ /** Maximum bandwidth for a given Load Balancer type. */
1362
+ bandwidth?: number | undefined;
1363
+ /** Ability to handle backend servers outside Scaleway for a given Load Balancer type. */
1364
+ multicloud?: boolean | undefined;
1365
+ /** Load Balancer commercial offer type description. */
1366
+ description?: string | undefined;
1367
+ /** The region the Load Balancer stock is in. */
1368
+ region?: string | undefined;
1369
+ /** The zone the Load Balancer stock is in. */
1370
+ zone?: string | undefined;
1371
+ /** The SRN of the Load Balancer offer type. */
1372
+ srn?: string | undefined;
1373
+ }
1374
+ /** List of Load Balancer commercial offer type objects. */
1375
+ export type ListLbTypesResponseLbTypesList = Array<LbType>;
1376
+ export interface ListLbTypesResponse {
1377
+ /** List of Load Balancer commercial offer type objects. */
1378
+ lb_types: ListLbTypesResponseLbTypesList;
1379
+ /** Total number of Load Balancer offer type objects. */
1380
+ total_count?: number | undefined;
1381
+ }
1382
+ export type ListRoutesRequestZone =
1383
+ | "fr-par-1"
1384
+ | "fr-par-2"
1385
+ | "nl-ams-1"
1386
+ | "nl-ams-2"
1387
+ | "nl-ams-3"
1388
+ | "pl-waw-1"
1389
+ | "pl-waw-2"
1390
+ | "pl-waw-3";
1391
+ export type ListRoutesRequestOrderBy = "created_at_asc" | "created_at_desc";
1392
+ export interface ListRoutesRequest {
1393
+ /** The zone you want to target */
1394
+ zone?: ListRoutesRequestZone | (string & {}) | undefined;
1395
+ /** Sort order of routes in the response. */
1396
+ order_by?: ListRoutesRequestOrderBy | (string & {}) | undefined;
1397
+ /** The number of route objects to return. */
1398
+ page_size?: number | undefined;
1399
+ /** The page number to return, from the paginated results. */
1400
+ page?: number | undefined;
1401
+ /** Frontend ID to filter for, only Routes from this Frontend will be returned. */
1402
+ frontend_id?: string | undefined;
1403
+ }
1404
+ /** List of route objects. */
1405
+ export type ListRoutesResponseRoutesList = Array<Route>;
1406
+ export interface ListRoutesResponse {
1407
+ /** List of route objects. */
1408
+ routes: ListRoutesResponseRoutesList;
1409
+ /** The total number of route objects. */
1410
+ total_count?: number | undefined;
1411
+ }
1412
+ export type ListSubscriberRequestZone =
1413
+ | "fr-par-1"
1414
+ | "fr-par-2"
1415
+ | "nl-ams-1"
1416
+ | "nl-ams-2"
1417
+ | "nl-ams-3"
1418
+ | "pl-waw-1"
1419
+ | "pl-waw-2"
1420
+ | "pl-waw-3";
1421
+ export type ListSubscriberRequestOrderBy =
1422
+ | "created_at_asc"
1423
+ | "created_at_desc"
1424
+ | "name_asc"
1425
+ | "name_desc";
1426
+ export interface ListSubscriberRequest {
1427
+ /** The zone you want to target */
1428
+ zone?: ListSubscriberRequestZone | (string & {}) | undefined;
1429
+ /** Sort order of subscribers in the response. */
1430
+ order_by?: ListSubscriberRequestOrderBy | (string & {}) | undefined;
1431
+ /** The page number to return, from the paginated results. */
1432
+ page?: number | undefined;
1433
+ /** The number of items to return. */
1434
+ page_size?: number | undefined;
1435
+ /** Subscriber name to search for. */
1436
+ name?: string | undefined;
1437
+ /** Filter subscribers by Organization ID. */
1438
+ organization_id?: string | undefined;
1439
+ /** Filter subscribers by Project ID. */
1440
+ project_id?: string | undefined;
1441
+ }
1442
+ /** List of subscriber objects. */
1443
+ export type ListSubscriberResponseSubscribersList = Array<Subscriber>;
1444
+ export interface ListSubscriberResponse {
1445
+ /** List of subscriber objects. */
1446
+ subscribers: ListSubscriberResponseSubscribersList;
1447
+ /** The total number of objects. */
1448
+ total_count?: number | undefined;
1449
+ }
1450
+ export type MigrateLbRequestZone =
1451
+ | "fr-par-1"
1452
+ | "fr-par-2"
1453
+ | "nl-ams-1"
1454
+ | "nl-ams-2"
1455
+ | "nl-ams-3"
1456
+ | "pl-waw-1"
1457
+ | "pl-waw-2"
1458
+ | "pl-waw-3";
1459
+ export interface MigrateLbRequest {
1460
+ /** The zone you want to target */
1461
+ zone?: MigrateLbRequestZone | (string & {}) | undefined;
1462
+ /** Load Balancer ID. */
1463
+ lb_id: string;
1464
+ /** Load Balancer type to migrate to (use the List all Load Balancer offer types endpoint to get a list of available offer types). */
1465
+ type: string;
1466
+ }
1467
+ export type ReleaseIpRequestZone =
1468
+ | "fr-par-1"
1469
+ | "fr-par-2"
1470
+ | "nl-ams-1"
1471
+ | "nl-ams-2"
1472
+ | "nl-ams-3"
1473
+ | "pl-waw-1"
1474
+ | "pl-waw-2"
1475
+ | "pl-waw-3";
1476
+ export interface ReleaseIpRequest {
1477
+ /** The zone you want to target */
1478
+ zone?: ReleaseIpRequestZone | (string & {}) | undefined;
1479
+ /** IP address ID. */
1480
+ ip_id: string;
1481
+ }
1482
+ export interface ReleaseIpResponse {}
1483
+ export type RemoveBackendServersRequestZone =
1484
+ | "fr-par-1"
1485
+ | "fr-par-2"
1486
+ | "nl-ams-1"
1487
+ | "nl-ams-2"
1488
+ | "nl-ams-3"
1489
+ | "pl-waw-1"
1490
+ | "pl-waw-2"
1491
+ | "pl-waw-3";
1492
+ /** List of IP addresses to remove from backend servers. */
1493
+ export type RemoveBackendServersRequestServerIpList = Array<string>;
1494
+ export interface RemoveBackendServersRequest {
1495
+ /** The zone you want to target */
1496
+ zone?: RemoveBackendServersRequestZone | (string & {}) | undefined;
1497
+ /** Backend ID. */
1498
+ backend_id: string;
1499
+ /** List of IP addresses to remove from backend servers. */
1500
+ server_ip: RemoveBackendServersRequestServerIpList;
1501
+ }
1502
+ export type SetAclsRequestZone =
1503
+ | "fr-par-1"
1504
+ | "fr-par-2"
1505
+ | "nl-ams-1"
1506
+ | "nl-ams-2"
1507
+ | "nl-ams-3"
1508
+ | "pl-waw-1"
1509
+ | "pl-waw-2"
1510
+ | "pl-waw-3";
1511
+ export interface AclSpec {
1512
+ /** ACL name. */
1513
+ name: string;
1514
+ /** Action to take when incoming traffic matches an ACL filter. */
1515
+ action: AclAction;
1516
+ /** ACL match filter object. One of `ip_subnet`, `ips_edge_services` or `http_filter` and `http_filter_value` are required. */
1517
+ match?: AclMatch | undefined;
1518
+ /** Priority of this ACL (ACLs are applied in ascending order, 0 is the first ACL executed). */
1519
+ index: number;
1520
+ /** ACL description. */
1521
+ description?: string | undefined;
1522
+ }
1523
+ /** List of ACLs for this frontend. Any other existing ACLs on this frontend will be removed. */
1524
+ export type SetAclsRequestAclsList = Array<AclSpec>;
1525
+ export interface SetAclsRequest {
1526
+ /** The zone you want to target */
1527
+ zone?: SetAclsRequestZone | (string & {}) | undefined;
1528
+ /** Frontend ID. */
1529
+ frontend_id: string;
1530
+ /** List of ACLs for this frontend. Any other existing ACLs on this frontend will be removed. */
1531
+ acls: SetAclsRequestAclsList;
1532
+ }
1533
+ /** List of ACL objects. */
1534
+ export type SetAclsResponseAclsList = Array<Acl>;
1535
+ export interface SetAclsResponse {
1536
+ /** List of ACL objects. */
1537
+ acls?: SetAclsResponseAclsList | undefined;
1538
+ /** The total number of ACL objects. */
1539
+ total_count?: number | undefined;
1540
+ }
1541
+ export type SetBackendServersRequestZone =
1542
+ | "fr-par-1"
1543
+ | "fr-par-2"
1544
+ | "nl-ams-1"
1545
+ | "nl-ams-2"
1546
+ | "nl-ams-3"
1547
+ | "pl-waw-1"
1548
+ | "pl-waw-2"
1549
+ | "pl-waw-3";
1550
+ /** List of IP addresses for backend servers. Any other existing backend servers will be removed. */
1551
+ export type SetBackendServersRequestServerIpList = Array<string>;
1552
+ export interface SetBackendServersRequest {
1553
+ /** The zone you want to target */
1554
+ zone?: SetBackendServersRequestZone | (string & {}) | undefined;
1555
+ /** Backend ID. */
1556
+ backend_id: string;
1557
+ /** List of IP addresses for backend servers. Any other existing backend servers will be removed. */
1558
+ server_ip: SetBackendServersRequestServerIpList;
1559
+ }
1560
+ export type SubscribeToLbRequestZone =
1561
+ | "fr-par-1"
1562
+ | "fr-par-2"
1563
+ | "nl-ams-1"
1564
+ | "nl-ams-2"
1565
+ | "nl-ams-3"
1566
+ | "pl-waw-1"
1567
+ | "pl-waw-2"
1568
+ | "pl-waw-3";
1569
+ export interface SubscribeToLbRequest {
1570
+ /** The zone you want to target */
1571
+ zone?: SubscribeToLbRequestZone | (string & {}) | undefined;
1572
+ /** Load Balancer ID. */
1573
+ lb_id: string;
1574
+ /** Subscriber ID. */
1575
+ subscriber_id: string;
1576
+ }
1577
+ export type UnsubscribeFromLbRequestZone =
1578
+ | "fr-par-1"
1579
+ | "fr-par-2"
1580
+ | "nl-ams-1"
1581
+ | "nl-ams-2"
1582
+ | "nl-ams-3"
1583
+ | "pl-waw-1"
1584
+ | "pl-waw-2"
1585
+ | "pl-waw-3";
1586
+ export interface UnsubscribeFromLbRequest {
1587
+ /** The zone you want to target */
1588
+ zone?: UnsubscribeFromLbRequestZone | (string & {}) | undefined;
1589
+ /** Load Balancer ID. */
1590
+ lb_id: string;
1591
+ }
1592
+ export type UpdateAclRequestZone =
1593
+ | "fr-par-1"
1594
+ | "fr-par-2"
1595
+ | "nl-ams-1"
1596
+ | "nl-ams-2"
1597
+ | "nl-ams-3"
1598
+ | "pl-waw-1"
1599
+ | "pl-waw-2"
1600
+ | "pl-waw-3";
1601
+ export interface UpdateAclRequest {
1602
+ /** The zone you want to target */
1603
+ zone?: UpdateAclRequestZone | (string & {}) | undefined;
1604
+ /** ACL ID. */
1605
+ acl_id: string;
1606
+ /** ACL name. */
1607
+ name: string;
1608
+ /** Action to take when incoming traffic matches an ACL filter. */
1609
+ action: AclAction;
1610
+ /** ACL match filter object. One of `ip_subnet`, `ips_edge_services` or `http_filter` & `http_filter_value` are required. */
1611
+ match?: AclMatch | undefined;
1612
+ /** Priority of this ACL (ACLs are applied in ascending order, 0 is the first ACL executed). */
1613
+ index: number;
1614
+ /** ACL description. */
1615
+ description?: string | null | undefined;
1616
+ }
1617
+ export type UpdateBackendRequestZone =
1618
+ | "fr-par-1"
1619
+ | "fr-par-2"
1620
+ | "nl-ams-1"
1621
+ | "nl-ams-2"
1622
+ | "nl-ams-3"
1623
+ | "pl-waw-1"
1624
+ | "pl-waw-2"
1625
+ | "pl-waw-3";
1626
+ export interface UpdateBackendRequest {
1627
+ /** The zone you want to target */
1628
+ zone?: UpdateBackendRequestZone | (string & {}) | undefined;
1629
+ /** Backend ID. */
1630
+ backend_id: string;
1631
+ /** Backend name. */
1632
+ name: string;
1633
+ /** Protocol to be used by the backend when forwarding traffic to backend servers. */
1634
+ forward_protocol: Protocol | (string & {});
1635
+ /** Port to be used by the backend when forwarding traffic to backend servers. */
1636
+ forward_port: number;
1637
+ /** Load balancing algorithm to be used when determining which backend server to forward new traffic to. */
1638
+ forward_port_algorithm: ForwardPortAlgorithm | (string & {});
1639
+ /** Defines whether to activate sticky sessions (binding a particular session to a particular backend server) and the method to use if so. None disables sticky sessions. Cookie-based uses an HTTP cookie to stick a session to a backend server. Table-based uses the source (client) IP address to stick a session to a backend server. */
1640
+ sticky_sessions: StickySessionsType | (string & {});
1641
+ /** Cookie name for cookie-based sticky sessions. */
1642
+ sticky_sessions_cookie_name?: string | undefined;
1643
+ /** Deprecated in favor of proxy_protocol field. */
1644
+ send_proxy_v2?: boolean | undefined;
1645
+ /** Maximum allowed time for a backend server to process a request. (in milliseconds) */
1646
+ timeout_server?: number | undefined;
1647
+ /** Maximum allowed time for establishing a connection to a backend server. (in milliseconds) */
1648
+ timeout_connect?: number | undefined;
1649
+ /** Maximum allowed tunnel inactivity time after Websocket is established (takes precedence over client and server timeout). (in milliseconds) */
1650
+ timeout_tunnel?: number | undefined;
1651
+ /** Action to take when a backend server is marked as down. */
1652
+ on_marked_down_action?: OnMarkedDownAction | (string & {}) | undefined;
1653
+ /** Protocol to use between the Load Balancer and backend servers. Allows the backend servers to be informed of the client's real IP address. The PROXY protocol must be supported by the backend servers' software. */
1654
+ proxy_protocol?: ProxyProtocol | (string & {}) | undefined;
1655
+ /** Scaleway Object Storage bucket website to be served as failover if all backend servers are down, e.g. failover-website.s3-website.fr-par.scw.cloud. */
1656
+ failover_host?: string | null | undefined;
1657
+ /** Defines whether to enable SSL bridging between the Load Balancer and backend servers. */
1658
+ ssl_bridging?: boolean | null | undefined;
1659
+ /** Defines whether the server certificate verification should be ignored. */
1660
+ ignore_ssl_server_verify?: boolean | null | undefined;
1661
+ /** Whether to use another backend server on each attempt. */
1662
+ redispatch_attempt_count?: number | null | undefined;
1663
+ /** Number of retries when a backend server connection failed. */
1664
+ max_retries?: number | null | undefined;
1665
+ /** Maximum number of connections allowed per backend server. */
1666
+ max_connections?: number | null | undefined;
1667
+ /** Maximum time for a request to be left pending in queue when `max_connections` is reached. (in seconds) */
1668
+ timeout_queue?: string | null | undefined;
1669
+ /** Host value to use when connecting to backend servers. When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. */
1670
+ host?: string | null | undefined;
1671
+ }
1672
+ export type UpdateCertificateRequestZone =
1673
+ | "fr-par-1"
1674
+ | "fr-par-2"
1675
+ | "nl-ams-1"
1676
+ | "nl-ams-2"
1677
+ | "nl-ams-3"
1678
+ | "pl-waw-1"
1679
+ | "pl-waw-2"
1680
+ | "pl-waw-3";
1681
+ export interface UpdateCertificateRequest {
1682
+ /** The zone you want to target */
1683
+ zone?: UpdateCertificateRequestZone | (string & {}) | undefined;
1684
+ /** Certificate ID. */
1685
+ certificate_id: string;
1686
+ /** Certificate name. */
1687
+ name: string;
1688
+ }
1689
+ export type UpdateFrontendRequestZone =
1690
+ | "fr-par-1"
1691
+ | "fr-par-2"
1692
+ | "nl-ams-1"
1693
+ | "nl-ams-2"
1694
+ | "nl-ams-3"
1695
+ | "pl-waw-1"
1696
+ | "pl-waw-2"
1697
+ | "pl-waw-3";
1698
+ /** List of SSL/TLS certificate IDs to bind to the frontend. */
1699
+ export type UpdateFrontendRequestCertificateIdsList = Array<unknown>;
1700
+ export interface UpdateFrontendRequest {
1701
+ /** The zone you want to target */
1702
+ zone?: UpdateFrontendRequestZone | (string & {}) | undefined;
1703
+ /** Frontend ID. */
1704
+ frontend_id: string;
1705
+ /** Frontend name. */
1706
+ name: string;
1707
+ /** Port the frontend should listen on. */
1708
+ inbound_port: number;
1709
+ /** Backend ID (ID of the backend the frontend should pass traffic to). */
1710
+ backend_id: string;
1711
+ /** Maximum allowed inactivity time on the client side. (in milliseconds) */
1712
+ timeout_client?: number | undefined;
1713
+ /** Certificate ID, deprecated in favor of certificate_ids array. */
1714
+ certificate_id?: string | null | undefined;
1715
+ /** List of SSL/TLS certificate IDs to bind to the frontend. */
1716
+ certificate_ids?: UpdateFrontendRequestCertificateIdsList | null | undefined;
1717
+ /** Defines whether to enable HTTP/3 protocol on the frontend. */
1718
+ enable_http3?: boolean | undefined;
1719
+ /** Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. */
1720
+ connection_rate_limit?: number | null | undefined;
1721
+ /** Defines whether to enable access logs on the frontend. */
1722
+ enable_access_logs?: boolean | null | undefined;
1723
+ }
1724
+ export type UpdateHealthCheckRequestZone =
1725
+ | "fr-par-1"
1726
+ | "fr-par-2"
1727
+ | "nl-ams-1"
1728
+ | "nl-ams-2"
1729
+ | "nl-ams-3"
1730
+ | "pl-waw-1"
1731
+ | "pl-waw-2"
1732
+ | "pl-waw-3";
1733
+ export interface UpdateHealthCheckRequest {
1734
+ /** The zone you want to target */
1735
+ zone?: UpdateHealthCheckRequestZone | (string & {}) | undefined;
1736
+ /** Backend ID. */
1737
+ backend_id: string;
1738
+ /** Port to use for the backend server health check. */
1739
+ port: number;
1740
+ /** Time to wait between two consecutive health checks. (in milliseconds) */
1741
+ check_delay: number;
1742
+ /** Maximum time a backend server has to reply to the health check. (in milliseconds) */
1743
+ check_timeout: number;
1744
+ /** Number of consecutive unsuccessful health checks after which the server will be considered dead. */
1745
+ check_max_retries: number;
1746
+ /** Defines whether proxy protocol should be activated for the health check. */
1747
+ check_send_proxy?: boolean | undefined;
1748
+ /** Object to configure a basic TCP health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
1749
+ tcp_config?: unknown | null | undefined;
1750
+ /** Object to configure a MySQL health check. The check requires MySQL >=3.22 or <9.0. For older or newer versions, use a TCP health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
1751
+ mysql_config?: HealthCheckMysqlConfig | null | undefined;
1752
+ /** Object to configure a PostgreSQL health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
1753
+ pgsql_config?: HealthCheckPgsqlConfig | null | undefined;
1754
+ /** Object to configure an LDAP health check. The response is analyzed to find the LDAPv3 response message. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
1755
+ ldap_config?: unknown | null | undefined;
1756
+ /** Object to configure a Redis health check. The response is analyzed to find the +PONG response message. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
1757
+ redis_config?: unknown | null | undefined;
1758
+ /** Object to configure an HTTP health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
1759
+ http_config?: HealthCheckHttpConfig | null | undefined;
1760
+ /** Object to configure an HTTPS health check. Precisely one of tcp_config, mysql_config, pgsql_config, ldap_config, redis_config, http_config, https_config can be set. */
1761
+ https_config?: HealthCheckHttpsConfig | null | undefined;
1762
+ /** Time to wait between two consecutive health checks when a backend server is in a transient state (going UP or DOWN). (in seconds) */
1763
+ transient_check_delay?: string | null | undefined;
1764
+ }
1765
+ export type UpdateIpRequestZone =
1766
+ | "fr-par-1"
1767
+ | "fr-par-2"
1768
+ | "nl-ams-1"
1769
+ | "nl-ams-2"
1770
+ | "nl-ams-3"
1771
+ | "pl-waw-1"
1772
+ | "pl-waw-2"
1773
+ | "pl-waw-3";
1774
+ /** List of tags for the IP. */
1775
+ export type UpdateIpRequestTagsList = Array<unknown>;
1776
+ export interface UpdateIpRequest {
1777
+ /** The zone you want to target */
1778
+ zone?: UpdateIpRequestZone | (string & {}) | undefined;
1779
+ /** IP address ID. */
1780
+ ip_id: string;
1781
+ /** Reverse DNS (domain name) for the IP address. */
1782
+ reverse?: string | null | undefined;
1783
+ /** ID of the server on which to attach the flexible IP. */
1784
+ lb_id?: string | null | undefined;
1785
+ /** List of tags for the IP. */
1786
+ tags?: UpdateIpRequestTagsList | null | undefined;
1787
+ }
1788
+ export type UpdateLbRequestZone =
1789
+ | "fr-par-1"
1790
+ | "fr-par-2"
1791
+ | "nl-ams-1"
1792
+ | "nl-ams-2"
1793
+ | "nl-ams-3"
1794
+ | "pl-waw-1"
1795
+ | "pl-waw-2"
1796
+ | "pl-waw-3";
1797
+ /** List of tags for the Load Balancer. */
1798
+ export type UpdateLbRequestTagsList = Array<string>;
1799
+ export interface UpdateLbRequest {
1800
+ /** The zone you want to target */
1801
+ zone?: UpdateLbRequestZone | (string & {}) | undefined;
1802
+ /** Load Balancer ID. */
1803
+ lb_id: string;
1804
+ /** Load Balancer name. */
1805
+ name: string;
1806
+ /** Load Balancer description. */
1807
+ description: string;
1808
+ /** List of tags for the Load Balancer. */
1809
+ tags?: UpdateLbRequestTagsList | undefined;
1810
+ /** Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems (>= TLS1.2). Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility (= TLS1.3). Old is compatible with a small number of very old clients and should be used only as a last resort (>= TLS1.0). */
1811
+ ssl_compatibility_level?: SSLCompatibilityLevel | (string & {}) | undefined;
1812
+ }
1813
+ export type UpdateRouteRequestZone =
1814
+ | "fr-par-1"
1815
+ | "fr-par-2"
1816
+ | "nl-ams-1"
1817
+ | "nl-ams-2"
1818
+ | "nl-ams-3"
1819
+ | "pl-waw-1"
1820
+ | "pl-waw-2"
1821
+ | "pl-waw-3";
1822
+ export interface UpdateRouteRequest {
1823
+ /** The zone you want to target */
1824
+ zone?: UpdateRouteRequestZone | (string & {}) | undefined;
1825
+ /** Route ID. */
1826
+ route_id: string;
1827
+ /** ID of the target backend for the route. */
1828
+ backend_id?: string | undefined;
1829
+ /** Object defining the match condition for a route to be applied. If an incoming client session matches the specified condition (i.e. it has a matching SNI value or HTTP Host header value), it will be passed to the target backend. */
1830
+ match?: RouteMatch | undefined;
1831
+ }
1832
+ export type UpdateSubscriberRequestZone =
1833
+ | "fr-par-1"
1834
+ | "fr-par-2"
1835
+ | "nl-ams-1"
1836
+ | "nl-ams-2"
1837
+ | "nl-ams-3"
1838
+ | "pl-waw-1"
1839
+ | "pl-waw-2"
1840
+ | "pl-waw-3";
1841
+ export interface UpdateSubscriberRequest {
1842
+ /** The zone you want to target */
1843
+ zone?: UpdateSubscriberRequestZone | (string & {}) | undefined;
1844
+ /** Subscriber ID. */
1845
+ subscriber_id: string;
1846
+ /** Subscriber name. */
1847
+ name: string;
1848
+ /** Email address configuration. Precisely one of email_config, webhook_config can be set. */
1849
+ email_config?: SubscriberEmailConfig | null | undefined;
1850
+ /** Webhook URI configuration. Precisely one of email_config, webhook_config can be set. */
1851
+ webhook_config?: SubscriberWebhookConfig | null | undefined;
1852
+ }
1853
+ export type AddBackendServersError = ScalewayOpError;
1854
+ /** Add a set of backend servers to a given backend For a given backend specified by its backend ID, add a set of backend servers (identified by their IP addresses) it should forward traffic to. These will be appended to any existing set of backend servers for this backend. */
1855
+ export const addBackendServers: API.OperationMethod<
1856
+ AddBackendServersRequest,
1857
+ Backend,
1858
+ AddBackendServersError,
1859
+ ScalewayOpContext
1860
+ > = /*@__PURE__*/ API.make(() => ({
1861
+ input: __S(0, __c0, 0) as any as S.Schema<AddBackendServersRequest>,
1862
+ output: __S(40, __c5, 0) as any as S.Schema<Backend>,
1863
+ errors: [],
1864
+ serviceErrors: ScalewayServiceErrors,
1865
+ protocol: ScalewayProtocol,
1866
+ retry: Retry.Retry,
1867
+ telemetry: TELEMETRY,
1868
+ span: "AddBackendServers",
1869
+ }));
1870
+
1871
+ export type AttachPrivateNetworkError = ScalewayOpError;
1872
+ /** Attach a Load Balancer to a Private Network Attach a specified Load Balancer to a specified Private Network, defining a static or DHCP configuration for the Load Balancer on the network. */
1873
+ export const attachPrivateNetwork: API.OperationMethod<
1874
+ AttachPrivateNetworkRequest,
1875
+ PrivateNetwork,
1876
+ AttachPrivateNetworkError,
1877
+ ScalewayOpContext
1878
+ > = /*@__PURE__*/ API.make(() => ({
1879
+ input: __S(56, __c7, 0) as any as S.Schema<AttachPrivateNetworkRequest>,
1880
+ output: __S(66, __c8, 2) as any as S.Schema<PrivateNetwork>,
1881
+ errors: [],
1882
+ serviceErrors: ScalewayServiceErrors,
1883
+ protocol: ScalewayProtocol,
1884
+ retry: Retry.Retry,
1885
+ telemetry: TELEMETRY,
1886
+ span: "AttachPrivateNetwork",
1887
+ }));
1888
+
1889
+ export type CreateAclError = ScalewayOpError;
1890
+ /** Create an ACL for a given frontend Create a new ACL for a given frontend. Each ACL must have a name, an action to perform (allow or deny), and a match rule (the action is carried out when the incoming traffic matches the rule). */
1891
+ export const createAcl: API.OperationMethod<
1892
+ CreateAclRequest,
1893
+ Acl,
1894
+ CreateAclError,
1895
+ ScalewayOpContext
1896
+ > = /*@__PURE__*/ API.make(() => ({
1897
+ input: __S(160, __c20, 0) as any as S.Schema<CreateAclRequest>,
1898
+ output: __S(172, __c21, 4) as any as S.Schema<Acl>,
1899
+ errors: [],
1900
+ serviceErrors: ScalewayServiceErrors,
1901
+ protocol: ScalewayProtocol,
1902
+ retry: Retry.Retry,
1903
+ telemetry: TELEMETRY,
1904
+ span: "CreateAcl",
1905
+ }));
1906
+
1907
+ export type CreateBackendError = ScalewayOpError;
1908
+ /** Create a backend for a given Load Balancer Create a new backend for a given Load Balancer, specifying its full configuration including protocol, port and forwarding algorithm. */
1909
+ export const createBackend: API.OperationMethod<
1910
+ CreateBackendRequest,
1911
+ Backend,
1912
+ CreateBackendError,
1913
+ ScalewayOpContext
1914
+ > = /*@__PURE__*/ API.make(() => ({
1915
+ input: __S(280, __c35, 0) as any as S.Schema<CreateBackendRequest>,
1916
+ output: __S(40, __c5, 0) as any as S.Schema<Backend>,
1917
+ errors: [],
1918
+ serviceErrors: ScalewayServiceErrors,
1919
+ protocol: ScalewayProtocol,
1920
+ retry: Retry.Retry,
1921
+ telemetry: TELEMETRY,
1922
+ span: "CreateBackend",
1923
+ }));
1924
+
1925
+ export type CreateCertificateError = ScalewayOpError;
1926
+ /** Create an SSL/TLS certificate Generate a new SSL/TLS certificate for a given Load Balancer. You can choose to create a Let's Encrypt certificate, or import a custom certificate. */
1927
+ export const createCertificate: API.OperationMethod<
1928
+ CreateCertificateRequest,
1929
+ Certificate,
1930
+ CreateCertificateError,
1931
+ ScalewayOpContext
1932
+ > = /*@__PURE__*/ API.make(() => ({
1933
+ input: __S(370, __c46, 2) as any as S.Schema<CreateCertificateRequest>,
1934
+ output: __S(176, __c22, 0) as any as S.Schema<Certificate>,
1935
+ errors: [],
1936
+ serviceErrors: ScalewayServiceErrors,
1937
+ protocol: ScalewayProtocol,
1938
+ retry: Retry.Retry,
1939
+ telemetry: TELEMETRY,
1940
+ span: "CreateCertificate",
1941
+ }));
1942
+
1943
+ export type CreateFrontendError = ScalewayOpError;
1944
+ /** Create a frontend in a given Load Balancer Create a new frontend for a given Load Balancer, specifying its configuration including the port it should listen on and the backend to attach it to. */
1945
+ export const createFrontend: API.OperationMethod<
1946
+ CreateFrontendRequest,
1947
+ Frontend,
1948
+ CreateFrontendError,
1949
+ ScalewayOpContext
1950
+ > = /*@__PURE__*/ API.make(() => ({
1951
+ input: __S(456, __c57, 0) as any as S.Schema<CreateFrontendRequest>,
1952
+ output: __S(184, __c23, 0) as any as S.Schema<Frontend>,
1953
+ errors: [],
1954
+ serviceErrors: ScalewayServiceErrors,
1955
+ protocol: ScalewayProtocol,
1956
+ retry: Retry.Retry,
1957
+ telemetry: TELEMETRY,
1958
+ span: "CreateFrontend",
1959
+ }));
1960
+
1961
+ export type CreateIpError = ScalewayOpError;
1962
+ /** Create an IP address Create a new Load Balancer flexible IP address, in the specified Scaleway Project. This can be attached to new Load Balancers created in the future. */
1963
+ export const createIp: API.OperationMethod<CreateIpRequest, Ip, CreateIpError, ScalewayOpContext> =
1964
+ /*@__PURE__*/ API.make(() => ({
1965
+ input: __S(496, __c62, 0) as any as S.Schema<CreateIpRequest>,
1966
+ output: __S(9, __c1, 1) as any as S.Schema<Ip>,
1967
+ errors: [],
1968
+ serviceErrors: ScalewayServiceErrors,
1969
+ protocol: ScalewayProtocol,
1970
+ retry: Retry.Retry,
1971
+ telemetry: TELEMETRY,
1972
+ span: "CreateIp",
1973
+ }));
1974
+
1975
+ export type CreateLbError = ScalewayOpError;
1976
+ /** Create a Load Balancer Create a new Load Balancer. Note that the Load Balancer will be created without frontends or backends; these must be created separately via the dedicated endpoints. */
1977
+ export const createLb: API.OperationMethod<CreateLbRequest, Lb, CreateLbError, ScalewayOpContext> =
1978
+ /*@__PURE__*/ API.make(() => ({
1979
+ input: __S(504, __c63, 0) as any as S.Schema<CreateLbRequest>,
1980
+ output: __S(26, __c3, 2) as any as S.Schema<Lb>,
1981
+ errors: [],
1982
+ serviceErrors: ScalewayServiceErrors,
1983
+ protocol: ScalewayProtocol,
1984
+ retry: Retry.Retry,
1985
+ telemetry: TELEMETRY,
1986
+ span: "CreateLb",
1987
+ }));
1988
+
1989
+ export type CreateRouteError = ScalewayOpError;
1990
+ /** Create a route Create a new route on a given frontend. To configure a route, specify the backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). */
1991
+ export const createRoute: API.OperationMethod<
1992
+ CreateRouteRequest,
1993
+ Route,
1994
+ CreateRouteError,
1995
+ ScalewayOpContext
1996
+ > = /*@__PURE__*/ API.make(() => ({
1997
+ input: __S(512, __c64, 0) as any as S.Schema<CreateRouteRequest>,
1998
+ output: __S(521, __c65, 1) as any as S.Schema<Route>,
1999
+ errors: [],
2000
+ serviceErrors: ScalewayServiceErrors,
2001
+ protocol: ScalewayProtocol,
2002
+ retry: Retry.Retry,
2003
+ telemetry: TELEMETRY,
2004
+ span: "CreateRoute",
2005
+ }));
2006
+
2007
+ export type CreateSubscriberError = ScalewayOpError;
2008
+ /** Create a subscriber Create a new subscriber, either with an email configuration or a webhook configuration, for a specified Scaleway Project. */
2009
+ export const createSubscriber: API.OperationMethod<
2010
+ CreateSubscriberRequest,
2011
+ Subscriber,
2012
+ CreateSubscriberError,
2013
+ ScalewayOpContext
2014
+ > = /*@__PURE__*/ API.make(() => ({
2015
+ input: __S(528, __c66, 0) as any as S.Schema<CreateSubscriberRequest>,
2016
+ output: __S(34, __c4, 2) as any as S.Schema<Subscriber>,
2017
+ errors: [],
2018
+ serviceErrors: ScalewayServiceErrors,
2019
+ protocol: ScalewayProtocol,
2020
+ retry: Retry.Retry,
2021
+ telemetry: TELEMETRY,
2022
+ span: "CreateSubscriber",
2023
+ }));
2024
+
2025
+ export type DeleteAclError = ScalewayOpError;
2026
+ /** Delete an ACL Delete an ACL, specified by its ACL ID. Deleting an ACL is irreversible and cannot be undone. */
2027
+ export const deleteAcl: API.OperationMethod<
2028
+ DeleteAclRequest,
2029
+ DeleteAclResponse,
2030
+ DeleteAclError,
2031
+ ScalewayOpContext
2032
+ > = /*@__PURE__*/ API.make(() => ({
2033
+ input: __S(72, __c9, 0) as any as S.Schema<DeleteAclRequest>,
2034
+ output: __S(80, __c10, 0) as any as S.Schema<DeleteAclResponse>,
2035
+ errors: [],
2036
+ serviceErrors: ScalewayServiceErrors,
2037
+ protocol: ScalewayProtocol,
2038
+ retry: Retry.Retry,
2039
+ telemetry: TELEMETRY,
2040
+ span: "DeleteAcl",
2041
+ }));
2042
+
2043
+ export type DeleteBackendError = ScalewayOpError;
2044
+ /** Delete a backend of a given Load Balancer Delete a backend of a given Load Balancer, specified by its backend ID. This action is irreversible and cannot be undone. */
2045
+ export const deleteBackend: API.OperationMethod<
2046
+ DeleteBackendRequest,
2047
+ DeleteBackendResponse,
2048
+ DeleteBackendError,
2049
+ ScalewayOpContext
2050
+ > = /*@__PURE__*/ API.make(() => ({
2051
+ input: __S(88, __c11, 0) as any as S.Schema<DeleteBackendRequest>,
2052
+ output: __S(80, __c10, 0) as any as S.Schema<DeleteBackendResponse>,
2053
+ errors: [],
2054
+ serviceErrors: ScalewayServiceErrors,
2055
+ protocol: ScalewayProtocol,
2056
+ retry: Retry.Retry,
2057
+ telemetry: TELEMETRY,
2058
+ span: "DeleteBackend",
2059
+ }));
2060
+
2061
+ export type DeleteCertificateError = ScalewayOpError;
2062
+ /** Delete an SSL/TLS certificate Delete an SSL/TLS certificate, specified by its certificate ID. Deleting a certificate is irreversible and cannot be undone. */
2063
+ export const deleteCertificate: API.OperationMethod<
2064
+ DeleteCertificateRequest,
2065
+ DeleteCertificateResponse,
2066
+ DeleteCertificateError,
2067
+ ScalewayOpContext
2068
+ > = /*@__PURE__*/ API.make(() => ({
2069
+ input: __S(96, __c12, 0) as any as S.Schema<DeleteCertificateRequest>,
2070
+ output: __S(80, __c10, 0) as any as S.Schema<DeleteCertificateResponse>,
2071
+ errors: [],
2072
+ serviceErrors: ScalewayServiceErrors,
2073
+ protocol: ScalewayProtocol,
2074
+ retry: Retry.Retry,
2075
+ telemetry: TELEMETRY,
2076
+ span: "DeleteCertificate",
2077
+ }));
2078
+
2079
+ export type DeleteFrontendError = ScalewayOpError;
2080
+ /** Delete a frontend Delete a given frontend, specified by its frontend ID. This action is irreversible and cannot be undone. */
2081
+ export const deleteFrontend: API.OperationMethod<
2082
+ DeleteFrontendRequest,
2083
+ DeleteFrontendResponse,
2084
+ DeleteFrontendError,
2085
+ ScalewayOpContext
2086
+ > = /*@__PURE__*/ API.make(() => ({
2087
+ input: __S(104, __c13, 0) as any as S.Schema<DeleteFrontendRequest>,
2088
+ output: __S(80, __c10, 0) as any as S.Schema<DeleteFrontendResponse>,
2089
+ errors: [],
2090
+ serviceErrors: ScalewayServiceErrors,
2091
+ protocol: ScalewayProtocol,
2092
+ retry: Retry.Retry,
2093
+ telemetry: TELEMETRY,
2094
+ span: "DeleteFrontend",
2095
+ }));
2096
+
2097
+ export type DeleteLbError = ScalewayOpError;
2098
+ /** Delete a Load Balancer Delete an existing Load Balancer, specified by its Load Balancer ID. Deleting a Load Balancer is permanent, and cannot be undone. The Load Balancer's flexible IP address can either be deleted with the Load Balancer, or kept in your account for future use. */
2099
+ export const deleteLb: API.OperationMethod<
2100
+ DeleteLbRequest,
2101
+ DeleteLbResponse,
2102
+ DeleteLbError,
2103
+ ScalewayOpContext
2104
+ > = /*@__PURE__*/ API.make(() => ({
2105
+ input: __S(112, __c14, 0) as any as S.Schema<DeleteLbRequest>,
2106
+ output: __S(80, __c10, 0) as any as S.Schema<DeleteLbResponse>,
2107
+ errors: [],
2108
+ serviceErrors: ScalewayServiceErrors,
2109
+ protocol: ScalewayProtocol,
2110
+ retry: Retry.Retry,
2111
+ telemetry: TELEMETRY,
2112
+ span: "DeleteLb",
2113
+ }));
2114
+
2115
+ export type DeleteRouteError = ScalewayOpError;
2116
+ /** Delete a route Delete an existing route, specified by its route ID. Deleting a route is permanent, and cannot be undone. */
2117
+ export const deleteRoute: API.OperationMethod<
2118
+ DeleteRouteRequest,
2119
+ DeleteRouteResponse,
2120
+ DeleteRouteError,
2121
+ ScalewayOpContext
2122
+ > = /*@__PURE__*/ API.make(() => ({
2123
+ input: __S(120, __c15, 0) as any as S.Schema<DeleteRouteRequest>,
2124
+ output: __S(80, __c10, 0) as any as S.Schema<DeleteRouteResponse>,
2125
+ errors: [],
2126
+ serviceErrors: ScalewayServiceErrors,
2127
+ protocol: ScalewayProtocol,
2128
+ retry: Retry.Retry,
2129
+ telemetry: TELEMETRY,
2130
+ span: "DeleteRoute",
2131
+ }));
2132
+
2133
+ export type DeleteSubscriberError = ScalewayOpError;
2134
+ /** Delete a subscriber Delete an existing subscriber, specified by its subscriber ID. Deleting a subscriber is permanent, and cannot be undone. */
2135
+ export const deleteSubscriber: API.OperationMethod<
2136
+ DeleteSubscriberRequest,
2137
+ DeleteSubscriberResponse,
2138
+ DeleteSubscriberError,
2139
+ ScalewayOpContext
2140
+ > = /*@__PURE__*/ API.make(() => ({
2141
+ input: __S(128, __c16, 0) as any as S.Schema<DeleteSubscriberRequest>,
2142
+ output: __S(80, __c10, 0) as any as S.Schema<DeleteSubscriberResponse>,
2143
+ errors: [],
2144
+ serviceErrors: ScalewayServiceErrors,
2145
+ protocol: ScalewayProtocol,
2146
+ retry: Retry.Retry,
2147
+ telemetry: TELEMETRY,
2148
+ span: "DeleteSubscriber",
2149
+ }));
2150
+
2151
+ export type DetachPrivateNetworkError = ScalewayOpError;
2152
+ /** Detach Load Balancer from Private Network Detach a specified Load Balancer from a specified Private Network. */
2153
+ export const detachPrivateNetwork: API.OperationMethod<
2154
+ DetachPrivateNetworkRequest,
2155
+ DetachPrivateNetworkResponse,
2156
+ DetachPrivateNetworkError,
2157
+ ScalewayOpContext
2158
+ > = /*@__PURE__*/ API.make(() => ({
2159
+ input: __S(136, __c17, 0) as any as S.Schema<DetachPrivateNetworkRequest>,
2160
+ output: __S(80, __c10, 0) as any as S.Schema<DetachPrivateNetworkResponse>,
2161
+ errors: [],
2162
+ serviceErrors: ScalewayServiceErrors,
2163
+ protocol: ScalewayProtocol,
2164
+ retry: Retry.Retry,
2165
+ telemetry: TELEMETRY,
2166
+ span: "DetachPrivateNetwork",
2167
+ }));
2168
+
2169
+ export type GetAclError = ScalewayOpError;
2170
+ /** Get an ACL Get information for a particular ACL, specified by its ACL ID. The response returns full details of the ACL, including its name, action, match rule and frontend. */
2171
+ export const getAcl: API.OperationMethod<GetAclRequest, Acl, GetAclError, ScalewayOpContext> =
2172
+ /*@__PURE__*/ API.make(() => ({
2173
+ input: __S(144, __c18, 0) as any as S.Schema<GetAclRequest>,
2174
+ output: __S(172, __c21, 4) as any as S.Schema<Acl>,
2175
+ errors: [],
2176
+ serviceErrors: ScalewayServiceErrors,
2177
+ protocol: ScalewayProtocol,
2178
+ retry: Retry.Retry,
2179
+ telemetry: TELEMETRY,
2180
+ span: "GetAcl",
2181
+ }));
2182
+
2183
+ export type GetBackendError = ScalewayOpError;
2184
+ /** Get a backend of a given Load Balancer Get the full details of a given backend, specified by its backend ID. The response contains the backend's full configuration parameters including protocol, port and forwarding algorithm. */
2185
+ export const getBackend: API.OperationMethod<
2186
+ GetBackendRequest,
2187
+ Backend,
2188
+ GetBackendError,
2189
+ ScalewayOpContext
2190
+ > = /*@__PURE__*/ API.make(() => ({
2191
+ input: __S(152, __c19, 0) as any as S.Schema<GetBackendRequest>,
2192
+ output: __S(40, __c5, 0) as any as S.Schema<Backend>,
2193
+ errors: [],
2194
+ serviceErrors: ScalewayServiceErrors,
2195
+ protocol: ScalewayProtocol,
2196
+ retry: Retry.Retry,
2197
+ telemetry: TELEMETRY,
2198
+ span: "GetBackend",
2199
+ }));
2200
+
2201
+ export type GetCertificateError = ScalewayOpError;
2202
+ /** Get an SSL/TLS certificate Get information for a particular SSL/TLS certificate, specified by its certificate ID. The response returns full details of the certificate, including its type, main domain name, and alternative domain names. */
2203
+ export const getCertificate: API.OperationMethod<
2204
+ GetCertificateRequest,
2205
+ Certificate,
2206
+ GetCertificateError,
2207
+ ScalewayOpContext
2208
+ > = /*@__PURE__*/ API.make(() => ({
2209
+ input: __S(192, __c24, 0) as any as S.Schema<GetCertificateRequest>,
2210
+ output: __S(176, __c22, 0) as any as S.Schema<Certificate>,
2211
+ errors: [],
2212
+ serviceErrors: ScalewayServiceErrors,
2213
+ protocol: ScalewayProtocol,
2214
+ retry: Retry.Retry,
2215
+ telemetry: TELEMETRY,
2216
+ span: "GetCertificate",
2217
+ }));
2218
+
2219
+ export type GetFrontendError = ScalewayOpError;
2220
+ /** Get a frontend Get the full details of a given frontend, specified by its frontend ID. The response contains the frontend's full configuration parameters including the backend it is attached to, the port it listens on, and any certificates it has. */
2221
+ export const getFrontend: API.OperationMethod<
2222
+ GetFrontendRequest,
2223
+ Frontend,
2224
+ GetFrontendError,
2225
+ ScalewayOpContext
2226
+ > = /*@__PURE__*/ API.make(() => ({
2227
+ input: __S(200, __c25, 0) as any as S.Schema<GetFrontendRequest>,
2228
+ output: __S(184, __c23, 0) as any as S.Schema<Frontend>,
2229
+ errors: [],
2230
+ serviceErrors: ScalewayServiceErrors,
2231
+ protocol: ScalewayProtocol,
2232
+ retry: Retry.Retry,
2233
+ telemetry: TELEMETRY,
2234
+ span: "GetFrontend",
2235
+ }));
2236
+
2237
+ export type GetIpError = ScalewayOpError;
2238
+ /** Get an IP address Retrieve the full details of a Load Balancer flexible IP address. */
2239
+ export const getIp: API.OperationMethod<GetIpRequest, Ip, GetIpError, ScalewayOpContext> =
2240
+ /*@__PURE__*/ API.make(() => ({
2241
+ input: __S(208, __c26, 0) as any as S.Schema<GetIpRequest>,
2242
+ output: __S(9, __c1, 1) as any as S.Schema<Ip>,
2243
+ errors: [],
2244
+ serviceErrors: ScalewayServiceErrors,
2245
+ protocol: ScalewayProtocol,
2246
+ retry: Retry.Retry,
2247
+ telemetry: TELEMETRY,
2248
+ span: "GetIp",
2249
+ }));
2250
+
2251
+ export type GetLbError = ScalewayOpError;
2252
+ /** Get a Load Balancer Retrieve information about an existing Load Balancer, specified by its Load Balancer ID. Its full details, including name, status and IP address, are returned in the response object. */
2253
+ export const getLb: API.OperationMethod<GetLbRequest, Lb, GetLbError, ScalewayOpContext> =
2254
+ /*@__PURE__*/ API.make(() => ({
2255
+ input: __S(216, __c27, 0) as any as S.Schema<GetLbRequest>,
2256
+ output: __S(26, __c3, 2) as any as S.Schema<Lb>,
2257
+ errors: [],
2258
+ serviceErrors: ScalewayServiceErrors,
2259
+ protocol: ScalewayProtocol,
2260
+ retry: Retry.Retry,
2261
+ telemetry: TELEMETRY,
2262
+ span: "GetLb",
2263
+ }));
2264
+
2265
+ export type GetRouteError = ScalewayOpError;
2266
+ /** Get a route Retrieve information about an existing route, specified by its route ID. Its full details, origin frontend, target backend and match condition, are returned in the response object. */
2267
+ export const getRoute: API.OperationMethod<
2268
+ GetRouteRequest,
2269
+ Route,
2270
+ GetRouteError,
2271
+ ScalewayOpContext
2272
+ > = /*@__PURE__*/ API.make(() => ({
2273
+ input: __S(224, __c28, 0) as any as S.Schema<GetRouteRequest>,
2274
+ output: __S(521, __c65, 1) as any as S.Schema<Route>,
2275
+ errors: [],
2276
+ serviceErrors: ScalewayServiceErrors,
2277
+ protocol: ScalewayProtocol,
2278
+ retry: Retry.Retry,
2279
+ telemetry: TELEMETRY,
2280
+ span: "GetRoute",
2281
+ }));
2282
+
2283
+ export type GetSubscriberError = ScalewayOpError;
2284
+ /** Get a subscriber Retrieve information about an existing subscriber, specified by its subscriber ID. Its full details, including name and email/webhook configuration, are returned in the response object. */
2285
+ export const getSubscriber: API.OperationMethod<
2286
+ GetSubscriberRequest,
2287
+ Subscriber,
2288
+ GetSubscriberError,
2289
+ ScalewayOpContext
2290
+ > = /*@__PURE__*/ API.make(() => ({
2291
+ input: __S(232, __c29, 0) as any as S.Schema<GetSubscriberRequest>,
2292
+ output: __S(34, __c4, 2) as any as S.Schema<Subscriber>,
2293
+ errors: [],
2294
+ serviceErrors: ScalewayServiceErrors,
2295
+ protocol: ScalewayProtocol,
2296
+ retry: Retry.Retry,
2297
+ telemetry: TELEMETRY,
2298
+ span: "GetSubscriber",
2299
+ }));
2300
+
2301
+ export type ListAclsError = ScalewayOpError;
2302
+ /** List ACLs for a given frontend List the ACLs for a given frontend, specified by its frontend ID. The response is an array of ACL objects, each one representing an ACL that denies or allows traffic based on certain conditions. */
2303
+ export const listAcls: API.PaginatedOperationMethod<
2304
+ ListAclsRequest,
2305
+ ListAclResponse,
2306
+ ListAclsError,
2307
+ ScalewayOpContext,
2308
+ Acl
2309
+ > = /*@__PURE__*/ API.makePaginated(
2310
+ () => ({
2311
+ input: __S(240, __c30, 0) as any as S.Schema<ListAclsRequest>,
2312
+ output: __S(241, __c30, 1) as any as S.Schema<ListAclResponse>,
2313
+ errors: [],
2314
+ serviceErrors: ScalewayServiceErrors,
2315
+ protocol: ScalewayProtocol,
2316
+ retry: Retry.Retry,
2317
+ telemetry: TELEMETRY,
2318
+ span: "ListAcls",
2319
+ pagination: {
2320
+ mode: "page",
2321
+ inputToken: "page",
2322
+ outputToken: "total_count",
2323
+ items: "acls",
2324
+ pageSize: "page_size",
2325
+ } as const,
2326
+ }),
2327
+ paginateByTotalCount,
2328
+ ) as any;
2329
+
2330
+ export type ListBackendsError = ScalewayOpError;
2331
+ /** List the backends of a given Load Balancer List all the backends of a Load Balancer, specified by its Load Balancer ID. By default, results are returned in ascending order by the creation date of each backend. The response is an array of backend objects, containing full details of each one including their configuration parameters such as protocol, port and forwarding algorithm. */
2332
+ export const listBackends: API.PaginatedOperationMethod<
2333
+ ListBackendsRequest,
2334
+ ListBackendsResponse,
2335
+ ListBackendsError,
2336
+ ScalewayOpContext,
2337
+ Backend
2338
+ > = /*@__PURE__*/ API.makePaginated(
2339
+ () => ({
2340
+ input: __S(256, __c32, 0) as any as S.Schema<ListBackendsRequest>,
2341
+ output: __S(258, __c32, 2) as any as S.Schema<ListBackendsResponse>,
2342
+ errors: [],
2343
+ serviceErrors: ScalewayServiceErrors,
2344
+ protocol: ScalewayProtocol,
2345
+ retry: Retry.Retry,
2346
+ telemetry: TELEMETRY,
2347
+ span: "ListBackends",
2348
+ pagination: {
2349
+ mode: "page",
2350
+ inputToken: "page",
2351
+ outputToken: "total_count",
2352
+ items: "backends",
2353
+ pageSize: "page_size",
2354
+ } as const,
2355
+ }),
2356
+ paginateByTotalCount,
2357
+ ) as any;
2358
+
2359
+ export type ListBackendStatsError = ScalewayOpError;
2360
+ /** List backend server statistics List information about your backend servers, including their state and the result of their last health check. */
2361
+ export const listBackendStats: API.PaginatedOperationMethod<
2362
+ ListBackendStatsRequest,
2363
+ ListBackendStatsResponse,
2364
+ ListBackendStatsError,
2365
+ ScalewayOpContext,
2366
+ BackendServerStats
2367
+ > = /*@__PURE__*/ API.makePaginated(
2368
+ () => ({
2369
+ input: __S(264, __c33, 0) as any as S.Schema<ListBackendStatsRequest>,
2370
+ output: __S(267, __c33, 3) as any as S.Schema<ListBackendStatsResponse>,
2371
+ errors: [],
2372
+ serviceErrors: ScalewayServiceErrors,
2373
+ protocol: ScalewayProtocol,
2374
+ retry: Retry.Retry,
2375
+ telemetry: TELEMETRY,
2376
+ span: "ListBackendStats",
2377
+ pagination: {
2378
+ mode: "page",
2379
+ inputToken: "page",
2380
+ outputToken: "total_count",
2381
+ items: "backend_servers_stats",
2382
+ pageSize: "page_size",
2383
+ } as const,
2384
+ }),
2385
+ paginateByTotalCount,
2386
+ ) as any;
2387
+
2388
+ export type ListCertificatesError = ScalewayOpError;
2389
+ /** List all SSL/TLS certificates on a given Load Balancer List all the SSL/TLS certificates on a given Load Balancer. The response is an array of certificate objects, which are by default listed in ascending order of creation date. */
2390
+ export const listCertificates: API.PaginatedOperationMethod<
2391
+ ListCertificatesRequest,
2392
+ ListCertificatesResponse,
2393
+ ListCertificatesError,
2394
+ ScalewayOpContext,
2395
+ Certificate
2396
+ > = /*@__PURE__*/ API.makePaginated(
2397
+ () => ({
2398
+ input: __S(272, __c34, 0) as any as S.Schema<ListCertificatesRequest>,
2399
+ output: __S(274, __c34, 2) as any as S.Schema<ListCertificatesResponse>,
2400
+ errors: [],
2401
+ serviceErrors: ScalewayServiceErrors,
2402
+ protocol: ScalewayProtocol,
2403
+ retry: Retry.Retry,
2404
+ telemetry: TELEMETRY,
2405
+ span: "ListCertificates",
2406
+ pagination: {
2407
+ mode: "page",
2408
+ inputToken: "page",
2409
+ outputToken: "total_count",
2410
+ items: "certificates",
2411
+ pageSize: "page_size",
2412
+ } as const,
2413
+ }),
2414
+ paginateByTotalCount,
2415
+ ) as any;
2416
+
2417
+ export type ListFrontendsError = ScalewayOpError;
2418
+ /** List frontends of a given Load Balancer List all the frontends of a Load Balancer, specified by its Load Balancer ID. By default, results are returned in ascending order by the creation date of each frontend. The response is an array of frontend objects, containing full details of each one including the port they listen on and the backend they are attached to. */
2419
+ export const listFrontends: API.PaginatedOperationMethod<
2420
+ ListFrontendsRequest,
2421
+ ListFrontendsResponse,
2422
+ ListFrontendsError,
2423
+ ScalewayOpContext,
2424
+ Frontend
2425
+ > = /*@__PURE__*/ API.makePaginated(
2426
+ () => ({
2427
+ input: __S(288, __c36, 0) as any as S.Schema<ListFrontendsRequest>,
2428
+ output: __S(290, __c36, 2) as any as S.Schema<ListFrontendsResponse>,
2429
+ errors: [],
2430
+ serviceErrors: ScalewayServiceErrors,
2431
+ protocol: ScalewayProtocol,
2432
+ retry: Retry.Retry,
2433
+ telemetry: TELEMETRY,
2434
+ span: "ListFrontends",
2435
+ pagination: {
2436
+ mode: "page",
2437
+ inputToken: "page",
2438
+ outputToken: "total_count",
2439
+ items: "frontends",
2440
+ pageSize: "page_size",
2441
+ } as const,
2442
+ }),
2443
+ paginateByTotalCount,
2444
+ ) as any;
2445
+
2446
+ export type ListIPsError = ScalewayOpError;
2447
+ /** List IP addresses List the Load Balancer flexible IP addresses held in the account (filtered by Organization ID or Project ID). It is also possible to search for a specific IP address. */
2448
+ export const listIPs: API.PaginatedOperationMethod<
2449
+ ListIPsRequest,
2450
+ ListIpsResponse,
2451
+ ListIPsError,
2452
+ ScalewayOpContext,
2453
+ Ip
2454
+ > = /*@__PURE__*/ API.makePaginated(
2455
+ () => ({
2456
+ input: __S(296, __c37, 0) as any as S.Schema<ListIPsRequest>,
2457
+ output: __S(297, __c37, 1) as any as S.Schema<ListIpsResponse>,
2458
+ errors: [],
2459
+ serviceErrors: ScalewayServiceErrors,
2460
+ protocol: ScalewayProtocol,
2461
+ retry: Retry.Retry,
2462
+ telemetry: TELEMETRY,
2463
+ span: "ListIPs",
2464
+ pagination: {
2465
+ mode: "page",
2466
+ inputToken: "page",
2467
+ outputToken: "total_count",
2468
+ items: "ips",
2469
+ pageSize: "page_size",
2470
+ } as const,
2471
+ }),
2472
+ paginateByTotalCount,
2473
+ ) as any;
2474
+
2475
+ export type ListLbPrivateNetworksError = ScalewayOpError;
2476
+ /** List Private Networks attached to a Load Balancer List the Private Networks attached to a given Load Balancer, specified by its Load Balancer ID. The response is an array of Private Network objects, giving information including the status, configuration, name and creation date of each Private Network. */
2477
+ export const listLbPrivateNetworks: API.PaginatedOperationMethod<
2478
+ ListLbPrivateNetworksRequest,
2479
+ ListLbPrivateNetworksResponse,
2480
+ ListLbPrivateNetworksError,
2481
+ ScalewayOpContext,
2482
+ PrivateNetwork
2483
+ > = /*@__PURE__*/ API.makePaginated(
2484
+ () => ({
2485
+ input: __S(304, __c38, 0) as any as S.Schema<ListLbPrivateNetworksRequest>,
2486
+ output: __S(306, __c38, 2) as any as S.Schema<ListLbPrivateNetworksResponse>,
2487
+ errors: [],
2488
+ serviceErrors: ScalewayServiceErrors,
2489
+ protocol: ScalewayProtocol,
2490
+ retry: Retry.Retry,
2491
+ telemetry: TELEMETRY,
2492
+ span: "ListLbPrivateNetworks",
2493
+ pagination: {
2494
+ mode: "page",
2495
+ inputToken: "page",
2496
+ outputToken: "total_count",
2497
+ items: "private_network",
2498
+ pageSize: "page_size",
2499
+ } as const,
2500
+ }),
2501
+ paginateByTotalCount,
2502
+ ) as any;
2503
+
2504
+ export type ListLbsError = ScalewayOpError;
2505
+ /** List Load Balancers List all Load Balancers in the specified zone, for a Scaleway Organization or Scaleway Project. By default, the Load Balancers returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
2506
+ export const listLbs: API.PaginatedOperationMethod<
2507
+ ListLbsRequest,
2508
+ ListLbsResponse,
2509
+ ListLbsError,
2510
+ ScalewayOpContext,
2511
+ Lb
2512
+ > = /*@__PURE__*/ API.makePaginated(
2513
+ () => ({
2514
+ input: __S(312, __c39, 0) as any as S.Schema<ListLbsRequest>,
2515
+ output: __S(314, __c39, 2) as any as S.Schema<ListLbsResponse>,
2516
+ errors: [],
2517
+ serviceErrors: ScalewayServiceErrors,
2518
+ protocol: ScalewayProtocol,
2519
+ retry: Retry.Retry,
2520
+ telemetry: TELEMETRY,
2521
+ span: "ListLbs",
2522
+ pagination: {
2523
+ mode: "page",
2524
+ inputToken: "page",
2525
+ outputToken: "total_count",
2526
+ items: "lbs",
2527
+ pageSize: "page_size",
2528
+ } as const,
2529
+ }),
2530
+ paginateByTotalCount,
2531
+ ) as any;
2532
+
2533
+ export type ListLbTypesError = ScalewayOpError;
2534
+ /** List all Load Balancer offer types List all the different commercial Load Balancer types. The response includes an array of offer types, each with a name, description, and information about its stock availability. */
2535
+ export const listLbTypes: API.PaginatedOperationMethod<
2536
+ ListLbTypesRequest,
2537
+ ListLbTypesResponse,
2538
+ ListLbTypesError,
2539
+ ScalewayOpContext,
2540
+ LbType
2541
+ > = /*@__PURE__*/ API.makePaginated(
2542
+ () => ({
2543
+ input: __S(320, __c40, 0) as any as S.Schema<ListLbTypesRequest>,
2544
+ output: __S(323, __c40, 3) as any as S.Schema<ListLbTypesResponse>,
2545
+ errors: [],
2546
+ serviceErrors: ScalewayServiceErrors,
2547
+ protocol: ScalewayProtocol,
2548
+ retry: Retry.Retry,
2549
+ telemetry: TELEMETRY,
2550
+ span: "ListLbTypes",
2551
+ pagination: {
2552
+ mode: "page",
2553
+ inputToken: "page",
2554
+ outputToken: "total_count",
2555
+ items: "lb_types",
2556
+ pageSize: "page_size",
2557
+ } as const,
2558
+ }),
2559
+ paginateByTotalCount,
2560
+ ) as any;
2561
+
2562
+ export type ListRoutesError = ScalewayOpError;
2563
+ /** List all routes List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). */
2564
+ export const listRoutes: API.PaginatedOperationMethod<
2565
+ ListRoutesRequest,
2566
+ ListRoutesResponse,
2567
+ ListRoutesError,
2568
+ ScalewayOpContext,
2569
+ Route
2570
+ > = /*@__PURE__*/ API.makePaginated(
2571
+ () => ({
2572
+ input: __S(328, __c41, 0) as any as S.Schema<ListRoutesRequest>,
2573
+ output: __S(330, __c41, 2) as any as S.Schema<ListRoutesResponse>,
2574
+ errors: [],
2575
+ serviceErrors: ScalewayServiceErrors,
2576
+ protocol: ScalewayProtocol,
2577
+ retry: Retry.Retry,
2578
+ telemetry: TELEMETRY,
2579
+ span: "ListRoutes",
2580
+ pagination: {
2581
+ mode: "page",
2582
+ inputToken: "page",
2583
+ outputToken: "total_count",
2584
+ items: "routes",
2585
+ pageSize: "page_size",
2586
+ } as const,
2587
+ }),
2588
+ paginateByTotalCount,
2589
+ ) as any;
2590
+
2591
+ export type ListSubscriberError = ScalewayOpError;
2592
+ /** List all subscribers List all subscribers to Load Balancer alerts. By default, returns all subscribers to Load Balancer alerts for the Organization associated with the authentication token used for the request. */
2593
+ export const listSubscriber: API.PaginatedOperationMethod<
2594
+ ListSubscriberRequest,
2595
+ ListSubscriberResponse,
2596
+ ListSubscriberError,
2597
+ ScalewayOpContext,
2598
+ Subscriber
2599
+ > = /*@__PURE__*/ API.makePaginated(
2600
+ () => ({
2601
+ input: __S(336, __c42, 0) as any as S.Schema<ListSubscriberRequest>,
2602
+ output: __S(338, __c42, 2) as any as S.Schema<ListSubscriberResponse>,
2603
+ errors: [],
2604
+ serviceErrors: ScalewayServiceErrors,
2605
+ protocol: ScalewayProtocol,
2606
+ retry: Retry.Retry,
2607
+ telemetry: TELEMETRY,
2608
+ span: "ListSubscriber",
2609
+ pagination: {
2610
+ mode: "page",
2611
+ inputToken: "page",
2612
+ outputToken: "total_count",
2613
+ items: "subscribers",
2614
+ pageSize: "page_size",
2615
+ } as const,
2616
+ }),
2617
+ paginateByTotalCount,
2618
+ ) as any;
2619
+
2620
+ export type MigrateLbError = ScalewayOpError;
2621
+ /** Migrate a Load Balancer Migrate an existing Load Balancer from one commercial type to another. Allows you to scale your Load Balancer up or down in terms of bandwidth or multi-cloud provision. */
2622
+ export const migrateLb: API.OperationMethod<
2623
+ MigrateLbRequest,
2624
+ Lb,
2625
+ MigrateLbError,
2626
+ ScalewayOpContext
2627
+ > = /*@__PURE__*/ API.make(() => ({
2628
+ input: __S(344, __c43, 0) as any as S.Schema<MigrateLbRequest>,
2629
+ output: __S(26, __c3, 2) as any as S.Schema<Lb>,
2630
+ errors: [],
2631
+ serviceErrors: ScalewayServiceErrors,
2632
+ protocol: ScalewayProtocol,
2633
+ retry: Retry.Retry,
2634
+ telemetry: TELEMETRY,
2635
+ span: "MigrateLb",
2636
+ }));
2637
+
2638
+ export type ReleaseIpError = ScalewayOpError;
2639
+ /** Delete an IP address Delete a Load Balancer flexible IP address. This action is irreversible, and cannot be undone. */
2640
+ export const releaseIp: API.OperationMethod<
2641
+ ReleaseIpRequest,
2642
+ ReleaseIpResponse,
2643
+ ReleaseIpError,
2644
+ ScalewayOpContext
2645
+ > = /*@__PURE__*/ API.make(() => ({
2646
+ input: __S(352, __c44, 0) as any as S.Schema<ReleaseIpRequest>,
2647
+ output: __S(80, __c10, 0) as any as S.Schema<ReleaseIpResponse>,
2648
+ errors: [],
2649
+ serviceErrors: ScalewayServiceErrors,
2650
+ protocol: ScalewayProtocol,
2651
+ retry: Retry.Retry,
2652
+ telemetry: TELEMETRY,
2653
+ span: "ReleaseIp",
2654
+ }));
2655
+
2656
+ export type RemoveBackendServersError = ScalewayOpError;
2657
+ /** Remove a set of servers for a given backend For a given backend specified by its backend ID, remove the specified backend servers (identified by their IP addresses) so that it no longer forwards traffic to them. */
2658
+ export const removeBackendServers: API.OperationMethod<
2659
+ RemoveBackendServersRequest,
2660
+ Backend,
2661
+ RemoveBackendServersError,
2662
+ ScalewayOpContext
2663
+ > = /*@__PURE__*/ API.make(() => ({
2664
+ input: __S(360, __c45, 0) as any as S.Schema<RemoveBackendServersRequest>,
2665
+ output: __S(40, __c5, 0) as any as S.Schema<Backend>,
2666
+ errors: [],
2667
+ serviceErrors: ScalewayServiceErrors,
2668
+ protocol: ScalewayProtocol,
2669
+ retry: Retry.Retry,
2670
+ telemetry: TELEMETRY,
2671
+ span: "RemoveBackendServers",
2672
+ }));
2673
+
2674
+ export type SetAclsError = ScalewayOpError;
2675
+ /** Define all ACLs for a given frontend For a given frontend specified by its frontend ID, define and add the complete set of ACLS for that frontend. Any existing ACLs on this frontend will be removed. */
2676
+ export const setAcls: API.OperationMethod<
2677
+ SetAclsRequest,
2678
+ SetAclsResponse,
2679
+ SetAclsError,
2680
+ ScalewayOpContext
2681
+ > = /*@__PURE__*/ API.make(() => ({
2682
+ input: __S(378, __c47, 2) as any as S.Schema<SetAclsRequest>,
2683
+ output: __S(379, __c47, 3) as any as S.Schema<SetAclsResponse>,
2684
+ errors: [],
2685
+ serviceErrors: ScalewayServiceErrors,
2686
+ protocol: ScalewayProtocol,
2687
+ retry: Retry.Retry,
2688
+ telemetry: TELEMETRY,
2689
+ span: "SetAcls",
2690
+ }));
2691
+
2692
+ export type SetBackendServersError = ScalewayOpError;
2693
+ /** Define all backend servers for a given backend For a given backend specified by its backend ID, define the set of backend servers (identified by their IP addresses) that it should forward traffic to. Any existing backend servers configured for this backend will be removed. */
2694
+ export const setBackendServers: API.OperationMethod<
2695
+ SetBackendServersRequest,
2696
+ Backend,
2697
+ SetBackendServersError,
2698
+ ScalewayOpContext
2699
+ > = /*@__PURE__*/ API.make(() => ({
2700
+ input: __S(384, __c48, 0) as any as S.Schema<SetBackendServersRequest>,
2701
+ output: __S(40, __c5, 0) as any as S.Schema<Backend>,
2702
+ errors: [],
2703
+ serviceErrors: ScalewayServiceErrors,
2704
+ protocol: ScalewayProtocol,
2705
+ retry: Retry.Retry,
2706
+ telemetry: TELEMETRY,
2707
+ span: "SetBackendServers",
2708
+ }));
2709
+
2710
+ export type SubscribeToLbError = ScalewayOpError;
2711
+ /** Subscribe a subscriber to alerts for a given Load Balancer Subscribe an existing subscriber to alerts for a given Load Balancer. */
2712
+ export const subscribeToLb: API.OperationMethod<
2713
+ SubscribeToLbRequest,
2714
+ Lb,
2715
+ SubscribeToLbError,
2716
+ ScalewayOpContext
2717
+ > = /*@__PURE__*/ API.make(() => ({
2718
+ input: __S(392, __c49, 0) as any as S.Schema<SubscribeToLbRequest>,
2719
+ output: __S(26, __c3, 2) as any as S.Schema<Lb>,
2720
+ errors: [],
2721
+ serviceErrors: ScalewayServiceErrors,
2722
+ protocol: ScalewayProtocol,
2723
+ retry: Retry.Retry,
2724
+ telemetry: TELEMETRY,
2725
+ span: "SubscribeToLb",
2726
+ }));
2727
+
2728
+ export type UnsubscribeFromLbError = ScalewayOpError;
2729
+ /** Unsubscribe a subscriber from alerts for a given Load Balancer Unsubscribe a subscriber from alerts for a given Load Balancer. The subscriber is not deleted, and can be resubscribed in the future if necessary. */
2730
+ export const unsubscribeFromLb: API.OperationMethod<
2731
+ UnsubscribeFromLbRequest,
2732
+ Lb,
2733
+ UnsubscribeFromLbError,
2734
+ ScalewayOpContext
2735
+ > = /*@__PURE__*/ API.make(() => ({
2736
+ input: __S(400, __c50, 0) as any as S.Schema<UnsubscribeFromLbRequest>,
2737
+ output: __S(26, __c3, 2) as any as S.Schema<Lb>,
2738
+ errors: [],
2739
+ serviceErrors: ScalewayServiceErrors,
2740
+ protocol: ScalewayProtocol,
2741
+ retry: Retry.Retry,
2742
+ telemetry: TELEMETRY,
2743
+ span: "UnsubscribeFromLb",
2744
+ }));
2745
+
2746
+ export type UpdateAclError = ScalewayOpError;
2747
+ /** Update an ACL Update a particular ACL, specified by its ACL ID. You can update details including its name, action and match rule. */
2748
+ export const updateAcl: API.OperationMethod<
2749
+ UpdateAclRequest,
2750
+ Acl,
2751
+ UpdateAclError,
2752
+ ScalewayOpContext
2753
+ > = /*@__PURE__*/ API.make(() => ({
2754
+ input: __S(408, __c51, 0) as any as S.Schema<UpdateAclRequest>,
2755
+ output: __S(172, __c21, 4) as any as S.Schema<Acl>,
2756
+ errors: [],
2757
+ serviceErrors: ScalewayServiceErrors,
2758
+ protocol: ScalewayProtocol,
2759
+ retry: Retry.Retry,
2760
+ telemetry: TELEMETRY,
2761
+ span: "UpdateAcl",
2762
+ }));
2763
+
2764
+ export type UpdateBackendError = ScalewayOpError;
2765
+ /** Update a backend of a given Load Balancer Update a backend of a given Load Balancer, specified by its backend ID. Note that the request type is PUT and not PATCH. You must set all parameters. */
2766
+ export const updateBackend: API.OperationMethod<
2767
+ UpdateBackendRequest,
2768
+ Backend,
2769
+ UpdateBackendError,
2770
+ ScalewayOpContext
2771
+ > = /*@__PURE__*/ API.make(() => ({
2772
+ input: __S(416, __c52, 0) as any as S.Schema<UpdateBackendRequest>,
2773
+ output: __S(40, __c5, 0) as any as S.Schema<Backend>,
2774
+ errors: [],
2775
+ serviceErrors: ScalewayServiceErrors,
2776
+ protocol: ScalewayProtocol,
2777
+ retry: Retry.Retry,
2778
+ telemetry: TELEMETRY,
2779
+ span: "UpdateBackend",
2780
+ }));
2781
+
2782
+ export type UpdateCertificateError = ScalewayOpError;
2783
+ /** Update an SSL/TLS certificate Update the name of a particular SSL/TLS certificate, specified by its certificate ID. */
2784
+ export const updateCertificate: API.OperationMethod<
2785
+ UpdateCertificateRequest,
2786
+ Certificate,
2787
+ UpdateCertificateError,
2788
+ ScalewayOpContext
2789
+ > = /*@__PURE__*/ API.make(() => ({
2790
+ input: __S(424, __c53, 0) as any as S.Schema<UpdateCertificateRequest>,
2791
+ output: __S(176, __c22, 0) as any as S.Schema<Certificate>,
2792
+ errors: [],
2793
+ serviceErrors: ScalewayServiceErrors,
2794
+ protocol: ScalewayProtocol,
2795
+ retry: Retry.Retry,
2796
+ telemetry: TELEMETRY,
2797
+ span: "UpdateCertificate",
2798
+ }));
2799
+
2800
+ export type UpdateFrontendError = ScalewayOpError;
2801
+ /** Update a frontend Update a given frontend, specified by its frontend ID. You can update configuration parameters including its name and the port it listens on. Note that the request type is PUT and not PATCH. You must set all parameters. */
2802
+ export const updateFrontend: API.OperationMethod<
2803
+ UpdateFrontendRequest,
2804
+ Frontend,
2805
+ UpdateFrontendError,
2806
+ ScalewayOpContext
2807
+ > = /*@__PURE__*/ API.make(() => ({
2808
+ input: __S(432, __c54, 0) as any as S.Schema<UpdateFrontendRequest>,
2809
+ output: __S(184, __c23, 0) as any as S.Schema<Frontend>,
2810
+ errors: [],
2811
+ serviceErrors: ScalewayServiceErrors,
2812
+ protocol: ScalewayProtocol,
2813
+ retry: Retry.Retry,
2814
+ telemetry: TELEMETRY,
2815
+ span: "UpdateFrontend",
2816
+ }));
2817
+
2818
+ export type UpdateHealthCheckError = ScalewayOpError;
2819
+ /** Update a health check for a given backend Update the configuration of the health check performed by a given backend to verify the health of its backend servers, identified by its backend ID. Note that the request type is PUT and not PATCH. You must set all parameters. */
2820
+ export const updateHealthCheck: API.OperationMethod<
2821
+ UpdateHealthCheckRequest,
2822
+ HealthCheck,
2823
+ UpdateHealthCheckError,
2824
+ ScalewayOpContext
2825
+ > = /*@__PURE__*/ API.make(() => ({
2826
+ input: __S(440, __c55, 0) as any as S.Schema<UpdateHealthCheckRequest>,
2827
+ output: __S(51, __c6, 3) as any as S.Schema<HealthCheck>,
2828
+ errors: [],
2829
+ serviceErrors: ScalewayServiceErrors,
2830
+ protocol: ScalewayProtocol,
2831
+ retry: Retry.Retry,
2832
+ telemetry: TELEMETRY,
2833
+ span: "UpdateHealthCheck",
2834
+ }));
2835
+
2836
+ export type UpdateIpError = ScalewayOpError;
2837
+ /** Update an IP address Update the reverse DNS of a Load Balancer flexible IP address. */
2838
+ export const updateIp: API.OperationMethod<UpdateIpRequest, Ip, UpdateIpError, ScalewayOpContext> =
2839
+ /*@__PURE__*/ API.make(() => ({
2840
+ input: __S(448, __c56, 0) as any as S.Schema<UpdateIpRequest>,
2841
+ output: __S(9, __c1, 1) as any as S.Schema<Ip>,
2842
+ errors: [],
2843
+ serviceErrors: ScalewayServiceErrors,
2844
+ protocol: ScalewayProtocol,
2845
+ retry: Retry.Retry,
2846
+ telemetry: TELEMETRY,
2847
+ span: "UpdateIp",
2848
+ }));
2849
+
2850
+ export type UpdateLbError = ScalewayOpError;
2851
+ /** Update a Load Balancer Update the parameters of an existing Load Balancer, specified by its Load Balancer ID. Note that the request type is PUT and not PATCH. You must set all parameters. */
2852
+ export const updateLb: API.OperationMethod<UpdateLbRequest, Lb, UpdateLbError, ScalewayOpContext> =
2853
+ /*@__PURE__*/ API.make(() => ({
2854
+ input: __S(472, __c59, 0) as any as S.Schema<UpdateLbRequest>,
2855
+ output: __S(26, __c3, 2) as any as S.Schema<Lb>,
2856
+ errors: [],
2857
+ serviceErrors: ScalewayServiceErrors,
2858
+ protocol: ScalewayProtocol,
2859
+ retry: Retry.Retry,
2860
+ telemetry: TELEMETRY,
2861
+ span: "UpdateLb",
2862
+ }));
2863
+
2864
+ export type UpdateRouteError = ScalewayOpError;
2865
+ /** Update a route Update the configuration of an existing route, specified by its route ID. */
2866
+ export const updateRoute: API.OperationMethod<
2867
+ UpdateRouteRequest,
2868
+ Route,
2869
+ UpdateRouteError,
2870
+ ScalewayOpContext
2871
+ > = /*@__PURE__*/ API.make(() => ({
2872
+ input: __S(480, __c60, 0) as any as S.Schema<UpdateRouteRequest>,
2873
+ output: __S(521, __c65, 1) as any as S.Schema<Route>,
2874
+ errors: [],
2875
+ serviceErrors: ScalewayServiceErrors,
2876
+ protocol: ScalewayProtocol,
2877
+ retry: Retry.Retry,
2878
+ telemetry: TELEMETRY,
2879
+ span: "UpdateRoute",
2880
+ }));
2881
+
2882
+ export type UpdateSubscriberError = ScalewayOpError;
2883
+ /** Update a subscriber Update the parameters of a given subscriber (e.g. name, webhook configuration, email configuration), specified by its subscriber ID. */
2884
+ export const updateSubscriber: API.OperationMethod<
2885
+ UpdateSubscriberRequest,
2886
+ Subscriber,
2887
+ UpdateSubscriberError,
2888
+ ScalewayOpContext
2889
+ > = /*@__PURE__*/ API.make(() => ({
2890
+ input: __S(488, __c61, 0) as any as S.Schema<UpdateSubscriberRequest>,
2891
+ output: __S(34, __c4, 2) as any as S.Schema<Subscriber>,
2892
+ errors: [],
2893
+ serviceErrors: ScalewayServiceErrors,
2894
+ protocol: ScalewayProtocol,
2895
+ retry: Retry.Retry,
2896
+ telemetry: TELEMETRY,
2897
+ span: "UpdateSubscriber",
2898
+ }));
2899
+
2900
+ // Schema builders: each runs one schema initializer, on that schema's first use.
2901
+ function __c0(j: number): any {
2902
+ switch (j) {
2903
+ case 0:
2904
+ return S.suspend(() =>
2905
+ S.Struct({
2906
+ zone: S.optional(S.String.pipe(T.Label())),
2907
+ backend_id: S.String.pipe(T.Label()),
2908
+ server_ip: __S(8, __c1, 0),
2909
+ }).pipe(
2910
+ T.Http({
2911
+ method: "POST",
2912
+ uri: "/lb/v1/zones/{zone}/backends/{backend_id}/servers",
2913
+ code: 200,
2914
+ baseUrl: "https://api.scaleway.com",
2915
+ }),
2916
+ ),
2917
+ ).annotate({ identifier: "AddBackendServersRequest" });
2918
+ }
2919
+ }
2920
+ function __c1(j: number): any {
2921
+ switch (j) {
2922
+ case 0:
2923
+ return S.Array(S.String);
2924
+ case 1:
2925
+ return S.suspend(() =>
2926
+ S.Struct({
2927
+ id: S.optional(S.String),
2928
+ ip_address: S.optional(S.String),
2929
+ organization_id: S.optional(S.String),
2930
+ project_id: S.optional(S.String),
2931
+ lb_id: S.optional(S.NullOr(S.String)),
2932
+ reverse: S.optional(S.String),
2933
+ tags: S.optional(__S(8, __c1, 0)),
2934
+ region: S.optional(S.String),
2935
+ zone: S.optional(S.String),
2936
+ srn: S.optional(S.String),
2937
+ }),
2938
+ ).annotate({ identifier: "Ip" });
2939
+ }
2940
+ }
2941
+ function __c2(j: number): any {
2942
+ switch (j) {
2943
+ case 0:
2944
+ return S.Array(__S(9, __c1, 1));
2945
+ }
2946
+ }
2947
+ function __c3(j: number): any {
2948
+ switch (j) {
2949
+ case 0:
2950
+ return S.suspend(() =>
2951
+ S.Struct({
2952
+ id: S.optional(S.String),
2953
+ status: S.optional(S.String),
2954
+ ip_address: S.optional(S.String),
2955
+ created_at: S.optional(S.NullOr(S.String)),
2956
+ updated_at: S.optional(S.NullOr(S.String)),
2957
+ region: S.optional(S.String),
2958
+ zone: S.optional(S.String),
2959
+ }),
2960
+ ).annotate({ identifier: "Instance" });
2961
+ case 1:
2962
+ return S.Array(__S(24, __c3, 0));
2963
+ case 2:
2964
+ return S.suspend(() =>
2965
+ S.Struct({
2966
+ id: S.optional(S.String),
2967
+ name: S.optional(S.String),
2968
+ description: S.optional(S.String),
2969
+ status: S.optional(S.String),
2970
+ instances: S.optional(__S(25, __c3, 1)),
2971
+ organization_id: S.optional(S.String),
2972
+ project_id: S.optional(S.String),
2973
+ ip: S.optional(__S(16, __c2, 0)),
2974
+ tags: S.optional(__S(8, __c1, 0)),
2975
+ frontend_count: S.optional(S.Number),
2976
+ backend_count: S.optional(S.Number),
2977
+ type: S.optional(S.String),
2978
+ subscriber: S.optional(__S(34, __c4, 2)),
2979
+ ssl_compatibility_level: S.optional(S.String),
2980
+ created_at: S.optional(S.NullOr(S.String)),
2981
+ updated_at: S.optional(S.NullOr(S.String)),
2982
+ private_network_count: S.optional(S.Number),
2983
+ route_count: S.optional(S.Number),
2984
+ region: S.optional(S.String),
2985
+ zone: S.optional(S.String),
2986
+ srn: S.optional(S.String),
2987
+ }),
2988
+ ).annotate({ identifier: "Lb" });
2989
+ }
2990
+ }
2991
+ function __c4(j: number): any {
2992
+ switch (j) {
2993
+ case 0:
2994
+ return S.suspend(() =>
2995
+ S.Struct({
2996
+ email: S.optional(S.String),
2997
+ }),
2998
+ ).annotate({ identifier: "SubscriberEmailConfig" });
2999
+ case 1:
3000
+ return S.suspend(() =>
3001
+ S.Struct({
3002
+ uri: S.optional(S.String),
3003
+ }),
3004
+ ).annotate({ identifier: "SubscriberWebhookConfig" });
3005
+ case 2:
3006
+ return S.suspend(() =>
3007
+ S.Struct({
3008
+ id: S.optional(S.String),
3009
+ name: S.optional(S.String),
3010
+ email_config: S.optional(S.NullOr(__S(32, __c4, 0))),
3011
+ webhook_config: S.optional(S.NullOr(__S(33, __c4, 1))),
3012
+ zone: S.optional(S.String),
3013
+ srn: S.optional(S.String),
3014
+ }),
3015
+ ).annotate({ identifier: "Subscriber" });
3016
+ }
3017
+ }
3018
+ function __c5(j: number): any {
3019
+ switch (j) {
3020
+ case 0:
3021
+ return S.suspend(() =>
3022
+ S.Struct({
3023
+ id: S.optional(S.String),
3024
+ name: S.optional(S.String),
3025
+ forward_protocol: S.optional(S.String),
3026
+ forward_port: S.optional(S.Number),
3027
+ forward_port_algorithm: S.optional(S.String),
3028
+ sticky_sessions: S.optional(S.String),
3029
+ sticky_sessions_cookie_name: S.optional(S.String),
3030
+ health_check: S.optional(__S(51, __c6, 3)),
3031
+ pool: S.optional(__S(8, __c1, 0)),
3032
+ lb: S.optional(__S(26, __c3, 2)),
3033
+ send_proxy_v2: S.optional(S.Boolean),
3034
+ timeout_server: S.optional(S.Number),
3035
+ timeout_connect: S.optional(S.Number),
3036
+ timeout_tunnel: S.optional(S.Number),
3037
+ on_marked_down_action: S.optional(S.String),
3038
+ proxy_protocol: S.optional(S.String),
3039
+ created_at: S.optional(S.NullOr(S.String)),
3040
+ updated_at: S.optional(S.NullOr(S.String)),
3041
+ failover_host: S.optional(S.NullOr(S.String)),
3042
+ ssl_bridging: S.optional(S.NullOr(S.Boolean)),
3043
+ ignore_ssl_server_verify: S.optional(S.NullOr(S.Boolean)),
3044
+ redispatch_attempt_count: S.optional(S.NullOr(S.Number)),
3045
+ max_retries: S.optional(S.NullOr(S.Number)),
3046
+ max_connections: S.optional(S.NullOr(S.Number)),
3047
+ timeout_queue: S.optional(S.NullOr(S.String)),
3048
+ host: S.optional(S.NullOr(S.String)),
3049
+ zone: S.optional(S.String),
3050
+ srn: S.optional(S.String),
3051
+ }),
3052
+ ).annotate({ identifier: "Backend" });
3053
+ }
3054
+ }
3055
+ function __c6(j: number): any {
3056
+ switch (j) {
3057
+ case 0:
3058
+ return S.suspend(() =>
3059
+ S.Struct({
3060
+ user: S.optional(S.String),
3061
+ }),
3062
+ ).annotate({ identifier: "HealthCheckMysqlConfig" });
3063
+ case 1:
3064
+ return S.suspend(() =>
3065
+ S.Struct({
3066
+ uri: S.optional(S.String),
3067
+ method: S.optional(S.String),
3068
+ code: S.optional(S.NullOr(S.Number)),
3069
+ host_header: S.optional(S.String),
3070
+ }),
3071
+ ).annotate({ identifier: "HealthCheckHttpConfig" });
3072
+ case 2:
3073
+ return S.suspend(() =>
3074
+ S.Struct({
3075
+ uri: S.optional(S.String),
3076
+ method: S.optional(S.String),
3077
+ code: S.optional(S.NullOr(S.Number)),
3078
+ host_header: S.optional(S.String),
3079
+ sni: S.optional(S.String),
3080
+ }),
3081
+ ).annotate({ identifier: "HealthCheckHttpsConfig" });
3082
+ case 3:
3083
+ return S.suspend(() =>
3084
+ S.Struct({
3085
+ port: S.optional(S.Number),
3086
+ check_delay: S.optional(S.Number),
3087
+ check_timeout: S.optional(S.Number),
3088
+ check_max_retries: S.optional(S.Number),
3089
+ tcp_config: S.optional(S.NullOr(S.Unknown)),
3090
+ mysql_config: S.optional(S.NullOr(__S(48, __c6, 0))),
3091
+ pgsql_config: S.optional(S.NullOr(__S(48, __c6, 0))),
3092
+ ldap_config: S.optional(S.NullOr(S.Unknown)),
3093
+ redis_config: S.optional(S.NullOr(S.Unknown)),
3094
+ http_config: S.optional(S.NullOr(__S(49, __c6, 1))),
3095
+ https_config: S.optional(S.NullOr(__S(50, __c6, 2))),
3096
+ check_send_proxy: S.optional(S.Boolean),
3097
+ transient_check_delay: S.optional(S.NullOr(S.String)),
3098
+ }),
3099
+ ).annotate({ identifier: "HealthCheck" });
3100
+ }
3101
+ }
3102
+ function __c7(j: number): any {
3103
+ switch (j) {
3104
+ case 0:
3105
+ return S.suspend(() =>
3106
+ S.Struct({
3107
+ zone: S.optional(S.String.pipe(T.Label())),
3108
+ lb_id: S.String.pipe(T.Label()),
3109
+ private_network_id: S.String,
3110
+ ipam_ids: S.optional(__S(8, __c1, 0)),
3111
+ }).pipe(
3112
+ T.Http({
3113
+ method: "POST",
3114
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/attach-private-network",
3115
+ code: 200,
3116
+ baseUrl: "https://api.scaleway.com",
3117
+ }),
3118
+ ),
3119
+ ).annotate({ identifier: "AttachPrivateNetworkRequest" });
3120
+ }
3121
+ }
3122
+ function __c8(j: number): any {
3123
+ switch (j) {
3124
+ case 0:
3125
+ return S.suspend(() =>
3126
+ S.Struct({
3127
+ ip_address: S.optional(__S(8, __c1, 0)),
3128
+ }),
3129
+ ).annotate({ identifier: "PrivateNetworkStaticConfig" });
3130
+ case 1:
3131
+ return S.suspend(() =>
3132
+ S.Struct({
3133
+ ip_id: S.optional(S.NullOr(S.String)),
3134
+ }),
3135
+ ).annotate({ identifier: "PrivateNetworkDHCPConfig" });
3136
+ case 2:
3137
+ return S.suspend(() =>
3138
+ S.Struct({
3139
+ lb: S.optional(__S(26, __c3, 2)),
3140
+ ipam_ids: S.optional(__S(8, __c1, 0)),
3141
+ static_config: S.optional(S.NullOr(__S(64, __c8, 0))),
3142
+ dhcp_config: S.optional(S.NullOr(__S(65, __c8, 1))),
3143
+ private_network_id: S.optional(S.String),
3144
+ status: S.optional(S.String),
3145
+ created_at: S.optional(S.NullOr(S.String)),
3146
+ updated_at: S.optional(S.NullOr(S.String)),
3147
+ }),
3148
+ ).annotate({ identifier: "PrivateNetwork" });
3149
+ }
3150
+ }
3151
+ function __c9(j: number): any {
3152
+ switch (j) {
3153
+ case 0:
3154
+ return S.suspend(() =>
3155
+ S.Struct({
3156
+ zone: S.optional(S.String.pipe(T.Label())),
3157
+ acl_id: S.String.pipe(T.Label()),
3158
+ }).pipe(
3159
+ T.Http({
3160
+ method: "DELETE",
3161
+ uri: "/lb/v1/zones/{zone}/acls/{acl_id}",
3162
+ code: 200,
3163
+ baseUrl: "https://api.scaleway.com",
3164
+ }),
3165
+ ),
3166
+ ).annotate({ identifier: "DeleteAclRequest" });
3167
+ }
3168
+ }
3169
+ function __c10(j: number): any {
3170
+ switch (j) {
3171
+ case 0:
3172
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteAclResponse" });
3173
+ }
3174
+ }
3175
+ function __c11(j: number): any {
3176
+ switch (j) {
3177
+ case 0:
3178
+ return S.suspend(() =>
3179
+ S.Struct({
3180
+ zone: S.optional(S.String.pipe(T.Label())),
3181
+ backend_id: S.String.pipe(T.Label()),
3182
+ }).pipe(
3183
+ T.Http({
3184
+ method: "DELETE",
3185
+ uri: "/lb/v1/zones/{zone}/backends/{backend_id}",
3186
+ code: 200,
3187
+ baseUrl: "https://api.scaleway.com",
3188
+ }),
3189
+ ),
3190
+ ).annotate({ identifier: "DeleteBackendRequest" });
3191
+ }
3192
+ }
3193
+ function __c12(j: number): any {
3194
+ switch (j) {
3195
+ case 0:
3196
+ return S.suspend(() =>
3197
+ S.Struct({
3198
+ zone: S.optional(S.String.pipe(T.Label())),
3199
+ certificate_id: S.String.pipe(T.Label()),
3200
+ }).pipe(
3201
+ T.Http({
3202
+ method: "DELETE",
3203
+ uri: "/lb/v1/zones/{zone}/certificates/{certificate_id}",
3204
+ code: 200,
3205
+ baseUrl: "https://api.scaleway.com",
3206
+ }),
3207
+ ),
3208
+ ).annotate({ identifier: "DeleteCertificateRequest" });
3209
+ }
3210
+ }
3211
+ function __c13(j: number): any {
3212
+ switch (j) {
3213
+ case 0:
3214
+ return S.suspend(() =>
3215
+ S.Struct({
3216
+ zone: S.optional(S.String.pipe(T.Label())),
3217
+ frontend_id: S.String.pipe(T.Label()),
3218
+ }).pipe(
3219
+ T.Http({
3220
+ method: "DELETE",
3221
+ uri: "/lb/v1/zones/{zone}/frontends/{frontend_id}",
3222
+ code: 200,
3223
+ baseUrl: "https://api.scaleway.com",
3224
+ }),
3225
+ ),
3226
+ ).annotate({ identifier: "DeleteFrontendRequest" });
3227
+ }
3228
+ }
3229
+ function __c14(j: number): any {
3230
+ switch (j) {
3231
+ case 0:
3232
+ return S.suspend(() =>
3233
+ S.Struct({
3234
+ zone: S.optional(S.String.pipe(T.Label())),
3235
+ lb_id: S.String.pipe(T.Label()),
3236
+ release_ip: S.Boolean.pipe(T.Query()),
3237
+ }).pipe(
3238
+ T.Http({
3239
+ method: "DELETE",
3240
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}",
3241
+ code: 200,
3242
+ baseUrl: "https://api.scaleway.com",
3243
+ }),
3244
+ ),
3245
+ ).annotate({ identifier: "DeleteLbRequest" });
3246
+ }
3247
+ }
3248
+ function __c15(j: number): any {
3249
+ switch (j) {
3250
+ case 0:
3251
+ return S.suspend(() =>
3252
+ S.Struct({
3253
+ zone: S.optional(S.String.pipe(T.Label())),
3254
+ route_id: S.String.pipe(T.Label()),
3255
+ }).pipe(
3256
+ T.Http({
3257
+ method: "DELETE",
3258
+ uri: "/lb/v1/zones/{zone}/routes/{route_id}",
3259
+ code: 200,
3260
+ baseUrl: "https://api.scaleway.com",
3261
+ }),
3262
+ ),
3263
+ ).annotate({ identifier: "DeleteRouteRequest" });
3264
+ }
3265
+ }
3266
+ function __c16(j: number): any {
3267
+ switch (j) {
3268
+ case 0:
3269
+ return S.suspend(() =>
3270
+ S.Struct({
3271
+ zone: S.optional(S.String.pipe(T.Label())),
3272
+ subscriber_id: S.String.pipe(T.Label()),
3273
+ }).pipe(
3274
+ T.Http({
3275
+ method: "DELETE",
3276
+ uri: "/lb/v1/zones/{zone}/lb/subscription/{subscriber_id}",
3277
+ code: 200,
3278
+ baseUrl: "https://api.scaleway.com",
3279
+ }),
3280
+ ),
3281
+ ).annotate({ identifier: "DeleteSubscriberRequest" });
3282
+ }
3283
+ }
3284
+ function __c17(j: number): any {
3285
+ switch (j) {
3286
+ case 0:
3287
+ return S.suspend(() =>
3288
+ S.Struct({
3289
+ zone: S.optional(S.String.pipe(T.Label())),
3290
+ lb_id: S.String.pipe(T.Label()),
3291
+ private_network_id: S.String,
3292
+ }).pipe(
3293
+ T.Http({
3294
+ method: "POST",
3295
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/detach-private-network",
3296
+ code: 200,
3297
+ baseUrl: "https://api.scaleway.com",
3298
+ }),
3299
+ ),
3300
+ ).annotate({ identifier: "DetachPrivateNetworkRequest" });
3301
+ }
3302
+ }
3303
+ function __c18(j: number): any {
3304
+ switch (j) {
3305
+ case 0:
3306
+ return S.suspend(() =>
3307
+ S.Struct({
3308
+ zone: S.optional(S.String.pipe(T.Label())),
3309
+ acl_id: S.String.pipe(T.Label()),
3310
+ }).pipe(
3311
+ T.Http({
3312
+ method: "GET",
3313
+ uri: "/lb/v1/zones/{zone}/acls/{acl_id}",
3314
+ code: 200,
3315
+ baseUrl: "https://api.scaleway.com",
3316
+ }),
3317
+ ),
3318
+ ).annotate({ identifier: "GetAclRequest" });
3319
+ }
3320
+ }
3321
+ function __c19(j: number): any {
3322
+ switch (j) {
3323
+ case 0:
3324
+ return S.suspend(() =>
3325
+ S.Struct({
3326
+ zone: S.optional(S.String.pipe(T.Label())),
3327
+ backend_id: S.String.pipe(T.Label()),
3328
+ }).pipe(
3329
+ T.Http({
3330
+ method: "GET",
3331
+ uri: "/lb/v1/zones/{zone}/backends/{backend_id}",
3332
+ code: 200,
3333
+ baseUrl: "https://api.scaleway.com",
3334
+ }),
3335
+ ),
3336
+ ).annotate({ identifier: "GetBackendRequest" });
3337
+ }
3338
+ }
3339
+ function __c20(j: number): any {
3340
+ switch (j) {
3341
+ case 0:
3342
+ return S.suspend(() =>
3343
+ S.Struct({
3344
+ zone: S.optional(S.String.pipe(T.Label())),
3345
+ frontend_id: S.String.pipe(T.Label()),
3346
+ name: S.String,
3347
+ action: __S(169, __c21, 1),
3348
+ match: S.optional(__S(171, __c21, 3)),
3349
+ index: S.Number,
3350
+ description: S.optional(S.String),
3351
+ }).pipe(
3352
+ T.Http({
3353
+ method: "POST",
3354
+ uri: "/lb/v1/zones/{zone}/frontends/{frontend_id}/acls",
3355
+ code: 200,
3356
+ baseUrl: "https://api.scaleway.com",
3357
+ }),
3358
+ ),
3359
+ ).annotate({ identifier: "CreateAclRequest" });
3360
+ }
3361
+ }
3362
+ function __c21(j: number): any {
3363
+ switch (j) {
3364
+ case 0:
3365
+ return S.suspend(() =>
3366
+ S.Struct({
3367
+ type: S.optional(S.String),
3368
+ target: S.optional(S.String),
3369
+ code: S.optional(S.NullOr(S.Number)),
3370
+ }),
3371
+ ).annotate({ identifier: "AclActionRedirect" });
3372
+ case 1:
3373
+ return S.suspend(() =>
3374
+ S.Struct({
3375
+ type: S.optional(S.String),
3376
+ redirect: S.optional(__S(168, __c21, 0)),
3377
+ }),
3378
+ ).annotate({ identifier: "AclAction" });
3379
+ case 2:
3380
+ return S.Array(/*@__PURE__*/ S.NullOr(S.String));
3381
+ case 3:
3382
+ return S.suspend(() =>
3383
+ S.Struct({
3384
+ ip_subnet: S.optional(__S(170, __c21, 2)),
3385
+ ips_edge_services: S.optional(S.Boolean),
3386
+ http_filter: S.optional(S.String),
3387
+ http_filter_value: S.optional(__S(170, __c21, 2)),
3388
+ http_filter_option: S.optional(S.NullOr(S.String)),
3389
+ invert: S.optional(S.Boolean),
3390
+ }),
3391
+ ).annotate({ identifier: "AclMatch" });
3392
+ case 4:
3393
+ return S.suspend(() =>
3394
+ S.Struct({
3395
+ id: S.optional(S.String),
3396
+ name: S.optional(S.String),
3397
+ match: S.optional(__S(171, __c21, 3)),
3398
+ action: S.optional(__S(169, __c21, 1)),
3399
+ frontend: S.optional(__S(184, __c23, 0)),
3400
+ index: S.optional(S.Number),
3401
+ created_at: S.optional(S.NullOr(S.String)),
3402
+ updated_at: S.optional(S.NullOr(S.String)),
3403
+ description: S.optional(S.String),
3404
+ zone: S.optional(S.String),
3405
+ srn: S.optional(S.String),
3406
+ }),
3407
+ ).annotate({ identifier: "Acl" });
3408
+ }
3409
+ }
3410
+ function __c22(j: number): any {
3411
+ switch (j) {
3412
+ case 0:
3413
+ return S.suspend(() =>
3414
+ S.Struct({
3415
+ type: S.optional(S.String),
3416
+ id: S.optional(S.String),
3417
+ common_name: S.optional(S.String),
3418
+ subject_alternative_name: S.optional(__S(8, __c1, 0)),
3419
+ fingerprint: S.optional(S.String),
3420
+ not_valid_before: S.optional(S.NullOr(S.String)),
3421
+ not_valid_after: S.optional(S.NullOr(S.String)),
3422
+ status: S.optional(S.String),
3423
+ lb: S.optional(__S(26, __c3, 2)),
3424
+ name: S.optional(S.String),
3425
+ created_at: S.optional(S.NullOr(S.String)),
3426
+ updated_at: S.optional(S.NullOr(S.String)),
3427
+ status_details: S.optional(S.NullOr(S.String)),
3428
+ zone: S.optional(S.String),
3429
+ srn: S.optional(S.String),
3430
+ }),
3431
+ ).annotate({ identifier: "Certificate" });
3432
+ }
3433
+ }
3434
+ function __c23(j: number): any {
3435
+ switch (j) {
3436
+ case 0:
3437
+ return S.suspend(() =>
3438
+ S.Struct({
3439
+ id: S.optional(S.String),
3440
+ name: S.optional(S.String),
3441
+ inbound_port: S.optional(S.Number),
3442
+ backend: S.optional(__S(40, __c5, 0)),
3443
+ lb: S.optional(__S(26, __c3, 2)),
3444
+ timeout_client: S.optional(S.Number),
3445
+ certificate: S.optional(__S(176, __c22, 0)),
3446
+ certificate_ids: S.optional(__S(8, __c1, 0)),
3447
+ created_at: S.optional(S.NullOr(S.String)),
3448
+ updated_at: S.optional(S.NullOr(S.String)),
3449
+ enable_http3: S.optional(S.Boolean),
3450
+ connection_rate_limit: S.optional(S.NullOr(S.Number)),
3451
+ enable_access_logs: S.optional(S.Boolean),
3452
+ zone: S.optional(S.String),
3453
+ srn: S.optional(S.String),
3454
+ }),
3455
+ ).annotate({ identifier: "Frontend" });
3456
+ }
3457
+ }
3458
+ function __c24(j: number): any {
3459
+ switch (j) {
3460
+ case 0:
3461
+ return S.suspend(() =>
3462
+ S.Struct({
3463
+ zone: S.optional(S.String.pipe(T.Label())),
3464
+ certificate_id: S.String.pipe(T.Label()),
3465
+ }).pipe(
3466
+ T.Http({
3467
+ method: "GET",
3468
+ uri: "/lb/v1/zones/{zone}/certificates/{certificate_id}",
3469
+ code: 200,
3470
+ baseUrl: "https://api.scaleway.com",
3471
+ }),
3472
+ ),
3473
+ ).annotate({ identifier: "GetCertificateRequest" });
3474
+ }
3475
+ }
3476
+ function __c25(j: number): any {
3477
+ switch (j) {
3478
+ case 0:
3479
+ return S.suspend(() =>
3480
+ S.Struct({
3481
+ zone: S.optional(S.String.pipe(T.Label())),
3482
+ frontend_id: S.String.pipe(T.Label()),
3483
+ }).pipe(
3484
+ T.Http({
3485
+ method: "GET",
3486
+ uri: "/lb/v1/zones/{zone}/frontends/{frontend_id}",
3487
+ code: 200,
3488
+ baseUrl: "https://api.scaleway.com",
3489
+ }),
3490
+ ),
3491
+ ).annotate({ identifier: "GetFrontendRequest" });
3492
+ }
3493
+ }
3494
+ function __c26(j: number): any {
3495
+ switch (j) {
3496
+ case 0:
3497
+ return S.suspend(() =>
3498
+ S.Struct({
3499
+ zone: S.optional(S.String.pipe(T.Label())),
3500
+ ip_id: S.String.pipe(T.Label()),
3501
+ }).pipe(
3502
+ T.Http({
3503
+ method: "GET",
3504
+ uri: "/lb/v1/zones/{zone}/ips/{ip_id}",
3505
+ code: 200,
3506
+ baseUrl: "https://api.scaleway.com",
3507
+ }),
3508
+ ),
3509
+ ).annotate({ identifier: "GetIpRequest" });
3510
+ }
3511
+ }
3512
+ function __c27(j: number): any {
3513
+ switch (j) {
3514
+ case 0:
3515
+ return S.suspend(() =>
3516
+ S.Struct({
3517
+ zone: S.optional(S.String.pipe(T.Label())),
3518
+ lb_id: S.String.pipe(T.Label()),
3519
+ }).pipe(
3520
+ T.Http({
3521
+ method: "GET",
3522
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}",
3523
+ code: 200,
3524
+ baseUrl: "https://api.scaleway.com",
3525
+ }),
3526
+ ),
3527
+ ).annotate({ identifier: "GetLbRequest" });
3528
+ }
3529
+ }
3530
+ function __c28(j: number): any {
3531
+ switch (j) {
3532
+ case 0:
3533
+ return S.suspend(() =>
3534
+ S.Struct({
3535
+ zone: S.optional(S.String.pipe(T.Label())),
3536
+ route_id: S.String.pipe(T.Label()),
3537
+ }).pipe(
3538
+ T.Http({
3539
+ method: "GET",
3540
+ uri: "/lb/v1/zones/{zone}/routes/{route_id}",
3541
+ code: 200,
3542
+ baseUrl: "https://api.scaleway.com",
3543
+ }),
3544
+ ),
3545
+ ).annotate({ identifier: "GetRouteRequest" });
3546
+ }
3547
+ }
3548
+ function __c29(j: number): any {
3549
+ switch (j) {
3550
+ case 0:
3551
+ return S.suspend(() =>
3552
+ S.Struct({
3553
+ zone: S.optional(S.String.pipe(T.Label())),
3554
+ subscriber_id: S.String.pipe(T.Label()),
3555
+ }).pipe(
3556
+ T.Http({
3557
+ method: "GET",
3558
+ uri: "/lb/v1/zones/{zone}/subscribers/{subscriber_id}",
3559
+ code: 200,
3560
+ baseUrl: "https://api.scaleway.com",
3561
+ }),
3562
+ ),
3563
+ ).annotate({ identifier: "GetSubscriberRequest" });
3564
+ }
3565
+ }
3566
+ function __c30(j: number): any {
3567
+ switch (j) {
3568
+ case 0:
3569
+ return S.suspend(() =>
3570
+ S.Struct({
3571
+ zone: S.optional(S.String.pipe(T.Label())),
3572
+ frontend_id: S.String.pipe(T.Label()),
3573
+ order_by: S.optional(S.String.pipe(T.Query())),
3574
+ page: S.optional(S.Number.pipe(T.Query())),
3575
+ page_size: S.optional(S.Number.pipe(T.Query())),
3576
+ name: S.optional(S.String.pipe(T.Query())),
3577
+ }).pipe(
3578
+ T.Http({
3579
+ method: "GET",
3580
+ uri: "/lb/v1/zones/{zone}/frontends/{frontend_id}/acls",
3581
+ code: 200,
3582
+ baseUrl: "https://api.scaleway.com",
3583
+ }),
3584
+ ),
3585
+ ).annotate({ identifier: "ListAclsRequest" });
3586
+ case 1:
3587
+ return S.suspend(() =>
3588
+ S.Struct({
3589
+ acls: __S(248, __c31, 0),
3590
+ total_count: S.optional(S.Number),
3591
+ }),
3592
+ ).annotate({ identifier: "ListAclResponse" });
3593
+ }
3594
+ }
3595
+ function __c31(j: number): any {
3596
+ switch (j) {
3597
+ case 0:
3598
+ return S.Array(__S(172, __c21, 4));
3599
+ }
3600
+ }
3601
+ function __c32(j: number): any {
3602
+ switch (j) {
3603
+ case 0:
3604
+ return S.suspend(() =>
3605
+ S.Struct({
3606
+ zone: S.optional(S.String.pipe(T.Label())),
3607
+ lb_id: S.String.pipe(T.Label()),
3608
+ name: S.optional(S.String.pipe(T.Query())),
3609
+ order_by: S.optional(S.String.pipe(T.Query())),
3610
+ page: S.optional(S.Number.pipe(T.Query())),
3611
+ page_size: S.optional(S.Number.pipe(T.Query())),
3612
+ }).pipe(
3613
+ T.Http({
3614
+ method: "GET",
3615
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/backends",
3616
+ code: 200,
3617
+ baseUrl: "https://api.scaleway.com",
3618
+ }),
3619
+ ),
3620
+ ).annotate({ identifier: "ListBackendsRequest" });
3621
+ case 1:
3622
+ return S.Array(__S(40, __c5, 0));
3623
+ case 2:
3624
+ return S.suspend(() =>
3625
+ S.Struct({
3626
+ backends: __S(257, __c32, 1),
3627
+ total_count: S.optional(S.Number),
3628
+ }),
3629
+ ).annotate({ identifier: "ListBackendsResponse" });
3630
+ }
3631
+ }
3632
+ function __c33(j: number): any {
3633
+ switch (j) {
3634
+ case 0:
3635
+ return S.suspend(() =>
3636
+ S.Struct({
3637
+ zone: S.optional(S.String.pipe(T.Label())),
3638
+ lb_id: S.String.pipe(T.Label()),
3639
+ page: S.optional(S.Number.pipe(T.Query())),
3640
+ page_size: S.optional(S.Number.pipe(T.Query())),
3641
+ backend_id: S.optional(S.String.pipe(T.Query())),
3642
+ }).pipe(
3643
+ T.Http({
3644
+ method: "GET",
3645
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/backend-stats",
3646
+ code: 200,
3647
+ baseUrl: "https://api.scaleway.com",
3648
+ }),
3649
+ ),
3650
+ ).annotate({ identifier: "ListBackendStatsRequest" });
3651
+ case 1:
3652
+ return S.suspend(() =>
3653
+ S.Struct({
3654
+ instance_id: S.optional(S.String),
3655
+ backend_id: S.optional(S.String),
3656
+ ip: S.optional(S.String),
3657
+ server_state: S.optional(S.String),
3658
+ server_state_changed_at: S.optional(S.NullOr(S.String)),
3659
+ last_health_check_status: S.optional(S.String),
3660
+ }),
3661
+ ).annotate({ identifier: "BackendServerStats" });
3662
+ case 2:
3663
+ return S.Array(__S(265, __c33, 1));
3664
+ case 3:
3665
+ return S.suspend(() =>
3666
+ S.Struct({
3667
+ backend_servers_stats: __S(266, __c33, 2),
3668
+ total_count: S.optional(S.Number),
3669
+ }),
3670
+ ).annotate({ identifier: "ListBackendStatsResponse" });
3671
+ }
3672
+ }
3673
+ function __c34(j: number): any {
3674
+ switch (j) {
3675
+ case 0:
3676
+ return S.suspend(() =>
3677
+ S.Struct({
3678
+ zone: S.optional(S.String.pipe(T.Label())),
3679
+ lb_id: S.String.pipe(T.Label()),
3680
+ order_by: S.optional(S.String.pipe(T.Query())),
3681
+ page: S.optional(S.Number.pipe(T.Query())),
3682
+ page_size: S.optional(S.Number.pipe(T.Query())),
3683
+ name: S.optional(S.String.pipe(T.Query())),
3684
+ }).pipe(
3685
+ T.Http({
3686
+ method: "GET",
3687
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/certificates",
3688
+ code: 200,
3689
+ baseUrl: "https://api.scaleway.com",
3690
+ }),
3691
+ ),
3692
+ ).annotate({ identifier: "ListCertificatesRequest" });
3693
+ case 1:
3694
+ return S.Array(__S(176, __c22, 0));
3695
+ case 2:
3696
+ return S.suspend(() =>
3697
+ S.Struct({
3698
+ certificates: __S(273, __c34, 1),
3699
+ total_count: S.optional(S.Number),
3700
+ }),
3701
+ ).annotate({ identifier: "ListCertificatesResponse" });
3702
+ }
3703
+ }
3704
+ function __c35(j: number): any {
3705
+ switch (j) {
3706
+ case 0:
3707
+ return S.suspend(() =>
3708
+ S.Struct({
3709
+ zone: S.optional(S.String.pipe(T.Label())),
3710
+ lb_id: S.String.pipe(T.Label()),
3711
+ name: S.String,
3712
+ forward_protocol: S.String,
3713
+ forward_port: S.Number,
3714
+ forward_port_algorithm: S.String,
3715
+ sticky_sessions: S.String,
3716
+ sticky_sessions_cookie_name: S.optional(S.String),
3717
+ health_check: __S(51, __c6, 3),
3718
+ server_ip: __S(8, __c1, 0),
3719
+ send_proxy_v2: S.optional(S.Boolean),
3720
+ timeout_server: S.optional(S.Number),
3721
+ timeout_connect: S.optional(S.Number),
3722
+ timeout_tunnel: S.optional(S.Number),
3723
+ on_marked_down_action: S.optional(S.String),
3724
+ proxy_protocol: S.optional(S.String),
3725
+ failover_host: S.optional(S.NullOr(S.String)),
3726
+ ssl_bridging: S.optional(S.NullOr(S.Boolean)),
3727
+ ignore_ssl_server_verify: S.optional(S.NullOr(S.Boolean)),
3728
+ redispatch_attempt_count: S.optional(S.NullOr(S.Number)),
3729
+ max_retries: S.optional(S.NullOr(S.Number)),
3730
+ max_connections: S.optional(S.NullOr(S.Number)),
3731
+ timeout_queue: S.optional(S.NullOr(S.String)),
3732
+ host: S.optional(S.NullOr(S.String)),
3733
+ }).pipe(
3734
+ T.Http({
3735
+ method: "POST",
3736
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/backends",
3737
+ code: 200,
3738
+ baseUrl: "https://api.scaleway.com",
3739
+ }),
3740
+ ),
3741
+ ).annotate({ identifier: "CreateBackendRequest" });
3742
+ }
3743
+ }
3744
+ function __c36(j: number): any {
3745
+ switch (j) {
3746
+ case 0:
3747
+ return S.suspend(() =>
3748
+ S.Struct({
3749
+ zone: S.optional(S.String.pipe(T.Label())),
3750
+ lb_id: S.String.pipe(T.Label()),
3751
+ name: S.optional(S.String.pipe(T.Query())),
3752
+ order_by: S.optional(S.String.pipe(T.Query())),
3753
+ page: S.optional(S.Number.pipe(T.Query())),
3754
+ page_size: S.optional(S.Number.pipe(T.Query())),
3755
+ }).pipe(
3756
+ T.Http({
3757
+ method: "GET",
3758
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/frontends",
3759
+ code: 200,
3760
+ baseUrl: "https://api.scaleway.com",
3761
+ }),
3762
+ ),
3763
+ ).annotate({ identifier: "ListFrontendsRequest" });
3764
+ case 1:
3765
+ return S.Array(__S(184, __c23, 0));
3766
+ case 2:
3767
+ return S.suspend(() =>
3768
+ S.Struct({
3769
+ frontends: __S(289, __c36, 1),
3770
+ total_count: S.optional(S.Number),
3771
+ }),
3772
+ ).annotate({ identifier: "ListFrontendsResponse" });
3773
+ }
3774
+ }
3775
+ function __c37(j: number): any {
3776
+ switch (j) {
3777
+ case 0:
3778
+ return S.suspend(() =>
3779
+ S.Struct({
3780
+ zone: S.optional(S.String.pipe(T.Label())),
3781
+ page: S.optional(S.Number.pipe(T.Query())),
3782
+ page_size: S.optional(S.Number.pipe(T.Query())),
3783
+ ip_address: S.optional(S.String.pipe(T.Query())),
3784
+ organization_id: S.optional(S.String.pipe(T.Query())),
3785
+ project_id: S.optional(S.String.pipe(T.Query())),
3786
+ ip_type: S.optional(S.String.pipe(T.Query())),
3787
+ tags: S.optional(__S(8, __c1, 0).pipe(T.Query())),
3788
+ }).pipe(
3789
+ T.Http({
3790
+ method: "GET",
3791
+ uri: "/lb/v1/zones/{zone}/ips",
3792
+ code: 200,
3793
+ baseUrl: "https://api.scaleway.com",
3794
+ }),
3795
+ ),
3796
+ ).annotate({ identifier: "ListIPsRequest" });
3797
+ case 1:
3798
+ return S.suspend(() =>
3799
+ S.Struct({
3800
+ ips: __S(16, __c2, 0),
3801
+ total_count: S.optional(S.Number),
3802
+ }),
3803
+ ).annotate({ identifier: "ListIpsResponse" });
3804
+ }
3805
+ }
3806
+ function __c38(j: number): any {
3807
+ switch (j) {
3808
+ case 0:
3809
+ return S.suspend(() =>
3810
+ S.Struct({
3811
+ zone: S.optional(S.String.pipe(T.Label())),
3812
+ lb_id: S.String.pipe(T.Label()),
3813
+ order_by: S.optional(S.String.pipe(T.Query())),
3814
+ page_size: S.optional(S.Number.pipe(T.Query())),
3815
+ page: S.optional(S.Number.pipe(T.Query())),
3816
+ }).pipe(
3817
+ T.Http({
3818
+ method: "GET",
3819
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/private-networks",
3820
+ code: 200,
3821
+ baseUrl: "https://api.scaleway.com",
3822
+ }),
3823
+ ),
3824
+ ).annotate({ identifier: "ListLbPrivateNetworksRequest" });
3825
+ case 1:
3826
+ return S.Array(__S(66, __c8, 2));
3827
+ case 2:
3828
+ return S.suspend(() =>
3829
+ S.Struct({
3830
+ private_network: __S(305, __c38, 1),
3831
+ total_count: S.optional(S.Number),
3832
+ }),
3833
+ ).annotate({ identifier: "ListLbPrivateNetworksResponse" });
3834
+ }
3835
+ }
3836
+ function __c39(j: number): any {
3837
+ switch (j) {
3838
+ case 0:
3839
+ return S.suspend(() =>
3840
+ S.Struct({
3841
+ zone: S.optional(S.String.pipe(T.Label())),
3842
+ name: S.optional(S.String.pipe(T.Query())),
3843
+ order_by: S.optional(S.String.pipe(T.Query())),
3844
+ page_size: S.optional(S.Number.pipe(T.Query())),
3845
+ page: S.optional(S.Number.pipe(T.Query())),
3846
+ organization_id: S.optional(S.String.pipe(T.Query())),
3847
+ project_id: S.optional(S.String.pipe(T.Query())),
3848
+ tags: S.optional(__S(8, __c1, 0).pipe(T.Query())),
3849
+ lb_ids: S.optional(__S(8, __c1, 0).pipe(T.Query())),
3850
+ }).pipe(
3851
+ T.Http({
3852
+ method: "GET",
3853
+ uri: "/lb/v1/zones/{zone}/lbs",
3854
+ code: 200,
3855
+ baseUrl: "https://api.scaleway.com",
3856
+ }),
3857
+ ),
3858
+ ).annotate({ identifier: "ListLbsRequest" });
3859
+ case 1:
3860
+ return S.Array(__S(26, __c3, 2));
3861
+ case 2:
3862
+ return S.suspend(() =>
3863
+ S.Struct({
3864
+ lbs: __S(313, __c39, 1),
3865
+ total_count: S.optional(S.Number),
3866
+ }),
3867
+ ).annotate({ identifier: "ListLbsResponse" });
3868
+ }
3869
+ }
3870
+ function __c40(j: number): any {
3871
+ switch (j) {
3872
+ case 0:
3873
+ return S.suspend(() =>
3874
+ S.Struct({
3875
+ zone: S.optional(S.String.pipe(T.Label())),
3876
+ page: S.optional(S.Number.pipe(T.Query())),
3877
+ page_size: S.optional(S.Number.pipe(T.Query())),
3878
+ }).pipe(
3879
+ T.Http({
3880
+ method: "GET",
3881
+ uri: "/lb/v1/zones/{zone}/lb-types",
3882
+ code: 200,
3883
+ baseUrl: "https://api.scaleway.com",
3884
+ }),
3885
+ ),
3886
+ ).annotate({ identifier: "ListLbTypesRequest" });
3887
+ case 1:
3888
+ return S.suspend(() =>
3889
+ S.Struct({
3890
+ name: S.optional(S.String),
3891
+ stock_status: S.optional(S.String),
3892
+ bandwidth: S.optional(S.Number),
3893
+ multicloud: S.optional(S.Boolean),
3894
+ description: S.optional(S.String),
3895
+ region: S.optional(S.String),
3896
+ zone: S.optional(S.String),
3897
+ srn: S.optional(S.String),
3898
+ }),
3899
+ ).annotate({ identifier: "LbType" });
3900
+ case 2:
3901
+ return S.Array(__S(321, __c40, 1));
3902
+ case 3:
3903
+ return S.suspend(() =>
3904
+ S.Struct({
3905
+ lb_types: __S(322, __c40, 2),
3906
+ total_count: S.optional(S.Number),
3907
+ }),
3908
+ ).annotate({ identifier: "ListLbTypesResponse" });
3909
+ }
3910
+ }
3911
+ function __c41(j: number): any {
3912
+ switch (j) {
3913
+ case 0:
3914
+ return S.suspend(() =>
3915
+ S.Struct({
3916
+ zone: S.optional(S.String.pipe(T.Label())),
3917
+ order_by: S.optional(S.String.pipe(T.Query())),
3918
+ page_size: S.optional(S.Number.pipe(T.Query())),
3919
+ page: S.optional(S.Number.pipe(T.Query())),
3920
+ frontend_id: S.optional(S.String.pipe(T.Query())),
3921
+ }).pipe(
3922
+ T.Http({
3923
+ method: "GET",
3924
+ uri: "/lb/v1/zones/{zone}/routes",
3925
+ code: 200,
3926
+ baseUrl: "https://api.scaleway.com",
3927
+ }),
3928
+ ),
3929
+ ).annotate({ identifier: "ListRoutesRequest" });
3930
+ case 1:
3931
+ return S.Array(__S(521, __c65, 1));
3932
+ case 2:
3933
+ return S.suspend(() =>
3934
+ S.Struct({
3935
+ routes: __S(329, __c41, 1),
3936
+ total_count: S.optional(S.Number),
3937
+ }),
3938
+ ).annotate({ identifier: "ListRoutesResponse" });
3939
+ }
3940
+ }
3941
+ function __c42(j: number): any {
3942
+ switch (j) {
3943
+ case 0:
3944
+ return S.suspend(() =>
3945
+ S.Struct({
3946
+ zone: S.optional(S.String.pipe(T.Label())),
3947
+ order_by: S.optional(S.String.pipe(T.Query())),
3948
+ page: S.optional(S.Number.pipe(T.Query())),
3949
+ page_size: S.optional(S.Number.pipe(T.Query())),
3950
+ name: S.optional(S.String.pipe(T.Query())),
3951
+ organization_id: S.optional(S.String.pipe(T.Query())),
3952
+ project_id: S.optional(S.String.pipe(T.Query())),
3953
+ }).pipe(
3954
+ T.Http({
3955
+ method: "GET",
3956
+ uri: "/lb/v1/zones/{zone}/subscribers",
3957
+ code: 200,
3958
+ baseUrl: "https://api.scaleway.com",
3959
+ }),
3960
+ ),
3961
+ ).annotate({ identifier: "ListSubscriberRequest" });
3962
+ case 1:
3963
+ return S.Array(__S(34, __c4, 2));
3964
+ case 2:
3965
+ return S.suspend(() =>
3966
+ S.Struct({
3967
+ subscribers: __S(337, __c42, 1),
3968
+ total_count: S.optional(S.Number),
3969
+ }),
3970
+ ).annotate({ identifier: "ListSubscriberResponse" });
3971
+ }
3972
+ }
3973
+ function __c43(j: number): any {
3974
+ switch (j) {
3975
+ case 0:
3976
+ return S.suspend(() =>
3977
+ S.Struct({
3978
+ zone: S.optional(S.String.pipe(T.Label())),
3979
+ lb_id: S.String.pipe(T.Label()),
3980
+ type: S.String,
3981
+ }).pipe(
3982
+ T.Http({
3983
+ method: "POST",
3984
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/migrate",
3985
+ code: 200,
3986
+ baseUrl: "https://api.scaleway.com",
3987
+ }),
3988
+ ),
3989
+ ).annotate({ identifier: "MigrateLbRequest" });
3990
+ }
3991
+ }
3992
+ function __c44(j: number): any {
3993
+ switch (j) {
3994
+ case 0:
3995
+ return S.suspend(() =>
3996
+ S.Struct({
3997
+ zone: S.optional(S.String.pipe(T.Label())),
3998
+ ip_id: S.String.pipe(T.Label()),
3999
+ }).pipe(
4000
+ T.Http({
4001
+ method: "DELETE",
4002
+ uri: "/lb/v1/zones/{zone}/ips/{ip_id}",
4003
+ code: 200,
4004
+ baseUrl: "https://api.scaleway.com",
4005
+ }),
4006
+ ),
4007
+ ).annotate({ identifier: "ReleaseIpRequest" });
4008
+ }
4009
+ }
4010
+ function __c45(j: number): any {
4011
+ switch (j) {
4012
+ case 0:
4013
+ return S.suspend(() =>
4014
+ S.Struct({
4015
+ zone: S.optional(S.String.pipe(T.Label())),
4016
+ backend_id: S.String.pipe(T.Label()),
4017
+ server_ip: __S(8, __c1, 0),
4018
+ }).pipe(
4019
+ T.Http({
4020
+ method: "DELETE",
4021
+ uri: "/lb/v1/zones/{zone}/backends/{backend_id}/servers",
4022
+ code: 200,
4023
+ baseUrl: "https://api.scaleway.com",
4024
+ }),
4025
+ ),
4026
+ ).annotate({ identifier: "RemoveBackendServersRequest" });
4027
+ }
4028
+ }
4029
+ function __c46(j: number): any {
4030
+ switch (j) {
4031
+ case 0:
4032
+ return S.suspend(() =>
4033
+ S.Struct({
4034
+ common_name: S.String,
4035
+ subject_alternative_name: S.optional(__S(8, __c1, 0)),
4036
+ }),
4037
+ ).annotate({ identifier: "CreateCertificateRequestLetsencryptConfig" });
4038
+ case 1:
4039
+ return S.suspend(() =>
4040
+ S.Struct({
4041
+ certificate_chain: S.String,
4042
+ }),
4043
+ ).annotate({ identifier: "CreateCertificateRequestCustomCertificate" });
4044
+ case 2:
4045
+ return S.suspend(() =>
4046
+ S.Struct({
4047
+ zone: S.optional(S.String.pipe(T.Label())),
4048
+ lb_id: S.String.pipe(T.Label()),
4049
+ name: S.String,
4050
+ letsencrypt: S.optional(S.NullOr(__S(368, __c46, 0))),
4051
+ custom_certificate: S.optional(S.NullOr(__S(369, __c46, 1))),
4052
+ }).pipe(
4053
+ T.Http({
4054
+ method: "POST",
4055
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/certificates",
4056
+ code: 200,
4057
+ baseUrl: "https://api.scaleway.com",
4058
+ }),
4059
+ ),
4060
+ ).annotate({ identifier: "CreateCertificateRequest" });
4061
+ }
4062
+ }
4063
+ function __c47(j: number): any {
4064
+ switch (j) {
4065
+ case 0:
4066
+ return S.suspend(() =>
4067
+ S.Struct({
4068
+ name: S.String,
4069
+ action: __S(169, __c21, 1),
4070
+ match: S.optional(__S(171, __c21, 3)),
4071
+ index: S.Number,
4072
+ description: S.optional(S.String),
4073
+ }),
4074
+ ).annotate({ identifier: "AclSpec" });
4075
+ case 1:
4076
+ return S.Array(__S(376, __c47, 0));
4077
+ case 2:
4078
+ return S.suspend(() =>
4079
+ S.Struct({
4080
+ zone: S.optional(S.String.pipe(T.Label())),
4081
+ frontend_id: S.String.pipe(T.Label()),
4082
+ acls: __S(377, __c47, 1),
4083
+ }).pipe(
4084
+ T.Http({
4085
+ method: "PUT",
4086
+ uri: "/lb/v1/zones/{zone}/frontends/{frontend_id}/acls",
4087
+ code: 200,
4088
+ baseUrl: "https://api.scaleway.com",
4089
+ }),
4090
+ ),
4091
+ ).annotate({ identifier: "SetAclsRequest" });
4092
+ case 3:
4093
+ return S.suspend(() =>
4094
+ S.Struct({
4095
+ acls: S.optional(__S(248, __c31, 0)),
4096
+ total_count: S.optional(S.Number),
4097
+ }),
4098
+ ).annotate({ identifier: "SetAclsResponse" });
4099
+ }
4100
+ }
4101
+ function __c48(j: number): any {
4102
+ switch (j) {
4103
+ case 0:
4104
+ return S.suspend(() =>
4105
+ S.Struct({
4106
+ zone: S.optional(S.String.pipe(T.Label())),
4107
+ backend_id: S.String.pipe(T.Label()),
4108
+ server_ip: __S(8, __c1, 0),
4109
+ }).pipe(
4110
+ T.Http({
4111
+ method: "PUT",
4112
+ uri: "/lb/v1/zones/{zone}/backends/{backend_id}/servers",
4113
+ code: 200,
4114
+ baseUrl: "https://api.scaleway.com",
4115
+ }),
4116
+ ),
4117
+ ).annotate({ identifier: "SetBackendServersRequest" });
4118
+ }
4119
+ }
4120
+ function __c49(j: number): any {
4121
+ switch (j) {
4122
+ case 0:
4123
+ return S.suspend(() =>
4124
+ S.Struct({
4125
+ zone: S.optional(S.String.pipe(T.Label())),
4126
+ lb_id: S.String.pipe(T.Label()),
4127
+ subscriber_id: S.String,
4128
+ }).pipe(
4129
+ T.Http({
4130
+ method: "POST",
4131
+ uri: "/lb/v1/zones/{zone}/lb/{lb_id}/subscribe",
4132
+ code: 200,
4133
+ baseUrl: "https://api.scaleway.com",
4134
+ }),
4135
+ ),
4136
+ ).annotate({ identifier: "SubscribeToLbRequest" });
4137
+ }
4138
+ }
4139
+ function __c50(j: number): any {
4140
+ switch (j) {
4141
+ case 0:
4142
+ return S.suspend(() =>
4143
+ S.Struct({
4144
+ zone: S.optional(S.String.pipe(T.Label())),
4145
+ lb_id: S.String.pipe(T.Label()),
4146
+ }).pipe(
4147
+ T.Http({
4148
+ method: "DELETE",
4149
+ uri: "/lb/v1/zones/{zone}/lb/{lb_id}/unsubscribe",
4150
+ code: 200,
4151
+ baseUrl: "https://api.scaleway.com",
4152
+ }),
4153
+ ),
4154
+ ).annotate({ identifier: "UnsubscribeFromLbRequest" });
4155
+ }
4156
+ }
4157
+ function __c51(j: number): any {
4158
+ switch (j) {
4159
+ case 0:
4160
+ return S.suspend(() =>
4161
+ S.Struct({
4162
+ zone: S.optional(S.String.pipe(T.Label())),
4163
+ acl_id: S.String.pipe(T.Label()),
4164
+ name: S.String,
4165
+ action: __S(169, __c21, 1),
4166
+ match: S.optional(__S(171, __c21, 3)),
4167
+ index: S.Number,
4168
+ description: S.optional(S.NullOr(S.String)),
4169
+ }).pipe(
4170
+ T.Http({
4171
+ method: "PUT",
4172
+ uri: "/lb/v1/zones/{zone}/acls/{acl_id}",
4173
+ code: 200,
4174
+ baseUrl: "https://api.scaleway.com",
4175
+ }),
4176
+ ),
4177
+ ).annotate({ identifier: "UpdateAclRequest" });
4178
+ }
4179
+ }
4180
+ function __c52(j: number): any {
4181
+ switch (j) {
4182
+ case 0:
4183
+ return S.suspend(() =>
4184
+ S.Struct({
4185
+ zone: S.optional(S.String.pipe(T.Label())),
4186
+ backend_id: S.String.pipe(T.Label()),
4187
+ name: S.String,
4188
+ forward_protocol: S.String,
4189
+ forward_port: S.Number,
4190
+ forward_port_algorithm: S.String,
4191
+ sticky_sessions: S.String,
4192
+ sticky_sessions_cookie_name: S.optional(S.String),
4193
+ send_proxy_v2: S.optional(S.Boolean),
4194
+ timeout_server: S.optional(S.Number),
4195
+ timeout_connect: S.optional(S.Number),
4196
+ timeout_tunnel: S.optional(S.Number),
4197
+ on_marked_down_action: S.optional(S.String),
4198
+ proxy_protocol: S.optional(S.String),
4199
+ failover_host: S.optional(S.NullOr(S.String)),
4200
+ ssl_bridging: S.optional(S.NullOr(S.Boolean)),
4201
+ ignore_ssl_server_verify: S.optional(S.NullOr(S.Boolean)),
4202
+ redispatch_attempt_count: S.optional(S.NullOr(S.Number)),
4203
+ max_retries: S.optional(S.NullOr(S.Number)),
4204
+ max_connections: S.optional(S.NullOr(S.Number)),
4205
+ timeout_queue: S.optional(S.NullOr(S.String)),
4206
+ host: S.optional(S.NullOr(S.String)),
4207
+ }).pipe(
4208
+ T.Http({
4209
+ method: "PUT",
4210
+ uri: "/lb/v1/zones/{zone}/backends/{backend_id}",
4211
+ code: 200,
4212
+ baseUrl: "https://api.scaleway.com",
4213
+ }),
4214
+ ),
4215
+ ).annotate({ identifier: "UpdateBackendRequest" });
4216
+ }
4217
+ }
4218
+ function __c53(j: number): any {
4219
+ switch (j) {
4220
+ case 0:
4221
+ return S.suspend(() =>
4222
+ S.Struct({
4223
+ zone: S.optional(S.String.pipe(T.Label())),
4224
+ certificate_id: S.String.pipe(T.Label()),
4225
+ name: S.String,
4226
+ }).pipe(
4227
+ T.Http({
4228
+ method: "PUT",
4229
+ uri: "/lb/v1/zones/{zone}/certificates/{certificate_id}",
4230
+ code: 200,
4231
+ baseUrl: "https://api.scaleway.com",
4232
+ }),
4233
+ ),
4234
+ ).annotate({ identifier: "UpdateCertificateRequest" });
4235
+ }
4236
+ }
4237
+ function __c54(j: number): any {
4238
+ switch (j) {
4239
+ case 0:
4240
+ return S.suspend(() =>
4241
+ S.Struct({
4242
+ zone: S.optional(S.String.pipe(T.Label())),
4243
+ frontend_id: S.String.pipe(T.Label()),
4244
+ name: S.String,
4245
+ inbound_port: S.Number,
4246
+ backend_id: S.String,
4247
+ timeout_client: S.optional(S.Number),
4248
+ certificate_id: S.optional(S.NullOr(S.String)),
4249
+ certificate_ids: S.optional(S.NullOr(__S(464, __c58, 0))),
4250
+ enable_http3: S.optional(S.Boolean),
4251
+ connection_rate_limit: S.optional(S.NullOr(S.Number)),
4252
+ enable_access_logs: S.optional(S.NullOr(S.Boolean)),
4253
+ }).pipe(
4254
+ T.Http({
4255
+ method: "PUT",
4256
+ uri: "/lb/v1/zones/{zone}/frontends/{frontend_id}",
4257
+ code: 200,
4258
+ baseUrl: "https://api.scaleway.com",
4259
+ }),
4260
+ ),
4261
+ ).annotate({ identifier: "UpdateFrontendRequest" });
4262
+ }
4263
+ }
4264
+ function __c55(j: number): any {
4265
+ switch (j) {
4266
+ case 0:
4267
+ return S.suspend(() =>
4268
+ S.Struct({
4269
+ zone: S.optional(S.String.pipe(T.Label())),
4270
+ backend_id: S.String.pipe(T.Label()),
4271
+ port: S.Number,
4272
+ check_delay: S.Number,
4273
+ check_timeout: S.Number,
4274
+ check_max_retries: S.Number,
4275
+ check_send_proxy: S.optional(S.Boolean),
4276
+ tcp_config: S.optional(S.NullOr(S.Unknown)),
4277
+ mysql_config: S.optional(S.NullOr(__S(48, __c6, 0))),
4278
+ pgsql_config: S.optional(S.NullOr(__S(48, __c6, 0))),
4279
+ ldap_config: S.optional(S.NullOr(S.Unknown)),
4280
+ redis_config: S.optional(S.NullOr(S.Unknown)),
4281
+ http_config: S.optional(S.NullOr(__S(49, __c6, 1))),
4282
+ https_config: S.optional(S.NullOr(__S(50, __c6, 2))),
4283
+ transient_check_delay: S.optional(S.NullOr(S.String)),
4284
+ }).pipe(
4285
+ T.Http({
4286
+ method: "PUT",
4287
+ uri: "/lb/v1/zones/{zone}/backends/{backend_id}/healthcheck",
4288
+ code: 200,
4289
+ baseUrl: "https://api.scaleway.com",
4290
+ }),
4291
+ ),
4292
+ ).annotate({ identifier: "UpdateHealthCheckRequest" });
4293
+ }
4294
+ }
4295
+ function __c56(j: number): any {
4296
+ switch (j) {
4297
+ case 0:
4298
+ return S.suspend(() =>
4299
+ S.Struct({
4300
+ zone: S.optional(S.String.pipe(T.Label())),
4301
+ ip_id: S.String.pipe(T.Label()),
4302
+ reverse: S.optional(S.NullOr(S.String)),
4303
+ lb_id: S.optional(S.NullOr(S.String)),
4304
+ tags: S.optional(S.NullOr(__S(464, __c58, 0))),
4305
+ }).pipe(
4306
+ T.Http({
4307
+ method: "PATCH",
4308
+ uri: "/lb/v1/zones/{zone}/ips/{ip_id}",
4309
+ code: 200,
4310
+ baseUrl: "https://api.scaleway.com",
4311
+ }),
4312
+ ),
4313
+ ).annotate({ identifier: "UpdateIpRequest" });
4314
+ }
4315
+ }
4316
+ function __c57(j: number): any {
4317
+ switch (j) {
4318
+ case 0:
4319
+ return S.suspend(() =>
4320
+ S.Struct({
4321
+ zone: S.optional(S.String.pipe(T.Label())),
4322
+ lb_id: S.String.pipe(T.Label()),
4323
+ name: S.String,
4324
+ inbound_port: S.Number,
4325
+ backend_id: S.String,
4326
+ timeout_client: S.optional(S.Number),
4327
+ certificate_id: S.optional(S.NullOr(S.String)),
4328
+ certificate_ids: S.optional(S.NullOr(__S(464, __c58, 0))),
4329
+ enable_http3: S.optional(S.Boolean),
4330
+ connection_rate_limit: S.optional(S.NullOr(S.Number)),
4331
+ enable_access_logs: S.optional(S.Boolean),
4332
+ }).pipe(
4333
+ T.Http({
4334
+ method: "POST",
4335
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}/frontends",
4336
+ code: 200,
4337
+ baseUrl: "https://api.scaleway.com",
4338
+ }),
4339
+ ),
4340
+ ).annotate({ identifier: "CreateFrontendRequest" });
4341
+ }
4342
+ }
4343
+ function __c58(j: number): any {
4344
+ switch (j) {
4345
+ case 0:
4346
+ return S.Array(S.Unknown);
4347
+ }
4348
+ }
4349
+ function __c59(j: number): any {
4350
+ switch (j) {
4351
+ case 0:
4352
+ return S.suspend(() =>
4353
+ S.Struct({
4354
+ zone: S.optional(S.String.pipe(T.Label())),
4355
+ lb_id: S.String.pipe(T.Label()),
4356
+ name: S.String,
4357
+ description: S.String,
4358
+ tags: S.optional(__S(8, __c1, 0)),
4359
+ ssl_compatibility_level: S.optional(S.String),
4360
+ }).pipe(
4361
+ T.Http({
4362
+ method: "PUT",
4363
+ uri: "/lb/v1/zones/{zone}/lbs/{lb_id}",
4364
+ code: 200,
4365
+ baseUrl: "https://api.scaleway.com",
4366
+ }),
4367
+ ),
4368
+ ).annotate({ identifier: "UpdateLbRequest" });
4369
+ }
4370
+ }
4371
+ function __c60(j: number): any {
4372
+ switch (j) {
4373
+ case 0:
4374
+ return S.suspend(() =>
4375
+ S.Struct({
4376
+ zone: S.optional(S.String.pipe(T.Label())),
4377
+ route_id: S.String.pipe(T.Label()),
4378
+ backend_id: S.optional(S.String),
4379
+ match: S.optional(__S(520, __c65, 0)),
4380
+ }).pipe(
4381
+ T.Http({
4382
+ method: "PUT",
4383
+ uri: "/lb/v1/zones/{zone}/routes/{route_id}",
4384
+ code: 200,
4385
+ baseUrl: "https://api.scaleway.com",
4386
+ }),
4387
+ ),
4388
+ ).annotate({ identifier: "UpdateRouteRequest" });
4389
+ }
4390
+ }
4391
+ function __c61(j: number): any {
4392
+ switch (j) {
4393
+ case 0:
4394
+ return S.suspend(() =>
4395
+ S.Struct({
4396
+ zone: S.optional(S.String.pipe(T.Label())),
4397
+ subscriber_id: S.String.pipe(T.Label()),
4398
+ name: S.String,
4399
+ email_config: S.optional(S.NullOr(__S(32, __c4, 0))),
4400
+ webhook_config: S.optional(S.NullOr(__S(33, __c4, 1))),
4401
+ }).pipe(
4402
+ T.Http({
4403
+ method: "PUT",
4404
+ uri: "/lb/v1/zones/{zone}/subscribers/{subscriber_id}",
4405
+ code: 200,
4406
+ baseUrl: "https://api.scaleway.com",
4407
+ }),
4408
+ ),
4409
+ ).annotate({ identifier: "UpdateSubscriberRequest" });
4410
+ }
4411
+ }
4412
+ function __c62(j: number): any {
4413
+ switch (j) {
4414
+ case 0:
4415
+ return S.suspend(() =>
4416
+ S.Struct({
4417
+ zone: S.optional(S.String.pipe(T.Label())),
4418
+ organization_id: S.optional(S.NullOr(S.String)),
4419
+ project_id: S.optional(S.NullOr(S.String)),
4420
+ reverse: S.optional(S.NullOr(S.String)),
4421
+ is_ipv6: S.optional(S.Boolean),
4422
+ tags: S.optional(__S(8, __c1, 0)),
4423
+ }).pipe(
4424
+ T.Http({
4425
+ method: "POST",
4426
+ uri: "/lb/v1/zones/{zone}/ips",
4427
+ code: 200,
4428
+ baseUrl: "https://api.scaleway.com",
4429
+ }),
4430
+ ),
4431
+ ).annotate({ identifier: "CreateIpRequest" });
4432
+ }
4433
+ }
4434
+ function __c63(j: number): any {
4435
+ switch (j) {
4436
+ case 0:
4437
+ return S.suspend(() =>
4438
+ S.Struct({
4439
+ zone: S.optional(S.String.pipe(T.Label())),
4440
+ organization_id: S.optional(S.NullOr(S.String)),
4441
+ project_id: S.optional(S.NullOr(S.String)),
4442
+ name: S.String,
4443
+ description: S.optional(S.String),
4444
+ ip_id: S.optional(S.NullOr(S.String)),
4445
+ assign_flexible_ip: S.optional(S.NullOr(S.Boolean)),
4446
+ assign_flexible_ipv6: S.optional(S.NullOr(S.Boolean)),
4447
+ ip_ids: S.optional(__S(8, __c1, 0)),
4448
+ tags: S.optional(__S(8, __c1, 0)),
4449
+ type: S.optional(S.String),
4450
+ ssl_compatibility_level: S.optional(S.String),
4451
+ }).pipe(
4452
+ T.Http({
4453
+ method: "POST",
4454
+ uri: "/lb/v1/zones/{zone}/lbs",
4455
+ code: 200,
4456
+ baseUrl: "https://api.scaleway.com",
4457
+ }),
4458
+ ),
4459
+ ).annotate({ identifier: "CreateLbRequest" });
4460
+ }
4461
+ }
4462
+ function __c64(j: number): any {
4463
+ switch (j) {
4464
+ case 0:
4465
+ return S.suspend(() =>
4466
+ S.Struct({
4467
+ zone: S.optional(S.String.pipe(T.Label())),
4468
+ frontend_id: S.optional(S.String),
4469
+ backend_id: S.optional(S.String),
4470
+ match: S.optional(__S(520, __c65, 0)),
4471
+ }).pipe(
4472
+ T.Http({
4473
+ method: "POST",
4474
+ uri: "/lb/v1/zones/{zone}/routes",
4475
+ code: 200,
4476
+ baseUrl: "https://api.scaleway.com",
4477
+ }),
4478
+ ),
4479
+ ).annotate({ identifier: "CreateRouteRequest" });
4480
+ }
4481
+ }
4482
+ function __c65(j: number): any {
4483
+ switch (j) {
4484
+ case 0:
4485
+ return S.suspend(() =>
4486
+ S.Struct({
4487
+ sni: S.optional(S.NullOr(S.String)),
4488
+ host_header: S.optional(S.NullOr(S.String)),
4489
+ match_subdomains: S.optional(S.Boolean),
4490
+ path_begin: S.optional(S.NullOr(S.String)),
4491
+ }),
4492
+ ).annotate({ identifier: "RouteMatch" });
4493
+ case 1:
4494
+ return S.suspend(() =>
4495
+ S.Struct({
4496
+ id: S.optional(S.String),
4497
+ frontend_id: S.optional(S.String),
4498
+ backend_id: S.optional(S.String),
4499
+ match: S.optional(__S(520, __c65, 0)),
4500
+ created_at: S.optional(S.NullOr(S.String)),
4501
+ updated_at: S.optional(S.NullOr(S.String)),
4502
+ zone: S.optional(S.String),
4503
+ srn: S.optional(S.String),
4504
+ }),
4505
+ ).annotate({ identifier: "Route" });
4506
+ }
4507
+ }
4508
+ function __c66(j: number): any {
4509
+ switch (j) {
4510
+ case 0:
4511
+ return S.suspend(() =>
4512
+ S.Struct({
4513
+ zone: S.optional(S.String.pipe(T.Label())),
4514
+ name: S.String,
4515
+ email_config: S.optional(S.NullOr(__S(32, __c4, 0))),
4516
+ webhook_config: S.optional(S.NullOr(__S(33, __c4, 1))),
4517
+ organization_id: S.optional(S.NullOr(S.String)),
4518
+ project_id: S.optional(S.NullOr(S.String)),
4519
+ }).pipe(
4520
+ T.Http({
4521
+ method: "POST",
4522
+ uri: "/lb/v1/zones/{zone}/subscribers",
4523
+ code: 200,
4524
+ baseUrl: "https://api.scaleway.com",
4525
+ }),
4526
+ ),
4527
+ ).annotate({ identifier: "CreateSubscriberRequest" });
4528
+ }
4529
+ }
4530
+ // Schema table: entry i is schema j of builder f, made on first reach.
4531
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
4532
+ return (__s[i] ??= __L.at(f, j));
4533
+ }