@distilled.cloud/scaleway 0.0.0 → 1.0.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +640 -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 +1755 -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 +479 -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 +947 -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 +2137 -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 +5395 -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 +1113 -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,1275 @@
|
|
|
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: "KafkaV1alpha1",
|
|
26
|
+
labels: "scaleway",
|
|
27
|
+
propagate: "w3c",
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
export type CreateClusterRequestRegion = "fr-par";
|
|
31
|
+
/** Tags to apply to the Kafka cluster. */
|
|
32
|
+
export type CreateClusterRequestTagsList = Array<string>;
|
|
33
|
+
export type VolumeType = "unknown_type" | "sbs_5k" | "sbs_15k";
|
|
34
|
+
export interface CreateClusterRequestVolumeSpec {
|
|
35
|
+
/** Volume size. (in bytes) */
|
|
36
|
+
size_bytes?: number | undefined;
|
|
37
|
+
/** Type of volume where data is stored. */
|
|
38
|
+
type?: VolumeType | (string & {}) | undefined;
|
|
39
|
+
}
|
|
40
|
+
export interface EndpointSpecPrivateNetworkDetails {
|
|
41
|
+
/** UUID of the Private Network. */
|
|
42
|
+
private_network_id?: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface EndpointSpec {
|
|
45
|
+
/** Precisely one of public_network, private_network can be set. */
|
|
46
|
+
public_network?: unknown | null | undefined;
|
|
47
|
+
/** Precisely one of public_network, private_network can be set. */
|
|
48
|
+
private_network?: EndpointSpecPrivateNetworkDetails | null | undefined;
|
|
49
|
+
}
|
|
50
|
+
/** One or multiple EndpointSpec used to expose your Kafka cluster. */
|
|
51
|
+
export type CreateClusterRequestEndpointsList = Array<EndpointSpec>;
|
|
52
|
+
export interface ClusterMonoAZDetails {
|
|
53
|
+
/** Zone is the zone on which the cluster nodes are deployed. */
|
|
54
|
+
zone?: string | null | undefined;
|
|
55
|
+
}
|
|
56
|
+
export interface CreateClusterRequest {
|
|
57
|
+
/** The region you want to target */
|
|
58
|
+
region?: CreateClusterRequestRegion | (string & {}) | undefined;
|
|
59
|
+
/** The ID of the Project in which the Kafka cluster will be created. */
|
|
60
|
+
project_id?: string | undefined;
|
|
61
|
+
/** Name of the Kafka cluster. */
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
/** Version of Kafka. */
|
|
64
|
+
version: string;
|
|
65
|
+
/** Tags to apply to the Kafka cluster. */
|
|
66
|
+
tags?: CreateClusterRequestTagsList | undefined;
|
|
67
|
+
/** Number of nodes to use for the Kafka cluster. */
|
|
68
|
+
node_amount: number;
|
|
69
|
+
/** Type of node to use for the Kafka cluster. */
|
|
70
|
+
node_type: string;
|
|
71
|
+
/** Kafka volume information. */
|
|
72
|
+
volume?: CreateClusterRequestVolumeSpec | undefined;
|
|
73
|
+
/** One or multiple EndpointSpec used to expose your Kafka cluster. */
|
|
74
|
+
endpoints?: CreateClusterRequestEndpointsList | undefined;
|
|
75
|
+
/** Username for the kafka user. */
|
|
76
|
+
user_name?: string | null | undefined;
|
|
77
|
+
/** Password for the kafka user. */
|
|
78
|
+
password?: string | Redacted.Redacted<string> | null | undefined;
|
|
79
|
+
/** MultiAZ tell the cluster is deployed on multiple availability zones in the region. Precisely one of multi_az, mono_az can be set. */
|
|
80
|
+
multi_az?: unknown | null | undefined;
|
|
81
|
+
/** MonoAZ details. Precisely one of multi_az, mono_az can be set. */
|
|
82
|
+
mono_az?: ClusterMonoAZDetails | null | undefined;
|
|
83
|
+
}
|
|
84
|
+
export type ClusterStatus =
|
|
85
|
+
| "unknown_status"
|
|
86
|
+
| "ready"
|
|
87
|
+
| "creating"
|
|
88
|
+
| "configuring"
|
|
89
|
+
| "deleting"
|
|
90
|
+
| "error"
|
|
91
|
+
| "locked"
|
|
92
|
+
| "stopped"
|
|
93
|
+
| "upgrading";
|
|
94
|
+
/** List of tags applied to the Kafka cluster. */
|
|
95
|
+
export type ClusterTagsList = Array<string>;
|
|
96
|
+
export interface ClusterSetting {
|
|
97
|
+
/** Name of the setting. */
|
|
98
|
+
name?: string | undefined;
|
|
99
|
+
/** Boolean value of the setting. Precisely one of bool_value, string_value, int_value, float_value can be set. */
|
|
100
|
+
bool_value?: boolean | null | undefined;
|
|
101
|
+
/** String value of the setting. Precisely one of bool_value, string_value, int_value, float_value can be set. */
|
|
102
|
+
string_value?: string | null | undefined;
|
|
103
|
+
/** Integer value of the setting. Precisely one of bool_value, string_value, int_value, float_value can be set. */
|
|
104
|
+
int_value?: number | null | undefined;
|
|
105
|
+
/** Float value of the setting. Precisely one of bool_value, string_value, int_value, float_value can be set. */
|
|
106
|
+
float_value?: number | null | undefined;
|
|
107
|
+
}
|
|
108
|
+
/** Advanced settings of the Kafka cluster. */
|
|
109
|
+
export type ClusterSettingsList = Array<ClusterSetting>;
|
|
110
|
+
export interface Volume {
|
|
111
|
+
/** Type of volume where data is stored. */
|
|
112
|
+
type?: VolumeType | undefined;
|
|
113
|
+
/** Volume size. (in bytes) */
|
|
114
|
+
size_bytes?: number | undefined;
|
|
115
|
+
}
|
|
116
|
+
/** List of DNS records of the endpoint. */
|
|
117
|
+
export type EndpointDnsRecordsList = Array<string>;
|
|
118
|
+
export interface EndpointPrivateNetworkDetails {
|
|
119
|
+
/** UUID of the Private Network. (UUID format) */
|
|
120
|
+
private_network_id?: string | undefined;
|
|
121
|
+
}
|
|
122
|
+
export interface Endpoint {
|
|
123
|
+
/** UUID of the endpoint. (UUID format) */
|
|
124
|
+
id?: string | undefined;
|
|
125
|
+
/** List of DNS records of the endpoint. */
|
|
126
|
+
dns_records?: EndpointDnsRecordsList | undefined;
|
|
127
|
+
/** TCP port of the endpoint. */
|
|
128
|
+
port?: number | undefined;
|
|
129
|
+
/** Private Network endpoint details. Precisely one of private_network, public_network can be set. */
|
|
130
|
+
private_network?: EndpointPrivateNetworkDetails | null | undefined;
|
|
131
|
+
/** Public endpoint details. Precisely one of private_network, public_network can be set. */
|
|
132
|
+
public_network?: unknown | null | undefined;
|
|
133
|
+
/** SRN of the endpoint. */
|
|
134
|
+
srn?: string | undefined;
|
|
135
|
+
/** Region of the endpoint. */
|
|
136
|
+
region?: string | undefined;
|
|
137
|
+
}
|
|
138
|
+
/** List of Kafka cluster endpoints. */
|
|
139
|
+
export type ClusterEndpointsList = Array<Endpoint>;
|
|
140
|
+
export interface Cluster {
|
|
141
|
+
/** UUID of the Kafka cluster. (UUID format) */
|
|
142
|
+
id?: string | undefined;
|
|
143
|
+
/** Name of the Kafka cluster. */
|
|
144
|
+
name?: string | undefined;
|
|
145
|
+
/** Project ID the Kafka cluster belongs to. (UUID format) */
|
|
146
|
+
project_id?: string | undefined;
|
|
147
|
+
/** Organisation ID the Kafka cluster belongs to. (UUID format) */
|
|
148
|
+
organization_id?: string | undefined;
|
|
149
|
+
/** Status of the Kafka cluster. */
|
|
150
|
+
status?: ClusterStatus | undefined;
|
|
151
|
+
/** Kafka version of the Kafka cluster. */
|
|
152
|
+
version?: string | undefined;
|
|
153
|
+
/** List of tags applied to the Kafka cluster. */
|
|
154
|
+
tags?: ClusterTagsList | undefined;
|
|
155
|
+
/** Advanced settings of the Kafka cluster. */
|
|
156
|
+
settings?: ClusterSettingsList | undefined;
|
|
157
|
+
/** Number of nodes in Kafka cluster. */
|
|
158
|
+
node_amount?: number | undefined;
|
|
159
|
+
/** Node type of the Kafka cluster. */
|
|
160
|
+
node_type?: string | undefined;
|
|
161
|
+
/** Volumes of the Kafka cluster. */
|
|
162
|
+
volume?: Volume | undefined;
|
|
163
|
+
/** List of Kafka cluster endpoints. */
|
|
164
|
+
endpoints?: ClusterEndpointsList | undefined;
|
|
165
|
+
/** Creation date (must follow the ISO 8601 format). (RFC 3339 format) */
|
|
166
|
+
created_at?: string | null | undefined;
|
|
167
|
+
/** Last update date (must follow the ISO 8601 format). (RFC 3339 format) */
|
|
168
|
+
updated_at?: string | null | undefined;
|
|
169
|
+
/** Region the Kafka cluster is in. */
|
|
170
|
+
region?: string | undefined;
|
|
171
|
+
/** MultiAZ tell the cluster is deployed on multiple availability zones in the region. Precisely one of multi_az, mono_az can be set. */
|
|
172
|
+
multi_az?: unknown | null | undefined;
|
|
173
|
+
/** MonoAZ details. Precisely one of multi_az, mono_az can be set. */
|
|
174
|
+
mono_az?: ClusterMonoAZDetails | null | undefined;
|
|
175
|
+
/** SRN of the cluster. */
|
|
176
|
+
srn?: string | undefined;
|
|
177
|
+
}
|
|
178
|
+
export type CreateEndpointRequestRegion = "fr-par";
|
|
179
|
+
export interface CreateEndpointRequest {
|
|
180
|
+
/** The region you want to target */
|
|
181
|
+
region?: CreateEndpointRequestRegion | (string & {}) | undefined;
|
|
182
|
+
/** UUID of the Kafka Cluster. */
|
|
183
|
+
cluster_id: string;
|
|
184
|
+
/** Endpoint object (`EndpointSpec`) used to expose your Kafka EndpointSpec. */
|
|
185
|
+
endpoint: EndpointSpec;
|
|
186
|
+
}
|
|
187
|
+
export type DeleteClusterRequestRegion = "fr-par";
|
|
188
|
+
export interface DeleteClusterRequest {
|
|
189
|
+
/** The region you want to target */
|
|
190
|
+
region?: DeleteClusterRequestRegion | (string & {}) | undefined;
|
|
191
|
+
/** UUID of the Kafka Cluster to delete. */
|
|
192
|
+
cluster_id: string;
|
|
193
|
+
}
|
|
194
|
+
export type DeleteEndpointRequestRegion = "fr-par";
|
|
195
|
+
export interface DeleteEndpointRequest {
|
|
196
|
+
/** The region you want to target */
|
|
197
|
+
region?: DeleteEndpointRequestRegion | (string & {}) | undefined;
|
|
198
|
+
/** UUID of the endpoint to delete. */
|
|
199
|
+
endpoint_id: string;
|
|
200
|
+
}
|
|
201
|
+
export interface DeleteEndpointResponse {}
|
|
202
|
+
export type GetClusterRequestRegion = "fr-par";
|
|
203
|
+
export interface GetClusterRequest {
|
|
204
|
+
/** The region you want to target */
|
|
205
|
+
region?: GetClusterRequestRegion | (string & {}) | undefined;
|
|
206
|
+
/** UUID of the Kafka Cluster. */
|
|
207
|
+
cluster_id: string;
|
|
208
|
+
}
|
|
209
|
+
export type GetClusterCertificateAuthorityRequestRegion = "fr-par";
|
|
210
|
+
export interface GetClusterCertificateAuthorityRequest {
|
|
211
|
+
/** The region you want to target */
|
|
212
|
+
region?: GetClusterCertificateAuthorityRequestRegion | (string & {}) | undefined;
|
|
213
|
+
/** UUID of the Kafka Cluster. */
|
|
214
|
+
cluster_id: string;
|
|
215
|
+
}
|
|
216
|
+
export interface ScalewayStdFile {
|
|
217
|
+
name?: string | undefined;
|
|
218
|
+
content_type?: string | undefined;
|
|
219
|
+
content?: string | undefined;
|
|
220
|
+
}
|
|
221
|
+
export interface GetClusterCertificateAuthorityRawRequest {
|
|
222
|
+
/** The region you want to target */
|
|
223
|
+
region?: GetClusterCertificateAuthorityRequestRegion | (string & {}) | undefined;
|
|
224
|
+
/** UUID of the Kafka Cluster. */
|
|
225
|
+
cluster_id: string;
|
|
226
|
+
}
|
|
227
|
+
export interface GetClusterCertificateAuthorityRawResponse {
|
|
228
|
+
body: BinaryStream;
|
|
229
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
230
|
+
contentType?: string | undefined;
|
|
231
|
+
}
|
|
232
|
+
export type ListClustersRequestRegion = "fr-par";
|
|
233
|
+
export type ListClustersRequestTagsList = Array<string>;
|
|
234
|
+
export type ListClustersRequestOrderBy =
|
|
235
|
+
| "created_at_asc"
|
|
236
|
+
| "created_at_desc"
|
|
237
|
+
| "name_asc"
|
|
238
|
+
| "name_desc"
|
|
239
|
+
| "status_asc"
|
|
240
|
+
| "status_desc";
|
|
241
|
+
export interface ListClustersRequest {
|
|
242
|
+
/** The region you want to target */
|
|
243
|
+
region?: ListClustersRequestRegion | (string & {}) | undefined;
|
|
244
|
+
/** List Kafka cluster with a given tag. */
|
|
245
|
+
tags?: ListClustersRequestTagsList | undefined;
|
|
246
|
+
/** Lists Kafka clusters that match a name pattern. */
|
|
247
|
+
name?: string | undefined;
|
|
248
|
+
/** Criteria to use when ordering Kafka cluster listings. */
|
|
249
|
+
order_by?: ListClustersRequestOrderBy | (string & {}) | undefined;
|
|
250
|
+
/** Organization ID of the Kafka cluster. */
|
|
251
|
+
organization_id?: string | undefined;
|
|
252
|
+
/** Project ID. */
|
|
253
|
+
project_id?: string | undefined;
|
|
254
|
+
page?: number | undefined;
|
|
255
|
+
page_size?: number | undefined;
|
|
256
|
+
}
|
|
257
|
+
/** List of all Kafka cluster available in an Organization or Project. */
|
|
258
|
+
export type ListClustersResponseClustersList = Array<Cluster>;
|
|
259
|
+
export interface ListClustersResponse {
|
|
260
|
+
/** List of all Kafka cluster available in an Organization or Project. */
|
|
261
|
+
clusters: ListClustersResponseClustersList;
|
|
262
|
+
/** Total count of Kafka cluster available in an Organization or Project. */
|
|
263
|
+
total_count?: number | undefined;
|
|
264
|
+
}
|
|
265
|
+
export type ListNodeTypesRequestRegion = "fr-par";
|
|
266
|
+
export interface ListNodeTypesRequest {
|
|
267
|
+
/** The region you want to target */
|
|
268
|
+
region?: ListNodeTypesRequestRegion | (string & {}) | undefined;
|
|
269
|
+
/** Defines whether or not to include disabled types. */
|
|
270
|
+
include_disabled_types?: boolean | undefined;
|
|
271
|
+
page?: number | undefined;
|
|
272
|
+
page_size?: number | undefined;
|
|
273
|
+
}
|
|
274
|
+
export type NodeTypeStock = "unknown_stock" | "low_stock" | "out_of_stock" | "available";
|
|
275
|
+
export interface NodeTypeVolumeType {
|
|
276
|
+
/** Volume type. */
|
|
277
|
+
type?: VolumeType | undefined;
|
|
278
|
+
/** The description of the volume. */
|
|
279
|
+
description?: string | undefined;
|
|
280
|
+
/** Minimum size required for the volume. (in bytes) */
|
|
281
|
+
min_size_bytes?: number | undefined;
|
|
282
|
+
/** Maximum size required for the volume. (in bytes) */
|
|
283
|
+
max_size_bytes?: number | undefined;
|
|
284
|
+
/** Minimum increment level for a Block Storage volume size. (in bytes) */
|
|
285
|
+
chunk_size_bytes?: number | undefined;
|
|
286
|
+
}
|
|
287
|
+
/** Available storage options for the node type. */
|
|
288
|
+
export type NodeTypeAvailableVolumeTypesList = Array<NodeTypeVolumeType>;
|
|
289
|
+
export interface NodeType {
|
|
290
|
+
/** Node type name identifier. */
|
|
291
|
+
name?: string | undefined;
|
|
292
|
+
/** Current stock status for the node type. */
|
|
293
|
+
stock_status?: NodeTypeStock | undefined;
|
|
294
|
+
/** Current specifications of the node type offer. */
|
|
295
|
+
description?: string | undefined;
|
|
296
|
+
/** Number of virtual CPUs of the node type. */
|
|
297
|
+
vcpus?: number | undefined;
|
|
298
|
+
/** Quantity of RAM. (in bytes) */
|
|
299
|
+
memory_bytes?: number | undefined;
|
|
300
|
+
/** Available storage options for the node type. */
|
|
301
|
+
available_volume_types?: NodeTypeAvailableVolumeTypesList | undefined;
|
|
302
|
+
/** Defines whether the node type is currently disabled. */
|
|
303
|
+
disabled?: boolean | undefined;
|
|
304
|
+
/** Defines whether the node type is currently in beta. */
|
|
305
|
+
beta?: boolean | undefined;
|
|
306
|
+
/** Cluster range associated with the node type offer. */
|
|
307
|
+
cluster_range?: string | undefined;
|
|
308
|
+
/** SRN of the node type. */
|
|
309
|
+
srn?: string | undefined;
|
|
310
|
+
/** Region on which the node type is available. */
|
|
311
|
+
region?: string | undefined;
|
|
312
|
+
}
|
|
313
|
+
/** Types of the node. */
|
|
314
|
+
export type ListNodeTypesResponseNodeTypesList = Array<NodeType>;
|
|
315
|
+
export interface ListNodeTypesResponse {
|
|
316
|
+
/** Types of the node. */
|
|
317
|
+
node_types: ListNodeTypesResponseNodeTypesList;
|
|
318
|
+
/** Total count of node types available. */
|
|
319
|
+
total_count?: number | undefined;
|
|
320
|
+
}
|
|
321
|
+
export type ListUsersRequestRegion = "fr-par";
|
|
322
|
+
export type ListUsersRequestOrderBy = "name_asc" | "name_desc";
|
|
323
|
+
export interface ListUsersRequest {
|
|
324
|
+
/** The region you want to target */
|
|
325
|
+
region?: ListUsersRequestRegion | (string & {}) | undefined;
|
|
326
|
+
cluster_id: string;
|
|
327
|
+
page?: number | undefined;
|
|
328
|
+
page_size?: number | undefined;
|
|
329
|
+
order_by?: ListUsersRequestOrderBy | (string & {}) | undefined;
|
|
330
|
+
name?: string | undefined;
|
|
331
|
+
}
|
|
332
|
+
export interface User {
|
|
333
|
+
/** Name of the user. */
|
|
334
|
+
username?: string | undefined;
|
|
335
|
+
/** ID of the user's cluster. */
|
|
336
|
+
cluster_id?: string | undefined;
|
|
337
|
+
/** Region of the cluster associated with the user. */
|
|
338
|
+
region?: string | undefined;
|
|
339
|
+
/** SRN of the user. */
|
|
340
|
+
srn?: string | undefined;
|
|
341
|
+
}
|
|
342
|
+
export type ListUsersResponseUsersList = Array<User>;
|
|
343
|
+
export interface ListUsersResponse {
|
|
344
|
+
users: ListUsersResponseUsersList;
|
|
345
|
+
total_count?: number | undefined;
|
|
346
|
+
}
|
|
347
|
+
export type ListVersionsRequestRegion = "fr-par";
|
|
348
|
+
export interface ListVersionsRequest {
|
|
349
|
+
/** The region you want to target */
|
|
350
|
+
region?: ListVersionsRequestRegion | (string & {}) | undefined;
|
|
351
|
+
/** Kafka version to filter for. */
|
|
352
|
+
version?: string | undefined;
|
|
353
|
+
/** The page number to return, from the paginated results. */
|
|
354
|
+
page?: number | undefined;
|
|
355
|
+
/** The number of items to return. */
|
|
356
|
+
page_size?: number | undefined;
|
|
357
|
+
}
|
|
358
|
+
export interface VersionAvailableSettingBooleanProperty {
|
|
359
|
+
default_value?: boolean | undefined;
|
|
360
|
+
}
|
|
361
|
+
export interface VersionAvailableSettingStringProperty {
|
|
362
|
+
string_constraint?: string | null | undefined;
|
|
363
|
+
default_value?: string | undefined;
|
|
364
|
+
}
|
|
365
|
+
export interface VersionAvailableSettingIntegerProperty {
|
|
366
|
+
min?: number | undefined;
|
|
367
|
+
max?: number | undefined;
|
|
368
|
+
default_value?: number | undefined;
|
|
369
|
+
unit?: string | null | undefined;
|
|
370
|
+
}
|
|
371
|
+
export type VersionAvailableSettingFloatProperty = VersionAvailableSettingIntegerProperty;
|
|
372
|
+
export interface VersionAvailableSetting {
|
|
373
|
+
/** Kafka cluster setting name. */
|
|
374
|
+
name?: string | undefined;
|
|
375
|
+
/** Defines whether this setting can be applied without needing a restart. */
|
|
376
|
+
hot_configurable?: boolean | undefined;
|
|
377
|
+
/** Setting description. */
|
|
378
|
+
description?: string | undefined;
|
|
379
|
+
/** Boolean property, if the setting is a boolean. Precisely one of bool_property, string_property, int_property, float_property can be set. */
|
|
380
|
+
bool_property?: VersionAvailableSettingBooleanProperty | null | undefined;
|
|
381
|
+
/** String property, if the setting is a string. Precisely one of bool_property, string_property, int_property, float_property can be set. */
|
|
382
|
+
string_property?: VersionAvailableSettingStringProperty | null | undefined;
|
|
383
|
+
/** Integer property, if the setting is an integer. Precisely one of bool_property, string_property, int_property, float_property can be set. */
|
|
384
|
+
int_property?: VersionAvailableSettingIntegerProperty | null | undefined;
|
|
385
|
+
/** Float property, if the setting is a float. Precisely one of bool_property, string_property, int_property, float_property can be set. */
|
|
386
|
+
float_property?: VersionAvailableSettingIntegerProperty | null | undefined;
|
|
387
|
+
}
|
|
388
|
+
/** Cluster configuration settings you are able to change for clusters running this version. Each item in `available_settings` describes one configurable cluster setting. */
|
|
389
|
+
export type VersionAvailableSettingsList = Array<VersionAvailableSetting>;
|
|
390
|
+
export interface Version {
|
|
391
|
+
/** Kafka version. */
|
|
392
|
+
version?: string | undefined;
|
|
393
|
+
/** Date of End of Life for the version. (RFC 3339 format) */
|
|
394
|
+
end_of_life_at?: string | null | undefined;
|
|
395
|
+
/** Cluster configuration settings you are able to change for clusters running this version. Each item in `available_settings` describes one configurable cluster setting. */
|
|
396
|
+
available_settings?: VersionAvailableSettingsList | undefined;
|
|
397
|
+
/** SRN of the version. */
|
|
398
|
+
srn?: string | undefined;
|
|
399
|
+
/** Region of the version. */
|
|
400
|
+
region?: string | undefined;
|
|
401
|
+
}
|
|
402
|
+
/** Available Kafka versions. */
|
|
403
|
+
export type ListVersionsResponseVersionsList = Array<Version>;
|
|
404
|
+
export interface ListVersionsResponse {
|
|
405
|
+
/** Available Kafka versions. */
|
|
406
|
+
versions: ListVersionsResponseVersionsList;
|
|
407
|
+
/** Total count of Kafka versions available. */
|
|
408
|
+
total_count?: number | undefined;
|
|
409
|
+
}
|
|
410
|
+
export type RenewClusterCertificateAuthorityRequestRegion = "fr-par";
|
|
411
|
+
export interface RenewClusterCertificateAuthorityRequest {
|
|
412
|
+
/** The region you want to target */
|
|
413
|
+
region?: RenewClusterCertificateAuthorityRequestRegion | (string & {}) | undefined;
|
|
414
|
+
/** UUID of the Kafka Cluster. */
|
|
415
|
+
cluster_id: string;
|
|
416
|
+
}
|
|
417
|
+
export interface RenewClusterCertificateAuthorityResponse {}
|
|
418
|
+
export type UpdateClusterRequestRegion = "fr-par";
|
|
419
|
+
/** Tags of a Kafka Cluster. */
|
|
420
|
+
export type UpdateClusterRequestTagsList = Array<unknown>;
|
|
421
|
+
export interface UpdateClusterRequest {
|
|
422
|
+
/** The region you want to target */
|
|
423
|
+
region?: UpdateClusterRequestRegion | (string & {}) | undefined;
|
|
424
|
+
/** UUID of the Kafka Clusters to update. */
|
|
425
|
+
cluster_id: string;
|
|
426
|
+
/** Name of the Kafka Cluster. */
|
|
427
|
+
name?: string | null | undefined;
|
|
428
|
+
/** Tags of a Kafka Cluster. */
|
|
429
|
+
tags?: UpdateClusterRequestTagsList | null | undefined;
|
|
430
|
+
/** Version of Kafka. */
|
|
431
|
+
version?: string | null | undefined;
|
|
432
|
+
/** New volume size for each broker, can only increase. (in bytes) */
|
|
433
|
+
volume_size_bytes?: number | null | undefined;
|
|
434
|
+
}
|
|
435
|
+
export type UpdateUserRequestRegion = "fr-par";
|
|
436
|
+
export interface UpdateUserRequest {
|
|
437
|
+
/** The region you want to target */
|
|
438
|
+
region?: UpdateUserRequestRegion | (string & {}) | undefined;
|
|
439
|
+
/** ID of the cluster in which to update the user's password. */
|
|
440
|
+
cluster_id: string;
|
|
441
|
+
/** Username of the Kafka cluster user. */
|
|
442
|
+
username: string;
|
|
443
|
+
/** New password for the Kafka cluster user. */
|
|
444
|
+
password?: string | Redacted.Redacted<string> | null | undefined;
|
|
445
|
+
}
|
|
446
|
+
export type CreateClusterError = ScalewayOpError;
|
|
447
|
+
/** Create a Kafka cluster Create a new Kafka cluster. */
|
|
448
|
+
export const createCluster: API.OperationMethod<
|
|
449
|
+
CreateClusterRequest,
|
|
450
|
+
Cluster,
|
|
451
|
+
CreateClusterError,
|
|
452
|
+
ScalewayOpContext
|
|
453
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
454
|
+
input: __S(2, __c0, 2) as any as S.Schema<CreateClusterRequest>,
|
|
455
|
+
output: __S(53, __c3, 5) as any as S.Schema<Cluster>,
|
|
456
|
+
errors: [],
|
|
457
|
+
serviceErrors: ScalewayServiceErrors,
|
|
458
|
+
protocol: ScalewayProtocol,
|
|
459
|
+
retry: Retry.Retry,
|
|
460
|
+
telemetry: TELEMETRY,
|
|
461
|
+
span: "CreateCluster",
|
|
462
|
+
}));
|
|
463
|
+
|
|
464
|
+
export type CreateEndpointError = ScalewayOpError;
|
|
465
|
+
/** Create a new Kafka cluster endpoint Create a new endpoint for a Kafka cluster. You can add `public_network` or `private_network` specifications to the body of the request. Note that currently only `private_network` is supported. */
|
|
466
|
+
export const createEndpoint: API.OperationMethod<
|
|
467
|
+
CreateEndpointRequest,
|
|
468
|
+
Endpoint,
|
|
469
|
+
CreateEndpointError,
|
|
470
|
+
ScalewayOpContext
|
|
471
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
472
|
+
input: __S(64, __c4, 0) as any as S.Schema<CreateEndpointRequest>,
|
|
473
|
+
output: __S(34, __c2, 2) as any as S.Schema<Endpoint>,
|
|
474
|
+
errors: [],
|
|
475
|
+
serviceErrors: ScalewayServiceErrors,
|
|
476
|
+
protocol: ScalewayProtocol,
|
|
477
|
+
retry: Retry.Retry,
|
|
478
|
+
telemetry: TELEMETRY,
|
|
479
|
+
span: "CreateEndpoint",
|
|
480
|
+
}));
|
|
481
|
+
|
|
482
|
+
export type DeleteClusterError = ScalewayOpError;
|
|
483
|
+
/** Delete a Kafka cluster Delete a given Kafka cluster, specified by the `region` and `cluster_id` parameters. Deleting a Kafka cluster is permanent, and cannot be undone. Note that upon deletion all your data will be lost. */
|
|
484
|
+
export const deleteCluster: API.OperationMethod<
|
|
485
|
+
DeleteClusterRequest,
|
|
486
|
+
Cluster,
|
|
487
|
+
DeleteClusterError,
|
|
488
|
+
ScalewayOpContext
|
|
489
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
490
|
+
input: __S(144, __c9, 0) as any as S.Schema<DeleteClusterRequest>,
|
|
491
|
+
output: __S(53, __c3, 5) as any as S.Schema<Cluster>,
|
|
492
|
+
errors: [],
|
|
493
|
+
serviceErrors: ScalewayServiceErrors,
|
|
494
|
+
protocol: ScalewayProtocol,
|
|
495
|
+
retry: Retry.Retry,
|
|
496
|
+
telemetry: TELEMETRY,
|
|
497
|
+
span: "DeleteCluster",
|
|
498
|
+
}));
|
|
499
|
+
|
|
500
|
+
export type DeleteEndpointError = ScalewayOpError;
|
|
501
|
+
/** Delete a Kafka cluster endpoint Delete the endpoint of a Kafka cluster. You must specify the `endpoint_id` parameter of the endpoint you want to delete. Note that you might need to update any environment configurations that point to the deleted endpoint. */
|
|
502
|
+
export const deleteEndpoint: API.OperationMethod<
|
|
503
|
+
DeleteEndpointRequest,
|
|
504
|
+
DeleteEndpointResponse,
|
|
505
|
+
DeleteEndpointError,
|
|
506
|
+
ScalewayOpContext
|
|
507
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
508
|
+
input: __S(160, __c10, 0) as any as S.Schema<DeleteEndpointRequest>,
|
|
509
|
+
output: __S(176, __c11, 0) as any as S.Schema<DeleteEndpointResponse>,
|
|
510
|
+
errors: [],
|
|
511
|
+
serviceErrors: ScalewayServiceErrors,
|
|
512
|
+
protocol: ScalewayProtocol,
|
|
513
|
+
retry: Retry.Retry,
|
|
514
|
+
telemetry: TELEMETRY,
|
|
515
|
+
span: "DeleteEndpoint",
|
|
516
|
+
}));
|
|
517
|
+
|
|
518
|
+
export type GetClusterError = ScalewayOpError;
|
|
519
|
+
/** Get a Kafka cluster Retrieve information about a given Kafka cluster, specified by the `region` and `cluster_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object. */
|
|
520
|
+
export const getCluster: API.OperationMethod<
|
|
521
|
+
GetClusterRequest,
|
|
522
|
+
Cluster,
|
|
523
|
+
GetClusterError,
|
|
524
|
+
ScalewayOpContext
|
|
525
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
526
|
+
input: __S(192, __c12, 0) as any as S.Schema<GetClusterRequest>,
|
|
527
|
+
output: __S(53, __c3, 5) as any as S.Schema<Cluster>,
|
|
528
|
+
errors: [],
|
|
529
|
+
serviceErrors: ScalewayServiceErrors,
|
|
530
|
+
protocol: ScalewayProtocol,
|
|
531
|
+
retry: Retry.Retry,
|
|
532
|
+
telemetry: TELEMETRY,
|
|
533
|
+
span: "GetCluster",
|
|
534
|
+
}));
|
|
535
|
+
|
|
536
|
+
export type GetClusterCertificateAuthorityError = ScalewayOpError;
|
|
537
|
+
/** Get a Kafka cluster's certificate authority Retrieve certificate authority for a given Kafka cluster, specified by the `region` and `cluster_id` parameters. The response object contains the certificate in PEM format. The certificate is required to validate the sever from the client side during TLS connection. */
|
|
538
|
+
export const getClusterCertificateAuthority: API.OperationMethod<
|
|
539
|
+
GetClusterCertificateAuthorityRequest,
|
|
540
|
+
ScalewayStdFile,
|
|
541
|
+
GetClusterCertificateAuthorityError,
|
|
542
|
+
ScalewayOpContext
|
|
543
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
544
|
+
input: __S(208, __c13, 0) as any as S.Schema<GetClusterCertificateAuthorityRequest>,
|
|
545
|
+
output: __S(209, __c13, 1) as any as S.Schema<ScalewayStdFile>,
|
|
546
|
+
errors: [],
|
|
547
|
+
serviceErrors: ScalewayServiceErrors,
|
|
548
|
+
protocol: ScalewayProtocol,
|
|
549
|
+
retry: Retry.Retry,
|
|
550
|
+
telemetry: TELEMETRY,
|
|
551
|
+
span: "GetClusterCertificateAuthority",
|
|
552
|
+
}));
|
|
553
|
+
|
|
554
|
+
export type GetClusterCertificateAuthorityRawError = ScalewayOpError;
|
|
555
|
+
/** The file `getClusterCertificateAuthority` returns, as bytes (`?dl=1`), rather than the JSON file object. */
|
|
556
|
+
export const getClusterCertificateAuthorityRaw: API.OperationMethod<
|
|
557
|
+
GetClusterCertificateAuthorityRawRequest,
|
|
558
|
+
GetClusterCertificateAuthorityRawResponse,
|
|
559
|
+
GetClusterCertificateAuthorityRawError,
|
|
560
|
+
ScalewayOpContext
|
|
561
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
562
|
+
input: __S(224, __c14, 0) as any as S.Schema<GetClusterCertificateAuthorityRawRequest>,
|
|
563
|
+
output: __S(225, __c14, 1) as any as S.Schema<GetClusterCertificateAuthorityRawResponse>,
|
|
564
|
+
errors: [],
|
|
565
|
+
serviceErrors: ScalewayServiceErrors,
|
|
566
|
+
protocol: ScalewayProtocol,
|
|
567
|
+
retry: Retry.Retry,
|
|
568
|
+
telemetry: TELEMETRY,
|
|
569
|
+
span: "GetClusterCertificateAuthorityRaw",
|
|
570
|
+
}));
|
|
571
|
+
|
|
572
|
+
export type ListClustersError = ScalewayOpError;
|
|
573
|
+
/** List Kafka clusters List all Kafka clusters in the specified region. By default, the clusters returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter. */
|
|
574
|
+
export const listClusters: API.PaginatedOperationMethod<
|
|
575
|
+
ListClustersRequest,
|
|
576
|
+
ListClustersResponse,
|
|
577
|
+
ListClustersError,
|
|
578
|
+
ScalewayOpContext,
|
|
579
|
+
Cluster
|
|
580
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
581
|
+
() => ({
|
|
582
|
+
input: __S(240, __c15, 0) as any as S.Schema<ListClustersRequest>,
|
|
583
|
+
output: __S(242, __c15, 2) as any as S.Schema<ListClustersResponse>,
|
|
584
|
+
errors: [],
|
|
585
|
+
serviceErrors: ScalewayServiceErrors,
|
|
586
|
+
protocol: ScalewayProtocol,
|
|
587
|
+
retry: Retry.Retry,
|
|
588
|
+
telemetry: TELEMETRY,
|
|
589
|
+
span: "ListClusters",
|
|
590
|
+
pagination: {
|
|
591
|
+
mode: "page",
|
|
592
|
+
inputToken: "page",
|
|
593
|
+
outputToken: "total_count",
|
|
594
|
+
items: "clusters",
|
|
595
|
+
pageSize: "page_size",
|
|
596
|
+
} as const,
|
|
597
|
+
}),
|
|
598
|
+
paginateByTotalCount,
|
|
599
|
+
) as any;
|
|
600
|
+
|
|
601
|
+
export type ListNodeTypesError = ScalewayOpError;
|
|
602
|
+
/** List available node types */
|
|
603
|
+
export const listNodeTypes: API.PaginatedOperationMethod<
|
|
604
|
+
ListNodeTypesRequest,
|
|
605
|
+
ListNodeTypesResponse,
|
|
606
|
+
ListNodeTypesError,
|
|
607
|
+
ScalewayOpContext,
|
|
608
|
+
NodeType
|
|
609
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
610
|
+
() => ({
|
|
611
|
+
input: __S(256, __c16, 0) as any as S.Schema<ListNodeTypesRequest>,
|
|
612
|
+
output: __S(261, __c16, 5) as any as S.Schema<ListNodeTypesResponse>,
|
|
613
|
+
errors: [],
|
|
614
|
+
serviceErrors: ScalewayServiceErrors,
|
|
615
|
+
protocol: ScalewayProtocol,
|
|
616
|
+
retry: Retry.Retry,
|
|
617
|
+
telemetry: TELEMETRY,
|
|
618
|
+
span: "ListNodeTypes",
|
|
619
|
+
pagination: {
|
|
620
|
+
mode: "page",
|
|
621
|
+
inputToken: "page",
|
|
622
|
+
outputToken: "total_count",
|
|
623
|
+
items: "node_types",
|
|
624
|
+
pageSize: "page_size",
|
|
625
|
+
} as const,
|
|
626
|
+
}),
|
|
627
|
+
paginateByTotalCount,
|
|
628
|
+
) as any;
|
|
629
|
+
|
|
630
|
+
export type ListUsersError = ScalewayOpError;
|
|
631
|
+
/** Retrieve a list of deployment users. */
|
|
632
|
+
export const listUsers: API.PaginatedOperationMethod<
|
|
633
|
+
ListUsersRequest,
|
|
634
|
+
ListUsersResponse,
|
|
635
|
+
ListUsersError,
|
|
636
|
+
ScalewayOpContext,
|
|
637
|
+
User
|
|
638
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
639
|
+
() => ({
|
|
640
|
+
input: __S(272, __c17, 0) as any as S.Schema<ListUsersRequest>,
|
|
641
|
+
output: __S(274, __c17, 2) as any as S.Schema<ListUsersResponse>,
|
|
642
|
+
errors: [],
|
|
643
|
+
serviceErrors: ScalewayServiceErrors,
|
|
644
|
+
protocol: ScalewayProtocol,
|
|
645
|
+
retry: Retry.Retry,
|
|
646
|
+
telemetry: TELEMETRY,
|
|
647
|
+
span: "ListUsers",
|
|
648
|
+
pagination: {
|
|
649
|
+
mode: "page",
|
|
650
|
+
inputToken: "page",
|
|
651
|
+
outputToken: "total_count",
|
|
652
|
+
items: "users",
|
|
653
|
+
pageSize: "page_size",
|
|
654
|
+
} as const,
|
|
655
|
+
}),
|
|
656
|
+
paginateByTotalCount,
|
|
657
|
+
) as any;
|
|
658
|
+
|
|
659
|
+
export type ListVersionsError = ScalewayOpError;
|
|
660
|
+
/** List Kafka versions List all available versions of Kafka at the current time. */
|
|
661
|
+
export const listVersions: API.PaginatedOperationMethod<
|
|
662
|
+
ListVersionsRequest,
|
|
663
|
+
ListVersionsResponse,
|
|
664
|
+
ListVersionsError,
|
|
665
|
+
ScalewayOpContext,
|
|
666
|
+
Version
|
|
667
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
668
|
+
() => ({
|
|
669
|
+
input: __S(80, __c5, 0) as any as S.Schema<ListVersionsRequest>,
|
|
670
|
+
output: __S(88, __c5, 8) as any as S.Schema<ListVersionsResponse>,
|
|
671
|
+
errors: [],
|
|
672
|
+
serviceErrors: ScalewayServiceErrors,
|
|
673
|
+
protocol: ScalewayProtocol,
|
|
674
|
+
retry: Retry.Retry,
|
|
675
|
+
telemetry: TELEMETRY,
|
|
676
|
+
span: "ListVersions",
|
|
677
|
+
pagination: {
|
|
678
|
+
mode: "page",
|
|
679
|
+
inputToken: "page",
|
|
680
|
+
outputToken: "total_count",
|
|
681
|
+
items: "versions",
|
|
682
|
+
pageSize: "page_size",
|
|
683
|
+
} as const,
|
|
684
|
+
}),
|
|
685
|
+
paginateByTotalCount,
|
|
686
|
+
) as any;
|
|
687
|
+
|
|
688
|
+
export type RenewClusterCertificateAuthorityError = ScalewayOpError;
|
|
689
|
+
/** Renew the Kafka cluster's certificate authority Request to renew the certificate authority for a given Kafka cluster, specified by the `region` and `cluster_id` parameters. The certificate authority will be renewed within a few minutes. */
|
|
690
|
+
export const renewClusterCertificateAuthority: API.OperationMethod<
|
|
691
|
+
RenewClusterCertificateAuthorityRequest,
|
|
692
|
+
RenewClusterCertificateAuthorityResponse,
|
|
693
|
+
RenewClusterCertificateAuthorityError,
|
|
694
|
+
ScalewayOpContext
|
|
695
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
696
|
+
input: __S(96, __c6, 0) as any as S.Schema<RenewClusterCertificateAuthorityRequest>,
|
|
697
|
+
output: __S(176, __c11, 0) as any as S.Schema<RenewClusterCertificateAuthorityResponse>,
|
|
698
|
+
errors: [],
|
|
699
|
+
serviceErrors: ScalewayServiceErrors,
|
|
700
|
+
protocol: ScalewayProtocol,
|
|
701
|
+
retry: Retry.Retry,
|
|
702
|
+
telemetry: TELEMETRY,
|
|
703
|
+
span: "RenewClusterCertificateAuthority",
|
|
704
|
+
}));
|
|
705
|
+
|
|
706
|
+
export type UpdateClusterError = ScalewayOpError;
|
|
707
|
+
/** Update a Kafka cluster Update the parameters of a Kafka cluster. */
|
|
708
|
+
export const updateCluster: API.OperationMethod<
|
|
709
|
+
UpdateClusterRequest,
|
|
710
|
+
Cluster,
|
|
711
|
+
UpdateClusterError,
|
|
712
|
+
ScalewayOpContext
|
|
713
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
714
|
+
input: __S(113, __c7, 1) as any as S.Schema<UpdateClusterRequest>,
|
|
715
|
+
output: __S(53, __c3, 5) as any as S.Schema<Cluster>,
|
|
716
|
+
errors: [],
|
|
717
|
+
serviceErrors: ScalewayServiceErrors,
|
|
718
|
+
protocol: ScalewayProtocol,
|
|
719
|
+
retry: Retry.Retry,
|
|
720
|
+
telemetry: TELEMETRY,
|
|
721
|
+
span: "UpdateCluster",
|
|
722
|
+
}));
|
|
723
|
+
|
|
724
|
+
export type UpdateUserError = ScalewayOpError;
|
|
725
|
+
/** Update an existing user. */
|
|
726
|
+
export const updateUser: API.OperationMethod<
|
|
727
|
+
UpdateUserRequest,
|
|
728
|
+
User,
|
|
729
|
+
UpdateUserError,
|
|
730
|
+
ScalewayOpContext
|
|
731
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
732
|
+
input: __S(128, __c8, 0) as any as S.Schema<UpdateUserRequest>,
|
|
733
|
+
output: __S(288, __c18, 0) as any as S.Schema<User>,
|
|
734
|
+
errors: [],
|
|
735
|
+
serviceErrors: ScalewayServiceErrors,
|
|
736
|
+
protocol: ScalewayProtocol,
|
|
737
|
+
retry: Retry.Retry,
|
|
738
|
+
telemetry: TELEMETRY,
|
|
739
|
+
span: "UpdateUser",
|
|
740
|
+
}));
|
|
741
|
+
|
|
742
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
743
|
+
function __c0(j: number): any {
|
|
744
|
+
switch (j) {
|
|
745
|
+
case 0:
|
|
746
|
+
return S.suspend(() =>
|
|
747
|
+
S.Struct({
|
|
748
|
+
size_bytes: S.optional(S.Number),
|
|
749
|
+
type: S.optional(S.String),
|
|
750
|
+
}),
|
|
751
|
+
).annotate({ identifier: "CreateClusterRequestVolumeSpec" });
|
|
752
|
+
case 1:
|
|
753
|
+
return S.Array(__S(16, __c1, 0));
|
|
754
|
+
case 2:
|
|
755
|
+
return S.suspend(() =>
|
|
756
|
+
S.Struct({
|
|
757
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
758
|
+
project_id: S.optional(S.String),
|
|
759
|
+
name: S.optional(S.String),
|
|
760
|
+
version: S.String,
|
|
761
|
+
tags: S.optional(__S(32, __c2, 0)),
|
|
762
|
+
node_amount: S.Number,
|
|
763
|
+
node_type: S.String,
|
|
764
|
+
volume: S.optional(__S(0, __c0, 0)),
|
|
765
|
+
endpoints: S.optional(__S(1, __c0, 1)),
|
|
766
|
+
user_name: S.optional(S.NullOr(S.String)),
|
|
767
|
+
password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
768
|
+
multi_az: S.optional(S.NullOr(S.Unknown)),
|
|
769
|
+
mono_az: S.optional(S.NullOr(__S(48, __c3, 0))),
|
|
770
|
+
}).pipe(
|
|
771
|
+
T.Http({
|
|
772
|
+
method: "POST",
|
|
773
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters",
|
|
774
|
+
code: 200,
|
|
775
|
+
baseUrl: "https://api.scaleway.com",
|
|
776
|
+
}),
|
|
777
|
+
),
|
|
778
|
+
).annotate({ identifier: "CreateClusterRequest" });
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
function __c1(j: number): any {
|
|
782
|
+
switch (j) {
|
|
783
|
+
case 0:
|
|
784
|
+
return S.suspend(() =>
|
|
785
|
+
S.Struct({
|
|
786
|
+
public_network: S.optional(S.NullOr(S.Unknown)),
|
|
787
|
+
private_network: S.optional(S.NullOr(__S(33, __c2, 1))),
|
|
788
|
+
}),
|
|
789
|
+
).annotate({ identifier: "EndpointSpec" });
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
function __c2(j: number): any {
|
|
793
|
+
switch (j) {
|
|
794
|
+
case 0:
|
|
795
|
+
return S.Array(S.String);
|
|
796
|
+
case 1:
|
|
797
|
+
return S.suspend(() =>
|
|
798
|
+
S.Struct({
|
|
799
|
+
private_network_id: S.optional(S.String),
|
|
800
|
+
}),
|
|
801
|
+
).annotate({ identifier: "EndpointSpecPrivateNetworkDetails" });
|
|
802
|
+
case 2:
|
|
803
|
+
return S.suspend(() =>
|
|
804
|
+
S.Struct({
|
|
805
|
+
id: S.optional(S.String),
|
|
806
|
+
dns_records: S.optional(__S(32, __c2, 0)),
|
|
807
|
+
port: S.optional(S.Number),
|
|
808
|
+
private_network: S.optional(S.NullOr(__S(33, __c2, 1))),
|
|
809
|
+
public_network: S.optional(S.NullOr(S.Unknown)),
|
|
810
|
+
srn: S.optional(S.String),
|
|
811
|
+
region: S.optional(S.String),
|
|
812
|
+
}),
|
|
813
|
+
).annotate({ identifier: "Endpoint" });
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
function __c3(j: number): any {
|
|
817
|
+
switch (j) {
|
|
818
|
+
case 0:
|
|
819
|
+
return S.suspend(() =>
|
|
820
|
+
S.Struct({
|
|
821
|
+
zone: S.optional(S.NullOr(S.String)),
|
|
822
|
+
}),
|
|
823
|
+
).annotate({ identifier: "ClusterMonoAZDetails" });
|
|
824
|
+
case 1:
|
|
825
|
+
return S.suspend(() =>
|
|
826
|
+
S.Struct({
|
|
827
|
+
name: S.optional(S.String),
|
|
828
|
+
bool_value: S.optional(S.NullOr(S.Boolean)),
|
|
829
|
+
string_value: S.optional(S.NullOr(S.String)),
|
|
830
|
+
int_value: S.optional(S.NullOr(S.Number)),
|
|
831
|
+
float_value: S.optional(S.NullOr(S.Number)),
|
|
832
|
+
}),
|
|
833
|
+
).annotate({ identifier: "ClusterSetting" });
|
|
834
|
+
case 2:
|
|
835
|
+
return S.Array(__S(49, __c3, 1));
|
|
836
|
+
case 3:
|
|
837
|
+
return S.suspend(() =>
|
|
838
|
+
S.Struct({
|
|
839
|
+
type: S.optional(S.String),
|
|
840
|
+
size_bytes: S.optional(S.Number),
|
|
841
|
+
}),
|
|
842
|
+
).annotate({ identifier: "Volume" });
|
|
843
|
+
case 4:
|
|
844
|
+
return S.Array(__S(34, __c2, 2));
|
|
845
|
+
case 5:
|
|
846
|
+
return S.suspend(() =>
|
|
847
|
+
S.Struct({
|
|
848
|
+
id: S.optional(S.String),
|
|
849
|
+
name: S.optional(S.String),
|
|
850
|
+
project_id: S.optional(S.String),
|
|
851
|
+
organization_id: S.optional(S.String),
|
|
852
|
+
status: S.optional(S.String),
|
|
853
|
+
version: S.optional(S.String),
|
|
854
|
+
tags: S.optional(__S(32, __c2, 0)),
|
|
855
|
+
settings: S.optional(__S(50, __c3, 2)),
|
|
856
|
+
node_amount: S.optional(S.Number),
|
|
857
|
+
node_type: S.optional(S.String),
|
|
858
|
+
volume: S.optional(__S(51, __c3, 3)),
|
|
859
|
+
endpoints: S.optional(__S(52, __c3, 4)),
|
|
860
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
861
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
862
|
+
region: S.optional(S.String),
|
|
863
|
+
multi_az: S.optional(S.NullOr(S.Unknown)),
|
|
864
|
+
mono_az: S.optional(S.NullOr(__S(48, __c3, 0))),
|
|
865
|
+
srn: S.optional(S.String),
|
|
866
|
+
}),
|
|
867
|
+
).annotate({ identifier: "Cluster" });
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
function __c4(j: number): any {
|
|
871
|
+
switch (j) {
|
|
872
|
+
case 0:
|
|
873
|
+
return S.suspend(() =>
|
|
874
|
+
S.Struct({
|
|
875
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
876
|
+
cluster_id: S.String,
|
|
877
|
+
endpoint: __S(16, __c1, 0),
|
|
878
|
+
}).pipe(
|
|
879
|
+
T.Http({
|
|
880
|
+
method: "POST",
|
|
881
|
+
uri: "/kafka/v1alpha1/regions/{region}/endpoints",
|
|
882
|
+
code: 200,
|
|
883
|
+
baseUrl: "https://api.scaleway.com",
|
|
884
|
+
}),
|
|
885
|
+
),
|
|
886
|
+
).annotate({ identifier: "CreateEndpointRequest" });
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
function __c5(j: number): any {
|
|
890
|
+
switch (j) {
|
|
891
|
+
case 0:
|
|
892
|
+
return S.suspend(() =>
|
|
893
|
+
S.Struct({
|
|
894
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
895
|
+
version: S.optional(S.String.pipe(T.Query())),
|
|
896
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
897
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
898
|
+
}).pipe(
|
|
899
|
+
T.Http({
|
|
900
|
+
method: "GET",
|
|
901
|
+
uri: "/kafka/v1alpha1/regions/{region}/versions",
|
|
902
|
+
code: 200,
|
|
903
|
+
baseUrl: "https://api.scaleway.com",
|
|
904
|
+
}),
|
|
905
|
+
),
|
|
906
|
+
).annotate({ identifier: "ListVersionsRequest" });
|
|
907
|
+
case 1:
|
|
908
|
+
return S.suspend(() =>
|
|
909
|
+
S.Struct({
|
|
910
|
+
default_value: S.optional(S.Boolean),
|
|
911
|
+
}),
|
|
912
|
+
).annotate({ identifier: "VersionAvailableSettingBooleanProperty" });
|
|
913
|
+
case 2:
|
|
914
|
+
return S.suspend(() =>
|
|
915
|
+
S.Struct({
|
|
916
|
+
string_constraint: S.optional(S.NullOr(S.String)),
|
|
917
|
+
default_value: S.optional(S.String),
|
|
918
|
+
}),
|
|
919
|
+
).annotate({ identifier: "VersionAvailableSettingStringProperty" });
|
|
920
|
+
case 3:
|
|
921
|
+
return S.suspend(() =>
|
|
922
|
+
S.Struct({
|
|
923
|
+
min: S.optional(S.Number),
|
|
924
|
+
max: S.optional(S.Number),
|
|
925
|
+
default_value: S.optional(S.Number),
|
|
926
|
+
unit: S.optional(S.NullOr(S.String)),
|
|
927
|
+
}),
|
|
928
|
+
).annotate({ identifier: "VersionAvailableSettingIntegerProperty" });
|
|
929
|
+
case 4:
|
|
930
|
+
return S.suspend(() =>
|
|
931
|
+
S.Struct({
|
|
932
|
+
name: S.optional(S.String),
|
|
933
|
+
hot_configurable: S.optional(S.Boolean),
|
|
934
|
+
description: S.optional(S.String),
|
|
935
|
+
bool_property: S.optional(S.NullOr(__S(81, __c5, 1))),
|
|
936
|
+
string_property: S.optional(S.NullOr(__S(82, __c5, 2))),
|
|
937
|
+
int_property: S.optional(S.NullOr(__S(83, __c5, 3))),
|
|
938
|
+
float_property: S.optional(S.NullOr(__S(83, __c5, 3))),
|
|
939
|
+
}),
|
|
940
|
+
).annotate({ identifier: "VersionAvailableSetting" });
|
|
941
|
+
case 5:
|
|
942
|
+
return S.Array(__S(84, __c5, 4));
|
|
943
|
+
case 6:
|
|
944
|
+
return S.suspend(() =>
|
|
945
|
+
S.Struct({
|
|
946
|
+
version: S.optional(S.String),
|
|
947
|
+
end_of_life_at: S.optional(S.NullOr(S.String)),
|
|
948
|
+
available_settings: S.optional(__S(85, __c5, 5)),
|
|
949
|
+
srn: S.optional(S.String),
|
|
950
|
+
region: S.optional(S.String),
|
|
951
|
+
}),
|
|
952
|
+
).annotate({ identifier: "Version" });
|
|
953
|
+
case 7:
|
|
954
|
+
return S.Array(__S(86, __c5, 6));
|
|
955
|
+
case 8:
|
|
956
|
+
return S.suspend(() =>
|
|
957
|
+
S.Struct({
|
|
958
|
+
versions: __S(87, __c5, 7),
|
|
959
|
+
total_count: S.optional(S.Number),
|
|
960
|
+
}),
|
|
961
|
+
).annotate({ identifier: "ListVersionsResponse" });
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
function __c6(j: number): any {
|
|
965
|
+
switch (j) {
|
|
966
|
+
case 0:
|
|
967
|
+
return S.suspend(() =>
|
|
968
|
+
S.Struct({
|
|
969
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
970
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
971
|
+
}).pipe(
|
|
972
|
+
T.Http({
|
|
973
|
+
method: "POST",
|
|
974
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters/{cluster_id}/renew-certificate-authority",
|
|
975
|
+
code: 200,
|
|
976
|
+
baseUrl: "https://api.scaleway.com",
|
|
977
|
+
}),
|
|
978
|
+
),
|
|
979
|
+
).annotate({ identifier: "RenewClusterCertificateAuthorityRequest" });
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
function __c7(j: number): any {
|
|
983
|
+
switch (j) {
|
|
984
|
+
case 0:
|
|
985
|
+
return S.Array(S.Unknown);
|
|
986
|
+
case 1:
|
|
987
|
+
return S.suspend(() =>
|
|
988
|
+
S.Struct({
|
|
989
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
990
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
991
|
+
name: S.optional(S.NullOr(S.String)),
|
|
992
|
+
tags: S.optional(S.NullOr(__S(112, __c7, 0))),
|
|
993
|
+
version: S.optional(S.NullOr(S.String)),
|
|
994
|
+
volume_size_bytes: S.optional(S.NullOr(S.Number)),
|
|
995
|
+
}).pipe(
|
|
996
|
+
T.Http({
|
|
997
|
+
method: "PATCH",
|
|
998
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters/{cluster_id}",
|
|
999
|
+
code: 200,
|
|
1000
|
+
baseUrl: "https://api.scaleway.com",
|
|
1001
|
+
}),
|
|
1002
|
+
),
|
|
1003
|
+
).annotate({ identifier: "UpdateClusterRequest" });
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
function __c8(j: number): any {
|
|
1007
|
+
switch (j) {
|
|
1008
|
+
case 0:
|
|
1009
|
+
return S.suspend(() =>
|
|
1010
|
+
S.Struct({
|
|
1011
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1012
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
1013
|
+
username: S.String.pipe(T.Label()),
|
|
1014
|
+
password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
1015
|
+
}).pipe(
|
|
1016
|
+
T.Http({
|
|
1017
|
+
method: "PATCH",
|
|
1018
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters/{cluster_id}/users/{username}",
|
|
1019
|
+
code: 200,
|
|
1020
|
+
baseUrl: "https://api.scaleway.com",
|
|
1021
|
+
}),
|
|
1022
|
+
),
|
|
1023
|
+
).annotate({ identifier: "UpdateUserRequest" });
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
function __c9(j: number): any {
|
|
1027
|
+
switch (j) {
|
|
1028
|
+
case 0:
|
|
1029
|
+
return S.suspend(() =>
|
|
1030
|
+
S.Struct({
|
|
1031
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1032
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
1033
|
+
}).pipe(
|
|
1034
|
+
T.Http({
|
|
1035
|
+
method: "DELETE",
|
|
1036
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters/{cluster_id}",
|
|
1037
|
+
code: 200,
|
|
1038
|
+
baseUrl: "https://api.scaleway.com",
|
|
1039
|
+
}),
|
|
1040
|
+
),
|
|
1041
|
+
).annotate({ identifier: "DeleteClusterRequest" });
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
function __c10(j: number): any {
|
|
1045
|
+
switch (j) {
|
|
1046
|
+
case 0:
|
|
1047
|
+
return S.suspend(() =>
|
|
1048
|
+
S.Struct({
|
|
1049
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1050
|
+
endpoint_id: S.String.pipe(T.Label()),
|
|
1051
|
+
}).pipe(
|
|
1052
|
+
T.Http({
|
|
1053
|
+
method: "DELETE",
|
|
1054
|
+
uri: "/kafka/v1alpha1/regions/{region}/endpoints/{endpoint_id}",
|
|
1055
|
+
code: 200,
|
|
1056
|
+
baseUrl: "https://api.scaleway.com",
|
|
1057
|
+
}),
|
|
1058
|
+
),
|
|
1059
|
+
).annotate({ identifier: "DeleteEndpointRequest" });
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
function __c11(j: number): any {
|
|
1063
|
+
switch (j) {
|
|
1064
|
+
case 0:
|
|
1065
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteEndpointResponse" });
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
function __c12(j: number): any {
|
|
1069
|
+
switch (j) {
|
|
1070
|
+
case 0:
|
|
1071
|
+
return S.suspend(() =>
|
|
1072
|
+
S.Struct({
|
|
1073
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1074
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
1075
|
+
}).pipe(
|
|
1076
|
+
T.Http({
|
|
1077
|
+
method: "GET",
|
|
1078
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters/{cluster_id}",
|
|
1079
|
+
code: 200,
|
|
1080
|
+
baseUrl: "https://api.scaleway.com",
|
|
1081
|
+
}),
|
|
1082
|
+
),
|
|
1083
|
+
).annotate({ identifier: "GetClusterRequest" });
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
function __c13(j: number): any {
|
|
1087
|
+
switch (j) {
|
|
1088
|
+
case 0:
|
|
1089
|
+
return S.suspend(() =>
|
|
1090
|
+
S.Struct({
|
|
1091
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1092
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
1093
|
+
}).pipe(
|
|
1094
|
+
T.Http({
|
|
1095
|
+
method: "GET",
|
|
1096
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters/{cluster_id}/certificate-authority",
|
|
1097
|
+
code: 200,
|
|
1098
|
+
baseUrl: "https://api.scaleway.com",
|
|
1099
|
+
}),
|
|
1100
|
+
),
|
|
1101
|
+
).annotate({ identifier: "GetClusterCertificateAuthorityRequest" });
|
|
1102
|
+
case 1:
|
|
1103
|
+
return S.suspend(() =>
|
|
1104
|
+
S.Struct({
|
|
1105
|
+
name: S.optional(S.String),
|
|
1106
|
+
content_type: S.optional(S.String),
|
|
1107
|
+
content: S.optional(S.String),
|
|
1108
|
+
}),
|
|
1109
|
+
).annotate({ identifier: "ScalewayStdFile" });
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
function __c14(j: number): any {
|
|
1113
|
+
switch (j) {
|
|
1114
|
+
case 0:
|
|
1115
|
+
return S.suspend(() =>
|
|
1116
|
+
S.Struct({
|
|
1117
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1118
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
1119
|
+
}).pipe(
|
|
1120
|
+
T.Http({
|
|
1121
|
+
method: "GET",
|
|
1122
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters/{cluster_id}/certificate-authority",
|
|
1123
|
+
code: 200,
|
|
1124
|
+
baseUrl: "https://api.scaleway.com",
|
|
1125
|
+
rawDownload: true,
|
|
1126
|
+
}),
|
|
1127
|
+
),
|
|
1128
|
+
).annotate({ identifier: "GetClusterCertificateAuthorityRawRequest" });
|
|
1129
|
+
case 1:
|
|
1130
|
+
return S.suspend(() =>
|
|
1131
|
+
S.Struct({
|
|
1132
|
+
body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
|
|
1133
|
+
contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
|
|
1134
|
+
}),
|
|
1135
|
+
).annotate({ identifier: "GetClusterCertificateAuthorityRawResponse" });
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
function __c15(j: number): any {
|
|
1139
|
+
switch (j) {
|
|
1140
|
+
case 0:
|
|
1141
|
+
return S.suspend(() =>
|
|
1142
|
+
S.Struct({
|
|
1143
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1144
|
+
tags: S.optional(__S(32, __c2, 0).pipe(T.Query())),
|
|
1145
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1146
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1147
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
1148
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
1149
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1150
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1151
|
+
}).pipe(
|
|
1152
|
+
T.Http({
|
|
1153
|
+
method: "GET",
|
|
1154
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters",
|
|
1155
|
+
code: 200,
|
|
1156
|
+
baseUrl: "https://api.scaleway.com",
|
|
1157
|
+
}),
|
|
1158
|
+
),
|
|
1159
|
+
).annotate({ identifier: "ListClustersRequest" });
|
|
1160
|
+
case 1:
|
|
1161
|
+
return S.Array(__S(53, __c3, 5));
|
|
1162
|
+
case 2:
|
|
1163
|
+
return S.suspend(() =>
|
|
1164
|
+
S.Struct({
|
|
1165
|
+
clusters: __S(241, __c15, 1),
|
|
1166
|
+
total_count: S.optional(S.Number),
|
|
1167
|
+
}),
|
|
1168
|
+
).annotate({ identifier: "ListClustersResponse" });
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
function __c16(j: number): any {
|
|
1172
|
+
switch (j) {
|
|
1173
|
+
case 0:
|
|
1174
|
+
return S.suspend(() =>
|
|
1175
|
+
S.Struct({
|
|
1176
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1177
|
+
include_disabled_types: S.optional(S.Boolean.pipe(T.Query())),
|
|
1178
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1179
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1180
|
+
}).pipe(
|
|
1181
|
+
T.Http({
|
|
1182
|
+
method: "GET",
|
|
1183
|
+
uri: "/kafka/v1alpha1/regions/{region}/node-types",
|
|
1184
|
+
code: 200,
|
|
1185
|
+
baseUrl: "https://api.scaleway.com",
|
|
1186
|
+
}),
|
|
1187
|
+
),
|
|
1188
|
+
).annotate({ identifier: "ListNodeTypesRequest" });
|
|
1189
|
+
case 1:
|
|
1190
|
+
return S.suspend(() =>
|
|
1191
|
+
S.Struct({
|
|
1192
|
+
type: S.optional(S.String),
|
|
1193
|
+
description: S.optional(S.String),
|
|
1194
|
+
min_size_bytes: S.optional(S.Number),
|
|
1195
|
+
max_size_bytes: S.optional(S.Number),
|
|
1196
|
+
chunk_size_bytes: S.optional(S.Number),
|
|
1197
|
+
}),
|
|
1198
|
+
).annotate({ identifier: "NodeTypeVolumeType" });
|
|
1199
|
+
case 2:
|
|
1200
|
+
return S.Array(__S(257, __c16, 1));
|
|
1201
|
+
case 3:
|
|
1202
|
+
return S.suspend(() =>
|
|
1203
|
+
S.Struct({
|
|
1204
|
+
name: S.optional(S.String),
|
|
1205
|
+
stock_status: S.optional(S.String),
|
|
1206
|
+
description: S.optional(S.String),
|
|
1207
|
+
vcpus: S.optional(S.Number),
|
|
1208
|
+
memory_bytes: S.optional(S.Number),
|
|
1209
|
+
available_volume_types: S.optional(__S(258, __c16, 2)),
|
|
1210
|
+
disabled: S.optional(S.Boolean),
|
|
1211
|
+
beta: S.optional(S.Boolean),
|
|
1212
|
+
cluster_range: S.optional(S.String),
|
|
1213
|
+
srn: S.optional(S.String),
|
|
1214
|
+
region: S.optional(S.String),
|
|
1215
|
+
}),
|
|
1216
|
+
).annotate({ identifier: "NodeType" });
|
|
1217
|
+
case 4:
|
|
1218
|
+
return S.Array(__S(259, __c16, 3));
|
|
1219
|
+
case 5:
|
|
1220
|
+
return S.suspend(() =>
|
|
1221
|
+
S.Struct({
|
|
1222
|
+
node_types: __S(260, __c16, 4),
|
|
1223
|
+
total_count: S.optional(S.Number),
|
|
1224
|
+
}),
|
|
1225
|
+
).annotate({ identifier: "ListNodeTypesResponse" });
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
function __c17(j: number): any {
|
|
1229
|
+
switch (j) {
|
|
1230
|
+
case 0:
|
|
1231
|
+
return S.suspend(() =>
|
|
1232
|
+
S.Struct({
|
|
1233
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1234
|
+
cluster_id: S.String.pipe(T.Label()),
|
|
1235
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1236
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1237
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1238
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1239
|
+
}).pipe(
|
|
1240
|
+
T.Http({
|
|
1241
|
+
method: "GET",
|
|
1242
|
+
uri: "/kafka/v1alpha1/regions/{region}/clusters/{cluster_id}/users",
|
|
1243
|
+
code: 200,
|
|
1244
|
+
baseUrl: "https://api.scaleway.com",
|
|
1245
|
+
}),
|
|
1246
|
+
),
|
|
1247
|
+
).annotate({ identifier: "ListUsersRequest" });
|
|
1248
|
+
case 1:
|
|
1249
|
+
return S.Array(__S(288, __c18, 0));
|
|
1250
|
+
case 2:
|
|
1251
|
+
return S.suspend(() =>
|
|
1252
|
+
S.Struct({
|
|
1253
|
+
users: __S(273, __c17, 1),
|
|
1254
|
+
total_count: S.optional(S.Number),
|
|
1255
|
+
}),
|
|
1256
|
+
).annotate({ identifier: "ListUsersResponse" });
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
function __c18(j: number): any {
|
|
1260
|
+
switch (j) {
|
|
1261
|
+
case 0:
|
|
1262
|
+
return S.suspend(() =>
|
|
1263
|
+
S.Struct({
|
|
1264
|
+
username: S.optional(S.String),
|
|
1265
|
+
cluster_id: S.optional(S.String),
|
|
1266
|
+
region: S.optional(S.String),
|
|
1267
|
+
srn: S.optional(S.String),
|
|
1268
|
+
}),
|
|
1269
|
+
).annotate({ identifier: "User" });
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1273
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1274
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1275
|
+
}
|