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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +171 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +635 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +89 -2
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +946 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2130 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5377 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,3765 @@
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 type * as Redacted from "effect/Redacted";
6
+ import { ScalewayServiceErrors } from "../errors.ts";
7
+ import { paginateByTotalCount } from "../pagination.ts";
8
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
9
+ import * as Retry from "../retry.ts";
10
+ import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
13
+
14
+ export type { ScalewayOpError, ScalewayOpContext };
15
+
16
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
17
+ const TELEMETRY = {
18
+ system: "scaleway-api",
19
+ responseHeaders: [
20
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
21
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
22
+ ],
23
+ prefix: "Scaleway",
24
+ service: "DediboxV1",
25
+ labels: "scaleway",
26
+ propagate: "w3c",
27
+ } as const;
28
+
29
+ export type AttachFailoverIPsRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
30
+ /** List of ID of failovers IP to attach. */
31
+ export type AttachFailoverIPsRequestFipsIdsList = Array<number>;
32
+ export interface AttachFailoverIPsRequest {
33
+ /** The zone you want to target */
34
+ zone?: AttachFailoverIPsRequestZone | (string & {}) | undefined;
35
+ /** ID of the server. */
36
+ server_id?: number | undefined;
37
+ /** List of ID of failovers IP to attach. */
38
+ fips_ids: AttachFailoverIPsRequestFipsIdsList;
39
+ }
40
+ export interface AttachFailoverIPsResponse {}
41
+ export type AttachFailoverIPToMacAddressRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
42
+ export type AttachFailoverIPToMacAddressRequestMacType =
43
+ | "mac_type_unknown"
44
+ | "vmware"
45
+ | "kvm"
46
+ | "xen";
47
+ export interface AttachFailoverIPToMacAddressRequest {
48
+ /** The zone you want to target */
49
+ zone?: AttachFailoverIPToMacAddressRequestZone | (string & {}) | undefined;
50
+ /** ID of the failover IP. */
51
+ ip_id: number;
52
+ /** A mac type. */
53
+ type?: AttachFailoverIPToMacAddressRequestMacType | (string & {}) | undefined;
54
+ /** A valid mac address (existing or not). */
55
+ mac?: string | null | undefined;
56
+ }
57
+ export type IPVersion = "ipv4" | "ipv6";
58
+ export type IPSemantic =
59
+ | "unknown"
60
+ | "proxad"
61
+ | "ext"
62
+ | "public"
63
+ | "private"
64
+ | "ipmi"
65
+ | "adm"
66
+ | "redirect"
67
+ | "migration";
68
+ export type IPStatus = "unknown_status" | "ready" | "busy" | "locked";
69
+ export interface IP {
70
+ /** ID of the IP. */
71
+ ip_id?: number | undefined;
72
+ /** Address of the IP. (IP address) */
73
+ address?: string | undefined;
74
+ /** Reverse IP value. */
75
+ reverse?: string | undefined;
76
+ /** Version of IP (v4 or v6). */
77
+ version?: IPVersion | undefined;
78
+ /** Classless InterDomain Routing notation of the IP. */
79
+ cidr?: number | undefined;
80
+ /** Network mask of IP. (IP address) */
81
+ netmask?: string | undefined;
82
+ /** Semantic of IP. */
83
+ semantic?: IPSemantic | undefined;
84
+ /** Gateway of IP. (IP address) */
85
+ gateway?: string | undefined;
86
+ /** Status of the IP. */
87
+ status?: IPStatus | undefined;
88
+ }
89
+ export type CancelServerInstallRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
90
+ export interface CancelServerInstallRequest {
91
+ /** The zone you want to target */
92
+ zone?: CancelServerInstallRequestZone | (string & {}) | undefined;
93
+ /** Server ID of the server to cancel install. */
94
+ server_id: number;
95
+ }
96
+ export interface CancelServerInstallResponse {}
97
+ export type CreateFailoverIPsRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
98
+ export interface CreateFailoverIPsRequest {
99
+ /** The zone you want to target */
100
+ zone?: CreateFailoverIPsRequestZone | (string & {}) | undefined;
101
+ /** Failover IP offer ID. */
102
+ offer_id?: number | undefined;
103
+ /** Project ID. */
104
+ project_id?: string | undefined;
105
+ /** Quantity. */
106
+ quantity?: number | undefined;
107
+ }
108
+ export type ServiceProvisioningStatus =
109
+ | "unknown"
110
+ | "delivering"
111
+ | "ready"
112
+ | "error"
113
+ | "expiring"
114
+ | "expired";
115
+ export type OfferCatalog =
116
+ | "all"
117
+ | "default"
118
+ | "beta"
119
+ | "reseller"
120
+ | "premium"
121
+ | "volume"
122
+ | "admin"
123
+ | "inactive";
124
+ export type OfferPaymentFrequency = "monthly" | "oneshot";
125
+ export interface GoogleTypeMoney {
126
+ currency_code?: string | undefined;
127
+ units?: number | undefined;
128
+ nanos?: number | undefined;
129
+ }
130
+ export type OfferServerInfoStock = "empty" | "low" | "available";
131
+ export type ServerDiskType = "sata" | "ssd" | "sas" | "sshd" | "usb" | "nvme";
132
+ export interface Disk {
133
+ /** Capacity of the disk. (in bytes) */
134
+ capacity?: number | undefined;
135
+ /** Type of the disk. */
136
+ type?: ServerDiskType | undefined;
137
+ }
138
+ export type OfferServerInfoDisksList = Array<Disk>;
139
+ export interface CPU {
140
+ /** Name of CPU. */
141
+ name?: string | undefined;
142
+ /** Number of cores of the CPU. */
143
+ core_count?: number | undefined;
144
+ /** Number of threads of the CPU. */
145
+ thread_count?: number | undefined;
146
+ /** Frequency of the CPU. */
147
+ frequency?: number | undefined;
148
+ /** Bench of the CPU. */
149
+ bench?: number | undefined;
150
+ }
151
+ export type OfferServerInfoCpusList = Array<CPU>;
152
+ export type MemoryType = "ddr2" | "ddr3" | "ddr4" | "ddr5";
153
+ export interface Memory {
154
+ /** Capacity of the memory. (in bytes) */
155
+ capacity?: number | undefined;
156
+ /** Type of the memory. */
157
+ type?: MemoryType | undefined;
158
+ /** Frequency of the memory. */
159
+ frequency?: number | undefined;
160
+ /** True if the memory is an error-correcting code memory. */
161
+ is_ecc?: boolean | undefined;
162
+ }
163
+ export type OfferServerInfoMemoriesList = Array<Memory>;
164
+ export interface PersistentMemory {
165
+ /** Capacity of the persistent memory. (in bytes) */
166
+ capacity?: number | undefined;
167
+ /** Frequency of the persistent memory. */
168
+ frequency?: number | undefined;
169
+ /** Model of the persistent memory. */
170
+ model?: string | undefined;
171
+ }
172
+ export type OfferServerInfoPersistentMemoriesList = Array<PersistentMemory>;
173
+ /** RAID level of the RAID controller. */
174
+ export type RaidControllerRaidLevelList = Array<string>;
175
+ export interface RaidController {
176
+ /** Model of the RAID controller. */
177
+ model?: string | undefined;
178
+ /** RAID level of the RAID controller. */
179
+ raid_level?: RaidControllerRaidLevelList | undefined;
180
+ }
181
+ export type OfferServerInfoRaidControllersList = Array<RaidController>;
182
+ export type OfferServerInfoAvailableOptionsList = Array<Offer>;
183
+ export type OfferServerInfoStockByDatacenterMap = {
184
+ [key: string]: OfferServerInfoStock | undefined;
185
+ };
186
+ export interface OfferServerInfoAvailability {
187
+ stock?: OfferServerInfoStock | undefined;
188
+ quantity?: number | undefined;
189
+ }
190
+ export type OfferServerInfoAvailabilityByDatacenterMap = {
191
+ [key: string]: OfferServerInfoAvailability | undefined;
192
+ };
193
+ export interface OfferServerInfo {
194
+ bandwidth?: number | undefined;
195
+ stock?: OfferServerInfoStock | undefined;
196
+ commercial_range?: string | undefined;
197
+ disks?: OfferServerInfoDisksList | undefined;
198
+ cpus?: OfferServerInfoCpusList | undefined;
199
+ memories?: OfferServerInfoMemoriesList | undefined;
200
+ persistent_memories?: OfferServerInfoPersistentMemoriesList | undefined;
201
+ raid_controllers?: OfferServerInfoRaidControllersList | undefined;
202
+ available_options?: OfferServerInfoAvailableOptionsList | undefined;
203
+ rpn_version?: number | null | undefined;
204
+ connectivity?: number | undefined;
205
+ onetime_fees?: Offer | undefined;
206
+ stock_by_datacenter?: OfferServerInfoStockByDatacenterMap | undefined;
207
+ availability_by_datacenter?: OfferServerInfoAvailabilityByDatacenterMap | undefined;
208
+ rpn_speed?: number | undefined;
209
+ }
210
+ export type OfferServiceLevelInfoAvailableOptionsList = Array<Offer>;
211
+ export interface OfferServiceLevelInfo {
212
+ support_ticket?: boolean | undefined;
213
+ support_phone?: boolean | undefined;
214
+ sales_support?: boolean | undefined;
215
+ git?: string | undefined;
216
+ sla?: number | undefined;
217
+ priority_support?: boolean | undefined;
218
+ high_rpn_bandwidth?: boolean | undefined;
219
+ customization?: boolean | undefined;
220
+ antidos?: boolean | undefined;
221
+ extra_failover_quota?: number | undefined;
222
+ available_options?: OfferServiceLevelInfoAvailableOptionsList | undefined;
223
+ }
224
+ export interface OfferRPNInfo {
225
+ speed?: number | undefined;
226
+ }
227
+ export type OfferSANInfoType = "hdd" | "ssd";
228
+ export interface OfferSANInfo {
229
+ /** SAN size (in bytes). */
230
+ size?: number | undefined;
231
+ /** High availability offer. */
232
+ ha?: boolean | undefined;
233
+ /** Type of SAN device (hdd / ssd). */
234
+ device_type?: OfferSANInfoType | undefined;
235
+ }
236
+ export type OfferAntiDosInfoType = "minimal" | "preventive" | "curative";
237
+ export interface OfferAntiDosInfo {
238
+ type?: OfferAntiDosInfoType | undefined;
239
+ }
240
+ export interface OfferBackupInfo {
241
+ /** (in bytes) */
242
+ size?: number | undefined;
243
+ }
244
+ export interface OfferStorageInfo {
245
+ max_quota?: number | undefined;
246
+ /** (in bytes) */
247
+ size?: number | undefined;
248
+ }
249
+ export interface OfferLicenseInfo {
250
+ bound_to_ip?: boolean | undefined;
251
+ }
252
+ export interface OfferFailoverIpInfo {
253
+ onetime_fees?: Offer | undefined;
254
+ }
255
+ export type OfferFailoverBlockInfo = OfferFailoverIpInfo;
256
+ export type OfferBandwidthInfo = OfferRPNInfo;
257
+ export interface OfferCommitment {
258
+ /** Unit used for discount. */
259
+ unit?: string | undefined;
260
+ /** Value of the discount. */
261
+ value?: number | undefined;
262
+ /** Is it free setup fees. */
263
+ free_setup_fees?: boolean | undefined;
264
+ /** Commitment's required duration. */
265
+ duration?: string | undefined;
266
+ /** Discounted price of the commitment. */
267
+ discounted_price?: GoogleTypeMoney | undefined;
268
+ }
269
+ /** Commitment info if it is a commitment offer. */
270
+ export type OfferCommitmentsList = Array<OfferCommitment>;
271
+ export type OSType =
272
+ | "unknown_type"
273
+ | "server"
274
+ | "virtu"
275
+ | "panel"
276
+ | "desktop"
277
+ | "custom"
278
+ | "rescue";
279
+ export type OSArch = "unknown_arch" | "amd64" | "x86" | "arm" | "arm64";
280
+ export type PartitionFileSystem =
281
+ | "unknown"
282
+ | "efi"
283
+ | "swap"
284
+ | "ext4"
285
+ | "ext3"
286
+ | "ext2"
287
+ | "xfs"
288
+ | "ntfs"
289
+ | "fat32"
290
+ | "ufs";
291
+ /** True if the OS allow file systems. */
292
+ export type OSAllowedFilesystemsList = Array<PartitionFileSystem>;
293
+ /** License offers available with the OS. */
294
+ export type OSLicenseOffersList = Array<Offer>;
295
+ export interface OS {
296
+ /** ID of the OS. */
297
+ id?: number | undefined;
298
+ /** Name of the OS. */
299
+ name?: string | undefined;
300
+ /** Type of the OS. */
301
+ type?: OSType | undefined;
302
+ /** Version of the OS. */
303
+ version?: string | undefined;
304
+ /** Architecture of the OS. */
305
+ arch?: OSArch | undefined;
306
+ /** True if the OS allow custom partitioning. */
307
+ allow_custom_partitioning?: boolean | undefined;
308
+ /** True if the OS allow SSH Keys. */
309
+ allow_ssh_keys?: boolean | undefined;
310
+ /** True if the OS requires user. */
311
+ requires_user?: boolean | undefined;
312
+ /** True if the OS requires admin password. */
313
+ requires_admin_password?: boolean | undefined;
314
+ /** True if the OS requires panel password. */
315
+ requires_panel_password?: boolean | undefined;
316
+ /** True if the OS allow file systems. */
317
+ allowed_filesystems?: OSAllowedFilesystemsList | undefined;
318
+ /** True if the OS requires license. */
319
+ requires_license?: boolean | undefined;
320
+ /** License offers available with the OS. */
321
+ license_offers?: OSLicenseOffersList | undefined;
322
+ /** Maximum number of partitions which can be created. */
323
+ max_partitions?: number | null | undefined;
324
+ /** Display name of the OS. */
325
+ display_name?: string | undefined;
326
+ /** Regex used to validate the installation passwords. */
327
+ password_regex?: string | undefined;
328
+ /** Regex used to validate the panel installation password. */
329
+ panel_password_regex?: string | null | undefined;
330
+ /** Whether or not the installation requires a valid hostname (ex: my.scaleway.com). If both requires_valid_hostname & hostname_regex are set, it means that at least one of the criteria must be valid. */
331
+ requires_valid_hostname?: boolean | null | undefined;
332
+ /** Regex used to validate the hostname during the installation. If both requires_valid_hostname & hostname_regex are set, it means that at least one of the criteria must be valid. */
333
+ hostname_regex?: string | null | undefined;
334
+ /** Hostname max length. */
335
+ hostname_max_length?: number | undefined;
336
+ /** OS release date. (RFC 3339 format) */
337
+ released_at?: string | null | undefined;
338
+ /** Is it a beta OS. */
339
+ beta?: string | undefined;
340
+ /** Description of the OS. */
341
+ description?: string | undefined;
342
+ /** URL to OS official website. */
343
+ official_website?: string | undefined;
344
+ }
345
+ /** Available OS info if it is a available OS offer. */
346
+ export type OfferAvailableOsList = Array<OS>;
347
+ export interface Offer {
348
+ /** ID of the offer (aka product.id). */
349
+ id?: number | undefined;
350
+ /** Name of the offer. */
351
+ name?: string | undefined;
352
+ /** Catalog of the offer. */
353
+ catalog?: OfferCatalog | undefined;
354
+ /** Payment frequency of the offer. */
355
+ payment_frequency?: OfferPaymentFrequency | undefined;
356
+ /** Price of the offer. */
357
+ pricing?: GoogleTypeMoney | undefined;
358
+ /** Original Dedibox ID of the offer. */
359
+ offer_id?: number | null | undefined;
360
+ /** Server info if it is a server offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
361
+ server_info?: OfferServerInfo | null | undefined;
362
+ /** Service level info if it is a service level offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
363
+ service_level_info?: OfferServiceLevelInfo | null | undefined;
364
+ /** RPN info if it is a RPN offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
365
+ rpn_info?: OfferRPNInfo | null | undefined;
366
+ /** SAN info if it is a SAN offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
367
+ san_info?: OfferSANInfo | null | undefined;
368
+ /** AntiDOS info if it is a antiDOS offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
369
+ antidos_info?: OfferAntiDosInfo | null | undefined;
370
+ /** Backup info if it is a backup offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
371
+ backup_info?: OfferBackupInfo | null | undefined;
372
+ /** USB storage info if it is a USB storage offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
373
+ usb_storage_info?: OfferStorageInfo | null | undefined;
374
+ /** Storage info if it is a storage offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
375
+ storage_info?: OfferStorageInfo | null | undefined;
376
+ /** License info if it is a license offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
377
+ license_info?: OfferLicenseInfo | null | undefined;
378
+ /** Failover IP info if it is a failover IP offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
379
+ failover_ip_info?: OfferFailoverIpInfo | null | undefined;
380
+ /** Failover block info if it is a failover block offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
381
+ failover_block_info?: OfferFailoverIpInfo | null | undefined;
382
+ /** Bandwidth info if it is a bandwidth offer. Precisely one of server_info, service_level_info, rpn_info, san_info, antidos_info, backup_info, usb_storage_info, storage_info, license_info, failover_ip_info, failover_block_info, bandwidth_info can be set. */
383
+ bandwidth_info?: OfferRPNInfo | null | undefined;
384
+ /** Commitment info if it is a commitment offer. */
385
+ commitments?: OfferCommitmentsList | undefined;
386
+ /** Available OS info if it is a available OS offer. */
387
+ available_os?: OfferAvailableOsList | undefined;
388
+ }
389
+ export type ServiceType = "unknown_type" | "service" | "order";
390
+ export interface Service {
391
+ /** ID of the service. */
392
+ id?: number | undefined;
393
+ /** Resource ID of the service. */
394
+ resource_id?: number | null | undefined;
395
+ /** Provisioning status of the service. */
396
+ provisioning_status?: ServiceProvisioningStatus | undefined;
397
+ /** Offer of the service. */
398
+ offer?: Offer | undefined;
399
+ /** Creation date of the service. (RFC 3339 format) */
400
+ created_at?: string | null | undefined;
401
+ /** Delivery date of the service. (RFC 3339 format) */
402
+ delivered_at?: string | null | undefined;
403
+ /** Terminatation date of the service. (RFC 3339 format) */
404
+ terminated_at?: string | null | undefined;
405
+ /** Expiration date of the service. (RFC 3339 format) */
406
+ expires_at?: string | null | undefined;
407
+ /** Service type, either order or service. */
408
+ type?: ServiceType | undefined;
409
+ }
410
+ export type CreateFailoverIPsResponseServicesList = Array<Service>;
411
+ export interface CreateFailoverIPsResponse {
412
+ total_count?: number | undefined;
413
+ services?: CreateFailoverIPsResponseServicesList | undefined;
414
+ }
415
+ export type CreateServerRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
416
+ /** Server option IDs of the new server. */
417
+ export type CreateServerRequestServerOptionIdsList = Array<number>;
418
+ export interface CreateServerRequest {
419
+ /** The zone you want to target */
420
+ zone?: CreateServerRequestZone | (string & {}) | undefined;
421
+ /** Offer ID of the new server. */
422
+ offer_id?: number | undefined;
423
+ /** Server option IDs of the new server. */
424
+ server_option_ids: CreateServerRequestServerOptionIdsList;
425
+ /** Project ID of the new server. */
426
+ project_id?: string | undefined;
427
+ /** Datacenter name of the new server. */
428
+ datacenter_name?: string | null | undefined;
429
+ }
430
+ export type DeleteFailoverIPRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
431
+ export interface DeleteFailoverIPRequest {
432
+ /** The zone you want to target */
433
+ zone?: DeleteFailoverIPRequestZone | (string & {}) | undefined;
434
+ /** ID of the failover IP to delete. */
435
+ ip_id: number;
436
+ }
437
+ export interface DeleteFailoverIPResponse {}
438
+ export type DeleteServerRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
439
+ export interface DeleteServerRequest {
440
+ /** The zone you want to target */
441
+ zone?: DeleteServerRequestZone | (string & {}) | undefined;
442
+ /** Server ID to delete. */
443
+ server_id: number;
444
+ }
445
+ export interface DeleteServerResponse {}
446
+ export type DeleteServiceRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
447
+ export interface DeleteServiceRequest {
448
+ /** The zone you want to target */
449
+ zone?: DeleteServiceRequestZone | (string & {}) | undefined;
450
+ /** ID of the service. */
451
+ service_id: number;
452
+ }
453
+ export type DetachFailoverIPFromMacAddressRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
454
+ export interface DetachFailoverIPFromMacAddressRequest {
455
+ /** The zone you want to target */
456
+ zone?: DetachFailoverIPFromMacAddressRequestZone | (string & {}) | undefined;
457
+ /** ID of the failover IP. */
458
+ ip_id: number;
459
+ }
460
+ export type DetachFailoverIPsRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
461
+ /** List of IDs of failovers IP to detach. */
462
+ export type DetachFailoverIPsRequestFipsIdsList = Array<number>;
463
+ export interface DetachFailoverIPsRequest {
464
+ /** The zone you want to target */
465
+ zone?: DetachFailoverIPsRequestZone | (string & {}) | undefined;
466
+ /** List of IDs of failovers IP to detach. */
467
+ fips_ids: DetachFailoverIPsRequestFipsIdsList;
468
+ }
469
+ export interface DetachFailoverIPsResponse {}
470
+ export type GetBMCAccessRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
471
+ export interface GetBMCAccessRequest {
472
+ /** The zone you want to target */
473
+ zone?: GetBMCAccessRequestZone | (string & {}) | undefined;
474
+ /** ID of the server to get BMC access. */
475
+ server_id: number;
476
+ }
477
+ export type BMCAccessStatus = "unknown" | "creating" | "created" | "deleting";
478
+ export interface BMCAccess {
479
+ /** URL to access to the server console. */
480
+ url?: string | undefined;
481
+ /** The login to use for the BMC (Baseboard Management Controller) access authentication. */
482
+ login?: string | undefined;
483
+ /** The password to use for the BMC (Baseboard Management Controller) access authentication. */
484
+ password?: string | Redacted.Redacted<string> | undefined;
485
+ /** The date after which the BMC (Baseboard Management Controller) access will be closed. (RFC 3339 format) */
486
+ expires_at?: string | null | undefined;
487
+ /** Status of the connection. */
488
+ status?: BMCAccessStatus | undefined;
489
+ }
490
+ export type GetFailoverIPRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
491
+ export interface GetFailoverIPRequest {
492
+ /** The zone you want to target */
493
+ zone?: GetFailoverIPRequestZone | (string & {}) | undefined;
494
+ /** ID of the failover IP. */
495
+ ip_id: number;
496
+ }
497
+ export type FailoverIPVersion = "unknown_version" | "ipv4" | "ipv6";
498
+ export type FailoverIPStatus = "unknown_status" | "ready" | "busy" | "locked";
499
+ /** Name servers. */
500
+ export type FailoverBlockNameserversList = Array<string>;
501
+ export type FailoverBlockVersion = "unknown_version" | "ipv4" | "ipv6";
502
+ export interface FailoverBlock {
503
+ /** ID of the failover block. */
504
+ id?: number | undefined;
505
+ /** IP of the failover block. (IP address) */
506
+ address?: string | undefined;
507
+ /** Name servers. */
508
+ nameservers?: FailoverBlockNameserversList | undefined;
509
+ /** IP version of the failover block. */
510
+ ip_version?: FailoverBlockVersion | undefined;
511
+ /** Classless InterDomain Routing notation of the failover block. */
512
+ cidr?: number | undefined;
513
+ /** Netmask of the failover block. (IP address) */
514
+ netmask?: string | undefined;
515
+ /** Gateway IP of the failover block. (IP address) */
516
+ gateway_ip?: string | undefined;
517
+ }
518
+ export type FailoverIPInterfaceType = "unknown" | "normal" | "ipmi" | "virtual";
519
+ export interface FailoverIP {
520
+ /** ID of the failover IP. */
521
+ id?: number | undefined;
522
+ /** IP of the failover IP. (IP address) */
523
+ address?: string | undefined;
524
+ /** Reverse IP value. */
525
+ reverse?: string | undefined;
526
+ /** IP version of the failover IP. */
527
+ ip_version?: FailoverIPVersion | undefined;
528
+ /** Classless InterDomain Routing notation of the failover IP. */
529
+ cidr?: number | undefined;
530
+ /** Netmask of the failover IP. (IP address) */
531
+ netmask?: string | undefined;
532
+ /** Gateway IP of the failover IP. (IP address) */
533
+ gateway_ip?: string | undefined;
534
+ /** MAC address of the IP failover. */
535
+ mac?: string | null | undefined;
536
+ /** Server ID linked to the IP failover. */
537
+ server_id?: number | null | undefined;
538
+ /** Status of the IP failover. */
539
+ status?: FailoverIPStatus | undefined;
540
+ /** Block of the IP failover. */
541
+ block?: FailoverBlock | undefined;
542
+ /** The interface type. */
543
+ type?: FailoverIPInterfaceType | undefined;
544
+ /** The server zone (if assigned). */
545
+ server_zone?: string | null | undefined;
546
+ }
547
+ export type GetOfferRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
548
+ export interface GetOfferRequest {
549
+ /** The zone you want to target */
550
+ zone?: GetOfferRequestZone | (string & {}) | undefined;
551
+ /** ID of offer. */
552
+ offer_id: number;
553
+ /** Project ID. */
554
+ project_id?: string | undefined;
555
+ }
556
+ export type GetOrderedServiceRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
557
+ export interface GetOrderedServiceRequest {
558
+ /** The zone you want to target */
559
+ zone?: GetOrderedServiceRequestZone | (string & {}) | undefined;
560
+ ordered_service_id: number;
561
+ }
562
+ export type GetOSRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
563
+ export interface GetOSRequest {
564
+ /** The zone you want to target */
565
+ zone?: GetOSRequestZone | (string & {}) | undefined;
566
+ /** ID of the OS. */
567
+ os_id: number;
568
+ /** ID of the server. */
569
+ server_id: number;
570
+ /** Project ID. */
571
+ project_id?: string | undefined;
572
+ }
573
+ export type GetRaidRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
574
+ export interface GetRaidRequest {
575
+ /** The zone you want to target */
576
+ zone?: GetRaidRequestZone | (string & {}) | undefined;
577
+ /** ID of the server. */
578
+ server_id: number;
579
+ }
580
+ export type RaidArrayRaidLevel = "no_raid" | "raid0" | "raid1" | "raid5" | "raid6" | "raid10";
581
+ export interface ServerDisk {
582
+ id?: number | undefined;
583
+ connector?: string | undefined;
584
+ type?: ServerDiskType | undefined;
585
+ /** (in bytes) */
586
+ capacity?: number | undefined;
587
+ is_addon?: boolean | undefined;
588
+ }
589
+ /** Disks on the RAID controller. */
590
+ export type RaidArrayDisksList = Array<ServerDisk>;
591
+ export interface RaidArray {
592
+ /** The RAID level. */
593
+ raid_level?: RaidArrayRaidLevel | undefined;
594
+ /** Disks on the RAID controller. */
595
+ disks?: RaidArrayDisksList | undefined;
596
+ }
597
+ /** Details about the RAID controller. */
598
+ export type RaidRaidArraysList = Array<RaidArray>;
599
+ export interface Raid {
600
+ /** Details about the RAID controller. */
601
+ raid_arrays?: RaidRaidArraysList | undefined;
602
+ }
603
+ export type GetRemainingQuotaRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
604
+ export interface GetRemainingQuotaRequest {
605
+ /** The zone you want to target */
606
+ zone?: GetRemainingQuotaRequestZone | (string & {}) | undefined;
607
+ /** Project ID. */
608
+ project_id?: string | undefined;
609
+ }
610
+ export interface GetRemainingQuotaResponse {
611
+ /** Current failover IP quota. */
612
+ failover_ip_quota?: number | undefined;
613
+ /** Remaining failover IP quota. */
614
+ failover_ip_remaining_quota?: number | undefined;
615
+ /** Current failover block quota. */
616
+ failover_block_quota?: number | undefined;
617
+ /** Remaining failover block quota. */
618
+ failover_block_remaining_quota?: number | undefined;
619
+ }
620
+ export type GetRescueRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
621
+ export interface GetRescueRequest {
622
+ /** The zone you want to target */
623
+ zone?: GetRescueRequestZone | (string & {}) | undefined;
624
+ /** ID of the server to get rescue. */
625
+ server_id: number;
626
+ }
627
+ export type RescueProtocol = "vnc" | "ssh";
628
+ export interface Rescue {
629
+ /** OS ID of the rescue. */
630
+ os_id?: number | undefined;
631
+ /** Login of the rescue. */
632
+ login?: string | undefined;
633
+ /** Password of the rescue. */
634
+ password?: string | Redacted.Redacted<string> | undefined;
635
+ /** Protocol of the rescue. */
636
+ protocol?: RescueProtocol | undefined;
637
+ }
638
+ export type GetServerRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
639
+ export interface GetServerRequest {
640
+ /** The zone you want to target */
641
+ zone?: GetServerRequestZone | (string & {}) | undefined;
642
+ /** ID of the server. */
643
+ server_id: number;
644
+ }
645
+ export type ServerStatus =
646
+ | "unknown"
647
+ | "delivering"
648
+ | "installing"
649
+ | "ready"
650
+ | "stopped"
651
+ | "error"
652
+ | "locked"
653
+ | "rescue"
654
+ | "busy";
655
+ export interface ServerLocation {
656
+ rack?: string | undefined;
657
+ room?: string | undefined;
658
+ datacenter_name?: string | undefined;
659
+ }
660
+ export type NetworkInterfaceInterfaceType = "unknown" | "normal" | "ipmi" | "virtual";
661
+ /** IPs of the network interface. */
662
+ export type NetworkInterfaceIpsList = Array<IP>;
663
+ export interface NetworkInterface {
664
+ /** Card ID of the network interface. */
665
+ card_id?: number | undefined;
666
+ /** Device ID of the network interface. */
667
+ device_id?: number | undefined;
668
+ /** MAC address of the network interface. */
669
+ mac?: string | undefined;
670
+ /** Network interface type. */
671
+ type?: NetworkInterfaceInterfaceType | undefined;
672
+ /** IPs of the network interface. */
673
+ ips?: NetworkInterfaceIpsList | undefined;
674
+ }
675
+ /** Network interfaces of the server. */
676
+ export type ServerInterfacesList = Array<NetworkInterface>;
677
+ export type ServerOptionOptionsList = Array<ServerOption>;
678
+ export interface ServerOption {
679
+ offer?: Offer | undefined;
680
+ /** (RFC 3339 format) */
681
+ created_at?: string | null | undefined;
682
+ /** (RFC 3339 format) */
683
+ updated_at?: string | null | undefined;
684
+ /** (RFC 3339 format) */
685
+ expired_at?: string | null | undefined;
686
+ options?: ServerOptionOptionsList | undefined;
687
+ }
688
+ /** Options subscribe on the server. */
689
+ export type ServerOptionsList = Array<ServerOption>;
690
+ export type ServiceLevelLevel = "unknown" | "basic" | "business";
691
+ export interface ServiceLevel {
692
+ /** Offer ID of service level. */
693
+ offer_id?: number | undefined;
694
+ /** Level type of service level. */
695
+ level?: ServiceLevelLevel | undefined;
696
+ }
697
+ /** Array of customs tags attached to the server. */
698
+ export type ServerTagsList = Array<string>;
699
+ export interface Server {
700
+ /** ID of the server. */
701
+ id?: number | undefined;
702
+ /** Organization ID the server is attached to. */
703
+ organization_id?: string | undefined;
704
+ /** Project ID the server is attached to. */
705
+ project_id?: string | undefined;
706
+ /** Hostname of the server. */
707
+ hostname?: string | undefined;
708
+ /** Date of last reboot of the server. (RFC 3339 format) */
709
+ rebooted_at?: string | null | undefined;
710
+ /** Date of creation of the server. (RFC 3339 format) */
711
+ created_at?: string | null | undefined;
712
+ /** Date of last modification of the server. (RFC 3339 format) */
713
+ updated_at?: string | null | undefined;
714
+ /** Date of release of the server. (RFC 3339 format) */
715
+ expired_at?: string | null | undefined;
716
+ /** Offer of the server. */
717
+ offer?: Offer | undefined;
718
+ /** Status of the server. */
719
+ status?: ServerStatus | undefined;
720
+ /** Location of the server. */
721
+ location?: ServerLocation | undefined;
722
+ /** Abuse contact of the server. */
723
+ abuse_contact?: string | undefined;
724
+ /** OS installed on the server. */
725
+ os?: OS | undefined;
726
+ /** Network interfaces of the server. */
727
+ interfaces?: ServerInterfacesList | undefined;
728
+ /** The zone in which is the server. */
729
+ zone?: string | undefined;
730
+ /** Options subscribe on the server. */
731
+ options?: ServerOptionsList | undefined;
732
+ /** Service level of the server. */
733
+ level?: ServiceLevel | undefined;
734
+ /** Boolean if the server has a BMC. */
735
+ has_bmc?: boolean | undefined;
736
+ /** Rescue OS of the server. */
737
+ rescue_os?: OS | undefined;
738
+ /** Array of customs tags attached to the server. */
739
+ tags?: ServerTagsList | undefined;
740
+ /** Whether the server is outsourced or not. */
741
+ is_outsourced?: boolean | undefined;
742
+ /** Whether or not you can enable/disable the IPv6. */
743
+ ipv6_slaac?: boolean | undefined;
744
+ /** Whether the server is compatible with QinQ. */
745
+ qinq?: boolean | undefined;
746
+ /** Whether or not the server is already part of an rpnv2 group. */
747
+ is_rpnv2_member?: boolean | undefined;
748
+ /** Whether or not the server is HDS. */
749
+ is_hds?: boolean | undefined;
750
+ }
751
+ export type GetServerBackupRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
752
+ export interface GetServerBackupRequest {
753
+ /** The zone you want to target */
754
+ zone?: GetServerBackupRequestZone | (string & {}) | undefined;
755
+ /** Server ID of the backup. */
756
+ server_id: number;
757
+ }
758
+ export type BackupStatus = "unknown_backup_status" | "uninitialized" | "inactive" | "ready";
759
+ export interface Backup {
760
+ /** ID of the backup. */
761
+ id?: number | undefined;
762
+ /** Login of the backup. */
763
+ login?: string | undefined;
764
+ /** Server of the backup. */
765
+ server?: string | undefined;
766
+ /** Status of the backup. */
767
+ status?: BackupStatus | undefined;
768
+ /** ACL enable boolean of the backup. */
769
+ acl_enabled?: boolean | undefined;
770
+ /** Autologin boolean of the backup. */
771
+ autologin?: boolean | undefined;
772
+ /** Total quota space of the backup. */
773
+ quota_space?: number | undefined;
774
+ /** Quota space used of the backup. */
775
+ quota_space_used?: number | undefined;
776
+ /** Total quota files of the backup. */
777
+ quota_files?: number | undefined;
778
+ /** Quota files used of the backup. */
779
+ quota_files_used?: number | undefined;
780
+ }
781
+ export type GetServerDefaultPartitioningRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
782
+ export interface GetServerDefaultPartitioningRequest {
783
+ /** The zone you want to target */
784
+ zone?: GetServerDefaultPartitioningRequestZone | (string & {}) | undefined;
785
+ /** ID of the server. */
786
+ server_id: number;
787
+ /** OS ID of the default partitioning. */
788
+ os_id: number;
789
+ }
790
+ export type PartitionType = "primary" | "extended" | "logical";
791
+ /** Connectors of the partition. */
792
+ export type PartitionConnectorsList = Array<string>;
793
+ export interface Partition {
794
+ /** Type of the partition. */
795
+ type?: PartitionType | undefined;
796
+ /** File system of the partition. */
797
+ file_system?: PartitionFileSystem | undefined;
798
+ /** Mount point of the partition. */
799
+ mount_point?: string | null | undefined;
800
+ /** Raid level of the partition. */
801
+ raid_level?: RaidArrayRaidLevel | undefined;
802
+ /** Capacity of the partition. (in bytes) */
803
+ capacity?: number | undefined;
804
+ /** Connectors of the partition. */
805
+ connectors?: PartitionConnectorsList | undefined;
806
+ }
807
+ /** Default partitions. */
808
+ export type ServerDefaultPartitioningPartitionsList = Array<Partition>;
809
+ export interface ServerDefaultPartitioning {
810
+ /** Default partitions. */
811
+ partitions?: ServerDefaultPartitioningPartitionsList | undefined;
812
+ }
813
+ export type GetServerInstallRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
814
+ export interface GetServerInstallRequest {
815
+ /** The zone you want to target */
816
+ zone?: GetServerInstallRequestZone | (string & {}) | undefined;
817
+ /** Server ID of the server to install. */
818
+ server_id: number;
819
+ }
820
+ export type ServerInstallPartitionsList = Array<Partition>;
821
+ export type ServerInstallSshKeyIdsList = Array<string>;
822
+ export type ServerInstallStatus =
823
+ | "unknown"
824
+ | "booting"
825
+ | "setting_up_raid"
826
+ | "partitioning"
827
+ | "formatting"
828
+ | "installing"
829
+ | "configuring"
830
+ | "configuring_bootloader"
831
+ | "rebooting"
832
+ | "installed";
833
+ export interface ServerInstall {
834
+ os_id?: number | undefined;
835
+ hostname?: string | undefined;
836
+ user_login?: string | null | undefined;
837
+ partitions?: ServerInstallPartitionsList | undefined;
838
+ ssh_key_ids?: ServerInstallSshKeyIdsList | undefined;
839
+ status?: ServerInstallStatus | undefined;
840
+ panel_url?: string | null | undefined;
841
+ }
842
+ export type GetServiceRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
843
+ export interface GetServiceRequest {
844
+ /** The zone you want to target */
845
+ zone?: GetServiceRequestZone | (string & {}) | undefined;
846
+ /** ID of the service. */
847
+ service_id: number;
848
+ }
849
+ export type InstallServerRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
850
+ /** Connectors of the installation partition. */
851
+ export type InstallPartitionConnectorsList = Array<string>;
852
+ export interface InstallPartition {
853
+ /** File system of the installation partition. */
854
+ file_system?: PartitionFileSystem | (string & {}) | undefined;
855
+ /** Mount point of the installation partition. */
856
+ mount_point?: string | null | undefined;
857
+ /** RAID level of the installation partition. */
858
+ raid_level?: RaidArrayRaidLevel | (string & {}) | undefined;
859
+ /** Capacity of the installation partition. (in bytes) */
860
+ capacity?: number | undefined;
861
+ /** Connectors of the installation partition. */
862
+ connectors?: InstallPartitionConnectorsList | undefined;
863
+ }
864
+ /** Partitions to install on the server. */
865
+ export type InstallServerRequestPartitionsList = Array<InstallPartition>;
866
+ /** SSH key IDs authorized on the server. */
867
+ export type InstallServerRequestSshKeyIdsList = Array<string>;
868
+ export interface InstallServerRequest {
869
+ /** The zone you want to target */
870
+ zone?: InstallServerRequestZone | (string & {}) | undefined;
871
+ /** Server ID to install. */
872
+ server_id: number;
873
+ /** OS ID to install on the server. */
874
+ os_id?: number | undefined;
875
+ /** Hostname of the server. */
876
+ hostname?: string | undefined;
877
+ /** User to install on the server. */
878
+ user_login?: string | null | undefined;
879
+ /** User password to install on the server. */
880
+ user_password?: string | Redacted.Redacted<string> | null | undefined;
881
+ /** Panel password to install on the server. */
882
+ panel_password?: string | Redacted.Redacted<string> | null | undefined;
883
+ /** Root password to install on the server. */
884
+ root_password?: string | Redacted.Redacted<string> | null | undefined;
885
+ /** Partitions to install on the server. */
886
+ partitions?: InstallServerRequestPartitionsList | undefined;
887
+ /** SSH key IDs authorized on the server. */
888
+ ssh_key_ids?: InstallServerRequestSshKeyIdsList | undefined;
889
+ /** Offer ID of license to install on server. */
890
+ license_offer_id?: number | null | undefined;
891
+ /** IP to link at the license to install on server. */
892
+ ip_id?: number | null | undefined;
893
+ }
894
+ export type ListFailoverIPsRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
895
+ export type ListFailoverIPsRequestOrderBy = "ip_asc" | "ip_desc";
896
+ export interface ListFailoverIPsRequest {
897
+ /** The zone you want to target */
898
+ zone?: ListFailoverIPsRequestZone | (string & {}) | undefined;
899
+ /** Page number. */
900
+ page?: number | undefined;
901
+ /** Number of failovers IP per page. */
902
+ page_size?: number | undefined;
903
+ /** Order of the failovers IP. */
904
+ order_by?: ListFailoverIPsRequestOrderBy | (string & {}) | undefined;
905
+ /** Filter failovers IP by project ID. */
906
+ project_id?: string | undefined;
907
+ /** Filter failovers IP which matching with this field. */
908
+ search?: string | undefined;
909
+ /** True: return all failovers IP not attached on server. True: return all failovers IP not attached on server false: return all failovers IP attached on server. */
910
+ only_available?: boolean | undefined;
911
+ }
912
+ /** List of failover IPs that match filters. */
913
+ export type ListFailoverIPsResponseFailoverIpsList = Array<FailoverIP>;
914
+ export interface ListFailoverIPsResponse {
915
+ /** Total count of matching failovers IP. */
916
+ total_count?: number | undefined;
917
+ /** List of failover IPs that match filters. */
918
+ failover_ips: ListFailoverIPsResponseFailoverIpsList;
919
+ }
920
+ export type ListOffersRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
921
+ export type ListOffersRequestOrderBy =
922
+ | "created_at_asc"
923
+ | "created_at_desc"
924
+ | "name_asc"
925
+ | "name_desc"
926
+ | "price_asc"
927
+ | "price_desc";
928
+ export interface ListOffersRequest {
929
+ /** The zone you want to target */
930
+ zone?: ListOffersRequestZone | (string & {}) | undefined;
931
+ /** Page number. */
932
+ page?: number | undefined;
933
+ /** Number of offer per page. */
934
+ page_size?: number | undefined;
935
+ /** Order of the offers. */
936
+ order_by?: ListOffersRequestOrderBy | (string & {}) | undefined;
937
+ /** Filter on commercial range. */
938
+ commercial_range?: string | undefined;
939
+ /** Filter on catalog. */
940
+ catalog?: OfferCatalog | (string & {}) | undefined;
941
+ /** Project ID. */
942
+ project_id?: string | undefined;
943
+ /** Get the current failover IP offer. */
944
+ is_failover_ip?: boolean | undefined;
945
+ /** Get the current failover IP block offer. */
946
+ is_failover_block?: boolean | undefined;
947
+ /** Filter offers depending on their datacenter. */
948
+ sold_in?: string | undefined;
949
+ /** Set this filter to true to only return available offers. */
950
+ available_only?: boolean | undefined;
951
+ /** Get the RPN SAN offers. */
952
+ is_rpn_san?: boolean | undefined;
953
+ }
954
+ /** Offers that match filters. */
955
+ export type ListOffersResponseOffersList = Array<Offer>;
956
+ export interface ListOffersResponse {
957
+ /** Total count of matching offers. */
958
+ total_count?: number | undefined;
959
+ /** Offers that match filters. */
960
+ offers: ListOffersResponseOffersList;
961
+ }
962
+ export type ListOSRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
963
+ export type ListOSRequestOrderBy =
964
+ | "created_at_asc"
965
+ | "created_at_desc"
966
+ | "released_at_asc"
967
+ | "released_at_desc";
968
+ export interface ListOSRequest {
969
+ /** The zone you want to target */
970
+ zone?: ListOSRequestZone | (string & {}) | undefined;
971
+ /** Page number. */
972
+ page?: number | undefined;
973
+ /** Number of OS per page. */
974
+ page_size?: number | undefined;
975
+ /** Order of the OS. */
976
+ order_by?: ListOSRequestOrderBy | (string & {}) | undefined;
977
+ /** Type of the OS. */
978
+ type?: OSType | (string & {}) | undefined;
979
+ /** Project ID. */
980
+ project_id?: string | undefined;
981
+ /** Filter OS by compatible server ID. One-of `filter`: exactly one of `server_id`, `offer_id` -- the API rejects a call with neither. */
982
+ server_id?: number | undefined;
983
+ /** Filter OS by compatible offer: the Offer's `offer_id` (the product, e.g. Pro-8-XS), not its `id` (one priced variant), which the API rejects as an invalid choice. One-of `filter`: exactly one of `server_id`, `offer_id` -- the API rejects a call with neither. */
984
+ offer_id?: number | undefined;
985
+ }
986
+ /** OS that match filters. */
987
+ export type ListOSResponseOsList = Array<OS>;
988
+ export interface ListOSResponse {
989
+ /** Total count of matching OS. */
990
+ total_count?: number | undefined;
991
+ /** OS that match filters. */
992
+ os: ListOSResponseOsList;
993
+ }
994
+ export type ListServerDisksRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
995
+ export type ListServerDisksRequestOrderBy = "created_at_asc" | "created_at_desc";
996
+ export interface ListServerDisksRequest {
997
+ /** The zone you want to target */
998
+ zone?: ListServerDisksRequestZone | (string & {}) | undefined;
999
+ /** Server ID of the server disks. */
1000
+ server_id: number;
1001
+ /** Page number. */
1002
+ page?: number | undefined;
1003
+ /** Number of server disk per page. */
1004
+ page_size?: number | undefined;
1005
+ /** Order of the server disks. */
1006
+ order_by?: ListServerDisksRequestOrderBy | (string & {}) | undefined;
1007
+ }
1008
+ /** Server disks that match filters. */
1009
+ export type ListServerDisksResponseDisksList = Array<ServerDisk>;
1010
+ export interface ListServerDisksResponse {
1011
+ /** Total count of matching server disks. */
1012
+ total_count?: number | undefined;
1013
+ /** Server disks that match filters. */
1014
+ disks: ListServerDisksResponseDisksList;
1015
+ }
1016
+ export type ListServerEventsRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1017
+ export type ListServerEventsRequestOrderBy = "created_at_asc" | "created_at_desc";
1018
+ export interface ListServerEventsRequest {
1019
+ /** The zone you want to target */
1020
+ zone?: ListServerEventsRequestZone | (string & {}) | undefined;
1021
+ /** Server ID of the server events. */
1022
+ server_id: number;
1023
+ /** Page number. */
1024
+ page?: number | undefined;
1025
+ /** Number of server event per page. */
1026
+ page_size?: number | undefined;
1027
+ /** Order of the server events. */
1028
+ order_by?: ListServerEventsRequestOrderBy | (string & {}) | undefined;
1029
+ }
1030
+ export interface ServerEvent {
1031
+ /** ID of the event. */
1032
+ event_id?: number | undefined;
1033
+ /** Description of the event. */
1034
+ description?: string | undefined;
1035
+ /** Date of the event. (RFC 3339 format) */
1036
+ date?: string | null | undefined;
1037
+ }
1038
+ /** Server events that match filters. */
1039
+ export type ListServerEventsResponseEventsList = Array<ServerEvent>;
1040
+ export interface ListServerEventsResponse {
1041
+ /** Total count of matching server events. */
1042
+ total_count?: number | undefined;
1043
+ /** Server events that match filters. */
1044
+ events: ListServerEventsResponseEventsList;
1045
+ }
1046
+ export type ListServersRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1047
+ export type ListServersRequestOrderBy = "created_at_asc" | "created_at_desc";
1048
+ export interface ListServersRequest {
1049
+ /** The zone you want to target */
1050
+ zone?: ListServersRequestZone | (string & {}) | undefined;
1051
+ /** Page number. */
1052
+ page?: number | undefined;
1053
+ /** Number of server per page. */
1054
+ page_size?: number | undefined;
1055
+ /** Order of the servers. */
1056
+ order_by?: ListServersRequestOrderBy | (string & {}) | undefined;
1057
+ /** Filter servers by project ID. */
1058
+ project_id?: string | undefined;
1059
+ /** Filter servers by hostname. */
1060
+ search?: string | undefined;
1061
+ }
1062
+ /** Network interfaces of the server. */
1063
+ export type ServerSummaryInterfacesList = Array<NetworkInterface>;
1064
+ export interface ServerSummary {
1065
+ /** ID of the server. */
1066
+ id?: number | undefined;
1067
+ /** Datacenter of the server. */
1068
+ datacenter_name?: string | undefined;
1069
+ /** Organization ID the server is attached to. */
1070
+ organization_id?: string | undefined;
1071
+ /** Project ID the server is attached to. */
1072
+ project_id?: string | undefined;
1073
+ /** Hostname of the server. */
1074
+ hostname?: string | undefined;
1075
+ /** Date of creation of the server. (RFC 3339 format) */
1076
+ created_at?: string | null | undefined;
1077
+ /** Date of last modification of the server. (RFC 3339 format) */
1078
+ updated_at?: string | null | undefined;
1079
+ /** Date of release of the server. (RFC 3339 format) */
1080
+ expired_at?: string | null | undefined;
1081
+ /** Offer ID of the server. */
1082
+ offer_id?: number | undefined;
1083
+ /** Offer name of the server. */
1084
+ offer_name?: string | undefined;
1085
+ /** Status of the server. */
1086
+ status?: ServerStatus | undefined;
1087
+ /** OS ID installed on server. */
1088
+ os_id?: number | null | undefined;
1089
+ /** Network interfaces of the server. */
1090
+ interfaces?: ServerSummaryInterfacesList | undefined;
1091
+ /** The zone in which is the server. */
1092
+ zone?: string | undefined;
1093
+ /** Service level of the server. */
1094
+ level?: ServiceLevel | undefined;
1095
+ /** Whether the server is outsourced or not. */
1096
+ is_outsourced?: boolean | undefined;
1097
+ /** Whether the server is compatible with QinQ. */
1098
+ qinq?: boolean | undefined;
1099
+ /** Supported RPN version. */
1100
+ rpn_version?: number | null | undefined;
1101
+ /** Whether or not the server is HDS. */
1102
+ is_hds?: boolean | undefined;
1103
+ }
1104
+ /** Servers that match filters. */
1105
+ export type ListServersResponseServersList = Array<ServerSummary>;
1106
+ export interface ListServersResponse {
1107
+ /** Total count of matching servers. */
1108
+ total_count?: number | undefined;
1109
+ /** Servers that match filters. */
1110
+ servers: ListServersResponseServersList;
1111
+ }
1112
+ export type ListServicesRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1113
+ export type ListServicesRequestOrderBy = "created_at_asc" | "created_at_desc";
1114
+ export interface ListServicesRequest {
1115
+ /** The zone you want to target */
1116
+ zone?: ListServicesRequestZone | (string & {}) | undefined;
1117
+ /** Page number. */
1118
+ page?: number | undefined;
1119
+ /** Number of service per page. */
1120
+ page_size?: number | undefined;
1121
+ /** Order of the services. */
1122
+ order_by?: ListServicesRequestOrderBy | (string & {}) | undefined;
1123
+ /** Project ID. */
1124
+ project_id?: string | undefined;
1125
+ }
1126
+ /** Services that match filters. */
1127
+ export type ListServicesResponseServicesList = Array<Service>;
1128
+ export interface ListServicesResponse {
1129
+ /** Total count of matching services. */
1130
+ total_count?: number | undefined;
1131
+ /** Services that match filters. */
1132
+ services: ListServicesResponseServicesList;
1133
+ }
1134
+ export type ListSubscribableServerOptionsRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1135
+ export interface ListSubscribableServerOptionsRequest {
1136
+ /** The zone you want to target */
1137
+ zone?: ListSubscribableServerOptionsRequestZone | (string & {}) | undefined;
1138
+ /** Server ID of the subscribable server options. */
1139
+ server_id: number;
1140
+ /** Page number. */
1141
+ page?: number | undefined;
1142
+ /** Number of subscribable server option per page. */
1143
+ page_size?: number | undefined;
1144
+ }
1145
+ /** Server options that match filters. */
1146
+ export type ListSubscribableServerOptionsResponseServerOptionsList = Array<Offer>;
1147
+ export interface ListSubscribableServerOptionsResponse {
1148
+ /** Total count of matching subscribable server options. */
1149
+ total_count?: number | undefined;
1150
+ /** Server options that match filters. */
1151
+ server_options: ListSubscribableServerOptionsResponseServerOptionsList;
1152
+ }
1153
+ export type RebootServerRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1154
+ export interface RebootServerRequest {
1155
+ /** The zone you want to target */
1156
+ zone?: RebootServerRequestZone | (string & {}) | undefined;
1157
+ /** Server ID to reboot. */
1158
+ server_id: number;
1159
+ }
1160
+ export interface RebootServerResponse {}
1161
+ export type StartBMCAccessRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1162
+ export interface StartBMCAccessRequest {
1163
+ /** The zone you want to target */
1164
+ zone?: StartBMCAccessRequestZone | (string & {}) | undefined;
1165
+ /** ID of the server to start the BMC access. */
1166
+ server_id: number;
1167
+ /** The IP authorized to connect to the given server. (IPv4 address) */
1168
+ ip?: string | undefined;
1169
+ }
1170
+ export interface StartBMCAccessResponse {}
1171
+ export type StartRescueRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1172
+ export interface StartRescueRequest {
1173
+ /** The zone you want to target */
1174
+ zone?: StartRescueRequestZone | (string & {}) | undefined;
1175
+ /** ID of the server to start rescue. */
1176
+ server_id: number;
1177
+ /** OS ID to use to start rescue. */
1178
+ os_id?: number | undefined;
1179
+ }
1180
+ export type StartServerRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1181
+ export interface StartServerRequest {
1182
+ /** The zone you want to target */
1183
+ zone?: StartServerRequestZone | (string & {}) | undefined;
1184
+ /** Server ID to start. */
1185
+ server_id: number;
1186
+ }
1187
+ export interface StartServerResponse {}
1188
+ export type StopBMCAccessRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1189
+ export interface StopBMCAccessRequest {
1190
+ /** The zone you want to target */
1191
+ zone?: StopBMCAccessRequestZone | (string & {}) | undefined;
1192
+ /** ID of the server to stop BMC access. */
1193
+ server_id: number;
1194
+ }
1195
+ export interface StopBMCAccessResponse {}
1196
+ export type StopRescueRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1197
+ export interface StopRescueRequest {
1198
+ /** The zone you want to target */
1199
+ zone?: StopRescueRequestZone | (string & {}) | undefined;
1200
+ /** ID of the server to stop rescue. */
1201
+ server_id: number;
1202
+ }
1203
+ export interface StopRescueResponse {}
1204
+ export type StopServerRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1205
+ export interface StopServerRequest {
1206
+ /** The zone you want to target */
1207
+ zone?: StopServerRequestZone | (string & {}) | undefined;
1208
+ /** Server ID to stop. */
1209
+ server_id: number;
1210
+ }
1211
+ export interface StopServerResponse {}
1212
+ export type SubscribeServerOptionRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1213
+ export interface SubscribeServerOptionRequest {
1214
+ /** The zone you want to target */
1215
+ zone?: SubscribeServerOptionRequestZone | (string & {}) | undefined;
1216
+ /** Server ID to subscribe server option. */
1217
+ server_id: number;
1218
+ /** Option ID to subscribe. */
1219
+ option_id?: number | undefined;
1220
+ }
1221
+ export type SubscribeStorageOptionsRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1222
+ /** Option IDs of the storage options to subscribe. */
1223
+ export type SubscribeStorageOptionsRequestOptionsIdsList = Array<number>;
1224
+ export interface SubscribeStorageOptionsRequest {
1225
+ /** The zone you want to target */
1226
+ zone?: SubscribeStorageOptionsRequestZone | (string & {}) | undefined;
1227
+ /** Server ID of the storage options to subscribe. */
1228
+ server_id: number;
1229
+ /** Option IDs of the storage options to subscribe. */
1230
+ options_ids: SubscribeStorageOptionsRequestOptionsIdsList;
1231
+ }
1232
+ /** Services subscribe storage options. */
1233
+ export type SubscribeStorageOptionsResponseServicesList = Array<Service>;
1234
+ export interface SubscribeStorageOptionsResponse {
1235
+ /** Services subscribe storage options. */
1236
+ services?: SubscribeStorageOptionsResponseServicesList | undefined;
1237
+ }
1238
+ export type UpdateRaidRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1239
+ /** The list of Disk ID of the updatable RAID. */
1240
+ export type UpdatableRaidArrayDiskIdsList = Array<number>;
1241
+ export interface UpdatableRaidArray {
1242
+ /** The RAID level. */
1243
+ raid_level?: RaidArrayRaidLevel | (string & {}) | undefined;
1244
+ /** The list of Disk ID of the updatable RAID. */
1245
+ disk_ids: UpdatableRaidArrayDiskIdsList;
1246
+ }
1247
+ /** RAIDs to update. */
1248
+ export type UpdateRaidRequestRaidArraysList = Array<UpdatableRaidArray>;
1249
+ export interface UpdateRaidRequest {
1250
+ /** The zone you want to target */
1251
+ zone?: UpdateRaidRequestZone | (string & {}) | undefined;
1252
+ /** ID of the server. */
1253
+ server_id: number;
1254
+ /** RAIDs to update. */
1255
+ raid_arrays: UpdateRaidRequestRaidArraysList;
1256
+ }
1257
+ export interface UpdateRaidResponse {}
1258
+ export type UpdateReverseRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1259
+ export interface UpdateReverseRequest {
1260
+ /** The zone you want to target */
1261
+ zone?: UpdateReverseRequestZone | (string & {}) | undefined;
1262
+ /** ID of the IP. */
1263
+ ip_id: number;
1264
+ /** Reverse to apply on the IP. */
1265
+ reverse?: string | undefined;
1266
+ }
1267
+ export type UpdateServerRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1268
+ export interface UpdateServerRequest {
1269
+ /** The zone you want to target */
1270
+ zone?: UpdateServerRequestZone | (string & {}) | undefined;
1271
+ /** Server ID to update. */
1272
+ server_id: number;
1273
+ /** Hostname of the server to update. */
1274
+ hostname?: string | null | undefined;
1275
+ /** Flag to enable or not the IPv6 of server. */
1276
+ enable_ipv6?: boolean | null | undefined;
1277
+ }
1278
+ export type UpdateServerBackupRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1279
+ export interface UpdateServerBackupRequest {
1280
+ /** The zone you want to target */
1281
+ zone?: UpdateServerBackupRequestZone | (string & {}) | undefined;
1282
+ /** Server ID to update backup. */
1283
+ server_id: number;
1284
+ /** Password of the server backup. */
1285
+ password?: string | Redacted.Redacted<string> | null | undefined;
1286
+ /** Autologin of the server backup. */
1287
+ autologin?: boolean | null | undefined;
1288
+ /** Boolean to enable or disable ACL. */
1289
+ acl_enabled?: boolean | null | undefined;
1290
+ }
1291
+ export type UpdateServerTagsRequestZone = "fr-par-1" | "fr-par-2" | "nl-ams-1";
1292
+ /** Tags of server to update. */
1293
+ export type UpdateServerTagsRequestTagsList = Array<string>;
1294
+ export interface UpdateServerTagsRequest {
1295
+ /** The zone you want to target */
1296
+ zone?: UpdateServerTagsRequestZone | (string & {}) | undefined;
1297
+ /** Server ID to update the tags. */
1298
+ server_id: number;
1299
+ /** Tags of server to update. */
1300
+ tags?: UpdateServerTagsRequestTagsList | undefined;
1301
+ }
1302
+ export type AttachFailoverIPsError = ScalewayOpError;
1303
+ /** Attach failovers on baremetal server Attach failovers on the server associated with the given ID. */
1304
+ export const attachFailoverIPs: API.OperationMethod<
1305
+ AttachFailoverIPsRequest,
1306
+ AttachFailoverIPsResponse,
1307
+ AttachFailoverIPsError,
1308
+ ScalewayOpContext
1309
+ > = /*@__PURE__*/ API.make(() => ({
1310
+ input: __S(0, __c0, 0) as any as S.Schema<AttachFailoverIPsRequest>,
1311
+ output: __S(32, __c1, 0) as any as S.Schema<AttachFailoverIPsResponse>,
1312
+ errors: [],
1313
+ serviceErrors: ScalewayServiceErrors,
1314
+ protocol: ScalewayProtocol,
1315
+ retry: Retry.Retry,
1316
+ telemetry: TELEMETRY,
1317
+ span: "AttachFailoverIPs",
1318
+ }));
1319
+
1320
+ export type AttachFailoverIPToMacAddressError = ScalewayOpError;
1321
+ /** Attach a failover IP to a MAC address */
1322
+ export const attachFailoverIPToMacAddress: API.OperationMethod<
1323
+ AttachFailoverIPToMacAddressRequest,
1324
+ IP,
1325
+ AttachFailoverIPToMacAddressError,
1326
+ ScalewayOpContext
1327
+ > = /*@__PURE__*/ API.make(() => ({
1328
+ input: __S(96, __c3, 0) as any as S.Schema<AttachFailoverIPToMacAddressRequest>,
1329
+ output: __S(128, __c4, 0) as any as S.Schema<IP>,
1330
+ errors: [],
1331
+ serviceErrors: ScalewayServiceErrors,
1332
+ protocol: ScalewayProtocol,
1333
+ retry: Retry.Retry,
1334
+ telemetry: TELEMETRY,
1335
+ span: "AttachFailoverIPToMacAddress",
1336
+ }));
1337
+
1338
+ export type CancelServerInstallError = ScalewayOpError;
1339
+ /** Cancels the current (running) server installation Cancels the current server installation associated with the given server ID. */
1340
+ export const cancelServerInstall: API.OperationMethod<
1341
+ CancelServerInstallRequest,
1342
+ CancelServerInstallResponse,
1343
+ CancelServerInstallError,
1344
+ ScalewayOpContext
1345
+ > = /*@__PURE__*/ API.make(() => ({
1346
+ input: __S(672, __c21, 0) as any as S.Schema<CancelServerInstallRequest>,
1347
+ output: __S(32, __c1, 0) as any as S.Schema<CancelServerInstallResponse>,
1348
+ errors: [],
1349
+ serviceErrors: ScalewayServiceErrors,
1350
+ protocol: ScalewayProtocol,
1351
+ retry: Retry.Retry,
1352
+ telemetry: TELEMETRY,
1353
+ span: "CancelServerInstall",
1354
+ }));
1355
+
1356
+ export type CreateFailoverIPsError = ScalewayOpError;
1357
+ /** Order failover IPs Order X failover IPs. */
1358
+ export const createFailoverIPs: API.OperationMethod<
1359
+ CreateFailoverIPsRequest,
1360
+ CreateFailoverIPsResponse,
1361
+ CreateFailoverIPsError,
1362
+ ScalewayOpContext
1363
+ > = /*@__PURE__*/ API.make(() => ({
1364
+ input: __S(1120, __c35, 0) as any as S.Schema<CreateFailoverIPsRequest>,
1365
+ output: __S(1121, __c35, 1) as any as S.Schema<CreateFailoverIPsResponse>,
1366
+ errors: [],
1367
+ serviceErrors: ScalewayServiceErrors,
1368
+ protocol: ScalewayProtocol,
1369
+ retry: Retry.Retry,
1370
+ telemetry: TELEMETRY,
1371
+ span: "CreateFailoverIPs",
1372
+ }));
1373
+
1374
+ export type CreateServerError = ScalewayOpError;
1375
+ /** Create a baremetal server Create a new baremetal server. The order return you a service ID to follow the provisioning status you could call GetService. */
1376
+ export const createServer: API.OperationMethod<
1377
+ CreateServerRequest,
1378
+ Service,
1379
+ CreateServerError,
1380
+ ScalewayOpContext
1381
+ > = /*@__PURE__*/ API.make(() => ({
1382
+ input: __S(1600, __c50, 0) as any as S.Schema<CreateServerRequest>,
1383
+ output: __S(1248, __c39, 0) as any as S.Schema<Service>,
1384
+ errors: [],
1385
+ serviceErrors: ScalewayServiceErrors,
1386
+ protocol: ScalewayProtocol,
1387
+ retry: Retry.Retry,
1388
+ telemetry: TELEMETRY,
1389
+ span: "CreateServer",
1390
+ }));
1391
+
1392
+ export type DeleteFailoverIPError = ScalewayOpError;
1393
+ /** Delete a failover server Delete the failover associated with the given ID. */
1394
+ export const deleteFailoverIP: API.OperationMethod<
1395
+ DeleteFailoverIPRequest,
1396
+ DeleteFailoverIPResponse,
1397
+ DeleteFailoverIPError,
1398
+ ScalewayOpContext
1399
+ > = /*@__PURE__*/ API.make(() => ({
1400
+ input: __S(1824, __c57, 0) as any as S.Schema<DeleteFailoverIPRequest>,
1401
+ output: __S(32, __c1, 0) as any as S.Schema<DeleteFailoverIPResponse>,
1402
+ errors: [],
1403
+ serviceErrors: ScalewayServiceErrors,
1404
+ protocol: ScalewayProtocol,
1405
+ retry: Retry.Retry,
1406
+ telemetry: TELEMETRY,
1407
+ span: "DeleteFailoverIP",
1408
+ }));
1409
+
1410
+ export type DeleteServerError = ScalewayOpError;
1411
+ /** Delete a baremetal server Delete the server associated with the given ID. */
1412
+ export const deleteServer: API.OperationMethod<
1413
+ DeleteServerRequest,
1414
+ DeleteServerResponse,
1415
+ DeleteServerError,
1416
+ ScalewayOpContext
1417
+ > = /*@__PURE__*/ API.make(() => ({
1418
+ input: __S(1856, __c58, 0) as any as S.Schema<DeleteServerRequest>,
1419
+ output: __S(32, __c1, 0) as any as S.Schema<DeleteServerResponse>,
1420
+ errors: [],
1421
+ serviceErrors: ScalewayServiceErrors,
1422
+ protocol: ScalewayProtocol,
1423
+ retry: Retry.Retry,
1424
+ telemetry: TELEMETRY,
1425
+ span: "DeleteServer",
1426
+ }));
1427
+
1428
+ export type DeleteServiceError = ScalewayOpError;
1429
+ /** Delete a specific service Delete the service associated with the given ID. */
1430
+ export const deleteService: API.OperationMethod<
1431
+ DeleteServiceRequest,
1432
+ Service,
1433
+ DeleteServiceError,
1434
+ ScalewayOpContext
1435
+ > = /*@__PURE__*/ API.make(() => ({
1436
+ input: __S(1888, __c59, 0) as any as S.Schema<DeleteServiceRequest>,
1437
+ output: __S(1248, __c39, 0) as any as S.Schema<Service>,
1438
+ errors: [],
1439
+ serviceErrors: ScalewayServiceErrors,
1440
+ protocol: ScalewayProtocol,
1441
+ retry: Retry.Retry,
1442
+ telemetry: TELEMETRY,
1443
+ span: "DeleteService",
1444
+ }));
1445
+
1446
+ export type DetachFailoverIPFromMacAddressError = ScalewayOpError;
1447
+ /** Detach a failover IP from a MAC address */
1448
+ export const detachFailoverIPFromMacAddress: API.OperationMethod<
1449
+ DetachFailoverIPFromMacAddressRequest,
1450
+ IP,
1451
+ DetachFailoverIPFromMacAddressError,
1452
+ ScalewayOpContext
1453
+ > = /*@__PURE__*/ API.make(() => ({
1454
+ input: __S(1920, __c60, 0) as any as S.Schema<DetachFailoverIPFromMacAddressRequest>,
1455
+ output: __S(128, __c4, 0) as any as S.Schema<IP>,
1456
+ errors: [],
1457
+ serviceErrors: ScalewayServiceErrors,
1458
+ protocol: ScalewayProtocol,
1459
+ retry: Retry.Retry,
1460
+ telemetry: TELEMETRY,
1461
+ span: "DetachFailoverIPFromMacAddress",
1462
+ }));
1463
+
1464
+ export type DetachFailoverIPsError = ScalewayOpError;
1465
+ /** Detach failovers on baremetal server Detach failovers on the server associated with the given ID. */
1466
+ export const detachFailoverIPs: API.OperationMethod<
1467
+ DetachFailoverIPsRequest,
1468
+ DetachFailoverIPsResponse,
1469
+ DetachFailoverIPsError,
1470
+ ScalewayOpContext
1471
+ > = /*@__PURE__*/ API.make(() => ({
1472
+ input: __S(1952, __c61, 0) as any as S.Schema<DetachFailoverIPsRequest>,
1473
+ output: __S(32, __c1, 0) as any as S.Schema<DetachFailoverIPsResponse>,
1474
+ errors: [],
1475
+ serviceErrors: ScalewayServiceErrors,
1476
+ protocol: ScalewayProtocol,
1477
+ retry: Retry.Retry,
1478
+ telemetry: TELEMETRY,
1479
+ span: "DetachFailoverIPs",
1480
+ }));
1481
+
1482
+ export type GetBMCAccessError = ScalewayOpError;
1483
+ /** Get BMC (Baseboard Management Controller) access for a given baremetal server Get the BMC (Baseboard Management Controller) access associated with the given ID. */
1484
+ export const getBMCAccess: API.OperationMethod<
1485
+ GetBMCAccessRequest,
1486
+ BMCAccess,
1487
+ GetBMCAccessError,
1488
+ ScalewayOpContext
1489
+ > = /*@__PURE__*/ API.make(() => ({
1490
+ input: __S(160, __c5, 0) as any as S.Schema<GetBMCAccessRequest>,
1491
+ output: __S(161, __c5, 1) as any as S.Schema<BMCAccess>,
1492
+ errors: [],
1493
+ serviceErrors: ScalewayServiceErrors,
1494
+ protocol: ScalewayProtocol,
1495
+ retry: Retry.Retry,
1496
+ telemetry: TELEMETRY,
1497
+ span: "GetBMCAccess",
1498
+ }));
1499
+
1500
+ export type GetFailoverIPError = ScalewayOpError;
1501
+ /** Get a specific baremetal server Get the server associated with the given ID. */
1502
+ export const getFailoverIP: API.OperationMethod<
1503
+ GetFailoverIPRequest,
1504
+ FailoverIP,
1505
+ GetFailoverIPError,
1506
+ ScalewayOpContext
1507
+ > = /*@__PURE__*/ API.make(() => ({
1508
+ input: __S(192, __c6, 0) as any as S.Schema<GetFailoverIPRequest>,
1509
+ output: __S(225, __c7, 1) as any as S.Schema<FailoverIP>,
1510
+ errors: [],
1511
+ serviceErrors: ScalewayServiceErrors,
1512
+ protocol: ScalewayProtocol,
1513
+ retry: Retry.Retry,
1514
+ telemetry: TELEMETRY,
1515
+ span: "GetFailoverIP",
1516
+ }));
1517
+
1518
+ export type GetOfferError = ScalewayOpError;
1519
+ /** Get offer Return specific offer for the given ID. */
1520
+ export const getOffer: API.OperationMethod<
1521
+ GetOfferRequest,
1522
+ Offer,
1523
+ GetOfferError,
1524
+ ScalewayOpContext
1525
+ > = /*@__PURE__*/ API.make(() => ({
1526
+ input: __S(256, __c8, 0) as any as S.Schema<GetOfferRequest>,
1527
+ output: __S(1245, __c38, 29) as any as S.Schema<Offer>,
1528
+ errors: [],
1529
+ serviceErrors: ScalewayServiceErrors,
1530
+ protocol: ScalewayProtocol,
1531
+ retry: Retry.Retry,
1532
+ telemetry: TELEMETRY,
1533
+ span: "GetOffer",
1534
+ }));
1535
+
1536
+ export type GetOrderedServiceError = ScalewayOpError;
1537
+ export const getOrderedService: API.OperationMethod<
1538
+ GetOrderedServiceRequest,
1539
+ Service,
1540
+ GetOrderedServiceError,
1541
+ ScalewayOpContext
1542
+ > = /*@__PURE__*/ API.make(() => ({
1543
+ input: __S(288, __c9, 0) as any as S.Schema<GetOrderedServiceRequest>,
1544
+ output: __S(1248, __c39, 0) as any as S.Schema<Service>,
1545
+ errors: [],
1546
+ serviceErrors: ScalewayServiceErrors,
1547
+ protocol: ScalewayProtocol,
1548
+ retry: Retry.Retry,
1549
+ telemetry: TELEMETRY,
1550
+ span: "GetOrderedService",
1551
+ }));
1552
+
1553
+ export type GetOSError = ScalewayOpError;
1554
+ /** Get an OS with a given ID Return specific OS for the given ID. */
1555
+ export const getOS: API.OperationMethod<GetOSRequest, OS, GetOSError, ScalewayOpContext> =
1556
+ /*@__PURE__*/ API.make(() => ({
1557
+ input: __S(320, __c10, 0) as any as S.Schema<GetOSRequest>,
1558
+ output: __S(1243, __c38, 27) as any as S.Schema<OS>,
1559
+ errors: [],
1560
+ serviceErrors: ScalewayServiceErrors,
1561
+ protocol: ScalewayProtocol,
1562
+ retry: Retry.Retry,
1563
+ telemetry: TELEMETRY,
1564
+ span: "GetOS",
1565
+ }));
1566
+
1567
+ export type GetRaidError = ScalewayOpError;
1568
+ /** Get raid Return raid for the given server ID. */
1569
+ export const getRaid: API.OperationMethod<GetRaidRequest, Raid, GetRaidError, ScalewayOpContext> =
1570
+ /*@__PURE__*/ API.make(() => ({
1571
+ input: __S(352, __c11, 0) as any as S.Schema<GetRaidRequest>,
1572
+ output: __S(355, __c11, 3) as any as S.Schema<Raid>,
1573
+ errors: [],
1574
+ serviceErrors: ScalewayServiceErrors,
1575
+ protocol: ScalewayProtocol,
1576
+ retry: Retry.Retry,
1577
+ telemetry: TELEMETRY,
1578
+ span: "GetRaid",
1579
+ }));
1580
+
1581
+ export type GetRemainingQuotaError = ScalewayOpError;
1582
+ /** Get remaining quota */
1583
+ export const getRemainingQuota: API.OperationMethod<
1584
+ GetRemainingQuotaRequest,
1585
+ GetRemainingQuotaResponse,
1586
+ GetRemainingQuotaError,
1587
+ ScalewayOpContext
1588
+ > = /*@__PURE__*/ API.make(() => ({
1589
+ input: __S(416, __c13, 0) as any as S.Schema<GetRemainingQuotaRequest>,
1590
+ output: __S(417, __c13, 1) as any as S.Schema<GetRemainingQuotaResponse>,
1591
+ errors: [],
1592
+ serviceErrors: ScalewayServiceErrors,
1593
+ protocol: ScalewayProtocol,
1594
+ retry: Retry.Retry,
1595
+ telemetry: TELEMETRY,
1596
+ span: "GetRemainingQuota",
1597
+ }));
1598
+
1599
+ export type GetRescueError = ScalewayOpError;
1600
+ /** Get rescue information Return rescue information for the given server ID. */
1601
+ export const getRescue: API.OperationMethod<
1602
+ GetRescueRequest,
1603
+ Rescue,
1604
+ GetRescueError,
1605
+ ScalewayOpContext
1606
+ > = /*@__PURE__*/ API.make(() => ({
1607
+ input: __S(448, __c14, 0) as any as S.Schema<GetRescueRequest>,
1608
+ output: __S(480, __c15, 0) as any as S.Schema<Rescue>,
1609
+ errors: [],
1610
+ serviceErrors: ScalewayServiceErrors,
1611
+ protocol: ScalewayProtocol,
1612
+ retry: Retry.Retry,
1613
+ telemetry: TELEMETRY,
1614
+ span: "GetRescue",
1615
+ }));
1616
+
1617
+ export type GetServerError = ScalewayOpError;
1618
+ /** Get a specific baremetal server Get the server associated with the given ID. */
1619
+ export const getServer: API.OperationMethod<
1620
+ GetServerRequest,
1621
+ Server,
1622
+ GetServerError,
1623
+ ScalewayOpContext
1624
+ > = /*@__PURE__*/ API.make(() => ({
1625
+ input: __S(512, __c16, 0) as any as S.Schema<GetServerRequest>,
1626
+ output: __S(580, __c18, 4) as any as S.Schema<Server>,
1627
+ errors: [],
1628
+ serviceErrors: ScalewayServiceErrors,
1629
+ protocol: ScalewayProtocol,
1630
+ retry: Retry.Retry,
1631
+ telemetry: TELEMETRY,
1632
+ span: "GetServer",
1633
+ }));
1634
+
1635
+ export type GetServerBackupError = ScalewayOpError;
1636
+ export const getServerBackup: API.OperationMethod<
1637
+ GetServerBackupRequest,
1638
+ Backup,
1639
+ GetServerBackupError,
1640
+ ScalewayOpContext
1641
+ > = /*@__PURE__*/ API.make(() => ({
1642
+ input: __S(608, __c19, 0) as any as S.Schema<GetServerBackupRequest>,
1643
+ output: __S(640, __c20, 0) as any as S.Schema<Backup>,
1644
+ errors: [],
1645
+ serviceErrors: ScalewayServiceErrors,
1646
+ protocol: ScalewayProtocol,
1647
+ retry: Retry.Retry,
1648
+ telemetry: TELEMETRY,
1649
+ span: "GetServerBackup",
1650
+ }));
1651
+
1652
+ export type GetServerDefaultPartitioningError = ScalewayOpError;
1653
+ /** Get server default partitioning Get the server default partitioning schema associated with the given server ID and OS ID. */
1654
+ export const getServerDefaultPartitioning: API.OperationMethod<
1655
+ GetServerDefaultPartitioningRequest,
1656
+ ServerDefaultPartitioning,
1657
+ GetServerDefaultPartitioningError,
1658
+ ScalewayOpContext
1659
+ > = /*@__PURE__*/ API.make(() => ({
1660
+ input: __S(704, __c22, 0) as any as S.Schema<GetServerDefaultPartitioningRequest>,
1661
+ output: __S(705, __c22, 1) as any as S.Schema<ServerDefaultPartitioning>,
1662
+ errors: [],
1663
+ serviceErrors: ScalewayServiceErrors,
1664
+ protocol: ScalewayProtocol,
1665
+ retry: Retry.Retry,
1666
+ telemetry: TELEMETRY,
1667
+ span: "GetServerDefaultPartitioning",
1668
+ }));
1669
+
1670
+ export type GetServerInstallError = ScalewayOpError;
1671
+ /** Get a specific server installation status Get the server installation status associated with the given server ID. */
1672
+ export const getServerInstall: API.OperationMethod<
1673
+ GetServerInstallRequest,
1674
+ ServerInstall,
1675
+ GetServerInstallError,
1676
+ ScalewayOpContext
1677
+ > = /*@__PURE__*/ API.make(() => ({
1678
+ input: __S(768, __c24, 0) as any as S.Schema<GetServerInstallRequest>,
1679
+ output: __S(800, __c25, 0) as any as S.Schema<ServerInstall>,
1680
+ errors: [],
1681
+ serviceErrors: ScalewayServiceErrors,
1682
+ protocol: ScalewayProtocol,
1683
+ retry: Retry.Retry,
1684
+ telemetry: TELEMETRY,
1685
+ span: "GetServerInstall",
1686
+ }));
1687
+
1688
+ export type GetServiceError = ScalewayOpError;
1689
+ /** Get a specific service Get the service associated with the given ID. */
1690
+ export const getService: API.OperationMethod<
1691
+ GetServiceRequest,
1692
+ Service,
1693
+ GetServiceError,
1694
+ ScalewayOpContext
1695
+ > = /*@__PURE__*/ API.make(() => ({
1696
+ input: __S(832, __c26, 0) as any as S.Schema<GetServiceRequest>,
1697
+ output: __S(1248, __c39, 0) as any as S.Schema<Service>,
1698
+ errors: [],
1699
+ serviceErrors: ScalewayServiceErrors,
1700
+ protocol: ScalewayProtocol,
1701
+ retry: Retry.Retry,
1702
+ telemetry: TELEMETRY,
1703
+ span: "GetService",
1704
+ }));
1705
+
1706
+ export type InstallServerError = ScalewayOpError;
1707
+ /** Install a baremetal server Install an OS on the server associated with the given ID. */
1708
+ export const installServer: API.OperationMethod<
1709
+ InstallServerRequest,
1710
+ ServerInstall,
1711
+ InstallServerError,
1712
+ ScalewayOpContext
1713
+ > = /*@__PURE__*/ API.make(() => ({
1714
+ input: __S(866, __c27, 2) as any as S.Schema<InstallServerRequest>,
1715
+ output: __S(800, __c25, 0) as any as S.Schema<ServerInstall>,
1716
+ errors: [],
1717
+ serviceErrors: ScalewayServiceErrors,
1718
+ protocol: ScalewayProtocol,
1719
+ retry: Retry.Retry,
1720
+ telemetry: TELEMETRY,
1721
+ span: "InstallServer",
1722
+ }));
1723
+
1724
+ export type ListFailoverIPsError = ScalewayOpError;
1725
+ /** List failovers for project List failovers servers for project. */
1726
+ export const listFailoverIPs: API.PaginatedOperationMethod<
1727
+ ListFailoverIPsRequest,
1728
+ ListFailoverIPsResponse,
1729
+ ListFailoverIPsError,
1730
+ ScalewayOpContext,
1731
+ FailoverIP
1732
+ > = /*@__PURE__*/ API.makePaginated(
1733
+ () => ({
1734
+ input: __S(896, __c28, 0) as any as S.Schema<ListFailoverIPsRequest>,
1735
+ output: __S(898, __c28, 2) as any as S.Schema<ListFailoverIPsResponse>,
1736
+ errors: [],
1737
+ serviceErrors: ScalewayServiceErrors,
1738
+ protocol: ScalewayProtocol,
1739
+ retry: Retry.Retry,
1740
+ telemetry: TELEMETRY,
1741
+ span: "ListFailoverIPs",
1742
+ pagination: {
1743
+ mode: "page",
1744
+ inputToken: "page",
1745
+ outputToken: "total_count",
1746
+ items: "failover_ips",
1747
+ pageSize: "page_size",
1748
+ } as const,
1749
+ }),
1750
+ paginateByTotalCount,
1751
+ ) as any;
1752
+
1753
+ export type ListOffersError = ScalewayOpError;
1754
+ /** List offers List all available server offers. */
1755
+ export const listOffers: API.PaginatedOperationMethod<
1756
+ ListOffersRequest,
1757
+ ListOffersResponse,
1758
+ ListOffersError,
1759
+ ScalewayOpContext,
1760
+ Offer
1761
+ > = /*@__PURE__*/ API.makePaginated(
1762
+ () => ({
1763
+ input: __S(928, __c29, 0) as any as S.Schema<ListOffersRequest>,
1764
+ output: __S(929, __c29, 1) as any as S.Schema<ListOffersResponse>,
1765
+ errors: [],
1766
+ serviceErrors: ScalewayServiceErrors,
1767
+ protocol: ScalewayProtocol,
1768
+ retry: Retry.Retry,
1769
+ telemetry: TELEMETRY,
1770
+ span: "ListOffers",
1771
+ pagination: {
1772
+ mode: "page",
1773
+ inputToken: "page",
1774
+ outputToken: "total_count",
1775
+ items: "offers",
1776
+ pageSize: "page_size",
1777
+ } as const,
1778
+ }),
1779
+ paginateByTotalCount,
1780
+ ) as any;
1781
+
1782
+ export type ListOSError = ScalewayOpError;
1783
+ /** List all available OS that can be install on a baremetal server */
1784
+ export const listOS: API.PaginatedOperationMethod<
1785
+ ListOSRequest,
1786
+ ListOSResponse,
1787
+ ListOSError,
1788
+ ScalewayOpContext,
1789
+ OS
1790
+ > = /*@__PURE__*/ API.makePaginated(
1791
+ () => ({
1792
+ input: __S(992, __c31, 0) as any as S.Schema<ListOSRequest>,
1793
+ output: __S(993, __c31, 1) as any as S.Schema<ListOSResponse>,
1794
+ errors: [],
1795
+ serviceErrors: ScalewayServiceErrors,
1796
+ protocol: ScalewayProtocol,
1797
+ retry: Retry.Retry,
1798
+ telemetry: TELEMETRY,
1799
+ span: "ListOS",
1800
+ pagination: {
1801
+ mode: "page",
1802
+ inputToken: "page",
1803
+ outputToken: "total_count",
1804
+ items: "os",
1805
+ pageSize: "page_size",
1806
+ } as const,
1807
+ }),
1808
+ paginateByTotalCount,
1809
+ ) as any;
1810
+
1811
+ export type ListServerDisksError = ScalewayOpError;
1812
+ /** List server disks List disks associated to the given server ID. */
1813
+ export const listServerDisks: API.PaginatedOperationMethod<
1814
+ ListServerDisksRequest,
1815
+ ListServerDisksResponse,
1816
+ ListServerDisksError,
1817
+ ScalewayOpContext,
1818
+ ServerDisk
1819
+ > = /*@__PURE__*/ API.makePaginated(
1820
+ () => ({
1821
+ input: __S(1024, __c32, 0) as any as S.Schema<ListServerDisksRequest>,
1822
+ output: __S(1025, __c32, 1) as any as S.Schema<ListServerDisksResponse>,
1823
+ errors: [],
1824
+ serviceErrors: ScalewayServiceErrors,
1825
+ protocol: ScalewayProtocol,
1826
+ retry: Retry.Retry,
1827
+ telemetry: TELEMETRY,
1828
+ span: "ListServerDisks",
1829
+ pagination: {
1830
+ mode: "page",
1831
+ inputToken: "page",
1832
+ outputToken: "total_count",
1833
+ items: "disks",
1834
+ pageSize: "page_size",
1835
+ } as const,
1836
+ }),
1837
+ paginateByTotalCount,
1838
+ ) as any;
1839
+
1840
+ export type ListServerEventsError = ScalewayOpError;
1841
+ /** List server events List events associated to the given server ID. */
1842
+ export const listServerEvents: API.PaginatedOperationMethod<
1843
+ ListServerEventsRequest,
1844
+ ListServerEventsResponse,
1845
+ ListServerEventsError,
1846
+ ScalewayOpContext,
1847
+ ServerEvent
1848
+ > = /*@__PURE__*/ API.makePaginated(
1849
+ () => ({
1850
+ input: __S(1056, __c33, 0) as any as S.Schema<ListServerEventsRequest>,
1851
+ output: __S(1059, __c33, 3) as any as S.Schema<ListServerEventsResponse>,
1852
+ errors: [],
1853
+ serviceErrors: ScalewayServiceErrors,
1854
+ protocol: ScalewayProtocol,
1855
+ retry: Retry.Retry,
1856
+ telemetry: TELEMETRY,
1857
+ span: "ListServerEvents",
1858
+ pagination: {
1859
+ mode: "page",
1860
+ inputToken: "page",
1861
+ outputToken: "total_count",
1862
+ items: "events",
1863
+ pageSize: "page_size",
1864
+ } as const,
1865
+ }),
1866
+ paginateByTotalCount,
1867
+ ) as any;
1868
+
1869
+ export type ListServersError = ScalewayOpError;
1870
+ /** List baremetal servers for project */
1871
+ export const listServers: API.PaginatedOperationMethod<
1872
+ ListServersRequest,
1873
+ ListServersResponse,
1874
+ ListServersError,
1875
+ ScalewayOpContext,
1876
+ ServerSummary
1877
+ > = /*@__PURE__*/ API.makePaginated(
1878
+ () => ({
1879
+ input: __S(1088, __c34, 0) as any as S.Schema<ListServersRequest>,
1880
+ output: __S(1091, __c34, 3) as any as S.Schema<ListServersResponse>,
1881
+ errors: [],
1882
+ serviceErrors: ScalewayServiceErrors,
1883
+ protocol: ScalewayProtocol,
1884
+ retry: Retry.Retry,
1885
+ telemetry: TELEMETRY,
1886
+ span: "ListServers",
1887
+ pagination: {
1888
+ mode: "page",
1889
+ inputToken: "page",
1890
+ outputToken: "total_count",
1891
+ items: "servers",
1892
+ pageSize: "page_size",
1893
+ } as const,
1894
+ }),
1895
+ paginateByTotalCount,
1896
+ ) as any;
1897
+
1898
+ export type ListServicesError = ScalewayOpError;
1899
+ /** List services */
1900
+ export const listServices: API.PaginatedOperationMethod<
1901
+ ListServicesRequest,
1902
+ ListServicesResponse,
1903
+ ListServicesError,
1904
+ ScalewayOpContext,
1905
+ Service
1906
+ > = /*@__PURE__*/ API.makePaginated(
1907
+ () => ({
1908
+ input: __S(1280, __c40, 0) as any as S.Schema<ListServicesRequest>,
1909
+ output: __S(1281, __c40, 1) as any as S.Schema<ListServicesResponse>,
1910
+ errors: [],
1911
+ serviceErrors: ScalewayServiceErrors,
1912
+ protocol: ScalewayProtocol,
1913
+ retry: Retry.Retry,
1914
+ telemetry: TELEMETRY,
1915
+ span: "ListServices",
1916
+ pagination: {
1917
+ mode: "page",
1918
+ inputToken: "page",
1919
+ outputToken: "total_count",
1920
+ items: "services",
1921
+ pageSize: "page_size",
1922
+ } as const,
1923
+ }),
1924
+ paginateByTotalCount,
1925
+ ) as any;
1926
+
1927
+ export type ListSubscribableServerOptionsError = ScalewayOpError;
1928
+ /** List subscribable server options List subscribable options associated to the given server ID. */
1929
+ export const listSubscribableServerOptions: API.PaginatedOperationMethod<
1930
+ ListSubscribableServerOptionsRequest,
1931
+ ListSubscribableServerOptionsResponse,
1932
+ ListSubscribableServerOptionsError,
1933
+ ScalewayOpContext,
1934
+ Offer
1935
+ > = /*@__PURE__*/ API.makePaginated(
1936
+ () => ({
1937
+ input: __S(1312, __c41, 0) as any as S.Schema<ListSubscribableServerOptionsRequest>,
1938
+ output: __S(1313, __c41, 1) as any as S.Schema<ListSubscribableServerOptionsResponse>,
1939
+ errors: [],
1940
+ serviceErrors: ScalewayServiceErrors,
1941
+ protocol: ScalewayProtocol,
1942
+ retry: Retry.Retry,
1943
+ telemetry: TELEMETRY,
1944
+ span: "ListSubscribableServerOptions",
1945
+ pagination: {
1946
+ mode: "page",
1947
+ inputToken: "page",
1948
+ outputToken: "total_count",
1949
+ items: "server_options",
1950
+ pageSize: "page_size",
1951
+ } as const,
1952
+ }),
1953
+ paginateByTotalCount,
1954
+ ) as any;
1955
+
1956
+ export type RebootServerError = ScalewayOpError;
1957
+ /** Reboot a baremetal server Reboot the server associated with the given ID, use boot param to reboot in rescue. */
1958
+ export const rebootServer: API.OperationMethod<
1959
+ RebootServerRequest,
1960
+ RebootServerResponse,
1961
+ RebootServerError,
1962
+ ScalewayOpContext
1963
+ > = /*@__PURE__*/ API.make(() => ({
1964
+ input: __S(1344, __c42, 0) as any as S.Schema<RebootServerRequest>,
1965
+ output: __S(32, __c1, 0) as any as S.Schema<RebootServerResponse>,
1966
+ errors: [],
1967
+ serviceErrors: ScalewayServiceErrors,
1968
+ protocol: ScalewayProtocol,
1969
+ retry: Retry.Retry,
1970
+ telemetry: TELEMETRY,
1971
+ span: "RebootServer",
1972
+ }));
1973
+
1974
+ export type StartBMCAccessError = ScalewayOpError;
1975
+ /** Start BMC (Baseboard Management Controller) access for a given baremetal server Start BMC (Baseboard Management Controller) access associated with the given ID. The BMC (Baseboard Management Controller) access is available one hour after the installation of the server. */
1976
+ export const startBMCAccess: API.OperationMethod<
1977
+ StartBMCAccessRequest,
1978
+ StartBMCAccessResponse,
1979
+ StartBMCAccessError,
1980
+ ScalewayOpContext
1981
+ > = /*@__PURE__*/ API.make(() => ({
1982
+ input: __S(1376, __c43, 0) as any as S.Schema<StartBMCAccessRequest>,
1983
+ output: __S(32, __c1, 0) as any as S.Schema<StartBMCAccessResponse>,
1984
+ errors: [],
1985
+ serviceErrors: ScalewayServiceErrors,
1986
+ protocol: ScalewayProtocol,
1987
+ retry: Retry.Retry,
1988
+ telemetry: TELEMETRY,
1989
+ span: "StartBMCAccess",
1990
+ }));
1991
+
1992
+ export type StartRescueError = ScalewayOpError;
1993
+ /** Start in rescue baremetal server Start in rescue the server associated with the given ID. */
1994
+ export const startRescue: API.OperationMethod<
1995
+ StartRescueRequest,
1996
+ Rescue,
1997
+ StartRescueError,
1998
+ ScalewayOpContext
1999
+ > = /*@__PURE__*/ API.make(() => ({
2000
+ input: __S(1408, __c44, 0) as any as S.Schema<StartRescueRequest>,
2001
+ output: __S(480, __c15, 0) as any as S.Schema<Rescue>,
2002
+ errors: [],
2003
+ serviceErrors: ScalewayServiceErrors,
2004
+ protocol: ScalewayProtocol,
2005
+ retry: Retry.Retry,
2006
+ telemetry: TELEMETRY,
2007
+ span: "StartRescue",
2008
+ }));
2009
+
2010
+ export type StartServerError = ScalewayOpError;
2011
+ /** Start a baremetal server Start the server associated with the given ID. */
2012
+ export const startServer: API.OperationMethod<
2013
+ StartServerRequest,
2014
+ StartServerResponse,
2015
+ StartServerError,
2016
+ ScalewayOpContext
2017
+ > = /*@__PURE__*/ API.make(() => ({
2018
+ input: __S(1440, __c45, 0) as any as S.Schema<StartServerRequest>,
2019
+ output: __S(32, __c1, 0) as any as S.Schema<StartServerResponse>,
2020
+ errors: [],
2021
+ serviceErrors: ScalewayServiceErrors,
2022
+ protocol: ScalewayProtocol,
2023
+ retry: Retry.Retry,
2024
+ telemetry: TELEMETRY,
2025
+ span: "StartServer",
2026
+ }));
2027
+
2028
+ export type StopBMCAccessError = ScalewayOpError;
2029
+ /** Stop BMC (Baseboard Management Controller) access for a given baremetal server Stop BMC (Baseboard Management Controller) access associated with the given ID. */
2030
+ export const stopBMCAccess: API.OperationMethod<
2031
+ StopBMCAccessRequest,
2032
+ StopBMCAccessResponse,
2033
+ StopBMCAccessError,
2034
+ ScalewayOpContext
2035
+ > = /*@__PURE__*/ API.make(() => ({
2036
+ input: __S(1472, __c46, 0) as any as S.Schema<StopBMCAccessRequest>,
2037
+ output: __S(32, __c1, 0) as any as S.Schema<StopBMCAccessResponse>,
2038
+ errors: [],
2039
+ serviceErrors: ScalewayServiceErrors,
2040
+ protocol: ScalewayProtocol,
2041
+ retry: Retry.Retry,
2042
+ telemetry: TELEMETRY,
2043
+ span: "StopBMCAccess",
2044
+ }));
2045
+
2046
+ export type StopRescueError = ScalewayOpError;
2047
+ /** Stop rescue on baremetal server Stop rescue on the server associated with the given ID. */
2048
+ export const stopRescue: API.OperationMethod<
2049
+ StopRescueRequest,
2050
+ StopRescueResponse,
2051
+ StopRescueError,
2052
+ ScalewayOpContext
2053
+ > = /*@__PURE__*/ API.make(() => ({
2054
+ input: __S(1504, __c47, 0) as any as S.Schema<StopRescueRequest>,
2055
+ output: __S(32, __c1, 0) as any as S.Schema<StopRescueResponse>,
2056
+ errors: [],
2057
+ serviceErrors: ScalewayServiceErrors,
2058
+ protocol: ScalewayProtocol,
2059
+ retry: Retry.Retry,
2060
+ telemetry: TELEMETRY,
2061
+ span: "StopRescue",
2062
+ }));
2063
+
2064
+ export type StopServerError = ScalewayOpError;
2065
+ /** Stop a baremetal server Stop the server associated with the given ID. */
2066
+ export const stopServer: API.OperationMethod<
2067
+ StopServerRequest,
2068
+ StopServerResponse,
2069
+ StopServerError,
2070
+ ScalewayOpContext
2071
+ > = /*@__PURE__*/ API.make(() => ({
2072
+ input: __S(1536, __c48, 0) as any as S.Schema<StopServerRequest>,
2073
+ output: __S(32, __c1, 0) as any as S.Schema<StopServerResponse>,
2074
+ errors: [],
2075
+ serviceErrors: ScalewayServiceErrors,
2076
+ protocol: ScalewayProtocol,
2077
+ retry: Retry.Retry,
2078
+ telemetry: TELEMETRY,
2079
+ span: "StopServer",
2080
+ }));
2081
+
2082
+ export type SubscribeServerOptionError = ScalewayOpError;
2083
+ /** Subscribe server option Subscribe option for the given server ID. */
2084
+ export const subscribeServerOption: API.OperationMethod<
2085
+ SubscribeServerOptionRequest,
2086
+ Service,
2087
+ SubscribeServerOptionError,
2088
+ ScalewayOpContext
2089
+ > = /*@__PURE__*/ API.make(() => ({
2090
+ input: __S(1568, __c49, 0) as any as S.Schema<SubscribeServerOptionRequest>,
2091
+ output: __S(1248, __c39, 0) as any as S.Schema<Service>,
2092
+ errors: [],
2093
+ serviceErrors: ScalewayServiceErrors,
2094
+ protocol: ScalewayProtocol,
2095
+ retry: Retry.Retry,
2096
+ telemetry: TELEMETRY,
2097
+ span: "SubscribeServerOption",
2098
+ }));
2099
+
2100
+ export type SubscribeStorageOptionsError = ScalewayOpError;
2101
+ /** Subscribe storage server option Subscribe storage option for the given server ID. */
2102
+ export const subscribeStorageOptions: API.OperationMethod<
2103
+ SubscribeStorageOptionsRequest,
2104
+ SubscribeStorageOptionsResponse,
2105
+ SubscribeStorageOptionsError,
2106
+ ScalewayOpContext
2107
+ > = /*@__PURE__*/ API.make(() => ({
2108
+ input: __S(1632, __c51, 0) as any as S.Schema<SubscribeStorageOptionsRequest>,
2109
+ output: __S(1633, __c51, 1) as any as S.Schema<SubscribeStorageOptionsResponse>,
2110
+ errors: [],
2111
+ serviceErrors: ScalewayServiceErrors,
2112
+ protocol: ScalewayProtocol,
2113
+ retry: Retry.Retry,
2114
+ telemetry: TELEMETRY,
2115
+ span: "SubscribeStorageOptions",
2116
+ }));
2117
+
2118
+ export type UpdateRaidError = ScalewayOpError;
2119
+ /** Update RAID Update RAID associated with the given server ID. */
2120
+ export const updateRaid: API.OperationMethod<
2121
+ UpdateRaidRequest,
2122
+ UpdateRaidResponse,
2123
+ UpdateRaidError,
2124
+ ScalewayOpContext
2125
+ > = /*@__PURE__*/ API.make(() => ({
2126
+ input: __S(1666, __c52, 2) as any as S.Schema<UpdateRaidRequest>,
2127
+ output: __S(32, __c1, 0) as any as S.Schema<UpdateRaidResponse>,
2128
+ errors: [],
2129
+ serviceErrors: ScalewayServiceErrors,
2130
+ protocol: ScalewayProtocol,
2131
+ retry: Retry.Retry,
2132
+ telemetry: TELEMETRY,
2133
+ span: "UpdateRaid",
2134
+ }));
2135
+
2136
+ export type UpdateReverseError = ScalewayOpError;
2137
+ /** Update reverse of ip Update reverse of ip associated with the given ID. */
2138
+ export const updateReverse: API.OperationMethod<
2139
+ UpdateReverseRequest,
2140
+ IP,
2141
+ UpdateReverseError,
2142
+ ScalewayOpContext
2143
+ > = /*@__PURE__*/ API.make(() => ({
2144
+ input: __S(1696, __c53, 0) as any as S.Schema<UpdateReverseRequest>,
2145
+ output: __S(128, __c4, 0) as any as S.Schema<IP>,
2146
+ errors: [],
2147
+ serviceErrors: ScalewayServiceErrors,
2148
+ protocol: ScalewayProtocol,
2149
+ retry: Retry.Retry,
2150
+ telemetry: TELEMETRY,
2151
+ span: "UpdateReverse",
2152
+ }));
2153
+
2154
+ export type UpdateServerError = ScalewayOpError;
2155
+ /** Update a baremetal server Update the server associated with the given ID. */
2156
+ export const updateServer: API.OperationMethod<
2157
+ UpdateServerRequest,
2158
+ Server,
2159
+ UpdateServerError,
2160
+ ScalewayOpContext
2161
+ > = /*@__PURE__*/ API.make(() => ({
2162
+ input: __S(1728, __c54, 0) as any as S.Schema<UpdateServerRequest>,
2163
+ output: __S(580, __c18, 4) as any as S.Schema<Server>,
2164
+ errors: [],
2165
+ serviceErrors: ScalewayServiceErrors,
2166
+ protocol: ScalewayProtocol,
2167
+ retry: Retry.Retry,
2168
+ telemetry: TELEMETRY,
2169
+ span: "UpdateServer",
2170
+ }));
2171
+
2172
+ export type UpdateServerBackupError = ScalewayOpError;
2173
+ export const updateServerBackup: API.OperationMethod<
2174
+ UpdateServerBackupRequest,
2175
+ Backup,
2176
+ UpdateServerBackupError,
2177
+ ScalewayOpContext
2178
+ > = /*@__PURE__*/ API.make(() => ({
2179
+ input: __S(1760, __c55, 0) as any as S.Schema<UpdateServerBackupRequest>,
2180
+ output: __S(640, __c20, 0) as any as S.Schema<Backup>,
2181
+ errors: [],
2182
+ serviceErrors: ScalewayServiceErrors,
2183
+ protocol: ScalewayProtocol,
2184
+ retry: Retry.Retry,
2185
+ telemetry: TELEMETRY,
2186
+ span: "UpdateServerBackup",
2187
+ }));
2188
+
2189
+ export type UpdateServerTagsError = ScalewayOpError;
2190
+ export const updateServerTags: API.OperationMethod<
2191
+ UpdateServerTagsRequest,
2192
+ Server,
2193
+ UpdateServerTagsError,
2194
+ ScalewayOpContext
2195
+ > = /*@__PURE__*/ API.make(() => ({
2196
+ input: __S(1792, __c56, 0) as any as S.Schema<UpdateServerTagsRequest>,
2197
+ output: __S(580, __c18, 4) as any as S.Schema<Server>,
2198
+ errors: [],
2199
+ serviceErrors: ScalewayServiceErrors,
2200
+ protocol: ScalewayProtocol,
2201
+ retry: Retry.Retry,
2202
+ telemetry: TELEMETRY,
2203
+ span: "UpdateServerTags",
2204
+ }));
2205
+
2206
+ // Schema builders: each runs one schema initializer, on that schema's first use.
2207
+ function __c0(j: number): any {
2208
+ switch (j) {
2209
+ case 0:
2210
+ return S.suspend(() =>
2211
+ S.Struct({
2212
+ zone: S.optional(S.String.pipe(T.Label())),
2213
+ server_id: S.optional(S.Number),
2214
+ fips_ids: __S(64, __c2, 0),
2215
+ }).pipe(
2216
+ T.Http({
2217
+ method: "POST",
2218
+ uri: "/dedibox/v1/zones/{zone}/failover-ips/attach",
2219
+ code: 200,
2220
+ baseUrl: "https://api.scaleway.com",
2221
+ }),
2222
+ ),
2223
+ ).annotate({ identifier: "AttachFailoverIPsRequest" });
2224
+ }
2225
+ }
2226
+ function __c1(j: number): any {
2227
+ switch (j) {
2228
+ case 0:
2229
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "AttachFailoverIPsResponse" });
2230
+ }
2231
+ }
2232
+ function __c2(j: number): any {
2233
+ switch (j) {
2234
+ case 0:
2235
+ return S.Array(S.Number);
2236
+ }
2237
+ }
2238
+ function __c3(j: number): any {
2239
+ switch (j) {
2240
+ case 0:
2241
+ return S.suspend(() =>
2242
+ S.Struct({
2243
+ zone: S.optional(S.String.pipe(T.Label())),
2244
+ ip_id: S.Number.pipe(T.Label()),
2245
+ type: S.optional(S.String),
2246
+ mac: S.optional(S.NullOr(S.String)),
2247
+ }).pipe(
2248
+ T.Http({
2249
+ method: "POST",
2250
+ uri: "/dedibox/v1/zones/{zone}/failover-ips/{ip_id}/attach-to-mac-address",
2251
+ code: 200,
2252
+ baseUrl: "https://api.scaleway.com",
2253
+ }),
2254
+ ),
2255
+ ).annotate({ identifier: "AttachFailoverIPToMacAddressRequest" });
2256
+ }
2257
+ }
2258
+ function __c4(j: number): any {
2259
+ switch (j) {
2260
+ case 0:
2261
+ return S.suspend(() =>
2262
+ S.Struct({
2263
+ ip_id: S.optional(S.Number),
2264
+ address: S.optional(S.String),
2265
+ reverse: S.optional(S.String),
2266
+ version: S.optional(S.String),
2267
+ cidr: S.optional(S.Number),
2268
+ netmask: S.optional(S.String),
2269
+ semantic: S.optional(S.String),
2270
+ gateway: S.optional(S.String),
2271
+ status: S.optional(S.String),
2272
+ }),
2273
+ ).annotate({ identifier: "IP" });
2274
+ }
2275
+ }
2276
+ function __c5(j: number): any {
2277
+ switch (j) {
2278
+ case 0:
2279
+ return S.suspend(() =>
2280
+ S.Struct({
2281
+ zone: S.optional(S.String.pipe(T.Label())),
2282
+ server_id: S.Number.pipe(T.Label()),
2283
+ }).pipe(
2284
+ T.Http({
2285
+ method: "GET",
2286
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/bmc-access",
2287
+ code: 200,
2288
+ baseUrl: "https://api.scaleway.com",
2289
+ }),
2290
+ ),
2291
+ ).annotate({ identifier: "GetBMCAccessRequest" });
2292
+ case 1:
2293
+ return S.suspend(() =>
2294
+ S.Struct({
2295
+ url: S.optional(S.String),
2296
+ login: S.optional(S.String),
2297
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
2298
+ expires_at: S.optional(S.NullOr(S.String)),
2299
+ status: S.optional(S.String),
2300
+ }),
2301
+ ).annotate({ identifier: "BMCAccess" });
2302
+ }
2303
+ }
2304
+ function __c6(j: number): any {
2305
+ switch (j) {
2306
+ case 0:
2307
+ return S.suspend(() =>
2308
+ S.Struct({
2309
+ zone: S.optional(S.String.pipe(T.Label())),
2310
+ ip_id: S.Number.pipe(T.Label()),
2311
+ }).pipe(
2312
+ T.Http({
2313
+ method: "GET",
2314
+ uri: "/dedibox/v1/zones/{zone}/failover-ips/{ip_id}",
2315
+ code: 200,
2316
+ baseUrl: "https://api.scaleway.com",
2317
+ }),
2318
+ ),
2319
+ ).annotate({ identifier: "GetFailoverIPRequest" });
2320
+ }
2321
+ }
2322
+ function __c7(j: number): any {
2323
+ switch (j) {
2324
+ case 0:
2325
+ return S.suspend(() =>
2326
+ S.Struct({
2327
+ id: S.optional(S.Number),
2328
+ address: S.optional(S.String),
2329
+ nameservers: S.optional(__S(1184, __c37, 0)),
2330
+ ip_version: S.optional(S.String),
2331
+ cidr: S.optional(S.Number),
2332
+ netmask: S.optional(S.String),
2333
+ gateway_ip: S.optional(S.String),
2334
+ }),
2335
+ ).annotate({ identifier: "FailoverBlock" });
2336
+ case 1:
2337
+ return S.suspend(() =>
2338
+ S.Struct({
2339
+ id: S.optional(S.Number),
2340
+ address: S.optional(S.String),
2341
+ reverse: S.optional(S.String),
2342
+ ip_version: S.optional(S.String),
2343
+ cidr: S.optional(S.Number),
2344
+ netmask: S.optional(S.String),
2345
+ gateway_ip: S.optional(S.String),
2346
+ mac: S.optional(S.NullOr(S.String)),
2347
+ server_id: S.optional(S.NullOr(S.Number)),
2348
+ status: S.optional(S.String),
2349
+ block: S.optional(__S(224, __c7, 0)),
2350
+ type: S.optional(S.String),
2351
+ server_zone: S.optional(S.NullOr(S.String)),
2352
+ }),
2353
+ ).annotate({ identifier: "FailoverIP" });
2354
+ }
2355
+ }
2356
+ function __c8(j: number): any {
2357
+ switch (j) {
2358
+ case 0:
2359
+ return S.suspend(() =>
2360
+ S.Struct({
2361
+ zone: S.optional(S.String.pipe(T.Label())),
2362
+ offer_id: S.Number.pipe(T.Label()),
2363
+ project_id: S.optional(S.String.pipe(T.Query())),
2364
+ }).pipe(
2365
+ T.Http({
2366
+ method: "GET",
2367
+ uri: "/dedibox/v1/zones/{zone}/offers/{offer_id}",
2368
+ code: 200,
2369
+ baseUrl: "https://api.scaleway.com",
2370
+ }),
2371
+ ),
2372
+ ).annotate({ identifier: "GetOfferRequest" });
2373
+ }
2374
+ }
2375
+ function __c9(j: number): any {
2376
+ switch (j) {
2377
+ case 0:
2378
+ return S.suspend(() =>
2379
+ S.Struct({
2380
+ zone: S.optional(S.String.pipe(T.Label())),
2381
+ ordered_service_id: S.Number.pipe(T.Label()),
2382
+ }).pipe(
2383
+ T.Http({
2384
+ method: "GET",
2385
+ uri: "/dedibox/v1/zones/{zone}/ordered-services/{ordered_service_id}",
2386
+ code: 200,
2387
+ baseUrl: "https://api.scaleway.com",
2388
+ }),
2389
+ ),
2390
+ ).annotate({ identifier: "GetOrderedServiceRequest" });
2391
+ }
2392
+ }
2393
+ function __c10(j: number): any {
2394
+ switch (j) {
2395
+ case 0:
2396
+ return S.suspend(() =>
2397
+ S.Struct({
2398
+ zone: S.optional(S.String.pipe(T.Label())),
2399
+ os_id: S.Number.pipe(T.Label()),
2400
+ server_id: S.Number.pipe(T.Query()),
2401
+ project_id: S.optional(S.String.pipe(T.Query())),
2402
+ }).pipe(
2403
+ T.Http({
2404
+ method: "GET",
2405
+ uri: "/dedibox/v1/zones/{zone}/os/{os_id}",
2406
+ code: 200,
2407
+ baseUrl: "https://api.scaleway.com",
2408
+ }),
2409
+ ),
2410
+ ).annotate({ identifier: "GetOSRequest" });
2411
+ }
2412
+ }
2413
+ function __c11(j: number): any {
2414
+ switch (j) {
2415
+ case 0:
2416
+ return S.suspend(() =>
2417
+ S.Struct({
2418
+ zone: S.optional(S.String.pipe(T.Label())),
2419
+ server_id: S.Number.pipe(T.Label()),
2420
+ }).pipe(
2421
+ T.Http({
2422
+ method: "GET",
2423
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/raid",
2424
+ code: 200,
2425
+ baseUrl: "https://api.scaleway.com",
2426
+ }),
2427
+ ),
2428
+ ).annotate({ identifier: "GetRaidRequest" });
2429
+ case 1:
2430
+ return S.suspend(() =>
2431
+ S.Struct({
2432
+ raid_level: S.optional(S.String),
2433
+ disks: S.optional(__S(385, __c12, 1)),
2434
+ }),
2435
+ ).annotate({ identifier: "RaidArray" });
2436
+ case 2:
2437
+ return S.Array(__S(353, __c11, 1));
2438
+ case 3:
2439
+ return S.suspend(() =>
2440
+ S.Struct({
2441
+ raid_arrays: S.optional(__S(354, __c11, 2)),
2442
+ }),
2443
+ ).annotate({ identifier: "Raid" });
2444
+ }
2445
+ }
2446
+ function __c12(j: number): any {
2447
+ switch (j) {
2448
+ case 0:
2449
+ return S.suspend(() =>
2450
+ S.Struct({
2451
+ id: S.optional(S.Number),
2452
+ connector: S.optional(S.String),
2453
+ type: S.optional(S.String),
2454
+ capacity: S.optional(S.Number),
2455
+ is_addon: S.optional(S.Boolean),
2456
+ }),
2457
+ ).annotate({ identifier: "ServerDisk" });
2458
+ case 1:
2459
+ return S.Array(__S(384, __c12, 0));
2460
+ }
2461
+ }
2462
+ function __c13(j: number): any {
2463
+ switch (j) {
2464
+ case 0:
2465
+ return S.suspend(() =>
2466
+ S.Struct({
2467
+ zone: S.optional(S.String.pipe(T.Label())),
2468
+ project_id: S.optional(S.String.pipe(T.Query())),
2469
+ }).pipe(
2470
+ T.Http({
2471
+ method: "GET",
2472
+ uri: "/dedibox/v1/zones/{zone}/remaining-quota",
2473
+ code: 200,
2474
+ baseUrl: "https://api.scaleway.com",
2475
+ }),
2476
+ ),
2477
+ ).annotate({ identifier: "GetRemainingQuotaRequest" });
2478
+ case 1:
2479
+ return S.suspend(() =>
2480
+ S.Struct({
2481
+ failover_ip_quota: S.optional(S.Number),
2482
+ failover_ip_remaining_quota: S.optional(S.Number),
2483
+ failover_block_quota: S.optional(S.Number),
2484
+ failover_block_remaining_quota: S.optional(S.Number),
2485
+ }),
2486
+ ).annotate({ identifier: "GetRemainingQuotaResponse" });
2487
+ }
2488
+ }
2489
+ function __c14(j: number): any {
2490
+ switch (j) {
2491
+ case 0:
2492
+ return S.suspend(() =>
2493
+ S.Struct({
2494
+ zone: S.optional(S.String.pipe(T.Label())),
2495
+ server_id: S.Number.pipe(T.Label()),
2496
+ }).pipe(
2497
+ T.Http({
2498
+ method: "GET",
2499
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/rescue",
2500
+ code: 200,
2501
+ baseUrl: "https://api.scaleway.com",
2502
+ }),
2503
+ ),
2504
+ ).annotate({ identifier: "GetRescueRequest" });
2505
+ }
2506
+ }
2507
+ function __c15(j: number): any {
2508
+ switch (j) {
2509
+ case 0:
2510
+ return S.suspend(() =>
2511
+ S.Struct({
2512
+ os_id: S.optional(S.Number),
2513
+ login: S.optional(S.String),
2514
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
2515
+ protocol: S.optional(S.String),
2516
+ }),
2517
+ ).annotate({ identifier: "Rescue" });
2518
+ }
2519
+ }
2520
+ function __c16(j: number): any {
2521
+ switch (j) {
2522
+ case 0:
2523
+ return S.suspend(() =>
2524
+ S.Struct({
2525
+ zone: S.optional(S.String.pipe(T.Label())),
2526
+ server_id: S.Number.pipe(T.Label()),
2527
+ }).pipe(
2528
+ T.Http({
2529
+ method: "GET",
2530
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}",
2531
+ code: 200,
2532
+ baseUrl: "https://api.scaleway.com",
2533
+ }),
2534
+ ),
2535
+ ).annotate({ identifier: "GetServerRequest" });
2536
+ }
2537
+ }
2538
+ function __c17(j: number): any {
2539
+ switch (j) {
2540
+ case 0:
2541
+ return S.Array(__S(128, __c4, 0));
2542
+ case 1:
2543
+ return S.suspend(() =>
2544
+ S.Struct({
2545
+ card_id: S.optional(S.Number),
2546
+ device_id: S.optional(S.Number),
2547
+ mac: S.optional(S.String),
2548
+ type: S.optional(S.String),
2549
+ ips: S.optional(__S(544, __c17, 0)),
2550
+ }),
2551
+ ).annotate({ identifier: "NetworkInterface" });
2552
+ case 2:
2553
+ return S.Array(__S(545, __c17, 1));
2554
+ case 3:
2555
+ return S.suspend(() =>
2556
+ S.Struct({
2557
+ offer_id: S.optional(S.Number),
2558
+ level: S.optional(S.String),
2559
+ }),
2560
+ ).annotate({ identifier: "ServiceLevel" });
2561
+ }
2562
+ }
2563
+ function __c18(j: number): any {
2564
+ switch (j) {
2565
+ case 0:
2566
+ return S.suspend(() =>
2567
+ S.Struct({
2568
+ rack: S.optional(S.String),
2569
+ room: S.optional(S.String),
2570
+ datacenter_name: S.optional(S.String),
2571
+ }),
2572
+ ).annotate({ identifier: "ServerLocation" });
2573
+ case 1:
2574
+ return S.Array(/*@__PURE__*/ S.suspend(() => __S(578, __c18, 2)));
2575
+ case 2:
2576
+ return S.suspend(() =>
2577
+ S.Struct({
2578
+ offer: S.optional(__S(1245, __c38, 29)),
2579
+ created_at: S.optional(S.NullOr(S.String)),
2580
+ updated_at: S.optional(S.NullOr(S.String)),
2581
+ expired_at: S.optional(S.NullOr(S.String)),
2582
+ options: S.optional(__S(577, __c18, 1)),
2583
+ }),
2584
+ ).annotate({ identifier: "ServerOption" });
2585
+ case 3:
2586
+ return S.Array(__S(578, __c18, 2));
2587
+ case 4:
2588
+ return S.suspend(() =>
2589
+ S.Struct({
2590
+ id: S.optional(S.Number),
2591
+ organization_id: S.optional(S.String),
2592
+ project_id: S.optional(S.String),
2593
+ hostname: S.optional(S.String),
2594
+ rebooted_at: S.optional(S.NullOr(S.String)),
2595
+ created_at: S.optional(S.NullOr(S.String)),
2596
+ updated_at: S.optional(S.NullOr(S.String)),
2597
+ expired_at: S.optional(S.NullOr(S.String)),
2598
+ offer: S.optional(__S(1245, __c38, 29)),
2599
+ status: S.optional(S.String),
2600
+ location: S.optional(__S(576, __c18, 0)),
2601
+ abuse_contact: S.optional(S.String),
2602
+ os: S.optional(__S(1243, __c38, 27)),
2603
+ interfaces: S.optional(__S(546, __c17, 2)),
2604
+ zone: S.optional(S.String),
2605
+ options: S.optional(__S(579, __c18, 3)),
2606
+ level: S.optional(__S(547, __c17, 3)),
2607
+ has_bmc: S.optional(S.Boolean),
2608
+ rescue_os: S.optional(__S(1243, __c38, 27)),
2609
+ tags: S.optional(__S(1184, __c37, 0)),
2610
+ is_outsourced: S.optional(S.Boolean),
2611
+ ipv6_slaac: S.optional(S.Boolean),
2612
+ qinq: S.optional(S.Boolean),
2613
+ is_rpnv2_member: S.optional(S.Boolean),
2614
+ is_hds: S.optional(S.Boolean),
2615
+ }),
2616
+ ).annotate({ identifier: "Server" });
2617
+ }
2618
+ }
2619
+ function __c19(j: number): any {
2620
+ switch (j) {
2621
+ case 0:
2622
+ return S.suspend(() =>
2623
+ S.Struct({
2624
+ zone: S.optional(S.String.pipe(T.Label())),
2625
+ server_id: S.Number.pipe(T.Label()),
2626
+ }).pipe(
2627
+ T.Http({
2628
+ method: "GET",
2629
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/backups",
2630
+ code: 200,
2631
+ baseUrl: "https://api.scaleway.com",
2632
+ }),
2633
+ ),
2634
+ ).annotate({ identifier: "GetServerBackupRequest" });
2635
+ }
2636
+ }
2637
+ function __c20(j: number): any {
2638
+ switch (j) {
2639
+ case 0:
2640
+ return S.suspend(() =>
2641
+ S.Struct({
2642
+ id: S.optional(S.Number),
2643
+ login: S.optional(S.String),
2644
+ server: S.optional(S.String),
2645
+ status: S.optional(S.String),
2646
+ acl_enabled: S.optional(S.Boolean),
2647
+ autologin: S.optional(S.Boolean),
2648
+ quota_space: S.optional(S.Number),
2649
+ quota_space_used: S.optional(S.Number),
2650
+ quota_files: S.optional(S.Number),
2651
+ quota_files_used: S.optional(S.Number),
2652
+ }),
2653
+ ).annotate({ identifier: "Backup" });
2654
+ }
2655
+ }
2656
+ function __c21(j: number): any {
2657
+ switch (j) {
2658
+ case 0:
2659
+ return S.suspend(() =>
2660
+ S.Struct({
2661
+ zone: S.optional(S.String.pipe(T.Label())),
2662
+ server_id: S.Number.pipe(T.Label()),
2663
+ }).pipe(
2664
+ T.Http({
2665
+ method: "POST",
2666
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/cancel-install",
2667
+ code: 200,
2668
+ baseUrl: "https://api.scaleway.com",
2669
+ }),
2670
+ ),
2671
+ ).annotate({ identifier: "CancelServerInstallRequest" });
2672
+ }
2673
+ }
2674
+ function __c22(j: number): any {
2675
+ switch (j) {
2676
+ case 0:
2677
+ return S.suspend(() =>
2678
+ S.Struct({
2679
+ zone: S.optional(S.String.pipe(T.Label())),
2680
+ server_id: S.Number.pipe(T.Label()),
2681
+ os_id: S.Number.pipe(T.Label()),
2682
+ }).pipe(
2683
+ T.Http({
2684
+ method: "GET",
2685
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/partitioning/{os_id}",
2686
+ code: 200,
2687
+ baseUrl: "https://api.scaleway.com",
2688
+ }),
2689
+ ),
2690
+ ).annotate({ identifier: "GetServerDefaultPartitioningRequest" });
2691
+ case 1:
2692
+ return S.suspend(() =>
2693
+ S.Struct({
2694
+ partitions: S.optional(__S(737, __c23, 1)),
2695
+ }),
2696
+ ).annotate({ identifier: "ServerDefaultPartitioning" });
2697
+ }
2698
+ }
2699
+ function __c23(j: number): any {
2700
+ switch (j) {
2701
+ case 0:
2702
+ return S.suspend(() =>
2703
+ S.Struct({
2704
+ type: S.optional(S.String),
2705
+ file_system: S.optional(S.String),
2706
+ mount_point: S.optional(S.NullOr(S.String)),
2707
+ raid_level: S.optional(S.String),
2708
+ capacity: S.optional(S.Number),
2709
+ connectors: S.optional(__S(1184, __c37, 0)),
2710
+ }),
2711
+ ).annotate({ identifier: "Partition" });
2712
+ case 1:
2713
+ return S.Array(__S(736, __c23, 0));
2714
+ }
2715
+ }
2716
+ function __c24(j: number): any {
2717
+ switch (j) {
2718
+ case 0:
2719
+ return S.suspend(() =>
2720
+ S.Struct({
2721
+ zone: S.optional(S.String.pipe(T.Label())),
2722
+ server_id: S.Number.pipe(T.Label()),
2723
+ }).pipe(
2724
+ T.Http({
2725
+ method: "GET",
2726
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/install",
2727
+ code: 200,
2728
+ baseUrl: "https://api.scaleway.com",
2729
+ }),
2730
+ ),
2731
+ ).annotate({ identifier: "GetServerInstallRequest" });
2732
+ }
2733
+ }
2734
+ function __c25(j: number): any {
2735
+ switch (j) {
2736
+ case 0:
2737
+ return S.suspend(() =>
2738
+ S.Struct({
2739
+ os_id: S.optional(S.Number),
2740
+ hostname: S.optional(S.String),
2741
+ user_login: S.optional(S.NullOr(S.String)),
2742
+ partitions: S.optional(__S(737, __c23, 1)),
2743
+ ssh_key_ids: S.optional(__S(1184, __c37, 0)),
2744
+ status: S.optional(S.String),
2745
+ panel_url: S.optional(S.NullOr(S.String)),
2746
+ }),
2747
+ ).annotate({ identifier: "ServerInstall" });
2748
+ }
2749
+ }
2750
+ function __c26(j: number): any {
2751
+ switch (j) {
2752
+ case 0:
2753
+ return S.suspend(() =>
2754
+ S.Struct({
2755
+ zone: S.optional(S.String.pipe(T.Label())),
2756
+ service_id: S.Number.pipe(T.Label()),
2757
+ }).pipe(
2758
+ T.Http({
2759
+ method: "PATCH",
2760
+ uri: "/dedibox/v1/zones/{zone}/services/{service_id}",
2761
+ code: 200,
2762
+ baseUrl: "https://api.scaleway.com",
2763
+ }),
2764
+ ),
2765
+ ).annotate({ identifier: "GetServiceRequest" });
2766
+ }
2767
+ }
2768
+ function __c27(j: number): any {
2769
+ switch (j) {
2770
+ case 0:
2771
+ return S.suspend(() =>
2772
+ S.Struct({
2773
+ file_system: S.optional(S.String),
2774
+ mount_point: S.optional(S.NullOr(S.String)),
2775
+ raid_level: S.optional(S.String),
2776
+ capacity: S.optional(S.Number),
2777
+ connectors: S.optional(__S(1184, __c37, 0)),
2778
+ }),
2779
+ ).annotate({ identifier: "InstallPartition" });
2780
+ case 1:
2781
+ return S.Array(__S(864, __c27, 0));
2782
+ case 2:
2783
+ return S.suspend(() =>
2784
+ S.Struct({
2785
+ zone: S.optional(S.String.pipe(T.Label())),
2786
+ server_id: S.Number.pipe(T.Label()),
2787
+ os_id: S.optional(S.Number),
2788
+ hostname: S.optional(S.String),
2789
+ user_login: S.optional(S.NullOr(S.String)),
2790
+ user_password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
2791
+ panel_password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
2792
+ root_password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
2793
+ partitions: S.optional(__S(865, __c27, 1)),
2794
+ ssh_key_ids: S.optional(__S(1184, __c37, 0)),
2795
+ license_offer_id: S.optional(S.NullOr(S.Number)),
2796
+ ip_id: S.optional(S.NullOr(S.Number)),
2797
+ }).pipe(
2798
+ T.Http({
2799
+ method: "POST",
2800
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/install",
2801
+ code: 200,
2802
+ baseUrl: "https://api.scaleway.com",
2803
+ }),
2804
+ ),
2805
+ ).annotate({ identifier: "InstallServerRequest" });
2806
+ }
2807
+ }
2808
+ function __c28(j: number): any {
2809
+ switch (j) {
2810
+ case 0:
2811
+ return S.suspend(() =>
2812
+ S.Struct({
2813
+ zone: S.optional(S.String.pipe(T.Label())),
2814
+ page: S.optional(S.Number.pipe(T.Query())),
2815
+ page_size: S.optional(S.Number.pipe(T.Query())),
2816
+ order_by: S.optional(S.String.pipe(T.Query())),
2817
+ project_id: S.optional(S.String.pipe(T.Query())),
2818
+ search: S.optional(S.String.pipe(T.Query())),
2819
+ only_available: S.optional(S.Boolean.pipe(T.Query())),
2820
+ }).pipe(
2821
+ T.Http({
2822
+ method: "GET",
2823
+ uri: "/dedibox/v1/zones/{zone}/failover-ips",
2824
+ code: 200,
2825
+ baseUrl: "https://api.scaleway.com",
2826
+ }),
2827
+ ),
2828
+ ).annotate({ identifier: "ListFailoverIPsRequest" });
2829
+ case 1:
2830
+ return S.Array(__S(225, __c7, 1));
2831
+ case 2:
2832
+ return S.suspend(() =>
2833
+ S.Struct({
2834
+ total_count: S.optional(S.Number),
2835
+ failover_ips: __S(897, __c28, 1),
2836
+ }),
2837
+ ).annotate({ identifier: "ListFailoverIPsResponse" });
2838
+ }
2839
+ }
2840
+ function __c29(j: number): any {
2841
+ switch (j) {
2842
+ case 0:
2843
+ return S.suspend(() =>
2844
+ S.Struct({
2845
+ zone: S.optional(S.String.pipe(T.Label())),
2846
+ page: S.optional(S.Number.pipe(T.Query())),
2847
+ page_size: S.optional(S.Number.pipe(T.Query())),
2848
+ order_by: S.optional(S.String.pipe(T.Query())),
2849
+ commercial_range: S.optional(S.String.pipe(T.Query())),
2850
+ catalog: S.optional(S.String.pipe(T.Query())),
2851
+ project_id: S.optional(S.String.pipe(T.Query())),
2852
+ is_failover_ip: S.optional(S.Boolean.pipe(T.Query())),
2853
+ is_failover_block: S.optional(S.Boolean.pipe(T.Query())),
2854
+ sold_in: S.optional(S.String.pipe(T.Query())),
2855
+ available_only: S.optional(S.Boolean.pipe(T.Query())),
2856
+ is_rpn_san: S.optional(S.Boolean.pipe(T.Query())),
2857
+ }).pipe(
2858
+ T.Http({
2859
+ method: "GET",
2860
+ uri: "/dedibox/v1/zones/{zone}/offers",
2861
+ code: 200,
2862
+ baseUrl: "https://api.scaleway.com",
2863
+ }),
2864
+ ),
2865
+ ).annotate({ identifier: "ListOffersRequest" });
2866
+ case 1:
2867
+ return S.suspend(() =>
2868
+ S.Struct({
2869
+ total_count: S.optional(S.Number),
2870
+ offers: __S(960, __c30, 0),
2871
+ }),
2872
+ ).annotate({ identifier: "ListOffersResponse" });
2873
+ }
2874
+ }
2875
+ function __c30(j: number): any {
2876
+ switch (j) {
2877
+ case 0:
2878
+ return S.Array(__S(1245, __c38, 29));
2879
+ }
2880
+ }
2881
+ function __c31(j: number): any {
2882
+ switch (j) {
2883
+ case 0:
2884
+ return S.suspend(() =>
2885
+ S.Struct({
2886
+ zone: S.optional(S.String.pipe(T.Label())),
2887
+ page: S.optional(S.Number.pipe(T.Query())),
2888
+ page_size: S.optional(S.Number.pipe(T.Query())),
2889
+ order_by: S.optional(S.String.pipe(T.Query())),
2890
+ type: S.optional(S.String.pipe(T.Query())),
2891
+ project_id: S.optional(S.String.pipe(T.Query())),
2892
+ server_id: S.optional(S.Number.pipe(T.Query())),
2893
+ offer_id: S.optional(S.Number.pipe(T.Query())),
2894
+ }).pipe(
2895
+ T.Http({
2896
+ method: "GET",
2897
+ uri: "/dedibox/v1/zones/{zone}/os",
2898
+ code: 200,
2899
+ baseUrl: "https://api.scaleway.com",
2900
+ }),
2901
+ ),
2902
+ ).annotate({ identifier: "ListOSRequest" });
2903
+ case 1:
2904
+ return S.suspend(() =>
2905
+ S.Struct({
2906
+ total_count: S.optional(S.Number),
2907
+ os: __S(1244, __c38, 28),
2908
+ }),
2909
+ ).annotate({ identifier: "ListOSResponse" });
2910
+ }
2911
+ }
2912
+ function __c32(j: number): any {
2913
+ switch (j) {
2914
+ case 0:
2915
+ return S.suspend(() =>
2916
+ S.Struct({
2917
+ zone: S.optional(S.String.pipe(T.Label())),
2918
+ server_id: S.Number.pipe(T.Label()),
2919
+ page: S.optional(S.Number.pipe(T.Query())),
2920
+ page_size: S.optional(S.Number.pipe(T.Query())),
2921
+ order_by: S.optional(S.String.pipe(T.Query())),
2922
+ }).pipe(
2923
+ T.Http({
2924
+ method: "GET",
2925
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/disks",
2926
+ code: 200,
2927
+ baseUrl: "https://api.scaleway.com",
2928
+ }),
2929
+ ),
2930
+ ).annotate({ identifier: "ListServerDisksRequest" });
2931
+ case 1:
2932
+ return S.suspend(() =>
2933
+ S.Struct({
2934
+ total_count: S.optional(S.Number),
2935
+ disks: __S(385, __c12, 1),
2936
+ }),
2937
+ ).annotate({ identifier: "ListServerDisksResponse" });
2938
+ }
2939
+ }
2940
+ function __c33(j: number): any {
2941
+ switch (j) {
2942
+ case 0:
2943
+ return S.suspend(() =>
2944
+ S.Struct({
2945
+ zone: S.optional(S.String.pipe(T.Label())),
2946
+ server_id: S.Number.pipe(T.Label()),
2947
+ page: S.optional(S.Number.pipe(T.Query())),
2948
+ page_size: S.optional(S.Number.pipe(T.Query())),
2949
+ order_by: S.optional(S.String.pipe(T.Query())),
2950
+ }).pipe(
2951
+ T.Http({
2952
+ method: "GET",
2953
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/events",
2954
+ code: 200,
2955
+ baseUrl: "https://api.scaleway.com",
2956
+ }),
2957
+ ),
2958
+ ).annotate({ identifier: "ListServerEventsRequest" });
2959
+ case 1:
2960
+ return S.suspend(() =>
2961
+ S.Struct({
2962
+ event_id: S.optional(S.Number),
2963
+ description: S.optional(S.String),
2964
+ date: S.optional(S.NullOr(S.String)),
2965
+ }),
2966
+ ).annotate({ identifier: "ServerEvent" });
2967
+ case 2:
2968
+ return S.Array(__S(1057, __c33, 1));
2969
+ case 3:
2970
+ return S.suspend(() =>
2971
+ S.Struct({
2972
+ total_count: S.optional(S.Number),
2973
+ events: __S(1058, __c33, 2),
2974
+ }),
2975
+ ).annotate({ identifier: "ListServerEventsResponse" });
2976
+ }
2977
+ }
2978
+ function __c34(j: number): any {
2979
+ switch (j) {
2980
+ case 0:
2981
+ return S.suspend(() =>
2982
+ S.Struct({
2983
+ zone: S.optional(S.String.pipe(T.Label())),
2984
+ page: S.optional(S.Number.pipe(T.Query())),
2985
+ page_size: S.optional(S.Number.pipe(T.Query())),
2986
+ order_by: S.optional(S.String.pipe(T.Query())),
2987
+ project_id: S.optional(S.String.pipe(T.Query())),
2988
+ search: S.optional(S.String.pipe(T.Query())),
2989
+ }).pipe(
2990
+ T.Http({
2991
+ method: "GET",
2992
+ uri: "/dedibox/v1/zones/{zone}/servers",
2993
+ code: 200,
2994
+ baseUrl: "https://api.scaleway.com",
2995
+ }),
2996
+ ),
2997
+ ).annotate({ identifier: "ListServersRequest" });
2998
+ case 1:
2999
+ return S.suspend(() =>
3000
+ S.Struct({
3001
+ id: S.optional(S.Number),
3002
+ datacenter_name: S.optional(S.String),
3003
+ organization_id: S.optional(S.String),
3004
+ project_id: S.optional(S.String),
3005
+ hostname: S.optional(S.String),
3006
+ created_at: S.optional(S.NullOr(S.String)),
3007
+ updated_at: S.optional(S.NullOr(S.String)),
3008
+ expired_at: S.optional(S.NullOr(S.String)),
3009
+ offer_id: S.optional(S.Number),
3010
+ offer_name: S.optional(S.String),
3011
+ status: S.optional(S.String),
3012
+ os_id: S.optional(S.NullOr(S.Number)),
3013
+ interfaces: S.optional(__S(546, __c17, 2)),
3014
+ zone: S.optional(S.String),
3015
+ level: S.optional(__S(547, __c17, 3)),
3016
+ is_outsourced: S.optional(S.Boolean),
3017
+ qinq: S.optional(S.Boolean),
3018
+ rpn_version: S.optional(S.NullOr(S.Number)),
3019
+ is_hds: S.optional(S.Boolean),
3020
+ }),
3021
+ ).annotate({ identifier: "ServerSummary" });
3022
+ case 2:
3023
+ return S.Array(__S(1089, __c34, 1));
3024
+ case 3:
3025
+ return S.suspend(() =>
3026
+ S.Struct({
3027
+ total_count: S.optional(S.Number),
3028
+ servers: __S(1090, __c34, 2),
3029
+ }),
3030
+ ).annotate({ identifier: "ListServersResponse" });
3031
+ }
3032
+ }
3033
+ function __c35(j: number): any {
3034
+ switch (j) {
3035
+ case 0:
3036
+ return S.suspend(() =>
3037
+ S.Struct({
3038
+ zone: S.optional(S.String.pipe(T.Label())),
3039
+ offer_id: S.optional(S.Number),
3040
+ project_id: S.optional(S.String),
3041
+ quantity: S.optional(S.Number),
3042
+ }).pipe(
3043
+ T.Http({
3044
+ method: "POST",
3045
+ uri: "/dedibox/v1/zones/{zone}/failover-ips",
3046
+ code: 200,
3047
+ baseUrl: "https://api.scaleway.com",
3048
+ }),
3049
+ ),
3050
+ ).annotate({ identifier: "CreateFailoverIPsRequest" });
3051
+ case 1:
3052
+ return S.suspend(() =>
3053
+ S.Struct({
3054
+ total_count: S.optional(S.Number),
3055
+ services: S.optional(__S(1152, __c36, 0)),
3056
+ }),
3057
+ ).annotate({ identifier: "CreateFailoverIPsResponse" });
3058
+ }
3059
+ }
3060
+ function __c36(j: number): any {
3061
+ switch (j) {
3062
+ case 0:
3063
+ return S.Array(__S(1248, __c39, 0));
3064
+ }
3065
+ }
3066
+ function __c37(j: number): any {
3067
+ switch (j) {
3068
+ case 0:
3069
+ return S.Array(S.String);
3070
+ }
3071
+ }
3072
+ function __c38(j: number): any {
3073
+ switch (j) {
3074
+ case 0:
3075
+ return S.suspend(() =>
3076
+ S.Struct({
3077
+ currency_code: S.optional(S.String),
3078
+ units: S.optional(S.Number),
3079
+ nanos: S.optional(S.Number),
3080
+ }),
3081
+ ).annotate({ identifier: "GoogleTypeMoney" });
3082
+ case 1:
3083
+ return S.suspend(() =>
3084
+ S.Struct({
3085
+ capacity: S.optional(S.Number),
3086
+ type: S.optional(S.String),
3087
+ }),
3088
+ ).annotate({ identifier: "Disk" });
3089
+ case 2:
3090
+ return S.Array(__S(1217, __c38, 1));
3091
+ case 3:
3092
+ return S.suspend(() =>
3093
+ S.Struct({
3094
+ name: S.optional(S.String),
3095
+ core_count: S.optional(S.Number),
3096
+ thread_count: S.optional(S.Number),
3097
+ frequency: S.optional(S.Number),
3098
+ bench: S.optional(S.Number),
3099
+ }),
3100
+ ).annotate({ identifier: "CPU" });
3101
+ case 4:
3102
+ return S.Array(__S(1219, __c38, 3));
3103
+ case 5:
3104
+ return S.suspend(() =>
3105
+ S.Struct({
3106
+ capacity: S.optional(S.Number),
3107
+ type: S.optional(S.String),
3108
+ frequency: S.optional(S.Number),
3109
+ is_ecc: S.optional(S.Boolean),
3110
+ }),
3111
+ ).annotate({ identifier: "Memory" });
3112
+ case 6:
3113
+ return S.Array(__S(1221, __c38, 5));
3114
+ case 7:
3115
+ return S.suspend(() =>
3116
+ S.Struct({
3117
+ capacity: S.optional(S.Number),
3118
+ frequency: S.optional(S.Number),
3119
+ model: S.optional(S.String),
3120
+ }),
3121
+ ).annotate({ identifier: "PersistentMemory" });
3122
+ case 8:
3123
+ return S.Array(__S(1223, __c38, 7));
3124
+ case 9:
3125
+ return S.suspend(() =>
3126
+ S.Struct({
3127
+ model: S.optional(S.String),
3128
+ raid_level: S.optional(__S(1184, __c37, 0)),
3129
+ }),
3130
+ ).annotate({ identifier: "RaidController" });
3131
+ case 10:
3132
+ return S.Array(__S(1225, __c38, 9));
3133
+ case 11:
3134
+ return S.Array(/*@__PURE__*/ S.suspend(() => __S(1245, __c38, 29)));
3135
+ case 12:
3136
+ return S.Record(S.String, S.String);
3137
+ case 13:
3138
+ return S.suspend(() =>
3139
+ S.Struct({
3140
+ stock: S.optional(S.String),
3141
+ quantity: S.optional(S.Number),
3142
+ }),
3143
+ ).annotate({ identifier: "OfferServerInfoAvailability" });
3144
+ case 14:
3145
+ return S.Record(S.String, __S(1229, __c38, 13));
3146
+ case 15:
3147
+ return S.suspend(() =>
3148
+ S.Struct({
3149
+ bandwidth: S.optional(S.Number),
3150
+ stock: S.optional(S.String),
3151
+ commercial_range: S.optional(S.String),
3152
+ disks: S.optional(__S(1218, __c38, 2)),
3153
+ cpus: S.optional(__S(1220, __c38, 4)),
3154
+ memories: S.optional(__S(1222, __c38, 6)),
3155
+ persistent_memories: S.optional(__S(1224, __c38, 8)),
3156
+ raid_controllers: S.optional(__S(1226, __c38, 10)),
3157
+ available_options: S.optional(__S(1227, __c38, 11)),
3158
+ rpn_version: S.optional(S.NullOr(S.Number)),
3159
+ connectivity: S.optional(S.Number),
3160
+ onetime_fees: S.optional(S.suspend(() => __S(1245, __c38, 29))),
3161
+ stock_by_datacenter: S.optional(__S(1228, __c38, 12)),
3162
+ availability_by_datacenter: S.optional(__S(1230, __c38, 14)),
3163
+ rpn_speed: S.optional(S.Number),
3164
+ }),
3165
+ ).annotate({ identifier: "OfferServerInfo" });
3166
+ case 16:
3167
+ return S.suspend(() =>
3168
+ S.Struct({
3169
+ support_ticket: S.optional(S.Boolean),
3170
+ support_phone: S.optional(S.Boolean),
3171
+ sales_support: S.optional(S.Boolean),
3172
+ git: S.optional(S.String),
3173
+ sla: S.optional(S.Number),
3174
+ priority_support: S.optional(S.Boolean),
3175
+ high_rpn_bandwidth: S.optional(S.Boolean),
3176
+ customization: S.optional(S.Boolean),
3177
+ antidos: S.optional(S.Boolean),
3178
+ extra_failover_quota: S.optional(S.Number),
3179
+ available_options: S.optional(__S(1227, __c38, 11)),
3180
+ }),
3181
+ ).annotate({ identifier: "OfferServiceLevelInfo" });
3182
+ case 17:
3183
+ return S.suspend(() =>
3184
+ S.Struct({
3185
+ speed: S.optional(S.Number),
3186
+ }),
3187
+ ).annotate({ identifier: "OfferRPNInfo" });
3188
+ case 18:
3189
+ return S.suspend(() =>
3190
+ S.Struct({
3191
+ size: S.optional(S.Number),
3192
+ ha: S.optional(S.Boolean),
3193
+ device_type: S.optional(S.String),
3194
+ }),
3195
+ ).annotate({ identifier: "OfferSANInfo" });
3196
+ case 19:
3197
+ return S.suspend(() =>
3198
+ S.Struct({
3199
+ type: S.optional(S.String),
3200
+ }),
3201
+ ).annotate({ identifier: "OfferAntiDosInfo" });
3202
+ case 20:
3203
+ return S.suspend(() =>
3204
+ S.Struct({
3205
+ size: S.optional(S.Number),
3206
+ }),
3207
+ ).annotate({ identifier: "OfferBackupInfo" });
3208
+ case 21:
3209
+ return S.suspend(() =>
3210
+ S.Struct({
3211
+ max_quota: S.optional(S.Number),
3212
+ size: S.optional(S.Number),
3213
+ }),
3214
+ ).annotate({ identifier: "OfferStorageInfo" });
3215
+ case 22:
3216
+ return S.suspend(() =>
3217
+ S.Struct({
3218
+ bound_to_ip: S.optional(S.Boolean),
3219
+ }),
3220
+ ).annotate({ identifier: "OfferLicenseInfo" });
3221
+ case 23:
3222
+ return S.suspend(() =>
3223
+ S.Struct({
3224
+ onetime_fees: S.optional(S.suspend(() => __S(1245, __c38, 29))),
3225
+ }),
3226
+ ).annotate({ identifier: "OfferFailoverIpInfo" });
3227
+ case 24:
3228
+ return S.suspend(() =>
3229
+ S.Struct({
3230
+ unit: S.optional(S.String),
3231
+ value: S.optional(S.Number),
3232
+ free_setup_fees: S.optional(S.Boolean),
3233
+ duration: S.optional(S.String),
3234
+ discounted_price: S.optional(__S(1216, __c38, 0)),
3235
+ }),
3236
+ ).annotate({ identifier: "OfferCommitment" });
3237
+ case 25:
3238
+ return S.Array(__S(1240, __c38, 24));
3239
+ case 26:
3240
+ return S.Array(S.String);
3241
+ case 27:
3242
+ return S.suspend(() =>
3243
+ S.Struct({
3244
+ id: S.optional(S.Number),
3245
+ name: S.optional(S.String),
3246
+ type: S.optional(S.String),
3247
+ version: S.optional(S.String),
3248
+ arch: S.optional(S.String),
3249
+ allow_custom_partitioning: S.optional(S.Boolean),
3250
+ allow_ssh_keys: S.optional(S.Boolean),
3251
+ requires_user: S.optional(S.Boolean),
3252
+ requires_admin_password: S.optional(S.Boolean),
3253
+ requires_panel_password: S.optional(S.Boolean),
3254
+ allowed_filesystems: S.optional(__S(1242, __c38, 26)),
3255
+ requires_license: S.optional(S.Boolean),
3256
+ license_offers: S.optional(__S(1227, __c38, 11)),
3257
+ max_partitions: S.optional(S.NullOr(S.Number)),
3258
+ display_name: S.optional(S.String),
3259
+ password_regex: S.optional(S.String),
3260
+ panel_password_regex: S.optional(S.NullOr(S.String)),
3261
+ requires_valid_hostname: S.optional(S.NullOr(S.Boolean)),
3262
+ hostname_regex: S.optional(S.NullOr(S.String)),
3263
+ hostname_max_length: S.optional(S.Number),
3264
+ released_at: S.optional(S.NullOr(S.String)),
3265
+ beta: S.optional(S.String),
3266
+ description: S.optional(S.String),
3267
+ official_website: S.optional(S.String),
3268
+ }),
3269
+ ).annotate({ identifier: "OS" });
3270
+ case 28:
3271
+ return S.Array(__S(1243, __c38, 27));
3272
+ case 29:
3273
+ return S.suspend(() =>
3274
+ S.Struct({
3275
+ id: S.optional(S.Number),
3276
+ name: S.optional(S.String),
3277
+ catalog: S.optional(S.String),
3278
+ payment_frequency: S.optional(S.String),
3279
+ pricing: S.optional(__S(1216, __c38, 0)),
3280
+ offer_id: S.optional(S.NullOr(S.Number)),
3281
+ server_info: S.optional(S.NullOr(__S(1231, __c38, 15))),
3282
+ service_level_info: S.optional(S.NullOr(__S(1232, __c38, 16))),
3283
+ rpn_info: S.optional(S.NullOr(__S(1233, __c38, 17))),
3284
+ san_info: S.optional(S.NullOr(__S(1234, __c38, 18))),
3285
+ antidos_info: S.optional(S.NullOr(__S(1235, __c38, 19))),
3286
+ backup_info: S.optional(S.NullOr(__S(1236, __c38, 20))),
3287
+ usb_storage_info: S.optional(S.NullOr(__S(1237, __c38, 21))),
3288
+ storage_info: S.optional(S.NullOr(__S(1237, __c38, 21))),
3289
+ license_info: S.optional(S.NullOr(__S(1238, __c38, 22))),
3290
+ failover_ip_info: S.optional(S.NullOr(__S(1239, __c38, 23))),
3291
+ failover_block_info: S.optional(S.NullOr(__S(1239, __c38, 23))),
3292
+ bandwidth_info: S.optional(S.NullOr(__S(1233, __c38, 17))),
3293
+ commitments: S.optional(__S(1241, __c38, 25)),
3294
+ available_os: S.optional(__S(1244, __c38, 28)),
3295
+ }),
3296
+ ).annotate({ identifier: "Offer" });
3297
+ }
3298
+ }
3299
+ function __c39(j: number): any {
3300
+ switch (j) {
3301
+ case 0:
3302
+ return S.suspend(() =>
3303
+ S.Struct({
3304
+ id: S.optional(S.Number),
3305
+ resource_id: S.optional(S.NullOr(S.Number)),
3306
+ provisioning_status: S.optional(S.String),
3307
+ offer: S.optional(__S(1245, __c38, 29)),
3308
+ created_at: S.optional(S.NullOr(S.String)),
3309
+ delivered_at: S.optional(S.NullOr(S.String)),
3310
+ terminated_at: S.optional(S.NullOr(S.String)),
3311
+ expires_at: S.optional(S.NullOr(S.String)),
3312
+ type: S.optional(S.String),
3313
+ }),
3314
+ ).annotate({ identifier: "Service" });
3315
+ }
3316
+ }
3317
+ function __c40(j: number): any {
3318
+ switch (j) {
3319
+ case 0:
3320
+ return S.suspend(() =>
3321
+ S.Struct({
3322
+ zone: S.optional(S.String.pipe(T.Label())),
3323
+ page: S.optional(S.Number.pipe(T.Query())),
3324
+ page_size: S.optional(S.Number.pipe(T.Query())),
3325
+ order_by: S.optional(S.String.pipe(T.Query())),
3326
+ project_id: S.optional(S.String.pipe(T.Query())),
3327
+ }).pipe(
3328
+ T.Http({
3329
+ method: "GET",
3330
+ uri: "/dedibox/v1/zones/{zone}/services",
3331
+ code: 200,
3332
+ baseUrl: "https://api.scaleway.com",
3333
+ }),
3334
+ ),
3335
+ ).annotate({ identifier: "ListServicesRequest" });
3336
+ case 1:
3337
+ return S.suspend(() =>
3338
+ S.Struct({
3339
+ total_count: S.optional(S.Number),
3340
+ services: __S(1152, __c36, 0),
3341
+ }),
3342
+ ).annotate({ identifier: "ListServicesResponse" });
3343
+ }
3344
+ }
3345
+ function __c41(j: number): any {
3346
+ switch (j) {
3347
+ case 0:
3348
+ return S.suspend(() =>
3349
+ S.Struct({
3350
+ zone: S.optional(S.String.pipe(T.Label())),
3351
+ server_id: S.Number.pipe(T.Label()),
3352
+ page: S.optional(S.Number.pipe(T.Query())),
3353
+ page_size: S.optional(S.Number.pipe(T.Query())),
3354
+ }).pipe(
3355
+ T.Http({
3356
+ method: "GET",
3357
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/subscribable-server-options",
3358
+ code: 200,
3359
+ baseUrl: "https://api.scaleway.com",
3360
+ }),
3361
+ ),
3362
+ ).annotate({ identifier: "ListSubscribableServerOptionsRequest" });
3363
+ case 1:
3364
+ return S.suspend(() =>
3365
+ S.Struct({
3366
+ total_count: S.optional(S.Number),
3367
+ server_options: __S(960, __c30, 0),
3368
+ }),
3369
+ ).annotate({ identifier: "ListSubscribableServerOptionsResponse" });
3370
+ }
3371
+ }
3372
+ function __c42(j: number): any {
3373
+ switch (j) {
3374
+ case 0:
3375
+ return S.suspend(() =>
3376
+ S.Struct({
3377
+ zone: S.optional(S.String.pipe(T.Label())),
3378
+ server_id: S.Number.pipe(T.Label()),
3379
+ }).pipe(
3380
+ T.Http({
3381
+ method: "POST",
3382
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/reboot",
3383
+ code: 200,
3384
+ baseUrl: "https://api.scaleway.com",
3385
+ }),
3386
+ ),
3387
+ ).annotate({ identifier: "RebootServerRequest" });
3388
+ }
3389
+ }
3390
+ function __c43(j: number): any {
3391
+ switch (j) {
3392
+ case 0:
3393
+ return S.suspend(() =>
3394
+ S.Struct({
3395
+ zone: S.optional(S.String.pipe(T.Label())),
3396
+ server_id: S.Number.pipe(T.Label()),
3397
+ ip: S.optional(S.String),
3398
+ }).pipe(
3399
+ T.Http({
3400
+ method: "POST",
3401
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/bmc-access",
3402
+ code: 200,
3403
+ baseUrl: "https://api.scaleway.com",
3404
+ }),
3405
+ ),
3406
+ ).annotate({ identifier: "StartBMCAccessRequest" });
3407
+ }
3408
+ }
3409
+ function __c44(j: number): any {
3410
+ switch (j) {
3411
+ case 0:
3412
+ return S.suspend(() =>
3413
+ S.Struct({
3414
+ zone: S.optional(S.String.pipe(T.Label())),
3415
+ server_id: S.Number.pipe(T.Label()),
3416
+ os_id: S.optional(S.Number),
3417
+ }).pipe(
3418
+ T.Http({
3419
+ method: "POST",
3420
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/rescue",
3421
+ code: 200,
3422
+ baseUrl: "https://api.scaleway.com",
3423
+ }),
3424
+ ),
3425
+ ).annotate({ identifier: "StartRescueRequest" });
3426
+ }
3427
+ }
3428
+ function __c45(j: number): any {
3429
+ switch (j) {
3430
+ case 0:
3431
+ return S.suspend(() =>
3432
+ S.Struct({
3433
+ zone: S.optional(S.String.pipe(T.Label())),
3434
+ server_id: S.Number.pipe(T.Label()),
3435
+ }).pipe(
3436
+ T.Http({
3437
+ method: "POST",
3438
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/start",
3439
+ code: 200,
3440
+ baseUrl: "https://api.scaleway.com",
3441
+ }),
3442
+ ),
3443
+ ).annotate({ identifier: "StartServerRequest" });
3444
+ }
3445
+ }
3446
+ function __c46(j: number): any {
3447
+ switch (j) {
3448
+ case 0:
3449
+ return S.suspend(() =>
3450
+ S.Struct({
3451
+ zone: S.optional(S.String.pipe(T.Label())),
3452
+ server_id: S.Number.pipe(T.Label()),
3453
+ }).pipe(
3454
+ T.Http({
3455
+ method: "DELETE",
3456
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/bmc-access",
3457
+ code: 200,
3458
+ baseUrl: "https://api.scaleway.com",
3459
+ }),
3460
+ ),
3461
+ ).annotate({ identifier: "StopBMCAccessRequest" });
3462
+ }
3463
+ }
3464
+ function __c47(j: number): any {
3465
+ switch (j) {
3466
+ case 0:
3467
+ return S.suspend(() =>
3468
+ S.Struct({
3469
+ zone: S.optional(S.String.pipe(T.Label())),
3470
+ server_id: S.Number.pipe(T.Label()),
3471
+ }).pipe(
3472
+ T.Http({
3473
+ method: "DELETE",
3474
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/rescue",
3475
+ code: 200,
3476
+ baseUrl: "https://api.scaleway.com",
3477
+ }),
3478
+ ),
3479
+ ).annotate({ identifier: "StopRescueRequest" });
3480
+ }
3481
+ }
3482
+ function __c48(j: number): any {
3483
+ switch (j) {
3484
+ case 0:
3485
+ return S.suspend(() =>
3486
+ S.Struct({
3487
+ zone: S.optional(S.String.pipe(T.Label())),
3488
+ server_id: S.Number.pipe(T.Label()),
3489
+ }).pipe(
3490
+ T.Http({
3491
+ method: "POST",
3492
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/stop",
3493
+ code: 200,
3494
+ baseUrl: "https://api.scaleway.com",
3495
+ }),
3496
+ ),
3497
+ ).annotate({ identifier: "StopServerRequest" });
3498
+ }
3499
+ }
3500
+ function __c49(j: number): any {
3501
+ switch (j) {
3502
+ case 0:
3503
+ return S.suspend(() =>
3504
+ S.Struct({
3505
+ zone: S.optional(S.String.pipe(T.Label())),
3506
+ server_id: S.Number.pipe(T.Label()),
3507
+ option_id: S.optional(S.Number),
3508
+ }).pipe(
3509
+ T.Http({
3510
+ method: "PATCH",
3511
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/subscribe-server-option",
3512
+ code: 200,
3513
+ baseUrl: "https://api.scaleway.com",
3514
+ }),
3515
+ ),
3516
+ ).annotate({ identifier: "SubscribeServerOptionRequest" });
3517
+ }
3518
+ }
3519
+ function __c50(j: number): any {
3520
+ switch (j) {
3521
+ case 0:
3522
+ return S.suspend(() =>
3523
+ S.Struct({
3524
+ zone: S.optional(S.String.pipe(T.Label())),
3525
+ offer_id: S.optional(S.Number),
3526
+ server_option_ids: __S(64, __c2, 0),
3527
+ project_id: S.optional(S.String),
3528
+ datacenter_name: S.optional(S.NullOr(S.String)),
3529
+ }).pipe(
3530
+ T.Http({
3531
+ method: "POST",
3532
+ uri: "/dedibox/v1/zones/{zone}/servers",
3533
+ code: 200,
3534
+ baseUrl: "https://api.scaleway.com",
3535
+ }),
3536
+ ),
3537
+ ).annotate({ identifier: "CreateServerRequest" });
3538
+ }
3539
+ }
3540
+ function __c51(j: number): any {
3541
+ switch (j) {
3542
+ case 0:
3543
+ return S.suspend(() =>
3544
+ S.Struct({
3545
+ zone: S.optional(S.String.pipe(T.Label())),
3546
+ server_id: S.Number.pipe(T.Label()),
3547
+ options_ids: __S(64, __c2, 0),
3548
+ }).pipe(
3549
+ T.Http({
3550
+ method: "POST",
3551
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/subscribe-storage-options",
3552
+ code: 200,
3553
+ baseUrl: "https://api.scaleway.com",
3554
+ }),
3555
+ ),
3556
+ ).annotate({ identifier: "SubscribeStorageOptionsRequest" });
3557
+ case 1:
3558
+ return S.suspend(() =>
3559
+ S.Struct({
3560
+ services: S.optional(__S(1152, __c36, 0)),
3561
+ }),
3562
+ ).annotate({ identifier: "SubscribeStorageOptionsResponse" });
3563
+ }
3564
+ }
3565
+ function __c52(j: number): any {
3566
+ switch (j) {
3567
+ case 0:
3568
+ return S.suspend(() =>
3569
+ S.Struct({
3570
+ raid_level: S.optional(S.String),
3571
+ disk_ids: __S(64, __c2, 0),
3572
+ }),
3573
+ ).annotate({ identifier: "UpdatableRaidArray" });
3574
+ case 1:
3575
+ return S.Array(__S(1664, __c52, 0));
3576
+ case 2:
3577
+ return S.suspend(() =>
3578
+ S.Struct({
3579
+ zone: S.optional(S.String.pipe(T.Label())),
3580
+ server_id: S.Number.pipe(T.Label()),
3581
+ raid_arrays: __S(1665, __c52, 1),
3582
+ }).pipe(
3583
+ T.Http({
3584
+ method: "POST",
3585
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/update-raid",
3586
+ code: 200,
3587
+ baseUrl: "https://api.scaleway.com",
3588
+ }),
3589
+ ),
3590
+ ).annotate({ identifier: "UpdateRaidRequest" });
3591
+ }
3592
+ }
3593
+ function __c53(j: number): any {
3594
+ switch (j) {
3595
+ case 0:
3596
+ return S.suspend(() =>
3597
+ S.Struct({
3598
+ zone: S.optional(S.String.pipe(T.Label())),
3599
+ ip_id: S.Number.pipe(T.Label()),
3600
+ reverse: S.optional(S.String),
3601
+ }).pipe(
3602
+ T.Http({
3603
+ method: "PATCH",
3604
+ uri: "/dedibox/v1/zones/{zone}/reverses/{ip_id}",
3605
+ code: 200,
3606
+ baseUrl: "https://api.scaleway.com",
3607
+ }),
3608
+ ),
3609
+ ).annotate({ identifier: "UpdateReverseRequest" });
3610
+ }
3611
+ }
3612
+ function __c54(j: number): any {
3613
+ switch (j) {
3614
+ case 0:
3615
+ return S.suspend(() =>
3616
+ S.Struct({
3617
+ zone: S.optional(S.String.pipe(T.Label())),
3618
+ server_id: S.Number.pipe(T.Label()),
3619
+ hostname: S.optional(S.NullOr(S.String)),
3620
+ enable_ipv6: S.optional(S.NullOr(S.Boolean)),
3621
+ }).pipe(
3622
+ T.Http({
3623
+ method: "PATCH",
3624
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}",
3625
+ code: 200,
3626
+ baseUrl: "https://api.scaleway.com",
3627
+ }),
3628
+ ),
3629
+ ).annotate({ identifier: "UpdateServerRequest" });
3630
+ }
3631
+ }
3632
+ function __c55(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
+ server_id: S.Number.pipe(T.Label()),
3639
+ password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
3640
+ autologin: S.optional(S.NullOr(S.Boolean)),
3641
+ acl_enabled: S.optional(S.NullOr(S.Boolean)),
3642
+ }).pipe(
3643
+ T.Http({
3644
+ method: "PATCH",
3645
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/backups",
3646
+ code: 200,
3647
+ baseUrl: "https://api.scaleway.com",
3648
+ }),
3649
+ ),
3650
+ ).annotate({ identifier: "UpdateServerBackupRequest" });
3651
+ }
3652
+ }
3653
+ function __c56(j: number): any {
3654
+ switch (j) {
3655
+ case 0:
3656
+ return S.suspend(() =>
3657
+ S.Struct({
3658
+ zone: S.optional(S.String.pipe(T.Label())),
3659
+ server_id: S.Number.pipe(T.Label()),
3660
+ tags: S.optional(__S(1184, __c37, 0)),
3661
+ }).pipe(
3662
+ T.Http({
3663
+ method: "POST",
3664
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}/tags",
3665
+ code: 200,
3666
+ baseUrl: "https://api.scaleway.com",
3667
+ }),
3668
+ ),
3669
+ ).annotate({ identifier: "UpdateServerTagsRequest" });
3670
+ }
3671
+ }
3672
+ function __c57(j: number): any {
3673
+ switch (j) {
3674
+ case 0:
3675
+ return S.suspend(() =>
3676
+ S.Struct({
3677
+ zone: S.optional(S.String.pipe(T.Label())),
3678
+ ip_id: S.Number.pipe(T.Label()),
3679
+ }).pipe(
3680
+ T.Http({
3681
+ method: "DELETE",
3682
+ uri: "/dedibox/v1/zones/{zone}/failover-ips/{ip_id}",
3683
+ code: 200,
3684
+ baseUrl: "https://api.scaleway.com",
3685
+ }),
3686
+ ),
3687
+ ).annotate({ identifier: "DeleteFailoverIPRequest" });
3688
+ }
3689
+ }
3690
+ function __c58(j: number): any {
3691
+ switch (j) {
3692
+ case 0:
3693
+ return S.suspend(() =>
3694
+ S.Struct({
3695
+ zone: S.optional(S.String.pipe(T.Label())),
3696
+ server_id: S.Number.pipe(T.Label()),
3697
+ }).pipe(
3698
+ T.Http({
3699
+ method: "DELETE",
3700
+ uri: "/dedibox/v1/zones/{zone}/servers/{server_id}",
3701
+ code: 200,
3702
+ baseUrl: "https://api.scaleway.com",
3703
+ }),
3704
+ ),
3705
+ ).annotate({ identifier: "DeleteServerRequest" });
3706
+ }
3707
+ }
3708
+ function __c59(j: number): any {
3709
+ switch (j) {
3710
+ case 0:
3711
+ return S.suspend(() =>
3712
+ S.Struct({
3713
+ zone: S.optional(S.String.pipe(T.Label())),
3714
+ service_id: S.Number.pipe(T.Label()),
3715
+ }).pipe(
3716
+ T.Http({
3717
+ method: "DELETE",
3718
+ uri: "/dedibox/v1/zones/{zone}/services/{service_id}",
3719
+ code: 200,
3720
+ baseUrl: "https://api.scaleway.com",
3721
+ }),
3722
+ ),
3723
+ ).annotate({ identifier: "DeleteServiceRequest" });
3724
+ }
3725
+ }
3726
+ function __c60(j: number): any {
3727
+ switch (j) {
3728
+ case 0:
3729
+ return S.suspend(() =>
3730
+ S.Struct({
3731
+ zone: S.optional(S.String.pipe(T.Label())),
3732
+ ip_id: S.Number.pipe(T.Label()),
3733
+ }).pipe(
3734
+ T.Http({
3735
+ method: "POST",
3736
+ uri: "/dedibox/v1/zones/{zone}/failover-ips/{ip_id}/detach-from-mac-address",
3737
+ code: 200,
3738
+ baseUrl: "https://api.scaleway.com",
3739
+ }),
3740
+ ),
3741
+ ).annotate({ identifier: "DetachFailoverIPFromMacAddressRequest" });
3742
+ }
3743
+ }
3744
+ function __c61(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
+ fips_ids: __S(64, __c2, 0),
3751
+ }).pipe(
3752
+ T.Http({
3753
+ method: "POST",
3754
+ uri: "/dedibox/v1/zones/{zone}/failover-ips/detach",
3755
+ code: 200,
3756
+ baseUrl: "https://api.scaleway.com",
3757
+ }),
3758
+ ),
3759
+ ).annotate({ identifier: "DetachFailoverIPsRequest" });
3760
+ }
3761
+ }
3762
+ // Schema table: entry i is schema j of builder f, made on first reach.
3763
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
3764
+ return (__s[i] ??= __L.at(f, j));
3765
+ }