@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,1239 @@
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: "BlockV1alpha1",
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
+ | "it-mil-2"
40
+ | "it-mil-3";
41
+ /** List of tags assigned to the snapshot. */
42
+ export type CreateSnapshotRequestTagsList = Array<string>;
43
+ export interface CreateSnapshotRequest {
44
+ /** The zone you want to target */
45
+ zone?: CreateSnapshotRequestZone | (string & {}) | undefined;
46
+ /** UUID of the volume to snapshot. */
47
+ volume_id?: string | undefined;
48
+ /** Name of the snapshot. */
49
+ name?: string | undefined;
50
+ /** UUID of the project to which the volume and the snapshot belong. */
51
+ project_id?: string | undefined;
52
+ /** List of tags assigned to the snapshot. */
53
+ tags?: CreateSnapshotRequestTagsList | undefined;
54
+ }
55
+ export type VolumeStatus =
56
+ | "unknown_status"
57
+ | "creating"
58
+ | "available"
59
+ | "in_use"
60
+ | "deleting"
61
+ | "deleted"
62
+ | "resizing"
63
+ | "error"
64
+ | "snapshotting"
65
+ | "locked"
66
+ | "updating";
67
+ export interface SnapshotParentVolume {
68
+ /** Parent volume UUID (volume from which the snapshot originates). (UUID format) */
69
+ id?: string | undefined;
70
+ /** Name of the parent volume. */
71
+ name?: string | undefined;
72
+ /** Volume type of the parent volume. */
73
+ type?: string | undefined;
74
+ /** Current status the parent volume. */
75
+ status?: VolumeStatus | undefined;
76
+ }
77
+ export type ReferenceType = "unknown_type" | "link" | "exclusive" | "read_only";
78
+ export type ReferenceStatus =
79
+ | "unknown_status"
80
+ | "attaching"
81
+ | "attached"
82
+ | "detaching"
83
+ | "detached"
84
+ | "creating"
85
+ | "error";
86
+ export interface Reference {
87
+ /** UUID of the reference. (UUID format) */
88
+ id?: string | undefined;
89
+ /** Type of resource to which the reference is associated. */
90
+ product_resource_type?: string | undefined;
91
+ /** UUID of the product resource it refers to (according to the product_resource_type). (UUID format) */
92
+ product_resource_id?: string | undefined;
93
+ /** Creation date of the reference. (RFC 3339 format) */
94
+ created_at?: string | null | undefined;
95
+ /** Type of reference (link, exclusive, read_only). */
96
+ type?: ReferenceType | undefined;
97
+ /** Status of the reference. Statuses include `attaching`, `attached`, and `detaching`. */
98
+ status?: ReferenceStatus | undefined;
99
+ }
100
+ /** List of the references to the snapshot. */
101
+ export type SnapshotReferencesList = Array<Reference>;
102
+ export type SnapshotStatus =
103
+ | "unknown_status"
104
+ | "creating"
105
+ | "available"
106
+ | "error"
107
+ | "deleting"
108
+ | "deleted"
109
+ | "in_use"
110
+ | "locked"
111
+ | "exporting";
112
+ /** List of tags assigned to the volume. */
113
+ export type SnapshotTagsList = Array<string>;
114
+ export type StorageClass = "unknown_storage_class" | "unspecified" | "bssd" | "sbs";
115
+ export interface Snapshot {
116
+ /** UUID of the snapshot. (UUID format) */
117
+ id?: string | undefined;
118
+ /** Name of the snapshot. */
119
+ name?: string | undefined;
120
+ /** Information about the parent volume. If the parent volume was deleted, value is null. */
121
+ parent_volume?: SnapshotParentVolume | undefined;
122
+ /** Size in bytes of the snapshot. (in bytes) */
123
+ size?: number | undefined;
124
+ /** UUID of the project the snapshot belongs to. (UUID format) */
125
+ project_id?: string | undefined;
126
+ /** Creation date of the snapshot. (RFC 3339 format) */
127
+ created_at?: string | null | undefined;
128
+ /** Last modification date of the properties of a snapshot. (RFC 3339 format) */
129
+ updated_at?: string | null | undefined;
130
+ /** List of the references to the snapshot. */
131
+ references?: SnapshotReferencesList | undefined;
132
+ /** Current status of the snapshot (available, in_use, ...). */
133
+ status?: SnapshotStatus | undefined;
134
+ /** List of tags assigned to the volume. */
135
+ tags?: SnapshotTagsList | undefined;
136
+ /** Snapshot zone. */
137
+ zone?: string | undefined;
138
+ /** Storage class of the snapshot. */
139
+ class?: StorageClass | undefined;
140
+ }
141
+ export type CreateVolumeRequestZone =
142
+ | "fr-par-1"
143
+ | "fr-par-2"
144
+ | "fr-par-3"
145
+ | "nl-ams-1"
146
+ | "nl-ams-2"
147
+ | "nl-ams-3"
148
+ | "pl-waw-1"
149
+ | "pl-waw-2"
150
+ | "pl-waw-3"
151
+ | "it-mil-1"
152
+ | "it-mil-2"
153
+ | "it-mil-3";
154
+ export interface CreateVolumeRequestFromEmpty {
155
+ /** Volume size in bytes, with a granularity of 1 GB (10^9 bytes). Must be compliant with the minimum (1 GB) and maximum (10 TB) allowed size. (in bytes) */
156
+ size: number;
157
+ }
158
+ export interface CreateVolumeRequestFromSnapshot {
159
+ /** Volume size in bytes, with a granularity of 1 GB (10^9 bytes). Must be compliant with the minimum (1 GB) and maximum (10 TB) allowed size. Size is optional and is used only if a resize of the volume is requested, otherwise original snapshot size will be used. (in bytes) */
160
+ size?: number | null | undefined;
161
+ /** Source snapshot from which volume will be created. */
162
+ snapshot_id?: string | undefined;
163
+ }
164
+ /** List of tags assigned to the volume. */
165
+ export type CreateVolumeRequestTagsList = Array<string>;
166
+ export interface CreateVolumeRequest {
167
+ /** The zone you want to target */
168
+ zone?: CreateVolumeRequestZone | (string & {}) | undefined;
169
+ /** Name of the volume. */
170
+ name: string;
171
+ /** The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`). Precisely one of perf_iops can be set. */
172
+ perf_iops?: number | null | undefined;
173
+ /** UUID of the project the volume belongs to. */
174
+ project_id: string;
175
+ /** Specify the size of the new volume if creating a new one from scratch. One of from_empty, from_snapshot is required. */
176
+ from_empty?: CreateVolumeRequestFromEmpty | null | undefined;
177
+ /** Specify the snapshot ID of the original snapshot. One of from_empty, from_snapshot is required. */
178
+ from_snapshot?: CreateVolumeRequestFromSnapshot | null | undefined;
179
+ /** List of tags assigned to the volume. */
180
+ tags?: CreateVolumeRequestTagsList | undefined;
181
+ }
182
+ /** List of the references to the volume. */
183
+ export type VolumeReferencesList = Array<Reference>;
184
+ /** List of tags assigned to the volume. */
185
+ export type VolumeTagsList = Array<string>;
186
+ export interface VolumeSpecifications {
187
+ /** The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`). */
188
+ perf_iops?: number | null | undefined;
189
+ /** The storage class of the volume. */
190
+ class?: StorageClass | undefined;
191
+ }
192
+ export interface Volume {
193
+ /** UUID of the volume. (UUID format) */
194
+ id?: string | undefined;
195
+ /** Name of the volume. */
196
+ name?: string | undefined;
197
+ /** Volume type. */
198
+ type?: string | undefined;
199
+ /** Volume size in bytes. (in bytes) */
200
+ size?: number | undefined;
201
+ /** UUID of the project to which the volume belongs. (UUID format) */
202
+ project_id?: string | undefined;
203
+ /** Creation date of the volume. (RFC 3339 format) */
204
+ created_at?: string | null | undefined;
205
+ /** Last update of the properties of a volume. (RFC 3339 format) */
206
+ updated_at?: string | null | undefined;
207
+ /** List of the references to the volume. */
208
+ references?: VolumeReferencesList | undefined;
209
+ /** When a volume is created from a snapshot, is the UUID of the snapshot from which the volume has been created. (UUID format) */
210
+ parent_snapshot_id?: string | null | undefined;
211
+ /** Current status of the volume (available, in_use, ...). */
212
+ status?: VolumeStatus | undefined;
213
+ /** List of tags assigned to the volume. */
214
+ tags?: VolumeTagsList | undefined;
215
+ /** Volume zone. */
216
+ zone?: string | undefined;
217
+ /** Specifications of the volume. */
218
+ specs?: VolumeSpecifications | undefined;
219
+ /** Last time the volume was detached. (RFC 3339 format) */
220
+ last_detached_at?: string | null | undefined;
221
+ }
222
+ export type DeleteSnapshotRequestZone =
223
+ | "fr-par-1"
224
+ | "fr-par-2"
225
+ | "fr-par-3"
226
+ | "nl-ams-1"
227
+ | "nl-ams-2"
228
+ | "nl-ams-3"
229
+ | "pl-waw-1"
230
+ | "pl-waw-2"
231
+ | "pl-waw-3"
232
+ | "it-mil-1"
233
+ | "it-mil-2"
234
+ | "it-mil-3";
235
+ export interface DeleteSnapshotRequest {
236
+ /** The zone you want to target */
237
+ zone?: DeleteSnapshotRequestZone | (string & {}) | undefined;
238
+ /** UUID of the snapshot. */
239
+ snapshot_id: string;
240
+ }
241
+ export interface DeleteSnapshotResponse {}
242
+ export type DeleteVolumeRequestZone =
243
+ | "fr-par-1"
244
+ | "fr-par-2"
245
+ | "fr-par-3"
246
+ | "nl-ams-1"
247
+ | "nl-ams-2"
248
+ | "nl-ams-3"
249
+ | "pl-waw-1"
250
+ | "pl-waw-2"
251
+ | "pl-waw-3"
252
+ | "it-mil-1"
253
+ | "it-mil-2"
254
+ | "it-mil-3";
255
+ export interface DeleteVolumeRequest {
256
+ /** The zone you want to target */
257
+ zone?: DeleteVolumeRequestZone | (string & {}) | undefined;
258
+ /** UUID of the volume. */
259
+ volume_id: string;
260
+ }
261
+ export interface DeleteVolumeResponse {}
262
+ export type ExportSnapshotToObjectStorageRequestZone =
263
+ | "fr-par-1"
264
+ | "fr-par-2"
265
+ | "fr-par-3"
266
+ | "nl-ams-1"
267
+ | "nl-ams-2"
268
+ | "nl-ams-3"
269
+ | "pl-waw-1"
270
+ | "pl-waw-2"
271
+ | "pl-waw-3"
272
+ | "it-mil-1"
273
+ | "it-mil-2"
274
+ | "it-mil-3";
275
+ export interface ExportSnapshotToObjectStorageRequest {
276
+ /** The zone you want to target */
277
+ zone?: ExportSnapshotToObjectStorageRequestZone | (string & {}) | undefined;
278
+ /** UUID of the snapshot. (UUID format) */
279
+ snapshot_id: string;
280
+ /** Scaleway Object Storage bucket where the object is stored. */
281
+ bucket?: string | undefined;
282
+ /** The object key inside the given bucket. */
283
+ key?: string | undefined;
284
+ }
285
+ export type GetSnapshotRequestZone =
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
+ | "it-mil-2"
297
+ | "it-mil-3";
298
+ export interface GetSnapshotRequest {
299
+ /** The zone you want to target */
300
+ zone?: GetSnapshotRequestZone | (string & {}) | undefined;
301
+ /** UUID of the snapshot. */
302
+ snapshot_id: string;
303
+ }
304
+ export type GetVolumeRequestZone =
305
+ | "fr-par-1"
306
+ | "fr-par-2"
307
+ | "fr-par-3"
308
+ | "nl-ams-1"
309
+ | "nl-ams-2"
310
+ | "nl-ams-3"
311
+ | "pl-waw-1"
312
+ | "pl-waw-2"
313
+ | "pl-waw-3"
314
+ | "it-mil-1"
315
+ | "it-mil-2"
316
+ | "it-mil-3";
317
+ export interface GetVolumeRequest {
318
+ /** The zone you want to target */
319
+ zone?: GetVolumeRequestZone | (string & {}) | undefined;
320
+ /** UUID of the volume. */
321
+ volume_id: string;
322
+ }
323
+ export type ImportSnapshotFromObjectStorageRequestZone =
324
+ | "fr-par-1"
325
+ | "fr-par-2"
326
+ | "fr-par-3"
327
+ | "nl-ams-1"
328
+ | "nl-ams-2"
329
+ | "nl-ams-3"
330
+ | "pl-waw-1"
331
+ | "pl-waw-2"
332
+ | "pl-waw-3"
333
+ | "it-mil-1"
334
+ | "it-mil-2"
335
+ | "it-mil-3";
336
+ /** List of tags assigned to the snapshot. */
337
+ export type ImportSnapshotFromObjectStorageRequestTagsList = Array<string>;
338
+ export interface ImportSnapshotFromObjectStorageRequest {
339
+ /** The zone you want to target */
340
+ zone?: ImportSnapshotFromObjectStorageRequestZone | (string & {}) | undefined;
341
+ /** Scaleway Object Storage bucket where the object is stored. */
342
+ bucket?: string | undefined;
343
+ /** The object key inside the given bucket. */
344
+ key?: string | undefined;
345
+ /** Name of the snapshot. */
346
+ name?: string | undefined;
347
+ /** UUID of the Project to which the volume and the snapshot belong. */
348
+ project_id?: string | undefined;
349
+ /** List of tags assigned to the snapshot. */
350
+ tags?: ImportSnapshotFromObjectStorageRequestTagsList | undefined;
351
+ /** Size of the snapshot. (in bytes) */
352
+ size?: number | null | undefined;
353
+ }
354
+ export type ListSnapshotsRequestZone =
355
+ | "fr-par-1"
356
+ | "fr-par-2"
357
+ | "fr-par-3"
358
+ | "nl-ams-1"
359
+ | "nl-ams-2"
360
+ | "nl-ams-3"
361
+ | "pl-waw-1"
362
+ | "pl-waw-2"
363
+ | "pl-waw-3"
364
+ | "it-mil-1"
365
+ | "it-mil-2"
366
+ | "it-mil-3";
367
+ export type ListSnapshotsRequestOrderBy =
368
+ | "created_at_asc"
369
+ | "created_at_desc"
370
+ | "name_asc"
371
+ | "name_desc";
372
+ export type ListSnapshotsRequestTagsList = Array<string>;
373
+ export interface ListSnapshotsRequest {
374
+ /** The zone you want to target */
375
+ zone?: ListSnapshotsRequestZone | (string & {}) | undefined;
376
+ /** Criteria to use when ordering the list. */
377
+ order_by?: ListSnapshotsRequestOrderBy | (string & {}) | undefined;
378
+ /** Filter by Project ID. */
379
+ project_id?: string | undefined;
380
+ /** Filter by Organization ID. */
381
+ organization_id?: string | undefined;
382
+ /** Page number. */
383
+ page?: number | undefined;
384
+ /** Page size, defines how many entries are returned in one page, must be lower or equal to 100. */
385
+ page_size?: number | undefined;
386
+ /** Filter snapshots by the ID of the original volume. */
387
+ volume_id?: string | undefined;
388
+ /** Filter snapshots by their names. */
389
+ name?: string | undefined;
390
+ /** Filter by tags. Only snapshots with one or more matching tags will be returned. */
391
+ tags?: ListSnapshotsRequestTagsList | undefined;
392
+ }
393
+ /** Paginated returned list of snapshots. */
394
+ export type ListSnapshotsResponseSnapshotsList = Array<Snapshot>;
395
+ export interface ListSnapshotsResponse {
396
+ /** Paginated returned list of snapshots. */
397
+ snapshots: ListSnapshotsResponseSnapshotsList;
398
+ /** Total number of snapshots in the project. */
399
+ total_count?: number | undefined;
400
+ }
401
+ export type ListVolumesRequestZone =
402
+ | "fr-par-1"
403
+ | "fr-par-2"
404
+ | "fr-par-3"
405
+ | "nl-ams-1"
406
+ | "nl-ams-2"
407
+ | "nl-ams-3"
408
+ | "pl-waw-1"
409
+ | "pl-waw-2"
410
+ | "pl-waw-3"
411
+ | "it-mil-1"
412
+ | "it-mil-2"
413
+ | "it-mil-3";
414
+ export type ListVolumesRequestOrderBy =
415
+ | "created_at_asc"
416
+ | "created_at_desc"
417
+ | "name_asc"
418
+ | "name_desc";
419
+ export type ListVolumesRequestTagsList = Array<string>;
420
+ export interface ListVolumesRequest {
421
+ /** The zone you want to target */
422
+ zone?: ListVolumesRequestZone | (string & {}) | undefined;
423
+ /** Criteria to use when ordering the list. */
424
+ order_by?: ListVolumesRequestOrderBy | (string & {}) | undefined;
425
+ /** Filter by Project ID. */
426
+ project_id?: string | undefined;
427
+ /** Filter by Organization ID. */
428
+ organization_id?: string | undefined;
429
+ /** Page number. */
430
+ page?: number | undefined;
431
+ /** Page size, defines how many entries are returned in one page, must be lower or equal to 100. */
432
+ page_size?: number | undefined;
433
+ /** Filter the return volumes by their names. */
434
+ name?: string | undefined;
435
+ /** Filter by a product resource ID linked to this volume (such as an Instance ID). */
436
+ product_resource_id?: string | undefined;
437
+ /** Filter by tags. Only volumes with one or more matching tags will be returned. */
438
+ tags?: ListVolumesRequestTagsList | undefined;
439
+ }
440
+ /** Paginated returned list of volumes. */
441
+ export type ListVolumesResponseVolumesList = Array<Volume>;
442
+ export interface ListVolumesResponse {
443
+ /** Paginated returned list of volumes. */
444
+ volumes: ListVolumesResponseVolumesList;
445
+ /** Total number of volumes in the project. */
446
+ total_count?: number | undefined;
447
+ }
448
+ export type ListVolumeTypesRequestZone =
449
+ | "fr-par-1"
450
+ | "fr-par-2"
451
+ | "fr-par-3"
452
+ | "nl-ams-1"
453
+ | "nl-ams-2"
454
+ | "nl-ams-3"
455
+ | "pl-waw-1"
456
+ | "pl-waw-2"
457
+ | "pl-waw-3"
458
+ | "it-mil-1"
459
+ | "it-mil-2"
460
+ | "it-mil-3";
461
+ export interface ListVolumeTypesRequest {
462
+ /** The zone you want to target */
463
+ zone?: ListVolumeTypesRequestZone | (string & {}) | undefined;
464
+ /** Page number. */
465
+ page?: number | undefined;
466
+ /** Page size, defines how many entries are returned in one page, must be lower or equal to 100. */
467
+ page_size?: number | undefined;
468
+ }
469
+ export interface GoogleTypeMoney {
470
+ currency_code?: string | undefined;
471
+ units?: number | undefined;
472
+ nanos?: number | undefined;
473
+ }
474
+ export interface VolumeType {
475
+ /** Volume type. */
476
+ type?: string | undefined;
477
+ /** Price of the volume billed in GB/hour. */
478
+ pricing?: GoogleTypeMoney | undefined;
479
+ /** Price of the snapshot billed in GB/hour. */
480
+ snapshot_pricing?: GoogleTypeMoney | undefined;
481
+ /** Volume specifications of the volume type. */
482
+ specs?: VolumeSpecifications | undefined;
483
+ }
484
+ /** Returns paginated list of volume-types. */
485
+ export type ListVolumeTypesResponseVolumeTypesList = Array<VolumeType>;
486
+ export interface ListVolumeTypesResponse {
487
+ /** Returns paginated list of volume-types. */
488
+ volume_types: ListVolumeTypesResponseVolumeTypesList;
489
+ /** Total number of volume-types currently available in stock. */
490
+ total_count?: number | undefined;
491
+ }
492
+ export type UpdateSnapshotRequestZone =
493
+ | "fr-par-1"
494
+ | "fr-par-2"
495
+ | "fr-par-3"
496
+ | "nl-ams-1"
497
+ | "nl-ams-2"
498
+ | "nl-ams-3"
499
+ | "pl-waw-1"
500
+ | "pl-waw-2"
501
+ | "pl-waw-3"
502
+ | "it-mil-1"
503
+ | "it-mil-2"
504
+ | "it-mil-3";
505
+ /** List of tags assigned to the snapshot. */
506
+ export type UpdateSnapshotRequestTagsList = Array<unknown>;
507
+ export interface UpdateSnapshotRequest {
508
+ /** The zone you want to target */
509
+ zone?: UpdateSnapshotRequestZone | (string & {}) | undefined;
510
+ /** UUID of the snapshot. */
511
+ snapshot_id: string;
512
+ /** When defined, is the name of the snapshot. */
513
+ name?: string | null | undefined;
514
+ /** List of tags assigned to the snapshot. */
515
+ tags?: UpdateSnapshotRequestTagsList | null | undefined;
516
+ }
517
+ export type UpdateVolumeRequestZone =
518
+ | "fr-par-1"
519
+ | "fr-par-2"
520
+ | "fr-par-3"
521
+ | "nl-ams-1"
522
+ | "nl-ams-2"
523
+ | "nl-ams-3"
524
+ | "pl-waw-1"
525
+ | "pl-waw-2"
526
+ | "pl-waw-3"
527
+ | "it-mil-1"
528
+ | "it-mil-2"
529
+ | "it-mil-3";
530
+ /** List of tags assigned to the volume. */
531
+ export type UpdateVolumeRequestTagsList = Array<unknown>;
532
+ export interface UpdateVolumeRequest {
533
+ /** The zone you want to target */
534
+ zone?: UpdateVolumeRequestZone | (string & {}) | undefined;
535
+ /** UUID of the volume. */
536
+ volume_id: string;
537
+ /** When defined, is the new name of the volume. */
538
+ name?: string | null | undefined;
539
+ /** Optional field for increasing the size of a volume (size must be equal or larger than the current one). Size in bytes of the volume, with a granularity of 1 GB (10^9 bytes). (in bytes) */
540
+ size?: number | null | undefined;
541
+ /** List of tags assigned to the volume. */
542
+ tags?: UpdateVolumeRequestTagsList | null | undefined;
543
+ /** The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`). The selected value must be available for the volume's current storage class. */
544
+ perf_iops?: number | null | undefined;
545
+ }
546
+ export type CreateSnapshotError = ScalewayOpError;
547
+ /** Create a snapshot of a volume To create a snapshot, the volume must be in the `in_use` or the `available` status. If your volume is in a transient state, you need to wait until the end of the current operation. */
548
+ export const createSnapshot: API.OperationMethod<
549
+ CreateSnapshotRequest,
550
+ Snapshot,
551
+ CreateSnapshotError,
552
+ ScalewayOpContext
553
+ > = /*@__PURE__*/ API.make(() => ({
554
+ input: __S(0, __c0, 0) as any as S.Schema<CreateSnapshotRequest>,
555
+ output: __S(17, __c2, 1) as any as S.Schema<Snapshot>,
556
+ errors: [],
557
+ serviceErrors: ScalewayServiceErrors,
558
+ protocol: ScalewayProtocol,
559
+ retry: Retry.Retry,
560
+ telemetry: TELEMETRY,
561
+ span: "CreateSnapshot",
562
+ }));
563
+
564
+ export type CreateVolumeError = ScalewayOpError;
565
+ /** Create a volume To create a new volume from scratch, you must specify `from_empty` and the `size`. To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot. */
566
+ export const createVolume: API.OperationMethod<
567
+ CreateVolumeRequest,
568
+ Volume,
569
+ CreateVolumeError,
570
+ ScalewayOpContext
571
+ > = /*@__PURE__*/ API.make(() => ({
572
+ input: __S(26, __c3, 2) as any as S.Schema<CreateVolumeRequest>,
573
+ output: __S(40, __c5, 0) as any as S.Schema<Volume>,
574
+ errors: [],
575
+ serviceErrors: ScalewayServiceErrors,
576
+ protocol: ScalewayProtocol,
577
+ retry: Retry.Retry,
578
+ telemetry: TELEMETRY,
579
+ span: "CreateVolume",
580
+ }));
581
+
582
+ export type DeleteSnapshotError = ScalewayOpError;
583
+ /** Delete a snapshot You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use. */
584
+ export const deleteSnapshot: API.OperationMethod<
585
+ DeleteSnapshotRequest,
586
+ DeleteSnapshotResponse,
587
+ DeleteSnapshotError,
588
+ ScalewayOpContext
589
+ > = /*@__PURE__*/ API.make(() => ({
590
+ input: __S(80, __c10, 0) as any as S.Schema<DeleteSnapshotRequest>,
591
+ output: __S(88, __c11, 0) as any as S.Schema<DeleteSnapshotResponse>,
592
+ errors: [],
593
+ serviceErrors: ScalewayServiceErrors,
594
+ protocol: ScalewayProtocol,
595
+ retry: Retry.Retry,
596
+ telemetry: TELEMETRY,
597
+ span: "DeleteSnapshot",
598
+ }));
599
+
600
+ export type DeleteVolumeError = ScalewayOpError;
601
+ /** Delete a detached volume You must specify the `volume_id` of the volume you want to delete. The volume must not be in the `in_use` status. */
602
+ export const deleteVolume: API.OperationMethod<
603
+ DeleteVolumeRequest,
604
+ DeleteVolumeResponse,
605
+ DeleteVolumeError,
606
+ ScalewayOpContext
607
+ > = /*@__PURE__*/ API.make(() => ({
608
+ input: __S(96, __c12, 0) as any as S.Schema<DeleteVolumeRequest>,
609
+ output: __S(88, __c11, 0) as any as S.Schema<DeleteVolumeResponse>,
610
+ errors: [],
611
+ serviceErrors: ScalewayServiceErrors,
612
+ protocol: ScalewayProtocol,
613
+ retry: Retry.Retry,
614
+ telemetry: TELEMETRY,
615
+ span: "DeleteVolume",
616
+ }));
617
+
618
+ export type ExportSnapshotToObjectStorageError = ScalewayOpError;
619
+ /** Export a snapshot to a Scaleway Object Storage bucket The snapshot is exported in QCOW2 format. The snapshot must not be in transient state. */
620
+ export const exportSnapshotToObjectStorage: API.OperationMethod<
621
+ ExportSnapshotToObjectStorageRequest,
622
+ Snapshot,
623
+ ExportSnapshotToObjectStorageError,
624
+ ScalewayOpContext
625
+ > = /*@__PURE__*/ API.make(() => ({
626
+ input: __S(104, __c13, 0) as any as S.Schema<ExportSnapshotToObjectStorageRequest>,
627
+ output: __S(17, __c2, 1) as any as S.Schema<Snapshot>,
628
+ errors: [],
629
+ serviceErrors: ScalewayServiceErrors,
630
+ protocol: ScalewayProtocol,
631
+ retry: Retry.Retry,
632
+ telemetry: TELEMETRY,
633
+ span: "ExportSnapshotToObjectStorage",
634
+ }));
635
+
636
+ export type GetSnapshotError = ScalewayOpError;
637
+ /** Get a snapshot Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response. */
638
+ export const getSnapshot: API.OperationMethod<
639
+ GetSnapshotRequest,
640
+ Snapshot,
641
+ GetSnapshotError,
642
+ ScalewayOpContext
643
+ > = /*@__PURE__*/ API.make(() => ({
644
+ input: __S(112, __c14, 0) as any as S.Schema<GetSnapshotRequest>,
645
+ output: __S(17, __c2, 1) as any as S.Schema<Snapshot>,
646
+ errors: [],
647
+ serviceErrors: ScalewayServiceErrors,
648
+ protocol: ScalewayProtocol,
649
+ retry: Retry.Retry,
650
+ telemetry: TELEMETRY,
651
+ span: "GetSnapshot",
652
+ }));
653
+
654
+ export type GetVolumeError = ScalewayOpError;
655
+ /** Get a volume Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response. */
656
+ export const getVolume: API.OperationMethod<
657
+ GetVolumeRequest,
658
+ Volume,
659
+ GetVolumeError,
660
+ ScalewayOpContext
661
+ > = /*@__PURE__*/ API.make(() => ({
662
+ input: __S(120, __c15, 0) as any as S.Schema<GetVolumeRequest>,
663
+ output: __S(40, __c5, 0) as any as S.Schema<Volume>,
664
+ errors: [],
665
+ serviceErrors: ScalewayServiceErrors,
666
+ protocol: ScalewayProtocol,
667
+ retry: Retry.Retry,
668
+ telemetry: TELEMETRY,
669
+ span: "GetVolume",
670
+ }));
671
+
672
+ export type ImportSnapshotFromObjectStorageError = ScalewayOpError;
673
+ /** Import a snapshot from a Scaleway Object Storage bucket The bucket must contain a QCOW2 image. The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket. */
674
+ export const importSnapshotFromObjectStorage: API.OperationMethod<
675
+ ImportSnapshotFromObjectStorageRequest,
676
+ Snapshot,
677
+ ImportSnapshotFromObjectStorageError,
678
+ ScalewayOpContext
679
+ > = /*@__PURE__*/ API.make(() => ({
680
+ input: __S(128, __c16, 0) as any as S.Schema<ImportSnapshotFromObjectStorageRequest>,
681
+ output: __S(17, __c2, 1) as any as S.Schema<Snapshot>,
682
+ errors: [],
683
+ serviceErrors: ScalewayServiceErrors,
684
+ protocol: ScalewayProtocol,
685
+ retry: Retry.Retry,
686
+ telemetry: TELEMETRY,
687
+ span: "ImportSnapshotFromObjectStorage",
688
+ }));
689
+
690
+ export type ListSnapshotsError = ScalewayOpError;
691
+ /** List all snapshots List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. */
692
+ export const listSnapshots: API.PaginatedOperationMethod<
693
+ ListSnapshotsRequest,
694
+ ListSnapshotsResponse,
695
+ ListSnapshotsError,
696
+ ScalewayOpContext,
697
+ Snapshot
698
+ > = /*@__PURE__*/ API.makePaginated(
699
+ () => ({
700
+ input: __S(136, __c17, 0) as any as S.Schema<ListSnapshotsRequest>,
701
+ output: __S(138, __c17, 2) as any as S.Schema<ListSnapshotsResponse>,
702
+ errors: [],
703
+ serviceErrors: ScalewayServiceErrors,
704
+ protocol: ScalewayProtocol,
705
+ retry: Retry.Retry,
706
+ telemetry: TELEMETRY,
707
+ span: "ListSnapshots",
708
+ pagination: {
709
+ mode: "page",
710
+ inputToken: "page",
711
+ outputToken: "total_count",
712
+ items: "snapshots",
713
+ pageSize: "page_size",
714
+ } as const,
715
+ }),
716
+ paginateByTotalCount,
717
+ ) as any;
718
+
719
+ export type ListVolumesError = ScalewayOpError;
720
+ /** List volumes List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. */
721
+ export const listVolumes: API.PaginatedOperationMethod<
722
+ ListVolumesRequest,
723
+ ListVolumesResponse,
724
+ ListVolumesError,
725
+ ScalewayOpContext,
726
+ Volume
727
+ > = /*@__PURE__*/ API.makePaginated(
728
+ () => ({
729
+ input: __S(144, __c18, 0) as any as S.Schema<ListVolumesRequest>,
730
+ output: __S(146, __c18, 2) as any as S.Schema<ListVolumesResponse>,
731
+ errors: [],
732
+ serviceErrors: ScalewayServiceErrors,
733
+ protocol: ScalewayProtocol,
734
+ retry: Retry.Retry,
735
+ telemetry: TELEMETRY,
736
+ span: "ListVolumes",
737
+ pagination: {
738
+ mode: "page",
739
+ inputToken: "page",
740
+ outputToken: "total_count",
741
+ items: "volumes",
742
+ pageSize: "page_size",
743
+ } as const,
744
+ }),
745
+ paginateByTotalCount,
746
+ ) as any;
747
+
748
+ export type ListVolumeTypesError = ScalewayOpError;
749
+ /** List volume types List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order. */
750
+ export const listVolumeTypes: API.PaginatedOperationMethod<
751
+ ListVolumeTypesRequest,
752
+ ListVolumeTypesResponse,
753
+ ListVolumeTypesError,
754
+ ScalewayOpContext,
755
+ VolumeType
756
+ > = /*@__PURE__*/ API.makePaginated(
757
+ () => ({
758
+ input: __S(48, __c6, 0) as any as S.Schema<ListVolumeTypesRequest>,
759
+ output: __S(52, __c6, 4) as any as S.Schema<ListVolumeTypesResponse>,
760
+ errors: [],
761
+ serviceErrors: ScalewayServiceErrors,
762
+ protocol: ScalewayProtocol,
763
+ retry: Retry.Retry,
764
+ telemetry: TELEMETRY,
765
+ span: "ListVolumeTypes",
766
+ pagination: {
767
+ mode: "page",
768
+ inputToken: "page",
769
+ outputToken: "total_count",
770
+ items: "volume_types",
771
+ pageSize: "page_size",
772
+ } as const,
773
+ }),
774
+ paginateByTotalCount,
775
+ ) as any;
776
+
777
+ export type UpdateSnapshotError = ScalewayOpError;
778
+ /** Update a snapshot Update the name or tags of the snapshot. */
779
+ export const updateSnapshot: API.OperationMethod<
780
+ UpdateSnapshotRequest,
781
+ Snapshot,
782
+ UpdateSnapshotError,
783
+ ScalewayOpContext
784
+ > = /*@__PURE__*/ API.make(() => ({
785
+ input: __S(56, __c7, 0) as any as S.Schema<UpdateSnapshotRequest>,
786
+ output: __S(17, __c2, 1) as any as S.Schema<Snapshot>,
787
+ errors: [],
788
+ serviceErrors: ScalewayServiceErrors,
789
+ protocol: ScalewayProtocol,
790
+ retry: Retry.Retry,
791
+ telemetry: TELEMETRY,
792
+ span: "UpdateSnapshot",
793
+ }));
794
+
795
+ export type UpdateVolumeError = ScalewayOpError;
796
+ /** Update a volume Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class). You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class. */
797
+ export const updateVolume: API.OperationMethod<
798
+ UpdateVolumeRequest,
799
+ Volume,
800
+ UpdateVolumeError,
801
+ ScalewayOpContext
802
+ > = /*@__PURE__*/ API.make(() => ({
803
+ input: __S(72, __c9, 0) as any as S.Schema<UpdateVolumeRequest>,
804
+ output: __S(40, __c5, 0) as any as S.Schema<Volume>,
805
+ errors: [],
806
+ serviceErrors: ScalewayServiceErrors,
807
+ protocol: ScalewayProtocol,
808
+ retry: Retry.Retry,
809
+ telemetry: TELEMETRY,
810
+ span: "UpdateVolume",
811
+ }));
812
+
813
+ // Schema builders: each runs one schema initializer, on that schema's first use.
814
+ function __c0(j: number): any {
815
+ switch (j) {
816
+ case 0:
817
+ return S.suspend(() =>
818
+ S.Struct({
819
+ zone: S.optional(S.String.pipe(T.Label())),
820
+ volume_id: S.optional(S.String),
821
+ name: S.optional(S.String),
822
+ project_id: S.optional(S.String),
823
+ tags: S.optional(__S(8, __c1, 0)),
824
+ }).pipe(
825
+ T.Http({
826
+ method: "POST",
827
+ uri: "/block/v1alpha1/zones/{zone}/snapshots",
828
+ code: 200,
829
+ baseUrl: "https://api.scaleway.com",
830
+ }),
831
+ ),
832
+ ).annotate({ identifier: "CreateSnapshotRequest" });
833
+ }
834
+ }
835
+ function __c1(j: number): any {
836
+ switch (j) {
837
+ case 0:
838
+ return S.Array(S.String);
839
+ case 1:
840
+ return S.suspend(() =>
841
+ S.Struct({
842
+ id: S.optional(S.String),
843
+ product_resource_type: S.optional(S.String),
844
+ product_resource_id: S.optional(S.String),
845
+ created_at: S.optional(S.NullOr(S.String)),
846
+ type: S.optional(S.String),
847
+ status: S.optional(S.String),
848
+ }),
849
+ ).annotate({ identifier: "Reference" });
850
+ case 2:
851
+ return S.Array(__S(9, __c1, 1));
852
+ }
853
+ }
854
+ function __c2(j: number): any {
855
+ switch (j) {
856
+ case 0:
857
+ return S.suspend(() =>
858
+ S.Struct({
859
+ id: S.optional(S.String),
860
+ name: S.optional(S.String),
861
+ type: S.optional(S.String),
862
+ status: S.optional(S.String),
863
+ }),
864
+ ).annotate({ identifier: "SnapshotParentVolume" });
865
+ case 1:
866
+ return S.suspend(() =>
867
+ S.Struct({
868
+ id: S.optional(S.String),
869
+ name: S.optional(S.String),
870
+ parent_volume: S.optional(__S(16, __c2, 0)),
871
+ size: S.optional(S.Number),
872
+ project_id: S.optional(S.String),
873
+ created_at: S.optional(S.NullOr(S.String)),
874
+ updated_at: S.optional(S.NullOr(S.String)),
875
+ references: S.optional(__S(10, __c1, 2)),
876
+ status: S.optional(S.String),
877
+ tags: S.optional(__S(8, __c1, 0)),
878
+ zone: S.optional(S.String),
879
+ class: S.optional(S.String),
880
+ }),
881
+ ).annotate({ identifier: "Snapshot" });
882
+ }
883
+ }
884
+ function __c3(j: number): any {
885
+ switch (j) {
886
+ case 0:
887
+ return S.suspend(() =>
888
+ S.Struct({
889
+ size: S.Number,
890
+ }),
891
+ ).annotate({ identifier: "CreateVolumeRequestFromEmpty" });
892
+ case 1:
893
+ return S.suspend(() =>
894
+ S.Struct({
895
+ size: S.optional(S.NullOr(S.Number)),
896
+ snapshot_id: S.optional(S.String),
897
+ }),
898
+ ).annotate({ identifier: "CreateVolumeRequestFromSnapshot" });
899
+ case 2:
900
+ return S.suspend(() =>
901
+ S.Struct({
902
+ zone: S.optional(S.String.pipe(T.Label())),
903
+ name: S.String,
904
+ perf_iops: S.optional(S.NullOr(S.Number)),
905
+ project_id: S.String,
906
+ from_empty: S.optional(S.NullOr(__S(24, __c3, 0))),
907
+ from_snapshot: S.optional(S.NullOr(__S(25, __c3, 1))),
908
+ tags: S.optional(__S(8, __c1, 0)),
909
+ }).pipe(
910
+ T.Http({
911
+ method: "POST",
912
+ uri: "/block/v1alpha1/zones/{zone}/volumes",
913
+ code: 200,
914
+ baseUrl: "https://api.scaleway.com",
915
+ }),
916
+ ),
917
+ ).annotate({ identifier: "CreateVolumeRequest" });
918
+ }
919
+ }
920
+ function __c4(j: number): any {
921
+ switch (j) {
922
+ case 0:
923
+ return S.suspend(() =>
924
+ S.Struct({
925
+ perf_iops: S.optional(S.NullOr(S.Number)),
926
+ class: S.optional(S.String),
927
+ }),
928
+ ).annotate({ identifier: "VolumeSpecifications" });
929
+ }
930
+ }
931
+ function __c5(j: number): any {
932
+ switch (j) {
933
+ case 0:
934
+ return S.suspend(() =>
935
+ S.Struct({
936
+ id: S.optional(S.String),
937
+ name: S.optional(S.String),
938
+ type: S.optional(S.String),
939
+ size: S.optional(S.Number),
940
+ project_id: S.optional(S.String),
941
+ created_at: S.optional(S.NullOr(S.String)),
942
+ updated_at: S.optional(S.NullOr(S.String)),
943
+ references: S.optional(__S(10, __c1, 2)),
944
+ parent_snapshot_id: S.optional(S.NullOr(S.String)),
945
+ status: S.optional(S.String),
946
+ tags: S.optional(__S(8, __c1, 0)),
947
+ zone: S.optional(S.String),
948
+ specs: S.optional(__S(32, __c4, 0)),
949
+ last_detached_at: S.optional(S.NullOr(S.String)),
950
+ }),
951
+ ).annotate({ identifier: "Volume" });
952
+ }
953
+ }
954
+ function __c6(j: number): any {
955
+ switch (j) {
956
+ case 0:
957
+ return S.suspend(() =>
958
+ S.Struct({
959
+ zone: S.optional(S.String.pipe(T.Label())),
960
+ page: S.optional(S.Number.pipe(T.Query())),
961
+ page_size: S.optional(S.Number.pipe(T.Query())),
962
+ }).pipe(
963
+ T.Http({
964
+ method: "GET",
965
+ uri: "/block/v1alpha1/zones/{zone}/volume-types",
966
+ code: 200,
967
+ baseUrl: "https://api.scaleway.com",
968
+ }),
969
+ ),
970
+ ).annotate({ identifier: "ListVolumeTypesRequest" });
971
+ case 1:
972
+ return S.suspend(() =>
973
+ S.Struct({
974
+ currency_code: S.optional(S.String),
975
+ units: S.optional(S.Number),
976
+ nanos: S.optional(S.Number),
977
+ }),
978
+ ).annotate({ identifier: "GoogleTypeMoney" });
979
+ case 2:
980
+ return S.suspend(() =>
981
+ S.Struct({
982
+ type: S.optional(S.String),
983
+ pricing: S.optional(__S(49, __c6, 1)),
984
+ snapshot_pricing: S.optional(__S(49, __c6, 1)),
985
+ specs: S.optional(__S(32, __c4, 0)),
986
+ }),
987
+ ).annotate({ identifier: "VolumeType" });
988
+ case 3:
989
+ return S.Array(__S(50, __c6, 2));
990
+ case 4:
991
+ return S.suspend(() =>
992
+ S.Struct({
993
+ volume_types: __S(51, __c6, 3),
994
+ total_count: S.optional(S.Number),
995
+ }),
996
+ ).annotate({ identifier: "ListVolumeTypesResponse" });
997
+ }
998
+ }
999
+ function __c7(j: number): any {
1000
+ switch (j) {
1001
+ case 0:
1002
+ return S.suspend(() =>
1003
+ S.Struct({
1004
+ zone: S.optional(S.String.pipe(T.Label())),
1005
+ snapshot_id: S.String.pipe(T.Label()),
1006
+ name: S.optional(S.NullOr(S.String)),
1007
+ tags: S.optional(S.NullOr(__S(64, __c8, 0))),
1008
+ }).pipe(
1009
+ T.Http({
1010
+ method: "PATCH",
1011
+ uri: "/block/v1alpha1/zones/{zone}/snapshots/{snapshot_id}",
1012
+ code: 200,
1013
+ baseUrl: "https://api.scaleway.com",
1014
+ }),
1015
+ ),
1016
+ ).annotate({ identifier: "UpdateSnapshotRequest" });
1017
+ }
1018
+ }
1019
+ function __c8(j: number): any {
1020
+ switch (j) {
1021
+ case 0:
1022
+ return S.Array(S.Unknown);
1023
+ }
1024
+ }
1025
+ function __c9(j: number): any {
1026
+ switch (j) {
1027
+ case 0:
1028
+ return S.suspend(() =>
1029
+ S.Struct({
1030
+ zone: S.optional(S.String.pipe(T.Label())),
1031
+ volume_id: S.String.pipe(T.Label()),
1032
+ name: S.optional(S.NullOr(S.String)),
1033
+ size: S.optional(S.NullOr(S.Number)),
1034
+ tags: S.optional(S.NullOr(__S(64, __c8, 0))),
1035
+ perf_iops: S.optional(S.NullOr(S.Number)),
1036
+ }).pipe(
1037
+ T.Http({
1038
+ method: "PATCH",
1039
+ uri: "/block/v1alpha1/zones/{zone}/volumes/{volume_id}",
1040
+ code: 200,
1041
+ baseUrl: "https://api.scaleway.com",
1042
+ }),
1043
+ ),
1044
+ ).annotate({ identifier: "UpdateVolumeRequest" });
1045
+ }
1046
+ }
1047
+ function __c10(j: number): any {
1048
+ switch (j) {
1049
+ case 0:
1050
+ return S.suspend(() =>
1051
+ S.Struct({
1052
+ zone: S.optional(S.String.pipe(T.Label())),
1053
+ snapshot_id: S.String.pipe(T.Label()),
1054
+ }).pipe(
1055
+ T.Http({
1056
+ method: "DELETE",
1057
+ uri: "/block/v1alpha1/zones/{zone}/snapshots/{snapshot_id}",
1058
+ code: 200,
1059
+ baseUrl: "https://api.scaleway.com",
1060
+ }),
1061
+ ),
1062
+ ).annotate({ identifier: "DeleteSnapshotRequest" });
1063
+ }
1064
+ }
1065
+ function __c11(j: number): any {
1066
+ switch (j) {
1067
+ case 0:
1068
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteSnapshotResponse" });
1069
+ }
1070
+ }
1071
+ function __c12(j: number): any {
1072
+ switch (j) {
1073
+ case 0:
1074
+ return S.suspend(() =>
1075
+ S.Struct({
1076
+ zone: S.optional(S.String.pipe(T.Label())),
1077
+ volume_id: S.String.pipe(T.Label()),
1078
+ }).pipe(
1079
+ T.Http({
1080
+ method: "DELETE",
1081
+ uri: "/block/v1alpha1/zones/{zone}/volumes/{volume_id}",
1082
+ code: 200,
1083
+ baseUrl: "https://api.scaleway.com",
1084
+ }),
1085
+ ),
1086
+ ).annotate({ identifier: "DeleteVolumeRequest" });
1087
+ }
1088
+ }
1089
+ function __c13(j: number): any {
1090
+ switch (j) {
1091
+ case 0:
1092
+ return S.suspend(() =>
1093
+ S.Struct({
1094
+ zone: S.optional(S.String.pipe(T.Label())),
1095
+ snapshot_id: S.String.pipe(T.Label()),
1096
+ bucket: S.optional(S.String),
1097
+ key: S.optional(S.String),
1098
+ }).pipe(
1099
+ T.Http({
1100
+ method: "POST",
1101
+ uri: "/block/v1alpha1/zones/{zone}/snapshots/{snapshot_id}/export-to-object-storage",
1102
+ code: 200,
1103
+ baseUrl: "https://api.scaleway.com",
1104
+ }),
1105
+ ),
1106
+ ).annotate({ identifier: "ExportSnapshotToObjectStorageRequest" });
1107
+ }
1108
+ }
1109
+ function __c14(j: number): any {
1110
+ switch (j) {
1111
+ case 0:
1112
+ return S.suspend(() =>
1113
+ S.Struct({
1114
+ zone: S.optional(S.String.pipe(T.Label())),
1115
+ snapshot_id: S.String.pipe(T.Label()),
1116
+ }).pipe(
1117
+ T.Http({
1118
+ method: "GET",
1119
+ uri: "/block/v1alpha1/zones/{zone}/snapshots/{snapshot_id}",
1120
+ code: 200,
1121
+ baseUrl: "https://api.scaleway.com",
1122
+ }),
1123
+ ),
1124
+ ).annotate({ identifier: "GetSnapshotRequest" });
1125
+ }
1126
+ }
1127
+ function __c15(j: number): any {
1128
+ switch (j) {
1129
+ case 0:
1130
+ return S.suspend(() =>
1131
+ S.Struct({
1132
+ zone: S.optional(S.String.pipe(T.Label())),
1133
+ volume_id: S.String.pipe(T.Label()),
1134
+ }).pipe(
1135
+ T.Http({
1136
+ method: "GET",
1137
+ uri: "/block/v1alpha1/zones/{zone}/volumes/{volume_id}",
1138
+ code: 200,
1139
+ baseUrl: "https://api.scaleway.com",
1140
+ }),
1141
+ ),
1142
+ ).annotate({ identifier: "GetVolumeRequest" });
1143
+ }
1144
+ }
1145
+ function __c16(j: number): any {
1146
+ switch (j) {
1147
+ case 0:
1148
+ return S.suspend(() =>
1149
+ S.Struct({
1150
+ zone: S.optional(S.String.pipe(T.Label())),
1151
+ bucket: S.optional(S.String),
1152
+ key: S.optional(S.String),
1153
+ name: S.optional(S.String),
1154
+ project_id: S.optional(S.String),
1155
+ tags: S.optional(__S(8, __c1, 0)),
1156
+ size: S.optional(S.NullOr(S.Number)),
1157
+ }).pipe(
1158
+ T.Http({
1159
+ method: "POST",
1160
+ uri: "/block/v1alpha1/zones/{zone}/snapshots/import-from-object-storage",
1161
+ code: 200,
1162
+ baseUrl: "https://api.scaleway.com",
1163
+ }),
1164
+ ),
1165
+ ).annotate({ identifier: "ImportSnapshotFromObjectStorageRequest" });
1166
+ }
1167
+ }
1168
+ function __c17(j: number): any {
1169
+ switch (j) {
1170
+ case 0:
1171
+ return S.suspend(() =>
1172
+ S.Struct({
1173
+ zone: S.optional(S.String.pipe(T.Label())),
1174
+ order_by: S.optional(S.String.pipe(T.Query())),
1175
+ project_id: S.optional(S.String.pipe(T.Query())),
1176
+ organization_id: S.optional(S.String.pipe(T.Query())),
1177
+ page: S.optional(S.Number.pipe(T.Query())),
1178
+ page_size: S.optional(S.Number.pipe(T.Query())),
1179
+ volume_id: S.optional(S.String.pipe(T.Query())),
1180
+ name: S.optional(S.String.pipe(T.Query())),
1181
+ tags: S.optional(__S(8, __c1, 0).pipe(T.Query())),
1182
+ }).pipe(
1183
+ T.Http({
1184
+ method: "GET",
1185
+ uri: "/block/v1alpha1/zones/{zone}/snapshots",
1186
+ code: 200,
1187
+ baseUrl: "https://api.scaleway.com",
1188
+ }),
1189
+ ),
1190
+ ).annotate({ identifier: "ListSnapshotsRequest" });
1191
+ case 1:
1192
+ return S.Array(__S(17, __c2, 1));
1193
+ case 2:
1194
+ return S.suspend(() =>
1195
+ S.Struct({
1196
+ snapshots: __S(137, __c17, 1),
1197
+ total_count: S.optional(S.Number),
1198
+ }),
1199
+ ).annotate({ identifier: "ListSnapshotsResponse" });
1200
+ }
1201
+ }
1202
+ function __c18(j: number): any {
1203
+ switch (j) {
1204
+ case 0:
1205
+ return S.suspend(() =>
1206
+ S.Struct({
1207
+ zone: S.optional(S.String.pipe(T.Label())),
1208
+ order_by: S.optional(S.String.pipe(T.Query())),
1209
+ project_id: S.optional(S.String.pipe(T.Query())),
1210
+ organization_id: S.optional(S.String.pipe(T.Query())),
1211
+ page: S.optional(S.Number.pipe(T.Query())),
1212
+ page_size: S.optional(S.Number.pipe(T.Query())),
1213
+ name: S.optional(S.String.pipe(T.Query())),
1214
+ product_resource_id: S.optional(S.String.pipe(T.Query())),
1215
+ tags: S.optional(__S(8, __c1, 0).pipe(T.Query())),
1216
+ }).pipe(
1217
+ T.Http({
1218
+ method: "GET",
1219
+ uri: "/block/v1alpha1/zones/{zone}/volumes",
1220
+ code: 200,
1221
+ baseUrl: "https://api.scaleway.com",
1222
+ }),
1223
+ ),
1224
+ ).annotate({ identifier: "ListVolumesRequest" });
1225
+ case 1:
1226
+ return S.Array(__S(40, __c5, 0));
1227
+ case 2:
1228
+ return S.suspend(() =>
1229
+ S.Struct({
1230
+ volumes: __S(145, __c18, 1),
1231
+ total_count: S.optional(S.Number),
1232
+ }),
1233
+ ).annotate({ identifier: "ListVolumesResponse" });
1234
+ }
1235
+ }
1236
+ // Schema table: entry i is schema j of builder f, made on first reach.
1237
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1238
+ return (__s[i] ??= __L.at(f, j));
1239
+ }