@distilled.cloud/scaleway 0.0.0 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +171 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +44 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +285 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +48 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/account_contract_v3.d.ts +124 -0
- package/lib/services/account_contract_v3.d.ts.map +1 -0
- package/lib/services/account_contract_v3.js +2 -0
- package/lib/services/account_contract_v3.js.map +1 -0
- package/lib/services/account_iso_code_v3.d.ts +44 -0
- package/lib/services/account_iso_code_v3.d.ts.map +1 -0
- package/lib/services/account_iso_code_v3.js +2 -0
- package/lib/services/account_iso_code_v3.js.map +1 -0
- package/lib/services/account_organization_v3.d.ts +290 -0
- package/lib/services/account_organization_v3.d.ts.map +1 -0
- package/lib/services/account_organization_v3.js +2 -0
- package/lib/services/account_organization_v3.js.map +1 -0
- package/lib/services/account_project_v3.d.ts +173 -0
- package/lib/services/account_project_v3.d.ts.map +1 -0
- package/lib/services/account_project_v3.js +2 -0
- package/lib/services/account_project_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.js +35 -0
- package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_v3.d.ts +18 -0
- package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_v3.js +2 -0
- package/lib/services/account_unauthenticated_v3.js.map +1 -0
- package/lib/services/account_user_v3.d.ts +522 -0
- package/lib/services/account_user_v3.d.ts.map +1 -0
- package/lib/services/account_user_v3.js +39 -0
- package/lib/services/account_user_v3.js.map +1 -0
- package/lib/services/annotations_v1.d.ts +260 -0
- package/lib/services/annotations_v1.d.ts.map +1 -0
- package/lib/services/annotations_v1.js +2 -0
- package/lib/services/annotations_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v1.d.ts +95 -0
- package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v1.js +2 -0
- package/lib/services/baremetal_private_network_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v3.d.ts +110 -0
- package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v3.js +2 -0
- package/lib/services/baremetal_private_network_v3.js.map +1 -0
- package/lib/services/baremetal_v1.d.ts +1089 -0
- package/lib/services/baremetal_v1.d.ts.map +1 -0
- package/lib/services/baremetal_v1.js +52 -0
- package/lib/services/baremetal_v1.js.map +1 -0
- package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
- package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
- package/lib/services/billing_electronic_billing_v2.js +2 -0
- package/lib/services/billing_electronic_billing_v2.js.map +1 -0
- package/lib/services/billing_v2.d.ts +187 -0
- package/lib/services/billing_v2.d.ts.map +1 -0
- package/lib/services/billing_v2.js +2 -0
- package/lib/services/billing_v2.js.map +1 -0
- package/lib/services/block_v1.d.ts +401 -0
- package/lib/services/block_v1.d.ts.map +1 -0
- package/lib/services/block_v1.js +27 -0
- package/lib/services/block_v1.js.map +1 -0
- package/lib/services/cockpit_global_v1.d.ts +75 -0
- package/lib/services/cockpit_global_v1.d.ts.map +1 -0
- package/lib/services/cockpit_global_v1.js +2 -0
- package/lib/services/cockpit_global_v1.js.map +1 -0
- package/lib/services/cockpit_regional_v1.d.ts +739 -0
- package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
- package/lib/services/cockpit_regional_v1.js +47 -0
- package/lib/services/cockpit_regional_v1.js.map +1 -0
- package/lib/services/containers_v1.d.ts +822 -0
- package/lib/services/containers_v1.d.ts.map +1 -0
- package/lib/services/containers_v1.js +39 -0
- package/lib/services/containers_v1.js.map +1 -0
- package/lib/services/dedibox_billing_v1.d.ts +151 -0
- package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
- package/lib/services/dedibox_billing_v1.js +2 -0
- package/lib/services/dedibox_billing_v1.js.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.js +2 -0
- package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.js +2 -0
- package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1.d.ts +68 -0
- package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1.js +2 -0
- package/lib/services/dedibox_rpn_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.js +30 -0
- package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.js +27 -0
- package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
- package/lib/services/dedibox_v1.d.ts +1351 -0
- package/lib/services/dedibox_v1.d.ts.map +1 -0
- package/lib/services/dedibox_v1.js +70 -0
- package/lib/services/dedibox_v1.js.map +1 -0
- package/lib/services/generative_apis_openai_v1.d.ts +772 -0
- package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_openai_v1.js +24 -0
- package/lib/services/generative_apis_openai_v1.js.map +1 -0
- package/lib/services/generative_apis_v1.d.ts +82 -0
- package/lib/services/generative_apis_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_v1.js +2 -0
- package/lib/services/generative_apis_v1.js.map +1 -0
- package/lib/services/index.d.ts +57 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +56 -0
- package/lib/services/inference_v1.d.ts +460 -0
- package/lib/services/inference_v1.d.ts.map +1 -0
- package/lib/services/inference_v1.js +33 -0
- package/lib/services/inference_v1.js.map +1 -0
- package/lib/services/instance_v1.d.ts +2183 -0
- package/lib/services/instance_v1.d.ts.map +1 -0
- package/lib/services/instance_v1.js +112 -0
- package/lib/services/instance_v1.js.map +1 -0
- package/lib/services/iot_v1.d.ts +837 -0
- package/lib/services/iot_v1.d.ts.map +1 -0
- package/lib/services/iot_v1.js +50 -0
- package/lib/services/iot_v1.js.map +1 -0
- package/lib/services/ipam_v1.d.ts +244 -0
- package/lib/services/ipam_v1.d.ts.map +1 -0
- package/lib/services/ipam_v1.js +2 -0
- package/lib/services/ipam_v1.js.map +1 -0
- package/lib/services/k8s_v1.d.ts +1223 -0
- package/lib/services/k8s_v1.d.ts.map +1 -0
- package/lib/services/k8s_v1.js +61 -0
- package/lib/services/k8s_v1.js.map +1 -0
- package/lib/services/lb_zoned_v1.d.ts +1517 -0
- package/lib/services/lb_zoned_v1.d.ts.map +1 -0
- package/lib/services/lb_zoned_v1.js +75 -0
- package/lib/services/lb_zoned_v1.js.map +1 -0
- package/lib/services/marketplace_console_v2.d.ts +72 -0
- package/lib/services/marketplace_console_v2.d.ts.map +1 -0
- package/lib/services/marketplace_console_v2.js +2 -0
- package/lib/services/marketplace_console_v2.js.map +1 -0
- package/lib/services/marketplace_v2.d.ts +169 -0
- package/lib/services/marketplace_v2.d.ts.map +1 -0
- package/lib/services/marketplace_v2.js +2 -0
- package/lib/services/marketplace_v2.js.map +1 -0
- package/lib/services/mongodb_v1.d.ts +698 -0
- package/lib/services/mongodb_v1.d.ts.map +1 -0
- package/lib/services/mongodb_v1.js +43 -0
- package/lib/services/mongodb_v1.js.map +1 -0
- package/lib/services/partner_v1.d.ts +142 -0
- package/lib/services/partner_v1.d.ts.map +1 -0
- package/lib/services/partner_v1.js +2 -0
- package/lib/services/partner_v1.js.map +1 -0
- package/lib/services/rdb_encryption_v1.d.ts +17 -0
- package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
- package/lib/services/rdb_encryption_v1.js +2 -0
- package/lib/services/rdb_encryption_v1.js.map +1 -0
- package/lib/services/rdb_v1.d.ts +1422 -0
- package/lib/services/rdb_v1.d.ts.map +1 -0
- package/lib/services/rdb_v1.js +87 -0
- package/lib/services/rdb_v1.js.map +1 -0
- package/lib/services/redis_v1.d.ts +602 -0
- package/lib/services/redis_v1.d.ts.map +1 -0
- package/lib/services/redis_v1.js +42 -0
- package/lib/services/redis_v1.js.map +1 -0
- package/lib/services/registry_v1.d.ts +281 -0
- package/lib/services/registry_v1.d.ts.map +1 -0
- package/lib/services/registry_v1.js +2 -0
- package/lib/services/registry_v1.js.map +1 -0
- package/lib/services/reseller_v1.d.ts +81 -0
- package/lib/services/reseller_v1.d.ts.map +1 -0
- package/lib/services/reseller_v1.js +2 -0
- package/lib/services/reseller_v1.js.map +1 -0
- package/lib/services/vpc_gw_v2.d.ts +635 -0
- package/lib/services/vpc_gw_v2.d.ts.map +1 -0
- package/lib/services/vpc_gw_v2.js +46 -0
- package/lib/services/vpc_gw_v2.js.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
- package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
- package/lib/services/vpc_v2.d.ts +875 -0
- package/lib/services/vpc_v2.d.ts.map +1 -0
- package/lib/services/vpc_v2.js +54 -0
- package/lib/services/vpc_v2.js.map +1 -0
- package/lib/services/webhosting_backup_v1.d.ts +182 -0
- package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
- package/lib/services/webhosting_backup_v1.js +2 -0
- package/lib/services/webhosting_backup_v1.js.map +1 -0
- package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
- package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
- package/lib/services/webhosting_control_panel_v1.js +2 -0
- package/lib/services/webhosting_control_panel_v1.js.map +1 -0
- package/lib/services/webhosting_database_v1.d.ts +195 -0
- package/lib/services/webhosting_database_v1.d.ts.map +1 -0
- package/lib/services/webhosting_database_v1.js +2 -0
- package/lib/services/webhosting_database_v1.js.map +1 -0
- package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
- package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dedibox_v1.js +2 -0
- package/lib/services/webhosting_dedibox_v1.js.map +1 -0
- package/lib/services/webhosting_dns_v1.d.ts +177 -0
- package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dns_v1.js +2 -0
- package/lib/services/webhosting_dns_v1.js.map +1 -0
- package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
- package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
- package/lib/services/webhosting_free_domain_v1.js +2 -0
- package/lib/services/webhosting_free_domain_v1.js.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.js +2 -0
- package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
- package/lib/services/webhosting_hosting_v1.d.ts +502 -0
- package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
- package/lib/services/webhosting_hosting_v1.js +27 -0
- package/lib/services/webhosting_hosting_v1.js.map +1 -0
- package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
- package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_mail_account_v1.js +2 -0
- package/lib/services/webhosting_mail_account_v1.js.map +1 -0
- package/lib/services/webhosting_offer_v1.d.ts +122 -0
- package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
- package/lib/services/webhosting_offer_v1.js +2 -0
- package/lib/services/webhosting_offer_v1.js.map +1 -0
- package/lib/services/webhosting_website_v1.d.ts +75 -0
- package/lib/services/webhosting_website_v1.d.ts.map +1 -0
- package/lib/services/webhosting_website_v1.js +2 -0
- package/lib/services/webhosting_website_v1.js.map +1 -0
- package/lib/services.lazy/account_contract_v3.js +1 -0
- package/lib/services.lazy/account_iso_code_v3.js +1 -0
- package/lib/services.lazy/account_organization_v3.js +1 -0
- package/lib/services.lazy/account_project_v3.js +1 -0
- package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
- package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
- package/lib/services.lazy/account_user_v3.js +3 -0
- package/lib/services.lazy/annotations_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
- package/lib/services.lazy/baremetal_v1.js +3 -0
- package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
- package/lib/services.lazy/billing_v2.js +1 -0
- package/lib/services.lazy/block_v1.js +3 -0
- package/lib/services.lazy/cockpit_global_v1.js +1 -0
- package/lib/services.lazy/cockpit_regional_v1.js +3 -0
- package/lib/services.lazy/containers_v1.js +3 -0
- package/lib/services.lazy/dedibox_billing_v1.js +1 -0
- package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
- package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
- package/lib/services.lazy/dedibox_v1.js +3 -0
- package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
- package/lib/services.lazy/generative_apis_v1.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/inference_v1.js +3 -0
- package/lib/services.lazy/instance_v1.js +3 -0
- package/lib/services.lazy/iot_v1.js +3 -0
- package/lib/services.lazy/ipam_v1.js +1 -0
- package/lib/services.lazy/k8s_v1.js +3 -0
- package/lib/services.lazy/lb_zoned_v1.js +3 -0
- package/lib/services.lazy/marketplace_console_v2.js +1 -0
- package/lib/services.lazy/marketplace_v2.js +1 -0
- package/lib/services.lazy/mongodb_v1.js +3 -0
- package/lib/services.lazy/partner_v1.js +1 -0
- package/lib/services.lazy/rdb_encryption_v1.js +1 -0
- package/lib/services.lazy/rdb_v1.js +3 -0
- package/lib/services.lazy/redis_v1.js +3 -0
- package/lib/services.lazy/registry_v1.js +1 -0
- package/lib/services.lazy/reseller_v1.js +1 -0
- package/lib/services.lazy/vpc_gw_v2.js +3 -0
- package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
- package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
- package/lib/services.lazy/vpc_v2.js +3 -0
- package/lib/services.lazy/webhosting_backup_v1.js +1 -0
- package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
- package/lib/services.lazy/webhosting_database_v1.js +1 -0
- package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
- package/lib/services.lazy/webhosting_dns_v1.js +1 -0
- package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
- package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
- package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_offer_v1.js +1 -0
- package/lib/services.lazy/webhosting_website_v1.js +1 -0
- package/lib/traits.d.ts +25 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
- package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
- package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_v2beta1.js +25 -0
- package/lib/unstable-services/billing_v2beta1.js.map +1 -0
- package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
- package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/block_v1alpha1.js +27 -0
- package/lib/unstable-services/block_v1alpha1.js.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.js +2 -0
- package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
- package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
- package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_v2beta1.js +44 -0
- package/lib/unstable-services/domain_v2beta1.js.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.js +81 -0
- package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
- package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
- package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/file_v1alpha1.js +24 -0
- package/lib/unstable-services/file_v1alpha1.js.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
- package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
- package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/functions_v1beta1.js +49 -0
- package/lib/unstable-services/functions_v1beta1.js.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.js +105 -0
- package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
- package/lib/unstable-services/index.d.ts +44 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +43 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_v2alpha1.js +81 -0
- package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.js +39 -0
- package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.js +27 -0
- package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
- package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
- package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.js +29 -0
- package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
- package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.js +51 -0
- package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
- package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
- package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/search_v1alpha1.js +2 -0
- package/lib/unstable-services/search_v1alpha1.js.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
- package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
- package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
- package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
- package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
- package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
- package/package.json +89 -2
- package/src/credentials.ts +104 -0
- package/src/errors.ts +307 -0
- package/src/index.ts +52 -0
- package/src/pagination.ts +65 -0
- package/src/protocol.ts +496 -0
- package/src/retry.ts +47 -0
- package/src/services/account_contract_v3.ts +441 -0
- package/src/services/account_iso_code_v3.ts +165 -0
- package/src/services/account_organization_v3.ts +946 -0
- package/src/services/account_project_v3.ts +530 -0
- package/src/services/account_unauthenticated_user_v3.ts +1445 -0
- package/src/services/account_unauthenticated_v3.ts +92 -0
- package/src/services/account_user_v3.ts +1657 -0
- package/src/services/annotations_v1.ts +897 -0
- package/src/services/baremetal_private_network_v1.ts +327 -0
- package/src/services/baremetal_private_network_v3.ts +376 -0
- package/src/services/baremetal_v1.ts +3072 -0
- package/src/services/billing_electronic_billing_v2.ts +323 -0
- package/src/services/billing_v2.ts +662 -0
- package/src/services/block_v1.ts +1282 -0
- package/src/services/cockpit_global_v1.ts +282 -0
- package/src/services/cockpit_regional_v1.ts +2177 -0
- package/src/services/containers_v1.ts +2110 -0
- package/src/services/dedibox_billing_v1.ts +621 -0
- package/src/services/dedibox_ipv6_block_v1.ts +468 -0
- package/src/services/dedibox_rpn_san_v1.ts +1185 -0
- package/src/services/dedibox_rpn_v1.ts +207 -0
- package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
- package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
- package/src/services/dedibox_v1.ts +3765 -0
- package/src/services/generative_apis_openai_v1.ts +1692 -0
- package/src/services/generative_apis_v1.ts +251 -0
- package/src/services/index.ts +57 -0
- package/src/services/inference_v1.ts +1353 -0
- package/src/services/instance_v1.ts +6611 -0
- package/src/services/iot_v1.ts +2419 -0
- package/src/services/ipam_v1.ts +716 -0
- package/src/services/k8s_v1.ts +3108 -0
- package/src/services/lb_zoned_v1.ts +4533 -0
- package/src/services/marketplace_console_v2.ts +198 -0
- package/src/services/marketplace_v2.ts +625 -0
- package/src/services/mongodb_v1.ts +2104 -0
- package/src/services/partner_v1.ts +462 -0
- package/src/services/rdb_encryption_v1.ts +83 -0
- package/src/services/rdb_v1.ts +4211 -0
- package/src/services/redis_v1.ts +1918 -0
- package/src/services/registry_v1.ts +863 -0
- package/src/services/reseller_v1.ts +258 -0
- package/src/services/vpc_gw_v2.ts +2130 -0
- package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
- package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
- package/src/services/vpc_v2.ts +2533 -0
- package/src/services/webhosting_backup_v1.ts +578 -0
- package/src/services/webhosting_control_panel_v1.ts +130 -0
- package/src/services/webhosting_database_v1.ts +682 -0
- package/src/services/webhosting_dedibox_v1.ts +480 -0
- package/src/services/webhosting_dns_v1.ts +471 -0
- package/src/services/webhosting_free_domain_v1.ts +190 -0
- package/src/services/webhosting_ftp_account_v1.ts +280 -0
- package/src/services/webhosting_hosting_v1.ts +1309 -0
- package/src/services/webhosting_mail_account_v1.ts +291 -0
- package/src/services/webhosting_offer_v1.ts +289 -0
- package/src/services/webhosting_website_v1.ts +274 -0
- package/src/traits.ts +63 -0
- package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
- package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
- package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
- package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
- package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
- package/src/unstable-services/billing_v2beta1.ts +1203 -0
- package/src/unstable-services/block_v1alpha1.ts +1239 -0
- package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
- package/src/unstable-services/datalab_v1beta1.ts +852 -0
- package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
- package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
- package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
- package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
- package/src/unstable-services/domain_v2beta1.ts +1794 -0
- package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
- package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
- package/src/unstable-services/file_v1alpha1.ts +1016 -0
- package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
- package/src/unstable-services/functions_v1beta1.ts +2410 -0
- package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
- package/src/unstable-services/iam_v1alpha1.ts +4919 -0
- package/src/unstable-services/index.ts +44 -0
- package/src/unstable-services/instance_v2alpha1.ts +5377 -0
- package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
- package/src/unstable-services/interlink_v1beta1.ts +1791 -0
- package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
- package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
- package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
- package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
- package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
- package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
- package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
- package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
- package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
- package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
- package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
- package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
- package/src/unstable-services/search_v1alpha1.ts +349 -0
- package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
- package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
- package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
- package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
- package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
- package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
|
@@ -0,0 +1,3108 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import type * as Redacted from "effect/Redacted";
|
|
7
|
+
import { ScalewayServiceErrors } from "../errors.ts";
|
|
8
|
+
import { paginateByTotalCount } from "../pagination.ts";
|
|
9
|
+
import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
|
|
10
|
+
import * as Retry from "../retry.ts";
|
|
11
|
+
import * as T from "../traits.ts";
|
|
12
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
13
|
+
const __s: any[] = [];
|
|
14
|
+
|
|
15
|
+
export type { ScalewayOpError, ScalewayOpContext };
|
|
16
|
+
|
|
17
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
18
|
+
const TELEMETRY = {
|
|
19
|
+
system: "scaleway-api",
|
|
20
|
+
responseHeaders: [
|
|
21
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
22
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
23
|
+
],
|
|
24
|
+
prefix: "Scaleway",
|
|
25
|
+
service: "K8sV1",
|
|
26
|
+
labels: "scaleway",
|
|
27
|
+
propagate: "w3c",
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
export type AddClusterACLRulesRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
31
|
+
export interface ACLRuleRequest {
|
|
32
|
+
/** IP subnet to allow. (IP network) Precisely one of ip, scaleway_ranges can be set. */
|
|
33
|
+
ip?: string | null | undefined;
|
|
34
|
+
/** Allow access to cluster from all Scaleway ranges as defined in https://www.scaleway.com/en/docs/console/account/reference-content/scaleway-network-information/#ip-ranges-used-by-scaleway. Only one rule with this field set to true can be added. Precisely one of ip, scaleway_ranges can be set. */
|
|
35
|
+
scaleway_ranges?: boolean | null | undefined;
|
|
36
|
+
/** Description of the ACL. */
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
}
|
|
39
|
+
/** ACLs to add. */
|
|
40
|
+
export type AddClusterACLRulesRequestAclsList = Array<ACLRuleRequest>;
|
|
41
|
+
export interface AddClusterACLRulesRequest {
|
|
42
|
+
/** The region you want to target */
|
|
43
|
+
region?: AddClusterACLRulesRequestRegion | (string & {}) | undefined;
|
|
44
|
+
/** ID of the cluster whose ACLs will be added. */
|
|
45
|
+
cluster_id: string;
|
|
46
|
+
/** ACLs to add. */
|
|
47
|
+
acls?: AddClusterACLRulesRequestAclsList | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface ACLRule {
|
|
50
|
+
/** ID of the ACL rule. (UUID format) */
|
|
51
|
+
id?: string | undefined;
|
|
52
|
+
/** The SRN of the ACL rule. */
|
|
53
|
+
srn?: string | undefined;
|
|
54
|
+
/** IP subnet to allow. (IP network) Precisely one of ip, scaleway_ranges can be set. */
|
|
55
|
+
ip?: string | null | undefined;
|
|
56
|
+
/** Allow access to cluster from all Scaleway ranges as defined in https://www.scaleway.com/en/docs/console/account/reference-content/scaleway-network-information/#ip-ranges-used-by-scaleway. Only one rule with this field set to true can be added. Precisely one of ip, scaleway_ranges can be set. */
|
|
57
|
+
scaleway_ranges?: boolean | null | undefined;
|
|
58
|
+
/** Description of the ACL. */
|
|
59
|
+
description?: string | undefined;
|
|
60
|
+
/** Region of the ACL rule. */
|
|
61
|
+
region?: string | undefined;
|
|
62
|
+
}
|
|
63
|
+
/** ACLs that were added. */
|
|
64
|
+
export type AddClusterACLRulesResponseRulesList = Array<ACLRule>;
|
|
65
|
+
export interface AddClusterACLRulesResponse {
|
|
66
|
+
/** ACLs that were added. */
|
|
67
|
+
rules?: AddClusterACLRulesResponseRulesList | undefined;
|
|
68
|
+
}
|
|
69
|
+
export type CreateClusterRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
70
|
+
/** Tags associated with the cluster. */
|
|
71
|
+
export type CreateClusterRequestTagsList = Array<string>;
|
|
72
|
+
export type CNI = "unknown_cni" | "cilium" | "calico" | "kilo" | "none" | "cilium_native";
|
|
73
|
+
export type Runtime = "unknown_runtime" | "containerd";
|
|
74
|
+
/** Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags). */
|
|
75
|
+
export type CreateClusterRequestPoolConfigTagsList = Array<string>;
|
|
76
|
+
/** Kubelet arguments to be used by this pool. Note that this feature is experimental. */
|
|
77
|
+
export type CreateClusterRequestPoolConfigKubeletArgsMap = { [key: string]: string | undefined };
|
|
78
|
+
export interface CreateClusterRequestPoolConfigUpgradePolicy {
|
|
79
|
+
/** The maximum number of nodes that can be `upgrading` at the same time. */
|
|
80
|
+
max_unavailable?: number | null | undefined;
|
|
81
|
+
/** The maximum number of nodes to be created during the upgrade, e.g. the pool will scale up to reach `size`+`max_surge` before downscaling to `size` after node upgrades. */
|
|
82
|
+
max_surge?: number | null | undefined;
|
|
83
|
+
}
|
|
84
|
+
export type PoolVolumeType = "default_volume_type" | "l_ssd" | "b_ssd" | "sbs_5k" | "sbs_15k";
|
|
85
|
+
/** Kubernetes labels applied and reconciled on the nodes. */
|
|
86
|
+
export type CreateClusterRequestPoolConfigLabelsMap = { [key: string]: string | undefined };
|
|
87
|
+
export type CoreV1TaintEffect = "NoSchedule" | "PreferNoSchedule" | "NoExecute";
|
|
88
|
+
export interface CoreV1Taint {
|
|
89
|
+
/** The taint key to be applied to a node. */
|
|
90
|
+
key?: string | undefined;
|
|
91
|
+
/** The taint value corresponding to the taint key. */
|
|
92
|
+
value?: string | undefined;
|
|
93
|
+
/** Effect defines the effects of Taint. */
|
|
94
|
+
effect?: CoreV1TaintEffect | (string & {}) | undefined;
|
|
95
|
+
}
|
|
96
|
+
/** Kubernetes taints applied and reconciled on the nodes. */
|
|
97
|
+
export type CreateClusterRequestPoolConfigTaintsList = Array<CoreV1Taint>;
|
|
98
|
+
/** Kubernetes taints applied at node creation but not reconciled afterwards. */
|
|
99
|
+
export type CreateClusterRequestPoolConfigStartupTaintsList = Array<CoreV1Taint>;
|
|
100
|
+
/** User data applied and reconciled with the pool. */
|
|
101
|
+
export type CreateClusterRequestPoolConfigUserDataMap = { [key: string]: string | undefined };
|
|
102
|
+
export interface CreateClusterRequestPoolConfig {
|
|
103
|
+
/** Name of the pool. */
|
|
104
|
+
name: string;
|
|
105
|
+
/** Node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster. */
|
|
106
|
+
node_type: string;
|
|
107
|
+
/** Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. */
|
|
108
|
+
placement_group_id?: string | null | undefined;
|
|
109
|
+
/** Defines whether the autoscaling feature is enabled for the pool. */
|
|
110
|
+
autoscaling?: boolean | undefined;
|
|
111
|
+
/** Size (number of nodes) of the pool. */
|
|
112
|
+
size: number;
|
|
113
|
+
/** Defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. */
|
|
114
|
+
min_size?: number | null | undefined;
|
|
115
|
+
/** Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. */
|
|
116
|
+
max_size?: number | null | undefined;
|
|
117
|
+
/** Customization of the container runtime is available for each pool. */
|
|
118
|
+
container_runtime?: Runtime | (string & {}) | undefined;
|
|
119
|
+
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
120
|
+
autohealing?: boolean | undefined;
|
|
121
|
+
/** Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags). */
|
|
122
|
+
tags?: CreateClusterRequestPoolConfigTagsList | undefined;
|
|
123
|
+
/** Kubelet arguments to be used by this pool. Note that this feature is experimental. */
|
|
124
|
+
kubelet_args?: CreateClusterRequestPoolConfigKubeletArgsMap | undefined;
|
|
125
|
+
/** Defines how node provisioning should behave during pool version upgrade. */
|
|
126
|
+
upgrade_policy?: CreateClusterRequestPoolConfigUpgradePolicy | undefined;
|
|
127
|
+
/** Zone in which the pool's nodes will be spawned. */
|
|
128
|
+
zone?: string | undefined;
|
|
129
|
+
/** Defines the system volume disk type. Several types of volume (`volume_type`) are provided:. * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead. */
|
|
130
|
+
root_volume_type?: PoolVolumeType | (string & {}) | undefined;
|
|
131
|
+
/** System volume disk size. (in bytes) */
|
|
132
|
+
root_volume_size?: number | null | undefined;
|
|
133
|
+
/** Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway. */
|
|
134
|
+
public_ip_disabled?: boolean | undefined;
|
|
135
|
+
/** Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone. */
|
|
136
|
+
security_group_id?: string | null | undefined;
|
|
137
|
+
/** Kubernetes labels applied and reconciled on the nodes. */
|
|
138
|
+
labels?: CreateClusterRequestPoolConfigLabelsMap | undefined;
|
|
139
|
+
/** Kubernetes taints applied and reconciled on the nodes. */
|
|
140
|
+
taints?: CreateClusterRequestPoolConfigTaintsList | undefined;
|
|
141
|
+
/** Kubernetes taints applied at node creation but not reconciled afterwards. */
|
|
142
|
+
startup_taints?: CreateClusterRequestPoolConfigStartupTaintsList | undefined;
|
|
143
|
+
/** Private network where the nodes are attached. Should be member of the same VPC as the API Server. */
|
|
144
|
+
private_network_id?: string | null | undefined;
|
|
145
|
+
/** Maximum amount of time in seconds before the API forces the drain and deletion of a `deleting` node. It overrides pods `PodDisruptionBudget` and `terminationGracePeriodSeconds`. Defaults to 15 minutes, up to 1 hour. (in seconds) */
|
|
146
|
+
max_termination_grace_period?: string | null | undefined;
|
|
147
|
+
/** User data applied and reconciled with the pool. */
|
|
148
|
+
user_data?: CreateClusterRequestPoolConfigUserDataMap | undefined;
|
|
149
|
+
}
|
|
150
|
+
/** Pools created along with the cluster. */
|
|
151
|
+
export type CreateClusterRequestPoolsList = Array<CreateClusterRequestPoolConfig>;
|
|
152
|
+
export type AutoscalerEstimator = "unknown_estimator" | "binpacking";
|
|
153
|
+
export type AutoscalerExpander =
|
|
154
|
+
| "unknown_expander"
|
|
155
|
+
| "random"
|
|
156
|
+
| "most_pods"
|
|
157
|
+
| "least_waste"
|
|
158
|
+
| "priority"
|
|
159
|
+
| "price";
|
|
160
|
+
export interface CreateClusterRequestAutoscalerConfig {
|
|
161
|
+
/** Forbid cluster autoscaler to scale down the cluster, defaults to false. */
|
|
162
|
+
scale_down_disabled?: boolean | null | undefined;
|
|
163
|
+
/** How long after scale up the scale down evaluation resumes. */
|
|
164
|
+
scale_down_delay_after_add?: string | null | undefined;
|
|
165
|
+
/** Type of resource estimator to be used in scale up. */
|
|
166
|
+
estimator?: AutoscalerEstimator | (string & {}) | undefined;
|
|
167
|
+
/** Kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details. */
|
|
168
|
+
expander?: AutoscalerExpander | (string & {}) | undefined;
|
|
169
|
+
/** Ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false. */
|
|
170
|
+
ignore_daemonsets_utilization?: boolean | null | undefined;
|
|
171
|
+
/** Detect similar node groups and balance the number of nodes between them, defaults to false. */
|
|
172
|
+
balance_similar_node_groups?: boolean | null | undefined;
|
|
173
|
+
/** Pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable. */
|
|
174
|
+
expendable_pods_priority_cutoff?: number | null | undefined;
|
|
175
|
+
/** How long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes. */
|
|
176
|
+
scale_down_unneeded_time?: string | null | undefined;
|
|
177
|
+
/** Node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down. */
|
|
178
|
+
scale_down_utilization_threshold?: number | null | undefined;
|
|
179
|
+
/** Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes). */
|
|
180
|
+
max_graceful_termination_sec?: number | null | undefined;
|
|
181
|
+
/** Cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath, defaults to true. */
|
|
182
|
+
skip_nodes_with_local_storage?: boolean | null | undefined;
|
|
183
|
+
/** Cluster autoscaler logging level expressed from 0 to 4 (4 being the more verbose), defaults to 2. see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-increase-the-information-that-the-ca-is-logging for details. */
|
|
184
|
+
log_level?: number | null | undefined;
|
|
185
|
+
}
|
|
186
|
+
export type MaintenanceWindowDayOfTheWeek =
|
|
187
|
+
| "any"
|
|
188
|
+
| "monday"
|
|
189
|
+
| "tuesday"
|
|
190
|
+
| "wednesday"
|
|
191
|
+
| "thursday"
|
|
192
|
+
| "friday"
|
|
193
|
+
| "saturday"
|
|
194
|
+
| "sunday";
|
|
195
|
+
export interface MaintenanceWindow {
|
|
196
|
+
/** Start time of the two-hour maintenance window. */
|
|
197
|
+
start_hour?: number | undefined;
|
|
198
|
+
/** Day of the week for the maintenance window. */
|
|
199
|
+
day?: MaintenanceWindowDayOfTheWeek | (string & {}) | undefined;
|
|
200
|
+
}
|
|
201
|
+
export interface CreateClusterRequestAutoUpgrade {
|
|
202
|
+
/** Defines whether auto upgrade is enabled for the cluster. */
|
|
203
|
+
enable?: boolean | undefined;
|
|
204
|
+
/** Maintenance window of the cluster auto upgrades. */
|
|
205
|
+
maintenance_window?: MaintenanceWindow | undefined;
|
|
206
|
+
}
|
|
207
|
+
/** List of feature gates to enable. */
|
|
208
|
+
export type CreateClusterRequestFeatureGatesList = Array<string>;
|
|
209
|
+
/** List of admission plugins to enable. */
|
|
210
|
+
export type CreateClusterRequestAdmissionPluginsList = Array<string>;
|
|
211
|
+
/** JWT claim to use as the user's group. */
|
|
212
|
+
export type CreateClusterRequestOpenIDConnectConfigGroupsClaimList = Array<unknown>;
|
|
213
|
+
/** Multiple key=value pairs describing a required claim in the ID token. If set, the claims are verified to be present in the ID token with a matching value. */
|
|
214
|
+
export type CreateClusterRequestOpenIDConnectConfigRequiredClaimList = Array<unknown>;
|
|
215
|
+
export interface CreateClusterRequestOpenIDConnectConfig {
|
|
216
|
+
/** URL of the provider which allows the API server to discover public signing keys. Only URLs using the `https://` scheme are accepted. This is typically the provider's discovery URL without a path, for example "https://accounts.google.com" or "https://login.salesforce.com". */
|
|
217
|
+
issuer_url?: string | undefined;
|
|
218
|
+
/** A client ID that all tokens must be issued for. */
|
|
219
|
+
client_id?: string | undefined;
|
|
220
|
+
/** JWT claim to use as the user name. The default is `sub`, which is expected to be the end user's unique identifier. Admins can choose other claims, such as `email` or `name`, depending on their provider. However, claims other than `email` will be prefixed with the issuer URL to prevent name collision. */
|
|
221
|
+
username_claim?: string | null | undefined;
|
|
222
|
+
/** Prefix prepended to username claims to prevent name collision (such as `system:` users). For example, the value `oidc:` will create usernames like `oidc:jane.doe`. If this flag is not provided and `username_claim` is a value other than `email`, the prefix defaults to `( Issuer URL )#` where `( Issuer URL )` is the value of `issuer_url`. The value `-` can be used to disable all prefixing. */
|
|
223
|
+
username_prefix?: string | null | undefined;
|
|
224
|
+
/** JWT claim to use as the user's group. */
|
|
225
|
+
groups_claim?: CreateClusterRequestOpenIDConnectConfigGroupsClaimList | null | undefined;
|
|
226
|
+
/** Prefix prepended to group claims to prevent name collision (such as `system:` groups). For example, the value `oidc:` will create group names like `oidc:engineering` and `oidc:infra`. */
|
|
227
|
+
groups_prefix?: string | null | undefined;
|
|
228
|
+
/** Multiple key=value pairs describing a required claim in the ID token. If set, the claims are verified to be present in the ID token with a matching value. */
|
|
229
|
+
required_claim?: CreateClusterRequestOpenIDConnectConfigRequiredClaimList | null | undefined;
|
|
230
|
+
}
|
|
231
|
+
/** Additional Subject Alternative Names for the Kubernetes API server certificate. */
|
|
232
|
+
export type CreateClusterRequestApiserverCertSansList = Array<string>;
|
|
233
|
+
export interface CreateClusterRequest {
|
|
234
|
+
/** The region you want to target */
|
|
235
|
+
region?: CreateClusterRequestRegion | (string & {}) | undefined;
|
|
236
|
+
/** Organization ID in which the cluster will be created. One of project_id, organization_id is required. */
|
|
237
|
+
organization_id?: string | null | undefined;
|
|
238
|
+
/** Project ID in which the cluster will be created. One of project_id, organization_id is required. */
|
|
239
|
+
project_id?: string | null | undefined;
|
|
240
|
+
/** Type of the cluster. See [list available cluster types](#list-available-cluster-types-for-a-cluster) for a list of valid types. */
|
|
241
|
+
type?: string | undefined;
|
|
242
|
+
/** Cluster name. */
|
|
243
|
+
name: string;
|
|
244
|
+
/** Cluster description. */
|
|
245
|
+
description?: string | undefined;
|
|
246
|
+
/** Tags associated with the cluster. */
|
|
247
|
+
tags?: CreateClusterRequestTagsList | undefined;
|
|
248
|
+
/** Kubernetes version of the cluster. */
|
|
249
|
+
version: string;
|
|
250
|
+
/** Container Network Interface (CNI) plugin running in the cluster. */
|
|
251
|
+
cni: CNI | (string & {});
|
|
252
|
+
/** Pools created along with the cluster. */
|
|
253
|
+
pools?: CreateClusterRequestPoolsList | undefined;
|
|
254
|
+
/** Autoscaler configuration for the cluster. It allows you to set (to an extent) your preferred autoscaler configuration, which is an implementation of the cluster-autoscaler (https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler/). */
|
|
255
|
+
autoscaler_config?: CreateClusterRequestAutoscalerConfig | undefined;
|
|
256
|
+
/** Auto upgrade configuration of the cluster. This configuration enables to set a specific 2-hour time window in which the cluster can be automatically updated to the latest patch version. */
|
|
257
|
+
auto_upgrade?: CreateClusterRequestAutoUpgrade | undefined;
|
|
258
|
+
/** List of feature gates to enable. */
|
|
259
|
+
feature_gates?: CreateClusterRequestFeatureGatesList | undefined;
|
|
260
|
+
/** List of admission plugins to enable. */
|
|
261
|
+
admission_plugins?: CreateClusterRequestAdmissionPluginsList | undefined;
|
|
262
|
+
/** OpenID Connect configuration of the cluster. This configuration enables to update the OpenID Connect configuration of the Kubernetes API server. */
|
|
263
|
+
open_id_connect_config?: CreateClusterRequestOpenIDConnectConfig | undefined;
|
|
264
|
+
/** Additional Subject Alternative Names for the Kubernetes API server certificate. */
|
|
265
|
+
apiserver_cert_sans?: CreateClusterRequestApiserverCertSansList | undefined;
|
|
266
|
+
/** Private network ID for internal cluster communication (cannot be changed later). */
|
|
267
|
+
private_network_id?: string | null | undefined;
|
|
268
|
+
/** Subnet used for the Pod CIDR (cannot be changed later). (IP network) */
|
|
269
|
+
pod_cidr?: string | null | undefined;
|
|
270
|
+
/** Subnet used for the Service CIDR (cannot be changed later). (IP network) */
|
|
271
|
+
service_cidr?: string | null | undefined;
|
|
272
|
+
/** IP used for the DNS Service (cannot be changes later). If unset, default to Service CIDR's network + 10. (IPv4 address) */
|
|
273
|
+
service_dns_ip?: string | null | undefined;
|
|
274
|
+
}
|
|
275
|
+
export type ClusterStatus =
|
|
276
|
+
| "unknown"
|
|
277
|
+
| "creating"
|
|
278
|
+
| "ready"
|
|
279
|
+
| "deleting"
|
|
280
|
+
| "deleted"
|
|
281
|
+
| "updating"
|
|
282
|
+
| "locked"
|
|
283
|
+
| "pool_required";
|
|
284
|
+
/** Tags associated with the cluster. */
|
|
285
|
+
export type ClusterTagsList = Array<string>;
|
|
286
|
+
export interface ClusterAutoscalerConfig {
|
|
287
|
+
/** Forbid cluster autoscaler to scale down the cluster, defaults to false. */
|
|
288
|
+
scale_down_disabled?: boolean | undefined;
|
|
289
|
+
/** How long after scale up the scale down evaluation resumes. */
|
|
290
|
+
scale_down_delay_after_add?: string | undefined;
|
|
291
|
+
/** Type of resource estimator to be used in scale up. */
|
|
292
|
+
estimator?: AutoscalerEstimator | undefined;
|
|
293
|
+
/** Kubernetes autoscaler strategy to fit pods into nodes, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-expanders for details. */
|
|
294
|
+
expander?: AutoscalerExpander | undefined;
|
|
295
|
+
/** Ignore DaemonSet pods when calculating resource utilization for scaling down, defaults to false. */
|
|
296
|
+
ignore_daemonsets_utilization?: boolean | undefined;
|
|
297
|
+
/** Detect similar node groups and balance the number of nodes between them, defaults to false. */
|
|
298
|
+
balance_similar_node_groups?: boolean | undefined;
|
|
299
|
+
/** Pods with priority below cutoff will be expendable. They can be killed without any consideration during scale down and they won't cause scale up. Pods with null priority (PodPriority disabled) are non expendable. */
|
|
300
|
+
expendable_pods_priority_cutoff?: number | undefined;
|
|
301
|
+
/** How long a node should be unneeded before it is eligible for scale down, defaults to 10 minutes. */
|
|
302
|
+
scale_down_unneeded_time?: string | undefined;
|
|
303
|
+
/** Node utilization level, defined as a sum of requested resources divided by allocatable capacity, below which a node can be considered for scale down. */
|
|
304
|
+
scale_down_utilization_threshold?: number | undefined;
|
|
305
|
+
/** Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node, defaults to 600 (10 minutes). */
|
|
306
|
+
max_graceful_termination_sec?: number | undefined;
|
|
307
|
+
/** Cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath, defaults to true. */
|
|
308
|
+
skip_nodes_with_local_storage?: boolean | undefined;
|
|
309
|
+
/** Cluster autoscaler logging level expressed from 0 to 4 (4 being the more verbose), defaults to 2. see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-increase-the-information-that-the-ca-is-logging for details. */
|
|
310
|
+
log_level?: number | undefined;
|
|
311
|
+
}
|
|
312
|
+
export interface ClusterAutoUpgrade {
|
|
313
|
+
/** Defines whether auto upgrade is enabled for the cluster. */
|
|
314
|
+
enabled?: boolean | undefined;
|
|
315
|
+
/** Maintenance window of the cluster auto upgrades. */
|
|
316
|
+
maintenance_window?: MaintenanceWindow | undefined;
|
|
317
|
+
}
|
|
318
|
+
/** List of enabled feature gates. */
|
|
319
|
+
export type ClusterFeatureGatesList = Array<string>;
|
|
320
|
+
/** List of enabled admission plugins. */
|
|
321
|
+
export type ClusterAdmissionPluginsList = Array<string>;
|
|
322
|
+
/** JWT claim to use as the user's group. */
|
|
323
|
+
export type ClusterOpenIDConnectConfigGroupsClaimList = Array<string>;
|
|
324
|
+
/** Multiple key=value pairs describing a required claim in the ID token. If set, the claims are verified to be present in the ID token with a matching value. */
|
|
325
|
+
export type ClusterOpenIDConnectConfigRequiredClaimList = Array<string>;
|
|
326
|
+
export interface ClusterOpenIDConnectConfig {
|
|
327
|
+
/** URL of the provider which allows the API server to discover public signing keys. Only URLs using the `https://` scheme are accepted. This is typically the provider's discovery URL without a path, for example "https://accounts.google.com" or "https://login.salesforce.com". */
|
|
328
|
+
issuer_url?: string | undefined;
|
|
329
|
+
/** A client ID that all tokens must be issued for. */
|
|
330
|
+
client_id?: string | undefined;
|
|
331
|
+
/** JWT claim to use as the user name. The default is `sub`, which is expected to be the end user's unique identifier. Admins can choose other claims, such as `email` or `name`, depending on their provider. However, claims other than `email` will be prefixed with the issuer URL to prevent name collision. */
|
|
332
|
+
username_claim?: string | undefined;
|
|
333
|
+
/** Prefix prepended to username claims to prevent name collision (such as `system:` users). For example, the value `oidc:` will create usernames like `oidc:jane.doe`. If this flag is not provided and `username_claim` is a value other than `email`, the prefix defaults to `( Issuer URL )#` where `( Issuer URL )` is the value of `issuer_url`. The value `-` can be used to disable all prefixing. */
|
|
334
|
+
username_prefix?: string | undefined;
|
|
335
|
+
/** JWT claim to use as the user's group. */
|
|
336
|
+
groups_claim?: ClusterOpenIDConnectConfigGroupsClaimList | undefined;
|
|
337
|
+
/** Prefix prepended to group claims to prevent name collision (such as `system:` groups). For example, the value `oidc:` will create group names like `oidc:engineering` and `oidc:infra`. */
|
|
338
|
+
groups_prefix?: string | undefined;
|
|
339
|
+
/** Multiple key=value pairs describing a required claim in the ID token. If set, the claims are verified to be present in the ID token with a matching value. */
|
|
340
|
+
required_claim?: ClusterOpenIDConnectConfigRequiredClaimList | undefined;
|
|
341
|
+
}
|
|
342
|
+
/** Additional Subject Alternative Names for the Kubernetes API server certificate. */
|
|
343
|
+
export type ClusterApiserverCertSansList = Array<string>;
|
|
344
|
+
export interface Cluster {
|
|
345
|
+
/** Cluster ID. */
|
|
346
|
+
id?: string | undefined;
|
|
347
|
+
/** The SRN of the cluster. */
|
|
348
|
+
srn?: string | undefined;
|
|
349
|
+
/** Cluster type. */
|
|
350
|
+
type?: string | undefined;
|
|
351
|
+
/** Cluster name. */
|
|
352
|
+
name?: string | undefined;
|
|
353
|
+
/** Status of the cluster. */
|
|
354
|
+
status?: ClusterStatus | undefined;
|
|
355
|
+
/** Kubernetes version of the cluster. */
|
|
356
|
+
version?: string | undefined;
|
|
357
|
+
/** Region in which the cluster is deployed. */
|
|
358
|
+
region?: string | undefined;
|
|
359
|
+
/** ID of the Organization owning the cluster. */
|
|
360
|
+
organization_id?: string | undefined;
|
|
361
|
+
/** ID of the Project owning the cluster. */
|
|
362
|
+
project_id?: string | undefined;
|
|
363
|
+
/** Tags associated with the cluster. */
|
|
364
|
+
tags?: ClusterTagsList | undefined;
|
|
365
|
+
/** Container Network Interface (CNI) plugin running in the cluster. */
|
|
366
|
+
cni?: CNI | undefined;
|
|
367
|
+
/** Cluster description. */
|
|
368
|
+
description?: string | undefined;
|
|
369
|
+
/** Kubernetes API server URL of the cluster. */
|
|
370
|
+
cluster_url?: string | undefined;
|
|
371
|
+
/** Wildcard DNS resolving all the ready cluster nodes. */
|
|
372
|
+
dns_wildcard?: string | undefined;
|
|
373
|
+
/** Date on which the cluster was created. (RFC 3339 format) */
|
|
374
|
+
created_at?: string | null | undefined;
|
|
375
|
+
/** Date on which the cluster was last updated. (RFC 3339 format) */
|
|
376
|
+
updated_at?: string | null | undefined;
|
|
377
|
+
/** Autoscaler configuration for the cluster, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md for details. */
|
|
378
|
+
autoscaler_config?: ClusterAutoscalerConfig | undefined;
|
|
379
|
+
/** Auto upgrade Kubernetes version of the cluster. */
|
|
380
|
+
auto_upgrade?: ClusterAutoUpgrade | undefined;
|
|
381
|
+
/** Defines whether a new Kubernetes version is available. */
|
|
382
|
+
upgrade_available?: boolean | undefined;
|
|
383
|
+
/** List of enabled feature gates. */
|
|
384
|
+
feature_gates?: ClusterFeatureGatesList | undefined;
|
|
385
|
+
/** List of enabled admission plugins. */
|
|
386
|
+
admission_plugins?: ClusterAdmissionPluginsList | undefined;
|
|
387
|
+
/** This configuration enables to update the OpenID Connect configuration of the Kubernetes API server. */
|
|
388
|
+
open_id_connect_config?: ClusterOpenIDConnectConfig | undefined;
|
|
389
|
+
/** Additional Subject Alternative Names for the Kubernetes API server certificate. */
|
|
390
|
+
apiserver_cert_sans?: ClusterApiserverCertSansList | undefined;
|
|
391
|
+
/** Private network ID for internal cluster communication. */
|
|
392
|
+
private_network_id?: string | null | undefined;
|
|
393
|
+
/** Date on which it will be possible to switch to a smaller offer. (RFC 3339 format) */
|
|
394
|
+
commitment_ends_at?: string | null | undefined;
|
|
395
|
+
/** Defines whether ACL is available on the cluster. */
|
|
396
|
+
acl_available?: boolean | undefined;
|
|
397
|
+
/** IAM group that nodes are members of (this field might be empty during early stage of cluster creation). */
|
|
398
|
+
iam_nodes_group_id?: string | undefined;
|
|
399
|
+
/** IAM application ID for the control plane (this field might be empty during early stage of cluster creation). */
|
|
400
|
+
iam_control_plane_application_id?: string | undefined;
|
|
401
|
+
/** Subnet used for the Pod CIDR. (IP network) */
|
|
402
|
+
pod_cidr?: string | undefined;
|
|
403
|
+
/** Subnet used for the Service CIDR. (IP network) */
|
|
404
|
+
service_cidr?: string | undefined;
|
|
405
|
+
/** IP used for the DNS Service. (IPv4 address) */
|
|
406
|
+
service_dns_ip?: string | undefined;
|
|
407
|
+
}
|
|
408
|
+
export type CreatePoolRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
409
|
+
/** Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags). */
|
|
410
|
+
export type CreatePoolRequestTagsList = Array<string>;
|
|
411
|
+
/** Kubelet arguments to be used by this pool. Note that this feature is experimental. */
|
|
412
|
+
export type CreatePoolRequestKubeletArgsMap = { [key: string]: string | undefined };
|
|
413
|
+
export type CreatePoolRequestUpgradePolicy = CreateClusterRequestPoolConfigUpgradePolicy;
|
|
414
|
+
/** Kubernetes labels applied and reconciled on the nodes. */
|
|
415
|
+
export type CreatePoolRequestLabelsMap = { [key: string]: string | undefined };
|
|
416
|
+
/** Kubernetes taints applied and reconciled on the nodes. */
|
|
417
|
+
export type CreatePoolRequestTaintsList = Array<CoreV1Taint>;
|
|
418
|
+
/** Kubernetes taints applied at node creation but not reconciled afterwards. */
|
|
419
|
+
export type CreatePoolRequestStartupTaintsList = Array<CoreV1Taint>;
|
|
420
|
+
/** User data applied and reconciled with the pool. */
|
|
421
|
+
export type CreatePoolRequestUserDataMap = { [key: string]: string | undefined };
|
|
422
|
+
export interface CreatePoolRequest {
|
|
423
|
+
/** The region you want to target */
|
|
424
|
+
region?: CreatePoolRequestRegion | (string & {}) | undefined;
|
|
425
|
+
/** Cluster ID to which the pool will be attached. */
|
|
426
|
+
cluster_id: string;
|
|
427
|
+
/** Pool name. */
|
|
428
|
+
name: string;
|
|
429
|
+
/** Node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster. */
|
|
430
|
+
node_type: string;
|
|
431
|
+
/** Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. */
|
|
432
|
+
placement_group_id?: string | null | undefined;
|
|
433
|
+
/** Defines whether the autoscaling feature is enabled for the pool. */
|
|
434
|
+
autoscaling?: boolean | undefined;
|
|
435
|
+
/** Size (number of nodes) of the pool. */
|
|
436
|
+
size: number;
|
|
437
|
+
/** Defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. */
|
|
438
|
+
min_size?: number | null | undefined;
|
|
439
|
+
/** Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. */
|
|
440
|
+
max_size?: number | null | undefined;
|
|
441
|
+
/** Customization of the container runtime is available for each pool. */
|
|
442
|
+
container_runtime?: Runtime | (string & {}) | undefined;
|
|
443
|
+
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
444
|
+
autohealing?: boolean | undefined;
|
|
445
|
+
/** Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags). */
|
|
446
|
+
tags?: CreatePoolRequestTagsList | undefined;
|
|
447
|
+
/** Kubelet arguments to be used by this pool. Note that this feature is experimental. */
|
|
448
|
+
kubelet_args?: CreatePoolRequestKubeletArgsMap | undefined;
|
|
449
|
+
/** Defines how node provisioning should behave during pool version upgrade. */
|
|
450
|
+
upgrade_policy?: CreateClusterRequestPoolConfigUpgradePolicy | undefined;
|
|
451
|
+
/** Zone in which the pool's nodes will be spawned. */
|
|
452
|
+
zone?: string | undefined;
|
|
453
|
+
/** Defines the system volume disk type. Several types of volume (`volume_type`) are provided:. * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead. */
|
|
454
|
+
root_volume_type?: PoolVolumeType | (string & {}) | undefined;
|
|
455
|
+
/** System volume disk size. (in bytes) */
|
|
456
|
+
root_volume_size?: number | null | undefined;
|
|
457
|
+
/** Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway. */
|
|
458
|
+
public_ip_disabled?: boolean | undefined;
|
|
459
|
+
/** Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone. */
|
|
460
|
+
security_group_id?: string | null | undefined;
|
|
461
|
+
/** Kubernetes labels applied and reconciled on the nodes. */
|
|
462
|
+
labels?: CreatePoolRequestLabelsMap | undefined;
|
|
463
|
+
/** Kubernetes taints applied and reconciled on the nodes. */
|
|
464
|
+
taints?: CreatePoolRequestTaintsList | undefined;
|
|
465
|
+
/** Kubernetes taints applied at node creation but not reconciled afterwards. */
|
|
466
|
+
startup_taints?: CreatePoolRequestStartupTaintsList | undefined;
|
|
467
|
+
/** Private network where the nodes are attached. Should be member of the same VPC as the API Server. */
|
|
468
|
+
private_network_id?: string | null | undefined;
|
|
469
|
+
/** User data applied and reconciled with the pool. */
|
|
470
|
+
user_data?: CreatePoolRequestUserDataMap | undefined;
|
|
471
|
+
/** Maximum amount of time in seconds before the API forces the drain and deletion of a `deleting` node. It overrides pods `PodDisruptionBudget` and `terminationGracePeriodSeconds`. Defaults to 15 minutes, up to 1 hour. (in seconds) */
|
|
472
|
+
max_termination_grace_period?: string | null | undefined;
|
|
473
|
+
}
|
|
474
|
+
export type PoolStatus =
|
|
475
|
+
| "unknown"
|
|
476
|
+
| "ready"
|
|
477
|
+
| "deleting"
|
|
478
|
+
| "deleted"
|
|
479
|
+
| "scaling"
|
|
480
|
+
| "warning"
|
|
481
|
+
| "locked"
|
|
482
|
+
| "upgrading";
|
|
483
|
+
/** Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags). */
|
|
484
|
+
export type PoolTagsList = Array<string>;
|
|
485
|
+
/** Kubelet arguments to be used by this pool. Note that this feature is experimental. */
|
|
486
|
+
export type PoolKubeletArgsMap = { [key: string]: string | undefined };
|
|
487
|
+
export interface PoolUpgradePolicy {
|
|
488
|
+
/** The maximum number of nodes that can be `upgrading` at the same time. */
|
|
489
|
+
max_unavailable?: number | undefined;
|
|
490
|
+
/** The maximum number of nodes to be created during the upgrade, e.g. the pool will scale up to reach `size`+`max_surge` before downscaling to `size` after node upgrades. */
|
|
491
|
+
max_surge?: number | undefined;
|
|
492
|
+
}
|
|
493
|
+
/** Kubernetes labels applied and reconciled on the nodes. */
|
|
494
|
+
export type PoolLabelsMap = { [key: string]: string | undefined };
|
|
495
|
+
/** Kubernetes taints applied and reconciled on the nodes. */
|
|
496
|
+
export type PoolTaintsList = Array<CoreV1Taint>;
|
|
497
|
+
/** Kubernetes taints applied at node creation but not reconciled afterwards. */
|
|
498
|
+
export type PoolStartupTaintsList = Array<CoreV1Taint>;
|
|
499
|
+
export interface Pool {
|
|
500
|
+
/** Pool ID. (UUID format) */
|
|
501
|
+
id?: string | undefined;
|
|
502
|
+
/** Cluster ID of the pool. (UUID format) */
|
|
503
|
+
cluster_id?: string | undefined;
|
|
504
|
+
/** Date on which the pool was created. (RFC 3339 format) */
|
|
505
|
+
created_at?: string | null | undefined;
|
|
506
|
+
/** Date on which the pool was last updated. (RFC 3339 format) */
|
|
507
|
+
updated_at?: string | null | undefined;
|
|
508
|
+
/** Pool name. */
|
|
509
|
+
name?: string | undefined;
|
|
510
|
+
/** Pool status. */
|
|
511
|
+
status?: PoolStatus | undefined;
|
|
512
|
+
/** Pool version. */
|
|
513
|
+
version?: string | undefined;
|
|
514
|
+
/** Node type is the type of Scaleway Instance wanted for the pool. Nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST). 'external' is a special node type used to provision instances from other cloud providers in a Kosmos Cluster. */
|
|
515
|
+
node_type: string;
|
|
516
|
+
/** Defines whether the autoscaling feature is enabled for the pool. */
|
|
517
|
+
autoscaling?: boolean | undefined;
|
|
518
|
+
/** Size (number of nodes) of the pool. */
|
|
519
|
+
size: number;
|
|
520
|
+
/** Defines the minimum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. */
|
|
521
|
+
min_size?: number | undefined;
|
|
522
|
+
/** Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool. */
|
|
523
|
+
max_size?: number | undefined;
|
|
524
|
+
/** Customization of the container runtime is available for each pool. */
|
|
525
|
+
container_runtime?: Runtime | undefined;
|
|
526
|
+
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
527
|
+
autohealing?: boolean | undefined;
|
|
528
|
+
/** Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags). */
|
|
529
|
+
tags?: PoolTagsList | undefined;
|
|
530
|
+
/** Placement group ID in which all the nodes of the pool will be created, placement groups are limited to 20 instances. (UUID format) */
|
|
531
|
+
placement_group_id?: string | null | undefined;
|
|
532
|
+
/** Kubelet arguments to be used by this pool. Note that this feature is experimental. */
|
|
533
|
+
kubelet_args?: PoolKubeletArgsMap | undefined;
|
|
534
|
+
/** Defines how node provisioning should behave during pool version upgrade. */
|
|
535
|
+
upgrade_policy?: PoolUpgradePolicy | undefined;
|
|
536
|
+
/** Zone in which the pool's nodes will be spawned. */
|
|
537
|
+
zone?: string | undefined;
|
|
538
|
+
/** Defines the system volume disk type. Several types of volume (`volume_type`) are provided:. * `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. This type is not available for all node types * `sbs_5k` is a remote block storage which means your system is stored on a centralized and resilient cluster with 5k IOPS limits * `sbs_15k` is a faster remote block storage which means your system is stored on a centralized and resilient cluster with 15k IOPS limits * `b_ssd` is the legacy remote block storage which means your system is stored on a centralized and resilient cluster. Not available for new pools, use `sbs_5k` or `sbs_15k` instead. */
|
|
539
|
+
root_volume_type?: PoolVolumeType | undefined;
|
|
540
|
+
/** System volume disk size. (in bytes) */
|
|
541
|
+
root_volume_size?: number | null | undefined;
|
|
542
|
+
/** Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway. */
|
|
543
|
+
public_ip_disabled?: boolean | undefined;
|
|
544
|
+
/** Security group ID in which all the nodes of the pool will be created. If unset, the pool will use default Kapsule security group in current zone. (UUID format) */
|
|
545
|
+
security_group_id?: string | undefined;
|
|
546
|
+
/** Kubernetes labels applied and reconciled on the nodes. */
|
|
547
|
+
labels?: PoolLabelsMap | undefined;
|
|
548
|
+
/** Kubernetes taints applied and reconciled on the nodes. */
|
|
549
|
+
taints?: PoolTaintsList | undefined;
|
|
550
|
+
/** Kubernetes taints applied at node creation but not reconciled afterwards. */
|
|
551
|
+
startup_taints?: PoolStartupTaintsList | undefined;
|
|
552
|
+
/** Private network where the nodes are attached. Should be member of the same VPC as the API Server. (UUID format) */
|
|
553
|
+
private_network_id?: string | null | undefined;
|
|
554
|
+
/** Details of the error, if any occurred when managing the pool. */
|
|
555
|
+
error_message?: string | null | undefined;
|
|
556
|
+
/** Maximum amount of time in seconds before the API forces the drain and deletion of a `deleting` node. It overrides pods `PodDisruptionBudget` and `terminationGracePeriodSeconds`. Defaults to 15 minutes, up to 1 hour. (in seconds) */
|
|
557
|
+
max_termination_grace_period?: string | null | undefined;
|
|
558
|
+
/** The SRN of the pool. */
|
|
559
|
+
srn?: string | undefined;
|
|
560
|
+
/** Cluster region of the pool. */
|
|
561
|
+
region?: string | undefined;
|
|
562
|
+
}
|
|
563
|
+
export type DeleteACLRuleRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
564
|
+
export interface DeleteACLRuleRequest {
|
|
565
|
+
/** The region you want to target */
|
|
566
|
+
region?: DeleteACLRuleRequestRegion | (string & {}) | undefined;
|
|
567
|
+
/** ID of the ACL rule to delete. */
|
|
568
|
+
acl_id: string;
|
|
569
|
+
}
|
|
570
|
+
export interface DeleteACLRuleResponse {}
|
|
571
|
+
export type DeleteClusterRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
572
|
+
export interface DeleteClusterRequest {
|
|
573
|
+
/** The region you want to target */
|
|
574
|
+
region?: DeleteClusterRequestRegion | (string & {}) | undefined;
|
|
575
|
+
/** ID of the cluster to delete. */
|
|
576
|
+
cluster_id: string;
|
|
577
|
+
/** Defines whether all volumes (including retain volume type), empty Private Networks and Load Balancers with a name starting with the cluster ID will also be deleted. */
|
|
578
|
+
with_additional_resources: boolean;
|
|
579
|
+
}
|
|
580
|
+
export type DeleteNodeRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
581
|
+
export interface DeleteNodeRequest {
|
|
582
|
+
/** The region you want to target */
|
|
583
|
+
region?: DeleteNodeRequestRegion | (string & {}) | undefined;
|
|
584
|
+
/** ID of the node to replace. */
|
|
585
|
+
node_id: string;
|
|
586
|
+
/** Skip draining node from its workload (Note: this parameter is currently inactive). */
|
|
587
|
+
skip_drain: boolean;
|
|
588
|
+
}
|
|
589
|
+
export type NodeStatus =
|
|
590
|
+
| "unknown"
|
|
591
|
+
| "creating"
|
|
592
|
+
| "not_ready"
|
|
593
|
+
| "ready"
|
|
594
|
+
| "deleting"
|
|
595
|
+
| "deleted"
|
|
596
|
+
| "locked"
|
|
597
|
+
| "rebooting"
|
|
598
|
+
| "creation_error"
|
|
599
|
+
| "upgrading"
|
|
600
|
+
| "starting"
|
|
601
|
+
| "registering";
|
|
602
|
+
export interface Node {
|
|
603
|
+
/** Node ID. */
|
|
604
|
+
id?: string | undefined;
|
|
605
|
+
/** The SRN of the node. */
|
|
606
|
+
srn?: string | undefined;
|
|
607
|
+
/** Pool ID of the node. */
|
|
608
|
+
pool_id?: string | undefined;
|
|
609
|
+
/** Cluster ID of the node. */
|
|
610
|
+
cluster_id?: string | undefined;
|
|
611
|
+
/** Underlying instance ID. It is prefixed by instance type and location information (see https://pkg.go.dev/k8s.io/api/core/v1#NodeSpec.ProviderID). */
|
|
612
|
+
provider_id?: string | undefined;
|
|
613
|
+
/** Cluster region of the node. */
|
|
614
|
+
region?: string | undefined;
|
|
615
|
+
/** Name of the node. */
|
|
616
|
+
name?: string | undefined;
|
|
617
|
+
/** Status of the node. */
|
|
618
|
+
status?: NodeStatus | undefined;
|
|
619
|
+
/** Details of the error, if any occurred when managing the node. */
|
|
620
|
+
error_message?: string | null | undefined;
|
|
621
|
+
/** Date on which the node was created. (RFC 3339 format) */
|
|
622
|
+
created_at?: string | null | undefined;
|
|
623
|
+
/** Date on which the node was last updated. (RFC 3339 format) */
|
|
624
|
+
updated_at?: string | null | undefined;
|
|
625
|
+
}
|
|
626
|
+
export type DeletePoolRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
627
|
+
export interface DeletePoolRequest {
|
|
628
|
+
/** The region you want to target */
|
|
629
|
+
region?: DeletePoolRequestRegion | (string & {}) | undefined;
|
|
630
|
+
/** ID of the pool to delete. */
|
|
631
|
+
pool_id: string;
|
|
632
|
+
}
|
|
633
|
+
export type GetClusterRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
634
|
+
export interface GetClusterRequest {
|
|
635
|
+
/** The region you want to target */
|
|
636
|
+
region?: GetClusterRequestRegion | (string & {}) | undefined;
|
|
637
|
+
/** ID of the requested cluster. */
|
|
638
|
+
cluster_id: string;
|
|
639
|
+
}
|
|
640
|
+
export type GetClusterKubeConfigRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
641
|
+
export type GetClusterKubeConfigRequestEndpoint = "unknown_endpoint" | "public" | "vpc";
|
|
642
|
+
export interface GetClusterKubeConfigRequest {
|
|
643
|
+
/** The region you want to target */
|
|
644
|
+
region?: GetClusterKubeConfigRequestRegion | (string & {}) | undefined;
|
|
645
|
+
/** Cluster ID for which to download the kubeconfig. */
|
|
646
|
+
cluster_id: string;
|
|
647
|
+
/** Hide the legacy token from the kubeconfig. */
|
|
648
|
+
redacted?: boolean | undefined;
|
|
649
|
+
/** Which endpoint to use to reach the APIServer (default: public). */
|
|
650
|
+
endpoint?: GetClusterKubeConfigRequestEndpoint | (string & {}) | undefined;
|
|
651
|
+
}
|
|
652
|
+
export interface ScalewayStdFile {
|
|
653
|
+
name?: string | undefined;
|
|
654
|
+
content_type?: string | undefined;
|
|
655
|
+
content?: string | Redacted.Redacted<string> | undefined;
|
|
656
|
+
}
|
|
657
|
+
export interface GetClusterKubeConfigRawRequest {
|
|
658
|
+
/** The region you want to target */
|
|
659
|
+
region?: GetClusterKubeConfigRequestRegion | (string & {}) | undefined;
|
|
660
|
+
/** Cluster ID for which to download the kubeconfig. */
|
|
661
|
+
cluster_id: string;
|
|
662
|
+
/** Hide the legacy token from the kubeconfig. */
|
|
663
|
+
redacted?: boolean | undefined;
|
|
664
|
+
/** Which endpoint to use to reach the APIServer (default: public). */
|
|
665
|
+
endpoint?: GetClusterKubeConfigRequestEndpoint | (string & {}) | undefined;
|
|
666
|
+
}
|
|
667
|
+
export interface GetClusterKubeConfigRawResponse {
|
|
668
|
+
body: BinaryStream;
|
|
669
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
670
|
+
contentType?: string | undefined;
|
|
671
|
+
}
|
|
672
|
+
export type GetNodeRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
673
|
+
export interface GetNodeRequest {
|
|
674
|
+
/** The region you want to target */
|
|
675
|
+
region?: GetNodeRequestRegion | (string & {}) | undefined;
|
|
676
|
+
/** ID of the requested node. */
|
|
677
|
+
node_id: string;
|
|
678
|
+
}
|
|
679
|
+
export type GetPoolRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
680
|
+
export interface GetPoolRequest {
|
|
681
|
+
/** The region you want to target */
|
|
682
|
+
region?: GetPoolRequestRegion | (string & {}) | undefined;
|
|
683
|
+
/** ID of the requested pool. */
|
|
684
|
+
pool_id: string;
|
|
685
|
+
}
|
|
686
|
+
export type GetUserDataRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
687
|
+
export interface GetUserDataRequest {
|
|
688
|
+
/** The region you want to target */
|
|
689
|
+
region?: GetUserDataRequestRegion | (string & {}) | undefined;
|
|
690
|
+
/** Pool the user data are associated to. */
|
|
691
|
+
pool_id: string;
|
|
692
|
+
/** User data key to retrieved. */
|
|
693
|
+
key: string;
|
|
694
|
+
}
|
|
695
|
+
export interface GetUserDataRawRequest {
|
|
696
|
+
/** The region you want to target */
|
|
697
|
+
region?: GetUserDataRequestRegion | (string & {}) | undefined;
|
|
698
|
+
/** Pool the user data are associated to. */
|
|
699
|
+
pool_id: string;
|
|
700
|
+
/** User data key to retrieved. */
|
|
701
|
+
key: string;
|
|
702
|
+
}
|
|
703
|
+
export interface GetUserDataRawResponse {
|
|
704
|
+
body: BinaryStream;
|
|
705
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
706
|
+
contentType?: string | undefined;
|
|
707
|
+
}
|
|
708
|
+
export type GetVersionRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
709
|
+
export interface GetVersionRequest {
|
|
710
|
+
/** The region you want to target */
|
|
711
|
+
region?: GetVersionRequestRegion | (string & {}) | undefined;
|
|
712
|
+
/** Requested version name. */
|
|
713
|
+
version_name: string;
|
|
714
|
+
}
|
|
715
|
+
/** Supported Container Network Interface (CNI) plugins for this version. */
|
|
716
|
+
export type VersionAvailableCnisList = Array<CNI>;
|
|
717
|
+
/** Supported feature gates for this version. */
|
|
718
|
+
export type VersionAvailableFeatureGatesList = Array<string>;
|
|
719
|
+
/** Supported admission plugins for this version. */
|
|
720
|
+
export type VersionAvailableAdmissionPluginsList = Array<string>;
|
|
721
|
+
/** Supported kubelet arguments for this version. */
|
|
722
|
+
export type VersionAvailableKubeletArgsMap = { [key: string]: string | undefined };
|
|
723
|
+
export interface ComponentInfo {
|
|
724
|
+
version?: string | undefined;
|
|
725
|
+
}
|
|
726
|
+
/** Map containing every sub-component version shipped with this Kapsule version. */
|
|
727
|
+
export type VersionAdditionalComponentsMap = { [key: string]: ComponentInfo | undefined };
|
|
728
|
+
export interface Version {
|
|
729
|
+
/** Name of the Kubernetes version. */
|
|
730
|
+
name?: string | undefined;
|
|
731
|
+
/** The SRN of the version. */
|
|
732
|
+
srn?: string | undefined;
|
|
733
|
+
/** Label of the Kubernetes version. */
|
|
734
|
+
label?: string | undefined;
|
|
735
|
+
/** Region in which this version is available. */
|
|
736
|
+
region?: string | undefined;
|
|
737
|
+
/** Supported Container Network Interface (CNI) plugins for this version. */
|
|
738
|
+
available_cnis?: VersionAvailableCnisList | undefined;
|
|
739
|
+
/** Supported feature gates for this version. */
|
|
740
|
+
available_feature_gates?: VersionAvailableFeatureGatesList | undefined;
|
|
741
|
+
/** Supported admission plugins for this version. */
|
|
742
|
+
available_admission_plugins?: VersionAvailableAdmissionPluginsList | undefined;
|
|
743
|
+
/** Supported kubelet arguments for this version. */
|
|
744
|
+
available_kubelet_args?: VersionAvailableKubeletArgsMap | undefined;
|
|
745
|
+
/** Date from which this version will no longer be available for provisioning. (RFC 3339 format) */
|
|
746
|
+
deprecated_at?: string | null | undefined;
|
|
747
|
+
/** Date from which any remaining clusters on this version will begin to be forcibly upgraded to the next minor version. (RFC 3339 format) */
|
|
748
|
+
end_of_life_at?: string | null | undefined;
|
|
749
|
+
/** Date at which this version was made available by Kapsule product. (RFC 3339 format) */
|
|
750
|
+
released_at?: string | null | undefined;
|
|
751
|
+
/** Map containing every sub-component version shipped with this Kapsule version. */
|
|
752
|
+
additional_components?: VersionAdditionalComponentsMap | undefined;
|
|
753
|
+
}
|
|
754
|
+
export type ListClusterACLRulesRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
755
|
+
export interface ListClusterACLRulesRequest {
|
|
756
|
+
/** The region you want to target */
|
|
757
|
+
region?: ListClusterACLRulesRequestRegion | (string & {}) | undefined;
|
|
758
|
+
/** ID of the cluster whose ACLs will be listed. */
|
|
759
|
+
cluster_id: string;
|
|
760
|
+
/** Page number for the returned ACLs. */
|
|
761
|
+
page?: number | undefined;
|
|
762
|
+
/** Maximum number of ACLs per page. */
|
|
763
|
+
page_size?: number | undefined;
|
|
764
|
+
}
|
|
765
|
+
/** Paginated returned ACLs. */
|
|
766
|
+
export type ListClusterACLRulesResponseRulesList = Array<ACLRule>;
|
|
767
|
+
export interface ListClusterACLRulesResponse {
|
|
768
|
+
/** Total number of ACLs that exist for the cluster. */
|
|
769
|
+
total_count?: number | undefined;
|
|
770
|
+
/** Paginated returned ACLs. */
|
|
771
|
+
rules: ListClusterACLRulesResponseRulesList;
|
|
772
|
+
}
|
|
773
|
+
export type ListClusterAvailableTypesRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
774
|
+
export interface ListClusterAvailableTypesRequest {
|
|
775
|
+
/** The region you want to target */
|
|
776
|
+
region?: ListClusterAvailableTypesRequestRegion | (string & {}) | undefined;
|
|
777
|
+
/** Cluster ID for which the available Kubernetes types will be listed. */
|
|
778
|
+
cluster_id: string;
|
|
779
|
+
}
|
|
780
|
+
export type ClusterTypeAvailability = "available" | "scarce" | "shortage";
|
|
781
|
+
export type ClusterTypeResiliency = "unknown_resiliency" | "standard" | "high_availability";
|
|
782
|
+
export interface ClusterType {
|
|
783
|
+
/** Cluster type name. */
|
|
784
|
+
name?: string | undefined;
|
|
785
|
+
/** The SRN of the cluster type. */
|
|
786
|
+
srn?: string | undefined;
|
|
787
|
+
/** Cluster type availability. */
|
|
788
|
+
availability?: ClusterTypeAvailability | undefined;
|
|
789
|
+
/** Maximum number of nodes supported by the offer. */
|
|
790
|
+
max_nodes?: number | undefined;
|
|
791
|
+
/** Time period during which you can no longer switch to a lower offer. (in seconds) */
|
|
792
|
+
commitment_delay?: string | null | undefined;
|
|
793
|
+
/** Value of the Service Level Agreement of the offer. */
|
|
794
|
+
sla?: number | undefined;
|
|
795
|
+
/** Resiliency offered by the offer. */
|
|
796
|
+
resiliency?: ClusterTypeResiliency | undefined;
|
|
797
|
+
/** Max RAM allowed for the control plane. (in bytes) */
|
|
798
|
+
memory?: number | undefined;
|
|
799
|
+
/** Returns information if this offer uses dedicated resources. */
|
|
800
|
+
dedicated?: boolean | undefined;
|
|
801
|
+
/** True if the offer allows activation of the audit log functionality. Please note that audit logs are sent to Cockpit. */
|
|
802
|
+
audit_logs_supported?: boolean | undefined;
|
|
803
|
+
/** The region of the cluster type. */
|
|
804
|
+
region?: string | undefined;
|
|
805
|
+
}
|
|
806
|
+
/** Available cluster types for the cluster. */
|
|
807
|
+
export type ListClusterAvailableTypesResponseClusterTypesList = Array<ClusterType>;
|
|
808
|
+
export interface ListClusterAvailableTypesResponse {
|
|
809
|
+
/** Available cluster types for the cluster. */
|
|
810
|
+
cluster_types?: ListClusterAvailableTypesResponseClusterTypesList | undefined;
|
|
811
|
+
/** Total number of types. */
|
|
812
|
+
total_count?: number | undefined;
|
|
813
|
+
}
|
|
814
|
+
export type ListClusterAvailableVersionsRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
815
|
+
export interface ListClusterAvailableVersionsRequest {
|
|
816
|
+
/** The region you want to target */
|
|
817
|
+
region?: ListClusterAvailableVersionsRequestRegion | (string & {}) | undefined;
|
|
818
|
+
/** Cluster ID for which the available Kubernetes versions will be listed. */
|
|
819
|
+
cluster_id: string;
|
|
820
|
+
}
|
|
821
|
+
/** Available Kubernetes versions for the cluster. */
|
|
822
|
+
export type ListClusterAvailableVersionsResponseVersionsList = Array<Version>;
|
|
823
|
+
export interface ListClusterAvailableVersionsResponse {
|
|
824
|
+
/** Available Kubernetes versions for the cluster. */
|
|
825
|
+
versions?: ListClusterAvailableVersionsResponseVersionsList | undefined;
|
|
826
|
+
}
|
|
827
|
+
export type ListClustersRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
828
|
+
export type ListClustersRequestOrderBy =
|
|
829
|
+
| "created_at_asc"
|
|
830
|
+
| "created_at_desc"
|
|
831
|
+
| "updated_at_asc"
|
|
832
|
+
| "updated_at_desc"
|
|
833
|
+
| "name_asc"
|
|
834
|
+
| "name_desc"
|
|
835
|
+
| "status_asc"
|
|
836
|
+
| "status_desc"
|
|
837
|
+
| "version_asc"
|
|
838
|
+
| "version_desc";
|
|
839
|
+
export interface ListClustersRequest {
|
|
840
|
+
/** The region you want to target */
|
|
841
|
+
region?: ListClustersRequestRegion | (string & {}) | undefined;
|
|
842
|
+
/** Organization ID on which to filter the returned clusters. */
|
|
843
|
+
organization_id?: string | undefined;
|
|
844
|
+
/** Project ID on which to filter the returned clusters. */
|
|
845
|
+
project_id?: string | undefined;
|
|
846
|
+
/** Sort order of returned clusters. */
|
|
847
|
+
order_by?: ListClustersRequestOrderBy | (string & {}) | undefined;
|
|
848
|
+
/** Page number to return for clusters, from the paginated results. */
|
|
849
|
+
page?: number | undefined;
|
|
850
|
+
/** Maximum number of clusters per page. */
|
|
851
|
+
page_size?: number | undefined;
|
|
852
|
+
/** Name to filter on, only clusters containing this substring in their name will be returned. */
|
|
853
|
+
name?: string | undefined;
|
|
854
|
+
/** Status to filter on, only clusters with this status will be returned. */
|
|
855
|
+
status?: ClusterStatus | (string & {}) | undefined;
|
|
856
|
+
/** Type to filter on, only clusters with this type will be returned. */
|
|
857
|
+
type?: string | undefined;
|
|
858
|
+
/** Private Network ID to filter on, only clusters within this Private Network will be returned. */
|
|
859
|
+
private_network_id?: string | undefined;
|
|
860
|
+
/** Version to filter on, only cluster matching this prefix version will be returned. */
|
|
861
|
+
version?: string | undefined;
|
|
862
|
+
}
|
|
863
|
+
/** Paginated returned clusters. */
|
|
864
|
+
export type ListClustersResponseClustersList = Array<Cluster>;
|
|
865
|
+
export interface ListClustersResponse {
|
|
866
|
+
/** Total number of clusters. */
|
|
867
|
+
total_count?: number | undefined;
|
|
868
|
+
/** Paginated returned clusters. */
|
|
869
|
+
clusters: ListClustersResponseClustersList;
|
|
870
|
+
}
|
|
871
|
+
export type ListClusterTypesRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
872
|
+
export interface ListClusterTypesRequest {
|
|
873
|
+
/** The region you want to target */
|
|
874
|
+
region?: ListClusterTypesRequestRegion | (string & {}) | undefined;
|
|
875
|
+
/** Page number, from the paginated results, to return for cluster-types. */
|
|
876
|
+
page?: number | undefined;
|
|
877
|
+
/** Maximum number of clusters per page. */
|
|
878
|
+
page_size?: number | undefined;
|
|
879
|
+
}
|
|
880
|
+
/** Paginated returned cluster-types. */
|
|
881
|
+
export type ListClusterTypesResponseClusterTypesList = Array<ClusterType>;
|
|
882
|
+
export interface ListClusterTypesResponse {
|
|
883
|
+
/** Total number of cluster-types. */
|
|
884
|
+
total_count?: number | undefined;
|
|
885
|
+
/** Paginated returned cluster-types. */
|
|
886
|
+
cluster_types: ListClusterTypesResponseClusterTypesList;
|
|
887
|
+
}
|
|
888
|
+
export type ListNodesRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
889
|
+
export type ListNodesRequestOrderBy =
|
|
890
|
+
| "created_at_asc"
|
|
891
|
+
| "created_at_desc"
|
|
892
|
+
| "updated_at_asc"
|
|
893
|
+
| "updated_at_desc"
|
|
894
|
+
| "name_asc"
|
|
895
|
+
| "name_desc"
|
|
896
|
+
| "status_asc"
|
|
897
|
+
| "status_desc"
|
|
898
|
+
| "version_asc"
|
|
899
|
+
| "version_desc";
|
|
900
|
+
export interface ListNodesRequest {
|
|
901
|
+
/** The region you want to target */
|
|
902
|
+
region?: ListNodesRequestRegion | (string & {}) | undefined;
|
|
903
|
+
/** Cluster ID from which the nodes will be listed from. */
|
|
904
|
+
cluster_id: string;
|
|
905
|
+
/** Pool ID on which to filter the returned nodes. */
|
|
906
|
+
pool_id?: string | undefined;
|
|
907
|
+
/** Sort order of the returned nodes. */
|
|
908
|
+
order_by?: ListNodesRequestOrderBy | (string & {}) | undefined;
|
|
909
|
+
/** Page number for the returned nodes. */
|
|
910
|
+
page?: number | undefined;
|
|
911
|
+
/** Maximum number of nodes per page. */
|
|
912
|
+
page_size?: number | undefined;
|
|
913
|
+
/** Name to filter on, only nodes containing this substring in their name will be returned. */
|
|
914
|
+
name?: string | undefined;
|
|
915
|
+
/** Status to filter on, only nodes with this status will be returned. */
|
|
916
|
+
status?: NodeStatus | (string & {}) | undefined;
|
|
917
|
+
}
|
|
918
|
+
/** Paginated returned nodes. */
|
|
919
|
+
export type ListNodesResponseNodesList = Array<Node>;
|
|
920
|
+
export interface ListNodesResponse {
|
|
921
|
+
/** Total number of nodes. */
|
|
922
|
+
total_count?: number | undefined;
|
|
923
|
+
/** Paginated returned nodes. */
|
|
924
|
+
nodes: ListNodesResponseNodesList;
|
|
925
|
+
}
|
|
926
|
+
export type ListPoolsRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
927
|
+
export type ListPoolsRequestOrderBy =
|
|
928
|
+
| "created_at_asc"
|
|
929
|
+
| "created_at_desc"
|
|
930
|
+
| "updated_at_asc"
|
|
931
|
+
| "updated_at_desc"
|
|
932
|
+
| "name_asc"
|
|
933
|
+
| "name_desc"
|
|
934
|
+
| "status_asc"
|
|
935
|
+
| "status_desc"
|
|
936
|
+
| "version_asc"
|
|
937
|
+
| "version_desc";
|
|
938
|
+
export interface ListPoolsRequest {
|
|
939
|
+
/** The region you want to target */
|
|
940
|
+
region?: ListPoolsRequestRegion | (string & {}) | undefined;
|
|
941
|
+
/** ID of the cluster whose pools will be listed. */
|
|
942
|
+
cluster_id: string;
|
|
943
|
+
/** Sort order of returned pools. */
|
|
944
|
+
order_by?: ListPoolsRequestOrderBy | (string & {}) | undefined;
|
|
945
|
+
/** Page number for the returned pools. */
|
|
946
|
+
page?: number | undefined;
|
|
947
|
+
/** Maximum number of pools per page. */
|
|
948
|
+
page_size?: number | undefined;
|
|
949
|
+
/** Name to filter on, only pools containing this substring in their name will be returned. */
|
|
950
|
+
name?: string | undefined;
|
|
951
|
+
/** Status to filter on, only pools with this status will be returned. */
|
|
952
|
+
status?: PoolStatus | (string & {}) | undefined;
|
|
953
|
+
}
|
|
954
|
+
/** Paginated returned pools. */
|
|
955
|
+
export type ListPoolsResponsePoolsList = Array<Pool>;
|
|
956
|
+
export interface ListPoolsResponse {
|
|
957
|
+
/** Total number of pools that exists for the cluster. */
|
|
958
|
+
total_count?: number | undefined;
|
|
959
|
+
/** Paginated returned pools. */
|
|
960
|
+
pools: ListPoolsResponsePoolsList;
|
|
961
|
+
}
|
|
962
|
+
export type ListUserDataRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
963
|
+
export interface ListUserDataRequest {
|
|
964
|
+
/** The region you want to target */
|
|
965
|
+
region?: ListUserDataRequestRegion | (string & {}) | undefined;
|
|
966
|
+
/** Pool the user data are associated to. */
|
|
967
|
+
pool_id: string;
|
|
968
|
+
}
|
|
969
|
+
export interface UserDataSummary {
|
|
970
|
+
/** Key name of a given user data. */
|
|
971
|
+
key?: string | undefined;
|
|
972
|
+
}
|
|
973
|
+
/** User data information. */
|
|
974
|
+
export type ListUserDataResponseUserDataList = Array<UserDataSummary>;
|
|
975
|
+
export interface ListUserDataResponse {
|
|
976
|
+
/** User data information. */
|
|
977
|
+
user_data?: ListUserDataResponseUserDataList | undefined;
|
|
978
|
+
}
|
|
979
|
+
export type ListVersionsRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
980
|
+
export interface ListVersionsRequest {
|
|
981
|
+
/** The region you want to target */
|
|
982
|
+
region?: ListVersionsRequestRegion | (string & {}) | undefined;
|
|
983
|
+
}
|
|
984
|
+
/** Available Kubernetes versions. */
|
|
985
|
+
export type ListVersionsResponseVersionsList = Array<Version>;
|
|
986
|
+
export interface ListVersionsResponse {
|
|
987
|
+
/** Available Kubernetes versions. */
|
|
988
|
+
versions?: ListVersionsResponseVersionsList | undefined;
|
|
989
|
+
}
|
|
990
|
+
export type RebootNodeRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
991
|
+
export interface RebootNodeRequest {
|
|
992
|
+
/** The region you want to target */
|
|
993
|
+
region?: RebootNodeRequestRegion | (string & {}) | undefined;
|
|
994
|
+
/** ID of the node to reboot. */
|
|
995
|
+
node_id: string;
|
|
996
|
+
}
|
|
997
|
+
export type ReplaceNodeRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
998
|
+
export interface ReplaceNodeRequest {
|
|
999
|
+
/** The region you want to target */
|
|
1000
|
+
region?: ReplaceNodeRequestRegion | (string & {}) | undefined;
|
|
1001
|
+
/** ID of the node to replace. */
|
|
1002
|
+
node_id: string;
|
|
1003
|
+
}
|
|
1004
|
+
export type ResetClusterAdminTokenRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1005
|
+
export interface ResetClusterAdminTokenRequest {
|
|
1006
|
+
/** The region you want to target */
|
|
1007
|
+
region?: ResetClusterAdminTokenRequestRegion | (string & {}) | undefined;
|
|
1008
|
+
/** Cluster ID on which the admin token will be renewed. */
|
|
1009
|
+
cluster_id: string;
|
|
1010
|
+
}
|
|
1011
|
+
export interface ResetClusterAdminTokenResponse {}
|
|
1012
|
+
export type SetClusterACLRulesRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1013
|
+
/** ACLs to set. */
|
|
1014
|
+
export type SetClusterACLRulesRequestAclsList = Array<ACLRuleRequest>;
|
|
1015
|
+
export interface SetClusterACLRulesRequest {
|
|
1016
|
+
/** The region you want to target */
|
|
1017
|
+
region?: SetClusterACLRulesRequestRegion | (string & {}) | undefined;
|
|
1018
|
+
/** ID of the cluster whose ACLs will be set. */
|
|
1019
|
+
cluster_id: string;
|
|
1020
|
+
/** ACLs to set. */
|
|
1021
|
+
acls?: SetClusterACLRulesRequestAclsList | undefined;
|
|
1022
|
+
}
|
|
1023
|
+
/** ACLs that were set. */
|
|
1024
|
+
export type SetClusterACLRulesResponseRulesList = Array<ACLRule>;
|
|
1025
|
+
export interface SetClusterACLRulesResponse {
|
|
1026
|
+
/** ACLs that were set. */
|
|
1027
|
+
rules?: SetClusterACLRulesResponseRulesList | undefined;
|
|
1028
|
+
}
|
|
1029
|
+
export type SetClusterTypeRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1030
|
+
export interface SetClusterTypeRequest {
|
|
1031
|
+
/** The region you want to target */
|
|
1032
|
+
region?: SetClusterTypeRequestRegion | (string & {}) | undefined;
|
|
1033
|
+
/** ID of the cluster to migrate from one type to another. */
|
|
1034
|
+
cluster_id: string;
|
|
1035
|
+
/** Type of the cluster. Note that some migrations are not possible (please refer to product documentation). */
|
|
1036
|
+
type: string;
|
|
1037
|
+
}
|
|
1038
|
+
export type SetPoolLabelsRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1039
|
+
export type SetPoolLabelsRequestLabelsMap = { [key: string]: string | undefined };
|
|
1040
|
+
export interface SetPoolLabelsRequest {
|
|
1041
|
+
/** The region you want to target */
|
|
1042
|
+
region?: SetPoolLabelsRequestRegion | (string & {}) | undefined;
|
|
1043
|
+
pool_id: string;
|
|
1044
|
+
labels?: SetPoolLabelsRequestLabelsMap | undefined;
|
|
1045
|
+
}
|
|
1046
|
+
export type SetPoolStartupTaintsRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1047
|
+
/** List of startup taints to set. */
|
|
1048
|
+
export type SetPoolStartupTaintsRequestStartupTaintsList = Array<CoreV1Taint>;
|
|
1049
|
+
export interface SetPoolStartupTaintsRequest {
|
|
1050
|
+
/** The region you want to target */
|
|
1051
|
+
region?: SetPoolStartupTaintsRequestRegion | (string & {}) | undefined;
|
|
1052
|
+
/** ID of the pool to update. */
|
|
1053
|
+
pool_id: string;
|
|
1054
|
+
/** List of startup taints to set. */
|
|
1055
|
+
startup_taints?: SetPoolStartupTaintsRequestStartupTaintsList | undefined;
|
|
1056
|
+
}
|
|
1057
|
+
export type SetPoolTaintsRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1058
|
+
/** List of taints to set. */
|
|
1059
|
+
export type SetPoolTaintsRequestTaintsList = Array<CoreV1Taint>;
|
|
1060
|
+
export interface SetPoolTaintsRequest {
|
|
1061
|
+
/** The region you want to target */
|
|
1062
|
+
region?: SetPoolTaintsRequestRegion | (string & {}) | undefined;
|
|
1063
|
+
/** ID of the pool to update. */
|
|
1064
|
+
pool_id: string;
|
|
1065
|
+
/** List of taints to set. */
|
|
1066
|
+
taints?: SetPoolTaintsRequestTaintsList | undefined;
|
|
1067
|
+
}
|
|
1068
|
+
export type UpdateClusterRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1069
|
+
/** New tags associated with the cluster. */
|
|
1070
|
+
export type UpdateClusterRequestTagsList = Array<unknown>;
|
|
1071
|
+
export type UpdateClusterRequestAutoscalerConfig = CreateClusterRequestAutoscalerConfig;
|
|
1072
|
+
export interface UpdateClusterRequestAutoUpgrade {
|
|
1073
|
+
/** Defines whether auto upgrade is enabled for the cluster. */
|
|
1074
|
+
enable?: boolean | null | undefined;
|
|
1075
|
+
/** Maintenance window of the cluster auto upgrades. */
|
|
1076
|
+
maintenance_window?: MaintenanceWindow | undefined;
|
|
1077
|
+
}
|
|
1078
|
+
/** List of feature gates to enable. */
|
|
1079
|
+
export type UpdateClusterRequestFeatureGatesList = Array<unknown>;
|
|
1080
|
+
/** List of admission plugins to enable. */
|
|
1081
|
+
export type UpdateClusterRequestAdmissionPluginsList = Array<unknown>;
|
|
1082
|
+
/** JWT claim to use as the user's group. */
|
|
1083
|
+
export type UpdateClusterRequestOpenIDConnectConfigGroupsClaimList = Array<unknown>;
|
|
1084
|
+
/** Multiple key=value pairs describing a required claim in the ID token. If set, the claims are verified to be present in the ID token with a matching value. */
|
|
1085
|
+
export type UpdateClusterRequestOpenIDConnectConfigRequiredClaimList = Array<unknown>;
|
|
1086
|
+
export interface UpdateClusterRequestOpenIDConnectConfig {
|
|
1087
|
+
/** URL of the provider which allows the API server to discover public signing keys. Only URLs using the `https://` scheme are accepted. This is typically the provider's discovery URL without a path, for example "https://accounts.google.com" or "https://login.salesforce.com". */
|
|
1088
|
+
issuer_url?: string | null | undefined;
|
|
1089
|
+
/** A client ID that all tokens must be issued for. */
|
|
1090
|
+
client_id?: string | null | undefined;
|
|
1091
|
+
/** JWT claim to use as the user name. The default is `sub`, which is expected to be the end user's unique identifier. Admins can choose other claims, such as `email` or `name`, depending on their provider. However, claims other than `email` will be prefixed with the issuer URL to prevent name collision. */
|
|
1092
|
+
username_claim?: string | null | undefined;
|
|
1093
|
+
/** Prefix prepended to username claims to prevent name collision (such as `system:` users). For example, the value `oidc:` will create usernames like `oidc:jane.doe`. If this flag is not provided and `username_claim` is a value other than `email`, the prefix defaults to `( Issuer URL )#` where `( Issuer URL )` is the value of `issuer_url`. The value `-` can be used to disable all prefixing. */
|
|
1094
|
+
username_prefix?: string | null | undefined;
|
|
1095
|
+
/** JWT claim to use as the user's group. */
|
|
1096
|
+
groups_claim?: UpdateClusterRequestOpenIDConnectConfigGroupsClaimList | null | undefined;
|
|
1097
|
+
/** Prefix prepended to group claims to prevent name collision (such as `system:` groups). For example, the value `oidc:` will create group names like `oidc:engineering` and `oidc:infra`. */
|
|
1098
|
+
groups_prefix?: string | null | undefined;
|
|
1099
|
+
/** Multiple key=value pairs describing a required claim in the ID token. If set, the claims are verified to be present in the ID token with a matching value. */
|
|
1100
|
+
required_claim?: UpdateClusterRequestOpenIDConnectConfigRequiredClaimList | null | undefined;
|
|
1101
|
+
}
|
|
1102
|
+
/** Additional Subject Alternative Names for the Kubernetes API server certificate. */
|
|
1103
|
+
export type UpdateClusterRequestApiserverCertSansList = Array<unknown>;
|
|
1104
|
+
export interface UpdateClusterRequest {
|
|
1105
|
+
/** The region you want to target */
|
|
1106
|
+
region?: UpdateClusterRequestRegion | (string & {}) | undefined;
|
|
1107
|
+
/** ID of the cluster to update. */
|
|
1108
|
+
cluster_id: string;
|
|
1109
|
+
/** New external name for the cluster. */
|
|
1110
|
+
name?: string | null | undefined;
|
|
1111
|
+
/** New description for the cluster. */
|
|
1112
|
+
description?: string | null | undefined;
|
|
1113
|
+
/** New tags associated with the cluster. */
|
|
1114
|
+
tags?: UpdateClusterRequestTagsList | null | undefined;
|
|
1115
|
+
/** New autoscaler config for the cluster. */
|
|
1116
|
+
autoscaler_config?: CreateClusterRequestAutoscalerConfig | undefined;
|
|
1117
|
+
/** New auto upgrade configuration for the cluster. Note that all fields needs to be set. */
|
|
1118
|
+
auto_upgrade?: UpdateClusterRequestAutoUpgrade | undefined;
|
|
1119
|
+
/** List of feature gates to enable. */
|
|
1120
|
+
feature_gates?: UpdateClusterRequestFeatureGatesList | null | undefined;
|
|
1121
|
+
/** List of admission plugins to enable. */
|
|
1122
|
+
admission_plugins?: UpdateClusterRequestAdmissionPluginsList | null | undefined;
|
|
1123
|
+
/** OpenID Connect configuration of the cluster. This configuration enables to update the OpenID Connect configuration of the Kubernetes API server. */
|
|
1124
|
+
open_id_connect_config?: UpdateClusterRequestOpenIDConnectConfig | undefined;
|
|
1125
|
+
/** Additional Subject Alternative Names for the Kubernetes API server certificate. */
|
|
1126
|
+
apiserver_cert_sans?: UpdateClusterRequestApiserverCertSansList | null | undefined;
|
|
1127
|
+
}
|
|
1128
|
+
export type UpdatePoolRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1129
|
+
/** New tags associated with the pool. */
|
|
1130
|
+
export type UpdatePoolRequestTagsList = Array<unknown>;
|
|
1131
|
+
/** New Kubelet arguments to be used by this pool. Note that this feature is experimental. */
|
|
1132
|
+
export type UpdatePoolRequestKubeletArgsMap = { [key: string]: string | undefined };
|
|
1133
|
+
export interface UpdatePoolRequestUpgradePolicy {
|
|
1134
|
+
/** New maximum number of nodes that can be `upgrading` at the same time. */
|
|
1135
|
+
max_unavailable?: number | null | undefined;
|
|
1136
|
+
/** New maximum number of nodes to be created during the upgrade. */
|
|
1137
|
+
max_surge?: number | null | undefined;
|
|
1138
|
+
}
|
|
1139
|
+
export interface UpdatePoolRequest {
|
|
1140
|
+
/** The region you want to target */
|
|
1141
|
+
region?: UpdatePoolRequestRegion | (string & {}) | undefined;
|
|
1142
|
+
/** ID of the pool to update. */
|
|
1143
|
+
pool_id: string;
|
|
1144
|
+
/** New value for the pool autoscaling enablement. */
|
|
1145
|
+
autoscaling?: boolean | null | undefined;
|
|
1146
|
+
/** New desired pool size. */
|
|
1147
|
+
size?: number | null | undefined;
|
|
1148
|
+
/** New minimum size for the pool. */
|
|
1149
|
+
min_size?: number | null | undefined;
|
|
1150
|
+
/** New maximum size for the pool. */
|
|
1151
|
+
max_size?: number | null | undefined;
|
|
1152
|
+
/** New value for the pool autohealing enablement. */
|
|
1153
|
+
autohealing?: boolean | null | undefined;
|
|
1154
|
+
/** New tags associated with the pool. */
|
|
1155
|
+
tags?: UpdatePoolRequestTagsList | null | undefined;
|
|
1156
|
+
/** New Kubelet arguments to be used by this pool. Note that this feature is experimental. */
|
|
1157
|
+
kubelet_args?: UpdatePoolRequestKubeletArgsMap | null | undefined;
|
|
1158
|
+
/** New upgrade policy for the pool. */
|
|
1159
|
+
upgrade_policy?: UpdatePoolRequestUpgradePolicy | undefined;
|
|
1160
|
+
/** Security group ID in which all the nodes of the pool will be moved. */
|
|
1161
|
+
security_group_id?: string | null | undefined;
|
|
1162
|
+
/** New maximum amount of time in seconds before the API forces the drain and deletion of a `deleting` node. (in seconds) */
|
|
1163
|
+
max_termination_grace_period?: string | null | undefined;
|
|
1164
|
+
}
|
|
1165
|
+
export type UpgradeClusterRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1166
|
+
export interface UpgradeClusterRequest {
|
|
1167
|
+
/** The region you want to target */
|
|
1168
|
+
region?: UpgradeClusterRequestRegion | (string & {}) | undefined;
|
|
1169
|
+
/** ID of the cluster to upgrade. */
|
|
1170
|
+
cluster_id: string;
|
|
1171
|
+
/** New Kubernetes version of the cluster. Note that the version should either be a higher patch version of the same minor version or the direct minor version after the current one. */
|
|
1172
|
+
version: string;
|
|
1173
|
+
/** Defines whether pools will also be upgraded once the control plane is upgraded. */
|
|
1174
|
+
upgrade_pools?: boolean | undefined;
|
|
1175
|
+
}
|
|
1176
|
+
export type UpgradePoolRequestRegion = "fr-par" | "nl-ams" | "pl-waw" | "it-mil";
|
|
1177
|
+
export interface UpgradePoolRequest {
|
|
1178
|
+
/** The region you want to target */
|
|
1179
|
+
region?: UpgradePoolRequestRegion | (string & {}) | undefined;
|
|
1180
|
+
/** ID of the pool to upgrade. */
|
|
1181
|
+
pool_id: string;
|
|
1182
|
+
/** New Kubernetes version for the pool. */
|
|
1183
|
+
version: string;
|
|
1184
|
+
}
|
|
1185
|
+
export type AddClusterACLRulesError = ScalewayOpError;
|
|
1186
|
+
/** Add new ACLs Add new ACL rules for a specific cluster. */
|
|
1187
|
+
export const addClusterACLRules: API.OperationMethod<
|
|
1188
|
+
AddClusterACLRulesRequest,
|
|
1189
|
+
AddClusterACLRulesResponse,
|
|
1190
|
+
AddClusterACLRulesError,
|
|
1191
|
+
ScalewayOpContext
|
|
1192
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1193
|
+
input: __S(0, __c0, 0) as any as S.Schema<AddClusterACLRulesRequest>,
|
|
1194
|
+
output: __S(18, __c2, 2) as any as S.Schema<AddClusterACLRulesResponse>,
|
|
1195
|
+
errors: [],
|
|
1196
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1197
|
+
protocol: ScalewayProtocol,
|
|
1198
|
+
retry: Retry.Retry,
|
|
1199
|
+
telemetry: TELEMETRY,
|
|
1200
|
+
span: "AddClusterACLRules",
|
|
1201
|
+
}));
|
|
1202
|
+
|
|
1203
|
+
export type CreateClusterError = ScalewayOpError;
|
|
1204
|
+
/** Create a new Cluster Create a new Kubernetes cluster in a Scaleway region. */
|
|
1205
|
+
export const createCluster: API.OperationMethod<
|
|
1206
|
+
CreateClusterRequest,
|
|
1207
|
+
Cluster,
|
|
1208
|
+
CreateClusterError,
|
|
1209
|
+
ScalewayOpContext
|
|
1210
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1211
|
+
input: __S(28, __c3, 4) as any as S.Schema<CreateClusterRequest>,
|
|
1212
|
+
output: __S(84, __c10, 4) as any as S.Schema<Cluster>,
|
|
1213
|
+
errors: [],
|
|
1214
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1215
|
+
protocol: ScalewayProtocol,
|
|
1216
|
+
retry: Retry.Retry,
|
|
1217
|
+
telemetry: TELEMETRY,
|
|
1218
|
+
span: "CreateCluster",
|
|
1219
|
+
}));
|
|
1220
|
+
|
|
1221
|
+
export type CreatePoolError = ScalewayOpError;
|
|
1222
|
+
/** Create a new Pool in a Cluster Create a new pool in a specific Kubernetes cluster. */
|
|
1223
|
+
export const createPool: API.OperationMethod<
|
|
1224
|
+
CreatePoolRequest,
|
|
1225
|
+
Pool,
|
|
1226
|
+
CreatePoolError,
|
|
1227
|
+
ScalewayOpContext
|
|
1228
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1229
|
+
input: __S(192, __c24, 0) as any as S.Schema<CreatePoolRequest>,
|
|
1230
|
+
output: __S(201, __c25, 1) as any as S.Schema<Pool>,
|
|
1231
|
+
errors: [],
|
|
1232
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1233
|
+
protocol: ScalewayProtocol,
|
|
1234
|
+
retry: Retry.Retry,
|
|
1235
|
+
telemetry: TELEMETRY,
|
|
1236
|
+
span: "CreatePool",
|
|
1237
|
+
}));
|
|
1238
|
+
|
|
1239
|
+
export type DeleteACLRuleError = ScalewayOpError;
|
|
1240
|
+
/** Delete an existing ACL */
|
|
1241
|
+
export const deleteACLRule: API.OperationMethod<
|
|
1242
|
+
DeleteACLRuleRequest,
|
|
1243
|
+
DeleteACLRuleResponse,
|
|
1244
|
+
DeleteACLRuleError,
|
|
1245
|
+
ScalewayOpContext
|
|
1246
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1247
|
+
input: __S(288, __c36, 0) as any as S.Schema<DeleteACLRuleRequest>,
|
|
1248
|
+
output: __S(296, __c37, 0) as any as S.Schema<DeleteACLRuleResponse>,
|
|
1249
|
+
errors: [],
|
|
1250
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1251
|
+
protocol: ScalewayProtocol,
|
|
1252
|
+
retry: Retry.Retry,
|
|
1253
|
+
telemetry: TELEMETRY,
|
|
1254
|
+
span: "DeleteACLRule",
|
|
1255
|
+
}));
|
|
1256
|
+
|
|
1257
|
+
export type DeleteClusterError = ScalewayOpError;
|
|
1258
|
+
/** Delete a Cluster Delete a specific Kubernetes cluster and all its associated pools and nodes, and possibly its associated Load Balancers or Block Volumes. */
|
|
1259
|
+
export const deleteCluster: API.OperationMethod<
|
|
1260
|
+
DeleteClusterRequest,
|
|
1261
|
+
Cluster,
|
|
1262
|
+
DeleteClusterError,
|
|
1263
|
+
ScalewayOpContext
|
|
1264
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1265
|
+
input: __S(352, __c44, 0) as any as S.Schema<DeleteClusterRequest>,
|
|
1266
|
+
output: __S(84, __c10, 4) as any as S.Schema<Cluster>,
|
|
1267
|
+
errors: [],
|
|
1268
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1269
|
+
protocol: ScalewayProtocol,
|
|
1270
|
+
retry: Retry.Retry,
|
|
1271
|
+
telemetry: TELEMETRY,
|
|
1272
|
+
span: "DeleteCluster",
|
|
1273
|
+
}));
|
|
1274
|
+
|
|
1275
|
+
export type DeleteNodeError = ScalewayOpError;
|
|
1276
|
+
/** Delete a Node in a Cluster Delete a specific Node. Pool size is reduced by 1. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur. */
|
|
1277
|
+
export const deleteNode: API.OperationMethod<
|
|
1278
|
+
DeleteNodeRequest,
|
|
1279
|
+
Node,
|
|
1280
|
+
DeleteNodeError,
|
|
1281
|
+
ScalewayOpContext
|
|
1282
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1283
|
+
input: __S(360, __c45, 0) as any as S.Schema<DeleteNodeRequest>,
|
|
1284
|
+
output: __S(368, __c46, 0) as any as S.Schema<Node>,
|
|
1285
|
+
errors: [],
|
|
1286
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1287
|
+
protocol: ScalewayProtocol,
|
|
1288
|
+
retry: Retry.Retry,
|
|
1289
|
+
telemetry: TELEMETRY,
|
|
1290
|
+
span: "DeleteNode",
|
|
1291
|
+
}));
|
|
1292
|
+
|
|
1293
|
+
export type DeletePoolError = ScalewayOpError;
|
|
1294
|
+
/** Delete a Pool in a Cluster Delete a specific pool from a cluster. Note that all the pool's nodes will also be deleted. */
|
|
1295
|
+
export const deletePool: API.OperationMethod<
|
|
1296
|
+
DeletePoolRequest,
|
|
1297
|
+
Pool,
|
|
1298
|
+
DeletePoolError,
|
|
1299
|
+
ScalewayOpContext
|
|
1300
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1301
|
+
input: __S(376, __c47, 0) as any as S.Schema<DeletePoolRequest>,
|
|
1302
|
+
output: __S(201, __c25, 1) as any as S.Schema<Pool>,
|
|
1303
|
+
errors: [],
|
|
1304
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1305
|
+
protocol: ScalewayProtocol,
|
|
1306
|
+
retry: Retry.Retry,
|
|
1307
|
+
telemetry: TELEMETRY,
|
|
1308
|
+
span: "DeletePool",
|
|
1309
|
+
}));
|
|
1310
|
+
|
|
1311
|
+
export type GetClusterError = ScalewayOpError;
|
|
1312
|
+
/** Get a Cluster Retrieve information about a specific Kubernetes cluster. */
|
|
1313
|
+
export const getCluster: API.OperationMethod<
|
|
1314
|
+
GetClusterRequest,
|
|
1315
|
+
Cluster,
|
|
1316
|
+
GetClusterError,
|
|
1317
|
+
ScalewayOpContext
|
|
1318
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1319
|
+
input: __S(384, __c48, 0) as any as S.Schema<GetClusterRequest>,
|
|
1320
|
+
output: __S(84, __c10, 4) as any as S.Schema<Cluster>,
|
|
1321
|
+
errors: [],
|
|
1322
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1323
|
+
protocol: ScalewayProtocol,
|
|
1324
|
+
retry: Retry.Retry,
|
|
1325
|
+
telemetry: TELEMETRY,
|
|
1326
|
+
span: "GetCluster",
|
|
1327
|
+
}));
|
|
1328
|
+
|
|
1329
|
+
export type GetClusterKubeConfigError = ScalewayOpError;
|
|
1330
|
+
/** Download the kubeconfig for a Cluster Download the Kubernetes cluster config file (also known as `kubeconfig`) for a specific cluster to use it with `kubectl`. Tip: add `?dl=1` at the end of the URL to directly retrieve the base64 decoded kubeconfig. If you choose not to, the kubeconfig will be base64 encoded. */
|
|
1331
|
+
export const getClusterKubeConfig: API.OperationMethod<
|
|
1332
|
+
GetClusterKubeConfigRequest,
|
|
1333
|
+
ScalewayStdFile,
|
|
1334
|
+
GetClusterKubeConfigError,
|
|
1335
|
+
ScalewayOpContext
|
|
1336
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1337
|
+
input: __S(392, __c49, 0) as any as S.Schema<GetClusterKubeConfigRequest>,
|
|
1338
|
+
output: __S(400, __c50, 0) as any as S.Schema<ScalewayStdFile>,
|
|
1339
|
+
errors: [],
|
|
1340
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1341
|
+
protocol: ScalewayProtocol,
|
|
1342
|
+
retry: Retry.Retry,
|
|
1343
|
+
telemetry: TELEMETRY,
|
|
1344
|
+
span: "GetClusterKubeConfig",
|
|
1345
|
+
}));
|
|
1346
|
+
|
|
1347
|
+
export type GetClusterKubeConfigRawError = ScalewayOpError;
|
|
1348
|
+
/** The file `getClusterKubeConfig` returns, as bytes (`?dl=1`), rather than the JSON file object. */
|
|
1349
|
+
export const getClusterKubeConfigRaw: API.OperationMethod<
|
|
1350
|
+
GetClusterKubeConfigRawRequest,
|
|
1351
|
+
GetClusterKubeConfigRawResponse,
|
|
1352
|
+
GetClusterKubeConfigRawError,
|
|
1353
|
+
ScalewayOpContext
|
|
1354
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1355
|
+
input: __S(408, __c51, 0) as any as S.Schema<GetClusterKubeConfigRawRequest>,
|
|
1356
|
+
output: __S(416, __c52, 0) as any as S.Schema<GetClusterKubeConfigRawResponse>,
|
|
1357
|
+
errors: [],
|
|
1358
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1359
|
+
protocol: ScalewayProtocol,
|
|
1360
|
+
retry: Retry.Retry,
|
|
1361
|
+
telemetry: TELEMETRY,
|
|
1362
|
+
span: "GetClusterKubeConfigRaw",
|
|
1363
|
+
}));
|
|
1364
|
+
|
|
1365
|
+
export type GetNodeError = ScalewayOpError;
|
|
1366
|
+
/** Get a Node in a Cluster Retrieve details about a specific Kubernetes Node. */
|
|
1367
|
+
export const getNode: API.OperationMethod<GetNodeRequest, Node, GetNodeError, ScalewayOpContext> =
|
|
1368
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1369
|
+
input: __S(88, __c11, 0) as any as S.Schema<GetNodeRequest>,
|
|
1370
|
+
output: __S(368, __c46, 0) as any as S.Schema<Node>,
|
|
1371
|
+
errors: [],
|
|
1372
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1373
|
+
protocol: ScalewayProtocol,
|
|
1374
|
+
retry: Retry.Retry,
|
|
1375
|
+
telemetry: TELEMETRY,
|
|
1376
|
+
span: "GetNode",
|
|
1377
|
+
}));
|
|
1378
|
+
|
|
1379
|
+
export type GetPoolError = ScalewayOpError;
|
|
1380
|
+
/** Get a Pool in a Cluster Retrieve details about a specific pool in a Kubernetes cluster. */
|
|
1381
|
+
export const getPool: API.OperationMethod<GetPoolRequest, Pool, GetPoolError, ScalewayOpContext> =
|
|
1382
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1383
|
+
input: __S(96, __c12, 0) as any as S.Schema<GetPoolRequest>,
|
|
1384
|
+
output: __S(201, __c25, 1) as any as S.Schema<Pool>,
|
|
1385
|
+
errors: [],
|
|
1386
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1387
|
+
protocol: ScalewayProtocol,
|
|
1388
|
+
retry: Retry.Retry,
|
|
1389
|
+
telemetry: TELEMETRY,
|
|
1390
|
+
span: "GetPool",
|
|
1391
|
+
}));
|
|
1392
|
+
|
|
1393
|
+
export type GetUserDataError = ScalewayOpError;
|
|
1394
|
+
/** Get a pool related user data Retrieve specific user data content for a given pool. Tip: add `?dl=1` at the end of the URL to directly retrieve the base64 decoded content of your user data. */
|
|
1395
|
+
export const getUserData: API.OperationMethod<
|
|
1396
|
+
GetUserDataRequest,
|
|
1397
|
+
ScalewayStdFile,
|
|
1398
|
+
GetUserDataError,
|
|
1399
|
+
ScalewayOpContext
|
|
1400
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1401
|
+
input: __S(104, __c13, 0) as any as S.Schema<GetUserDataRequest>,
|
|
1402
|
+
output: __S(400, __c50, 0) as any as S.Schema<ScalewayStdFile>,
|
|
1403
|
+
errors: [],
|
|
1404
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1405
|
+
protocol: ScalewayProtocol,
|
|
1406
|
+
retry: Retry.Retry,
|
|
1407
|
+
telemetry: TELEMETRY,
|
|
1408
|
+
span: "GetUserData",
|
|
1409
|
+
}));
|
|
1410
|
+
|
|
1411
|
+
export type GetUserDataRawError = ScalewayOpError;
|
|
1412
|
+
/** The file `getUserData` returns, as bytes (`?dl=1`), rather than the JSON file object. */
|
|
1413
|
+
export const getUserDataRaw: API.OperationMethod<
|
|
1414
|
+
GetUserDataRawRequest,
|
|
1415
|
+
GetUserDataRawResponse,
|
|
1416
|
+
GetUserDataRawError,
|
|
1417
|
+
ScalewayOpContext
|
|
1418
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1419
|
+
input: __S(112, __c14, 0) as any as S.Schema<GetUserDataRawRequest>,
|
|
1420
|
+
output: __S(416, __c52, 0) as any as S.Schema<GetUserDataRawResponse>,
|
|
1421
|
+
errors: [],
|
|
1422
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1423
|
+
protocol: ScalewayProtocol,
|
|
1424
|
+
retry: Retry.Retry,
|
|
1425
|
+
telemetry: TELEMETRY,
|
|
1426
|
+
span: "GetUserDataRaw",
|
|
1427
|
+
}));
|
|
1428
|
+
|
|
1429
|
+
export type GetVersionError = ScalewayOpError;
|
|
1430
|
+
/** Get a Version Retrieve a specific Kubernetes version and its details. */
|
|
1431
|
+
export const getVersion: API.OperationMethod<
|
|
1432
|
+
GetVersionRequest,
|
|
1433
|
+
Version,
|
|
1434
|
+
GetVersionError,
|
|
1435
|
+
ScalewayOpContext
|
|
1436
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1437
|
+
input: __S(120, __c15, 0) as any as S.Schema<GetVersionRequest>,
|
|
1438
|
+
output: __S(131, __c16, 3) as any as S.Schema<Version>,
|
|
1439
|
+
errors: [],
|
|
1440
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1441
|
+
protocol: ScalewayProtocol,
|
|
1442
|
+
retry: Retry.Retry,
|
|
1443
|
+
telemetry: TELEMETRY,
|
|
1444
|
+
span: "GetVersion",
|
|
1445
|
+
}));
|
|
1446
|
+
|
|
1447
|
+
export type ListClusterACLRulesError = ScalewayOpError;
|
|
1448
|
+
/** List ACLs List ACLs for a specific cluster. */
|
|
1449
|
+
export const listClusterACLRules: API.PaginatedOperationMethod<
|
|
1450
|
+
ListClusterACLRulesRequest,
|
|
1451
|
+
ListClusterACLRulesResponse,
|
|
1452
|
+
ListClusterACLRulesError,
|
|
1453
|
+
ScalewayOpContext,
|
|
1454
|
+
ACLRule
|
|
1455
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1456
|
+
() => ({
|
|
1457
|
+
input: __S(136, __c17, 0) as any as S.Schema<ListClusterACLRulesRequest>,
|
|
1458
|
+
output: __S(137, __c17, 1) as any as S.Schema<ListClusterACLRulesResponse>,
|
|
1459
|
+
errors: [],
|
|
1460
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1461
|
+
protocol: ScalewayProtocol,
|
|
1462
|
+
retry: Retry.Retry,
|
|
1463
|
+
telemetry: TELEMETRY,
|
|
1464
|
+
span: "ListClusterACLRules",
|
|
1465
|
+
pagination: {
|
|
1466
|
+
mode: "page",
|
|
1467
|
+
inputToken: "page",
|
|
1468
|
+
outputToken: "total_count",
|
|
1469
|
+
items: "rules",
|
|
1470
|
+
pageSize: "page_size",
|
|
1471
|
+
} as const,
|
|
1472
|
+
}),
|
|
1473
|
+
paginateByTotalCount,
|
|
1474
|
+
) as any;
|
|
1475
|
+
|
|
1476
|
+
export type ListClusterAvailableTypesError = ScalewayOpError;
|
|
1477
|
+
/** List available cluster types for a cluster List the cluster types that a specific Kubernetes cluster is allowed to switch to. */
|
|
1478
|
+
export const listClusterAvailableTypes: API.OperationMethod<
|
|
1479
|
+
ListClusterAvailableTypesRequest,
|
|
1480
|
+
ListClusterAvailableTypesResponse,
|
|
1481
|
+
ListClusterAvailableTypesError,
|
|
1482
|
+
ScalewayOpContext
|
|
1483
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1484
|
+
input: __S(144, __c18, 0) as any as S.Schema<ListClusterAvailableTypesRequest>,
|
|
1485
|
+
output: __S(145, __c18, 1) as any as S.Schema<ListClusterAvailableTypesResponse>,
|
|
1486
|
+
errors: [],
|
|
1487
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1488
|
+
protocol: ScalewayProtocol,
|
|
1489
|
+
retry: Retry.Retry,
|
|
1490
|
+
telemetry: TELEMETRY,
|
|
1491
|
+
span: "ListClusterAvailableTypes",
|
|
1492
|
+
}));
|
|
1493
|
+
|
|
1494
|
+
export type ListClusterAvailableVersionsError = ScalewayOpError;
|
|
1495
|
+
/** List available versions for a Cluster List the versions that a specific Kubernetes cluster is allowed to upgrade to. Results will include every patch version greater than the current patch, as well as one minor version ahead of the current version. Any upgrade skipping a minor version will not work. */
|
|
1496
|
+
export const listClusterAvailableVersions: API.OperationMethod<
|
|
1497
|
+
ListClusterAvailableVersionsRequest,
|
|
1498
|
+
ListClusterAvailableVersionsResponse,
|
|
1499
|
+
ListClusterAvailableVersionsError,
|
|
1500
|
+
ScalewayOpContext
|
|
1501
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1502
|
+
input: __S(160, __c20, 0) as any as S.Schema<ListClusterAvailableVersionsRequest>,
|
|
1503
|
+
output: __S(169, __c21, 1) as any as S.Schema<ListClusterAvailableVersionsResponse>,
|
|
1504
|
+
errors: [],
|
|
1505
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1506
|
+
protocol: ScalewayProtocol,
|
|
1507
|
+
retry: Retry.Retry,
|
|
1508
|
+
telemetry: TELEMETRY,
|
|
1509
|
+
span: "ListClusterAvailableVersions",
|
|
1510
|
+
}));
|
|
1511
|
+
|
|
1512
|
+
export type ListClustersError = ScalewayOpError;
|
|
1513
|
+
/** List Clusters List all existing Kubernetes clusters in a specific region. */
|
|
1514
|
+
export const listClusters: API.PaginatedOperationMethod<
|
|
1515
|
+
ListClustersRequest,
|
|
1516
|
+
ListClustersResponse,
|
|
1517
|
+
ListClustersError,
|
|
1518
|
+
ScalewayOpContext,
|
|
1519
|
+
Cluster
|
|
1520
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1521
|
+
() => ({
|
|
1522
|
+
input: __S(176, __c22, 0) as any as S.Schema<ListClustersRequest>,
|
|
1523
|
+
output: __S(178, __c22, 2) as any as S.Schema<ListClustersResponse>,
|
|
1524
|
+
errors: [],
|
|
1525
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1526
|
+
protocol: ScalewayProtocol,
|
|
1527
|
+
retry: Retry.Retry,
|
|
1528
|
+
telemetry: TELEMETRY,
|
|
1529
|
+
span: "ListClusters",
|
|
1530
|
+
pagination: {
|
|
1531
|
+
mode: "page",
|
|
1532
|
+
inputToken: "page",
|
|
1533
|
+
outputToken: "total_count",
|
|
1534
|
+
items: "clusters",
|
|
1535
|
+
pageSize: "page_size",
|
|
1536
|
+
} as const,
|
|
1537
|
+
}),
|
|
1538
|
+
paginateByTotalCount,
|
|
1539
|
+
) as any;
|
|
1540
|
+
|
|
1541
|
+
export type ListClusterTypesError = ScalewayOpError;
|
|
1542
|
+
/** List cluster types List available cluster types and their technical details. */
|
|
1543
|
+
export const listClusterTypes: API.PaginatedOperationMethod<
|
|
1544
|
+
ListClusterTypesRequest,
|
|
1545
|
+
ListClusterTypesResponse,
|
|
1546
|
+
ListClusterTypesError,
|
|
1547
|
+
ScalewayOpContext,
|
|
1548
|
+
ClusterType
|
|
1549
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1550
|
+
() => ({
|
|
1551
|
+
input: __S(184, __c23, 0) as any as S.Schema<ListClusterTypesRequest>,
|
|
1552
|
+
output: __S(185, __c23, 1) as any as S.Schema<ListClusterTypesResponse>,
|
|
1553
|
+
errors: [],
|
|
1554
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1555
|
+
protocol: ScalewayProtocol,
|
|
1556
|
+
retry: Retry.Retry,
|
|
1557
|
+
telemetry: TELEMETRY,
|
|
1558
|
+
span: "ListClusterTypes",
|
|
1559
|
+
pagination: {
|
|
1560
|
+
mode: "page",
|
|
1561
|
+
inputToken: "page",
|
|
1562
|
+
outputToken: "total_count",
|
|
1563
|
+
items: "cluster_types",
|
|
1564
|
+
pageSize: "page_size",
|
|
1565
|
+
} as const,
|
|
1566
|
+
}),
|
|
1567
|
+
paginateByTotalCount,
|
|
1568
|
+
) as any;
|
|
1569
|
+
|
|
1570
|
+
export type ListNodesError = ScalewayOpError;
|
|
1571
|
+
/** List Nodes in a Cluster List all the existing nodes for a specific Kubernetes cluster. */
|
|
1572
|
+
export const listNodes: API.PaginatedOperationMethod<
|
|
1573
|
+
ListNodesRequest,
|
|
1574
|
+
ListNodesResponse,
|
|
1575
|
+
ListNodesError,
|
|
1576
|
+
ScalewayOpContext,
|
|
1577
|
+
Node
|
|
1578
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1579
|
+
() => ({
|
|
1580
|
+
input: __S(208, __c26, 0) as any as S.Schema<ListNodesRequest>,
|
|
1581
|
+
output: __S(210, __c26, 2) as any as S.Schema<ListNodesResponse>,
|
|
1582
|
+
errors: [],
|
|
1583
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1584
|
+
protocol: ScalewayProtocol,
|
|
1585
|
+
retry: Retry.Retry,
|
|
1586
|
+
telemetry: TELEMETRY,
|
|
1587
|
+
span: "ListNodes",
|
|
1588
|
+
pagination: {
|
|
1589
|
+
mode: "page",
|
|
1590
|
+
inputToken: "page",
|
|
1591
|
+
outputToken: "total_count",
|
|
1592
|
+
items: "nodes",
|
|
1593
|
+
pageSize: "page_size",
|
|
1594
|
+
} as const,
|
|
1595
|
+
}),
|
|
1596
|
+
paginateByTotalCount,
|
|
1597
|
+
) as any;
|
|
1598
|
+
|
|
1599
|
+
export type ListPoolsError = ScalewayOpError;
|
|
1600
|
+
/** List Pools in a Cluster List all the existing pools for a specific Kubernetes cluster. */
|
|
1601
|
+
export const listPools: API.PaginatedOperationMethod<
|
|
1602
|
+
ListPoolsRequest,
|
|
1603
|
+
ListPoolsResponse,
|
|
1604
|
+
ListPoolsError,
|
|
1605
|
+
ScalewayOpContext,
|
|
1606
|
+
Pool
|
|
1607
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1608
|
+
() => ({
|
|
1609
|
+
input: __S(216, __c27, 0) as any as S.Schema<ListPoolsRequest>,
|
|
1610
|
+
output: __S(218, __c27, 2) as any as S.Schema<ListPoolsResponse>,
|
|
1611
|
+
errors: [],
|
|
1612
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1613
|
+
protocol: ScalewayProtocol,
|
|
1614
|
+
retry: Retry.Retry,
|
|
1615
|
+
telemetry: TELEMETRY,
|
|
1616
|
+
span: "ListPools",
|
|
1617
|
+
pagination: {
|
|
1618
|
+
mode: "page",
|
|
1619
|
+
inputToken: "page",
|
|
1620
|
+
outputToken: "total_count",
|
|
1621
|
+
items: "pools",
|
|
1622
|
+
pageSize: "page_size",
|
|
1623
|
+
} as const,
|
|
1624
|
+
}),
|
|
1625
|
+
paginateByTotalCount,
|
|
1626
|
+
) as any;
|
|
1627
|
+
|
|
1628
|
+
export type ListUserDataError = ScalewayOpError;
|
|
1629
|
+
/** List all user data related to a given pool. This list only the user data key and not the content. */
|
|
1630
|
+
export const listUserData: API.OperationMethod<
|
|
1631
|
+
ListUserDataRequest,
|
|
1632
|
+
ListUserDataResponse,
|
|
1633
|
+
ListUserDataError,
|
|
1634
|
+
ScalewayOpContext
|
|
1635
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1636
|
+
input: __S(224, __c28, 0) as any as S.Schema<ListUserDataRequest>,
|
|
1637
|
+
output: __S(227, __c28, 3) as any as S.Schema<ListUserDataResponse>,
|
|
1638
|
+
errors: [],
|
|
1639
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1640
|
+
protocol: ScalewayProtocol,
|
|
1641
|
+
retry: Retry.Retry,
|
|
1642
|
+
telemetry: TELEMETRY,
|
|
1643
|
+
span: "ListUserData",
|
|
1644
|
+
}));
|
|
1645
|
+
|
|
1646
|
+
export type ListVersionsError = ScalewayOpError;
|
|
1647
|
+
/** List all available Versions List all available versions for the creation of a new Kubernetes cluster. */
|
|
1648
|
+
export const listVersions: API.OperationMethod<
|
|
1649
|
+
ListVersionsRequest,
|
|
1650
|
+
ListVersionsResponse,
|
|
1651
|
+
ListVersionsError,
|
|
1652
|
+
ScalewayOpContext
|
|
1653
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1654
|
+
input: __S(232, __c29, 0) as any as S.Schema<ListVersionsRequest>,
|
|
1655
|
+
output: __S(169, __c21, 1) as any as S.Schema<ListVersionsResponse>,
|
|
1656
|
+
errors: [],
|
|
1657
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1658
|
+
protocol: ScalewayProtocol,
|
|
1659
|
+
retry: Retry.Retry,
|
|
1660
|
+
telemetry: TELEMETRY,
|
|
1661
|
+
span: "ListVersions",
|
|
1662
|
+
}));
|
|
1663
|
+
|
|
1664
|
+
export type RebootNodeError = ScalewayOpError;
|
|
1665
|
+
/** Reboot a Node in a Cluster Reboot a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur. */
|
|
1666
|
+
export const rebootNode: API.OperationMethod<
|
|
1667
|
+
RebootNodeRequest,
|
|
1668
|
+
Node,
|
|
1669
|
+
RebootNodeError,
|
|
1670
|
+
ScalewayOpContext
|
|
1671
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1672
|
+
input: __S(240, __c30, 0) as any as S.Schema<RebootNodeRequest>,
|
|
1673
|
+
output: __S(368, __c46, 0) as any as S.Schema<Node>,
|
|
1674
|
+
errors: [],
|
|
1675
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1676
|
+
protocol: ScalewayProtocol,
|
|
1677
|
+
retry: Retry.Retry,
|
|
1678
|
+
telemetry: TELEMETRY,
|
|
1679
|
+
span: "RebootNode",
|
|
1680
|
+
}));
|
|
1681
|
+
|
|
1682
|
+
export type ReplaceNodeError = ScalewayOpError;
|
|
1683
|
+
/** Replace a Node in a Cluster Replace a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur. */
|
|
1684
|
+
export const replaceNode: API.OperationMethod<
|
|
1685
|
+
ReplaceNodeRequest,
|
|
1686
|
+
Node,
|
|
1687
|
+
ReplaceNodeError,
|
|
1688
|
+
ScalewayOpContext
|
|
1689
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1690
|
+
input: __S(248, __c31, 0) as any as S.Schema<ReplaceNodeRequest>,
|
|
1691
|
+
output: __S(368, __c46, 0) as any as S.Schema<Node>,
|
|
1692
|
+
errors: [],
|
|
1693
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1694
|
+
protocol: ScalewayProtocol,
|
|
1695
|
+
retry: Retry.Retry,
|
|
1696
|
+
telemetry: TELEMETRY,
|
|
1697
|
+
span: "ReplaceNode",
|
|
1698
|
+
}));
|
|
1699
|
+
|
|
1700
|
+
export type ResetClusterAdminTokenError = ScalewayOpError;
|
|
1701
|
+
/** Reset the admin token of a Cluster Reset the admin token for a specific Kubernetes cluster. This will revoke the old admin token (which will not be usable afterwards) and create a new one. Note that you will need to download the kubeconfig again to keep interacting with the cluster. */
|
|
1702
|
+
export const resetClusterAdminToken: API.OperationMethod<
|
|
1703
|
+
ResetClusterAdminTokenRequest,
|
|
1704
|
+
ResetClusterAdminTokenResponse,
|
|
1705
|
+
ResetClusterAdminTokenError,
|
|
1706
|
+
ScalewayOpContext
|
|
1707
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1708
|
+
input: __S(256, __c32, 0) as any as S.Schema<ResetClusterAdminTokenRequest>,
|
|
1709
|
+
output: __S(296, __c37, 0) as any as S.Schema<ResetClusterAdminTokenResponse>,
|
|
1710
|
+
errors: [],
|
|
1711
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1712
|
+
protocol: ScalewayProtocol,
|
|
1713
|
+
retry: Retry.Retry,
|
|
1714
|
+
telemetry: TELEMETRY,
|
|
1715
|
+
span: "ResetClusterAdminToken",
|
|
1716
|
+
}));
|
|
1717
|
+
|
|
1718
|
+
export type SetClusterACLRulesError = ScalewayOpError;
|
|
1719
|
+
/** Set new ACLs Set new ACL rules for a specific cluster. */
|
|
1720
|
+
export const setClusterACLRules: API.OperationMethod<
|
|
1721
|
+
SetClusterACLRulesRequest,
|
|
1722
|
+
SetClusterACLRulesResponse,
|
|
1723
|
+
SetClusterACLRulesError,
|
|
1724
|
+
ScalewayOpContext
|
|
1725
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1726
|
+
input: __S(264, __c33, 0) as any as S.Schema<SetClusterACLRulesRequest>,
|
|
1727
|
+
output: __S(18, __c2, 2) as any as S.Schema<SetClusterACLRulesResponse>,
|
|
1728
|
+
errors: [],
|
|
1729
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1730
|
+
protocol: ScalewayProtocol,
|
|
1731
|
+
retry: Retry.Retry,
|
|
1732
|
+
telemetry: TELEMETRY,
|
|
1733
|
+
span: "SetClusterACLRules",
|
|
1734
|
+
}));
|
|
1735
|
+
|
|
1736
|
+
export type SetClusterTypeError = ScalewayOpError;
|
|
1737
|
+
/** Change the Cluster type Change the type of a specific Kubernetes cluster. To see the possible values you can enter for the `type` field, [list available cluster types](#list-available-cluster-types-for-a-cluster). */
|
|
1738
|
+
export const setClusterType: API.OperationMethod<
|
|
1739
|
+
SetClusterTypeRequest,
|
|
1740
|
+
Cluster,
|
|
1741
|
+
SetClusterTypeError,
|
|
1742
|
+
ScalewayOpContext
|
|
1743
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1744
|
+
input: __S(272, __c34, 0) as any as S.Schema<SetClusterTypeRequest>,
|
|
1745
|
+
output: __S(84, __c10, 4) as any as S.Schema<Cluster>,
|
|
1746
|
+
errors: [],
|
|
1747
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1748
|
+
protocol: ScalewayProtocol,
|
|
1749
|
+
retry: Retry.Retry,
|
|
1750
|
+
telemetry: TELEMETRY,
|
|
1751
|
+
span: "SetClusterType",
|
|
1752
|
+
}));
|
|
1753
|
+
|
|
1754
|
+
export type SetPoolLabelsError = ScalewayOpError;
|
|
1755
|
+
/** Set a list of labels for a specific pool Apply a list of taints to all nodes of the pool (only apply to labels which was set through scaleway api). */
|
|
1756
|
+
export const setPoolLabels: API.OperationMethod<
|
|
1757
|
+
SetPoolLabelsRequest,
|
|
1758
|
+
Pool,
|
|
1759
|
+
SetPoolLabelsError,
|
|
1760
|
+
ScalewayOpContext
|
|
1761
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1762
|
+
input: __S(280, __c35, 0) as any as S.Schema<SetPoolLabelsRequest>,
|
|
1763
|
+
output: __S(201, __c25, 1) as any as S.Schema<Pool>,
|
|
1764
|
+
errors: [],
|
|
1765
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1766
|
+
protocol: ScalewayProtocol,
|
|
1767
|
+
retry: Retry.Retry,
|
|
1768
|
+
telemetry: TELEMETRY,
|
|
1769
|
+
span: "SetPoolLabels",
|
|
1770
|
+
}));
|
|
1771
|
+
|
|
1772
|
+
export type SetPoolStartupTaintsError = ScalewayOpError;
|
|
1773
|
+
/** Set a list of startup taints for a specific pool Apply a list of taints to new nodes of the pool which would not be reconciled by scaleway. */
|
|
1774
|
+
export const setPoolStartupTaints: API.OperationMethod<
|
|
1775
|
+
SetPoolStartupTaintsRequest,
|
|
1776
|
+
Pool,
|
|
1777
|
+
SetPoolStartupTaintsError,
|
|
1778
|
+
ScalewayOpContext
|
|
1779
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1780
|
+
input: __S(304, __c38, 0) as any as S.Schema<SetPoolStartupTaintsRequest>,
|
|
1781
|
+
output: __S(201, __c25, 1) as any as S.Schema<Pool>,
|
|
1782
|
+
errors: [],
|
|
1783
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1784
|
+
protocol: ScalewayProtocol,
|
|
1785
|
+
retry: Retry.Retry,
|
|
1786
|
+
telemetry: TELEMETRY,
|
|
1787
|
+
span: "SetPoolStartupTaints",
|
|
1788
|
+
}));
|
|
1789
|
+
|
|
1790
|
+
export type SetPoolTaintsError = ScalewayOpError;
|
|
1791
|
+
/** Set a list of taints for a specific pool Apply a list of taints to all nodes of the pool which will be periodically reconciled by scaleway. */
|
|
1792
|
+
export const setPoolTaints: API.OperationMethod<
|
|
1793
|
+
SetPoolTaintsRequest,
|
|
1794
|
+
Pool,
|
|
1795
|
+
SetPoolTaintsError,
|
|
1796
|
+
ScalewayOpContext
|
|
1797
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1798
|
+
input: __S(312, __c39, 0) as any as S.Schema<SetPoolTaintsRequest>,
|
|
1799
|
+
output: __S(201, __c25, 1) as any as S.Schema<Pool>,
|
|
1800
|
+
errors: [],
|
|
1801
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1802
|
+
protocol: ScalewayProtocol,
|
|
1803
|
+
retry: Retry.Retry,
|
|
1804
|
+
telemetry: TELEMETRY,
|
|
1805
|
+
span: "SetPoolTaints",
|
|
1806
|
+
}));
|
|
1807
|
+
|
|
1808
|
+
export type UpdateClusterError = ScalewayOpError;
|
|
1809
|
+
/** Update a Cluster Update information on a specific Kubernetes cluster. You can update details such as its name, description, tags and configuration. To upgrade a cluster, you will need to use the dedicated endpoint. */
|
|
1810
|
+
export const updateCluster: API.OperationMethod<
|
|
1811
|
+
UpdateClusterRequest,
|
|
1812
|
+
Cluster,
|
|
1813
|
+
UpdateClusterError,
|
|
1814
|
+
ScalewayOpContext
|
|
1815
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1816
|
+
input: __S(322, __c40, 2) as any as S.Schema<UpdateClusterRequest>,
|
|
1817
|
+
output: __S(84, __c10, 4) as any as S.Schema<Cluster>,
|
|
1818
|
+
errors: [],
|
|
1819
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1820
|
+
protocol: ScalewayProtocol,
|
|
1821
|
+
retry: Retry.Retry,
|
|
1822
|
+
telemetry: TELEMETRY,
|
|
1823
|
+
span: "UpdateCluster",
|
|
1824
|
+
}));
|
|
1825
|
+
|
|
1826
|
+
export type UpdatePoolError = ScalewayOpError;
|
|
1827
|
+
/** Update a Pool in a Cluster Update the attributes of a specific pool, such as its desired size, autoscaling settings, and tags. To upgrade a pool, you will need to use the dedicated endpoint. */
|
|
1828
|
+
export const updatePool: API.OperationMethod<
|
|
1829
|
+
UpdatePoolRequest,
|
|
1830
|
+
Pool,
|
|
1831
|
+
UpdatePoolError,
|
|
1832
|
+
ScalewayOpContext
|
|
1833
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1834
|
+
input: __S(328, __c41, 0) as any as S.Schema<UpdatePoolRequest>,
|
|
1835
|
+
output: __S(201, __c25, 1) as any as S.Schema<Pool>,
|
|
1836
|
+
errors: [],
|
|
1837
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1838
|
+
protocol: ScalewayProtocol,
|
|
1839
|
+
retry: Retry.Retry,
|
|
1840
|
+
telemetry: TELEMETRY,
|
|
1841
|
+
span: "UpdatePool",
|
|
1842
|
+
}));
|
|
1843
|
+
|
|
1844
|
+
export type UpgradeClusterError = ScalewayOpError;
|
|
1845
|
+
/** Upgrade a Cluster Upgrade a specific Kubernetes cluster and possibly its associated pools to a specific and supported Kubernetes version. */
|
|
1846
|
+
export const upgradeCluster: API.OperationMethod<
|
|
1847
|
+
UpgradeClusterRequest,
|
|
1848
|
+
Cluster,
|
|
1849
|
+
UpgradeClusterError,
|
|
1850
|
+
ScalewayOpContext
|
|
1851
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1852
|
+
input: __S(336, __c42, 0) as any as S.Schema<UpgradeClusterRequest>,
|
|
1853
|
+
output: __S(84, __c10, 4) as any as S.Schema<Cluster>,
|
|
1854
|
+
errors: [],
|
|
1855
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1856
|
+
protocol: ScalewayProtocol,
|
|
1857
|
+
retry: Retry.Retry,
|
|
1858
|
+
telemetry: TELEMETRY,
|
|
1859
|
+
span: "UpgradeCluster",
|
|
1860
|
+
}));
|
|
1861
|
+
|
|
1862
|
+
export type UpgradePoolError = ScalewayOpError;
|
|
1863
|
+
/** Upgrade a Pool in a Cluster Upgrade the Kubernetes version of a specific pool. Note that it only works if the targeted version matches the cluster's version. This will drain and replace the nodes in that pool. */
|
|
1864
|
+
export const upgradePool: API.OperationMethod<
|
|
1865
|
+
UpgradePoolRequest,
|
|
1866
|
+
Pool,
|
|
1867
|
+
UpgradePoolError,
|
|
1868
|
+
ScalewayOpContext
|
|
1869
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1870
|
+
input: __S(344, __c43, 0) as any as S.Schema<UpgradePoolRequest>,
|
|
1871
|
+
output: __S(201, __c25, 1) as any as S.Schema<Pool>,
|
|
1872
|
+
errors: [],
|
|
1873
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1874
|
+
protocol: ScalewayProtocol,
|
|
1875
|
+
retry: Retry.Retry,
|
|
1876
|
+
telemetry: TELEMETRY,
|
|
1877
|
+
span: "UpgradePool",
|
|
1878
|
+
}));
|
|
1879
|
+
|
|
1880
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
1881
|
+
function __c0(j: number): any {
|
|
1882
|
+
switch (j) {
|
|
1883
|
+
case 0:
|
|
1884
|
+
return S.suspend(() =>
|
|
1885
|
+
S.Struct({
|
|
1886
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1887
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
1888
|
+
acls: S.optional(__S(17, __c2, 1)),
|
|
1889
|
+
}).pipe(
|
|
1890
|
+
T.Http({
|
|
1891
|
+
method: "POST",
|
|
1892
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/acls",
|
|
1893
|
+
code: 200,
|
|
1894
|
+
baseUrl: "https://api.scaleway.com",
|
|
1895
|
+
}),
|
|
1896
|
+
),
|
|
1897
|
+
).annotate({ identifier: "AddClusterACLRulesRequest" });
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
function __c1(j: number): any {
|
|
1901
|
+
switch (j) {
|
|
1902
|
+
case 0:
|
|
1903
|
+
return S.suspend(() =>
|
|
1904
|
+
S.Struct({
|
|
1905
|
+
id: S.optional(S.String),
|
|
1906
|
+
srn: S.optional(S.String),
|
|
1907
|
+
ip: S.optional(S.NullOr(S.String)),
|
|
1908
|
+
scaleway_ranges: S.optional(S.NullOr(S.Boolean)),
|
|
1909
|
+
description: S.optional(S.String),
|
|
1910
|
+
region: S.optional(S.String),
|
|
1911
|
+
}),
|
|
1912
|
+
).annotate({ identifier: "ACLRule" });
|
|
1913
|
+
case 1:
|
|
1914
|
+
return S.Array(__S(8, __c1, 0));
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
function __c2(j: number): any {
|
|
1918
|
+
switch (j) {
|
|
1919
|
+
case 0:
|
|
1920
|
+
return S.suspend(() =>
|
|
1921
|
+
S.Struct({
|
|
1922
|
+
ip: S.optional(S.NullOr(S.String)),
|
|
1923
|
+
scaleway_ranges: S.optional(S.NullOr(S.Boolean)),
|
|
1924
|
+
description: S.optional(S.String),
|
|
1925
|
+
}),
|
|
1926
|
+
).annotate({ identifier: "ACLRuleRequest" });
|
|
1927
|
+
case 1:
|
|
1928
|
+
return S.Array(__S(16, __c2, 0));
|
|
1929
|
+
case 2:
|
|
1930
|
+
return S.suspend(() =>
|
|
1931
|
+
S.Struct({
|
|
1932
|
+
rules: S.optional(__S(9, __c1, 1)),
|
|
1933
|
+
}),
|
|
1934
|
+
).annotate({ identifier: "AddClusterACLRulesResponse" });
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
function __c3(j: number): any {
|
|
1938
|
+
switch (j) {
|
|
1939
|
+
case 0:
|
|
1940
|
+
return S.suspend(() =>
|
|
1941
|
+
S.Struct({
|
|
1942
|
+
name: S.String,
|
|
1943
|
+
node_type: S.String,
|
|
1944
|
+
placement_group_id: S.optional(S.NullOr(S.String)),
|
|
1945
|
+
autoscaling: S.optional(S.Boolean),
|
|
1946
|
+
size: S.Number,
|
|
1947
|
+
min_size: S.optional(S.NullOr(S.Number)),
|
|
1948
|
+
max_size: S.optional(S.NullOr(S.Number)),
|
|
1949
|
+
container_runtime: S.optional(S.String),
|
|
1950
|
+
autohealing: S.optional(S.Boolean),
|
|
1951
|
+
tags: S.optional(__S(40, __c5, 0)),
|
|
1952
|
+
kubelet_args: S.optional(__S(48, __c6, 0)),
|
|
1953
|
+
upgrade_policy: S.optional(__S(32, __c4, 0)),
|
|
1954
|
+
zone: S.optional(S.String),
|
|
1955
|
+
root_volume_type: S.optional(S.String),
|
|
1956
|
+
root_volume_size: S.optional(S.NullOr(S.Number)),
|
|
1957
|
+
public_ip_disabled: S.optional(S.Boolean),
|
|
1958
|
+
security_group_id: S.optional(S.NullOr(S.String)),
|
|
1959
|
+
labels: S.optional(__S(48, __c6, 0)),
|
|
1960
|
+
taints: S.optional(__S(57, __c7, 1)),
|
|
1961
|
+
startup_taints: S.optional(__S(57, __c7, 1)),
|
|
1962
|
+
private_network_id: S.optional(S.NullOr(S.String)),
|
|
1963
|
+
max_termination_grace_period: S.optional(S.NullOr(S.String)),
|
|
1964
|
+
user_data: S.optional(__S(48, __c6, 0)),
|
|
1965
|
+
}),
|
|
1966
|
+
).annotate({ identifier: "CreateClusterRequestPoolConfig" });
|
|
1967
|
+
case 1:
|
|
1968
|
+
return S.Array(__S(24, __c3, 0));
|
|
1969
|
+
case 2:
|
|
1970
|
+
return S.suspend(() =>
|
|
1971
|
+
S.Struct({
|
|
1972
|
+
enable: S.optional(S.Boolean),
|
|
1973
|
+
maintenance_window: S.optional(__S(80, __c10, 0)),
|
|
1974
|
+
}),
|
|
1975
|
+
).annotate({ identifier: "CreateClusterRequestAutoUpgrade" });
|
|
1976
|
+
case 3:
|
|
1977
|
+
return S.suspend(() =>
|
|
1978
|
+
S.Struct({
|
|
1979
|
+
issuer_url: S.optional(S.String),
|
|
1980
|
+
client_id: S.optional(S.String),
|
|
1981
|
+
username_claim: S.optional(S.NullOr(S.String)),
|
|
1982
|
+
username_prefix: S.optional(S.NullOr(S.String)),
|
|
1983
|
+
groups_claim: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
1984
|
+
groups_prefix: S.optional(S.NullOr(S.String)),
|
|
1985
|
+
required_claim: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
1986
|
+
}),
|
|
1987
|
+
).annotate({ identifier: "CreateClusterRequestOpenIDConnectConfig" });
|
|
1988
|
+
case 4:
|
|
1989
|
+
return S.suspend(() =>
|
|
1990
|
+
S.Struct({
|
|
1991
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1992
|
+
organization_id: S.optional(S.NullOr(S.String)),
|
|
1993
|
+
project_id: S.optional(S.NullOr(S.String)),
|
|
1994
|
+
type: S.optional(S.String),
|
|
1995
|
+
name: S.String,
|
|
1996
|
+
description: S.optional(S.String),
|
|
1997
|
+
tags: S.optional(__S(40, __c5, 0)),
|
|
1998
|
+
version: S.String,
|
|
1999
|
+
cni: S.String,
|
|
2000
|
+
pools: S.optional(__S(25, __c3, 1)),
|
|
2001
|
+
autoscaler_config: S.optional(__S(64, __c8, 0)),
|
|
2002
|
+
auto_upgrade: S.optional(__S(26, __c3, 2)),
|
|
2003
|
+
feature_gates: S.optional(__S(40, __c5, 0)),
|
|
2004
|
+
admission_plugins: S.optional(__S(40, __c5, 0)),
|
|
2005
|
+
open_id_connect_config: S.optional(__S(27, __c3, 3)),
|
|
2006
|
+
apiserver_cert_sans: S.optional(__S(40, __c5, 0)),
|
|
2007
|
+
private_network_id: S.optional(S.NullOr(S.String)),
|
|
2008
|
+
pod_cidr: S.optional(S.NullOr(S.String)),
|
|
2009
|
+
service_cidr: S.optional(S.NullOr(S.String)),
|
|
2010
|
+
service_dns_ip: S.optional(S.NullOr(S.String)),
|
|
2011
|
+
}).pipe(
|
|
2012
|
+
T.Http({
|
|
2013
|
+
method: "POST",
|
|
2014
|
+
uri: "/k8s/v1/regions/{region}/clusters",
|
|
2015
|
+
code: 200,
|
|
2016
|
+
baseUrl: "https://api.scaleway.com",
|
|
2017
|
+
}),
|
|
2018
|
+
),
|
|
2019
|
+
).annotate({ identifier: "CreateClusterRequest" });
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
function __c4(j: number): any {
|
|
2023
|
+
switch (j) {
|
|
2024
|
+
case 0:
|
|
2025
|
+
return S.suspend(() =>
|
|
2026
|
+
S.Struct({
|
|
2027
|
+
max_unavailable: S.optional(S.NullOr(S.Number)),
|
|
2028
|
+
max_surge: S.optional(S.NullOr(S.Number)),
|
|
2029
|
+
}),
|
|
2030
|
+
).annotate({ identifier: "CreateClusterRequestPoolConfigUpgradePolicy" });
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
function __c5(j: number): any {
|
|
2034
|
+
switch (j) {
|
|
2035
|
+
case 0:
|
|
2036
|
+
return S.Array(S.String);
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
function __c6(j: number): any {
|
|
2040
|
+
switch (j) {
|
|
2041
|
+
case 0:
|
|
2042
|
+
return S.Record(S.String, S.String);
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
function __c7(j: number): any {
|
|
2046
|
+
switch (j) {
|
|
2047
|
+
case 0:
|
|
2048
|
+
return S.suspend(() =>
|
|
2049
|
+
S.Struct({
|
|
2050
|
+
key: S.optional(S.String),
|
|
2051
|
+
value: S.optional(S.String),
|
|
2052
|
+
effect: S.optional(S.String),
|
|
2053
|
+
}),
|
|
2054
|
+
).annotate({ identifier: "CoreV1Taint" });
|
|
2055
|
+
case 1:
|
|
2056
|
+
return S.Array(__S(56, __c7, 0));
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
function __c8(j: number): any {
|
|
2060
|
+
switch (j) {
|
|
2061
|
+
case 0:
|
|
2062
|
+
return S.suspend(() =>
|
|
2063
|
+
S.Struct({
|
|
2064
|
+
scale_down_disabled: S.optional(S.NullOr(S.Boolean)),
|
|
2065
|
+
scale_down_delay_after_add: S.optional(S.NullOr(S.String)),
|
|
2066
|
+
estimator: S.optional(S.String),
|
|
2067
|
+
expander: S.optional(S.String),
|
|
2068
|
+
ignore_daemonsets_utilization: S.optional(S.NullOr(S.Boolean)),
|
|
2069
|
+
balance_similar_node_groups: S.optional(S.NullOr(S.Boolean)),
|
|
2070
|
+
expendable_pods_priority_cutoff: S.optional(S.NullOr(S.Number)),
|
|
2071
|
+
scale_down_unneeded_time: S.optional(S.NullOr(S.String)),
|
|
2072
|
+
scale_down_utilization_threshold: S.optional(S.NullOr(S.Number)),
|
|
2073
|
+
max_graceful_termination_sec: S.optional(S.NullOr(S.Number)),
|
|
2074
|
+
skip_nodes_with_local_storage: S.optional(S.NullOr(S.Boolean)),
|
|
2075
|
+
log_level: S.optional(S.NullOr(S.Number)),
|
|
2076
|
+
}),
|
|
2077
|
+
).annotate({ identifier: "CreateClusterRequestAutoscalerConfig" });
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
function __c9(j: number): any {
|
|
2081
|
+
switch (j) {
|
|
2082
|
+
case 0:
|
|
2083
|
+
return S.Array(S.Unknown);
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
function __c10(j: number): any {
|
|
2087
|
+
switch (j) {
|
|
2088
|
+
case 0:
|
|
2089
|
+
return S.suspend(() =>
|
|
2090
|
+
S.Struct({
|
|
2091
|
+
start_hour: S.optional(S.Number),
|
|
2092
|
+
day: S.optional(S.String),
|
|
2093
|
+
}),
|
|
2094
|
+
).annotate({ identifier: "MaintenanceWindow" });
|
|
2095
|
+
case 1:
|
|
2096
|
+
return S.suspend(() =>
|
|
2097
|
+
S.Struct({
|
|
2098
|
+
scale_down_disabled: S.optional(S.Boolean),
|
|
2099
|
+
scale_down_delay_after_add: S.optional(S.String),
|
|
2100
|
+
estimator: S.optional(S.String),
|
|
2101
|
+
expander: S.optional(S.String),
|
|
2102
|
+
ignore_daemonsets_utilization: S.optional(S.Boolean),
|
|
2103
|
+
balance_similar_node_groups: S.optional(S.Boolean),
|
|
2104
|
+
expendable_pods_priority_cutoff: S.optional(S.Number),
|
|
2105
|
+
scale_down_unneeded_time: S.optional(S.String),
|
|
2106
|
+
scale_down_utilization_threshold: S.optional(S.Number),
|
|
2107
|
+
max_graceful_termination_sec: S.optional(S.Number),
|
|
2108
|
+
skip_nodes_with_local_storage: S.optional(S.Boolean),
|
|
2109
|
+
log_level: S.optional(S.Number),
|
|
2110
|
+
}),
|
|
2111
|
+
).annotate({ identifier: "ClusterAutoscalerConfig" });
|
|
2112
|
+
case 2:
|
|
2113
|
+
return S.suspend(() =>
|
|
2114
|
+
S.Struct({
|
|
2115
|
+
enabled: S.optional(S.Boolean),
|
|
2116
|
+
maintenance_window: S.optional(__S(80, __c10, 0)),
|
|
2117
|
+
}),
|
|
2118
|
+
).annotate({ identifier: "ClusterAutoUpgrade" });
|
|
2119
|
+
case 3:
|
|
2120
|
+
return S.suspend(() =>
|
|
2121
|
+
S.Struct({
|
|
2122
|
+
issuer_url: S.optional(S.String),
|
|
2123
|
+
client_id: S.optional(S.String),
|
|
2124
|
+
username_claim: S.optional(S.String),
|
|
2125
|
+
username_prefix: S.optional(S.String),
|
|
2126
|
+
groups_claim: S.optional(__S(40, __c5, 0)),
|
|
2127
|
+
groups_prefix: S.optional(S.String),
|
|
2128
|
+
required_claim: S.optional(__S(40, __c5, 0)),
|
|
2129
|
+
}),
|
|
2130
|
+
).annotate({ identifier: "ClusterOpenIDConnectConfig" });
|
|
2131
|
+
case 4:
|
|
2132
|
+
return S.suspend(() =>
|
|
2133
|
+
S.Struct({
|
|
2134
|
+
id: S.optional(S.String),
|
|
2135
|
+
srn: S.optional(S.String),
|
|
2136
|
+
type: S.optional(S.String),
|
|
2137
|
+
name: S.optional(S.String),
|
|
2138
|
+
status: S.optional(S.String),
|
|
2139
|
+
version: S.optional(S.String),
|
|
2140
|
+
region: S.optional(S.String),
|
|
2141
|
+
organization_id: S.optional(S.String),
|
|
2142
|
+
project_id: S.optional(S.String),
|
|
2143
|
+
tags: S.optional(__S(40, __c5, 0)),
|
|
2144
|
+
cni: S.optional(S.String),
|
|
2145
|
+
description: S.optional(S.String),
|
|
2146
|
+
cluster_url: S.optional(S.String),
|
|
2147
|
+
dns_wildcard: S.optional(S.String),
|
|
2148
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
2149
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
2150
|
+
autoscaler_config: S.optional(__S(81, __c10, 1)),
|
|
2151
|
+
auto_upgrade: S.optional(__S(82, __c10, 2)),
|
|
2152
|
+
upgrade_available: S.optional(S.Boolean),
|
|
2153
|
+
feature_gates: S.optional(__S(40, __c5, 0)),
|
|
2154
|
+
admission_plugins: S.optional(__S(40, __c5, 0)),
|
|
2155
|
+
open_id_connect_config: S.optional(__S(83, __c10, 3)),
|
|
2156
|
+
apiserver_cert_sans: S.optional(__S(40, __c5, 0)),
|
|
2157
|
+
private_network_id: S.optional(S.NullOr(S.String)),
|
|
2158
|
+
commitment_ends_at: S.optional(S.NullOr(S.String)),
|
|
2159
|
+
acl_available: S.optional(S.Boolean),
|
|
2160
|
+
iam_nodes_group_id: S.optional(S.String),
|
|
2161
|
+
iam_control_plane_application_id: S.optional(S.String),
|
|
2162
|
+
pod_cidr: S.optional(S.String),
|
|
2163
|
+
service_cidr: S.optional(S.String),
|
|
2164
|
+
service_dns_ip: S.optional(S.String),
|
|
2165
|
+
}),
|
|
2166
|
+
).annotate({ identifier: "Cluster" });
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
function __c11(j: number): any {
|
|
2170
|
+
switch (j) {
|
|
2171
|
+
case 0:
|
|
2172
|
+
return S.suspend(() =>
|
|
2173
|
+
S.Struct({
|
|
2174
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2175
|
+
node_id: S.String.pipe(T.Label()),
|
|
2176
|
+
}).pipe(
|
|
2177
|
+
T.Http({
|
|
2178
|
+
method: "GET",
|
|
2179
|
+
uri: "/k8s/v1/regions/{region}/nodes/{node_id}",
|
|
2180
|
+
code: 200,
|
|
2181
|
+
baseUrl: "https://api.scaleway.com",
|
|
2182
|
+
}),
|
|
2183
|
+
),
|
|
2184
|
+
).annotate({ identifier: "GetNodeRequest" });
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
function __c12(j: number): any {
|
|
2188
|
+
switch (j) {
|
|
2189
|
+
case 0:
|
|
2190
|
+
return S.suspend(() =>
|
|
2191
|
+
S.Struct({
|
|
2192
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2193
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2194
|
+
}).pipe(
|
|
2195
|
+
T.Http({
|
|
2196
|
+
method: "GET",
|
|
2197
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}",
|
|
2198
|
+
code: 200,
|
|
2199
|
+
baseUrl: "https://api.scaleway.com",
|
|
2200
|
+
}),
|
|
2201
|
+
),
|
|
2202
|
+
).annotate({ identifier: "GetPoolRequest" });
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
function __c13(j: number): any {
|
|
2206
|
+
switch (j) {
|
|
2207
|
+
case 0:
|
|
2208
|
+
return S.suspend(() =>
|
|
2209
|
+
S.Struct({
|
|
2210
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2211
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2212
|
+
key: S.String.pipe(T.Label()),
|
|
2213
|
+
}).pipe(
|
|
2214
|
+
T.Http({
|
|
2215
|
+
method: "GET",
|
|
2216
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}/user-data/{key}",
|
|
2217
|
+
code: 200,
|
|
2218
|
+
baseUrl: "https://api.scaleway.com",
|
|
2219
|
+
}),
|
|
2220
|
+
),
|
|
2221
|
+
).annotate({ identifier: "GetUserDataRequest" });
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
function __c14(j: number): any {
|
|
2225
|
+
switch (j) {
|
|
2226
|
+
case 0:
|
|
2227
|
+
return S.suspend(() =>
|
|
2228
|
+
S.Struct({
|
|
2229
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2230
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2231
|
+
key: S.String.pipe(T.Label()),
|
|
2232
|
+
}).pipe(
|
|
2233
|
+
T.Http({
|
|
2234
|
+
method: "GET",
|
|
2235
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}/user-data/{key}",
|
|
2236
|
+
code: 200,
|
|
2237
|
+
baseUrl: "https://api.scaleway.com",
|
|
2238
|
+
rawDownload: true,
|
|
2239
|
+
}),
|
|
2240
|
+
),
|
|
2241
|
+
).annotate({ identifier: "GetUserDataRawRequest" });
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
function __c15(j: number): any {
|
|
2245
|
+
switch (j) {
|
|
2246
|
+
case 0:
|
|
2247
|
+
return S.suspend(() =>
|
|
2248
|
+
S.Struct({
|
|
2249
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2250
|
+
version_name: S.String.pipe(T.Label()),
|
|
2251
|
+
}).pipe(
|
|
2252
|
+
T.Http({
|
|
2253
|
+
method: "GET",
|
|
2254
|
+
uri: "/k8s/v1/regions/{region}/versions/{version_name}",
|
|
2255
|
+
code: 200,
|
|
2256
|
+
baseUrl: "https://api.scaleway.com",
|
|
2257
|
+
}),
|
|
2258
|
+
),
|
|
2259
|
+
).annotate({ identifier: "GetVersionRequest" });
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
function __c16(j: number): any {
|
|
2263
|
+
switch (j) {
|
|
2264
|
+
case 0:
|
|
2265
|
+
return S.Array(S.String);
|
|
2266
|
+
case 1:
|
|
2267
|
+
return S.suspend(() =>
|
|
2268
|
+
S.Struct({
|
|
2269
|
+
version: S.optional(S.String),
|
|
2270
|
+
}),
|
|
2271
|
+
).annotate({ identifier: "ComponentInfo" });
|
|
2272
|
+
case 2:
|
|
2273
|
+
return S.Record(S.String, __S(129, __c16, 1));
|
|
2274
|
+
case 3:
|
|
2275
|
+
return S.suspend(() =>
|
|
2276
|
+
S.Struct({
|
|
2277
|
+
name: S.optional(S.String),
|
|
2278
|
+
srn: S.optional(S.String),
|
|
2279
|
+
label: S.optional(S.String),
|
|
2280
|
+
region: S.optional(S.String),
|
|
2281
|
+
available_cnis: S.optional(__S(128, __c16, 0)),
|
|
2282
|
+
available_feature_gates: S.optional(__S(40, __c5, 0)),
|
|
2283
|
+
available_admission_plugins: S.optional(__S(40, __c5, 0)),
|
|
2284
|
+
available_kubelet_args: S.optional(__S(48, __c6, 0)),
|
|
2285
|
+
deprecated_at: S.optional(S.NullOr(S.String)),
|
|
2286
|
+
end_of_life_at: S.optional(S.NullOr(S.String)),
|
|
2287
|
+
released_at: S.optional(S.NullOr(S.String)),
|
|
2288
|
+
additional_components: S.optional(__S(130, __c16, 2)),
|
|
2289
|
+
}),
|
|
2290
|
+
).annotate({ identifier: "Version" });
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
function __c17(j: number): any {
|
|
2294
|
+
switch (j) {
|
|
2295
|
+
case 0:
|
|
2296
|
+
return S.suspend(() =>
|
|
2297
|
+
S.Struct({
|
|
2298
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2299
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2300
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2301
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2302
|
+
}).pipe(
|
|
2303
|
+
T.Http({
|
|
2304
|
+
method: "GET",
|
|
2305
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/acls",
|
|
2306
|
+
code: 200,
|
|
2307
|
+
baseUrl: "https://api.scaleway.com",
|
|
2308
|
+
}),
|
|
2309
|
+
),
|
|
2310
|
+
).annotate({ identifier: "ListClusterACLRulesRequest" });
|
|
2311
|
+
case 1:
|
|
2312
|
+
return S.suspend(() =>
|
|
2313
|
+
S.Struct({
|
|
2314
|
+
total_count: S.optional(S.Number),
|
|
2315
|
+
rules: __S(9, __c1, 1),
|
|
2316
|
+
}),
|
|
2317
|
+
).annotate({ identifier: "ListClusterACLRulesResponse" });
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
function __c18(j: number): any {
|
|
2321
|
+
switch (j) {
|
|
2322
|
+
case 0:
|
|
2323
|
+
return S.suspend(() =>
|
|
2324
|
+
S.Struct({
|
|
2325
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2326
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2327
|
+
}).pipe(
|
|
2328
|
+
T.Http({
|
|
2329
|
+
method: "GET",
|
|
2330
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/available-types",
|
|
2331
|
+
code: 200,
|
|
2332
|
+
baseUrl: "https://api.scaleway.com",
|
|
2333
|
+
}),
|
|
2334
|
+
),
|
|
2335
|
+
).annotate({ identifier: "ListClusterAvailableTypesRequest" });
|
|
2336
|
+
case 1:
|
|
2337
|
+
return S.suspend(() =>
|
|
2338
|
+
S.Struct({
|
|
2339
|
+
cluster_types: S.optional(__S(153, __c19, 1)),
|
|
2340
|
+
total_count: S.optional(S.Number),
|
|
2341
|
+
}),
|
|
2342
|
+
).annotate({ identifier: "ListClusterAvailableTypesResponse" });
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
function __c19(j: number): any {
|
|
2346
|
+
switch (j) {
|
|
2347
|
+
case 0:
|
|
2348
|
+
return S.suspend(() =>
|
|
2349
|
+
S.Struct({
|
|
2350
|
+
name: S.optional(S.String),
|
|
2351
|
+
srn: S.optional(S.String),
|
|
2352
|
+
availability: S.optional(S.String),
|
|
2353
|
+
max_nodes: S.optional(S.Number),
|
|
2354
|
+
commitment_delay: S.optional(S.NullOr(S.String)),
|
|
2355
|
+
sla: S.optional(S.Number),
|
|
2356
|
+
resiliency: S.optional(S.String),
|
|
2357
|
+
memory: S.optional(S.Number),
|
|
2358
|
+
dedicated: S.optional(S.Boolean),
|
|
2359
|
+
audit_logs_supported: S.optional(S.Boolean),
|
|
2360
|
+
region: S.optional(S.String),
|
|
2361
|
+
}),
|
|
2362
|
+
).annotate({ identifier: "ClusterType" });
|
|
2363
|
+
case 1:
|
|
2364
|
+
return S.Array(__S(152, __c19, 0));
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
function __c20(j: number): any {
|
|
2368
|
+
switch (j) {
|
|
2369
|
+
case 0:
|
|
2370
|
+
return S.suspend(() =>
|
|
2371
|
+
S.Struct({
|
|
2372
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2373
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2374
|
+
}).pipe(
|
|
2375
|
+
T.Http({
|
|
2376
|
+
method: "GET",
|
|
2377
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/available-versions",
|
|
2378
|
+
code: 200,
|
|
2379
|
+
baseUrl: "https://api.scaleway.com",
|
|
2380
|
+
}),
|
|
2381
|
+
),
|
|
2382
|
+
).annotate({ identifier: "ListClusterAvailableVersionsRequest" });
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
function __c21(j: number): any {
|
|
2386
|
+
switch (j) {
|
|
2387
|
+
case 0:
|
|
2388
|
+
return S.Array(__S(131, __c16, 3));
|
|
2389
|
+
case 1:
|
|
2390
|
+
return S.suspend(() =>
|
|
2391
|
+
S.Struct({
|
|
2392
|
+
versions: S.optional(__S(168, __c21, 0)),
|
|
2393
|
+
}),
|
|
2394
|
+
).annotate({ identifier: "ListClusterAvailableVersionsResponse" });
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
function __c22(j: number): any {
|
|
2398
|
+
switch (j) {
|
|
2399
|
+
case 0:
|
|
2400
|
+
return S.suspend(() =>
|
|
2401
|
+
S.Struct({
|
|
2402
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2403
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
2404
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
2405
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
2406
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2407
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2408
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
2409
|
+
status: S.optional(S.String.pipe(T.Query())),
|
|
2410
|
+
type: S.optional(S.String.pipe(T.Query())),
|
|
2411
|
+
private_network_id: S.optional(S.String.pipe(T.Query())),
|
|
2412
|
+
version: S.optional(S.String.pipe(T.Query())),
|
|
2413
|
+
}).pipe(
|
|
2414
|
+
T.Http({
|
|
2415
|
+
method: "GET",
|
|
2416
|
+
uri: "/k8s/v1/regions/{region}/clusters",
|
|
2417
|
+
code: 200,
|
|
2418
|
+
baseUrl: "https://api.scaleway.com",
|
|
2419
|
+
}),
|
|
2420
|
+
),
|
|
2421
|
+
).annotate({ identifier: "ListClustersRequest" });
|
|
2422
|
+
case 1:
|
|
2423
|
+
return S.Array(__S(84, __c10, 4));
|
|
2424
|
+
case 2:
|
|
2425
|
+
return S.suspend(() =>
|
|
2426
|
+
S.Struct({
|
|
2427
|
+
total_count: S.optional(S.Number),
|
|
2428
|
+
clusters: __S(177, __c22, 1),
|
|
2429
|
+
}),
|
|
2430
|
+
).annotate({ identifier: "ListClustersResponse" });
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
function __c23(j: number): any {
|
|
2434
|
+
switch (j) {
|
|
2435
|
+
case 0:
|
|
2436
|
+
return S.suspend(() =>
|
|
2437
|
+
S.Struct({
|
|
2438
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2439
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2440
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2441
|
+
}).pipe(
|
|
2442
|
+
T.Http({
|
|
2443
|
+
method: "GET",
|
|
2444
|
+
uri: "/k8s/v1/regions/{region}/cluster-types",
|
|
2445
|
+
code: 200,
|
|
2446
|
+
baseUrl: "https://api.scaleway.com",
|
|
2447
|
+
}),
|
|
2448
|
+
),
|
|
2449
|
+
).annotate({ identifier: "ListClusterTypesRequest" });
|
|
2450
|
+
case 1:
|
|
2451
|
+
return S.suspend(() =>
|
|
2452
|
+
S.Struct({
|
|
2453
|
+
total_count: S.optional(S.Number),
|
|
2454
|
+
cluster_types: __S(153, __c19, 1),
|
|
2455
|
+
}),
|
|
2456
|
+
).annotate({ identifier: "ListClusterTypesResponse" });
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
function __c24(j: number): any {
|
|
2460
|
+
switch (j) {
|
|
2461
|
+
case 0:
|
|
2462
|
+
return S.suspend(() =>
|
|
2463
|
+
S.Struct({
|
|
2464
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2465
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2466
|
+
name: S.String,
|
|
2467
|
+
node_type: S.String,
|
|
2468
|
+
placement_group_id: S.optional(S.NullOr(S.String)),
|
|
2469
|
+
autoscaling: S.optional(S.Boolean),
|
|
2470
|
+
size: S.Number,
|
|
2471
|
+
min_size: S.optional(S.NullOr(S.Number)),
|
|
2472
|
+
max_size: S.optional(S.NullOr(S.Number)),
|
|
2473
|
+
container_runtime: S.optional(S.String),
|
|
2474
|
+
autohealing: S.optional(S.Boolean),
|
|
2475
|
+
tags: S.optional(__S(40, __c5, 0)),
|
|
2476
|
+
kubelet_args: S.optional(__S(48, __c6, 0)),
|
|
2477
|
+
upgrade_policy: S.optional(__S(32, __c4, 0)),
|
|
2478
|
+
zone: S.optional(S.String),
|
|
2479
|
+
root_volume_type: S.optional(S.String),
|
|
2480
|
+
root_volume_size: S.optional(S.NullOr(S.Number)),
|
|
2481
|
+
public_ip_disabled: S.optional(S.Boolean),
|
|
2482
|
+
security_group_id: S.optional(S.NullOr(S.String)),
|
|
2483
|
+
labels: S.optional(__S(48, __c6, 0)),
|
|
2484
|
+
taints: S.optional(__S(57, __c7, 1)),
|
|
2485
|
+
startup_taints: S.optional(__S(57, __c7, 1)),
|
|
2486
|
+
private_network_id: S.optional(S.NullOr(S.String)),
|
|
2487
|
+
user_data: S.optional(__S(48, __c6, 0)),
|
|
2488
|
+
max_termination_grace_period: S.optional(S.NullOr(S.String)),
|
|
2489
|
+
}).pipe(
|
|
2490
|
+
T.Http({
|
|
2491
|
+
method: "POST",
|
|
2492
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/pools",
|
|
2493
|
+
code: 200,
|
|
2494
|
+
baseUrl: "https://api.scaleway.com",
|
|
2495
|
+
}),
|
|
2496
|
+
),
|
|
2497
|
+
).annotate({ identifier: "CreatePoolRequest" });
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
function __c25(j: number): any {
|
|
2501
|
+
switch (j) {
|
|
2502
|
+
case 0:
|
|
2503
|
+
return S.suspend(() =>
|
|
2504
|
+
S.Struct({
|
|
2505
|
+
max_unavailable: S.optional(S.Number),
|
|
2506
|
+
max_surge: S.optional(S.Number),
|
|
2507
|
+
}),
|
|
2508
|
+
).annotate({ identifier: "PoolUpgradePolicy" });
|
|
2509
|
+
case 1:
|
|
2510
|
+
return S.suspend(() =>
|
|
2511
|
+
S.Struct({
|
|
2512
|
+
id: S.optional(S.String),
|
|
2513
|
+
cluster_id: S.optional(S.String),
|
|
2514
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
2515
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
2516
|
+
name: S.optional(S.String),
|
|
2517
|
+
status: S.optional(S.String),
|
|
2518
|
+
version: S.optional(S.String),
|
|
2519
|
+
node_type: S.String,
|
|
2520
|
+
autoscaling: S.optional(S.Boolean),
|
|
2521
|
+
size: S.Number,
|
|
2522
|
+
min_size: S.optional(S.Number),
|
|
2523
|
+
max_size: S.optional(S.Number),
|
|
2524
|
+
container_runtime: S.optional(S.String),
|
|
2525
|
+
autohealing: S.optional(S.Boolean),
|
|
2526
|
+
tags: S.optional(__S(40, __c5, 0)),
|
|
2527
|
+
placement_group_id: S.optional(S.NullOr(S.String)),
|
|
2528
|
+
kubelet_args: S.optional(__S(48, __c6, 0)),
|
|
2529
|
+
upgrade_policy: S.optional(__S(200, __c25, 0)),
|
|
2530
|
+
zone: S.optional(S.String),
|
|
2531
|
+
root_volume_type: S.optional(S.String),
|
|
2532
|
+
root_volume_size: S.optional(S.NullOr(S.Number)),
|
|
2533
|
+
public_ip_disabled: S.optional(S.Boolean),
|
|
2534
|
+
security_group_id: S.optional(S.String),
|
|
2535
|
+
labels: S.optional(__S(48, __c6, 0)),
|
|
2536
|
+
taints: S.optional(__S(57, __c7, 1)),
|
|
2537
|
+
startup_taints: S.optional(__S(57, __c7, 1)),
|
|
2538
|
+
private_network_id: S.optional(S.NullOr(S.String)),
|
|
2539
|
+
error_message: S.optional(S.NullOr(S.String)),
|
|
2540
|
+
max_termination_grace_period: S.optional(S.NullOr(S.String)),
|
|
2541
|
+
srn: S.optional(S.String),
|
|
2542
|
+
region: S.optional(S.String),
|
|
2543
|
+
}),
|
|
2544
|
+
).annotate({ identifier: "Pool" });
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
function __c26(j: number): any {
|
|
2548
|
+
switch (j) {
|
|
2549
|
+
case 0:
|
|
2550
|
+
return S.suspend(() =>
|
|
2551
|
+
S.Struct({
|
|
2552
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2553
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2554
|
+
pool_id: S.optional(S.String.pipe(T.Query())),
|
|
2555
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
2556
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2557
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2558
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
2559
|
+
status: S.optional(S.String.pipe(T.Query())),
|
|
2560
|
+
}).pipe(
|
|
2561
|
+
T.Http({
|
|
2562
|
+
method: "GET",
|
|
2563
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/nodes",
|
|
2564
|
+
code: 200,
|
|
2565
|
+
baseUrl: "https://api.scaleway.com",
|
|
2566
|
+
}),
|
|
2567
|
+
),
|
|
2568
|
+
).annotate({ identifier: "ListNodesRequest" });
|
|
2569
|
+
case 1:
|
|
2570
|
+
return S.Array(__S(368, __c46, 0));
|
|
2571
|
+
case 2:
|
|
2572
|
+
return S.suspend(() =>
|
|
2573
|
+
S.Struct({
|
|
2574
|
+
total_count: S.optional(S.Number),
|
|
2575
|
+
nodes: __S(209, __c26, 1),
|
|
2576
|
+
}),
|
|
2577
|
+
).annotate({ identifier: "ListNodesResponse" });
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
function __c27(j: number): any {
|
|
2581
|
+
switch (j) {
|
|
2582
|
+
case 0:
|
|
2583
|
+
return S.suspend(() =>
|
|
2584
|
+
S.Struct({
|
|
2585
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2586
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2587
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
2588
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2589
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2590
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
2591
|
+
status: S.optional(S.String.pipe(T.Query())),
|
|
2592
|
+
}).pipe(
|
|
2593
|
+
T.Http({
|
|
2594
|
+
method: "GET",
|
|
2595
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/pools",
|
|
2596
|
+
code: 200,
|
|
2597
|
+
baseUrl: "https://api.scaleway.com",
|
|
2598
|
+
}),
|
|
2599
|
+
),
|
|
2600
|
+
).annotate({ identifier: "ListPoolsRequest" });
|
|
2601
|
+
case 1:
|
|
2602
|
+
return S.Array(__S(201, __c25, 1));
|
|
2603
|
+
case 2:
|
|
2604
|
+
return S.suspend(() =>
|
|
2605
|
+
S.Struct({
|
|
2606
|
+
total_count: S.optional(S.Number),
|
|
2607
|
+
pools: __S(217, __c27, 1),
|
|
2608
|
+
}),
|
|
2609
|
+
).annotate({ identifier: "ListPoolsResponse" });
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
function __c28(j: number): any {
|
|
2613
|
+
switch (j) {
|
|
2614
|
+
case 0:
|
|
2615
|
+
return S.suspend(() =>
|
|
2616
|
+
S.Struct({
|
|
2617
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2618
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2619
|
+
}).pipe(
|
|
2620
|
+
T.Http({
|
|
2621
|
+
method: "GET",
|
|
2622
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}/user-data",
|
|
2623
|
+
code: 200,
|
|
2624
|
+
baseUrl: "https://api.scaleway.com",
|
|
2625
|
+
}),
|
|
2626
|
+
),
|
|
2627
|
+
).annotate({ identifier: "ListUserDataRequest" });
|
|
2628
|
+
case 1:
|
|
2629
|
+
return S.suspend(() =>
|
|
2630
|
+
S.Struct({
|
|
2631
|
+
key: S.optional(S.String),
|
|
2632
|
+
}),
|
|
2633
|
+
).annotate({ identifier: "UserDataSummary" });
|
|
2634
|
+
case 2:
|
|
2635
|
+
return S.Array(__S(225, __c28, 1));
|
|
2636
|
+
case 3:
|
|
2637
|
+
return S.suspend(() =>
|
|
2638
|
+
S.Struct({
|
|
2639
|
+
user_data: S.optional(__S(226, __c28, 2)),
|
|
2640
|
+
}),
|
|
2641
|
+
).annotate({ identifier: "ListUserDataResponse" });
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
function __c29(j: number): any {
|
|
2645
|
+
switch (j) {
|
|
2646
|
+
case 0:
|
|
2647
|
+
return S.suspend(() =>
|
|
2648
|
+
S.Struct({
|
|
2649
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2650
|
+
}).pipe(
|
|
2651
|
+
T.Http({
|
|
2652
|
+
method: "GET",
|
|
2653
|
+
uri: "/k8s/v1/regions/{region}/versions",
|
|
2654
|
+
code: 200,
|
|
2655
|
+
baseUrl: "https://api.scaleway.com",
|
|
2656
|
+
}),
|
|
2657
|
+
),
|
|
2658
|
+
).annotate({ identifier: "ListVersionsRequest" });
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
function __c30(j: number): any {
|
|
2662
|
+
switch (j) {
|
|
2663
|
+
case 0:
|
|
2664
|
+
return S.suspend(() =>
|
|
2665
|
+
S.Struct({
|
|
2666
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2667
|
+
node_id: S.String.pipe(T.Label()),
|
|
2668
|
+
}).pipe(
|
|
2669
|
+
T.Http({
|
|
2670
|
+
method: "POST",
|
|
2671
|
+
uri: "/k8s/v1/regions/{region}/nodes/{node_id}/reboot",
|
|
2672
|
+
code: 200,
|
|
2673
|
+
baseUrl: "https://api.scaleway.com",
|
|
2674
|
+
}),
|
|
2675
|
+
),
|
|
2676
|
+
).annotate({ identifier: "RebootNodeRequest" });
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
function __c31(j: number): any {
|
|
2680
|
+
switch (j) {
|
|
2681
|
+
case 0:
|
|
2682
|
+
return S.suspend(() =>
|
|
2683
|
+
S.Struct({
|
|
2684
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2685
|
+
node_id: S.String.pipe(T.Label()),
|
|
2686
|
+
}).pipe(
|
|
2687
|
+
T.Http({
|
|
2688
|
+
method: "POST",
|
|
2689
|
+
uri: "/k8s/v1/regions/{region}/nodes/{node_id}/replace",
|
|
2690
|
+
code: 200,
|
|
2691
|
+
baseUrl: "https://api.scaleway.com",
|
|
2692
|
+
}),
|
|
2693
|
+
),
|
|
2694
|
+
).annotate({ identifier: "ReplaceNodeRequest" });
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
function __c32(j: number): any {
|
|
2698
|
+
switch (j) {
|
|
2699
|
+
case 0:
|
|
2700
|
+
return S.suspend(() =>
|
|
2701
|
+
S.Struct({
|
|
2702
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2703
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2704
|
+
}).pipe(
|
|
2705
|
+
T.Http({
|
|
2706
|
+
method: "POST",
|
|
2707
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/reset-admin-token",
|
|
2708
|
+
code: 200,
|
|
2709
|
+
baseUrl: "https://api.scaleway.com",
|
|
2710
|
+
}),
|
|
2711
|
+
),
|
|
2712
|
+
).annotate({ identifier: "ResetClusterAdminTokenRequest" });
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
function __c33(j: number): any {
|
|
2716
|
+
switch (j) {
|
|
2717
|
+
case 0:
|
|
2718
|
+
return S.suspend(() =>
|
|
2719
|
+
S.Struct({
|
|
2720
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2721
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2722
|
+
acls: S.optional(__S(17, __c2, 1)),
|
|
2723
|
+
}).pipe(
|
|
2724
|
+
T.Http({
|
|
2725
|
+
method: "PUT",
|
|
2726
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/acls",
|
|
2727
|
+
code: 200,
|
|
2728
|
+
baseUrl: "https://api.scaleway.com",
|
|
2729
|
+
}),
|
|
2730
|
+
),
|
|
2731
|
+
).annotate({ identifier: "SetClusterACLRulesRequest" });
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
function __c34(j: number): any {
|
|
2735
|
+
switch (j) {
|
|
2736
|
+
case 0:
|
|
2737
|
+
return S.suspend(() =>
|
|
2738
|
+
S.Struct({
|
|
2739
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2740
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2741
|
+
type: S.String,
|
|
2742
|
+
}).pipe(
|
|
2743
|
+
T.Http({
|
|
2744
|
+
method: "POST",
|
|
2745
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/set-type",
|
|
2746
|
+
code: 200,
|
|
2747
|
+
baseUrl: "https://api.scaleway.com",
|
|
2748
|
+
}),
|
|
2749
|
+
),
|
|
2750
|
+
).annotate({ identifier: "SetClusterTypeRequest" });
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
function __c35(j: number): any {
|
|
2754
|
+
switch (j) {
|
|
2755
|
+
case 0:
|
|
2756
|
+
return S.suspend(() =>
|
|
2757
|
+
S.Struct({
|
|
2758
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2759
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2760
|
+
labels: S.optional(__S(48, __c6, 0)),
|
|
2761
|
+
}).pipe(
|
|
2762
|
+
T.Http({
|
|
2763
|
+
method: "PUT",
|
|
2764
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}/set-labels",
|
|
2765
|
+
code: 200,
|
|
2766
|
+
baseUrl: "https://api.scaleway.com",
|
|
2767
|
+
}),
|
|
2768
|
+
),
|
|
2769
|
+
).annotate({ identifier: "SetPoolLabelsRequest" });
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
function __c36(j: number): any {
|
|
2773
|
+
switch (j) {
|
|
2774
|
+
case 0:
|
|
2775
|
+
return S.suspend(() =>
|
|
2776
|
+
S.Struct({
|
|
2777
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2778
|
+
acl_id: S.String.pipe(T.Label()),
|
|
2779
|
+
}).pipe(
|
|
2780
|
+
T.Http({
|
|
2781
|
+
method: "DELETE",
|
|
2782
|
+
uri: "/k8s/v1/regions/{region}/acls/{acl_id}",
|
|
2783
|
+
code: 200,
|
|
2784
|
+
baseUrl: "https://api.scaleway.com",
|
|
2785
|
+
}),
|
|
2786
|
+
),
|
|
2787
|
+
).annotate({ identifier: "DeleteACLRuleRequest" });
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
function __c37(j: number): any {
|
|
2791
|
+
switch (j) {
|
|
2792
|
+
case 0:
|
|
2793
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteACLRuleResponse" });
|
|
2794
|
+
}
|
|
2795
|
+
}
|
|
2796
|
+
function __c38(j: number): any {
|
|
2797
|
+
switch (j) {
|
|
2798
|
+
case 0:
|
|
2799
|
+
return S.suspend(() =>
|
|
2800
|
+
S.Struct({
|
|
2801
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2802
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2803
|
+
startup_taints: S.optional(__S(57, __c7, 1)),
|
|
2804
|
+
}).pipe(
|
|
2805
|
+
T.Http({
|
|
2806
|
+
method: "PUT",
|
|
2807
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}/set-startup-taints",
|
|
2808
|
+
code: 200,
|
|
2809
|
+
baseUrl: "https://api.scaleway.com",
|
|
2810
|
+
}),
|
|
2811
|
+
),
|
|
2812
|
+
).annotate({ identifier: "SetPoolStartupTaintsRequest" });
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
function __c39(j: number): any {
|
|
2816
|
+
switch (j) {
|
|
2817
|
+
case 0:
|
|
2818
|
+
return S.suspend(() =>
|
|
2819
|
+
S.Struct({
|
|
2820
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2821
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2822
|
+
taints: S.optional(__S(57, __c7, 1)),
|
|
2823
|
+
}).pipe(
|
|
2824
|
+
T.Http({
|
|
2825
|
+
method: "PUT",
|
|
2826
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}/set-taints",
|
|
2827
|
+
code: 200,
|
|
2828
|
+
baseUrl: "https://api.scaleway.com",
|
|
2829
|
+
}),
|
|
2830
|
+
),
|
|
2831
|
+
).annotate({ identifier: "SetPoolTaintsRequest" });
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
function __c40(j: number): any {
|
|
2835
|
+
switch (j) {
|
|
2836
|
+
case 0:
|
|
2837
|
+
return S.suspend(() =>
|
|
2838
|
+
S.Struct({
|
|
2839
|
+
enable: S.optional(S.NullOr(S.Boolean)),
|
|
2840
|
+
maintenance_window: S.optional(__S(80, __c10, 0)),
|
|
2841
|
+
}),
|
|
2842
|
+
).annotate({ identifier: "UpdateClusterRequestAutoUpgrade" });
|
|
2843
|
+
case 1:
|
|
2844
|
+
return S.suspend(() =>
|
|
2845
|
+
S.Struct({
|
|
2846
|
+
issuer_url: S.optional(S.NullOr(S.String)),
|
|
2847
|
+
client_id: S.optional(S.NullOr(S.String)),
|
|
2848
|
+
username_claim: S.optional(S.NullOr(S.String)),
|
|
2849
|
+
username_prefix: S.optional(S.NullOr(S.String)),
|
|
2850
|
+
groups_claim: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
2851
|
+
groups_prefix: S.optional(S.NullOr(S.String)),
|
|
2852
|
+
required_claim: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
2853
|
+
}),
|
|
2854
|
+
).annotate({ identifier: "UpdateClusterRequestOpenIDConnectConfig" });
|
|
2855
|
+
case 2:
|
|
2856
|
+
return S.suspend(() =>
|
|
2857
|
+
S.Struct({
|
|
2858
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2859
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2860
|
+
name: S.optional(S.NullOr(S.String)),
|
|
2861
|
+
description: S.optional(S.NullOr(S.String)),
|
|
2862
|
+
tags: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
2863
|
+
autoscaler_config: S.optional(__S(64, __c8, 0)),
|
|
2864
|
+
auto_upgrade: S.optional(__S(320, __c40, 0)),
|
|
2865
|
+
feature_gates: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
2866
|
+
admission_plugins: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
2867
|
+
open_id_connect_config: S.optional(__S(321, __c40, 1)),
|
|
2868
|
+
apiserver_cert_sans: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
2869
|
+
}).pipe(
|
|
2870
|
+
T.Http({
|
|
2871
|
+
method: "PATCH",
|
|
2872
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}",
|
|
2873
|
+
code: 200,
|
|
2874
|
+
baseUrl: "https://api.scaleway.com",
|
|
2875
|
+
}),
|
|
2876
|
+
),
|
|
2877
|
+
).annotate({ identifier: "UpdateClusterRequest" });
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
function __c41(j: number): any {
|
|
2881
|
+
switch (j) {
|
|
2882
|
+
case 0:
|
|
2883
|
+
return S.suspend(() =>
|
|
2884
|
+
S.Struct({
|
|
2885
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2886
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2887
|
+
autoscaling: S.optional(S.NullOr(S.Boolean)),
|
|
2888
|
+
size: S.optional(S.NullOr(S.Number)),
|
|
2889
|
+
min_size: S.optional(S.NullOr(S.Number)),
|
|
2890
|
+
max_size: S.optional(S.NullOr(S.Number)),
|
|
2891
|
+
autohealing: S.optional(S.NullOr(S.Boolean)),
|
|
2892
|
+
tags: S.optional(S.NullOr(__S(72, __c9, 0))),
|
|
2893
|
+
kubelet_args: S.optional(S.NullOr(__S(48, __c6, 0))),
|
|
2894
|
+
upgrade_policy: S.optional(__S(32, __c4, 0)),
|
|
2895
|
+
security_group_id: S.optional(S.NullOr(S.String)),
|
|
2896
|
+
max_termination_grace_period: S.optional(S.NullOr(S.String)),
|
|
2897
|
+
}).pipe(
|
|
2898
|
+
T.Http({
|
|
2899
|
+
method: "PATCH",
|
|
2900
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}",
|
|
2901
|
+
code: 200,
|
|
2902
|
+
baseUrl: "https://api.scaleway.com",
|
|
2903
|
+
}),
|
|
2904
|
+
),
|
|
2905
|
+
).annotate({ identifier: "UpdatePoolRequest" });
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2908
|
+
function __c42(j: number): any {
|
|
2909
|
+
switch (j) {
|
|
2910
|
+
case 0:
|
|
2911
|
+
return S.suspend(() =>
|
|
2912
|
+
S.Struct({
|
|
2913
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2914
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2915
|
+
version: S.String,
|
|
2916
|
+
upgrade_pools: S.optional(S.Boolean),
|
|
2917
|
+
}).pipe(
|
|
2918
|
+
T.Http({
|
|
2919
|
+
method: "POST",
|
|
2920
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/upgrade",
|
|
2921
|
+
code: 200,
|
|
2922
|
+
baseUrl: "https://api.scaleway.com",
|
|
2923
|
+
}),
|
|
2924
|
+
),
|
|
2925
|
+
).annotate({ identifier: "UpgradeClusterRequest" });
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
function __c43(j: number): any {
|
|
2929
|
+
switch (j) {
|
|
2930
|
+
case 0:
|
|
2931
|
+
return S.suspend(() =>
|
|
2932
|
+
S.Struct({
|
|
2933
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2934
|
+
pool_id: S.String.pipe(T.Label()),
|
|
2935
|
+
version: S.String,
|
|
2936
|
+
}).pipe(
|
|
2937
|
+
T.Http({
|
|
2938
|
+
method: "POST",
|
|
2939
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}/upgrade",
|
|
2940
|
+
code: 200,
|
|
2941
|
+
baseUrl: "https://api.scaleway.com",
|
|
2942
|
+
}),
|
|
2943
|
+
),
|
|
2944
|
+
).annotate({ identifier: "UpgradePoolRequest" });
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
function __c44(j: number): any {
|
|
2948
|
+
switch (j) {
|
|
2949
|
+
case 0:
|
|
2950
|
+
return S.suspend(() =>
|
|
2951
|
+
S.Struct({
|
|
2952
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2953
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
2954
|
+
with_additional_resources: S.Boolean.pipe(T.Query()),
|
|
2955
|
+
}).pipe(
|
|
2956
|
+
T.Http({
|
|
2957
|
+
method: "DELETE",
|
|
2958
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}",
|
|
2959
|
+
code: 200,
|
|
2960
|
+
baseUrl: "https://api.scaleway.com",
|
|
2961
|
+
}),
|
|
2962
|
+
),
|
|
2963
|
+
).annotate({ identifier: "DeleteClusterRequest" });
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
function __c45(j: number): any {
|
|
2967
|
+
switch (j) {
|
|
2968
|
+
case 0:
|
|
2969
|
+
return S.suspend(() =>
|
|
2970
|
+
S.Struct({
|
|
2971
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
2972
|
+
node_id: S.String.pipe(T.Label()),
|
|
2973
|
+
skip_drain: S.Boolean.pipe(T.Query()),
|
|
2974
|
+
}).pipe(
|
|
2975
|
+
T.Http({
|
|
2976
|
+
method: "DELETE",
|
|
2977
|
+
uri: "/k8s/v1/regions/{region}/nodes/{node_id}",
|
|
2978
|
+
code: 200,
|
|
2979
|
+
baseUrl: "https://api.scaleway.com",
|
|
2980
|
+
}),
|
|
2981
|
+
),
|
|
2982
|
+
).annotate({ identifier: "DeleteNodeRequest" });
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
function __c46(j: number): any {
|
|
2986
|
+
switch (j) {
|
|
2987
|
+
case 0:
|
|
2988
|
+
return S.suspend(() =>
|
|
2989
|
+
S.Struct({
|
|
2990
|
+
id: S.optional(S.String),
|
|
2991
|
+
srn: S.optional(S.String),
|
|
2992
|
+
pool_id: S.optional(S.String),
|
|
2993
|
+
cluster_id: S.optional(S.String),
|
|
2994
|
+
provider_id: S.optional(S.String),
|
|
2995
|
+
region: S.optional(S.String),
|
|
2996
|
+
name: S.optional(S.String),
|
|
2997
|
+
status: S.optional(S.String),
|
|
2998
|
+
error_message: S.optional(S.NullOr(S.String)),
|
|
2999
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
3000
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
3001
|
+
}),
|
|
3002
|
+
).annotate({ identifier: "Node" });
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
function __c47(j: number): any {
|
|
3006
|
+
switch (j) {
|
|
3007
|
+
case 0:
|
|
3008
|
+
return S.suspend(() =>
|
|
3009
|
+
S.Struct({
|
|
3010
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
3011
|
+
pool_id: S.String.pipe(T.Label()),
|
|
3012
|
+
}).pipe(
|
|
3013
|
+
T.Http({
|
|
3014
|
+
method: "DELETE",
|
|
3015
|
+
uri: "/k8s/v1/regions/{region}/pools/{pool_id}",
|
|
3016
|
+
code: 200,
|
|
3017
|
+
baseUrl: "https://api.scaleway.com",
|
|
3018
|
+
}),
|
|
3019
|
+
),
|
|
3020
|
+
).annotate({ identifier: "DeletePoolRequest" });
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
function __c48(j: number): any {
|
|
3024
|
+
switch (j) {
|
|
3025
|
+
case 0:
|
|
3026
|
+
return S.suspend(() =>
|
|
3027
|
+
S.Struct({
|
|
3028
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
3029
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
3030
|
+
}).pipe(
|
|
3031
|
+
T.Http({
|
|
3032
|
+
method: "GET",
|
|
3033
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}",
|
|
3034
|
+
code: 200,
|
|
3035
|
+
baseUrl: "https://api.scaleway.com",
|
|
3036
|
+
}),
|
|
3037
|
+
),
|
|
3038
|
+
).annotate({ identifier: "GetClusterRequest" });
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
function __c49(j: number): any {
|
|
3042
|
+
switch (j) {
|
|
3043
|
+
case 0:
|
|
3044
|
+
return S.suspend(() =>
|
|
3045
|
+
S.Struct({
|
|
3046
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
3047
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
3048
|
+
redacted: S.optional(S.Boolean.pipe(T.Query())),
|
|
3049
|
+
endpoint: S.optional(S.String.pipe(T.Query())),
|
|
3050
|
+
}).pipe(
|
|
3051
|
+
T.Http({
|
|
3052
|
+
method: "GET",
|
|
3053
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/kubeconfig",
|
|
3054
|
+
code: 200,
|
|
3055
|
+
baseUrl: "https://api.scaleway.com",
|
|
3056
|
+
}),
|
|
3057
|
+
),
|
|
3058
|
+
).annotate({ identifier: "GetClusterKubeConfigRequest" });
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
function __c50(j: number): any {
|
|
3062
|
+
switch (j) {
|
|
3063
|
+
case 0:
|
|
3064
|
+
return S.suspend(() =>
|
|
3065
|
+
S.Struct({
|
|
3066
|
+
name: S.optional(S.String),
|
|
3067
|
+
content_type: S.optional(S.String),
|
|
3068
|
+
content: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
3069
|
+
}),
|
|
3070
|
+
).annotate({ identifier: "ScalewayStdFile" });
|
|
3071
|
+
}
|
|
3072
|
+
}
|
|
3073
|
+
function __c51(j: number): any {
|
|
3074
|
+
switch (j) {
|
|
3075
|
+
case 0:
|
|
3076
|
+
return S.suspend(() =>
|
|
3077
|
+
S.Struct({
|
|
3078
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
3079
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
3080
|
+
redacted: S.optional(S.Boolean.pipe(T.Query())),
|
|
3081
|
+
endpoint: S.optional(S.String.pipe(T.Query())),
|
|
3082
|
+
}).pipe(
|
|
3083
|
+
T.Http({
|
|
3084
|
+
method: "GET",
|
|
3085
|
+
uri: "/k8s/v1/regions/{region}/clusters/{cluster_id}/kubeconfig",
|
|
3086
|
+
code: 200,
|
|
3087
|
+
baseUrl: "https://api.scaleway.com",
|
|
3088
|
+
rawDownload: true,
|
|
3089
|
+
}),
|
|
3090
|
+
),
|
|
3091
|
+
).annotate({ identifier: "GetClusterKubeConfigRawRequest" });
|
|
3092
|
+
}
|
|
3093
|
+
}
|
|
3094
|
+
function __c52(j: number): any {
|
|
3095
|
+
switch (j) {
|
|
3096
|
+
case 0:
|
|
3097
|
+
return S.suspend(() =>
|
|
3098
|
+
S.Struct({
|
|
3099
|
+
body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
|
|
3100
|
+
contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
|
|
3101
|
+
}),
|
|
3102
|
+
).annotate({ identifier: "GetClusterKubeConfigRawResponse" });
|
|
3103
|
+
}
|
|
3104
|
+
}
|
|
3105
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
3106
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
3107
|
+
return (__s[i] ??= __L.at(f, j));
|
|
3108
|
+
}
|