@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,804 @@
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: "FlexibleIpV1alpha1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type AttachFlexibleIPRequestZone =
29
+ | "fr-par-1"
30
+ | "fr-par-2"
31
+ | "nl-ams-1"
32
+ | "nl-ams-2"
33
+ | "pl-waw-2"
34
+ | "pl-waw-3";
35
+ /** List of flexible IP IDs to attach to a server. Multiple IDs can be provided, but note that flexible IPs must belong to the same MAC group (see details about MAC groups). */
36
+ export type AttachFlexibleIPRequestFipsIdsList = Array<string>;
37
+ export interface AttachFlexibleIPRequest {
38
+ /** The zone you want to target */
39
+ zone?: AttachFlexibleIPRequestZone | (string & {}) | undefined;
40
+ /** List of flexible IP IDs to attach to a server. Multiple IDs can be provided, but note that flexible IPs must belong to the same MAC group (see details about MAC groups). */
41
+ fips_ids: AttachFlexibleIPRequestFipsIdsList;
42
+ /** ID of the server on which to attach the flexible IPs. */
43
+ server_id: string;
44
+ }
45
+ /** Flexible IP tags. */
46
+ export type FlexibleIPTagsList = Array<string>;
47
+ export type FlexibleIPStatus =
48
+ | "unknown"
49
+ | "ready"
50
+ | "updating"
51
+ | "attached"
52
+ | "error"
53
+ | "detaching"
54
+ | "locked";
55
+ export type MACAddressType = "unknown_type" | "vmware" | "xen" | "kvm";
56
+ export type MACAddressStatus = "unknown" | "ready" | "updating" | "used" | "error" | "deleting";
57
+ export interface MACAddress {
58
+ /** ID of the flexible IP. */
59
+ id?: string | undefined;
60
+ /** MAC address of the Virtual MAC. */
61
+ mac_address?: string | undefined;
62
+ /** Type of virtual MAC. */
63
+ mac_type?: MACAddressType | undefined;
64
+ /** Status of virtual MAC. */
65
+ status?: MACAddressStatus | undefined;
66
+ /** Date on which the virtual MAC was last updated. (RFC 3339 format) */
67
+ updated_at?: string | null | undefined;
68
+ /** Date on which the virtual MAC was created. (RFC 3339 format) */
69
+ created_at?: string | null | undefined;
70
+ /** MAC address IP Availability Zone. */
71
+ zone?: string | undefined;
72
+ }
73
+ export interface FlexibleIP {
74
+ /** ID of the flexible IP. */
75
+ id?: string | undefined;
76
+ /** ID of the Organization the flexible IP is attached to. */
77
+ organization_id?: string | undefined;
78
+ /** ID of the Project the flexible IP is attached to. */
79
+ project_id?: string | undefined;
80
+ /** Flexible IP description. */
81
+ description?: string | undefined;
82
+ /** Flexible IP tags. */
83
+ tags?: FlexibleIPTagsList | undefined;
84
+ /** Date on which the flexible IP was last updated. (RFC 3339 format) */
85
+ updated_at?: string | null | undefined;
86
+ /** Date on which the flexible IP was created. (RFC 3339 format) */
87
+ created_at?: string | null | undefined;
88
+ /** Flexible IP status. - ready : flexible IP is created and ready to be attached to a server or to be associated with a virtual MAC. - updating: flexible IP is being attached to a server or a virtual MAC operation is ongoing - attached: flexible IP is attached to a server - error: a flexible IP operation resulted in an error - detaching: flexible IP is being detached from a server - locked: the resource of the flexible IP is locked. */
89
+ status?: FlexibleIPStatus | undefined;
90
+ /** IP of the flexible IP. (IP network) */
91
+ ip_address?: string | undefined;
92
+ /** MAC address of the flexible IP. */
93
+ mac_address?: MACAddress | undefined;
94
+ /** ID of the server linked to the flexible IP. */
95
+ server_id?: string | null | undefined;
96
+ /** Reverse DNS value. */
97
+ reverse?: string | undefined;
98
+ /** Availability Zone of the flexible IP. */
99
+ zone?: string | undefined;
100
+ /** The SRN of the flexible ip. */
101
+ srn?: string | undefined;
102
+ }
103
+ /** List of flexible IPs in an updating state. */
104
+ export type AttachFlexibleIPsResponseFlexibleIpsList = Array<FlexibleIP>;
105
+ export interface AttachFlexibleIPsResponse {
106
+ /** Total count of flexible IPs that are being updated. */
107
+ total_count?: number | undefined;
108
+ /** List of flexible IPs in an updating state. */
109
+ flexible_ips?: AttachFlexibleIPsResponseFlexibleIpsList | undefined;
110
+ }
111
+ export type CreateFlexibleIPRequestZone =
112
+ | "fr-par-1"
113
+ | "fr-par-2"
114
+ | "nl-ams-1"
115
+ | "nl-ams-2"
116
+ | "pl-waw-2"
117
+ | "pl-waw-3";
118
+ /** Tags to associate to the flexible IP. */
119
+ export type CreateFlexibleIPRequestTagsList = Array<string>;
120
+ export interface CreateFlexibleIPRequest {
121
+ /** The zone you want to target */
122
+ zone?: CreateFlexibleIPRequestZone | (string & {}) | undefined;
123
+ /** ID of the project to associate with the Flexible IP. */
124
+ project_id: string;
125
+ /** Flexible IP description (max. of 255 characters). */
126
+ description?: string | undefined;
127
+ /** Tags to associate to the flexible IP. */
128
+ tags?: CreateFlexibleIPRequestTagsList | undefined;
129
+ /** ID of the server to which the newly created flexible IP will be attached. */
130
+ server_id?: string | null | undefined;
131
+ /** Value of the reverse DNS. */
132
+ reverse?: string | null | undefined;
133
+ /** Defines whether the flexible IP has an IPv6 address. */
134
+ is_ipv6?: boolean | undefined;
135
+ }
136
+ export type DeleteFlexibleIPRequestZone =
137
+ | "fr-par-1"
138
+ | "fr-par-2"
139
+ | "nl-ams-1"
140
+ | "nl-ams-2"
141
+ | "pl-waw-2"
142
+ | "pl-waw-3";
143
+ export interface DeleteFlexibleIPRequest {
144
+ /** The zone you want to target */
145
+ zone?: DeleteFlexibleIPRequestZone | (string & {}) | undefined;
146
+ /** ID of the flexible IP to delete. */
147
+ fip_id: string;
148
+ }
149
+ export interface DeleteFlexibleIPResponse {}
150
+ export type DeleteMACAddrRequestZone =
151
+ | "fr-par-1"
152
+ | "fr-par-2"
153
+ | "nl-ams-1"
154
+ | "nl-ams-2"
155
+ | "pl-waw-2"
156
+ | "pl-waw-3";
157
+ export interface DeleteMACAddrRequest {
158
+ /** The zone you want to target */
159
+ zone?: DeleteMACAddrRequestZone | (string & {}) | undefined;
160
+ /** ID of the flexible IP from which to delete the virtual MAC. If the flexible IP belongs to a MAC group, the MAC will be removed from both the MAC group and flexible IP. */
161
+ fip_id: string;
162
+ }
163
+ export interface DeleteMACAddrResponse {}
164
+ export type DetachFlexibleIPRequestZone =
165
+ | "fr-par-1"
166
+ | "fr-par-2"
167
+ | "nl-ams-1"
168
+ | "nl-ams-2"
169
+ | "pl-waw-2"
170
+ | "pl-waw-3";
171
+ /** List of flexible IP IDs to detach from a server. Multiple IDs can be provided. Note that flexible IPs must belong to the same MAC group. */
172
+ export type DetachFlexibleIPRequestFipsIdsList = Array<string>;
173
+ export interface DetachFlexibleIPRequest {
174
+ /** The zone you want to target */
175
+ zone?: DetachFlexibleIPRequestZone | (string & {}) | undefined;
176
+ /** List of flexible IP IDs to detach from a server. Multiple IDs can be provided. Note that flexible IPs must belong to the same MAC group. */
177
+ fips_ids: DetachFlexibleIPRequestFipsIdsList;
178
+ }
179
+ /** List of flexible IPs in a detaching state. */
180
+ export type DetachFlexibleIPsResponseFlexibleIpsList = Array<FlexibleIP>;
181
+ export interface DetachFlexibleIPsResponse {
182
+ /** Total count of flexible IPs that are being detached. */
183
+ total_count?: number | undefined;
184
+ /** List of flexible IPs in a detaching state. */
185
+ flexible_ips?: DetachFlexibleIPsResponseFlexibleIpsList | undefined;
186
+ }
187
+ export type DuplicateMACAddrRequestZone =
188
+ | "fr-par-1"
189
+ | "fr-par-2"
190
+ | "nl-ams-1"
191
+ | "nl-ams-2"
192
+ | "pl-waw-2"
193
+ | "pl-waw-3";
194
+ export interface DuplicateMACAddrRequest {
195
+ /** The zone you want to target */
196
+ zone?: DuplicateMACAddrRequestZone | (string & {}) | undefined;
197
+ /** ID of the flexible IP on which to duplicate the virtual MAC. Note that the flexible IPs need to be attached to the same server. */
198
+ fip_id: string;
199
+ /** ID of the flexible IP to duplicate the Virtual MAC from. Note that flexible IPs need to be attached to the same server. */
200
+ duplicate_from_fip_id: string;
201
+ }
202
+ export type GenerateMACAddrRequestZone =
203
+ | "fr-par-1"
204
+ | "fr-par-2"
205
+ | "nl-ams-1"
206
+ | "nl-ams-2"
207
+ | "pl-waw-2"
208
+ | "pl-waw-3";
209
+ export interface GenerateMACAddrRequest {
210
+ /** The zone you want to target */
211
+ zone?: GenerateMACAddrRequestZone | (string & {}) | undefined;
212
+ /** ID of the flexible IP for which to generate a virtual MAC. */
213
+ fip_id: string;
214
+ /** TODO. */
215
+ mac_type: MACAddressType | (string & {});
216
+ }
217
+ export type GetFlexibleIPRequestZone =
218
+ | "fr-par-1"
219
+ | "fr-par-2"
220
+ | "nl-ams-1"
221
+ | "nl-ams-2"
222
+ | "pl-waw-2"
223
+ | "pl-waw-3";
224
+ export interface GetFlexibleIPRequest {
225
+ /** The zone you want to target */
226
+ zone?: GetFlexibleIPRequestZone | (string & {}) | undefined;
227
+ /** ID of the flexible IP. */
228
+ fip_id: string;
229
+ }
230
+ export type ListFlexibleIPsRequestZone =
231
+ | "fr-par-1"
232
+ | "fr-par-2"
233
+ | "nl-ams-1"
234
+ | "nl-ams-2"
235
+ | "pl-waw-2"
236
+ | "pl-waw-3";
237
+ export type ListFlexibleIPsRequestOrderBy = "created_at_asc" | "created_at_desc";
238
+ export type ListFlexibleIPsRequestTagsList = Array<string>;
239
+ export type ListFlexibleIPsRequestStatusList = Array<FlexibleIPStatus | (string & {})>;
240
+ export type ListFlexibleIPsRequestServerIdsList = Array<string>;
241
+ export interface ListFlexibleIPsRequest {
242
+ /** The zone you want to target */
243
+ zone?: ListFlexibleIPsRequestZone | (string & {}) | undefined;
244
+ /** Sort order of the returned flexible IPs. */
245
+ order_by?: ListFlexibleIPsRequestOrderBy | (string & {}) | undefined;
246
+ /** Page number. */
247
+ page?: number | undefined;
248
+ /** Maximum number of flexible IPs per page. */
249
+ page_size?: number | undefined;
250
+ /** Filter by tag, only flexible IPs with one or more matching tags will be returned. */
251
+ tags?: ListFlexibleIPsRequestTagsList | undefined;
252
+ /** Filter by status, only flexible IPs with this status will be returned. */
253
+ status?: ListFlexibleIPsRequestStatusList | undefined;
254
+ /** Filter by server IDs, only flexible IPs with these server IDs will be returned. */
255
+ server_ids?: ListFlexibleIPsRequestServerIdsList | undefined;
256
+ /** Filter by Organization ID, only flexible IPs from this Organization will be returned. */
257
+ organization_id?: string | undefined;
258
+ /** Filter by Project ID, only flexible IPs from this Project will be returned. */
259
+ project_id?: string | undefined;
260
+ }
261
+ /** List of all flexible IPs. */
262
+ export type ListFlexibleIPsResponseFlexibleIpsList = Array<FlexibleIP>;
263
+ export interface ListFlexibleIPsResponse {
264
+ /** Total count of matching flexible IPs. */
265
+ total_count?: number | undefined;
266
+ /** List of all flexible IPs. */
267
+ flexible_ips: ListFlexibleIPsResponseFlexibleIpsList;
268
+ }
269
+ export type MoveMACAddrRequestZone =
270
+ | "fr-par-1"
271
+ | "fr-par-2"
272
+ | "nl-ams-1"
273
+ | "nl-ams-2"
274
+ | "pl-waw-2"
275
+ | "pl-waw-3";
276
+ export interface MoveMACAddrRequest {
277
+ /** The zone you want to target */
278
+ zone?: MoveMACAddrRequestZone | (string & {}) | undefined;
279
+ fip_id: string;
280
+ dst_fip_id?: string | undefined;
281
+ }
282
+ export type UpdateFlexibleIPRequestZone =
283
+ | "fr-par-1"
284
+ | "fr-par-2"
285
+ | "nl-ams-1"
286
+ | "nl-ams-2"
287
+ | "pl-waw-2"
288
+ | "pl-waw-3";
289
+ /** Tags associated with the flexible IP. */
290
+ export type UpdateFlexibleIPRequestTagsList = Array<unknown>;
291
+ export interface UpdateFlexibleIPRequest {
292
+ /** The zone you want to target */
293
+ zone?: UpdateFlexibleIPRequestZone | (string & {}) | undefined;
294
+ /** ID of the flexible IP to update. */
295
+ fip_id: string;
296
+ /** Flexible IP description (max. 255 characters). */
297
+ description?: string | null | undefined;
298
+ /** Tags associated with the flexible IP. */
299
+ tags?: UpdateFlexibleIPRequestTagsList | null | undefined;
300
+ /** Value of the reverse DNS. */
301
+ reverse?: string | null | undefined;
302
+ }
303
+ export type AttachFlexibleIPError = ScalewayOpError;
304
+ /** Attach an existing flexible IP to a server Attach an existing flexible IP to a specified Elastic Metal server. */
305
+ export const attachFlexibleIP: API.OperationMethod<
306
+ AttachFlexibleIPRequest,
307
+ AttachFlexibleIPsResponse,
308
+ AttachFlexibleIPError,
309
+ ScalewayOpContext
310
+ > = /*@__PURE__*/ API.make(() => ({
311
+ input: __S(0, __c0, 0) as any as S.Schema<AttachFlexibleIPRequest>,
312
+ output: __S(8, __c2, 0) as any as S.Schema<AttachFlexibleIPsResponse>,
313
+ errors: [],
314
+ serviceErrors: ScalewayServiceErrors,
315
+ protocol: ScalewayProtocol,
316
+ retry: Retry.Retry,
317
+ telemetry: TELEMETRY,
318
+ span: "AttachFlexibleIP",
319
+ }));
320
+
321
+ export type CreateFlexibleIPError = ScalewayOpError;
322
+ /** Create a new flexible IP Generate a new flexible IP within a given zone, specifying its configuration including Project ID and description. */
323
+ export const createFlexibleIP: API.OperationMethod<
324
+ CreateFlexibleIPRequest,
325
+ FlexibleIP,
326
+ CreateFlexibleIPError,
327
+ ScalewayOpContext
328
+ > = /*@__PURE__*/ API.make(() => ({
329
+ input: __S(16, __c4, 0) as any as S.Schema<CreateFlexibleIPRequest>,
330
+ output: __S(6, __c1, 2) as any as S.Schema<FlexibleIP>,
331
+ errors: [],
332
+ serviceErrors: ScalewayServiceErrors,
333
+ protocol: ScalewayProtocol,
334
+ retry: Retry.Retry,
335
+ telemetry: TELEMETRY,
336
+ span: "CreateFlexibleIP",
337
+ }));
338
+
339
+ export type DeleteFlexibleIPError = ScalewayOpError;
340
+ /** Delete an existing flexible IP Delete an existing flexible IP, specified by its ID and zone. Note that deleting a flexible IP is permanent and cannot be undone. */
341
+ export const deleteFlexibleIP: API.OperationMethod<
342
+ DeleteFlexibleIPRequest,
343
+ DeleteFlexibleIPResponse,
344
+ DeleteFlexibleIPError,
345
+ ScalewayOpContext
346
+ > = /*@__PURE__*/ API.make(() => ({
347
+ input: __S(24, __c6, 0) as any as S.Schema<DeleteFlexibleIPRequest>,
348
+ output: __S(28, __c7, 0) as any as S.Schema<DeleteFlexibleIPResponse>,
349
+ errors: [],
350
+ serviceErrors: ScalewayServiceErrors,
351
+ protocol: ScalewayProtocol,
352
+ retry: Retry.Retry,
353
+ telemetry: TELEMETRY,
354
+ span: "DeleteFlexibleIP",
355
+ }));
356
+
357
+ export type DeleteMACAddrError = ScalewayOpError;
358
+ /** Detach a given virtual MAC address from an existing flexible IP Detach a given MAC (Media Access Control) address from an existing flexible IP. */
359
+ export const deleteMACAddr: API.OperationMethod<
360
+ DeleteMACAddrRequest,
361
+ DeleteMACAddrResponse,
362
+ DeleteMACAddrError,
363
+ ScalewayOpContext
364
+ > = /*@__PURE__*/ API.make(() => ({
365
+ input: __S(32, __c8, 0) as any as S.Schema<DeleteMACAddrRequest>,
366
+ output: __S(28, __c7, 0) as any as S.Schema<DeleteMACAddrResponse>,
367
+ errors: [],
368
+ serviceErrors: ScalewayServiceErrors,
369
+ protocol: ScalewayProtocol,
370
+ retry: Retry.Retry,
371
+ telemetry: TELEMETRY,
372
+ span: "DeleteMACAddr",
373
+ }));
374
+
375
+ export type DetachFlexibleIPError = ScalewayOpError;
376
+ /** Detach an existing flexible IP from a server Detach an existing flexible IP from a specified Elastic Metal server. */
377
+ export const detachFlexibleIP: API.OperationMethod<
378
+ DetachFlexibleIPRequest,
379
+ DetachFlexibleIPsResponse,
380
+ DetachFlexibleIPError,
381
+ ScalewayOpContext
382
+ > = /*@__PURE__*/ API.make(() => ({
383
+ input: __S(36, __c9, 0) as any as S.Schema<DetachFlexibleIPRequest>,
384
+ output: __S(8, __c2, 0) as any as S.Schema<DetachFlexibleIPsResponse>,
385
+ errors: [],
386
+ serviceErrors: ScalewayServiceErrors,
387
+ protocol: ScalewayProtocol,
388
+ retry: Retry.Retry,
389
+ telemetry: TELEMETRY,
390
+ span: "DetachFlexibleIP",
391
+ }));
392
+
393
+ export type DuplicateMACAddrError = ScalewayOpError;
394
+ /** Duplicate a virtual MAC address to another flexible IP Duplicate a virtual MAC address from a given flexible IP to another flexible IP attached to the same server. */
395
+ export const duplicateMACAddr: API.OperationMethod<
396
+ DuplicateMACAddrRequest,
397
+ FlexibleIP,
398
+ DuplicateMACAddrError,
399
+ ScalewayOpContext
400
+ > = /*@__PURE__*/ API.make(() => ({
401
+ input: __S(40, __c10, 0) as any as S.Schema<DuplicateMACAddrRequest>,
402
+ output: __S(6, __c1, 2) as any as S.Schema<FlexibleIP>,
403
+ errors: [],
404
+ serviceErrors: ScalewayServiceErrors,
405
+ protocol: ScalewayProtocol,
406
+ retry: Retry.Retry,
407
+ telemetry: TELEMETRY,
408
+ span: "DuplicateMACAddr",
409
+ }));
410
+
411
+ export type GenerateMACAddrError = ScalewayOpError;
412
+ /** Generate a virtual MAC address on an existing flexible IP Generate a virtual MAC (Media Access Control) address on an existing flexible IP. */
413
+ export const generateMACAddr: API.OperationMethod<
414
+ GenerateMACAddrRequest,
415
+ FlexibleIP,
416
+ GenerateMACAddrError,
417
+ ScalewayOpContext
418
+ > = /*@__PURE__*/ API.make(() => ({
419
+ input: __S(44, __c11, 0) as any as S.Schema<GenerateMACAddrRequest>,
420
+ output: __S(6, __c1, 2) as any as S.Schema<FlexibleIP>,
421
+ errors: [],
422
+ serviceErrors: ScalewayServiceErrors,
423
+ protocol: ScalewayProtocol,
424
+ retry: Retry.Retry,
425
+ telemetry: TELEMETRY,
426
+ span: "GenerateMACAddr",
427
+ }));
428
+
429
+ export type GetFlexibleIPError = ScalewayOpError;
430
+ /** Get an existing flexible IP Retrieve information about an existing flexible IP, specified by its ID and zone. Its full details, including Project ID, description and status, are returned in the response object. */
431
+ export const getFlexibleIP: API.OperationMethod<
432
+ GetFlexibleIPRequest,
433
+ FlexibleIP,
434
+ GetFlexibleIPError,
435
+ ScalewayOpContext
436
+ > = /*@__PURE__*/ API.make(() => ({
437
+ input: __S(48, __c12, 0) as any as S.Schema<GetFlexibleIPRequest>,
438
+ output: __S(6, __c1, 2) as any as S.Schema<FlexibleIP>,
439
+ errors: [],
440
+ serviceErrors: ScalewayServiceErrors,
441
+ protocol: ScalewayProtocol,
442
+ retry: Retry.Retry,
443
+ telemetry: TELEMETRY,
444
+ span: "GetFlexibleIP",
445
+ }));
446
+
447
+ export type ListFlexibleIPsError = ScalewayOpError;
448
+ /** List flexible IPs List all flexible IPs within a given zone. */
449
+ export const listFlexibleIPs: API.PaginatedOperationMethod<
450
+ ListFlexibleIPsRequest,
451
+ ListFlexibleIPsResponse,
452
+ ListFlexibleIPsError,
453
+ ScalewayOpContext,
454
+ FlexibleIP
455
+ > = /*@__PURE__*/ API.makePaginated(
456
+ () => ({
457
+ input: __S(53, __c13, 1) as any as S.Schema<ListFlexibleIPsRequest>,
458
+ output: __S(54, __c13, 2) as any as S.Schema<ListFlexibleIPsResponse>,
459
+ errors: [],
460
+ serviceErrors: ScalewayServiceErrors,
461
+ protocol: ScalewayProtocol,
462
+ retry: Retry.Retry,
463
+ telemetry: TELEMETRY,
464
+ span: "ListFlexibleIPs",
465
+ pagination: {
466
+ mode: "page",
467
+ inputToken: "page",
468
+ outputToken: "total_count",
469
+ items: "flexible_ips",
470
+ pageSize: "page_size",
471
+ } as const,
472
+ }),
473
+ paginateByTotalCount,
474
+ ) as any;
475
+
476
+ export type MoveMACAddrError = ScalewayOpError;
477
+ /** Relocate an existing virtual MAC address to a different flexible IP Relocate a virtual MAC (Media Access Control) address from an existing flexible IP to a different flexible IP. */
478
+ export const moveMACAddr: API.OperationMethod<
479
+ MoveMACAddrRequest,
480
+ FlexibleIP,
481
+ MoveMACAddrError,
482
+ ScalewayOpContext
483
+ > = /*@__PURE__*/ API.make(() => ({
484
+ input: __S(56, __c14, 0) as any as S.Schema<MoveMACAddrRequest>,
485
+ output: __S(6, __c1, 2) as any as S.Schema<FlexibleIP>,
486
+ errors: [],
487
+ serviceErrors: ScalewayServiceErrors,
488
+ protocol: ScalewayProtocol,
489
+ retry: Retry.Retry,
490
+ telemetry: TELEMETRY,
491
+ span: "MoveMACAddr",
492
+ }));
493
+
494
+ export type UpdateFlexibleIPError = ScalewayOpError;
495
+ /** Update an existing flexible IP Update the parameters of an existing flexible IP, specified by its ID and zone. These parameters include tags and description. */
496
+ export const updateFlexibleIP: API.OperationMethod<
497
+ UpdateFlexibleIPRequest,
498
+ FlexibleIP,
499
+ UpdateFlexibleIPError,
500
+ ScalewayOpContext
501
+ > = /*@__PURE__*/ API.make(() => ({
502
+ input: __S(21, __c5, 1) as any as S.Schema<UpdateFlexibleIPRequest>,
503
+ output: __S(6, __c1, 2) as any as S.Schema<FlexibleIP>,
504
+ errors: [],
505
+ serviceErrors: ScalewayServiceErrors,
506
+ protocol: ScalewayProtocol,
507
+ retry: Retry.Retry,
508
+ telemetry: TELEMETRY,
509
+ span: "UpdateFlexibleIP",
510
+ }));
511
+
512
+ // Schema builders: each runs one schema initializer, on that schema's first use.
513
+ function __c0(j: number): any {
514
+ switch (j) {
515
+ case 0:
516
+ return S.suspend(() =>
517
+ S.Struct({
518
+ zone: S.optional(S.String.pipe(T.Label())),
519
+ fips_ids: __S(4, __c1, 0),
520
+ server_id: S.String,
521
+ }).pipe(
522
+ T.Http({
523
+ method: "POST",
524
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/attach",
525
+ code: 200,
526
+ baseUrl: "https://api.scaleway.com",
527
+ }),
528
+ ),
529
+ ).annotate({ identifier: "AttachFlexibleIPRequest" });
530
+ }
531
+ }
532
+ function __c1(j: number): any {
533
+ switch (j) {
534
+ case 0:
535
+ return S.Array(S.String);
536
+ case 1:
537
+ return S.suspend(() =>
538
+ S.Struct({
539
+ id: S.optional(S.String),
540
+ mac_address: S.optional(S.String),
541
+ mac_type: S.optional(S.String),
542
+ status: S.optional(S.String),
543
+ updated_at: S.optional(S.NullOr(S.String)),
544
+ created_at: S.optional(S.NullOr(S.String)),
545
+ zone: S.optional(S.String),
546
+ }),
547
+ ).annotate({ identifier: "MACAddress" });
548
+ case 2:
549
+ return S.suspend(() =>
550
+ S.Struct({
551
+ id: S.optional(S.String),
552
+ organization_id: S.optional(S.String),
553
+ project_id: S.optional(S.String),
554
+ description: S.optional(S.String),
555
+ tags: S.optional(__S(4, __c1, 0)),
556
+ updated_at: S.optional(S.NullOr(S.String)),
557
+ created_at: S.optional(S.NullOr(S.String)),
558
+ status: S.optional(S.String),
559
+ ip_address: S.optional(S.String),
560
+ mac_address: S.optional(__S(5, __c1, 1)),
561
+ server_id: S.optional(S.NullOr(S.String)),
562
+ reverse: S.optional(S.String),
563
+ zone: S.optional(S.String),
564
+ srn: S.optional(S.String),
565
+ }),
566
+ ).annotate({ identifier: "FlexibleIP" });
567
+ }
568
+ }
569
+ function __c2(j: number): any {
570
+ switch (j) {
571
+ case 0:
572
+ return S.suspend(() =>
573
+ S.Struct({
574
+ total_count: S.optional(S.Number),
575
+ flexible_ips: S.optional(__S(12, __c3, 0)),
576
+ }),
577
+ ).annotate({ identifier: "AttachFlexibleIPsResponse" });
578
+ }
579
+ }
580
+ function __c3(j: number): any {
581
+ switch (j) {
582
+ case 0:
583
+ return S.Array(__S(6, __c1, 2));
584
+ }
585
+ }
586
+ function __c4(j: number): any {
587
+ switch (j) {
588
+ case 0:
589
+ return S.suspend(() =>
590
+ S.Struct({
591
+ zone: S.optional(S.String.pipe(T.Label())),
592
+ project_id: S.String,
593
+ description: S.optional(S.String),
594
+ tags: S.optional(__S(4, __c1, 0)),
595
+ server_id: S.optional(S.NullOr(S.String)),
596
+ reverse: S.optional(S.NullOr(S.String)),
597
+ is_ipv6: S.optional(S.Boolean),
598
+ }).pipe(
599
+ T.Http({
600
+ method: "POST",
601
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips",
602
+ code: 200,
603
+ baseUrl: "https://api.scaleway.com",
604
+ }),
605
+ ),
606
+ ).annotate({ identifier: "CreateFlexibleIPRequest" });
607
+ }
608
+ }
609
+ function __c5(j: number): any {
610
+ switch (j) {
611
+ case 0:
612
+ return S.Array(S.Unknown);
613
+ case 1:
614
+ return S.suspend(() =>
615
+ S.Struct({
616
+ zone: S.optional(S.String.pipe(T.Label())),
617
+ fip_id: S.String.pipe(T.Label()),
618
+ description: S.optional(S.NullOr(S.String)),
619
+ tags: S.optional(S.NullOr(__S(20, __c5, 0))),
620
+ reverse: S.optional(S.NullOr(S.String)),
621
+ }).pipe(
622
+ T.Http({
623
+ method: "PATCH",
624
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/{fip_id}",
625
+ code: 200,
626
+ baseUrl: "https://api.scaleway.com",
627
+ }),
628
+ ),
629
+ ).annotate({ identifier: "UpdateFlexibleIPRequest" });
630
+ }
631
+ }
632
+ function __c6(j: number): any {
633
+ switch (j) {
634
+ case 0:
635
+ return S.suspend(() =>
636
+ S.Struct({
637
+ zone: S.optional(S.String.pipe(T.Label())),
638
+ fip_id: S.String.pipe(T.Label()),
639
+ }).pipe(
640
+ T.Http({
641
+ method: "DELETE",
642
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/{fip_id}",
643
+ code: 200,
644
+ baseUrl: "https://api.scaleway.com",
645
+ }),
646
+ ),
647
+ ).annotate({ identifier: "DeleteFlexibleIPRequest" });
648
+ }
649
+ }
650
+ function __c7(j: number): any {
651
+ switch (j) {
652
+ case 0:
653
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteFlexibleIPResponse" });
654
+ }
655
+ }
656
+ function __c8(j: number): any {
657
+ switch (j) {
658
+ case 0:
659
+ return S.suspend(() =>
660
+ S.Struct({
661
+ zone: S.optional(S.String.pipe(T.Label())),
662
+ fip_id: S.String.pipe(T.Label()),
663
+ }).pipe(
664
+ T.Http({
665
+ method: "DELETE",
666
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/{fip_id}/mac",
667
+ code: 200,
668
+ baseUrl: "https://api.scaleway.com",
669
+ }),
670
+ ),
671
+ ).annotate({ identifier: "DeleteMACAddrRequest" });
672
+ }
673
+ }
674
+ function __c9(j: number): any {
675
+ switch (j) {
676
+ case 0:
677
+ return S.suspend(() =>
678
+ S.Struct({
679
+ zone: S.optional(S.String.pipe(T.Label())),
680
+ fips_ids: __S(4, __c1, 0),
681
+ }).pipe(
682
+ T.Http({
683
+ method: "POST",
684
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/detach",
685
+ code: 200,
686
+ baseUrl: "https://api.scaleway.com",
687
+ }),
688
+ ),
689
+ ).annotate({ identifier: "DetachFlexibleIPRequest" });
690
+ }
691
+ }
692
+ function __c10(j: number): any {
693
+ switch (j) {
694
+ case 0:
695
+ return S.suspend(() =>
696
+ S.Struct({
697
+ zone: S.optional(S.String.pipe(T.Label())),
698
+ fip_id: S.String.pipe(T.Label()),
699
+ duplicate_from_fip_id: S.String,
700
+ }).pipe(
701
+ T.Http({
702
+ method: "POST",
703
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/{fip_id}/mac/duplicate",
704
+ code: 200,
705
+ baseUrl: "https://api.scaleway.com",
706
+ }),
707
+ ),
708
+ ).annotate({ identifier: "DuplicateMACAddrRequest" });
709
+ }
710
+ }
711
+ function __c11(j: number): any {
712
+ switch (j) {
713
+ case 0:
714
+ return S.suspend(() =>
715
+ S.Struct({
716
+ zone: S.optional(S.String.pipe(T.Label())),
717
+ fip_id: S.String.pipe(T.Label()),
718
+ mac_type: S.String,
719
+ }).pipe(
720
+ T.Http({
721
+ method: "POST",
722
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/{fip_id}/mac",
723
+ code: 200,
724
+ baseUrl: "https://api.scaleway.com",
725
+ }),
726
+ ),
727
+ ).annotate({ identifier: "GenerateMACAddrRequest" });
728
+ }
729
+ }
730
+ function __c12(j: number): any {
731
+ switch (j) {
732
+ case 0:
733
+ return S.suspend(() =>
734
+ S.Struct({
735
+ zone: S.optional(S.String.pipe(T.Label())),
736
+ fip_id: S.String.pipe(T.Label()),
737
+ }).pipe(
738
+ T.Http({
739
+ method: "GET",
740
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/{fip_id}",
741
+ code: 200,
742
+ baseUrl: "https://api.scaleway.com",
743
+ }),
744
+ ),
745
+ ).annotate({ identifier: "GetFlexibleIPRequest" });
746
+ }
747
+ }
748
+ function __c13(j: number): any {
749
+ switch (j) {
750
+ case 0:
751
+ return S.Array(S.String);
752
+ case 1:
753
+ return S.suspend(() =>
754
+ S.Struct({
755
+ zone: S.optional(S.String.pipe(T.Label())),
756
+ order_by: S.optional(S.String.pipe(T.Query())),
757
+ page: S.optional(S.Number.pipe(T.Query())),
758
+ page_size: S.optional(S.Number.pipe(T.Query())),
759
+ tags: S.optional(__S(4, __c1, 0).pipe(T.Query())),
760
+ status: S.optional(__S(52, __c13, 0).pipe(T.Query())),
761
+ server_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
762
+ organization_id: S.optional(S.String.pipe(T.Query())),
763
+ project_id: S.optional(S.String.pipe(T.Query())),
764
+ }).pipe(
765
+ T.Http({
766
+ method: "GET",
767
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips",
768
+ code: 200,
769
+ baseUrl: "https://api.scaleway.com",
770
+ }),
771
+ ),
772
+ ).annotate({ identifier: "ListFlexibleIPsRequest" });
773
+ case 2:
774
+ return S.suspend(() =>
775
+ S.Struct({
776
+ total_count: S.optional(S.Number),
777
+ flexible_ips: __S(12, __c3, 0),
778
+ }),
779
+ ).annotate({ identifier: "ListFlexibleIPsResponse" });
780
+ }
781
+ }
782
+ function __c14(j: number): any {
783
+ switch (j) {
784
+ case 0:
785
+ return S.suspend(() =>
786
+ S.Struct({
787
+ zone: S.optional(S.String.pipe(T.Label())),
788
+ fip_id: S.String.pipe(T.Label()),
789
+ dst_fip_id: S.optional(S.String),
790
+ }).pipe(
791
+ T.Http({
792
+ method: "POST",
793
+ uri: "/flexible-ip/v1alpha1/zones/{zone}/fips/{fip_id}/mac/move",
794
+ code: 200,
795
+ baseUrl: "https://api.scaleway.com",
796
+ }),
797
+ ),
798
+ ).annotate({ identifier: "MoveMACAddrRequest" });
799
+ }
800
+ }
801
+ // Schema table: entry i is schema j of builder f, made on first reach.
802
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
803
+ return (__s[i] ??= __L.at(f, j));
804
+ }