@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,1185 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
+ import { ScalewayServiceErrors } from "../errors.ts";
6
+ import { paginateByTotalCount } from "../pagination.ts";
7
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
8
+ import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
12
+
13
+ export type { ScalewayOpError, ScalewayOpContext };
14
+
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "scaleway-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Scaleway",
23
+ service: "DediboxRpnSanV1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ /** An array of IP ID. */
29
+ export type AddIpRequestIpIdsList = Array<number>;
30
+ export interface AddIpRequest {
31
+ /** RPN SAN ID. */
32
+ rpn_san_id: number;
33
+ /** An array of IP ID. */
34
+ ip_ids: AddIpRequestIpIdsList;
35
+ }
36
+ export interface AddIpResponse {}
37
+ export interface CreateRpnSanRequest {
38
+ /** Offer ID. */
39
+ offer_id: number;
40
+ /** Your project ID. */
41
+ project_id?: string | undefined;
42
+ }
43
+ export type ServiceProvisioningStatus =
44
+ | "unknown"
45
+ | "delivering"
46
+ | "ready"
47
+ | "error"
48
+ | "expiring"
49
+ | "expired";
50
+ export type OfferCatalog =
51
+ | "all"
52
+ | "default"
53
+ | "beta"
54
+ | "reseller"
55
+ | "premium"
56
+ | "volume"
57
+ | "admin"
58
+ | "inactive";
59
+ export type OfferPaymentFrequency = "monthly" | "oneshot";
60
+ export interface GoogleTypeMoney {
61
+ currency_code?: string | undefined;
62
+ units?: number | undefined;
63
+ nanos?: number | undefined;
64
+ }
65
+ export type OfferServerInfoStock = "empty" | "low" | "available";
66
+ export type ServerDiskType = "sata" | "ssd" | "sas" | "sshd" | "usb" | "nvme";
67
+ export interface Disk {
68
+ /** Capacity of the disk. */
69
+ capacity?: number | undefined;
70
+ /** Type of the disk. */
71
+ type?: ServerDiskType | undefined;
72
+ }
73
+ export type OfferServerInfoDisksList = Array<Disk>;
74
+ export interface CPU {
75
+ /** Name of CPU. */
76
+ name?: string | undefined;
77
+ /** Number of cores of the CPU. */
78
+ core_count?: number | undefined;
79
+ /** Number of threads of the CPU. */
80
+ thread_count?: number | undefined;
81
+ /** Frequency of the CPU. */
82
+ frequency?: number | undefined;
83
+ /** Bench of the CPU. */
84
+ bench?: number | undefined;
85
+ }
86
+ export type OfferServerInfoCpusList = Array<CPU>;
87
+ export type MemoryType = "ddr2" | "ddr3" | "ddr4" | "ddr5";
88
+ export interface Memory {
89
+ /** Capacity of the memory. */
90
+ capacity?: number | undefined;
91
+ /** Type of the memory. */
92
+ type?: MemoryType | undefined;
93
+ /** Frequency of the memory. */
94
+ frequency?: number | undefined;
95
+ /** True if the memory is an error-correcting code memory. */
96
+ is_ecc?: boolean | undefined;
97
+ }
98
+ export type OfferServerInfoMemoriesList = Array<Memory>;
99
+ export interface PersistentMemory {
100
+ /** Capacity of the persistent memory. */
101
+ capacity?: number | undefined;
102
+ /** Frequency of the persistent memory. */
103
+ frequency?: number | undefined;
104
+ /** Model of the persistent memory. */
105
+ model?: string | undefined;
106
+ }
107
+ export type OfferServerInfoPersistentMemoriesList = Array<PersistentMemory>;
108
+ /** RAID level of the RAID controller. */
109
+ export type RaidControllerRaidLevelList = Array<string>;
110
+ export interface RaidController {
111
+ /** Model of the RAID controller. */
112
+ model?: string | undefined;
113
+ /** RAID level of the RAID controller. */
114
+ raid_level?: RaidControllerRaidLevelList | undefined;
115
+ }
116
+ export type OfferServerInfoRaidControllersList = Array<RaidController>;
117
+ export type OfferServerInfoAvailableOptionsList = Array<Offer>;
118
+ export type OfferServerInfoStockByDatacenterMap = {
119
+ [key: string]: OfferServerInfoStock | undefined;
120
+ };
121
+ export interface OfferServerInfoAvailability {
122
+ stock?: OfferServerInfoStock | undefined;
123
+ quantity?: number | undefined;
124
+ }
125
+ export type OfferServerInfoAvailabilityByDatacenterMap = {
126
+ [key: string]: OfferServerInfoAvailability | undefined;
127
+ };
128
+ export interface OfferServerInfo {
129
+ bandwidth?: number | undefined;
130
+ stock?: OfferServerInfoStock | undefined;
131
+ commercial_range?: string | undefined;
132
+ disks?: OfferServerInfoDisksList | undefined;
133
+ cpus?: OfferServerInfoCpusList | undefined;
134
+ memories?: OfferServerInfoMemoriesList | undefined;
135
+ persistent_memories?: OfferServerInfoPersistentMemoriesList | undefined;
136
+ raid_controllers?: OfferServerInfoRaidControllersList | undefined;
137
+ available_options?: OfferServerInfoAvailableOptionsList | undefined;
138
+ rpn_version?: number | undefined;
139
+ connectivity?: number | undefined;
140
+ onetime_fees?: Offer | undefined;
141
+ stock_by_datacenter?: OfferServerInfoStockByDatacenterMap | undefined;
142
+ availability_by_datacenter?: OfferServerInfoAvailabilityByDatacenterMap | undefined;
143
+ rpn_speed?: number | undefined;
144
+ }
145
+ export type OfferServiceLevelInfoAvailableOptionsList = Array<Offer>;
146
+ export interface OfferServiceLevelInfo {
147
+ support_ticket?: boolean | undefined;
148
+ support_phone?: boolean | undefined;
149
+ sales_support?: boolean | undefined;
150
+ git?: string | undefined;
151
+ sla?: number | undefined;
152
+ priority_support?: boolean | undefined;
153
+ high_rpn_bandwidth?: boolean | undefined;
154
+ customization?: boolean | undefined;
155
+ antidos?: boolean | undefined;
156
+ extra_failover_quota?: number | undefined;
157
+ available_options?: OfferServiceLevelInfoAvailableOptionsList | undefined;
158
+ }
159
+ export interface OfferRPNInfo {
160
+ speed?: number | undefined;
161
+ }
162
+ export type OfferSANInfoType = "hdd" | "ssd";
163
+ export interface OfferSANInfo {
164
+ /** SAN size (in bytes). */
165
+ size?: number | undefined;
166
+ /** High availability offer. */
167
+ ha?: boolean | undefined;
168
+ /** Type of SAN device (hdd / ssd). */
169
+ device_type?: OfferSANInfoType | undefined;
170
+ }
171
+ export type OfferAntiDosInfoType = "minimal" | "preventive" | "curative";
172
+ export interface OfferAntiDosInfo {
173
+ type?: OfferAntiDosInfoType | undefined;
174
+ }
175
+ export interface OfferBackupInfo {
176
+ size?: number | undefined;
177
+ }
178
+ export interface OfferStorageInfo {
179
+ max_quota?: number | undefined;
180
+ size?: number | undefined;
181
+ }
182
+ export interface OfferLicenseInfo {
183
+ bound_to_ip?: boolean | undefined;
184
+ }
185
+ export interface OfferFailoverIpInfo {
186
+ onetime_fees?: Offer | undefined;
187
+ }
188
+ export type OfferFailoverBlockInfo = OfferFailoverIpInfo;
189
+ export type OfferBandwidthInfo = OfferRPNInfo;
190
+ export interface OfferCommitment {
191
+ /** Unit used for discount. */
192
+ unit?: string | undefined;
193
+ /** Value of the discount. */
194
+ value?: number | undefined;
195
+ /** Is it free setup fees. */
196
+ free_setup_fees?: boolean | undefined;
197
+ /** Commitment's required duration. */
198
+ duration?: string | undefined;
199
+ /** Discounted price of the commitment. */
200
+ discounted_price?: GoogleTypeMoney | undefined;
201
+ }
202
+ /** Commitment info if it is a commitment offer. */
203
+ export type OfferCommitmentsList = Array<OfferCommitment>;
204
+ export type OSType =
205
+ | "unknown_type"
206
+ | "server"
207
+ | "virtu"
208
+ | "panel"
209
+ | "desktop"
210
+ | "custom"
211
+ | "rescue";
212
+ export type OSArch = "unknown_arch" | "amd64" | "x86" | "arm" | "arm64";
213
+ export type PartitionFileSystem =
214
+ | "unknown"
215
+ | "efi"
216
+ | "swap"
217
+ | "ext4"
218
+ | "ext3"
219
+ | "ext2"
220
+ | "xfs"
221
+ | "ntfs"
222
+ | "fat32"
223
+ | "ufs";
224
+ /** True if the OS allow file systems. */
225
+ export type OSAllowedFilesystemsList = Array<PartitionFileSystem>;
226
+ /** License offers available with the OS. */
227
+ export type OSLicenseOffersList = Array<Offer>;
228
+ export interface OS {
229
+ /** ID of the OS. */
230
+ id?: number | undefined;
231
+ /** Name of the OS. */
232
+ name?: string | undefined;
233
+ /** Type of the OS. */
234
+ type?: OSType | undefined;
235
+ /** Version of the OS. */
236
+ version?: string | undefined;
237
+ /** Architecture of the OS. */
238
+ arch?: OSArch | undefined;
239
+ /** True if the OS allow custom partitioning. */
240
+ allow_custom_partitioning?: boolean | undefined;
241
+ /** True if the OS allow SSH Keys. */
242
+ allow_ssh_keys?: boolean | undefined;
243
+ /** True if the OS requires user. */
244
+ requires_user?: boolean | undefined;
245
+ /** True if the OS requires admin password. */
246
+ requires_admin_password?: boolean | undefined;
247
+ /** True if the OS requires panel password. */
248
+ requires_panel_password?: boolean | undefined;
249
+ /** True if the OS allow file systems. */
250
+ allowed_filesystems?: OSAllowedFilesystemsList | undefined;
251
+ /** True if the OS requires license. */
252
+ requires_license?: boolean | undefined;
253
+ /** License offers available with the OS. */
254
+ license_offers?: OSLicenseOffersList | undefined;
255
+ /** Maximum number of partitions which can be created. */
256
+ max_partitions?: number | undefined;
257
+ /** Display name of the OS. */
258
+ display_name?: string | undefined;
259
+ /** Regex used to validate the installation passwords. */
260
+ password_regex?: string | undefined;
261
+ /** Regex used to validate the panel installation password. */
262
+ panel_password_regex?: string | undefined;
263
+ /** If both requires_valid_hostname & hostname_regex are set, it means that at least one of the criteria must be valid. */
264
+ requires_valid_hostname?: boolean | undefined;
265
+ /** If both requires_valid_hostname & hostname_regex are set, it means that at least one of the criteria must be valid. */
266
+ hostname_regex?: string | undefined;
267
+ /** Hostname max length. */
268
+ hostname_max_length?: number | undefined;
269
+ /** OS release date. */
270
+ released_at?: string | undefined;
271
+ /** Is it a beta OS. */
272
+ beta?: string | undefined;
273
+ /** Description of the OS. */
274
+ description?: string | undefined;
275
+ /** URL to OS official website. */
276
+ official_website?: string | undefined;
277
+ }
278
+ /** Available OS info if it is a available OS offer. */
279
+ export type OfferAvailableOsList = Array<OS>;
280
+ export interface Offer {
281
+ /** ID of the offer (aka product.id). */
282
+ id?: number | undefined;
283
+ /** Name of the offer. */
284
+ name?: string | undefined;
285
+ /** Catalog of the offer. */
286
+ catalog?: OfferCatalog | undefined;
287
+ /** Payment frequency of the offer. */
288
+ payment_frequency?: OfferPaymentFrequency | undefined;
289
+ /** Price of the offer. */
290
+ pricing?: GoogleTypeMoney | undefined;
291
+ /** Original Dedibox ID of the offer. */
292
+ offer_id?: number | undefined;
293
+ /** Server info if it is a server offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
294
+ server_info?: OfferServerInfo | undefined;
295
+ /** Service level info if it is a service level offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
296
+ service_level_info?: OfferServiceLevelInfo | undefined;
297
+ /** RPN info if it is a RPN offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
298
+ rpn_info?: OfferRPNInfo | undefined;
299
+ /** SAN info if it is a SAN offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
300
+ san_info?: OfferSANInfo | undefined;
301
+ /** AntiDOS info if it is a antiDOS offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
302
+ antidos_info?: OfferAntiDosInfo | undefined;
303
+ /** Backup info if it is a backup offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
304
+ backup_info?: OfferBackupInfo | undefined;
305
+ /** USB storage info if it is a USB storage offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
306
+ usb_storage_info?: OfferStorageInfo | undefined;
307
+ /** Storage info if it is a storage offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
308
+ storage_info?: OfferStorageInfo | undefined;
309
+ /** License info if it is a license offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
310
+ license_info?: OfferLicenseInfo | undefined;
311
+ /** Failover IP info if it is a failover IP offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
312
+ failover_ip_info?: OfferFailoverIpInfo | undefined;
313
+ /** Failover block info if it is a failover block offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
314
+ failover_block_info?: OfferFailoverIpInfo | undefined;
315
+ /** Bandwidth info if it is a bandwidth offer. One-of ('offerInfo'): at most one of 'serverInfo', 'serviceLevelInfo', 'rpnInfo', 'sanInfo', 'antidosInfo', 'backupInfo', 'usbStorageInfo', 'storageInfo', 'licenseInfo', 'failoverIpInfo', 'failoverBlockInfo', 'bandwidthInfo' could be set. */
316
+ bandwidth_info?: OfferRPNInfo | undefined;
317
+ /** Commitment info if it is a commitment offer. */
318
+ commitments?: OfferCommitmentsList | undefined;
319
+ /** Available OS info if it is a available OS offer. */
320
+ available_os?: OfferAvailableOsList | undefined;
321
+ }
322
+ export type ServiceType = "unknown_type" | "service" | "order";
323
+ export interface Service {
324
+ /** ID of the service. */
325
+ id?: number | undefined;
326
+ /** Resource ID of the service. */
327
+ resource_id?: number | undefined;
328
+ /** Provisioning status of the service. */
329
+ provisioning_status?: ServiceProvisioningStatus | undefined;
330
+ /** Offer of the service. */
331
+ offer?: Offer | undefined;
332
+ /** Creation date of the service. */
333
+ created_at?: string | undefined;
334
+ /** Delivery date of the service. */
335
+ delivered_at?: string | undefined;
336
+ /** Terminatation date of the service. */
337
+ terminated_at?: string | undefined;
338
+ /** Expiration date of the service. */
339
+ expires_at?: string | undefined;
340
+ /** Service type, either order or service. */
341
+ type?: ServiceType | undefined;
342
+ }
343
+ export interface DeleteRpnSanRequest {
344
+ /** RPN SAN ID. */
345
+ rpn_san_id: number;
346
+ }
347
+ export interface DeleteRpnSanResponse {}
348
+ export interface GetRpnSanRequest {
349
+ /** RPN SAN ID. */
350
+ rpn_san_id: number;
351
+ }
352
+ export type RpnSanStatus = "unknown_status" | "creating" | "active" | "deleting" | "maintenance";
353
+ export interface RpnSan {
354
+ /** RPN SAN ID. */
355
+ id?: number | undefined;
356
+ /** Datacenter location. */
357
+ datacenter_name?: string | undefined;
358
+ /** Organization ID. */
359
+ organization_id?: string | undefined;
360
+ /** Project ID. */
361
+ project_id?: string | undefined;
362
+ /** RPN SAN server hostname. */
363
+ server_hostname?: string | undefined;
364
+ /** IQN suffix. */
365
+ iqn_suffix?: string | undefined;
366
+ /** Date of creation of the RPN SAN. */
367
+ created_at?: string | undefined;
368
+ /** Offer ID. */
369
+ offer_id?: number | undefined;
370
+ /** Offer description. */
371
+ offer_name?: string | undefined;
372
+ /** Status. */
373
+ status?: RpnSanStatus | undefined;
374
+ /** RPN SAN storage size. */
375
+ storage_size?: number | undefined;
376
+ iqn?: string | undefined;
377
+ offer?: Offer | undefined;
378
+ /** True if the SAN is compatible with the RPNv1 technology. */
379
+ rpnv1_compatible?: boolean | undefined;
380
+ /** True if the offer supports the RPNv1 implicitly, false if it must to be added to a group to support RPNv1. */
381
+ rpnv1_implicit?: boolean | undefined;
382
+ /** RPN SAN delivery date. */
383
+ delivered_at?: string | undefined;
384
+ /** RPN SAN termination date. */
385
+ terminated_at?: string | undefined;
386
+ /** RPN SAN expiration date. */
387
+ expires_at?: string | undefined;
388
+ }
389
+ export type RpnSanIpType = "unknown" | "server_ip" | "rpnv2_subnet";
390
+ export interface ListAvailableIpsRequest {
391
+ /** RPN SAN ID. */
392
+ rpn_san_id: number;
393
+ /** Filter by IP type (server | rpnv2_subnet). */
394
+ type?: RpnSanIpType | (string & {}) | undefined;
395
+ }
396
+ export interface RpnSanIpServer {
397
+ id?: number | undefined;
398
+ hostname?: string | undefined;
399
+ datacenter_name?: string | undefined;
400
+ }
401
+ export interface RpnSanIpRpnV2Group {
402
+ id?: number | undefined;
403
+ name?: string | undefined;
404
+ }
405
+ export type IPVersion = "ipv4" | "ipv6";
406
+ export type IPSemantic =
407
+ | "unknown"
408
+ | "proxad"
409
+ | "ext"
410
+ | "public"
411
+ | "private"
412
+ | "ipmi"
413
+ | "adm"
414
+ | "redirect"
415
+ | "migration";
416
+ export type IPStatus = "unknown_status" | "ready" | "busy" | "locked";
417
+ export interface IP {
418
+ /** ID of the IP. */
419
+ ip_id?: number | undefined;
420
+ /** Address of the IP. */
421
+ address?: string | undefined;
422
+ /** Reverse IP value. */
423
+ reverse?: string | undefined;
424
+ /** Version of IP (v4 or v6). */
425
+ version?: IPVersion | undefined;
426
+ /** Classless InterDomain Routing notation of the IP. */
427
+ cidr?: number | undefined;
428
+ /** Network mask of IP. */
429
+ netmask?: string | undefined;
430
+ /** Semantic of IP. */
431
+ semantic?: IPSemantic | undefined;
432
+ /** Gateway of IP. */
433
+ gateway?: string | undefined;
434
+ /** Status of the IP. */
435
+ status?: IPStatus | undefined;
436
+ }
437
+ export interface RpnSanIp {
438
+ /** Basic server information behind the IP. One-of ('rpnSanIp'): at most one of 'server', 'rpnv2Group' could be set. */
439
+ server?: RpnSanIpServer | undefined;
440
+ /** Basic RPNv2 group information behind the IP. One-of ('rpnSanIp'): at most one of 'server', 'rpnv2Group' could be set. */
441
+ rpnv2_group?: RpnSanIpRpnV2Group | undefined;
442
+ /** An IP object. */
443
+ ip?: IP | undefined;
444
+ /** IP type (server | rpnv2_subnet). */
445
+ type?: RpnSanIpType | undefined;
446
+ }
447
+ /** List of authorized IPs. */
448
+ export type ListIpsResponseIpsList = Array<RpnSanIp>;
449
+ export interface ListIpsResponse {
450
+ /** Total count of authorized IPs. */
451
+ total_count?: number | undefined;
452
+ /** List of authorized IPs. */
453
+ ips?: ListIpsResponseIpsList | undefined;
454
+ }
455
+ export interface ListIpsRequest {
456
+ /** RPN SAN ID. */
457
+ rpn_san_id: number;
458
+ /** Filter by IP type (server | rpnv2_subnet). */
459
+ type?: RpnSanIpType | (string & {}) | undefined;
460
+ }
461
+ export type ListRpnSansRequestOrderBy = "created_at_asc" | "created_at_desc";
462
+ export interface ListRpnSansRequest {
463
+ /** Order of the RPN SANs. */
464
+ order_by?: ListRpnSansRequestOrderBy | (string & {}) | undefined;
465
+ /** Page number. */
466
+ page?: number | undefined;
467
+ /** Number of RPN SANs per page. */
468
+ page_size?: number | undefined;
469
+ /** Filter RPN SANs by project ID. */
470
+ project_id?: string | undefined;
471
+ }
472
+ export interface RpnSanSummary {
473
+ /** RPN SAN ID. */
474
+ id?: number | undefined;
475
+ /** Datacenter location. */
476
+ datacenter_name?: string | undefined;
477
+ /** Organization ID. */
478
+ organization_id?: string | undefined;
479
+ /** Project ID. */
480
+ project_id?: string | undefined;
481
+ /** RPN SAN server hostname. */
482
+ server_hostname?: string | undefined;
483
+ /** IQN suffix. */
484
+ iqn_suffix?: string | undefined;
485
+ /** Date of creation of the RPN SAN. */
486
+ created_at?: string | undefined;
487
+ /** Offer ID. */
488
+ offer_id?: number | undefined;
489
+ /** Offer description. */
490
+ offer_name?: string | undefined;
491
+ /** Status. */
492
+ status?: RpnSanStatus | undefined;
493
+ /** RPN SAN storage size. */
494
+ storage_size?: number | undefined;
495
+ /** True if the SAN is compatible with the RPNv1 technology. */
496
+ rpnv1_compatible?: boolean | undefined;
497
+ /** True if the offer supports the RPNv1 implicitly, false if it must to be added to a group to support RPNv1. */
498
+ rpnv1_implicit?: boolean | undefined;
499
+ /** RPN SAN delivery date. */
500
+ delivered_at?: string | undefined;
501
+ /** RPN SAN termination date. */
502
+ terminated_at?: string | undefined;
503
+ /** RPN SAN expiration date. */
504
+ expires_at?: string | undefined;
505
+ }
506
+ /** List of RPN SANs that match filters. */
507
+ export type ListRpnSansResponseRpnSansList = Array<RpnSanSummary>;
508
+ export interface ListRpnSansResponse {
509
+ /** Total count of matching RPN SANs. */
510
+ total_count?: number | undefined;
511
+ /** List of RPN SANs that match filters. */
512
+ rpn_sans: ListRpnSansResponseRpnSansList;
513
+ }
514
+ /** An array of IP ID. */
515
+ export type RemoveIpRequestIpIdsList = Array<number>;
516
+ export interface RemoveIpRequest {
517
+ /** RPN SAN ID. */
518
+ rpn_san_id: number;
519
+ /** An array of IP ID. */
520
+ ip_ids: RemoveIpRequestIpIdsList;
521
+ }
522
+ export interface RemoveIpResponse {}
523
+ export type AddIpError = ScalewayOpError;
524
+ /** Derived from scaleway-sdk-js (`RpnSanAPI.addIp`): Scaleway publishes no OpenAPI document for this route. */
525
+ export const addIp: API.OperationMethod<
526
+ AddIpRequest,
527
+ AddIpResponse,
528
+ AddIpError,
529
+ ScalewayOpContext
530
+ > = /*@__PURE__*/ API.make(() => ({
531
+ input: __S(0, __c0, 0) as any as S.Schema<AddIpRequest>,
532
+ output: __S(32, __c1, 0) as any as S.Schema<AddIpResponse>,
533
+ errors: [],
534
+ serviceErrors: ScalewayServiceErrors,
535
+ protocol: ScalewayProtocol,
536
+ retry: Retry.Retry,
537
+ telemetry: TELEMETRY,
538
+ span: "AddIp",
539
+ }));
540
+
541
+ export type CreateRpnSanError = ScalewayOpError;
542
+ /** Derived from scaleway-sdk-js (`RpnSanAPI.createRpnSan`): Scaleway publishes no OpenAPI document for this route. */
543
+ export const createRpnSan: API.OperationMethod<
544
+ CreateRpnSanRequest,
545
+ Service,
546
+ CreateRpnSanError,
547
+ ScalewayOpContext
548
+ > = /*@__PURE__*/ API.make(() => ({
549
+ input: __S(96, __c3, 0) as any as S.Schema<CreateRpnSanRequest>,
550
+ output: __S(97, __c3, 1) as any as S.Schema<Service>,
551
+ errors: [],
552
+ serviceErrors: ScalewayServiceErrors,
553
+ protocol: ScalewayProtocol,
554
+ retry: Retry.Retry,
555
+ telemetry: TELEMETRY,
556
+ span: "CreateRpnSan",
557
+ }));
558
+
559
+ export type DeleteRpnSanError = ScalewayOpError;
560
+ /** Derived from scaleway-sdk-js (`RpnSanAPI.deleteRpnSan`): Scaleway publishes no OpenAPI document for this route. */
561
+ export const deleteRpnSan: API.OperationMethod<
562
+ DeleteRpnSanRequest,
563
+ DeleteRpnSanResponse,
564
+ DeleteRpnSanError,
565
+ ScalewayOpContext
566
+ > = /*@__PURE__*/ API.make(() => ({
567
+ input: __S(160, __c5, 0) as any as S.Schema<DeleteRpnSanRequest>,
568
+ output: __S(32, __c1, 0) as any as S.Schema<DeleteRpnSanResponse>,
569
+ errors: [],
570
+ serviceErrors: ScalewayServiceErrors,
571
+ protocol: ScalewayProtocol,
572
+ retry: Retry.Retry,
573
+ telemetry: TELEMETRY,
574
+ span: "DeleteRpnSan",
575
+ }));
576
+
577
+ export type GetRpnSanError = ScalewayOpError;
578
+ /** Derived from scaleway-sdk-js (`RpnSanAPI.getRpnSan`): Scaleway publishes no OpenAPI document for this route. */
579
+ export const getRpnSan: API.OperationMethod<
580
+ GetRpnSanRequest,
581
+ RpnSan,
582
+ GetRpnSanError,
583
+ ScalewayOpContext
584
+ > = /*@__PURE__*/ API.make(() => ({
585
+ input: __S(192, __c6, 0) as any as S.Schema<GetRpnSanRequest>,
586
+ output: __S(193, __c6, 1) as any as S.Schema<RpnSan>,
587
+ errors: [],
588
+ serviceErrors: ScalewayServiceErrors,
589
+ protocol: ScalewayProtocol,
590
+ retry: Retry.Retry,
591
+ telemetry: TELEMETRY,
592
+ span: "GetRpnSan",
593
+ }));
594
+
595
+ export type ListAvailableIpsError = ScalewayOpError;
596
+ /** Derived from scaleway-sdk-js (`RpnSanAPI.listAvailableIps`): Scaleway publishes no OpenAPI document for this route. */
597
+ export const listAvailableIps: API.OperationMethod<
598
+ ListAvailableIpsRequest,
599
+ ListIpsResponse,
600
+ ListAvailableIpsError,
601
+ ScalewayOpContext
602
+ > = /*@__PURE__*/ API.make(() => ({
603
+ input: __S(224, __c7, 0) as any as S.Schema<ListAvailableIpsRequest>,
604
+ output: __S(261, __c8, 5) as any as S.Schema<ListIpsResponse>,
605
+ errors: [],
606
+ serviceErrors: ScalewayServiceErrors,
607
+ protocol: ScalewayProtocol,
608
+ retry: Retry.Retry,
609
+ telemetry: TELEMETRY,
610
+ span: "ListAvailableIps",
611
+ }));
612
+
613
+ export type ListIpsError = ScalewayOpError;
614
+ /** Derived from scaleway-sdk-js (`RpnSanAPI.listIps`): Scaleway publishes no OpenAPI document for this route. */
615
+ export const listIps: API.OperationMethod<
616
+ ListIpsRequest,
617
+ ListIpsResponse,
618
+ ListIpsError,
619
+ ScalewayOpContext
620
+ > = /*@__PURE__*/ API.make(() => ({
621
+ input: __S(288, __c9, 0) as any as S.Schema<ListIpsRequest>,
622
+ output: __S(261, __c8, 5) as any as S.Schema<ListIpsResponse>,
623
+ errors: [],
624
+ serviceErrors: ScalewayServiceErrors,
625
+ protocol: ScalewayProtocol,
626
+ retry: Retry.Retry,
627
+ telemetry: TELEMETRY,
628
+ span: "ListIps",
629
+ }));
630
+
631
+ export type ListRpnSansError = ScalewayOpError;
632
+ /** Derived from scaleway-sdk-js (`RpnSanAPI.listRpnSans`): Scaleway publishes no OpenAPI document for this route. */
633
+ export const listRpnSans: API.PaginatedOperationMethod<
634
+ ListRpnSansRequest,
635
+ ListRpnSansResponse,
636
+ ListRpnSansError,
637
+ ScalewayOpContext,
638
+ RpnSanSummary
639
+ > = /*@__PURE__*/ API.makePaginated(
640
+ () => ({
641
+ input: __S(320, __c10, 0) as any as S.Schema<ListRpnSansRequest>,
642
+ output: __S(323, __c10, 3) as any as S.Schema<ListRpnSansResponse>,
643
+ errors: [],
644
+ serviceErrors: ScalewayServiceErrors,
645
+ protocol: ScalewayProtocol,
646
+ retry: Retry.Retry,
647
+ telemetry: TELEMETRY,
648
+ span: "ListRpnSans",
649
+ pagination: {
650
+ mode: "page",
651
+ inputToken: "page",
652
+ outputToken: "total_count",
653
+ items: "rpn_sans",
654
+ pageSize: "page_size",
655
+ } as const,
656
+ }),
657
+ paginateByTotalCount,
658
+ ) as any;
659
+
660
+ export type RemoveIpError = ScalewayOpError;
661
+ /** Derived from scaleway-sdk-js (`RpnSanAPI.removeIp`): Scaleway publishes no OpenAPI document for this route. */
662
+ export const removeIp: API.OperationMethod<
663
+ RemoveIpRequest,
664
+ RemoveIpResponse,
665
+ RemoveIpError,
666
+ ScalewayOpContext
667
+ > = /*@__PURE__*/ API.make(() => ({
668
+ input: __S(352, __c11, 0) as any as S.Schema<RemoveIpRequest>,
669
+ output: __S(32, __c1, 0) as any as S.Schema<RemoveIpResponse>,
670
+ errors: [],
671
+ serviceErrors: ScalewayServiceErrors,
672
+ protocol: ScalewayProtocol,
673
+ retry: Retry.Retry,
674
+ telemetry: TELEMETRY,
675
+ span: "RemoveIp",
676
+ }));
677
+
678
+ // Schema builders: each runs one schema initializer, on that schema's first use.
679
+ function __c0(j: number): any {
680
+ switch (j) {
681
+ case 0:
682
+ return S.suspend(() =>
683
+ S.Struct({
684
+ rpn_san_id: S.Number.pipe(T.Label()),
685
+ ip_ids: __S(64, __c2, 0),
686
+ }).pipe(
687
+ T.Http({
688
+ method: "POST",
689
+ uri: "/dedibox/v1/rpn-sans/{rpn_san_id}/ips",
690
+ code: 200,
691
+ baseUrl: "https://api.scaleway.com",
692
+ }),
693
+ ),
694
+ ).annotate({ identifier: "AddIpRequest" });
695
+ }
696
+ }
697
+ function __c1(j: number): any {
698
+ switch (j) {
699
+ case 0:
700
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "AddIpResponse" });
701
+ }
702
+ }
703
+ function __c2(j: number): any {
704
+ switch (j) {
705
+ case 0:
706
+ return S.Array(S.Number);
707
+ }
708
+ }
709
+ function __c3(j: number): any {
710
+ switch (j) {
711
+ case 0:
712
+ return S.suspend(() =>
713
+ S.Struct({
714
+ offer_id: S.Number,
715
+ project_id: S.optional(S.String),
716
+ }).pipe(
717
+ T.Http({
718
+ method: "POST",
719
+ uri: "/dedibox/v1/rpn-sans",
720
+ code: 200,
721
+ baseUrl: "https://api.scaleway.com",
722
+ }),
723
+ ),
724
+ ).annotate({ identifier: "CreateRpnSanRequest" });
725
+ case 1:
726
+ return S.suspend(() =>
727
+ S.Struct({
728
+ id: S.optional(S.Number),
729
+ resource_id: S.optional(S.Number),
730
+ provisioning_status: S.optional(S.String),
731
+ offer: S.optional(__S(158, __c4, 30)),
732
+ created_at: S.optional(S.String),
733
+ delivered_at: S.optional(S.String),
734
+ terminated_at: S.optional(S.String),
735
+ expires_at: S.optional(S.String),
736
+ type: S.optional(S.String),
737
+ }),
738
+ ).annotate({ identifier: "Service" });
739
+ }
740
+ }
741
+ function __c4(j: number): any {
742
+ switch (j) {
743
+ case 0:
744
+ return S.suspend(() =>
745
+ S.Struct({
746
+ currency_code: S.optional(S.String),
747
+ units: S.optional(S.Number),
748
+ nanos: S.optional(S.Number),
749
+ }),
750
+ ).annotate({ identifier: "GoogleTypeMoney" });
751
+ case 1:
752
+ return S.suspend(() =>
753
+ S.Struct({
754
+ capacity: S.optional(S.Number),
755
+ type: S.optional(S.String),
756
+ }),
757
+ ).annotate({ identifier: "Disk" });
758
+ case 2:
759
+ return S.Array(__S(129, __c4, 1));
760
+ case 3:
761
+ return S.suspend(() =>
762
+ S.Struct({
763
+ name: S.optional(S.String),
764
+ core_count: S.optional(S.Number),
765
+ thread_count: S.optional(S.Number),
766
+ frequency: S.optional(S.Number),
767
+ bench: S.optional(S.Number),
768
+ }),
769
+ ).annotate({ identifier: "CPU" });
770
+ case 4:
771
+ return S.Array(__S(131, __c4, 3));
772
+ case 5:
773
+ return S.suspend(() =>
774
+ S.Struct({
775
+ capacity: S.optional(S.Number),
776
+ type: S.optional(S.String),
777
+ frequency: S.optional(S.Number),
778
+ is_ecc: S.optional(S.Boolean),
779
+ }),
780
+ ).annotate({ identifier: "Memory" });
781
+ case 6:
782
+ return S.Array(__S(133, __c4, 5));
783
+ case 7:
784
+ return S.suspend(() =>
785
+ S.Struct({
786
+ capacity: S.optional(S.Number),
787
+ frequency: S.optional(S.Number),
788
+ model: S.optional(S.String),
789
+ }),
790
+ ).annotate({ identifier: "PersistentMemory" });
791
+ case 8:
792
+ return S.Array(__S(135, __c4, 7));
793
+ case 9:
794
+ return S.Array(S.String);
795
+ case 10:
796
+ return S.suspend(() =>
797
+ S.Struct({
798
+ model: S.optional(S.String),
799
+ raid_level: S.optional(__S(137, __c4, 9)),
800
+ }),
801
+ ).annotate({ identifier: "RaidController" });
802
+ case 11:
803
+ return S.Array(__S(138, __c4, 10));
804
+ case 12:
805
+ return S.Array(/*@__PURE__*/ S.suspend(() => __S(158, __c4, 30)));
806
+ case 13:
807
+ return S.Record(S.String, S.String);
808
+ case 14:
809
+ return S.suspend(() =>
810
+ S.Struct({
811
+ stock: S.optional(S.String),
812
+ quantity: S.optional(S.Number),
813
+ }),
814
+ ).annotate({ identifier: "OfferServerInfoAvailability" });
815
+ case 15:
816
+ return S.Record(S.String, __S(142, __c4, 14));
817
+ case 16:
818
+ return S.suspend(() =>
819
+ S.Struct({
820
+ bandwidth: S.optional(S.Number),
821
+ stock: S.optional(S.String),
822
+ commercial_range: S.optional(S.String),
823
+ disks: S.optional(__S(130, __c4, 2)),
824
+ cpus: S.optional(__S(132, __c4, 4)),
825
+ memories: S.optional(__S(134, __c4, 6)),
826
+ persistent_memories: S.optional(__S(136, __c4, 8)),
827
+ raid_controllers: S.optional(__S(139, __c4, 11)),
828
+ available_options: S.optional(__S(140, __c4, 12)),
829
+ rpn_version: S.optional(S.Number),
830
+ connectivity: S.optional(S.Number),
831
+ onetime_fees: S.optional(S.suspend(() => __S(158, __c4, 30))),
832
+ stock_by_datacenter: S.optional(__S(141, __c4, 13)),
833
+ availability_by_datacenter: S.optional(__S(143, __c4, 15)),
834
+ rpn_speed: S.optional(S.Number),
835
+ }),
836
+ ).annotate({ identifier: "OfferServerInfo" });
837
+ case 17:
838
+ return S.suspend(() =>
839
+ S.Struct({
840
+ support_ticket: S.optional(S.Boolean),
841
+ support_phone: S.optional(S.Boolean),
842
+ sales_support: S.optional(S.Boolean),
843
+ git: S.optional(S.String),
844
+ sla: S.optional(S.Number),
845
+ priority_support: S.optional(S.Boolean),
846
+ high_rpn_bandwidth: S.optional(S.Boolean),
847
+ customization: S.optional(S.Boolean),
848
+ antidos: S.optional(S.Boolean),
849
+ extra_failover_quota: S.optional(S.Number),
850
+ available_options: S.optional(__S(140, __c4, 12)),
851
+ }),
852
+ ).annotate({ identifier: "OfferServiceLevelInfo" });
853
+ case 18:
854
+ return S.suspend(() =>
855
+ S.Struct({
856
+ speed: S.optional(S.Number),
857
+ }),
858
+ ).annotate({ identifier: "OfferRPNInfo" });
859
+ case 19:
860
+ return S.suspend(() =>
861
+ S.Struct({
862
+ size: S.optional(S.Number),
863
+ ha: S.optional(S.Boolean),
864
+ device_type: S.optional(S.String),
865
+ }),
866
+ ).annotate({ identifier: "OfferSANInfo" });
867
+ case 20:
868
+ return S.suspend(() =>
869
+ S.Struct({
870
+ type: S.optional(S.String),
871
+ }),
872
+ ).annotate({ identifier: "OfferAntiDosInfo" });
873
+ case 21:
874
+ return S.suspend(() =>
875
+ S.Struct({
876
+ size: S.optional(S.Number),
877
+ }),
878
+ ).annotate({ identifier: "OfferBackupInfo" });
879
+ case 22:
880
+ return S.suspend(() =>
881
+ S.Struct({
882
+ max_quota: S.optional(S.Number),
883
+ size: S.optional(S.Number),
884
+ }),
885
+ ).annotate({ identifier: "OfferStorageInfo" });
886
+ case 23:
887
+ return S.suspend(() =>
888
+ S.Struct({
889
+ bound_to_ip: S.optional(S.Boolean),
890
+ }),
891
+ ).annotate({ identifier: "OfferLicenseInfo" });
892
+ case 24:
893
+ return S.suspend(() =>
894
+ S.Struct({
895
+ onetime_fees: S.optional(S.suspend(() => __S(158, __c4, 30))),
896
+ }),
897
+ ).annotate({ identifier: "OfferFailoverIpInfo" });
898
+ case 25:
899
+ return S.suspend(() =>
900
+ S.Struct({
901
+ unit: S.optional(S.String),
902
+ value: S.optional(S.Number),
903
+ free_setup_fees: S.optional(S.Boolean),
904
+ duration: S.optional(S.String),
905
+ discounted_price: S.optional(__S(128, __c4, 0)),
906
+ }),
907
+ ).annotate({ identifier: "OfferCommitment" });
908
+ case 26:
909
+ return S.Array(__S(153, __c4, 25));
910
+ case 27:
911
+ return S.Array(S.String);
912
+ case 28:
913
+ return S.suspend(() =>
914
+ S.Struct({
915
+ id: S.optional(S.Number),
916
+ name: S.optional(S.String),
917
+ type: S.optional(S.String),
918
+ version: S.optional(S.String),
919
+ arch: S.optional(S.String),
920
+ allow_custom_partitioning: S.optional(S.Boolean),
921
+ allow_ssh_keys: S.optional(S.Boolean),
922
+ requires_user: S.optional(S.Boolean),
923
+ requires_admin_password: S.optional(S.Boolean),
924
+ requires_panel_password: S.optional(S.Boolean),
925
+ allowed_filesystems: S.optional(__S(155, __c4, 27)),
926
+ requires_license: S.optional(S.Boolean),
927
+ license_offers: S.optional(__S(140, __c4, 12)),
928
+ max_partitions: S.optional(S.Number),
929
+ display_name: S.optional(S.String),
930
+ password_regex: S.optional(S.String),
931
+ panel_password_regex: S.optional(S.String),
932
+ requires_valid_hostname: S.optional(S.Boolean),
933
+ hostname_regex: S.optional(S.String),
934
+ hostname_max_length: S.optional(S.Number),
935
+ released_at: S.optional(S.String),
936
+ beta: S.optional(S.String),
937
+ description: S.optional(S.String),
938
+ official_website: S.optional(S.String),
939
+ }),
940
+ ).annotate({ identifier: "OS" });
941
+ case 29:
942
+ return S.Array(__S(156, __c4, 28));
943
+ case 30:
944
+ return S.suspend(() =>
945
+ S.Struct({
946
+ id: S.optional(S.Number),
947
+ name: S.optional(S.String),
948
+ catalog: S.optional(S.String),
949
+ payment_frequency: S.optional(S.String),
950
+ pricing: S.optional(__S(128, __c4, 0)),
951
+ offer_id: S.optional(S.Number),
952
+ server_info: S.optional(__S(144, __c4, 16)),
953
+ service_level_info: S.optional(__S(145, __c4, 17)),
954
+ rpn_info: S.optional(__S(146, __c4, 18)),
955
+ san_info: S.optional(__S(147, __c4, 19)),
956
+ antidos_info: S.optional(__S(148, __c4, 20)),
957
+ backup_info: S.optional(__S(149, __c4, 21)),
958
+ usb_storage_info: S.optional(__S(150, __c4, 22)),
959
+ storage_info: S.optional(__S(150, __c4, 22)),
960
+ license_info: S.optional(__S(151, __c4, 23)),
961
+ failover_ip_info: S.optional(__S(152, __c4, 24)),
962
+ failover_block_info: S.optional(__S(152, __c4, 24)),
963
+ bandwidth_info: S.optional(__S(146, __c4, 18)),
964
+ commitments: S.optional(__S(154, __c4, 26)),
965
+ available_os: S.optional(__S(157, __c4, 29)),
966
+ }),
967
+ ).annotate({ identifier: "Offer" });
968
+ }
969
+ }
970
+ function __c5(j: number): any {
971
+ switch (j) {
972
+ case 0:
973
+ return S.suspend(() =>
974
+ S.Struct({
975
+ rpn_san_id: S.Number.pipe(T.Label()),
976
+ }).pipe(
977
+ T.Http({
978
+ method: "DELETE",
979
+ uri: "/dedibox/v1/rpn-sans/{rpn_san_id}",
980
+ code: 200,
981
+ baseUrl: "https://api.scaleway.com",
982
+ }),
983
+ ),
984
+ ).annotate({ identifier: "DeleteRpnSanRequest" });
985
+ }
986
+ }
987
+ function __c6(j: number): any {
988
+ switch (j) {
989
+ case 0:
990
+ return S.suspend(() =>
991
+ S.Struct({
992
+ rpn_san_id: S.Number.pipe(T.Label()),
993
+ }).pipe(
994
+ T.Http({
995
+ method: "GET",
996
+ uri: "/dedibox/v1/rpn-sans/{rpn_san_id}",
997
+ code: 200,
998
+ baseUrl: "https://api.scaleway.com",
999
+ }),
1000
+ ),
1001
+ ).annotate({ identifier: "GetRpnSanRequest" });
1002
+ case 1:
1003
+ return S.suspend(() =>
1004
+ S.Struct({
1005
+ id: S.optional(S.Number),
1006
+ datacenter_name: S.optional(S.String),
1007
+ organization_id: S.optional(S.String),
1008
+ project_id: S.optional(S.String),
1009
+ server_hostname: S.optional(S.String),
1010
+ iqn_suffix: S.optional(S.String),
1011
+ created_at: S.optional(S.String),
1012
+ offer_id: S.optional(S.Number),
1013
+ offer_name: S.optional(S.String),
1014
+ status: S.optional(S.String),
1015
+ storage_size: S.optional(S.Number),
1016
+ iqn: S.optional(S.String),
1017
+ offer: S.optional(__S(158, __c4, 30)),
1018
+ rpnv1_compatible: S.optional(S.Boolean),
1019
+ rpnv1_implicit: S.optional(S.Boolean),
1020
+ delivered_at: S.optional(S.String),
1021
+ terminated_at: S.optional(S.String),
1022
+ expires_at: S.optional(S.String),
1023
+ }),
1024
+ ).annotate({ identifier: "RpnSan" });
1025
+ }
1026
+ }
1027
+ function __c7(j: number): any {
1028
+ switch (j) {
1029
+ case 0:
1030
+ return S.suspend(() =>
1031
+ S.Struct({
1032
+ rpn_san_id: S.Number.pipe(T.Label()),
1033
+ type: S.optional(S.String.pipe(T.Query())),
1034
+ }).pipe(
1035
+ T.Http({
1036
+ method: "GET",
1037
+ uri: "/dedibox/v1/rpn-sans/{rpn_san_id}/available-ips",
1038
+ code: 200,
1039
+ baseUrl: "https://api.scaleway.com",
1040
+ }),
1041
+ ),
1042
+ ).annotate({ identifier: "ListAvailableIpsRequest" });
1043
+ }
1044
+ }
1045
+ function __c8(j: number): any {
1046
+ switch (j) {
1047
+ case 0:
1048
+ return S.suspend(() =>
1049
+ S.Struct({
1050
+ id: S.optional(S.Number),
1051
+ hostname: S.optional(S.String),
1052
+ datacenter_name: S.optional(S.String),
1053
+ }),
1054
+ ).annotate({ identifier: "RpnSanIpServer" });
1055
+ case 1:
1056
+ return S.suspend(() =>
1057
+ S.Struct({
1058
+ id: S.optional(S.Number),
1059
+ name: S.optional(S.String),
1060
+ }),
1061
+ ).annotate({ identifier: "RpnSanIpRpnV2Group" });
1062
+ case 2:
1063
+ return S.suspend(() =>
1064
+ S.Struct({
1065
+ ip_id: S.optional(S.Number),
1066
+ address: S.optional(S.String),
1067
+ reverse: S.optional(S.String),
1068
+ version: S.optional(S.String),
1069
+ cidr: S.optional(S.Number),
1070
+ netmask: S.optional(S.String),
1071
+ semantic: S.optional(S.String),
1072
+ gateway: S.optional(S.String),
1073
+ status: S.optional(S.String),
1074
+ }),
1075
+ ).annotate({ identifier: "IP" });
1076
+ case 3:
1077
+ return S.suspend(() =>
1078
+ S.Struct({
1079
+ server: S.optional(__S(256, __c8, 0)),
1080
+ rpnv2_group: S.optional(__S(257, __c8, 1)),
1081
+ ip: S.optional(__S(258, __c8, 2)),
1082
+ type: S.optional(S.String),
1083
+ }),
1084
+ ).annotate({ identifier: "RpnSanIp" });
1085
+ case 4:
1086
+ return S.Array(__S(259, __c8, 3));
1087
+ case 5:
1088
+ return S.suspend(() =>
1089
+ S.Struct({
1090
+ total_count: S.optional(S.Number),
1091
+ ips: S.optional(__S(260, __c8, 4)),
1092
+ }),
1093
+ ).annotate({ identifier: "ListIpsResponse" });
1094
+ }
1095
+ }
1096
+ function __c9(j: number): any {
1097
+ switch (j) {
1098
+ case 0:
1099
+ return S.suspend(() =>
1100
+ S.Struct({
1101
+ rpn_san_id: S.Number.pipe(T.Label()),
1102
+ type: S.optional(S.String.pipe(T.Query())),
1103
+ }).pipe(
1104
+ T.Http({
1105
+ method: "GET",
1106
+ uri: "/dedibox/v1/rpn-sans/{rpn_san_id}/ips",
1107
+ code: 200,
1108
+ baseUrl: "https://api.scaleway.com",
1109
+ }),
1110
+ ),
1111
+ ).annotate({ identifier: "ListIpsRequest" });
1112
+ }
1113
+ }
1114
+ function __c10(j: number): any {
1115
+ switch (j) {
1116
+ case 0:
1117
+ return S.suspend(() =>
1118
+ S.Struct({
1119
+ order_by: S.optional(S.String.pipe(T.Query())),
1120
+ page: S.optional(S.Number.pipe(T.Query())),
1121
+ page_size: S.optional(S.Number.pipe(T.Query())),
1122
+ project_id: S.optional(S.String.pipe(T.Query())),
1123
+ }).pipe(
1124
+ T.Http({
1125
+ method: "GET",
1126
+ uri: "/dedibox/v1/rpn-sans",
1127
+ code: 200,
1128
+ baseUrl: "https://api.scaleway.com",
1129
+ }),
1130
+ ),
1131
+ ).annotate({ identifier: "ListRpnSansRequest" });
1132
+ case 1:
1133
+ return S.suspend(() =>
1134
+ S.Struct({
1135
+ id: S.optional(S.Number),
1136
+ datacenter_name: S.optional(S.String),
1137
+ organization_id: S.optional(S.String),
1138
+ project_id: S.optional(S.String),
1139
+ server_hostname: S.optional(S.String),
1140
+ iqn_suffix: S.optional(S.String),
1141
+ created_at: S.optional(S.String),
1142
+ offer_id: S.optional(S.Number),
1143
+ offer_name: S.optional(S.String),
1144
+ status: S.optional(S.String),
1145
+ storage_size: S.optional(S.Number),
1146
+ rpnv1_compatible: S.optional(S.Boolean),
1147
+ rpnv1_implicit: S.optional(S.Boolean),
1148
+ delivered_at: S.optional(S.String),
1149
+ terminated_at: S.optional(S.String),
1150
+ expires_at: S.optional(S.String),
1151
+ }),
1152
+ ).annotate({ identifier: "RpnSanSummary" });
1153
+ case 2:
1154
+ return S.Array(__S(321, __c10, 1));
1155
+ case 3:
1156
+ return S.suspend(() =>
1157
+ S.Struct({
1158
+ total_count: S.optional(S.Number),
1159
+ rpn_sans: __S(322, __c10, 2),
1160
+ }),
1161
+ ).annotate({ identifier: "ListRpnSansResponse" });
1162
+ }
1163
+ }
1164
+ function __c11(j: number): any {
1165
+ switch (j) {
1166
+ case 0:
1167
+ return S.suspend(() =>
1168
+ S.Struct({
1169
+ rpn_san_id: S.Number.pipe(T.Label()),
1170
+ ip_ids: __S(64, __c2, 0),
1171
+ }).pipe(
1172
+ T.Http({
1173
+ method: "DELETE",
1174
+ uri: "/dedibox/v1/rpn-sans/{rpn_san_id}/ips",
1175
+ code: 200,
1176
+ baseUrl: "https://api.scaleway.com",
1177
+ }),
1178
+ ),
1179
+ ).annotate({ identifier: "RemoveIpRequest" });
1180
+ }
1181
+ }
1182
+ // Schema table: entry i is schema j of builder f, made on first reach.
1183
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1184
+ return (__s[i] ??= __L.at(f, j));
1185
+ }