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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +175 -2
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +44 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +285 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +48 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/pagination.d.ts +10 -0
  17. package/lib/pagination.d.ts.map +1 -0
  18. package/lib/pagination.js +1 -0
  19. package/lib/protocol.d.ts +48 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +1 -0
  22. package/lib/retry.d.ts +31 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +1 -0
  25. package/lib/services/account_contract_v3.d.ts +124 -0
  26. package/lib/services/account_contract_v3.d.ts.map +1 -0
  27. package/lib/services/account_contract_v3.js +2 -0
  28. package/lib/services/account_contract_v3.js.map +1 -0
  29. package/lib/services/account_iso_code_v3.d.ts +44 -0
  30. package/lib/services/account_iso_code_v3.d.ts.map +1 -0
  31. package/lib/services/account_iso_code_v3.js +2 -0
  32. package/lib/services/account_iso_code_v3.js.map +1 -0
  33. package/lib/services/account_organization_v3.d.ts +290 -0
  34. package/lib/services/account_organization_v3.d.ts.map +1 -0
  35. package/lib/services/account_organization_v3.js +2 -0
  36. package/lib/services/account_organization_v3.js.map +1 -0
  37. package/lib/services/account_project_v3.d.ts +173 -0
  38. package/lib/services/account_project_v3.d.ts.map +1 -0
  39. package/lib/services/account_project_v3.js +2 -0
  40. package/lib/services/account_project_v3.js.map +1 -0
  41. package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
  42. package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
  43. package/lib/services/account_unauthenticated_user_v3.js +35 -0
  44. package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
  45. package/lib/services/account_unauthenticated_v3.d.ts +18 -0
  46. package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
  47. package/lib/services/account_unauthenticated_v3.js +2 -0
  48. package/lib/services/account_unauthenticated_v3.js.map +1 -0
  49. package/lib/services/account_user_v3.d.ts +522 -0
  50. package/lib/services/account_user_v3.d.ts.map +1 -0
  51. package/lib/services/account_user_v3.js +39 -0
  52. package/lib/services/account_user_v3.js.map +1 -0
  53. package/lib/services/annotations_v1.d.ts +260 -0
  54. package/lib/services/annotations_v1.d.ts.map +1 -0
  55. package/lib/services/annotations_v1.js +2 -0
  56. package/lib/services/annotations_v1.js.map +1 -0
  57. package/lib/services/baremetal_private_network_v1.d.ts +95 -0
  58. package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
  59. package/lib/services/baremetal_private_network_v1.js +2 -0
  60. package/lib/services/baremetal_private_network_v1.js.map +1 -0
  61. package/lib/services/baremetal_private_network_v3.d.ts +110 -0
  62. package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
  63. package/lib/services/baremetal_private_network_v3.js +2 -0
  64. package/lib/services/baremetal_private_network_v3.js.map +1 -0
  65. package/lib/services/baremetal_v1.d.ts +1089 -0
  66. package/lib/services/baremetal_v1.d.ts.map +1 -0
  67. package/lib/services/baremetal_v1.js +52 -0
  68. package/lib/services/baremetal_v1.js.map +1 -0
  69. package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
  70. package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
  71. package/lib/services/billing_electronic_billing_v2.js +2 -0
  72. package/lib/services/billing_electronic_billing_v2.js.map +1 -0
  73. package/lib/services/billing_v2.d.ts +187 -0
  74. package/lib/services/billing_v2.d.ts.map +1 -0
  75. package/lib/services/billing_v2.js +2 -0
  76. package/lib/services/billing_v2.js.map +1 -0
  77. package/lib/services/block_v1.d.ts +401 -0
  78. package/lib/services/block_v1.d.ts.map +1 -0
  79. package/lib/services/block_v1.js +27 -0
  80. package/lib/services/block_v1.js.map +1 -0
  81. package/lib/services/cockpit_global_v1.d.ts +75 -0
  82. package/lib/services/cockpit_global_v1.d.ts.map +1 -0
  83. package/lib/services/cockpit_global_v1.js +2 -0
  84. package/lib/services/cockpit_global_v1.js.map +1 -0
  85. package/lib/services/cockpit_regional_v1.d.ts +739 -0
  86. package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
  87. package/lib/services/cockpit_regional_v1.js +47 -0
  88. package/lib/services/cockpit_regional_v1.js.map +1 -0
  89. package/lib/services/containers_v1.d.ts +822 -0
  90. package/lib/services/containers_v1.d.ts.map +1 -0
  91. package/lib/services/containers_v1.js +39 -0
  92. package/lib/services/containers_v1.js.map +1 -0
  93. package/lib/services/dedibox_billing_v1.d.ts +151 -0
  94. package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
  95. package/lib/services/dedibox_billing_v1.js +2 -0
  96. package/lib/services/dedibox_billing_v1.js.map +1 -0
  97. package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
  98. package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
  99. package/lib/services/dedibox_ipv6_block_v1.js +2 -0
  100. package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
  101. package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
  102. package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
  103. package/lib/services/dedibox_rpn_san_v1.js +2 -0
  104. package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
  105. package/lib/services/dedibox_rpn_v1.d.ts +68 -0
  106. package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
  107. package/lib/services/dedibox_rpn_v1.js +2 -0
  108. package/lib/services/dedibox_rpn_v1.js.map +1 -0
  109. package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
  110. package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
  111. package/lib/services/dedibox_rpn_v1_v1.js +30 -0
  112. package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
  113. package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
  114. package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
  115. package/lib/services/dedibox_rpn_v2_v1.js +27 -0
  116. package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
  117. package/lib/services/dedibox_v1.d.ts +1351 -0
  118. package/lib/services/dedibox_v1.d.ts.map +1 -0
  119. package/lib/services/dedibox_v1.js +70 -0
  120. package/lib/services/dedibox_v1.js.map +1 -0
  121. package/lib/services/generative_apis_openai_v1.d.ts +772 -0
  122. package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
  123. package/lib/services/generative_apis_openai_v1.js +24 -0
  124. package/lib/services/generative_apis_openai_v1.js.map +1 -0
  125. package/lib/services/generative_apis_v1.d.ts +82 -0
  126. package/lib/services/generative_apis_v1.d.ts.map +1 -0
  127. package/lib/services/generative_apis_v1.js +2 -0
  128. package/lib/services/generative_apis_v1.js.map +1 -0
  129. package/lib/services/index.d.ts +57 -0
  130. package/lib/services/index.d.ts.map +1 -0
  131. package/lib/services/index.js +56 -0
  132. package/lib/services/inference_v1.d.ts +460 -0
  133. package/lib/services/inference_v1.d.ts.map +1 -0
  134. package/lib/services/inference_v1.js +33 -0
  135. package/lib/services/inference_v1.js.map +1 -0
  136. package/lib/services/instance_v1.d.ts +2183 -0
  137. package/lib/services/instance_v1.d.ts.map +1 -0
  138. package/lib/services/instance_v1.js +112 -0
  139. package/lib/services/instance_v1.js.map +1 -0
  140. package/lib/services/iot_v1.d.ts +837 -0
  141. package/lib/services/iot_v1.d.ts.map +1 -0
  142. package/lib/services/iot_v1.js +50 -0
  143. package/lib/services/iot_v1.js.map +1 -0
  144. package/lib/services/ipam_v1.d.ts +244 -0
  145. package/lib/services/ipam_v1.d.ts.map +1 -0
  146. package/lib/services/ipam_v1.js +2 -0
  147. package/lib/services/ipam_v1.js.map +1 -0
  148. package/lib/services/k8s_v1.d.ts +1223 -0
  149. package/lib/services/k8s_v1.d.ts.map +1 -0
  150. package/lib/services/k8s_v1.js +61 -0
  151. package/lib/services/k8s_v1.js.map +1 -0
  152. package/lib/services/lb_zoned_v1.d.ts +1517 -0
  153. package/lib/services/lb_zoned_v1.d.ts.map +1 -0
  154. package/lib/services/lb_zoned_v1.js +75 -0
  155. package/lib/services/lb_zoned_v1.js.map +1 -0
  156. package/lib/services/marketplace_console_v2.d.ts +72 -0
  157. package/lib/services/marketplace_console_v2.d.ts.map +1 -0
  158. package/lib/services/marketplace_console_v2.js +2 -0
  159. package/lib/services/marketplace_console_v2.js.map +1 -0
  160. package/lib/services/marketplace_v2.d.ts +169 -0
  161. package/lib/services/marketplace_v2.d.ts.map +1 -0
  162. package/lib/services/marketplace_v2.js +2 -0
  163. package/lib/services/marketplace_v2.js.map +1 -0
  164. package/lib/services/mongodb_v1.d.ts +698 -0
  165. package/lib/services/mongodb_v1.d.ts.map +1 -0
  166. package/lib/services/mongodb_v1.js +43 -0
  167. package/lib/services/mongodb_v1.js.map +1 -0
  168. package/lib/services/partner_v1.d.ts +142 -0
  169. package/lib/services/partner_v1.d.ts.map +1 -0
  170. package/lib/services/partner_v1.js +2 -0
  171. package/lib/services/partner_v1.js.map +1 -0
  172. package/lib/services/rdb_encryption_v1.d.ts +17 -0
  173. package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
  174. package/lib/services/rdb_encryption_v1.js +2 -0
  175. package/lib/services/rdb_encryption_v1.js.map +1 -0
  176. package/lib/services/rdb_v1.d.ts +1422 -0
  177. package/lib/services/rdb_v1.d.ts.map +1 -0
  178. package/lib/services/rdb_v1.js +87 -0
  179. package/lib/services/rdb_v1.js.map +1 -0
  180. package/lib/services/redis_v1.d.ts +602 -0
  181. package/lib/services/redis_v1.d.ts.map +1 -0
  182. package/lib/services/redis_v1.js +42 -0
  183. package/lib/services/redis_v1.js.map +1 -0
  184. package/lib/services/registry_v1.d.ts +281 -0
  185. package/lib/services/registry_v1.d.ts.map +1 -0
  186. package/lib/services/registry_v1.js +2 -0
  187. package/lib/services/registry_v1.js.map +1 -0
  188. package/lib/services/reseller_v1.d.ts +81 -0
  189. package/lib/services/reseller_v1.d.ts.map +1 -0
  190. package/lib/services/reseller_v1.js +2 -0
  191. package/lib/services/reseller_v1.js.map +1 -0
  192. package/lib/services/vpc_gw_v2.d.ts +635 -0
  193. package/lib/services/vpc_gw_v2.d.ts.map +1 -0
  194. package/lib/services/vpc_gw_v2.js +46 -0
  195. package/lib/services/vpc_gw_v2.js.map +1 -0
  196. package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
  197. package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
  198. package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
  199. package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
  200. package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
  201. package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
  202. package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
  203. package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
  204. package/lib/services/vpc_v2.d.ts +875 -0
  205. package/lib/services/vpc_v2.d.ts.map +1 -0
  206. package/lib/services/vpc_v2.js +54 -0
  207. package/lib/services/vpc_v2.js.map +1 -0
  208. package/lib/services/webhosting_backup_v1.d.ts +182 -0
  209. package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
  210. package/lib/services/webhosting_backup_v1.js +2 -0
  211. package/lib/services/webhosting_backup_v1.js.map +1 -0
  212. package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
  213. package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
  214. package/lib/services/webhosting_control_panel_v1.js +2 -0
  215. package/lib/services/webhosting_control_panel_v1.js.map +1 -0
  216. package/lib/services/webhosting_database_v1.d.ts +195 -0
  217. package/lib/services/webhosting_database_v1.d.ts.map +1 -0
  218. package/lib/services/webhosting_database_v1.js +2 -0
  219. package/lib/services/webhosting_database_v1.js.map +1 -0
  220. package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
  221. package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
  222. package/lib/services/webhosting_dedibox_v1.js +2 -0
  223. package/lib/services/webhosting_dedibox_v1.js.map +1 -0
  224. package/lib/services/webhosting_dns_v1.d.ts +177 -0
  225. package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
  226. package/lib/services/webhosting_dns_v1.js +2 -0
  227. package/lib/services/webhosting_dns_v1.js.map +1 -0
  228. package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
  229. package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
  230. package/lib/services/webhosting_free_domain_v1.js +2 -0
  231. package/lib/services/webhosting_free_domain_v1.js.map +1 -0
  232. package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
  233. package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
  234. package/lib/services/webhosting_ftp_account_v1.js +2 -0
  235. package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
  236. package/lib/services/webhosting_hosting_v1.d.ts +502 -0
  237. package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
  238. package/lib/services/webhosting_hosting_v1.js +27 -0
  239. package/lib/services/webhosting_hosting_v1.js.map +1 -0
  240. package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
  241. package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
  242. package/lib/services/webhosting_mail_account_v1.js +2 -0
  243. package/lib/services/webhosting_mail_account_v1.js.map +1 -0
  244. package/lib/services/webhosting_offer_v1.d.ts +122 -0
  245. package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
  246. package/lib/services/webhosting_offer_v1.js +2 -0
  247. package/lib/services/webhosting_offer_v1.js.map +1 -0
  248. package/lib/services/webhosting_website_v1.d.ts +75 -0
  249. package/lib/services/webhosting_website_v1.d.ts.map +1 -0
  250. package/lib/services/webhosting_website_v1.js +2 -0
  251. package/lib/services/webhosting_website_v1.js.map +1 -0
  252. package/lib/services.lazy/account_contract_v3.js +1 -0
  253. package/lib/services.lazy/account_iso_code_v3.js +1 -0
  254. package/lib/services.lazy/account_organization_v3.js +1 -0
  255. package/lib/services.lazy/account_project_v3.js +1 -0
  256. package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
  257. package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
  258. package/lib/services.lazy/account_user_v3.js +3 -0
  259. package/lib/services.lazy/annotations_v1.js +1 -0
  260. package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
  261. package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
  262. package/lib/services.lazy/baremetal_v1.js +3 -0
  263. package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
  264. package/lib/services.lazy/billing_v2.js +1 -0
  265. package/lib/services.lazy/block_v1.js +3 -0
  266. package/lib/services.lazy/cockpit_global_v1.js +1 -0
  267. package/lib/services.lazy/cockpit_regional_v1.js +3 -0
  268. package/lib/services.lazy/containers_v1.js +3 -0
  269. package/lib/services.lazy/dedibox_billing_v1.js +1 -0
  270. package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
  271. package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
  272. package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
  273. package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
  274. package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
  275. package/lib/services.lazy/dedibox_v1.js +3 -0
  276. package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
  277. package/lib/services.lazy/generative_apis_v1.js +1 -0
  278. package/lib/services.lazy/index.js +3 -0
  279. package/lib/services.lazy/inference_v1.js +3 -0
  280. package/lib/services.lazy/instance_v1.js +3 -0
  281. package/lib/services.lazy/iot_v1.js +3 -0
  282. package/lib/services.lazy/ipam_v1.js +1 -0
  283. package/lib/services.lazy/k8s_v1.js +3 -0
  284. package/lib/services.lazy/lb_zoned_v1.js +3 -0
  285. package/lib/services.lazy/marketplace_console_v2.js +1 -0
  286. package/lib/services.lazy/marketplace_v2.js +1 -0
  287. package/lib/services.lazy/mongodb_v1.js +3 -0
  288. package/lib/services.lazy/partner_v1.js +1 -0
  289. package/lib/services.lazy/rdb_encryption_v1.js +1 -0
  290. package/lib/services.lazy/rdb_v1.js +3 -0
  291. package/lib/services.lazy/redis_v1.js +3 -0
  292. package/lib/services.lazy/registry_v1.js +1 -0
  293. package/lib/services.lazy/reseller_v1.js +1 -0
  294. package/lib/services.lazy/vpc_gw_v2.js +3 -0
  295. package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
  296. package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
  297. package/lib/services.lazy/vpc_v2.js +3 -0
  298. package/lib/services.lazy/webhosting_backup_v1.js +1 -0
  299. package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
  300. package/lib/services.lazy/webhosting_database_v1.js +1 -0
  301. package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
  302. package/lib/services.lazy/webhosting_dns_v1.js +1 -0
  303. package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
  304. package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
  305. package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
  306. package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
  307. package/lib/services.lazy/webhosting_offer_v1.js +1 -0
  308. package/lib/services.lazy/webhosting_website_v1.js +1 -0
  309. package/lib/traits.d.ts +25 -0
  310. package/lib/traits.d.ts.map +1 -0
  311. package/lib/traits.js +1 -0
  312. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
  313. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
  314. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
  315. package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
  316. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
  317. package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
  318. package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
  319. package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
  320. package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
  321. package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
  322. package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
  323. package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
  324. package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
  325. package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
  326. package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
  327. package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
  328. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
  329. package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
  330. package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
  331. package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
  332. package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
  333. package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
  334. package/lib/unstable-services/billing_v2beta1.js +25 -0
  335. package/lib/unstable-services/billing_v2beta1.js.map +1 -0
  336. package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
  337. package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
  338. package/lib/unstable-services/block_v1alpha1.js +27 -0
  339. package/lib/unstable-services/block_v1alpha1.js.map +1 -0
  340. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
  341. package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
  342. package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
  343. package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
  344. package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
  345. package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
  346. package/lib/unstable-services/datalab_v1beta1.js +2 -0
  347. package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
  348. package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
  349. package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
  350. package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
  351. package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
  352. package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
  353. package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
  354. package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
  355. package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
  356. package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
  357. package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
  358. package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
  359. package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
  360. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
  361. package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
  362. package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
  363. package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
  364. package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
  365. package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
  366. package/lib/unstable-services/domain_v2beta1.js +44 -0
  367. package/lib/unstable-services/domain_v2beta1.js.map +1 -0
  368. package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
  369. package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
  370. package/lib/unstable-services/edge_services_v1beta1.js +81 -0
  371. package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
  372. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
  373. package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
  374. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
  375. package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
  376. package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
  377. package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
  378. package/lib/unstable-services/file_v1alpha1.js +24 -0
  379. package/lib/unstable-services/file_v1alpha1.js.map +1 -0
  380. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
  381. package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
  382. package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
  383. package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
  384. package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
  385. package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
  386. package/lib/unstable-services/functions_v1beta1.js +49 -0
  387. package/lib/unstable-services/functions_v1beta1.js.map +1 -0
  388. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
  389. package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
  390. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
  391. package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
  392. package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
  393. package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
  394. package/lib/unstable-services/iam_v1alpha1.js +105 -0
  395. package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
  396. package/lib/unstable-services/index.d.ts +44 -0
  397. package/lib/unstable-services/index.d.ts.map +1 -0
  398. package/lib/unstable-services/index.js +43 -0
  399. package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
  400. package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
  401. package/lib/unstable-services/instance_v2alpha1.js +81 -0
  402. package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
  403. package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
  404. package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
  405. package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
  406. package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
  407. package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
  408. package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
  409. package/lib/unstable-services/interlink_v1beta1.js +39 -0
  410. package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
  411. package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
  412. package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
  413. package/lib/unstable-services/kafka_v1alpha1.js +27 -0
  414. package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
  415. package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
  416. package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
  417. package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
  418. package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
  419. package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
  420. package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
  421. package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
  422. package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
  423. package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
  424. package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
  425. package/lib/unstable-services/messageq_v1alpha1.js +29 -0
  426. package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
  427. package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
  428. package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
  429. package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
  430. package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
  431. package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
  432. package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
  433. package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
  434. package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
  435. package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
  436. package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
  437. package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
  438. package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
  439. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
  440. package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
  441. package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
  442. package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
  443. package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
  444. package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
  445. package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
  446. package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
  447. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
  448. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
  449. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
  450. package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
  451. package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
  452. package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
  453. package/lib/unstable-services/qaas_v1alpha1.js +51 -0
  454. package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
  455. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
  456. package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
  457. package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
  458. package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
  459. package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
  460. package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
  461. package/lib/unstable-services/search_v1alpha1.js +2 -0
  462. package/lib/unstable-services/search_v1alpha1.js.map +1 -0
  463. package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
  464. package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
  465. package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
  466. package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
  467. package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
  468. package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
  469. package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
  470. package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
  471. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
  472. package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
  473. package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
  474. package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
  475. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
  476. package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
  477. package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
  478. package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
  479. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
  480. package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
  481. package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
  482. package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
  483. package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
  484. package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
  485. package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
  486. package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
  487. package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
  488. package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
  489. package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
  490. package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
  491. package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
  492. package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
  493. package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
  494. package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
  495. package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
  496. package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
  497. package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
  498. package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
  499. package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
  500. package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
  501. package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
  502. package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
  503. package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
  504. package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
  505. package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
  506. package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
  507. package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
  508. package/lib/unstable-services.lazy/index.js +3 -0
  509. package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
  510. package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
  511. package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
  512. package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
  513. package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
  514. package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
  515. package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
  516. package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
  517. package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
  518. package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
  519. package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
  520. package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
  521. package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
  522. package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
  523. package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
  524. package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
  525. package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
  526. package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
  527. package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
  528. package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
  529. package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
  530. package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
  531. package/package.json +94 -3
  532. package/src/credentials.ts +104 -0
  533. package/src/errors.ts +307 -0
  534. package/src/index.ts +52 -0
  535. package/src/pagination.ts +65 -0
  536. package/src/protocol.ts +496 -0
  537. package/src/retry.ts +47 -0
  538. package/src/services/account_contract_v3.ts +441 -0
  539. package/src/services/account_iso_code_v3.ts +165 -0
  540. package/src/services/account_organization_v3.ts +946 -0
  541. package/src/services/account_project_v3.ts +530 -0
  542. package/src/services/account_unauthenticated_user_v3.ts +1445 -0
  543. package/src/services/account_unauthenticated_v3.ts +92 -0
  544. package/src/services/account_user_v3.ts +1657 -0
  545. package/src/services/annotations_v1.ts +897 -0
  546. package/src/services/baremetal_private_network_v1.ts +327 -0
  547. package/src/services/baremetal_private_network_v3.ts +376 -0
  548. package/src/services/baremetal_v1.ts +3072 -0
  549. package/src/services/billing_electronic_billing_v2.ts +323 -0
  550. package/src/services/billing_v2.ts +662 -0
  551. package/src/services/block_v1.ts +1282 -0
  552. package/src/services/cockpit_global_v1.ts +282 -0
  553. package/src/services/cockpit_regional_v1.ts +2177 -0
  554. package/src/services/containers_v1.ts +2110 -0
  555. package/src/services/dedibox_billing_v1.ts +621 -0
  556. package/src/services/dedibox_ipv6_block_v1.ts +468 -0
  557. package/src/services/dedibox_rpn_san_v1.ts +1185 -0
  558. package/src/services/dedibox_rpn_v1.ts +207 -0
  559. package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
  560. package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
  561. package/src/services/dedibox_v1.ts +3765 -0
  562. package/src/services/generative_apis_openai_v1.ts +1692 -0
  563. package/src/services/generative_apis_v1.ts +251 -0
  564. package/src/services/index.ts +57 -0
  565. package/src/services/inference_v1.ts +1353 -0
  566. package/src/services/instance_v1.ts +6611 -0
  567. package/src/services/iot_v1.ts +2419 -0
  568. package/src/services/ipam_v1.ts +716 -0
  569. package/src/services/k8s_v1.ts +3108 -0
  570. package/src/services/lb_zoned_v1.ts +4533 -0
  571. package/src/services/marketplace_console_v2.ts +198 -0
  572. package/src/services/marketplace_v2.ts +625 -0
  573. package/src/services/mongodb_v1.ts +2104 -0
  574. package/src/services/partner_v1.ts +462 -0
  575. package/src/services/rdb_encryption_v1.ts +83 -0
  576. package/src/services/rdb_v1.ts +4211 -0
  577. package/src/services/redis_v1.ts +1918 -0
  578. package/src/services/registry_v1.ts +863 -0
  579. package/src/services/reseller_v1.ts +258 -0
  580. package/src/services/vpc_gw_v2.ts +2130 -0
  581. package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
  582. package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
  583. package/src/services/vpc_v2.ts +2533 -0
  584. package/src/services/webhosting_backup_v1.ts +578 -0
  585. package/src/services/webhosting_control_panel_v1.ts +130 -0
  586. package/src/services/webhosting_database_v1.ts +682 -0
  587. package/src/services/webhosting_dedibox_v1.ts +480 -0
  588. package/src/services/webhosting_dns_v1.ts +471 -0
  589. package/src/services/webhosting_free_domain_v1.ts +190 -0
  590. package/src/services/webhosting_ftp_account_v1.ts +280 -0
  591. package/src/services/webhosting_hosting_v1.ts +1309 -0
  592. package/src/services/webhosting_mail_account_v1.ts +291 -0
  593. package/src/services/webhosting_offer_v1.ts +289 -0
  594. package/src/services/webhosting_website_v1.ts +274 -0
  595. package/src/traits.ts +63 -0
  596. package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
  597. package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
  598. package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
  599. package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
  600. package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
  601. package/src/unstable-services/billing_v2beta1.ts +1203 -0
  602. package/src/unstable-services/block_v1alpha1.ts +1239 -0
  603. package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
  604. package/src/unstable-services/datalab_v1beta1.ts +852 -0
  605. package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
  606. package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
  607. package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
  608. package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
  609. package/src/unstable-services/domain_v2beta1.ts +1794 -0
  610. package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
  611. package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
  612. package/src/unstable-services/file_v1alpha1.ts +1016 -0
  613. package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
  614. package/src/unstable-services/functions_v1beta1.ts +2410 -0
  615. package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
  616. package/src/unstable-services/iam_v1alpha1.ts +4919 -0
  617. package/src/unstable-services/index.ts +44 -0
  618. package/src/unstable-services/instance_v2alpha1.ts +5377 -0
  619. package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
  620. package/src/unstable-services/interlink_v1beta1.ts +1791 -0
  621. package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
  622. package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
  623. package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
  624. package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
  625. package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
  626. package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
  627. package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
  628. package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
  629. package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
  630. package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
  631. package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
  632. package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
  633. package/src/unstable-services/search_v1alpha1.ts +349 -0
  634. package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
  635. package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
  636. package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
  637. package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
  638. package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
  639. package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
