@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,1103 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
+ import { ScalewayServiceErrors } from "../errors.ts";
6
+ import { paginateToken } from "../pagination.ts";
7
+ import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
8
+ import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
12
+
13
+ export type { ScalewayOpError, ScalewayOpContext };
14
+
15
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
16
+ const TELEMETRY = {
17
+ system: "scaleway-api",
18
+ responseHeaders: [
19
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
20
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
21
+ ],
22
+ prefix: "Scaleway",
23
+ service: "AutoscalingV1alpha2",
24
+ labels: "scaleway",
25
+ propagate: "w3c",
26
+ } as const;
27
+
28
+ export type CreateGroupRequestZone =
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
+ /** Tags associated with the group. */
42
+ export type CreateGroupRequestTagsList = Array<string>;
43
+ export interface GroupScalingPolicyScalingPolicyFixedSize {
44
+ size?: number | undefined;
45
+ }
46
+ export interface GroupScalingPolicyScalingPolicyCpuTarget {
47
+ target_avg_percent?: number | undefined;
48
+ }
49
+ export type GroupScalingPolicyScalingPolicyMemoryTarget = GroupScalingPolicyScalingPolicyCpuTarget;
50
+ export interface ScalingPolicySpec {
51
+ /** Minimum number of instances in the group. */
52
+ minimum_size?: number | null | undefined;
53
+ /** Maximum number of instances in the group. */
54
+ maximum_size?: number | null | undefined;
55
+ /** Cooldown period after a scale out event. (in seconds) */
56
+ scale_out_cooldown?: string | null | undefined;
57
+ /** Cooldown period after a scale in event. (in seconds) */
58
+ scale_in_cooldown?: string | null | undefined;
59
+ /** Number of instances to remove in a single scale in event. */
60
+ scale_in_step?: number | null | undefined;
61
+ /** Number of instances to add in a single scale out event. */
62
+ scale_out_step?: number | null | undefined;
63
+ /** Fixed size scaling policy configuration. Precisely one of fixed_size, cpu_target, memory_target can be set. */
64
+ fixed_size?: GroupScalingPolicyScalingPolicyFixedSize | null | undefined;
65
+ /** CPU target scaling policy configuration. Precisely one of fixed_size, cpu_target, memory_target can be set. */
66
+ cpu_target?: GroupScalingPolicyScalingPolicyCpuTarget | null | undefined;
67
+ /** Memory target scaling policy configuration. Precisely one of fixed_size, cpu_target, memory_target can be set. */
68
+ memory_target?: GroupScalingPolicyScalingPolicyCpuTarget | null | undefined;
69
+ }
70
+ export type GroupLoadBalancerConfigurationBackendAddressFamily =
71
+ | "unknown_address_family"
72
+ | "ipv4"
73
+ | "ipv6";
74
+ export interface LoadBalancerConfigurationSpecBackend {
75
+ /** ID of the load balancer backend. */
76
+ backend_id?: string | undefined;
77
+ /** IP address family (IPv4 or IPv6). */
78
+ address_family?: GroupLoadBalancerConfigurationBackendAddressFamily | (string & {}) | undefined;
79
+ /** Optional private network ID. */
80
+ private_network_id?: string | null | undefined;
81
+ }
82
+ /** List of load balancer backend configurations. */
83
+ export type LoadBalancerConfigurationSpecBackendsList = Array<LoadBalancerConfigurationSpecBackend>;
84
+ export interface LoadBalancerConfigurationSpecAutoHealing {
85
+ /** Whether auto-healing is enabled. */
86
+ enabled?: boolean | null | undefined;
87
+ /** Grace period for health checks. (in seconds) */
88
+ grace_period?: string | null | undefined;
89
+ }
90
+ export interface LoadBalancerConfigurationSpec {
91
+ /** ID of the load balancer (set to empty to disable). */
92
+ load_balancer_id?: string | null | undefined;
93
+ /** List of load balancer backend configurations. */
94
+ backends?: LoadBalancerConfigurationSpecBackendsList | undefined;
95
+ /** Auto-healing configuration. */
96
+ auto_healing?: LoadBalancerConfigurationSpecAutoHealing | undefined;
97
+ }
98
+ export interface CreateGroupRequest {
99
+ /** The zone you want to target */
100
+ zone?: CreateGroupRequestZone | (string & {}) | undefined;
101
+ /** Project ID to create the group in. */
102
+ project_id?: string | undefined;
103
+ /** Name of the autoscaling group. */
104
+ name?: string | undefined;
105
+ /** Tags associated with the group. */
106
+ tags?: CreateGroupRequestTagsList | undefined;
107
+ /** Template ID for instances in this group. */
108
+ template_id?: string | undefined;
109
+ /** Scaling policy configuration. */
110
+ scaling_policy_spec?: ScalingPolicySpec | undefined;
111
+ /** Optional load balancer configuration. */
112
+ load_balancer_configuration_spec?: LoadBalancerConfigurationSpec | undefined;
113
+ }
114
+ /** Tags associated with the group. */
115
+ export type GroupTagsList = Array<string>;
116
+ export type GroupGroupStatus =
117
+ | "unknown_group_status"
118
+ | "active"
119
+ | "scaling_out"
120
+ | "scaling_in"
121
+ | "refreshing"
122
+ | "healing"
123
+ | "scaling_failure"
124
+ | "deleting";
125
+ export type AlertAlertType =
126
+ | "unknown_alert_type"
127
+ | "quotas_exceeded"
128
+ | "out_of_stock"
129
+ | "invalid_template"
130
+ | "template_not_found"
131
+ | "invalid_instance"
132
+ | "template_permissions_denied"
133
+ | "load_balancer_not_found"
134
+ | "load_balancer_permissions_denied"
135
+ | "backend_not_found"
136
+ | "backend_permissions_denied";
137
+ /** List of quota names that are exceeded (for quotas_exceeded alerts). */
138
+ export type AlertFailingQuotasList = Array<string>;
139
+ export interface Alert {
140
+ /** Type of alert. */
141
+ type?: AlertAlertType | undefined;
142
+ /** Timestamp when the alert was opened. (RFC 3339 format) */
143
+ opened_at?: string | null | undefined;
144
+ /** Optional timestamp when the alert was closed. (RFC 3339 format) */
145
+ closed_at?: string | null | undefined;
146
+ /** ID of the group. */
147
+ group_id?: string | undefined;
148
+ /** List of quota names that are exceeded (for quotas_exceeded alerts). */
149
+ failing_quotas?: AlertFailingQuotasList | undefined;
150
+ }
151
+ /** List of active alerts on the group. */
152
+ export type GroupOpenAlertsList = Array<Alert>;
153
+ export interface GroupScalingPolicy {
154
+ minimum_size?: number | undefined;
155
+ maximum_size?: number | undefined;
156
+ /** (in seconds) */
157
+ scale_out_cooldown?: string | null | undefined;
158
+ /** (in seconds) */
159
+ scale_in_cooldown?: string | null | undefined;
160
+ scale_in_step?: number | undefined;
161
+ scale_out_step?: number | undefined;
162
+ /** Precisely one of fixed_size, cpu_target, memory_target can be set. */
163
+ fixed_size?: GroupScalingPolicyScalingPolicyFixedSize | null | undefined;
164
+ /** Precisely one of fixed_size, cpu_target, memory_target can be set. */
165
+ cpu_target?: GroupScalingPolicyScalingPolicyCpuTarget | null | undefined;
166
+ /** Precisely one of fixed_size, cpu_target, memory_target can be set. */
167
+ memory_target?: GroupScalingPolicyScalingPolicyCpuTarget | null | undefined;
168
+ }
169
+ export interface GroupLoadBalancerConfigurationBackend {
170
+ backend_id?: string | undefined;
171
+ address_family?: GroupLoadBalancerConfigurationBackendAddressFamily | undefined;
172
+ private_network_id?: string | null | undefined;
173
+ }
174
+ export type GroupLoadBalancerConfigurationBackendsList =
175
+ Array<GroupLoadBalancerConfigurationBackend>;
176
+ export interface GroupLoadBalancerConfigurationAutoHealing {
177
+ enabled?: boolean | undefined;
178
+ /** (in seconds) */
179
+ grace_period?: string | null | undefined;
180
+ }
181
+ export interface GroupLoadBalancerConfiguration {
182
+ load_balancer_id?: string | undefined;
183
+ backends?: GroupLoadBalancerConfigurationBackendsList | undefined;
184
+ auto_healing?: GroupLoadBalancerConfigurationAutoHealing | undefined;
185
+ }
186
+ export interface Group {
187
+ /** SRN of the Autoscaling Group. */
188
+ srn?: string | undefined;
189
+ /** Unique identifier of the autoscaling group. */
190
+ id?: string | undefined;
191
+ /** Project ID owning this group. */
192
+ project_id?: string | undefined;
193
+ /** Name of the autoscaling group. */
194
+ name?: string | undefined;
195
+ /** Tags associated with the group. */
196
+ tags?: GroupTagsList | undefined;
197
+ /** Creation timestamp of the group. (RFC 3339 format) */
198
+ created_at?: string | null | undefined;
199
+ /** Last update timestamp of the group. (RFC 3339 format) */
200
+ updated_at?: string | null | undefined;
201
+ /** Current status of the autoscaling group. */
202
+ status?: GroupGroupStatus | undefined;
203
+ /** List of active alerts on the group. */
204
+ open_alerts?: GroupOpenAlertsList | undefined;
205
+ /** Current number of instances in the group. */
206
+ current_size?: number | undefined;
207
+ /** Target number of instances the group is scaling to. */
208
+ target_size?: number | undefined;
209
+ /** Timestamp of the last scale out event. (RFC 3339 format) */
210
+ last_scale_out_at?: string | null | undefined;
211
+ /** Timestamp of the last scale in event. (RFC 3339 format) */
212
+ last_scale_in_at?: string | null | undefined;
213
+ /** The Instance template ID used to create instances in this group. */
214
+ template_id?: string | undefined;
215
+ /** Scaling policy configuration. */
216
+ scaling_policy?: GroupScalingPolicy | undefined;
217
+ /** Optional load balancer configuration. */
218
+ load_balancer_configuration?: GroupLoadBalancerConfiguration | undefined;
219
+ /** Zone of the Autoscaling Group. */
220
+ zone?: string | undefined;
221
+ }
222
+ export type DeleteGroupRequestZone =
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 DeleteGroupRequest {
236
+ /** The zone you want to target */
237
+ zone?: DeleteGroupRequestZone | (string & {}) | undefined;
238
+ /** ID of the group to delete. */
239
+ group_id: string;
240
+ }
241
+ export type GetGroupRequestZone =
242
+ | "fr-par-1"
243
+ | "fr-par-2"
244
+ | "fr-par-3"
245
+ | "nl-ams-1"
246
+ | "nl-ams-2"
247
+ | "nl-ams-3"
248
+ | "pl-waw-1"
249
+ | "pl-waw-2"
250
+ | "pl-waw-3"
251
+ | "it-mil-1"
252
+ | "it-mil-2"
253
+ | "it-mil-3";
254
+ export interface GetGroupRequest {
255
+ /** The zone you want to target */
256
+ zone?: GetGroupRequestZone | (string & {}) | undefined;
257
+ /** ID of the group to get. */
258
+ group_id: string;
259
+ }
260
+ export type ListAlertsRequestZone =
261
+ | "fr-par-1"
262
+ | "fr-par-2"
263
+ | "fr-par-3"
264
+ | "nl-ams-1"
265
+ | "nl-ams-2"
266
+ | "nl-ams-3"
267
+ | "pl-waw-1"
268
+ | "pl-waw-2"
269
+ | "pl-waw-3"
270
+ | "it-mil-1"
271
+ | "it-mil-2"
272
+ | "it-mil-3";
273
+ export interface ListAlertsRequest {
274
+ /** The zone you want to target */
275
+ zone?: ListAlertsRequestZone | (string & {}) | undefined;
276
+ page_token?: string | undefined;
277
+ page_size?: number | undefined;
278
+ /** Instance group ID to list alerts for. One-of `scope`: at most one of `group_id`, `project_id`. */
279
+ group_id?: string | undefined;
280
+ /** Project ID to list alerts for. One-of `scope`: at most one of `group_id`, `project_id`. */
281
+ project_id?: string | undefined;
282
+ }
283
+ /** List of alerts. */
284
+ export type ListAlertsResponseAlertsList = Array<Alert>;
285
+ export interface ListAlertsResponse {
286
+ /** List of alerts. */
287
+ alerts: ListAlertsResponseAlertsList;
288
+ /** Token for the next page of results. */
289
+ next_page_token?: string | null | undefined;
290
+ /** Total number of alerts. */
291
+ total_count?: number | undefined;
292
+ }
293
+ export type ListGroupsRequestZone =
294
+ | "fr-par-1"
295
+ | "fr-par-2"
296
+ | "fr-par-3"
297
+ | "nl-ams-1"
298
+ | "nl-ams-2"
299
+ | "nl-ams-3"
300
+ | "pl-waw-1"
301
+ | "pl-waw-2"
302
+ | "pl-waw-3"
303
+ | "it-mil-1"
304
+ | "it-mil-2"
305
+ | "it-mil-3";
306
+ export type ListGroupsRequestOrderBy = "created_at_desc" | "created_at_asc";
307
+ export interface ListGroupsRequest {
308
+ /** The zone you want to target */
309
+ zone?: ListGroupsRequestZone | (string & {}) | undefined;
310
+ /** Order criteria for listing groups. */
311
+ order_by?: ListGroupsRequestOrderBy | (string & {}) | undefined;
312
+ /** Page size for pagination. */
313
+ page_size?: number | undefined;
314
+ /** Token for pagination. */
315
+ page_token?: string | undefined;
316
+ /** Project ID to filter groups. */
317
+ project_id: string;
318
+ /** Template ID to filter groups. */
319
+ template_id?: string | undefined;
320
+ /** Load balancer ID to filter groups. */
321
+ load_balancer_id?: string | undefined;
322
+ }
323
+ /** Tags associated with the group. */
324
+ export type GroupSummaryTagsList = Array<string>;
325
+ export type GroupSummaryScalingPolicyTargetType =
326
+ | "unknown_scaling_policy_target_type"
327
+ | "fixed_size"
328
+ | "cpu_target"
329
+ | "memory_target";
330
+ export interface GroupSummary {
331
+ /** SRN of the Autoscaling Group. */
332
+ srn?: string | undefined;
333
+ /** Project ID owning this group. */
334
+ project_id?: string | undefined;
335
+ /** Unique identifier of the autoscaling group. */
336
+ id?: string | undefined;
337
+ /** Name of the autoscaling group. */
338
+ name?: string | undefined;
339
+ /** Tags associated with the group. */
340
+ tags?: GroupSummaryTagsList | undefined;
341
+ /** Current status of the autoscaling group. */
342
+ status?: GroupGroupStatus | undefined;
343
+ /** Creation timestamp of the group. (RFC 3339 format) */
344
+ created_at?: string | null | undefined;
345
+ /** Last update timestamp of the group. (RFC 3339 format) */
346
+ updated_at?: string | null | undefined;
347
+ /** The Instance template ID used to create instances in this group. */
348
+ template_id?: string | undefined;
349
+ /** Optional load balancer ID. */
350
+ load_balancer_id?: string | null | undefined;
351
+ /** Current number of instances in the group. */
352
+ current_size?: number | undefined;
353
+ /** Most recent active alert if any. */
354
+ latest_open_alert?: Alert | undefined;
355
+ /** The minimum number of instances in the group. */
356
+ minimum_size?: number | undefined;
357
+ /** The maximum number of instances in the group. */
358
+ maximum_size?: number | undefined;
359
+ /** Defines which metric the group uses for scaling (cpu, memory, or fixed size). */
360
+ scaling_policy_target_type?: GroupSummaryScalingPolicyTargetType | undefined;
361
+ /** Availability zone of the group. */
362
+ zone?: string | undefined;
363
+ }
364
+ /** List of group summaries. */
365
+ export type ListGroupsResponseGroupSummariesList = Array<GroupSummary>;
366
+ export interface ListGroupsResponse {
367
+ /** List of group summaries. */
368
+ group_summaries: ListGroupsResponseGroupSummariesList;
369
+ /** Token for the next page of results. */
370
+ next_page_token?: string | null | undefined;
371
+ /** Total number of groups. */
372
+ total_count?: number | undefined;
373
+ }
374
+ export type ListLogsRequestZone =
375
+ | "fr-par-1"
376
+ | "fr-par-2"
377
+ | "fr-par-3"
378
+ | "nl-ams-1"
379
+ | "nl-ams-2"
380
+ | "nl-ams-3"
381
+ | "pl-waw-1"
382
+ | "pl-waw-2"
383
+ | "pl-waw-3"
384
+ | "it-mil-1"
385
+ | "it-mil-2"
386
+ | "it-mil-3";
387
+ export interface ListLogsRequest {
388
+ /** The zone you want to target */
389
+ zone?: ListLogsRequestZone | (string & {}) | undefined;
390
+ group_id: string;
391
+ page_token?: string | undefined;
392
+ page_size?: number | undefined;
393
+ /** (RFC 3339 format) */
394
+ start_time?: string | undefined;
395
+ /** (RFC 3339 format) */
396
+ end_time?: string | undefined;
397
+ }
398
+ export type LogLogLevel = "unknown_log_level" | "info" | "warning" | "error";
399
+ export interface Log {
400
+ /** Timestamp of the log entry. (RFC 3339 format) */
401
+ timestamp?: string | null | undefined;
402
+ /** Log level (info, warning, error). */
403
+ level?: LogLogLevel | undefined;
404
+ /** Log message content. */
405
+ message?: string | undefined;
406
+ }
407
+ /** List of log entries. */
408
+ export type ListLogsResponseLogsList = Array<Log>;
409
+ export interface ListLogsResponse {
410
+ /** List of log entries. */
411
+ logs: ListLogsResponseLogsList;
412
+ /** Token for the next page of results. */
413
+ next_page_token?: string | null | undefined;
414
+ /** Total number of logs. */
415
+ total_count?: number | undefined;
416
+ }
417
+ export type ListServersRequestZone =
418
+ | "fr-par-1"
419
+ | "fr-par-2"
420
+ | "fr-par-3"
421
+ | "nl-ams-1"
422
+ | "nl-ams-2"
423
+ | "nl-ams-3"
424
+ | "pl-waw-1"
425
+ | "pl-waw-2"
426
+ | "pl-waw-3"
427
+ | "it-mil-1"
428
+ | "it-mil-2"
429
+ | "it-mil-3";
430
+ export interface ListServersRequest {
431
+ /** The zone you want to target */
432
+ zone?: ListServersRequestZone | (string & {}) | undefined;
433
+ group_id: string;
434
+ page_token?: string | undefined;
435
+ page_size?: number | undefined;
436
+ }
437
+ export interface Server {
438
+ /** ID of the instance server. */
439
+ server_id?: string | undefined;
440
+ }
441
+ /** List of servers. */
442
+ export type ListServersResponseServersList = Array<Server>;
443
+ export interface ListServersResponse {
444
+ /** List of servers. */
445
+ servers: ListServersResponseServersList;
446
+ /** Token for the next page of results. */
447
+ next_page_token?: string | null | undefined;
448
+ /** Total number of servers. */
449
+ total_count?: number | undefined;
450
+ }
451
+ export type RefreshGroupRequestZone =
452
+ | "fr-par-1"
453
+ | "fr-par-2"
454
+ | "fr-par-3"
455
+ | "nl-ams-1"
456
+ | "nl-ams-2"
457
+ | "nl-ams-3"
458
+ | "pl-waw-1"
459
+ | "pl-waw-2"
460
+ | "pl-waw-3"
461
+ | "it-mil-1"
462
+ | "it-mil-2"
463
+ | "it-mil-3";
464
+ export interface RefreshGroupRequest {
465
+ /** The zone you want to target */
466
+ zone?: RefreshGroupRequestZone | (string & {}) | undefined;
467
+ group_id: string;
468
+ }
469
+ export type UpdateGroupRequestZone =
470
+ | "fr-par-1"
471
+ | "fr-par-2"
472
+ | "fr-par-3"
473
+ | "nl-ams-1"
474
+ | "nl-ams-2"
475
+ | "nl-ams-3"
476
+ | "pl-waw-1"
477
+ | "pl-waw-2"
478
+ | "pl-waw-3"
479
+ | "it-mil-1"
480
+ | "it-mil-2"
481
+ | "it-mil-3";
482
+ /** New tags for the group. */
483
+ export type UpdateGroupRequestTagsList = Array<unknown>;
484
+ export interface UpdateGroupRequest {
485
+ /** The zone you want to target */
486
+ zone?: UpdateGroupRequestZone | (string & {}) | undefined;
487
+ /** ID of the group to update. */
488
+ group_id: string;
489
+ /** New name for the group. */
490
+ name?: string | null | undefined;
491
+ /** New tags for the group. */
492
+ tags?: UpdateGroupRequestTagsList | null | undefined;
493
+ /** New template ID for instances. */
494
+ template_id?: string | null | undefined;
495
+ /** New scaling policy configuration. */
496
+ scaling_policy_spec?: ScalingPolicySpec | undefined;
497
+ /** New load balancer configuration. */
498
+ load_balancer_configuration_spec?: LoadBalancerConfigurationSpec | undefined;
499
+ }
500
+ export type CreateGroupError = ScalewayOpError;
501
+ /** Create an autoscaling group Create a new autoscaling group with the specified configuration including template, scaling policy, and optional load balancer settings. */
502
+ export const createGroup: API.OperationMethod<
503
+ CreateGroupRequest,
504
+ Group,
505
+ CreateGroupError,
506
+ ScalewayOpContext
507
+ > = /*@__PURE__*/ API.make(() => ({
508
+ input: __S(0, __c0, 0) as any as S.Schema<CreateGroupRequest>,
509
+ output: __S(31, __c3, 7) as any as S.Schema<Group>,
510
+ errors: [],
511
+ serviceErrors: ScalewayServiceErrors,
512
+ protocol: ScalewayProtocol,
513
+ retry: Retry.Retry,
514
+ telemetry: TELEMETRY,
515
+ span: "CreateGroup",
516
+ }));
517
+
518
+ export type DeleteGroupError = ScalewayOpError;
519
+ /** Delete an autoscaling group Delete a specified autoscaling group and all its associated resources. */
520
+ export const deleteGroup: API.OperationMethod<
521
+ DeleteGroupRequest,
522
+ Group,
523
+ DeleteGroupError,
524
+ ScalewayOpContext
525
+ > = /*@__PURE__*/ API.make(() => ({
526
+ input: __S(40, __c5, 0) as any as S.Schema<DeleteGroupRequest>,
527
+ output: __S(31, __c3, 7) as any as S.Schema<Group>,
528
+ errors: [],
529
+ serviceErrors: ScalewayServiceErrors,
530
+ protocol: ScalewayProtocol,
531
+ retry: Retry.Retry,
532
+ telemetry: TELEMETRY,
533
+ span: "DeleteGroup",
534
+ }));
535
+
536
+ export type GetGroupError = ScalewayOpError;
537
+ /** Get an autoscaling group Get details of a specified autoscaling group including its configuration, current size, and status. */
538
+ export const getGroup: API.OperationMethod<
539
+ GetGroupRequest,
540
+ Group,
541
+ GetGroupError,
542
+ ScalewayOpContext
543
+ > = /*@__PURE__*/ API.make(() => ({
544
+ input: __S(48, __c6, 0) as any as S.Schema<GetGroupRequest>,
545
+ output: __S(31, __c3, 7) as any as S.Schema<Group>,
546
+ errors: [],
547
+ serviceErrors: ScalewayServiceErrors,
548
+ protocol: ScalewayProtocol,
549
+ retry: Retry.Retry,
550
+ telemetry: TELEMETRY,
551
+ span: "GetGroup",
552
+ }));
553
+
554
+ export type ListAlertsError = ScalewayOpError;
555
+ /** List autoscaling group alerts List active and historical alerts for a specified autoscaling group. */
556
+ export const listAlerts: API.PaginatedOperationMethod<
557
+ ListAlertsRequest,
558
+ ListAlertsResponse,
559
+ ListAlertsError,
560
+ ScalewayOpContext,
561
+ Alert
562
+ > = /*@__PURE__*/ API.makePaginated(
563
+ () => ({
564
+ input: __S(56, __c7, 0) as any as S.Schema<ListAlertsRequest>,
565
+ output: __S(57, __c7, 1) as any as S.Schema<ListAlertsResponse>,
566
+ errors: [],
567
+ serviceErrors: ScalewayServiceErrors,
568
+ protocol: ScalewayProtocol,
569
+ retry: Retry.Retry,
570
+ telemetry: TELEMETRY,
571
+ span: "ListAlerts",
572
+ pagination: {
573
+ mode: "token",
574
+ inputToken: "page_token",
575
+ outputToken: "next_page_token",
576
+ items: "alerts",
577
+ pageSize: "page_size",
578
+ } as const,
579
+ }),
580
+ paginateToken,
581
+ ) as any;
582
+
583
+ export type ListGroupsError = ScalewayOpError;
584
+ /** List autoscaling groups List all autoscaling groups in a project. */
585
+ export const listGroups: API.PaginatedOperationMethod<
586
+ ListGroupsRequest,
587
+ ListGroupsResponse,
588
+ ListGroupsError,
589
+ ScalewayOpContext,
590
+ GroupSummary
591
+ > = /*@__PURE__*/ API.makePaginated(
592
+ () => ({
593
+ input: __S(64, __c8, 0) as any as S.Schema<ListGroupsRequest>,
594
+ output: __S(67, __c8, 3) as any as S.Schema<ListGroupsResponse>,
595
+ errors: [],
596
+ serviceErrors: ScalewayServiceErrors,
597
+ protocol: ScalewayProtocol,
598
+ retry: Retry.Retry,
599
+ telemetry: TELEMETRY,
600
+ span: "ListGroups",
601
+ pagination: {
602
+ mode: "token",
603
+ inputToken: "page_token",
604
+ outputToken: "next_page_token",
605
+ items: "group_summaries",
606
+ pageSize: "page_size",
607
+ } as const,
608
+ }),
609
+ paginateToken,
610
+ ) as any;
611
+
612
+ export type ListLogsError = ScalewayOpError;
613
+ /** List autoscaling group logs List logs for a specified autoscaling group to view scaling events and activities. */
614
+ export const listLogs: API.PaginatedOperationMethod<
615
+ ListLogsRequest,
616
+ ListLogsResponse,
617
+ ListLogsError,
618
+ ScalewayOpContext,
619
+ Log
620
+ > = /*@__PURE__*/ API.makePaginated(
621
+ () => ({
622
+ input: __S(72, __c9, 0) as any as S.Schema<ListLogsRequest>,
623
+ output: __S(75, __c9, 3) as any as S.Schema<ListLogsResponse>,
624
+ errors: [],
625
+ serviceErrors: ScalewayServiceErrors,
626
+ protocol: ScalewayProtocol,
627
+ retry: Retry.Retry,
628
+ telemetry: TELEMETRY,
629
+ span: "ListLogs",
630
+ pagination: {
631
+ mode: "token",
632
+ inputToken: "page_token",
633
+ outputToken: "next_page_token",
634
+ items: "logs",
635
+ pageSize: "page_size",
636
+ } as const,
637
+ }),
638
+ paginateToken,
639
+ ) as any;
640
+
641
+ export type ListServersError = ScalewayOpError;
642
+ /** List autoscaling group servers List all Instances belonging to a specified autoscaling group. */
643
+ export const listServers: API.PaginatedOperationMethod<
644
+ ListServersRequest,
645
+ ListServersResponse,
646
+ ListServersError,
647
+ ScalewayOpContext,
648
+ Server
649
+ > = /*@__PURE__*/ API.makePaginated(
650
+ () => ({
651
+ input: __S(80, __c10, 0) as any as S.Schema<ListServersRequest>,
652
+ output: __S(83, __c10, 3) as any as S.Schema<ListServersResponse>,
653
+ errors: [],
654
+ serviceErrors: ScalewayServiceErrors,
655
+ protocol: ScalewayProtocol,
656
+ retry: Retry.Retry,
657
+ telemetry: TELEMETRY,
658
+ span: "ListServers",
659
+ pagination: {
660
+ mode: "token",
661
+ inputToken: "page_token",
662
+ outputToken: "next_page_token",
663
+ items: "servers",
664
+ pageSize: "page_size",
665
+ } as const,
666
+ }),
667
+ paginateToken,
668
+ ) as any;
669
+
670
+ export type RefreshGroupError = ScalewayOpError;
671
+ /** Refresh an autoscaling group This will replace all the instances of the group. Its main use case is applying changes if the instance template has been updated. */
672
+ export const refreshGroup: API.OperationMethod<
673
+ RefreshGroupRequest,
674
+ Group,
675
+ RefreshGroupError,
676
+ ScalewayOpContext
677
+ > = /*@__PURE__*/ API.make(() => ({
678
+ input: __S(88, __c11, 0) as any as S.Schema<RefreshGroupRequest>,
679
+ output: __S(31, __c3, 7) as any as S.Schema<Group>,
680
+ errors: [],
681
+ serviceErrors: ScalewayServiceErrors,
682
+ protocol: ScalewayProtocol,
683
+ retry: Retry.Retry,
684
+ telemetry: TELEMETRY,
685
+ span: "RefreshGroup",
686
+ }));
687
+
688
+ export type UpdateGroupError = ScalewayOpError;
689
+ /** Update an autoscaling group Update the configuration of a specified autoscaling group including name, tags, template, scaling policy, and load balancer settings. */
690
+ export const updateGroup: API.OperationMethod<
691
+ UpdateGroupRequest,
692
+ Group,
693
+ UpdateGroupError,
694
+ ScalewayOpContext
695
+ > = /*@__PURE__*/ API.make(() => ({
696
+ input: __S(97, __c12, 1) as any as S.Schema<UpdateGroupRequest>,
697
+ output: __S(31, __c3, 7) as any as S.Schema<Group>,
698
+ errors: [],
699
+ serviceErrors: ScalewayServiceErrors,
700
+ protocol: ScalewayProtocol,
701
+ retry: Retry.Retry,
702
+ telemetry: TELEMETRY,
703
+ span: "UpdateGroup",
704
+ }));
705
+
706
+ // Schema builders: each runs one schema initializer, on that schema's first use.
707
+ function __c0(j: number): any {
708
+ switch (j) {
709
+ case 0:
710
+ return S.suspend(() =>
711
+ S.Struct({
712
+ zone: S.optional(S.String.pipe(T.Label())),
713
+ project_id: S.optional(S.String),
714
+ name: S.optional(S.String),
715
+ tags: S.optional(__S(8, __c1, 0)),
716
+ template_id: S.optional(S.String),
717
+ scaling_policy_spec: S.optional(__S(32, __c4, 0)),
718
+ load_balancer_configuration_spec: S.optional(__S(34, __c4, 2)),
719
+ }).pipe(
720
+ T.Http({
721
+ method: "POST",
722
+ uri: "/autoscaling/v1alpha2/zones/{zone}/groups",
723
+ code: 200,
724
+ baseUrl: "https://api.scaleway.com",
725
+ }),
726
+ ),
727
+ ).annotate({ identifier: "CreateGroupRequest" });
728
+ }
729
+ }
730
+ function __c1(j: number): any {
731
+ switch (j) {
732
+ case 0:
733
+ return S.Array(S.String);
734
+ case 1:
735
+ return S.suspend(() =>
736
+ S.Struct({
737
+ type: S.optional(S.String),
738
+ opened_at: S.optional(S.NullOr(S.String)),
739
+ closed_at: S.optional(S.NullOr(S.String)),
740
+ group_id: S.optional(S.String),
741
+ failing_quotas: S.optional(__S(8, __c1, 0)),
742
+ }),
743
+ ).annotate({ identifier: "Alert" });
744
+ }
745
+ }
746
+ function __c2(j: number): any {
747
+ switch (j) {
748
+ case 0:
749
+ return S.Array(__S(9, __c1, 1));
750
+ }
751
+ }
752
+ function __c3(j: number): any {
753
+ switch (j) {
754
+ case 0:
755
+ return S.suspend(() =>
756
+ S.Struct({
757
+ size: S.optional(S.Number),
758
+ }),
759
+ ).annotate({ identifier: "GroupScalingPolicyScalingPolicyFixedSize" });
760
+ case 1:
761
+ return S.suspend(() =>
762
+ S.Struct({
763
+ target_avg_percent: S.optional(S.Number),
764
+ }),
765
+ ).annotate({ identifier: "GroupScalingPolicyScalingPolicyCpuTarget" });
766
+ case 2:
767
+ return S.suspend(() =>
768
+ S.Struct({
769
+ backend_id: S.optional(S.String),
770
+ address_family: S.optional(S.String),
771
+ private_network_id: S.optional(S.NullOr(S.String)),
772
+ }),
773
+ ).annotate({ identifier: "LoadBalancerConfigurationSpecBackend" });
774
+ case 3:
775
+ return S.Array(__S(26, __c3, 2));
776
+ case 4:
777
+ return S.suspend(() =>
778
+ S.Struct({
779
+ minimum_size: S.optional(S.Number),
780
+ maximum_size: S.optional(S.Number),
781
+ scale_out_cooldown: S.optional(S.NullOr(S.String)),
782
+ scale_in_cooldown: S.optional(S.NullOr(S.String)),
783
+ scale_in_step: S.optional(S.Number),
784
+ scale_out_step: S.optional(S.Number),
785
+ fixed_size: S.optional(S.NullOr(__S(24, __c3, 0))),
786
+ cpu_target: S.optional(S.NullOr(__S(25, __c3, 1))),
787
+ memory_target: S.optional(S.NullOr(__S(25, __c3, 1))),
788
+ }),
789
+ ).annotate({ identifier: "GroupScalingPolicy" });
790
+ case 5:
791
+ return S.suspend(() =>
792
+ S.Struct({
793
+ enabled: S.optional(S.Boolean),
794
+ grace_period: S.optional(S.NullOr(S.String)),
795
+ }),
796
+ ).annotate({ identifier: "GroupLoadBalancerConfigurationAutoHealing" });
797
+ case 6:
798
+ return S.suspend(() =>
799
+ S.Struct({
800
+ load_balancer_id: S.optional(S.String),
801
+ backends: S.optional(__S(27, __c3, 3)),
802
+ auto_healing: S.optional(__S(29, __c3, 5)),
803
+ }),
804
+ ).annotate({ identifier: "GroupLoadBalancerConfiguration" });
805
+ case 7:
806
+ return S.suspend(() =>
807
+ S.Struct({
808
+ srn: S.optional(S.String),
809
+ id: S.optional(S.String),
810
+ project_id: S.optional(S.String),
811
+ name: S.optional(S.String),
812
+ tags: S.optional(__S(8, __c1, 0)),
813
+ created_at: S.optional(S.NullOr(S.String)),
814
+ updated_at: S.optional(S.NullOr(S.String)),
815
+ status: S.optional(S.String),
816
+ open_alerts: S.optional(__S(16, __c2, 0)),
817
+ current_size: S.optional(S.Number),
818
+ target_size: S.optional(S.Number),
819
+ last_scale_out_at: S.optional(S.NullOr(S.String)),
820
+ last_scale_in_at: S.optional(S.NullOr(S.String)),
821
+ template_id: S.optional(S.String),
822
+ scaling_policy: S.optional(__S(28, __c3, 4)),
823
+ load_balancer_configuration: S.optional(__S(30, __c3, 6)),
824
+ zone: S.optional(S.String),
825
+ }),
826
+ ).annotate({ identifier: "Group" });
827
+ }
828
+ }
829
+ function __c4(j: number): any {
830
+ switch (j) {
831
+ case 0:
832
+ return S.suspend(() =>
833
+ S.Struct({
834
+ minimum_size: S.optional(S.NullOr(S.Number)),
835
+ maximum_size: S.optional(S.NullOr(S.Number)),
836
+ scale_out_cooldown: S.optional(S.NullOr(S.String)),
837
+ scale_in_cooldown: S.optional(S.NullOr(S.String)),
838
+ scale_in_step: S.optional(S.NullOr(S.Number)),
839
+ scale_out_step: S.optional(S.NullOr(S.Number)),
840
+ fixed_size: S.optional(S.NullOr(__S(24, __c3, 0))),
841
+ cpu_target: S.optional(S.NullOr(__S(25, __c3, 1))),
842
+ memory_target: S.optional(S.NullOr(__S(25, __c3, 1))),
843
+ }),
844
+ ).annotate({ identifier: "ScalingPolicySpec" });
845
+ case 1:
846
+ return S.suspend(() =>
847
+ S.Struct({
848
+ enabled: S.optional(S.NullOr(S.Boolean)),
849
+ grace_period: S.optional(S.NullOr(S.String)),
850
+ }),
851
+ ).annotate({ identifier: "LoadBalancerConfigurationSpecAutoHealing" });
852
+ case 2:
853
+ return S.suspend(() =>
854
+ S.Struct({
855
+ load_balancer_id: S.optional(S.NullOr(S.String)),
856
+ backends: S.optional(__S(27, __c3, 3)),
857
+ auto_healing: S.optional(__S(33, __c4, 1)),
858
+ }),
859
+ ).annotate({ identifier: "LoadBalancerConfigurationSpec" });
860
+ }
861
+ }
862
+ function __c5(j: number): any {
863
+ switch (j) {
864
+ case 0:
865
+ return S.suspend(() =>
866
+ S.Struct({
867
+ zone: S.optional(S.String.pipe(T.Label())),
868
+ group_id: S.String.pipe(T.Label()),
869
+ }).pipe(
870
+ T.Http({
871
+ method: "DELETE",
872
+ uri: "/autoscaling/v1alpha2/zones/{zone}/groups/{group_id}",
873
+ code: 200,
874
+ baseUrl: "https://api.scaleway.com",
875
+ }),
876
+ ),
877
+ ).annotate({ identifier: "DeleteGroupRequest" });
878
+ }
879
+ }
880
+ function __c6(j: number): any {
881
+ switch (j) {
882
+ case 0:
883
+ return S.suspend(() =>
884
+ S.Struct({
885
+ zone: S.optional(S.String.pipe(T.Label())),
886
+ group_id: S.String.pipe(T.Label()),
887
+ }).pipe(
888
+ T.Http({
889
+ method: "GET",
890
+ uri: "/autoscaling/v1alpha2/zones/{zone}/groups/{group_id}",
891
+ code: 200,
892
+ baseUrl: "https://api.scaleway.com",
893
+ }),
894
+ ),
895
+ ).annotate({ identifier: "GetGroupRequest" });
896
+ }
897
+ }
898
+ function __c7(j: number): any {
899
+ switch (j) {
900
+ case 0:
901
+ return S.suspend(() =>
902
+ S.Struct({
903
+ zone: S.optional(S.String.pipe(T.Label())),
904
+ page_token: S.optional(S.String.pipe(T.Query())),
905
+ page_size: S.optional(S.Number.pipe(T.Query())),
906
+ group_id: S.optional(S.String.pipe(T.Query())),
907
+ project_id: S.optional(S.String.pipe(T.Query())),
908
+ }).pipe(
909
+ T.Http({
910
+ method: "GET",
911
+ uri: "/autoscaling/v1alpha2/zones/{zone}/alerts",
912
+ code: 200,
913
+ baseUrl: "https://api.scaleway.com",
914
+ }),
915
+ ),
916
+ ).annotate({ identifier: "ListAlertsRequest" });
917
+ case 1:
918
+ return S.suspend(() =>
919
+ S.Struct({
920
+ alerts: __S(16, __c2, 0),
921
+ next_page_token: S.optional(S.NullOr(S.String)),
922
+ total_count: S.optional(S.Number),
923
+ }),
924
+ ).annotate({ identifier: "ListAlertsResponse" });
925
+ }
926
+ }
927
+ function __c8(j: number): any {
928
+ switch (j) {
929
+ case 0:
930
+ return S.suspend(() =>
931
+ S.Struct({
932
+ zone: S.optional(S.String.pipe(T.Label())),
933
+ order_by: S.optional(S.String.pipe(T.Query())),
934
+ page_size: S.optional(S.Number.pipe(T.Query())),
935
+ page_token: S.optional(S.String.pipe(T.Query())),
936
+ project_id: S.String.pipe(T.Query()),
937
+ template_id: S.optional(S.String.pipe(T.Query())),
938
+ load_balancer_id: S.optional(S.String.pipe(T.Query())),
939
+ }).pipe(
940
+ T.Http({
941
+ method: "GET",
942
+ uri: "/autoscaling/v1alpha2/zones/{zone}/groups",
943
+ code: 200,
944
+ baseUrl: "https://api.scaleway.com",
945
+ }),
946
+ ),
947
+ ).annotate({ identifier: "ListGroupsRequest" });
948
+ case 1:
949
+ return S.suspend(() =>
950
+ S.Struct({
951
+ srn: S.optional(S.String),
952
+ project_id: S.optional(S.String),
953
+ id: S.optional(S.String),
954
+ name: S.optional(S.String),
955
+ tags: S.optional(__S(8, __c1, 0)),
956
+ status: S.optional(S.String),
957
+ created_at: S.optional(S.NullOr(S.String)),
958
+ updated_at: S.optional(S.NullOr(S.String)),
959
+ template_id: S.optional(S.String),
960
+ load_balancer_id: S.optional(S.NullOr(S.String)),
961
+ current_size: S.optional(S.Number),
962
+ latest_open_alert: S.optional(__S(9, __c1, 1)),
963
+ minimum_size: S.optional(S.Number),
964
+ maximum_size: S.optional(S.Number),
965
+ scaling_policy_target_type: S.optional(S.String),
966
+ zone: S.optional(S.String),
967
+ }),
968
+ ).annotate({ identifier: "GroupSummary" });
969
+ case 2:
970
+ return S.Array(__S(65, __c8, 1));
971
+ case 3:
972
+ return S.suspend(() =>
973
+ S.Struct({
974
+ group_summaries: __S(66, __c8, 2),
975
+ next_page_token: S.optional(S.NullOr(S.String)),
976
+ total_count: S.optional(S.Number),
977
+ }),
978
+ ).annotate({ identifier: "ListGroupsResponse" });
979
+ }
980
+ }
981
+ function __c9(j: number): any {
982
+ switch (j) {
983
+ case 0:
984
+ return S.suspend(() =>
985
+ S.Struct({
986
+ zone: S.optional(S.String.pipe(T.Label())),
987
+ group_id: S.String.pipe(T.Query()),
988
+ page_token: S.optional(S.String.pipe(T.Query())),
989
+ page_size: S.optional(S.Number.pipe(T.Query())),
990
+ start_time: S.optional(S.String.pipe(T.Query())),
991
+ end_time: S.optional(S.String.pipe(T.Query())),
992
+ }).pipe(
993
+ T.Http({
994
+ method: "GET",
995
+ uri: "/autoscaling/v1alpha2/zones/{zone}/logs",
996
+ code: 200,
997
+ baseUrl: "https://api.scaleway.com",
998
+ }),
999
+ ),
1000
+ ).annotate({ identifier: "ListLogsRequest" });
1001
+ case 1:
1002
+ return S.suspend(() =>
1003
+ S.Struct({
1004
+ timestamp: S.optional(S.NullOr(S.String)),
1005
+ level: S.optional(S.String),
1006
+ message: S.optional(S.String),
1007
+ }),
1008
+ ).annotate({ identifier: "Log" });
1009
+ case 2:
1010
+ return S.Array(__S(73, __c9, 1));
1011
+ case 3:
1012
+ return S.suspend(() =>
1013
+ S.Struct({
1014
+ logs: __S(74, __c9, 2),
1015
+ next_page_token: S.optional(S.NullOr(S.String)),
1016
+ total_count: S.optional(S.Number),
1017
+ }),
1018
+ ).annotate({ identifier: "ListLogsResponse" });
1019
+ }
1020
+ }
1021
+ function __c10(j: number): any {
1022
+ switch (j) {
1023
+ case 0:
1024
+ return S.suspend(() =>
1025
+ S.Struct({
1026
+ zone: S.optional(S.String.pipe(T.Label())),
1027
+ group_id: S.String.pipe(T.Query()),
1028
+ page_token: S.optional(S.String.pipe(T.Query())),
1029
+ page_size: S.optional(S.Number.pipe(T.Query())),
1030
+ }).pipe(
1031
+ T.Http({
1032
+ method: "GET",
1033
+ uri: "/autoscaling/v1alpha2/zones/{zone}/servers",
1034
+ code: 200,
1035
+ baseUrl: "https://api.scaleway.com",
1036
+ }),
1037
+ ),
1038
+ ).annotate({ identifier: "ListServersRequest" });
1039
+ case 1:
1040
+ return S.suspend(() =>
1041
+ S.Struct({
1042
+ server_id: S.optional(S.String),
1043
+ }),
1044
+ ).annotate({ identifier: "Server" });
1045
+ case 2:
1046
+ return S.Array(__S(81, __c10, 1));
1047
+ case 3:
1048
+ return S.suspend(() =>
1049
+ S.Struct({
1050
+ servers: __S(82, __c10, 2),
1051
+ next_page_token: S.optional(S.NullOr(S.String)),
1052
+ total_count: S.optional(S.Number),
1053
+ }),
1054
+ ).annotate({ identifier: "ListServersResponse" });
1055
+ }
1056
+ }
1057
+ function __c11(j: number): any {
1058
+ switch (j) {
1059
+ case 0:
1060
+ return S.suspend(() =>
1061
+ S.Struct({
1062
+ zone: S.optional(S.String.pipe(T.Label())),
1063
+ group_id: S.String.pipe(T.Label()),
1064
+ }).pipe(
1065
+ T.Http({
1066
+ method: "POST",
1067
+ uri: "/autoscaling/v1alpha2/zones/{zone}/groups/{group_id}/refresh",
1068
+ code: 200,
1069
+ baseUrl: "https://api.scaleway.com",
1070
+ }),
1071
+ ),
1072
+ ).annotate({ identifier: "RefreshGroupRequest" });
1073
+ }
1074
+ }
1075
+ function __c12(j: number): any {
1076
+ switch (j) {
1077
+ case 0:
1078
+ return S.Array(S.Unknown);
1079
+ case 1:
1080
+ return S.suspend(() =>
1081
+ S.Struct({
1082
+ zone: S.optional(S.String.pipe(T.Label())),
1083
+ group_id: S.String.pipe(T.Label()),
1084
+ name: S.optional(S.NullOr(S.String)),
1085
+ tags: S.optional(S.NullOr(__S(96, __c12, 0))),
1086
+ template_id: S.optional(S.NullOr(S.String)),
1087
+ scaling_policy_spec: S.optional(__S(32, __c4, 0)),
1088
+ load_balancer_configuration_spec: S.optional(__S(34, __c4, 2)),
1089
+ }).pipe(
1090
+ T.Http({
1091
+ method: "PATCH",
1092
+ uri: "/autoscaling/v1alpha2/zones/{zone}/groups/{group_id}",
1093
+ code: 200,
1094
+ baseUrl: "https://api.scaleway.com",
1095
+ }),
1096
+ ),
1097
+ ).annotate({ identifier: "UpdateGroupRequest" });
1098
+ }
1099
+ }
1100
+ // Schema table: entry i is schema j of builder f, made on first reach.
1101
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1102
+ return (__s[i] ??= __L.at(f, j));
1103
+ }