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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +171 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +640 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1755 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +479 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +89 -2
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +947 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2137 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5395 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1113 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,1111 @@
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 { paginateToken } 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: "InstanceVolumeV2alpha1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type CreateSnapshotRequestZone =
29
+ | "fr-par-1"
30
+ | "fr-par-2"
31
+ | "fr-par-3"
32
+ | "nl-ams-1"
33
+ | "nl-ams-2"
34
+ | "nl-ams-3"
35
+ | "pl-waw-1"
36
+ | "pl-waw-2"
37
+ | "pl-waw-3"
38
+ | "it-mil-1";
39
+ /** Tags associated with the snapshot. */
40
+ export type CreateSnapshotRequestTagsList = Array<string>;
41
+ export interface CreateSnapshotRequest {
42
+ /** The zone you want to target */
43
+ zone?: CreateSnapshotRequestZone | (string & {}) | undefined;
44
+ /** Project ID of the snapshot. */
45
+ project_id?: string | undefined;
46
+ /** Name of the snapshot. */
47
+ name?: string | undefined;
48
+ /** Tags associated with the snapshot. */
49
+ tags?: CreateSnapshotRequestTagsList | undefined;
50
+ /** ID of the base volume. */
51
+ base_volume_id?: string | undefined;
52
+ /** Whether the snapshot should be public. */
53
+ public?: boolean | undefined;
54
+ }
55
+ /** Tags associated with the snapshot. */
56
+ export type SnapshotTagsList = Array<string>;
57
+ export type SnapshotStatus =
58
+ | "unknown_status"
59
+ | "available"
60
+ | "creating"
61
+ | "error"
62
+ | "invalid_data"
63
+ | "exporting";
64
+ export type SnapshotVolumeType = "unknown_volume_type" | "l_ssd";
65
+ export interface Snapshot {
66
+ /** Unique ID of the snapshot. */
67
+ id?: string | undefined;
68
+ /** The SRN of the snapshot. */
69
+ srn?: string | undefined;
70
+ /** Project ID of the snapshot. */
71
+ project_id?: string | undefined;
72
+ /** Name of the snapshot. */
73
+ name?: string | undefined;
74
+ /** Tags associated with the snapshot. */
75
+ tags?: SnapshotTagsList | undefined;
76
+ /** Size of the snapshot in bytes. (in bytes) */
77
+ size?: number | undefined;
78
+ /** Current status of the snapshot. */
79
+ status?: SnapshotStatus | undefined;
80
+ /** ID of the base volume. */
81
+ base_volume_id?: string | null | undefined;
82
+ /** Type of the volume. */
83
+ volume_type?: SnapshotVolumeType | undefined;
84
+ /** Creation date of the snapshot. (RFC 3339 format) */
85
+ created_at?: string | null | undefined;
86
+ /** Last update date of the snapshot. (RFC 3339 format) */
87
+ updated_at?: string | null | undefined;
88
+ /** Zone in which the snapshot is located. */
89
+ zone?: string | undefined;
90
+ /** Whether the snapshot is public. */
91
+ public?: boolean | undefined;
92
+ }
93
+ export type CreateVolumeRequestZone =
94
+ | "fr-par-1"
95
+ | "fr-par-2"
96
+ | "fr-par-3"
97
+ | "nl-ams-1"
98
+ | "nl-ams-2"
99
+ | "nl-ams-3"
100
+ | "pl-waw-1"
101
+ | "pl-waw-2"
102
+ | "pl-waw-3"
103
+ | "it-mil-1";
104
+ /** Tags associated with the volume. */
105
+ export type CreateVolumeRequestTagsList = Array<string>;
106
+ export type CreateVolumeRequestVolumeType = "unknown_volume_type" | "l_ssd" | "scratch";
107
+ export interface CreateVolumeRequest {
108
+ /** The zone you want to target */
109
+ zone?: CreateVolumeRequestZone | (string & {}) | undefined;
110
+ /** Project ID to which the volume belongs. */
111
+ project_id?: string | undefined;
112
+ /** Volume name. */
113
+ name?: string | undefined;
114
+ /** Tags associated with the volume. */
115
+ tags?: CreateVolumeRequestTagsList | undefined;
116
+ /** Volume size in bytes. (in bytes) */
117
+ size?: number | null | undefined;
118
+ /** ID of the base snapshot used for this volume. */
119
+ base_snapshot_id?: string | null | undefined;
120
+ /** Type of the volume. */
121
+ volume_type?: CreateVolumeRequestVolumeType | (string & {}) | undefined;
122
+ }
123
+ /** Tags associated with the volume. */
124
+ export type VolumeTagsList = Array<string>;
125
+ export type VolumeStatus =
126
+ | "unknown_status"
127
+ | "available"
128
+ | "snapshotting"
129
+ | "attaching"
130
+ | "detaching"
131
+ | "creating"
132
+ | "migrating"
133
+ | "error";
134
+ export type VolumeVolumeType = "unknown_volume_type" | "l_ssd" | "scratch";
135
+ export interface Volume {
136
+ /** Unique ID of the volume. */
137
+ id?: string | undefined;
138
+ /** The SRN of the volume. */
139
+ srn?: string | undefined;
140
+ /** Project ID to which the volume belongs. */
141
+ project_id?: string | undefined;
142
+ /** Volume name. */
143
+ name?: string | undefined;
144
+ /** Tags associated with the volume. */
145
+ tags?: VolumeTagsList | undefined;
146
+ /** Volume size in bytes. (in bytes) */
147
+ size?: number | undefined;
148
+ /** ID of the base snapshot used for this volume. */
149
+ base_snapshot_id?: string | null | undefined;
150
+ /** Current status of the volume. */
151
+ status?: VolumeStatus | undefined;
152
+ /** Type of the volume. */
153
+ volume_type?: VolumeVolumeType | undefined;
154
+ /** Creation date of the volume. (RFC 3339 format) */
155
+ created_at?: string | null | undefined;
156
+ /** Last update date of the volume. (RFC 3339 format) */
157
+ updated_at?: string | null | undefined;
158
+ /** ID of the Instance to which the volume is attached. */
159
+ server_id?: string | null | undefined;
160
+ /** Zone in which the volume is located. */
161
+ zone?: string | undefined;
162
+ }
163
+ export type DeleteSnapshotRequestZone =
164
+ | "fr-par-1"
165
+ | "fr-par-2"
166
+ | "fr-par-3"
167
+ | "nl-ams-1"
168
+ | "nl-ams-2"
169
+ | "nl-ams-3"
170
+ | "pl-waw-1"
171
+ | "pl-waw-2"
172
+ | "pl-waw-3"
173
+ | "it-mil-1";
174
+ export interface DeleteSnapshotRequest {
175
+ /** The zone you want to target */
176
+ zone?: DeleteSnapshotRequestZone | (string & {}) | undefined;
177
+ /** ID of the snapshot to delete. */
178
+ snapshot_id: string;
179
+ }
180
+ export interface DeleteSnapshotResponse {}
181
+ export type DeleteVolumeRequestZone =
182
+ | "fr-par-1"
183
+ | "fr-par-2"
184
+ | "fr-par-3"
185
+ | "nl-ams-1"
186
+ | "nl-ams-2"
187
+ | "nl-ams-3"
188
+ | "pl-waw-1"
189
+ | "pl-waw-2"
190
+ | "pl-waw-3"
191
+ | "it-mil-1";
192
+ export interface DeleteVolumeRequest {
193
+ /** The zone you want to target */
194
+ zone?: DeleteVolumeRequestZone | (string & {}) | undefined;
195
+ /** ID of the volume to delete. */
196
+ volume_id: string;
197
+ }
198
+ export interface DeleteVolumeResponse {}
199
+ export type ExportSnapshotToObjectStorageRequestZone =
200
+ | "fr-par-1"
201
+ | "fr-par-2"
202
+ | "fr-par-3"
203
+ | "nl-ams-1"
204
+ | "nl-ams-2"
205
+ | "nl-ams-3"
206
+ | "pl-waw-1"
207
+ | "pl-waw-2"
208
+ | "pl-waw-3"
209
+ | "it-mil-1";
210
+ export interface ExportSnapshotToObjectStorageRequest {
211
+ /** The zone you want to target */
212
+ zone?: ExportSnapshotToObjectStorageRequestZone | (string & {}) | undefined;
213
+ /** ID of the snapshot to export. */
214
+ snapshot_id: string;
215
+ /** Object Storage bucket name. */
216
+ bucket?: string | undefined;
217
+ /** Object key. */
218
+ object_key?: string | undefined;
219
+ }
220
+ export type GetSnapshotRequestZone =
221
+ | "fr-par-1"
222
+ | "fr-par-2"
223
+ | "fr-par-3"
224
+ | "nl-ams-1"
225
+ | "nl-ams-2"
226
+ | "nl-ams-3"
227
+ | "pl-waw-1"
228
+ | "pl-waw-2"
229
+ | "pl-waw-3"
230
+ | "it-mil-1";
231
+ export interface GetSnapshotRequest {
232
+ /** The zone you want to target */
233
+ zone?: GetSnapshotRequestZone | (string & {}) | undefined;
234
+ /** ID of the snapshot to retrieve. */
235
+ snapshot_id: string;
236
+ }
237
+ export type GetVolumeRequestZone =
238
+ | "fr-par-1"
239
+ | "fr-par-2"
240
+ | "fr-par-3"
241
+ | "nl-ams-1"
242
+ | "nl-ams-2"
243
+ | "nl-ams-3"
244
+ | "pl-waw-1"
245
+ | "pl-waw-2"
246
+ | "pl-waw-3"
247
+ | "it-mil-1";
248
+ export interface GetVolumeRequest {
249
+ /** The zone you want to target */
250
+ zone?: GetVolumeRequestZone | (string & {}) | undefined;
251
+ /** ID of the volume to retrieve. */
252
+ volume_id: string;
253
+ }
254
+ export type ImportSnapshotFromObjectStorageRequestZone =
255
+ | "fr-par-1"
256
+ | "fr-par-2"
257
+ | "fr-par-3"
258
+ | "nl-ams-1"
259
+ | "nl-ams-2"
260
+ | "nl-ams-3"
261
+ | "pl-waw-1"
262
+ | "pl-waw-2"
263
+ | "pl-waw-3"
264
+ | "it-mil-1";
265
+ /** Tags associated with the snapshot. */
266
+ export type ImportSnapshotFromObjectStorageRequestTagsList = Array<string>;
267
+ export interface ImportSnapshotFromObjectStorageRequest {
268
+ /** The zone you want to target */
269
+ zone?: ImportSnapshotFromObjectStorageRequestZone | (string & {}) | undefined;
270
+ /** Project ID of the snapshot. */
271
+ project_id?: string | undefined;
272
+ /** Name of the snapshot. */
273
+ name?: string | undefined;
274
+ /** Tags associated with the snapshot. */
275
+ tags?: ImportSnapshotFromObjectStorageRequestTagsList | undefined;
276
+ /** Object Storage bucket name. */
277
+ bucket?: string | undefined;
278
+ /** Object key. */
279
+ object_key?: string | undefined;
280
+ /** Size of the imported snapshot in bytes. (in bytes) */
281
+ size?: number | null | undefined;
282
+ /** Volume type of the snapshot. */
283
+ volume_type?: SnapshotVolumeType | (string & {}) | undefined;
284
+ }
285
+ export type ListSnapshotsRequestZone =
286
+ | "fr-par-1"
287
+ | "fr-par-2"
288
+ | "fr-par-3"
289
+ | "nl-ams-1"
290
+ | "nl-ams-2"
291
+ | "nl-ams-3"
292
+ | "pl-waw-1"
293
+ | "pl-waw-2"
294
+ | "pl-waw-3"
295
+ | "it-mil-1";
296
+ export type ListSnapshotsRequestOrderBy =
297
+ | "created_at_desc"
298
+ | "created_at_asc"
299
+ | "updated_at_desc"
300
+ | "updated_at_asc";
301
+ export type ListSnapshotsRequestSnapshotIdsList = Array<string>;
302
+ export type ListSnapshotsRequestTagsList = Array<string>;
303
+ export interface ListSnapshotsRequest {
304
+ /** The zone you want to target */
305
+ zone?: ListSnapshotsRequestZone | (string & {}) | undefined;
306
+ /** Token for pagination. */
307
+ page_token?: string | undefined;
308
+ /** Number of snapshots to return per page. */
309
+ page_size?: number | undefined;
310
+ /** Field to sort by. */
311
+ order_by?: ListSnapshotsRequestOrderBy | (string & {}) | undefined;
312
+ /** Filter by Project ID. */
313
+ project_id: string;
314
+ /** Filter by specific snapshot IDs. */
315
+ snapshot_ids?: ListSnapshotsRequestSnapshotIdsList | undefined;
316
+ /** Filter by name. */
317
+ name?: string | undefined;
318
+ /** Filter by tags. */
319
+ tags?: ListSnapshotsRequestTagsList | undefined;
320
+ /** Filter by base volume ID. */
321
+ base_volume_id?: string | undefined;
322
+ }
323
+ /** List of snapshots. */
324
+ export type ListSnapshotsResponseSnapshotsList = Array<Snapshot>;
325
+ export interface ListSnapshotsResponse {
326
+ /** List of snapshots. */
327
+ snapshots: ListSnapshotsResponseSnapshotsList;
328
+ /** Token for the next page. */
329
+ next_page_token?: string | null | undefined;
330
+ /** Total number of items. */
331
+ total_count?: number | undefined;
332
+ }
333
+ export type ListVolumesRequestZone =
334
+ | "fr-par-1"
335
+ | "fr-par-2"
336
+ | "fr-par-3"
337
+ | "nl-ams-1"
338
+ | "nl-ams-2"
339
+ | "nl-ams-3"
340
+ | "pl-waw-1"
341
+ | "pl-waw-2"
342
+ | "pl-waw-3"
343
+ | "it-mil-1";
344
+ export type ListVolumesRequestOrderBy =
345
+ | "created_at_desc"
346
+ | "created_at_asc"
347
+ | "updated_at_desc"
348
+ | "updated_at_asc";
349
+ export type ListVolumesRequestVolumeIdsList = Array<string>;
350
+ export type ListVolumesRequestTagsList = Array<string>;
351
+ export interface ListVolumesRequest {
352
+ /** The zone you want to target */
353
+ zone?: ListVolumesRequestZone | (string & {}) | undefined;
354
+ /** Token for pagination. */
355
+ page_token?: string | undefined;
356
+ /** Number of items to return per page. */
357
+ page_size?: number | undefined;
358
+ /** Field to order the results by. */
359
+ order_by?: ListVolumesRequestOrderBy | (string & {}) | undefined;
360
+ /** Filter by Project ID. */
361
+ project_id: string;
362
+ /** Filter by specific volume IDs. */
363
+ volume_ids?: ListVolumesRequestVolumeIdsList | undefined;
364
+ /** Filter by volume name. */
365
+ name?: string | undefined;
366
+ /** Filter by tags. */
367
+ tags?: ListVolumesRequestTagsList | undefined;
368
+ /** Filter by volume type. */
369
+ volume_type?: VolumeVolumeType | (string & {}) | undefined;
370
+ }
371
+ /** List of volumes. */
372
+ export type ListVolumesResponseVolumesList = Array<Volume>;
373
+ export interface ListVolumesResponse {
374
+ /** List of volumes. */
375
+ volumes: ListVolumesResponseVolumesList;
376
+ /** Token for the next page. */
377
+ next_page_token?: string | null | undefined;
378
+ /** Total number of items. */
379
+ total_count?: number | undefined;
380
+ }
381
+ export type ListVolumeTypesRequestZone =
382
+ | "fr-par-1"
383
+ | "fr-par-2"
384
+ | "fr-par-3"
385
+ | "nl-ams-1"
386
+ | "nl-ams-2"
387
+ | "nl-ams-3"
388
+ | "pl-waw-1"
389
+ | "pl-waw-2"
390
+ | "pl-waw-3"
391
+ | "it-mil-1";
392
+ export interface ListVolumeTypesRequest {
393
+ /** The zone you want to target */
394
+ zone?: ListVolumeTypesRequestZone | (string & {}) | undefined;
395
+ /** Token for pagination. */
396
+ page_token?: string | undefined;
397
+ /** Number of items to return per page. */
398
+ page_size?: number | undefined;
399
+ }
400
+ export interface VolumeType {
401
+ /** Name of the volume type. */
402
+ name?: VolumeVolumeType | undefined;
403
+ /** Minimum size of the volume in bytes. */
404
+ min_size?: number | undefined;
405
+ /** Maximum size of the volume in bytes. */
406
+ max_size?: number | undefined;
407
+ }
408
+ /** List of volume types. */
409
+ export type ListVolumeTypesResponseVolumeTypesList = Array<VolumeType>;
410
+ export interface ListVolumeTypesResponse {
411
+ /** List of volume types. */
412
+ volume_types: ListVolumeTypesResponseVolumeTypesList;
413
+ /** Token for the next page. */
414
+ next_page_token?: string | null | undefined;
415
+ /** Total number of items. */
416
+ total_count?: number | undefined;
417
+ }
418
+ export type UpdateSnapshotRequestZone =
419
+ | "fr-par-1"
420
+ | "fr-par-2"
421
+ | "fr-par-3"
422
+ | "nl-ams-1"
423
+ | "nl-ams-2"
424
+ | "nl-ams-3"
425
+ | "pl-waw-1"
426
+ | "pl-waw-2"
427
+ | "pl-waw-3"
428
+ | "it-mil-1";
429
+ /** New tags for the snapshot. */
430
+ export type UpdateSnapshotRequestTagsList = Array<unknown>;
431
+ export interface UpdateSnapshotRequest {
432
+ /** The zone you want to target */
433
+ zone?: UpdateSnapshotRequestZone | (string & {}) | undefined;
434
+ /** ID of the snapshot to update. */
435
+ snapshot_id: string;
436
+ /** New name for the snapshot. */
437
+ name?: string | null | undefined;
438
+ /** New tags for the snapshot. */
439
+ tags?: UpdateSnapshotRequestTagsList | null | undefined;
440
+ /** Whether the snapshot should be public. */
441
+ public?: boolean | null | undefined;
442
+ }
443
+ export type UpdateVolumeRequestZone =
444
+ | "fr-par-1"
445
+ | "fr-par-2"
446
+ | "fr-par-3"
447
+ | "nl-ams-1"
448
+ | "nl-ams-2"
449
+ | "nl-ams-3"
450
+ | "pl-waw-1"
451
+ | "pl-waw-2"
452
+ | "pl-waw-3"
453
+ | "it-mil-1";
454
+ /** New tags for the volume. */
455
+ export type UpdateVolumeRequestTagsList = Array<unknown>;
456
+ export interface UpdateVolumeRequest {
457
+ /** The zone you want to target */
458
+ zone?: UpdateVolumeRequestZone | (string & {}) | undefined;
459
+ /** ID of the volume to update. */
460
+ volume_id: string;
461
+ /** New name for the volume. */
462
+ name?: string | null | undefined;
463
+ /** New tags for the volume. */
464
+ tags?: UpdateVolumeRequestTagsList | null | undefined;
465
+ /** New size for the volume. (in bytes) */
466
+ size?: number | null | undefined;
467
+ }
468
+ export type CreateSnapshotError = ScalewayOpError;
469
+ /** Create a snapshot from a specified volume Create a snapshot from a specified l_ssd volume. */
470
+ export const createSnapshot: API.OperationMethod<
471
+ CreateSnapshotRequest,
472
+ Snapshot,
473
+ CreateSnapshotError,
474
+ ScalewayOpContext
475
+ > = /*@__PURE__*/ API.make(() => ({
476
+ input: __S(0, __c0, 0) as any as S.Schema<CreateSnapshotRequest>,
477
+ output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
478
+ errors: [],
479
+ serviceErrors: ScalewayServiceErrors,
480
+ protocol: ScalewayProtocol,
481
+ retry: Retry.Retry,
482
+ telemetry: TELEMETRY,
483
+ span: "CreateSnapshot",
484
+ }));
485
+
486
+ export type CreateVolumeError = ScalewayOpError;
487
+ /** Create a volume Create a volume of a specified type. */
488
+ export const createVolume: API.OperationMethod<
489
+ CreateVolumeRequest,
490
+ Volume,
491
+ CreateVolumeError,
492
+ ScalewayOpContext
493
+ > = /*@__PURE__*/ API.make(() => ({
494
+ input: __S(12, __c3, 0) as any as S.Schema<CreateVolumeRequest>,
495
+ output: __S(16, __c4, 0) as any as S.Schema<Volume>,
496
+ errors: [],
497
+ serviceErrors: ScalewayServiceErrors,
498
+ protocol: ScalewayProtocol,
499
+ retry: Retry.Retry,
500
+ telemetry: TELEMETRY,
501
+ span: "CreateVolume",
502
+ }));
503
+
504
+ export type DeleteSnapshotError = ScalewayOpError;
505
+ /** Delete a snapshot Delete a specified snapshot. */
506
+ export const deleteSnapshot: API.OperationMethod<
507
+ DeleteSnapshotRequest,
508
+ DeleteSnapshotResponse,
509
+ DeleteSnapshotError,
510
+ ScalewayOpContext
511
+ > = /*@__PURE__*/ API.make(() => ({
512
+ input: __S(36, __c9, 0) as any as S.Schema<DeleteSnapshotRequest>,
513
+ output: __S(40, __c10, 0) as any as S.Schema<DeleteSnapshotResponse>,
514
+ errors: [],
515
+ serviceErrors: ScalewayServiceErrors,
516
+ protocol: ScalewayProtocol,
517
+ retry: Retry.Retry,
518
+ telemetry: TELEMETRY,
519
+ span: "DeleteSnapshot",
520
+ }));
521
+
522
+ export type DeleteVolumeError = ScalewayOpError;
523
+ /** Delete a volume Delete a specified volume. */
524
+ export const deleteVolume: API.OperationMethod<
525
+ DeleteVolumeRequest,
526
+ DeleteVolumeResponse,
527
+ DeleteVolumeError,
528
+ ScalewayOpContext
529
+ > = /*@__PURE__*/ API.make(() => ({
530
+ input: __S(44, __c11, 0) as any as S.Schema<DeleteVolumeRequest>,
531
+ output: __S(40, __c10, 0) as any as S.Schema<DeleteVolumeResponse>,
532
+ errors: [],
533
+ serviceErrors: ScalewayServiceErrors,
534
+ protocol: ScalewayProtocol,
535
+ retry: Retry.Retry,
536
+ telemetry: TELEMETRY,
537
+ span: "DeleteVolume",
538
+ }));
539
+
540
+ export type ExportSnapshotToObjectStorageError = ScalewayOpError;
541
+ /** Export a snapshot to Object Storage Export a snapshot to a specified Object Storage bucket in the same region. */
542
+ export const exportSnapshotToObjectStorage: API.OperationMethod<
543
+ ExportSnapshotToObjectStorageRequest,
544
+ Snapshot,
545
+ ExportSnapshotToObjectStorageError,
546
+ ScalewayOpContext
547
+ > = /*@__PURE__*/ API.make(() => ({
548
+ input: __S(48, __c12, 0) as any as S.Schema<ExportSnapshotToObjectStorageRequest>,
549
+ output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
550
+ errors: [],
551
+ serviceErrors: ScalewayServiceErrors,
552
+ protocol: ScalewayProtocol,
553
+ retry: Retry.Retry,
554
+ telemetry: TELEMETRY,
555
+ span: "ExportSnapshotToObjectStorage",
556
+ }));
557
+
558
+ export type GetSnapshotError = ScalewayOpError;
559
+ /** Get a snapshot Get details of a specified snapshot. */
560
+ export const getSnapshot: API.OperationMethod<
561
+ GetSnapshotRequest,
562
+ Snapshot,
563
+ GetSnapshotError,
564
+ ScalewayOpContext
565
+ > = /*@__PURE__*/ API.make(() => ({
566
+ input: __S(52, __c13, 0) as any as S.Schema<GetSnapshotRequest>,
567
+ output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
568
+ errors: [],
569
+ serviceErrors: ScalewayServiceErrors,
570
+ protocol: ScalewayProtocol,
571
+ retry: Retry.Retry,
572
+ telemetry: TELEMETRY,
573
+ span: "GetSnapshot",
574
+ }));
575
+
576
+ export type GetVolumeError = ScalewayOpError;
577
+ /** Get a volume Get a specified volume. */
578
+ export const getVolume: API.OperationMethod<
579
+ GetVolumeRequest,
580
+ Volume,
581
+ GetVolumeError,
582
+ ScalewayOpContext
583
+ > = /*@__PURE__*/ API.make(() => ({
584
+ input: __S(56, __c14, 0) as any as S.Schema<GetVolumeRequest>,
585
+ output: __S(16, __c4, 0) as any as S.Schema<Volume>,
586
+ errors: [],
587
+ serviceErrors: ScalewayServiceErrors,
588
+ protocol: ScalewayProtocol,
589
+ retry: Retry.Retry,
590
+ telemetry: TELEMETRY,
591
+ span: "GetVolume",
592
+ }));
593
+
594
+ export type ImportSnapshotFromObjectStorageError = ScalewayOpError;
595
+ /** Import a snapshot from Object Storage Import a snapshot from a QCOW2 file stored in Object Storage. */
596
+ export const importSnapshotFromObjectStorage: API.OperationMethod<
597
+ ImportSnapshotFromObjectStorageRequest,
598
+ Snapshot,
599
+ ImportSnapshotFromObjectStorageError,
600
+ ScalewayOpContext
601
+ > = /*@__PURE__*/ API.make(() => ({
602
+ input: __S(60, __c15, 0) as any as S.Schema<ImportSnapshotFromObjectStorageRequest>,
603
+ output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
604
+ errors: [],
605
+ serviceErrors: ScalewayServiceErrors,
606
+ protocol: ScalewayProtocol,
607
+ retry: Retry.Retry,
608
+ telemetry: TELEMETRY,
609
+ span: "ImportSnapshotFromObjectStorage",
610
+ }));
611
+
612
+ export type ListSnapshotsError = ScalewayOpError;
613
+ /** List snapshots List all snapshots of an Organization. */
614
+ export const listSnapshots: API.PaginatedOperationMethod<
615
+ ListSnapshotsRequest,
616
+ ListSnapshotsResponse,
617
+ ListSnapshotsError,
618
+ ScalewayOpContext,
619
+ Snapshot
620
+ > = /*@__PURE__*/ API.makePaginated(
621
+ () => ({
622
+ input: __S(64, __c16, 0) as any as S.Schema<ListSnapshotsRequest>,
623
+ output: __S(66, __c16, 2) as any as S.Schema<ListSnapshotsResponse>,
624
+ errors: [],
625
+ serviceErrors: ScalewayServiceErrors,
626
+ protocol: ScalewayProtocol,
627
+ retry: Retry.Retry,
628
+ telemetry: TELEMETRY,
629
+ span: "ListSnapshots",
630
+ pagination: {
631
+ mode: "token",
632
+ inputToken: "page_token",
633
+ outputToken: "next_page_token",
634
+ items: "snapshots",
635
+ pageSize: "page_size",
636
+ } as const,
637
+ }),
638
+ paginateToken,
639
+ ) as any;
640
+
641
+ export type ListVolumesError = ScalewayOpError;
642
+ /** List volumes */
643
+ export const listVolumes: API.PaginatedOperationMethod<
644
+ ListVolumesRequest,
645
+ ListVolumesResponse,
646
+ ListVolumesError,
647
+ ScalewayOpContext,
648
+ Volume
649
+ > = /*@__PURE__*/ API.makePaginated(
650
+ () => ({
651
+ input: __S(68, __c17, 0) as any as S.Schema<ListVolumesRequest>,
652
+ output: __S(70, __c17, 2) as any as S.Schema<ListVolumesResponse>,
653
+ errors: [],
654
+ serviceErrors: ScalewayServiceErrors,
655
+ protocol: ScalewayProtocol,
656
+ retry: Retry.Retry,
657
+ telemetry: TELEMETRY,
658
+ span: "ListVolumes",
659
+ pagination: {
660
+ mode: "token",
661
+ inputToken: "page_token",
662
+ outputToken: "next_page_token",
663
+ items: "volumes",
664
+ pageSize: "page_size",
665
+ } as const,
666
+ }),
667
+ paginateToken,
668
+ ) as any;
669
+
670
+ export type ListVolumeTypesError = ScalewayOpError;
671
+ /** List volume types List all volume types and their technical details. */
672
+ export const listVolumeTypes: API.PaginatedOperationMethod<
673
+ ListVolumeTypesRequest,
674
+ ListVolumeTypesResponse,
675
+ ListVolumeTypesError,
676
+ ScalewayOpContext,
677
+ VolumeType
678
+ > = /*@__PURE__*/ API.makePaginated(
679
+ () => ({
680
+ input: __S(20, __c5, 0) as any as S.Schema<ListVolumeTypesRequest>,
681
+ output: __S(23, __c5, 3) as any as S.Schema<ListVolumeTypesResponse>,
682
+ errors: [],
683
+ serviceErrors: ScalewayServiceErrors,
684
+ protocol: ScalewayProtocol,
685
+ retry: Retry.Retry,
686
+ telemetry: TELEMETRY,
687
+ span: "ListVolumeTypes",
688
+ pagination: {
689
+ mode: "token",
690
+ inputToken: "page_token",
691
+ outputToken: "next_page_token",
692
+ items: "volume_types",
693
+ pageSize: "page_size",
694
+ } as const,
695
+ }),
696
+ paginateToken,
697
+ ) as any;
698
+
699
+ export type UpdateSnapshotError = ScalewayOpError;
700
+ /** Update a snapshot Update the properties of a snapshot. */
701
+ export const updateSnapshot: API.OperationMethod<
702
+ UpdateSnapshotRequest,
703
+ Snapshot,
704
+ UpdateSnapshotError,
705
+ ScalewayOpContext
706
+ > = /*@__PURE__*/ API.make(() => ({
707
+ input: __S(24, __c6, 0) as any as S.Schema<UpdateSnapshotRequest>,
708
+ output: __S(8, __c2, 0) as any as S.Schema<Snapshot>,
709
+ errors: [],
710
+ serviceErrors: ScalewayServiceErrors,
711
+ protocol: ScalewayProtocol,
712
+ retry: Retry.Retry,
713
+ telemetry: TELEMETRY,
714
+ span: "UpdateSnapshot",
715
+ }));
716
+
717
+ export type UpdateVolumeError = ScalewayOpError;
718
+ /** Update a volume Update the properties of a specified volume. */
719
+ export const updateVolume: API.OperationMethod<
720
+ UpdateVolumeRequest,
721
+ Volume,
722
+ UpdateVolumeError,
723
+ ScalewayOpContext
724
+ > = /*@__PURE__*/ API.make(() => ({
725
+ input: __S(32, __c8, 0) as any as S.Schema<UpdateVolumeRequest>,
726
+ output: __S(16, __c4, 0) as any as S.Schema<Volume>,
727
+ errors: [],
728
+ serviceErrors: ScalewayServiceErrors,
729
+ protocol: ScalewayProtocol,
730
+ retry: Retry.Retry,
731
+ telemetry: TELEMETRY,
732
+ span: "UpdateVolume",
733
+ }));
734
+
735
+ // Schema builders: each runs one schema initializer, on that schema's first use.
736
+ function __c0(j: number): any {
737
+ switch (j) {
738
+ case 0:
739
+ return S.suspend(() =>
740
+ S.Struct({
741
+ zone: S.optional(S.String.pipe(T.Label())),
742
+ project_id: S.optional(S.String),
743
+ name: S.optional(S.String),
744
+ tags: S.optional(__S(4, __c1, 0)),
745
+ base_volume_id: S.optional(S.String),
746
+ public: S.optional(S.Boolean),
747
+ }).pipe(
748
+ T.Http({
749
+ method: "POST",
750
+ uri: "/instance/v2alpha1/zones/{zone}/snapshots",
751
+ code: 200,
752
+ baseUrl: "https://api.scaleway.com",
753
+ }),
754
+ ),
755
+ ).annotate({ identifier: "CreateSnapshotRequest" });
756
+ }
757
+ }
758
+ function __c1(j: number): any {
759
+ switch (j) {
760
+ case 0:
761
+ return S.Array(S.String);
762
+ }
763
+ }
764
+ function __c2(j: number): any {
765
+ switch (j) {
766
+ case 0:
767
+ return S.suspend(() =>
768
+ S.Struct({
769
+ id: S.optional(S.String),
770
+ srn: S.optional(S.String),
771
+ project_id: S.optional(S.String),
772
+ name: S.optional(S.String),
773
+ tags: S.optional(__S(4, __c1, 0)),
774
+ size: S.optional(S.Number),
775
+ status: S.optional(S.String),
776
+ base_volume_id: S.optional(S.NullOr(S.String)),
777
+ volume_type: S.optional(S.String),
778
+ created_at: S.optional(S.NullOr(S.String)),
779
+ updated_at: S.optional(S.NullOr(S.String)),
780
+ zone: S.optional(S.String),
781
+ public: S.optional(S.Boolean),
782
+ }),
783
+ ).annotate({ identifier: "Snapshot" });
784
+ }
785
+ }
786
+ function __c3(j: number): any {
787
+ switch (j) {
788
+ case 0:
789
+ return S.suspend(() =>
790
+ S.Struct({
791
+ zone: S.optional(S.String.pipe(T.Label())),
792
+ project_id: S.optional(S.String),
793
+ name: S.optional(S.String),
794
+ tags: S.optional(__S(4, __c1, 0)),
795
+ size: S.optional(S.NullOr(S.Number)),
796
+ base_snapshot_id: S.optional(S.NullOr(S.String)),
797
+ volume_type: S.optional(S.String),
798
+ }).pipe(
799
+ T.Http({
800
+ method: "POST",
801
+ uri: "/instance/v2alpha1/zones/{zone}/volumes",
802
+ code: 200,
803
+ baseUrl: "https://api.scaleway.com",
804
+ }),
805
+ ),
806
+ ).annotate({ identifier: "CreateVolumeRequest" });
807
+ }
808
+ }
809
+ function __c4(j: number): any {
810
+ switch (j) {
811
+ case 0:
812
+ return S.suspend(() =>
813
+ S.Struct({
814
+ id: S.optional(S.String),
815
+ srn: S.optional(S.String),
816
+ project_id: S.optional(S.String),
817
+ name: S.optional(S.String),
818
+ tags: S.optional(__S(4, __c1, 0)),
819
+ size: S.optional(S.Number),
820
+ base_snapshot_id: S.optional(S.NullOr(S.String)),
821
+ status: S.optional(S.String),
822
+ volume_type: S.optional(S.String),
823
+ created_at: S.optional(S.NullOr(S.String)),
824
+ updated_at: S.optional(S.NullOr(S.String)),
825
+ server_id: S.optional(S.NullOr(S.String)),
826
+ zone: S.optional(S.String),
827
+ }),
828
+ ).annotate({ identifier: "Volume" });
829
+ }
830
+ }
831
+ function __c5(j: number): any {
832
+ switch (j) {
833
+ case 0:
834
+ return S.suspend(() =>
835
+ S.Struct({
836
+ zone: S.optional(S.String.pipe(T.Label())),
837
+ page_token: S.optional(S.String.pipe(T.Query())),
838
+ page_size: S.optional(S.Number.pipe(T.Query())),
839
+ }).pipe(
840
+ T.Http({
841
+ method: "GET",
842
+ uri: "/instance/v2alpha1/zones/{zone}/volume-types",
843
+ code: 200,
844
+ baseUrl: "https://api.scaleway.com",
845
+ }),
846
+ ),
847
+ ).annotate({ identifier: "ListVolumeTypesRequest" });
848
+ case 1:
849
+ return S.suspend(() =>
850
+ S.Struct({
851
+ name: S.optional(S.String),
852
+ min_size: S.optional(S.Number),
853
+ max_size: S.optional(S.Number),
854
+ }),
855
+ ).annotate({ identifier: "VolumeType" });
856
+ case 2:
857
+ return S.Array(__S(21, __c5, 1));
858
+ case 3:
859
+ return S.suspend(() =>
860
+ S.Struct({
861
+ volume_types: __S(22, __c5, 2),
862
+ next_page_token: S.optional(S.NullOr(S.String)),
863
+ total_count: S.optional(S.Number),
864
+ }),
865
+ ).annotate({ identifier: "ListVolumeTypesResponse" });
866
+ }
867
+ }
868
+ function __c6(j: number): any {
869
+ switch (j) {
870
+ case 0:
871
+ return S.suspend(() =>
872
+ S.Struct({
873
+ zone: S.optional(S.String.pipe(T.Label())),
874
+ snapshot_id: S.String.pipe(T.Label()),
875
+ name: S.optional(S.NullOr(S.String)),
876
+ tags: S.optional(S.NullOr(__S(28, __c7, 0))),
877
+ public: S.optional(S.NullOr(S.Boolean)),
878
+ }).pipe(
879
+ T.Http({
880
+ method: "PATCH",
881
+ uri: "/instance/v2alpha1/zones/{zone}/snapshots/{snapshot_id}",
882
+ code: 200,
883
+ baseUrl: "https://api.scaleway.com",
884
+ }),
885
+ ),
886
+ ).annotate({ identifier: "UpdateSnapshotRequest" });
887
+ }
888
+ }
889
+ function __c7(j: number): any {
890
+ switch (j) {
891
+ case 0:
892
+ return S.Array(S.Unknown);
893
+ }
894
+ }
895
+ function __c8(j: number): any {
896
+ switch (j) {
897
+ case 0:
898
+ return S.suspend(() =>
899
+ S.Struct({
900
+ zone: S.optional(S.String.pipe(T.Label())),
901
+ volume_id: S.String.pipe(T.Label()),
902
+ name: S.optional(S.NullOr(S.String)),
903
+ tags: S.optional(S.NullOr(__S(28, __c7, 0))),
904
+ size: S.optional(S.NullOr(S.Number)),
905
+ }).pipe(
906
+ T.Http({
907
+ method: "PATCH",
908
+ uri: "/instance/v2alpha1/zones/{zone}/volumes/{volume_id}",
909
+ code: 200,
910
+ baseUrl: "https://api.scaleway.com",
911
+ }),
912
+ ),
913
+ ).annotate({ identifier: "UpdateVolumeRequest" });
914
+ }
915
+ }
916
+ function __c9(j: number): any {
917
+ switch (j) {
918
+ case 0:
919
+ return S.suspend(() =>
920
+ S.Struct({
921
+ zone: S.optional(S.String.pipe(T.Label())),
922
+ snapshot_id: S.String.pipe(T.Label()),
923
+ }).pipe(
924
+ T.Http({
925
+ method: "DELETE",
926
+ uri: "/instance/v2alpha1/zones/{zone}/snapshots/{snapshot_id}",
927
+ code: 200,
928
+ baseUrl: "https://api.scaleway.com",
929
+ }),
930
+ ),
931
+ ).annotate({ identifier: "DeleteSnapshotRequest" });
932
+ }
933
+ }
934
+ function __c10(j: number): any {
935
+ switch (j) {
936
+ case 0:
937
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteSnapshotResponse" });
938
+ }
939
+ }
940
+ function __c11(j: number): any {
941
+ switch (j) {
942
+ case 0:
943
+ return S.suspend(() =>
944
+ S.Struct({
945
+ zone: S.optional(S.String.pipe(T.Label())),
946
+ volume_id: S.String.pipe(T.Label()),
947
+ }).pipe(
948
+ T.Http({
949
+ method: "DELETE",
950
+ uri: "/instance/v2alpha1/zones/{zone}/volumes/{volume_id}",
951
+ code: 200,
952
+ baseUrl: "https://api.scaleway.com",
953
+ }),
954
+ ),
955
+ ).annotate({ identifier: "DeleteVolumeRequest" });
956
+ }
957
+ }
958
+ function __c12(j: number): any {
959
+ switch (j) {
960
+ case 0:
961
+ return S.suspend(() =>
962
+ S.Struct({
963
+ zone: S.optional(S.String.pipe(T.Label())),
964
+ snapshot_id: S.String.pipe(T.Label()),
965
+ bucket: S.optional(S.String),
966
+ object_key: S.optional(S.String),
967
+ }).pipe(
968
+ T.Http({
969
+ method: "POST",
970
+ uri: "/instance/v2alpha1/zones/{zone}/snapshots/{snapshot_id}/export-to-object-storage",
971
+ code: 200,
972
+ baseUrl: "https://api.scaleway.com",
973
+ }),
974
+ ),
975
+ ).annotate({ identifier: "ExportSnapshotToObjectStorageRequest" });
976
+ }
977
+ }
978
+ function __c13(j: number): any {
979
+ switch (j) {
980
+ case 0:
981
+ return S.suspend(() =>
982
+ S.Struct({
983
+ zone: S.optional(S.String.pipe(T.Label())),
984
+ snapshot_id: S.String.pipe(T.Label()),
985
+ }).pipe(
986
+ T.Http({
987
+ method: "GET",
988
+ uri: "/instance/v2alpha1/zones/{zone}/snapshots/{snapshot_id}",
989
+ code: 200,
990
+ baseUrl: "https://api.scaleway.com",
991
+ }),
992
+ ),
993
+ ).annotate({ identifier: "GetSnapshotRequest" });
994
+ }
995
+ }
996
+ function __c14(j: number): any {
997
+ switch (j) {
998
+ case 0:
999
+ return S.suspend(() =>
1000
+ S.Struct({
1001
+ zone: S.optional(S.String.pipe(T.Label())),
1002
+ volume_id: S.String.pipe(T.Label()),
1003
+ }).pipe(
1004
+ T.Http({
1005
+ method: "GET",
1006
+ uri: "/instance/v2alpha1/zones/{zone}/volumes/{volume_id}",
1007
+ code: 200,
1008
+ baseUrl: "https://api.scaleway.com",
1009
+ }),
1010
+ ),
1011
+ ).annotate({ identifier: "GetVolumeRequest" });
1012
+ }
1013
+ }
1014
+ function __c15(j: number): any {
1015
+ switch (j) {
1016
+ case 0:
1017
+ return S.suspend(() =>
1018
+ S.Struct({
1019
+ zone: S.optional(S.String.pipe(T.Label())),
1020
+ project_id: S.optional(S.String),
1021
+ name: S.optional(S.String),
1022
+ tags: S.optional(__S(4, __c1, 0)),
1023
+ bucket: S.optional(S.String),
1024
+ object_key: S.optional(S.String),
1025
+ size: S.optional(S.NullOr(S.Number)),
1026
+ volume_type: S.optional(S.String),
1027
+ }).pipe(
1028
+ T.Http({
1029
+ method: "POST",
1030
+ uri: "/instance/v2alpha1/zones/{zone}/snapshots/import-from-object-storage",
1031
+ code: 200,
1032
+ baseUrl: "https://api.scaleway.com",
1033
+ }),
1034
+ ),
1035
+ ).annotate({ identifier: "ImportSnapshotFromObjectStorageRequest" });
1036
+ }
1037
+ }
1038
+ function __c16(j: number): any {
1039
+ switch (j) {
1040
+ case 0:
1041
+ return S.suspend(() =>
1042
+ S.Struct({
1043
+ zone: S.optional(S.String.pipe(T.Label())),
1044
+ page_token: S.optional(S.String.pipe(T.Query())),
1045
+ page_size: S.optional(S.Number.pipe(T.Query())),
1046
+ order_by: S.optional(S.String.pipe(T.Query())),
1047
+ project_id: S.String.pipe(T.Query()),
1048
+ snapshot_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
1049
+ name: S.optional(S.String.pipe(T.Query())),
1050
+ tags: S.optional(__S(4, __c1, 0).pipe(T.Query())),
1051
+ base_volume_id: S.optional(S.String.pipe(T.Query())),
1052
+ }).pipe(
1053
+ T.Http({
1054
+ method: "GET",
1055
+ uri: "/instance/v2alpha1/zones/{zone}/snapshots",
1056
+ code: 200,
1057
+ baseUrl: "https://api.scaleway.com",
1058
+ }),
1059
+ ),
1060
+ ).annotate({ identifier: "ListSnapshotsRequest" });
1061
+ case 1:
1062
+ return S.Array(__S(8, __c2, 0));
1063
+ case 2:
1064
+ return S.suspend(() =>
1065
+ S.Struct({
1066
+ snapshots: __S(65, __c16, 1),
1067
+ next_page_token: S.optional(S.NullOr(S.String)),
1068
+ total_count: S.optional(S.Number),
1069
+ }),
1070
+ ).annotate({ identifier: "ListSnapshotsResponse" });
1071
+ }
1072
+ }
1073
+ function __c17(j: number): any {
1074
+ switch (j) {
1075
+ case 0:
1076
+ return S.suspend(() =>
1077
+ S.Struct({
1078
+ zone: S.optional(S.String.pipe(T.Label())),
1079
+ page_token: S.optional(S.String.pipe(T.Query())),
1080
+ page_size: S.optional(S.Number.pipe(T.Query())),
1081
+ order_by: S.optional(S.String.pipe(T.Query())),
1082
+ project_id: S.String.pipe(T.Query()),
1083
+ volume_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
1084
+ name: S.optional(S.String.pipe(T.Query())),
1085
+ tags: S.optional(__S(4, __c1, 0).pipe(T.Query())),
1086
+ volume_type: S.optional(S.String.pipe(T.Query())),
1087
+ }).pipe(
1088
+ T.Http({
1089
+ method: "GET",
1090
+ uri: "/instance/v2alpha1/zones/{zone}/volumes",
1091
+ code: 200,
1092
+ baseUrl: "https://api.scaleway.com",
1093
+ }),
1094
+ ),
1095
+ ).annotate({ identifier: "ListVolumesRequest" });
1096
+ case 1:
1097
+ return S.Array(__S(16, __c4, 0));
1098
+ case 2:
1099
+ return S.suspend(() =>
1100
+ S.Struct({
1101
+ volumes: __S(69, __c17, 1),
1102
+ next_page_token: S.optional(S.NullOr(S.String)),
1103
+ total_count: S.optional(S.Number),
1104
+ }),
1105
+ ).annotate({ identifier: "ListVolumesResponse" });
1106
+ }
1107
+ }
1108
+ // Schema table: entry i is schema j of builder f, made on first reach.
1109
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1110
+ return (__s[i] ??= __L.at(f, j));
1111
+ }