@@ -0,0 +1,1016 @@
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: "FileV1alpha1",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type CreateFileSystemRequestRegion = "fr-par";
29
+ export interface CreateFileSystemRequestFromEmpty {
30
+ /** Filesystem size in bytes, with a granularity in GB (10^9 bytes). Must be compliant with the minimum (25 GB) and maximum (50 TB) allowed size. (in bytes) */
31
+ size: number;
32
+ }
33
+ export interface CreateFileSystemRequestFromSnapshot {
34
+ /** Filesystem size in bytes, with a granularity in GB (10^9 bytes). Must be compliant with the minimum (25 GB) and maximum (50 TB) allowed size. Size is optional. When not set, the current size of the parent filesystem is used. When set, it must be greater than or equal to the snapshot size. (in bytes) */
35
+ size?: number | null | undefined;
36
+ /** Source snapshot from which the filesystem will be created. */
37
+ snapshot_id: string;
38
+ }
39
+ /** List of tags assigned to the filesystem. */
40
+ export type CreateFileSystemRequestTagsList = Array<string>;
41
+ export interface CreateFileSystemRequest {
42
+ /** The region you want to target */
43
+ region?: CreateFileSystemRequestRegion | (string & {}) | undefined;
44
+ /** Name of the filesystem. */
45
+ name: string;
46
+ /** UUID of the project the filesystem belongs to. (UUID format) */
47
+ project_id: string;
48
+ /** Deprecated: use `from_empty.size` instead. Filesystem size in bytes, with a granularity in GB (10^9 bytes). Must be compliant with the minimum (25 GB) and maximum (50 TB) allowed size. Must not be set along with `from_empty` or `from_snapshot`. */
49
+ size?: number | undefined;
50
+ /** Specify the size of the new filesystem if creating a new one from scratch. Precisely one of from_empty, from_snapshot can be set. */
51
+ from_empty?: CreateFileSystemRequestFromEmpty | null | undefined;
52
+ /** Specify the snapshot ID of the original snapshot to create the filesystem from. Precisely one of from_empty, from_snapshot can be set. */
53
+ from_snapshot?: CreateFileSystemRequestFromSnapshot | null | undefined;
54
+ /** Type of the filesystem. */
55
+ type?: string | null | undefined;
56
+ /** List of tags assigned to the filesystem. */
57
+ tags?: CreateFileSystemRequestTagsList | undefined;
58
+ }
59
+ export type FileSystemStatus =
60
+ | "unknown_status"
61
+ | "available"
62
+ | "error"
63
+ | "creating"
64
+ | "updating"
65
+ | "snapshotting";
66
+ /** List of tags assigned to the filesystem. */
67
+ export type FileSystemTagsList = Array<string>;
68
+ export interface FileSystem {
69
+ /** UUID of the filesystem. (UUID format) */
70
+ id?: string | undefined;
71
+ /** Name of the filesystem. */
72
+ name?: string | undefined;
73
+ /** Filesystem size in bytes. (in bytes) */
74
+ size?: number | undefined;
75
+ /** Current status of the filesystem (e.g. creating, available, ...). */
76
+ status?: FileSystemStatus | undefined;
77
+ /** UUID of the project to which the filesystem belongs. (UUID format) */
78
+ project_id?: string | undefined;
79
+ /** UUID of the organization to which the filesystem belongs. (UUID format) */
80
+ organization_id?: string | undefined;
81
+ /** List of tags assigned to the filesystem. */
82
+ tags?: FileSystemTagsList | undefined;
83
+ /** The current number of attachments (mounts) that the filesystem has. */
84
+ number_of_attachments?: number | undefined;
85
+ /** Region where the filesystem is located. */
86
+ region?: string | undefined;
87
+ /** Creation date of the filesystem. (RFC 3339 format) */
88
+ created_at?: string | null | undefined;
89
+ /** Last update date of the properties of the filesystem. (RFC 3339 format) */
90
+ updated_at?: string | null | undefined;
91
+ /** UUID of the filesystem type. (UUID format) */
92
+ filesystem_type_id?: string | undefined;
93
+ /** The SRN of the filesystem. */
94
+ srn?: string | undefined;
95
+ }
96
+ export type CreateSnapshotRequestRegion = "fr-par";
97
+ /** List of tags assigned to the snapshot. */
98
+ export type CreateSnapshotRequestTagsList = Array<string>;
99
+ export interface CreateSnapshotRequest {
100
+ /** The region you want to target */
101
+ region?: CreateSnapshotRequestRegion | (string & {}) | undefined;
102
+ /** UUID of the filesystem to snapshot. (UUID format) */
103
+ filesystem_id: string;
104
+ /** Name of the snapshot. */
105
+ name: string;
106
+ /** UUID of the project to which the filesystem and the snapshot belong. (UUID format) */
107
+ project_id: string;
108
+ /** List of tags assigned to the snapshot. */
109
+ tags?: CreateSnapshotRequestTagsList | undefined;
110
+ }
111
+ export interface SnapshotParentFilesystem {
112
+ /** Parent filesystem UUID (filesystem from which the snapshot originates). (UUID format) */
113
+ id?: string | undefined;
114
+ /** Name of the parent filesystem. */
115
+ name?: string | undefined;
116
+ }
117
+ export type SnapshotStatus =
118
+ | "unknown_status"
119
+ | "available"
120
+ | "error"
121
+ | "creating"
122
+ | "deleting"
123
+ | "deleted"
124
+ | "locked"
125
+ | "cloning";
126
+ /** List of tags assigned to the snapshot. */
127
+ export type SnapshotTagsList = Array<string>;
128
+ export interface Snapshot {
129
+ /** UUID of the snapshot. (UUID format) */
130
+ id?: string | undefined;
131
+ /** Name of the snapshot. */
132
+ name?: string | undefined;
133
+ /** Information about the parent filesystem. If the parent filesystem was deleted, value is null. */
134
+ parent_filesystem?: SnapshotParentFilesystem | undefined;
135
+ /** Snapshot size in bytes. (in bytes) */
136
+ size?: number | null | undefined;
137
+ /** Current status of the snapshot (e.g. creating, available, ...). */
138
+ status?: SnapshotStatus | undefined;
139
+ /** UUID of the project to which the snapshot belongs. (UUID format) */
140
+ project_id?: string | undefined;
141
+ /** UUID of the organization to which the snapshot belongs. (UUID format) */
142
+ organization_id?: string | undefined;
143
+ /** List of tags assigned to the snapshot. */
144
+ tags?: SnapshotTagsList | undefined;
145
+ /** Creation date of the snapshot. (RFC 3339 format) */
146
+ created_at?: string | null | undefined;
147
+ /** Last update date of the properties of the snapshot. (RFC 3339 format) */
148
+ updated_at?: string | null | undefined;
149
+ /** Region where the snapshot is located. */
150
+ region?: string | undefined;
151
+ /** The SRN of the snapshot. */
152
+ srn?: string | undefined;
153
+ }
154
+ export type DeleteFileSystemRequestRegion = "fr-par";
155
+ export interface DeleteFileSystemRequest {
156
+ /** The region you want to target */
157
+ region?: DeleteFileSystemRequestRegion | (string & {}) | undefined;
158
+ /** UUID of the filesystem. (UUID format) */
159
+ filesystem_id: string;
160
+ }
161
+ export interface DeleteFileSystemResponse {}
162
+ export type DeleteSnapshotRequestRegion = "fr-par";
163
+ export interface DeleteSnapshotRequest {
164
+ /** The region you want to target */
165
+ region?: DeleteSnapshotRequestRegion | (string & {}) | undefined;
166
+ /** UUID of the snapshot. (UUID format) */
167
+ snapshot_id: string;
168
+ }
169
+ export type GetFileSystemRequestRegion = "fr-par";
170
+ export interface GetFileSystemRequest {
171
+ /** The region you want to target */
172
+ region?: GetFileSystemRequestRegion | (string & {}) | undefined;
173
+ /** UUID of the filesystem. (UUID format) */
174
+ filesystem_id: string;
175
+ }
176
+ export type GetSnapshotRequestRegion = "fr-par";
177
+ export interface GetSnapshotRequest {
178
+ /** The region you want to target */
179
+ region?: GetSnapshotRequestRegion | (string & {}) | undefined;
180
+ /** UUID of the snapshot. (UUID format) */
181
+ snapshot_id: string;
182
+ }
183
+ export type ListAttachmentsRequestRegion = "fr-par";
184
+ export type AttachmentResourceType = "unknown_resource_type" | "instance_server";
185
+ export interface ListAttachmentsRequest {
186
+ /** The region you want to target */
187
+ region?: ListAttachmentsRequestRegion | (string & {}) | undefined;
188
+ /** UUID of the File Storage volume. (UUID format) */
189
+ filesystem_id?: string | undefined;
190
+ /** Filter by resource ID. (UUID format) */
191
+ resource_id?: string | undefined;
192
+ /** Filter by resource type. */
193
+ resource_type?: AttachmentResourceType | (string & {}) | undefined;
194
+ /** Filter by resource zone. */
195
+ zone?: string | undefined;
196
+ /** Page number (starting at 1). */
197
+ page?: number | undefined;
198
+ /** Number of entries per page (default: 20, max: 100). */
199
+ page_size?: number | undefined;
200
+ }
201
+ export interface Attachment {
202
+ /** UUID of the attachment. (UUID format) */
203
+ id?: string | undefined;
204
+ /** UUID of the filesystem. (UUID format) */
205
+ filesystem_id?: string | undefined;
206
+ /** UUID of the attached resource. (UUID format) */
207
+ resource_id?: string | undefined;
208
+ /** The type of the attached resource. */
209
+ resource_type?: AttachmentResourceType | undefined;
210
+ /** The zone where the resource is located. */
211
+ zone?: string | null | undefined;
212
+ /** The region where the attachment is located. */
213
+ region?: string | undefined;
214
+ /** The SRN of the attachment. */
215
+ srn?: string | undefined;
216
+ }
217
+ /** List of filesystem attachments matching the request criteria. */
218
+ export type ListAttachmentsResponseAttachmentsList = Array<Attachment>;
219
+ export interface ListAttachmentsResponse {
220
+ /** List of filesystem attachments matching the request criteria. */
221
+ attachments: ListAttachmentsResponseAttachmentsList;
222
+ /** Total number of filesystem attachments matching the criteria. */
223
+ total_count?: number | undefined;
224
+ }
225
+ export type ListFileSystemsRequestRegion = "fr-par";
226
+ export type ListFileSystemsRequestOrderBy =
227
+ | "created_at_asc"
228
+ | "created_at_desc"
229
+ | "name_asc"
230
+ | "name_desc";
231
+ export type ListFileSystemsRequestTagsList = Array<string>;
232
+ export type ListFileSystemsRequestFilesystemIdsList = Array<string>;
233
+ export interface ListFileSystemsRequest {
234
+ /** The region you want to target */
235
+ region?: ListFileSystemsRequestRegion | (string & {}) | undefined;
236
+ /** Criteria to use when ordering the list. */
237
+ order_by?: ListFileSystemsRequestOrderBy | (string & {}) | undefined;
238
+ /** Filter by project ID. */
239
+ project_id?: string | undefined;
240
+ /** Filter by organization ID. */
241
+ organization_id?: string | undefined;
242
+ /** Page number (starting at 1). */
243
+ page?: number | undefined;
244
+ /** Number of entries per page (default: 20, max: 100). */
245
+ page_size?: number | undefined;
246
+ /** Filter the returned filesystems by their names. */
247
+ name?: string | undefined;
248
+ /** Type of the filesystem. */
249
+ filesystem_type?: string | undefined;
250
+ /** Filter by tags. Only filesystems with one or more matching tags will be returned. */
251
+ tags?: ListFileSystemsRequestTagsList | undefined;
252
+ /** Filter by filesystem IDs. Only filesystems with one or more matching IDs will be returned. */
253
+ filesystem_ids?: ListFileSystemsRequestFilesystemIdsList | undefined;
254
+ }
255
+ /** List of filesystems matching the request criteria. */
256
+ export type ListFileSystemsResponseFilesystemsList = Array<FileSystem>;
257
+ export interface ListFileSystemsResponse {
258
+ /** List of filesystems matching the request criteria. */
259
+ filesystems: ListFileSystemsResponseFilesystemsList;
260
+ /** Total number of filesystems matching the criteria. */
261
+ total_count?: number | undefined;
262
+ }
263
+ export type ListFileSystemTypesRequestRegion = "fr-par";
264
+ export interface ListFileSystemTypesRequest {
265
+ /** The region you want to target */
266
+ region?: ListFileSystemTypesRequestRegion | (string & {}) | undefined;
267
+ /** Page number (starts at 1). */
268
+ page?: number | undefined;
269
+ /** Number of entries per page (default: 50, max: 100). */
270
+ page_size?: number | undefined;
271
+ }
272
+ export interface GoogleTypeMoney {
273
+ currency_code?: string | undefined;
274
+ units?: number | undefined;
275
+ nanos?: number | undefined;
276
+ }
277
+ export interface FileSystemType {
278
+ /** Filesystem type name. */
279
+ name?: string | undefined;
280
+ /** Price of the filesystem billed in GB/hour. */
281
+ filesystem_price_gb_per_hour?: GoogleTypeMoney | undefined;
282
+ /** Price of the snapshot billed in GB/hour. */
283
+ snapshot_price_gb_per_hour?: GoogleTypeMoney | undefined;
284
+ }
285
+ /** Returns paginated list of filesystem-types. */
286
+ export type ListFileSystemTypesResponseFilesystemTypesList = Array<FileSystemType>;
287
+ export interface ListFileSystemTypesResponse {
288
+ /** Returns paginated list of filesystem-types. */
289
+ filesystem_types: ListFileSystemTypesResponseFilesystemTypesList;
290
+ /** Total number of file system types. */
291
+ total_count?: number | undefined;
292
+ }
293
+ export type ListSnapshotsRequestRegion = "fr-par";
294
+ export type ListSnapshotsRequestOrderBy =
295
+ | "created_at_asc"
296
+ | "created_at_desc"
297
+ | "name_asc"
298
+ | "name_desc";
299
+ export type ListSnapshotsRequestTagsList = Array<string>;
300
+ export type ListSnapshotsRequestSnapshotIdsList = Array<string>;
301
+ export interface ListSnapshotsRequest {
302
+ /** The region you want to target */
303
+ region?: ListSnapshotsRequestRegion | (string & {}) | undefined;
304
+ /** Criteria to use when ordering the list. */
305
+ order_by?: ListSnapshotsRequestOrderBy | (string & {}) | undefined;
306
+ /** Page number (starting at 1). */
307
+ page?: number | undefined;
308
+ /** Number of entries per page (default: 20, max: 100). */
309
+ page_size?: number | undefined;
310
+ /** Filter the returned snapshots by their names. */
311
+ name?: string | undefined;
312
+ /** Filter by tags. Only snapshots with one or more matching tags will be returned. */
313
+ tags?: ListSnapshotsRequestTagsList | undefined;
314
+ /** Filter the returned snapshots by the ID of the original filesystem. */
315
+ filesystem_id?: string | undefined;
316
+ /** Filter by snapshot IDs. Only snapshots with one or more matching IDs will be returned. */
317
+ snapshot_ids?: ListSnapshotsRequestSnapshotIdsList | undefined;
318
+ /** Filter by project ID. One of project_id, organization_id is required. */
319
+ project_id?: string | undefined;
320
+ /** Filter by organization ID. One of project_id, organization_id is required. */
321
+ organization_id?: string | undefined;
322
+ }
323
+ /** List of snapshots matching the request criteria. */
324
+ export type ListSnapshotsResponseSnapshotsList = Array<Snapshot>;
325
+ export interface ListSnapshotsResponse {
326
+ /** List of snapshots matching the request criteria. */
327
+ snapshots: ListSnapshotsResponseSnapshotsList;
328
+ /** Total number of snapshots matching the criteria. */
329
+ total_count?: number | undefined;
330
+ }
331
+ export type UpdateFileSystemRequestRegion = "fr-par";
332
+ /** List of tags assigned to the filesystem. */
333
+ export type UpdateFileSystemRequestTagsList = Array<unknown>;
334
+ export interface UpdateFileSystemRequest {
335
+ /** The region you want to target */
336
+ region?: UpdateFileSystemRequestRegion | (string & {}) | undefined;
337
+ /** UUID of the filesystem. (UUID format) */
338
+ filesystem_id: string;
339
+ /** When defined, is the new name of the filesystem. */
340
+ name?: string | null | undefined;
341
+ /** Optional field for increasing the size of the filesystem (must be larger than the current size). Size in bytes, with a granularity in GB (10^9 bytes). Must be compliant with the minimum (25 GB) and maximum (50 TB) allowed size. */
342
+ size?: number | null | undefined;
343
+ /** List of tags assigned to the filesystem. */
344
+ tags?: UpdateFileSystemRequestTagsList | null | undefined;
345
+ }
346
+ export type UpdateSnapshotRequestRegion = "fr-par";
347
+ /** List of tags assigned to the snapshot. */
348
+ export type UpdateSnapshotRequestTagsList = Array<unknown>;
349
+ export interface UpdateSnapshotRequest {
350
+ /** The region you want to target */
351
+ region?: UpdateSnapshotRequestRegion | (string & {}) | undefined;
352
+ /** UUID of the snapshot. (UUID format) */
353
+ snapshot_id: string;
354
+ /** When defined, is the new name of the snapshot. */
355
+ name?: string | null | undefined;
356
+ /** List of tags assigned to the snapshot. */
357
+ tags?: UpdateSnapshotRequestTagsList | null | undefined;
358
+ }
359
+ export type CreateFileSystemError = ScalewayOpError;
360
+ /** Create a new filesystem To create a new filesystem, you must specify a name, a project ID, and either a size (`from_empty`) or a source snapshot (`from_snapshot`). */
361
+ export const createFileSystem: API.OperationMethod<
362
+ CreateFileSystemRequest,
363
+ FileSystem,
364
+ CreateFileSystemError,
365
+ ScalewayOpContext
366
+ > = /*@__PURE__*/ API.make(() => ({
367
+ input: __S(2, __c0, 2) as any as S.Schema<CreateFileSystemRequest>,
368
+ output: __S(16, __c2, 0) as any as S.Schema<FileSystem>,
369
+ errors: [],
370
+ serviceErrors: ScalewayServiceErrors,
371
+ protocol: ScalewayProtocol,
372
+ retry: Retry.Retry,
373
+ telemetry: TELEMETRY,
374
+ span: "CreateFileSystem",
375
+ }));
376
+
377
+ export type CreateSnapshotError = ScalewayOpError;
378
+ /** Create a snapshot of a filesystem To create a snapshot, the filesystem must be in the `available` status. If your filesystem is in a transient state, you need to wait until the end of the current operation. */
379
+ export const createSnapshot: API.OperationMethod<
380
+ CreateSnapshotRequest,
381
+ Snapshot,
382
+ CreateSnapshotError,
383
+ ScalewayOpContext
384
+ > = /*@__PURE__*/ API.make(() => ({
385
+ input: __S(24, __c3, 0) as any as S.Schema<CreateSnapshotRequest>,
386
+ output: __S(33, __c4, 1) as any as S.Schema<Snapshot>,
387
+ errors: [],
388
+ serviceErrors: ScalewayServiceErrors,
389
+ protocol: ScalewayProtocol,
390
+ retry: Retry.Retry,
391
+ telemetry: TELEMETRY,
392
+ span: "CreateSnapshot",
393
+ }));
394
+
395
+ export type DeleteFileSystemError = ScalewayOpError;
396
+ /** Delete a detached filesystem You must specify the `filesystem_id` of the filesystem you want to delete. */
397
+ export const deleteFileSystem: API.OperationMethod<
398
+ DeleteFileSystemRequest,
399
+ DeleteFileSystemResponse,
400
+ DeleteFileSystemError,
401
+ ScalewayOpContext
402
+ > = /*@__PURE__*/ API.make(() => ({
403
+ input: __S(64, __c8, 0) as any as S.Schema<DeleteFileSystemRequest>,
404
+ output: __S(65, __c8, 1) as any as S.Schema<DeleteFileSystemResponse>,
405
+ errors: [],
406
+ serviceErrors: ScalewayServiceErrors,
407
+ protocol: ScalewayProtocol,
408
+ retry: Retry.Retry,
409
+ telemetry: TELEMETRY,
410
+ span: "DeleteFileSystem",
411
+ }));
412
+
413
+ export type DeleteSnapshotError = ScalewayOpError;
414
+ /** Delete a snapshot You must specify the `snapshot_id` of the snapshot you want to delete. */
415
+ export const deleteSnapshot: API.OperationMethod<
416
+ DeleteSnapshotRequest,
417
+ Snapshot,
418
+ DeleteSnapshotError,
419
+ ScalewayOpContext
420
+ > = /*@__PURE__*/ API.make(() => ({
421
+ input: __S(72, __c9, 0) as any as S.Schema<DeleteSnapshotRequest>,
422
+ output: __S(33, __c4, 1) as any as S.Schema<Snapshot>,
423
+ errors: [],
424
+ serviceErrors: ScalewayServiceErrors,
425
+ protocol: ScalewayProtocol,
426
+ retry: Retry.Retry,
427
+ telemetry: TELEMETRY,
428
+ span: "DeleteSnapshot",
429
+ }));
430
+
431
+ export type GetFileSystemError = ScalewayOpError;
432
+ /** Get filesystem details Retrieve all properties and current status of a specific filesystem identified by its ID. */
433
+ export const getFileSystem: API.OperationMethod<
434
+ GetFileSystemRequest,
435
+ FileSystem,
436
+ GetFileSystemError,
437
+ ScalewayOpContext
438
+ > = /*@__PURE__*/ API.make(() => ({
439
+ input: __S(80, __c10, 0) as any as S.Schema<GetFileSystemRequest>,
440
+ output: __S(16, __c2, 0) as any as S.Schema<FileSystem>,
441
+ errors: [],
442
+ serviceErrors: ScalewayServiceErrors,
443
+ protocol: ScalewayProtocol,
444
+ retry: Retry.Retry,
445
+ telemetry: TELEMETRY,
446
+ span: "GetFileSystem",
447
+ }));
448
+
449
+ export type GetSnapshotError = ScalewayOpError;
450
+ /** Get snapshot details Retrieve all properties and current status of a specific snapshot identified by its ID. */
451
+ export const getSnapshot: API.OperationMethod<
452
+ GetSnapshotRequest,
453
+ Snapshot,
454
+ GetSnapshotError,
455
+ ScalewayOpContext
456
+ > = /*@__PURE__*/ API.make(() => ({
457
+ input: __S(88, __c11, 0) as any as S.Schema<GetSnapshotRequest>,
458
+ output: __S(33, __c4, 1) as any as S.Schema<Snapshot>,
459
+ errors: [],
460
+ serviceErrors: ScalewayServiceErrors,
461
+ protocol: ScalewayProtocol,
462
+ retry: Retry.Retry,
463
+ telemetry: TELEMETRY,
464
+ span: "GetSnapshot",
465
+ }));
466
+
467
+ export type ListAttachmentsError = ScalewayOpError;
468
+ /** List filesystems attachments List all existing attachments in a specified region. By default, the attachments listed are ordered by creation date in ascending order. This can be modified using the `order_by` field. */
469
+ export const listAttachments: API.PaginatedOperationMethod<
470
+ ListAttachmentsRequest,
471
+ ListAttachmentsResponse,
472
+ ListAttachmentsError,
473
+ ScalewayOpContext,
474
+ Attachment
475
+ > = /*@__PURE__*/ API.makePaginated(
476
+ () => ({
477
+ input: __S(96, __c12, 0) as any as S.Schema<ListAttachmentsRequest>,
478
+ output: __S(99, __c12, 3) as any as S.Schema<ListAttachmentsResponse>,
479
+ errors: [],
480
+ serviceErrors: ScalewayServiceErrors,
481
+ protocol: ScalewayProtocol,
482
+ retry: Retry.Retry,
483
+ telemetry: TELEMETRY,
484
+ span: "ListAttachments",
485
+ pagination: {
486
+ mode: "page",
487
+ inputToken: "page",
488
+ outputToken: "total_count",
489
+ items: "attachments",
490
+ pageSize: "page_size",
491
+ } as const,
492
+ }),
493
+ paginateByTotalCount,
494
+ ) as any;
495
+
496
+ export type ListFileSystemsError = ScalewayOpError;
497
+ /** List all filesystems Retrieve all filesystems in the specified region. By default, the filesystems listed are ordered by creation date in ascending order. This can be modified using the `order_by` field. */
498
+ export const listFileSystems: API.PaginatedOperationMethod<
499
+ ListFileSystemsRequest,
500
+ ListFileSystemsResponse,
501
+ ListFileSystemsError,
502
+ ScalewayOpContext,
503
+ FileSystem
504
+ > = /*@__PURE__*/ API.makePaginated(
505
+ () => ({
506
+ input: __S(104, __c13, 0) as any as S.Schema<ListFileSystemsRequest>,
507
+ output: __S(106, __c13, 2) as any as S.Schema<ListFileSystemsResponse>,
508
+ errors: [],
509
+ serviceErrors: ScalewayServiceErrors,
510
+ protocol: ScalewayProtocol,
511
+ retry: Retry.Retry,
512
+ telemetry: TELEMETRY,
513
+ span: "ListFileSystems",
514
+ pagination: {
515
+ mode: "page",
516
+ inputToken: "page",
517
+ outputToken: "total_count",
518
+ items: "filesystems",
519
+ pageSize: "page_size",
520
+ } as const,
521
+ }),
522
+ paginateByTotalCount,
523
+ ) as any;
524
+
525
+ export type ListFileSystemTypesError = ScalewayOpError;
526
+ /** List filesystems types */
527
+ export const listFileSystemTypes: API.PaginatedOperationMethod<
528
+ ListFileSystemTypesRequest,
529
+ ListFileSystemTypesResponse,
530
+ ListFileSystemTypesError,
531
+ ScalewayOpContext,
532
+ FileSystemType
533
+ > = /*@__PURE__*/ API.makePaginated(
534
+ () => ({
535
+ input: __S(112, __c14, 0) as any as S.Schema<ListFileSystemTypesRequest>,
536
+ output: __S(116, __c14, 4) as any as S.Schema<ListFileSystemTypesResponse>,
537
+ errors: [],
538
+ serviceErrors: ScalewayServiceErrors,
539
+ protocol: ScalewayProtocol,
540
+ retry: Retry.Retry,
541
+ telemetry: TELEMETRY,
542
+ span: "ListFileSystemTypes",
543
+ pagination: {
544
+ mode: "page",
545
+ inputToken: "page",
546
+ outputToken: "total_count",
547
+ items: "filesystem_types",
548
+ pageSize: "page_size",
549
+ } as const,
550
+ }),
551
+ paginateByTotalCount,
552
+ ) as any;
553
+
554
+ export type ListSnapshotsError = ScalewayOpError;
555
+ /** List all snapshots Retrieve all snapshots in the specified region. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified using the `order_by` field. */
556
+ export const listSnapshots: API.PaginatedOperationMethod<
557
+ ListSnapshotsRequest,
558
+ ListSnapshotsResponse,
559
+ ListSnapshotsError,
560
+ ScalewayOpContext,
561
+ Snapshot
562
+ > = /*@__PURE__*/ API.makePaginated(
563
+ () => ({
564
+ input: __S(120, __c15, 0) as any as S.Schema<ListSnapshotsRequest>,
565
+ output: __S(122, __c15, 2) as any as S.Schema<ListSnapshotsResponse>,
566
+ errors: [],
567
+ serviceErrors: ScalewayServiceErrors,
568
+ protocol: ScalewayProtocol,
569
+ retry: Retry.Retry,
570
+ telemetry: TELEMETRY,
571
+ span: "ListSnapshots",
572
+ pagination: {
573
+ mode: "page",
574
+ inputToken: "page",
575
+ outputToken: "total_count",
576
+ items: "snapshots",
577
+ pageSize: "page_size",
578
+ } as const,
579
+ }),
580
+ paginateByTotalCount,
581
+ ) as any;
582
+
583
+ export type UpdateFileSystemError = ScalewayOpError;
584
+ /** Update filesystem properties Update the technical details of a filesystem, such as its name, tags or its new size. */
585
+ export const updateFileSystem: API.OperationMethod<
586
+ UpdateFileSystemRequest,
587
+ FileSystem,
588
+ UpdateFileSystemError,
589
+ ScalewayOpContext
590
+ > = /*@__PURE__*/ API.make(() => ({
591
+ input: __S(40, __c5, 0) as any as S.Schema<UpdateFileSystemRequest>,
592
+ output: __S(16, __c2, 0) as any as S.Schema<FileSystem>,
593
+ errors: [],
594
+ serviceErrors: ScalewayServiceErrors,
595
+ protocol: ScalewayProtocol,
596
+ retry: Retry.Retry,
597
+ telemetry: TELEMETRY,
598
+ span: "UpdateFileSystem",
599
+ }));
600
+
601
+ export type UpdateSnapshotError = ScalewayOpError;
602
+ /** Update snapshot properties Update the name or tags of a snapshot. */
603
+ export const updateSnapshot: API.OperationMethod<
604
+ UpdateSnapshotRequest,
605
+ Snapshot,
606
+ UpdateSnapshotError,
607
+ ScalewayOpContext
608
+ > = /*@__PURE__*/ API.make(() => ({
609
+ input: __S(56, __c7, 0) as any as S.Schema<UpdateSnapshotRequest>,
610
+ output: __S(33, __c4, 1) as any as S.Schema<Snapshot>,
611
+ errors: [],
612
+ serviceErrors: ScalewayServiceErrors,
613
+ protocol: ScalewayProtocol,
614
+ retry: Retry.Retry,
615
+ telemetry: TELEMETRY,
616
+ span: "UpdateSnapshot",
617
+ }));
618
+
619
+ // Schema builders: each runs one schema initializer, on that schema's first use.
620
+ function __c0(j: number): any {
621
+ switch (j) {
622
+ case 0:
623
+ return S.suspend(() =>
624
+ S.Struct({
625
+ size: S.Number,
626
+ }),
627
+ ).annotate({ identifier: "CreateFileSystemRequestFromEmpty" });
628
+ case 1:
629
+ return S.suspend(() =>
630
+ S.Struct({
631
+ size: S.optional(S.NullOr(S.Number)),
632
+ snapshot_id: S.String,
633
+ }),
634
+ ).annotate({ identifier: "CreateFileSystemRequestFromSnapshot" });
635
+ case 2:
636
+ return S.suspend(() =>
637
+ S.Struct({
638
+ region: S.optional(S.String.pipe(T.Label())),
639
+ name: S.String,
640
+ project_id: S.String,
641
+ size: S.optional(S.Number),
642
+ from_empty: S.optional(S.NullOr(__S(0, __c0, 0))),
643
+ from_snapshot: S.optional(S.NullOr(__S(1, __c0, 1))),
644
+ type: S.optional(S.NullOr(S.String)),
645
+ tags: S.optional(__S(8, __c1, 0)),
646
+ }).pipe(
647
+ T.Http({
648
+ method: "POST",
649
+ uri: "/file/v1alpha1/regions/{region}/filesystems",
650
+ code: 200,
651
+ baseUrl: "https://api.scaleway.com",
652
+ }),
653
+ ),
654
+ ).annotate({ identifier: "CreateFileSystemRequest" });
655
+ }
656
+ }
657
+ function __c1(j: number): any {
658
+ switch (j) {
659
+ case 0:
660
+ return S.Array(S.String);
661
+ }
662
+ }
663
+ function __c2(j: number): any {
664
+ switch (j) {
665
+ case 0:
666
+ return S.suspend(() =>
667
+ S.Struct({
668
+ id: S.optional(S.String),
669
+ name: S.optional(S.String),
670
+ size: S.optional(S.Number),
671
+ status: S.optional(S.String),
672
+ project_id: S.optional(S.String),
673
+ organization_id: S.optional(S.String),
674
+ tags: S.optional(__S(8, __c1, 0)),
675
+ number_of_attachments: S.optional(S.Number),
676
+ region: S.optional(S.String),
677
+ created_at: S.optional(S.NullOr(S.String)),
678
+ updated_at: S.optional(S.NullOr(S.String)),
679
+ filesystem_type_id: S.optional(S.String),
680
+ srn: S.optional(S.String),
681
+ }),
682
+ ).annotate({ identifier: "FileSystem" });
683
+ }
684
+ }
685
+ function __c3(j: number): any {
686
+ switch (j) {
687
+ case 0:
688
+ return S.suspend(() =>
689
+ S.Struct({
690
+ region: S.optional(S.String.pipe(T.Label())),
691
+ filesystem_id: S.String,
692
+ name: S.String,
693
+ project_id: S.String,
694
+ tags: S.optional(__S(8, __c1, 0)),
695
+ }).pipe(
696
+ T.Http({
697
+ method: "POST",
698
+ uri: "/file/v1alpha1/regions/{region}/snapshots",
699
+ code: 200,
700
+ baseUrl: "https://api.scaleway.com",
701
+ }),
702
+ ),
703
+ ).annotate({ identifier: "CreateSnapshotRequest" });
704
+ }
705
+ }
706
+ function __c4(j: number): any {
707
+ switch (j) {
708
+ case 0:
709
+ return S.suspend(() =>
710
+ S.Struct({
711
+ id: S.optional(S.String),
712
+ name: S.optional(S.String),
713
+ }),
714
+ ).annotate({ identifier: "SnapshotParentFilesystem" });
715
+ case 1:
716
+ return S.suspend(() =>
717
+ S.Struct({
718
+ id: S.optional(S.String),
719
+ name: S.optional(S.String),
720
+ parent_filesystem: S.optional(__S(32, __c4, 0)),
721
+ size: S.optional(S.NullOr(S.Number)),
722
+ status: S.optional(S.String),
723
+ project_id: S.optional(S.String),
724
+ organization_id: S.optional(S.String),
725
+ tags: S.optional(__S(8, __c1, 0)),
726
+ created_at: S.optional(S.NullOr(S.String)),
727
+ updated_at: S.optional(S.NullOr(S.String)),
728
+ region: S.optional(S.String),
729
+ srn: S.optional(S.String),
730
+ }),
731
+ ).annotate({ identifier: "Snapshot" });
732
+ }
733
+ }
734
+ function __c5(j: number): any {
735
+ switch (j) {
736
+ case 0:
737
+ return S.suspend(() =>
738
+ S.Struct({
739
+ region: S.optional(S.String.pipe(T.Label())),
740
+ filesystem_id: S.String.pipe(T.Label()),
741
+ name: S.optional(S.NullOr(S.String)),
742
+ size: S.optional(S.NullOr(S.Number)),
743
+ tags: S.optional(S.NullOr(__S(48, __c6, 0))),
744
+ }).pipe(
745
+ T.Http({
746
+ method: "PATCH",
747
+ uri: "/file/v1alpha1/regions/{region}/filesystems/{filesystem_id}",
748
+ code: 200,
749
+ baseUrl: "https://api.scaleway.com",
750
+ }),
751
+ ),
752
+ ).annotate({ identifier: "UpdateFileSystemRequest" });
753
+ }
754
+ }
755
+ function __c6(j: number): any {
756
+ switch (j) {
757
+ case 0:
758
+ return S.Array(S.Unknown);
759
+ }
760
+ }
761
+ function __c7(j: number): any {
762
+ switch (j) {
763
+ case 0:
764
+ return S.suspend(() =>
765
+ S.Struct({
766
+ region: S.optional(S.String.pipe(T.Label())),
767
+ snapshot_id: S.String.pipe(T.Label()),
768
+ name: S.optional(S.NullOr(S.String)),
769
+ tags: S.optional(S.NullOr(__S(48, __c6, 0))),
770
+ }).pipe(
771
+ T.Http({
772
+ method: "PATCH",
773
+ uri: "/file/v1alpha1/regions/{region}/snapshots/{snapshot_id}",
774
+ code: 200,
775
+ baseUrl: "https://api.scaleway.com",
776
+ }),
777
+ ),
778
+ ).annotate({ identifier: "UpdateSnapshotRequest" });
779
+ }
780
+ }
781
+ function __c8(j: number): any {
782
+ switch (j) {
783
+ case 0:
784
+ return S.suspend(() =>
785
+ S.Struct({
786
+ region: S.optional(S.String.pipe(T.Label())),
787
+ filesystem_id: S.String.pipe(T.Label()),
788
+ }).pipe(
789
+ T.Http({
790
+ method: "DELETE",
791
+ uri: "/file/v1alpha1/regions/{region}/filesystems/{filesystem_id}",
792
+ code: 200,
793
+ baseUrl: "https://api.scaleway.com",
794
+ }),
795
+ ),
796
+ ).annotate({ identifier: "DeleteFileSystemRequest" });
797
+ case 1:
798
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteFileSystemResponse" });
799
+ }
800
+ }
801
+ function __c9(j: number): any {
802
+ switch (j) {
803
+ case 0:
804
+ return S.suspend(() =>
805
+ S.Struct({
806
+ region: S.optional(S.String.pipe(T.Label())),
807
+ snapshot_id: S.String.pipe(T.Label()),
808
+ }).pipe(
809
+ T.Http({
810
+ method: "DELETE",
811
+ uri: "/file/v1alpha1/regions/{region}/snapshots/{snapshot_id}",
812
+ code: 200,
813
+ baseUrl: "https://api.scaleway.com",
814
+ }),
815
+ ),
816
+ ).annotate({ identifier: "DeleteSnapshotRequest" });
817
+ }
818
+ }
819
+ function __c10(j: number): any {
820
+ switch (j) {
821
+ case 0:
822
+ return S.suspend(() =>
823
+ S.Struct({
824
+ region: S.optional(S.String.pipe(T.Label())),
825
+ filesystem_id: S.String.pipe(T.Label()),
826
+ }).pipe(
827
+ T.Http({
828
+ method: "GET",
829
+ uri: "/file/v1alpha1/regions/{region}/filesystems/{filesystem_id}",
830
+ code: 200,
831
+ baseUrl: "https://api.scaleway.com",
832
+ }),
833
+ ),
834
+ ).annotate({ identifier: "GetFileSystemRequest" });
835
+ }
836
+ }
837
+ function __c11(j: number): any {
838
+ switch (j) {
839
+ case 0:
840
+ return S.suspend(() =>
841
+ S.Struct({
842
+ region: S.optional(S.String.pipe(T.Label())),
843
+ snapshot_id: S.String.pipe(T.Label()),
844
+ }).pipe(
845
+ T.Http({
846
+ method: "GET",
847
+ uri: "/file/v1alpha1/regions/{region}/snapshots/{snapshot_id}",
848
+ code: 200,
849
+ baseUrl: "https://api.scaleway.com",
850
+ }),
851
+ ),
852
+ ).annotate({ identifier: "GetSnapshotRequest" });
853
+ }
854
+ }
855
+ function __c12(j: number): any {
856
+ switch (j) {
857
+ case 0:
858
+ return S.suspend(() =>
859
+ S.Struct({
860
+ region: S.optional(S.String.pipe(T.Label())),
861
+ filesystem_id: S.optional(S.String.pipe(T.Query())),
862
+ resource_id: S.optional(S.String.pipe(T.Query())),
863
+ resource_type: S.optional(S.String.pipe(T.Query())),
864
+ zone: S.optional(S.String.pipe(T.Query())),
865
+ page: S.optional(S.Number.pipe(T.Query())),
866
+ page_size: S.optional(S.Number.pipe(T.Query())),
867
+ }).pipe(
868
+ T.Http({
869
+ method: "GET",
870
+ uri: "/file/v1alpha1/regions/{region}/attachments",
871
+ code: 200,
872
+ baseUrl: "https://api.scaleway.com",
873
+ }),
874
+ ),
875
+ ).annotate({ identifier: "ListAttachmentsRequest" });
876
+ case 1:
877
+ return S.suspend(() =>
878
+ S.Struct({
879
+ id: S.optional(S.String),
880
+ filesystem_id: S.optional(S.String),
881
+ resource_id: S.optional(S.String),
882
+ resource_type: S.optional(S.String),
883
+ zone: S.optional(S.NullOr(S.String)),
884
+ region: S.optional(S.String),
885
+ srn: S.optional(S.String),
886
+ }),
887
+ ).annotate({ identifier: "Attachment" });
888
+ case 2:
889
+ return S.Array(__S(97, __c12, 1));
890
+ case 3:
891
+ return S.suspend(() =>
892
+ S.Struct({
893
+ attachments: __S(98, __c12, 2),
894
+ total_count: S.optional(S.Number),
895
+ }),
896
+ ).annotate({ identifier: "ListAttachmentsResponse" });
897
+ }
898
+ }
899
+ function __c13(j: number): any {
900
+ switch (j) {
901
+ case 0:
902
+ return S.suspend(() =>
903
+ S.Struct({
904
+ region: S.optional(S.String.pipe(T.Label())),
905
+ order_by: S.optional(S.String.pipe(T.Query())),
906
+ project_id: S.optional(S.String.pipe(T.Query())),
907
+ organization_id: S.optional(S.String.pipe(T.Query())),
908
+ page: S.optional(S.Number.pipe(T.Query())),
909
+ page_size: S.optional(S.Number.pipe(T.Query())),
910
+ name: S.optional(S.String.pipe(T.Query())),
911
+ filesystem_type: S.optional(S.String.pipe(T.Query())),
912
+ tags: S.optional(__S(8, __c1, 0).pipe(T.Query())),
913
+ filesystem_ids: S.optional(__S(8, __c1, 0).pipe(T.Query())),
914
+ }).pipe(
915
+ T.Http({
916
+ method: "GET",
917
+ uri: "/file/v1alpha1/regions/{region}/filesystems",
918
+ code: 200,
919
+ baseUrl: "https://api.scaleway.com",
920
+ }),
921
+ ),
922
+ ).annotate({ identifier: "ListFileSystemsRequest" });
923
+ case 1:
924
+ return S.Array(__S(16, __c2, 0));
925
+ case 2:
926
+ return S.suspend(() =>
927
+ S.Struct({
928
+ filesystems: __S(105, __c13, 1),
929
+ total_count: S.optional(S.Number),
930
+ }),
931
+ ).annotate({ identifier: "ListFileSystemsResponse" });
932
+ }
933
+ }
934
+ function __c14(j: number): any {
935
+ switch (j) {
936
+ case 0:
937
+ return S.suspend(() =>
938
+ S.Struct({
939
+ region: S.optional(S.String.pipe(T.Label())),
940
+ page: S.optional(S.Number.pipe(T.Query())),
941
+ page_size: S.optional(S.Number.pipe(T.Query())),
942
+ }).pipe(
943
+ T.Http({
944
+ method: "GET",
945
+ uri: "/file/v1alpha1/regions/{region}/filesystem-types",
946
+ code: 200,
947
+ baseUrl: "https://api.scaleway.com",
948
+ }),
949
+ ),
950
+ ).annotate({ identifier: "ListFileSystemTypesRequest" });
951
+ case 1:
952
+ return S.suspend(() =>
953
+ S.Struct({
954
+ currency_code: S.optional(S.String),
955
+ units: S.optional(S.Number),
956
+ nanos: S.optional(S.Number),
957
+ }),
958
+ ).annotate({ identifier: "GoogleTypeMoney" });
959
+ case 2:
960
+ return S.suspend(() =>
961
+ S.Struct({
962
+ name: S.optional(S.String),
963
+ filesystem_price_gb_per_hour: S.optional(__S(113, __c14, 1)),
964
+ snapshot_price_gb_per_hour: S.optional(__S(113, __c14, 1)),
965
+ }),
966
+ ).annotate({ identifier: "FileSystemType" });
967
+ case 3:
968
+ return S.Array(__S(114, __c14, 2));
969
+ case 4:
970
+ return S.suspend(() =>
971
+ S.Struct({
972
+ filesystem_types: __S(115, __c14, 3),
973
+ total_count: S.optional(S.Number),
974
+ }),
975
+ ).annotate({ identifier: "ListFileSystemTypesResponse" });
976
+ }
977
+ }
978
+ function __c15(j: number): any {
979
+ switch (j) {
980
+ case 0:
981
+ return S.suspend(() =>
982
+ S.Struct({
983
+ region: S.optional(S.String.pipe(T.Label())),
984
+ order_by: S.optional(S.String.pipe(T.Query())),
985
+ page: S.optional(S.Number.pipe(T.Query())),
986
+ page_size: S.optional(S.Number.pipe(T.Query())),
987
+ name: S.optional(S.String.pipe(T.Query())),
988
+ tags: S.optional(__S(8, __c1, 0).pipe(T.Query())),
989
+ filesystem_id: S.optional(S.String.pipe(T.Query())),
990
+ snapshot_ids: S.optional(__S(8, __c1, 0).pipe(T.Query())),
991
+ project_id: S.optional(S.String.pipe(T.Query())),
992
+ organization_id: S.optional(S.String.pipe(T.Query())),
993
+ }).pipe(
994
+ T.Http({
995
+ method: "GET",
996
+ uri: "/file/v1alpha1/regions/{region}/snapshots",
997
+ code: 200,
998
+ baseUrl: "https://api.scaleway.com",
999
+ }),
1000
+ ),
1001
+ ).annotate({ identifier: "ListSnapshotsRequest" });
1002
+ case 1:
1003
+ return S.Array(__S(33, __c4, 1));
1004
+ case 2:
1005
+ return S.suspend(() =>
1006
+ S.Struct({
1007
+ snapshots: __S(121, __c15, 1),
1008
+ total_count: S.optional(S.Number),
1009
+ }),
1010
+ ).annotate({ identifier: "ListSnapshotsResponse" });
1011
+ }
1012
+ }
1013
+ // Schema table: entry i is schema j of builder f, made on first reach.
1014
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1015
+ return (__s[i] ??= __L.at(f, j));
1016
+ }