@distilled.cloud/scaleway 0.0.0 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +171 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +44 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +285 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +48 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/account_contract_v3.d.ts +124 -0
- package/lib/services/account_contract_v3.d.ts.map +1 -0
- package/lib/services/account_contract_v3.js +2 -0
- package/lib/services/account_contract_v3.js.map +1 -0
- package/lib/services/account_iso_code_v3.d.ts +44 -0
- package/lib/services/account_iso_code_v3.d.ts.map +1 -0
- package/lib/services/account_iso_code_v3.js +2 -0
- package/lib/services/account_iso_code_v3.js.map +1 -0
- package/lib/services/account_organization_v3.d.ts +290 -0
- package/lib/services/account_organization_v3.d.ts.map +1 -0
- package/lib/services/account_organization_v3.js +2 -0
- package/lib/services/account_organization_v3.js.map +1 -0
- package/lib/services/account_project_v3.d.ts +173 -0
- package/lib/services/account_project_v3.d.ts.map +1 -0
- package/lib/services/account_project_v3.js +2 -0
- package/lib/services/account_project_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts +479 -0
- package/lib/services/account_unauthenticated_user_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_user_v3.js +35 -0
- package/lib/services/account_unauthenticated_user_v3.js.map +1 -0
- package/lib/services/account_unauthenticated_v3.d.ts +18 -0
- package/lib/services/account_unauthenticated_v3.d.ts.map +1 -0
- package/lib/services/account_unauthenticated_v3.js +2 -0
- package/lib/services/account_unauthenticated_v3.js.map +1 -0
- package/lib/services/account_user_v3.d.ts +522 -0
- package/lib/services/account_user_v3.d.ts.map +1 -0
- package/lib/services/account_user_v3.js +39 -0
- package/lib/services/account_user_v3.js.map +1 -0
- package/lib/services/annotations_v1.d.ts +260 -0
- package/lib/services/annotations_v1.d.ts.map +1 -0
- package/lib/services/annotations_v1.js +2 -0
- package/lib/services/annotations_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v1.d.ts +95 -0
- package/lib/services/baremetal_private_network_v1.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v1.js +2 -0
- package/lib/services/baremetal_private_network_v1.js.map +1 -0
- package/lib/services/baremetal_private_network_v3.d.ts +110 -0
- package/lib/services/baremetal_private_network_v3.d.ts.map +1 -0
- package/lib/services/baremetal_private_network_v3.js +2 -0
- package/lib/services/baremetal_private_network_v3.js.map +1 -0
- package/lib/services/baremetal_v1.d.ts +1089 -0
- package/lib/services/baremetal_v1.d.ts.map +1 -0
- package/lib/services/baremetal_v1.js +52 -0
- package/lib/services/baremetal_v1.js.map +1 -0
- package/lib/services/billing_electronic_billing_v2.d.ts +86 -0
- package/lib/services/billing_electronic_billing_v2.d.ts.map +1 -0
- package/lib/services/billing_electronic_billing_v2.js +2 -0
- package/lib/services/billing_electronic_billing_v2.js.map +1 -0
- package/lib/services/billing_v2.d.ts +187 -0
- package/lib/services/billing_v2.d.ts.map +1 -0
- package/lib/services/billing_v2.js +2 -0
- package/lib/services/billing_v2.js.map +1 -0
- package/lib/services/block_v1.d.ts +401 -0
- package/lib/services/block_v1.d.ts.map +1 -0
- package/lib/services/block_v1.js +27 -0
- package/lib/services/block_v1.js.map +1 -0
- package/lib/services/cockpit_global_v1.d.ts +75 -0
- package/lib/services/cockpit_global_v1.d.ts.map +1 -0
- package/lib/services/cockpit_global_v1.js +2 -0
- package/lib/services/cockpit_global_v1.js.map +1 -0
- package/lib/services/cockpit_regional_v1.d.ts +739 -0
- package/lib/services/cockpit_regional_v1.d.ts.map +1 -0
- package/lib/services/cockpit_regional_v1.js +47 -0
- package/lib/services/cockpit_regional_v1.js.map +1 -0
- package/lib/services/containers_v1.d.ts +822 -0
- package/lib/services/containers_v1.d.ts.map +1 -0
- package/lib/services/containers_v1.js +39 -0
- package/lib/services/containers_v1.js.map +1 -0
- package/lib/services/dedibox_billing_v1.d.ts +151 -0
- package/lib/services/dedibox_billing_v1.d.ts.map +1 -0
- package/lib/services/dedibox_billing_v1.js +2 -0
- package/lib/services/dedibox_billing_v1.js.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts +119 -0
- package/lib/services/dedibox_ipv6_block_v1.d.ts.map +1 -0
- package/lib/services/dedibox_ipv6_block_v1.js +2 -0
- package/lib/services/dedibox_ipv6_block_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts +486 -0
- package/lib/services/dedibox_rpn_san_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_san_v1.js +2 -0
- package/lib/services/dedibox_rpn_san_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1.d.ts +68 -0
- package/lib/services/dedibox_rpn_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1.js +2 -0
- package/lib/services/dedibox_rpn_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts +687 -0
- package/lib/services/dedibox_rpn_v1_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v1_v1.js +30 -0
- package/lib/services/dedibox_rpn_v1_v1.js.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts +646 -0
- package/lib/services/dedibox_rpn_v2_v1.d.ts.map +1 -0
- package/lib/services/dedibox_rpn_v2_v1.js +27 -0
- package/lib/services/dedibox_rpn_v2_v1.js.map +1 -0
- package/lib/services/dedibox_v1.d.ts +1351 -0
- package/lib/services/dedibox_v1.d.ts.map +1 -0
- package/lib/services/dedibox_v1.js +70 -0
- package/lib/services/dedibox_v1.js.map +1 -0
- package/lib/services/generative_apis_openai_v1.d.ts +772 -0
- package/lib/services/generative_apis_openai_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_openai_v1.js +24 -0
- package/lib/services/generative_apis_openai_v1.js.map +1 -0
- package/lib/services/generative_apis_v1.d.ts +82 -0
- package/lib/services/generative_apis_v1.d.ts.map +1 -0
- package/lib/services/generative_apis_v1.js +2 -0
- package/lib/services/generative_apis_v1.js.map +1 -0
- package/lib/services/index.d.ts +57 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +56 -0
- package/lib/services/inference_v1.d.ts +460 -0
- package/lib/services/inference_v1.d.ts.map +1 -0
- package/lib/services/inference_v1.js +33 -0
- package/lib/services/inference_v1.js.map +1 -0
- package/lib/services/instance_v1.d.ts +2183 -0
- package/lib/services/instance_v1.d.ts.map +1 -0
- package/lib/services/instance_v1.js +112 -0
- package/lib/services/instance_v1.js.map +1 -0
- package/lib/services/iot_v1.d.ts +837 -0
- package/lib/services/iot_v1.d.ts.map +1 -0
- package/lib/services/iot_v1.js +50 -0
- package/lib/services/iot_v1.js.map +1 -0
- package/lib/services/ipam_v1.d.ts +244 -0
- package/lib/services/ipam_v1.d.ts.map +1 -0
- package/lib/services/ipam_v1.js +2 -0
- package/lib/services/ipam_v1.js.map +1 -0
- package/lib/services/k8s_v1.d.ts +1223 -0
- package/lib/services/k8s_v1.d.ts.map +1 -0
- package/lib/services/k8s_v1.js +61 -0
- package/lib/services/k8s_v1.js.map +1 -0
- package/lib/services/lb_zoned_v1.d.ts +1517 -0
- package/lib/services/lb_zoned_v1.d.ts.map +1 -0
- package/lib/services/lb_zoned_v1.js +75 -0
- package/lib/services/lb_zoned_v1.js.map +1 -0
- package/lib/services/marketplace_console_v2.d.ts +72 -0
- package/lib/services/marketplace_console_v2.d.ts.map +1 -0
- package/lib/services/marketplace_console_v2.js +2 -0
- package/lib/services/marketplace_console_v2.js.map +1 -0
- package/lib/services/marketplace_v2.d.ts +169 -0
- package/lib/services/marketplace_v2.d.ts.map +1 -0
- package/lib/services/marketplace_v2.js +2 -0
- package/lib/services/marketplace_v2.js.map +1 -0
- package/lib/services/mongodb_v1.d.ts +698 -0
- package/lib/services/mongodb_v1.d.ts.map +1 -0
- package/lib/services/mongodb_v1.js +43 -0
- package/lib/services/mongodb_v1.js.map +1 -0
- package/lib/services/partner_v1.d.ts +142 -0
- package/lib/services/partner_v1.d.ts.map +1 -0
- package/lib/services/partner_v1.js +2 -0
- package/lib/services/partner_v1.js.map +1 -0
- package/lib/services/rdb_encryption_v1.d.ts +17 -0
- package/lib/services/rdb_encryption_v1.d.ts.map +1 -0
- package/lib/services/rdb_encryption_v1.js +2 -0
- package/lib/services/rdb_encryption_v1.js.map +1 -0
- package/lib/services/rdb_v1.d.ts +1422 -0
- package/lib/services/rdb_v1.d.ts.map +1 -0
- package/lib/services/rdb_v1.js +87 -0
- package/lib/services/rdb_v1.js.map +1 -0
- package/lib/services/redis_v1.d.ts +602 -0
- package/lib/services/redis_v1.d.ts.map +1 -0
- package/lib/services/redis_v1.js +42 -0
- package/lib/services/redis_v1.js.map +1 -0
- package/lib/services/registry_v1.d.ts +281 -0
- package/lib/services/registry_v1.d.ts.map +1 -0
- package/lib/services/registry_v1.js +2 -0
- package/lib/services/registry_v1.js.map +1 -0
- package/lib/services/reseller_v1.d.ts +81 -0
- package/lib/services/reseller_v1.d.ts.map +1 -0
- package/lib/services/reseller_v1.js +2 -0
- package/lib/services/reseller_v1.js.map +1 -0
- package/lib/services/vpc_gw_v2.d.ts +635 -0
- package/lib/services/vpc_gw_v2.d.ts.map +1 -0
- package/lib/services/vpc_gw_v2.js +46 -0
- package/lib/services/vpc_gw_v2.js.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts +114 -0
- package/lib/services/vpc_private_network_with_nics_v2.d.ts.map +1 -0
- package/lib/services/vpc_private_network_with_nics_v2.js +2 -0
- package/lib/services/vpc_private_network_with_nics_v2.js.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts +87 -0
- package/lib/services/vpc_routes_with_nexthop_v2.d.ts.map +1 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js +2 -0
- package/lib/services/vpc_routes_with_nexthop_v2.js.map +1 -0
- package/lib/services/vpc_v2.d.ts +875 -0
- package/lib/services/vpc_v2.d.ts.map +1 -0
- package/lib/services/vpc_v2.js +54 -0
- package/lib/services/vpc_v2.js.map +1 -0
- package/lib/services/webhosting_backup_v1.d.ts +182 -0
- package/lib/services/webhosting_backup_v1.d.ts.map +1 -0
- package/lib/services/webhosting_backup_v1.js +2 -0
- package/lib/services/webhosting_backup_v1.js.map +1 -0
- package/lib/services/webhosting_control_panel_v1.d.ts +37 -0
- package/lib/services/webhosting_control_panel_v1.d.ts.map +1 -0
- package/lib/services/webhosting_control_panel_v1.js +2 -0
- package/lib/services/webhosting_control_panel_v1.js.map +1 -0
- package/lib/services/webhosting_database_v1.d.ts +195 -0
- package/lib/services/webhosting_database_v1.d.ts.map +1 -0
- package/lib/services/webhosting_database_v1.js +2 -0
- package/lib/services/webhosting_database_v1.js.map +1 -0
- package/lib/services/webhosting_dedibox_v1.d.ts +232 -0
- package/lib/services/webhosting_dedibox_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dedibox_v1.js +2 -0
- package/lib/services/webhosting_dedibox_v1.js.map +1 -0
- package/lib/services/webhosting_dns_v1.d.ts +177 -0
- package/lib/services/webhosting_dns_v1.d.ts.map +1 -0
- package/lib/services/webhosting_dns_v1.js +2 -0
- package/lib/services/webhosting_dns_v1.js.map +1 -0
- package/lib/services/webhosting_free_domain_v1.d.ts +51 -0
- package/lib/services/webhosting_free_domain_v1.d.ts.map +1 -0
- package/lib/services/webhosting_free_domain_v1.js +2 -0
- package/lib/services/webhosting_free_domain_v1.js.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts +79 -0
- package/lib/services/webhosting_ftp_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_ftp_account_v1.js +2 -0
- package/lib/services/webhosting_ftp_account_v1.js.map +1 -0
- package/lib/services/webhosting_hosting_v1.d.ts +502 -0
- package/lib/services/webhosting_hosting_v1.d.ts.map +1 -0
- package/lib/services/webhosting_hosting_v1.js +27 -0
- package/lib/services/webhosting_hosting_v1.js.map +1 -0
- package/lib/services/webhosting_mail_account_v1.d.ts +84 -0
- package/lib/services/webhosting_mail_account_v1.d.ts.map +1 -0
- package/lib/services/webhosting_mail_account_v1.js +2 -0
- package/lib/services/webhosting_mail_account_v1.js.map +1 -0
- package/lib/services/webhosting_offer_v1.d.ts +122 -0
- package/lib/services/webhosting_offer_v1.d.ts.map +1 -0
- package/lib/services/webhosting_offer_v1.js +2 -0
- package/lib/services/webhosting_offer_v1.js.map +1 -0
- package/lib/services/webhosting_website_v1.d.ts +75 -0
- package/lib/services/webhosting_website_v1.d.ts.map +1 -0
- package/lib/services/webhosting_website_v1.js +2 -0
- package/lib/services/webhosting_website_v1.js.map +1 -0
- package/lib/services.lazy/account_contract_v3.js +1 -0
- package/lib/services.lazy/account_iso_code_v3.js +1 -0
- package/lib/services.lazy/account_organization_v3.js +1 -0
- package/lib/services.lazy/account_project_v3.js +1 -0
- package/lib/services.lazy/account_unauthenticated_user_v3.js +3 -0
- package/lib/services.lazy/account_unauthenticated_v3.js +1 -0
- package/lib/services.lazy/account_user_v3.js +3 -0
- package/lib/services.lazy/annotations_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v1.js +1 -0
- package/lib/services.lazy/baremetal_private_network_v3.js +1 -0
- package/lib/services.lazy/baremetal_v1.js +3 -0
- package/lib/services.lazy/billing_electronic_billing_v2.js +1 -0
- package/lib/services.lazy/billing_v2.js +1 -0
- package/lib/services.lazy/block_v1.js +3 -0
- package/lib/services.lazy/cockpit_global_v1.js +1 -0
- package/lib/services.lazy/cockpit_regional_v1.js +3 -0
- package/lib/services.lazy/containers_v1.js +3 -0
- package/lib/services.lazy/dedibox_billing_v1.js +1 -0
- package/lib/services.lazy/dedibox_ipv6_block_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_san_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1.js +1 -0
- package/lib/services.lazy/dedibox_rpn_v1_v1.js +3 -0
- package/lib/services.lazy/dedibox_rpn_v2_v1.js +3 -0
- package/lib/services.lazy/dedibox_v1.js +3 -0
- package/lib/services.lazy/generative_apis_openai_v1.js +3 -0
- package/lib/services.lazy/generative_apis_v1.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/inference_v1.js +3 -0
- package/lib/services.lazy/instance_v1.js +3 -0
- package/lib/services.lazy/iot_v1.js +3 -0
- package/lib/services.lazy/ipam_v1.js +1 -0
- package/lib/services.lazy/k8s_v1.js +3 -0
- package/lib/services.lazy/lb_zoned_v1.js +3 -0
- package/lib/services.lazy/marketplace_console_v2.js +1 -0
- package/lib/services.lazy/marketplace_v2.js +1 -0
- package/lib/services.lazy/mongodb_v1.js +3 -0
- package/lib/services.lazy/partner_v1.js +1 -0
- package/lib/services.lazy/rdb_encryption_v1.js +1 -0
- package/lib/services.lazy/rdb_v1.js +3 -0
- package/lib/services.lazy/redis_v1.js +3 -0
- package/lib/services.lazy/registry_v1.js +1 -0
- package/lib/services.lazy/reseller_v1.js +1 -0
- package/lib/services.lazy/vpc_gw_v2.js +3 -0
- package/lib/services.lazy/vpc_private_network_with_nics_v2.js +1 -0
- package/lib/services.lazy/vpc_routes_with_nexthop_v2.js +1 -0
- package/lib/services.lazy/vpc_v2.js +3 -0
- package/lib/services.lazy/webhosting_backup_v1.js +1 -0
- package/lib/services.lazy/webhosting_control_panel_v1.js +1 -0
- package/lib/services.lazy/webhosting_database_v1.js +1 -0
- package/lib/services.lazy/webhosting_dedibox_v1.js +1 -0
- package/lib/services.lazy/webhosting_dns_v1.js +1 -0
- package/lib/services.lazy/webhosting_free_domain_v1.js +1 -0
- package/lib/services.lazy/webhosting_ftp_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_hosting_v1.js +3 -0
- package/lib/services.lazy/webhosting_mail_account_v1.js +1 -0
- package/lib/services.lazy/webhosting_offer_v1.js +1 -0
- package/lib/services.lazy/webhosting_website_v1.js +1 -0
- package/lib/traits.d.ts +25 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts +119 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js +2 -0
- package/lib/unstable-services/apple_silicon_private_network_v1alpha1.js.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts +569 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js +38 -0
- package/lib/unstable-services/apple_silicon_v1alpha1.js.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts +1082 -0
- package/lib/unstable-services/audit_trail_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js +47 -0
- package/lib/unstable-services/audit_trail_v1alpha1.js.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts +368 -0
- package/lib/unstable-services/autoscaling_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js +2 -0
- package/lib/unstable-services/autoscaling_v1alpha2.js.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts +78 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js +2 -0
- package/lib/unstable-services/billing_fin_ops_v2beta1.js.map +1 -0
- package/lib/unstable-services/billing_v2beta1.d.ts +411 -0
- package/lib/unstable-services/billing_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/billing_v2beta1.js +25 -0
- package/lib/unstable-services/billing_v2beta1.js.map +1 -0
- package/lib/unstable-services/block_v1alpha1.d.ts +372 -0
- package/lib/unstable-services/block_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/block_v1alpha1.js +27 -0
- package/lib/unstable-services/block_v1alpha1.js.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts +440 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js +27 -0
- package/lib/unstable-services/data_orchestrator_v1alpha2.js.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts +322 -0
- package/lib/unstable-services/datalab_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datalab_v1beta1.js +2 -0
- package/lib/unstable-services/datalab_v1beta1.js.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts +456 -0
- package/lib/unstable-services/dataviz_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/dataviz_v1alpha1.js +34 -0
- package/lib/unstable-services/dataviz_v1alpha1.js.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts +492 -0
- package/lib/unstable-services/datawarehouse_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js +34 -0
- package/lib/unstable-services/datawarehouse_v1beta1.js.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts +1087 -0
- package/lib/unstable-services/domain_registrar_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js +50 -0
- package/lib/unstable-services/domain_registrar_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts +19 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js +2 -0
- package/lib/unstable-services/domain_suggestion_v2beta1.js.map +1 -0
- package/lib/unstable-services/domain_v2beta1.d.ts +520 -0
- package/lib/unstable-services/domain_v2beta1.d.ts.map +1 -0
- package/lib/unstable-services/domain_v2beta1.js +44 -0
- package/lib/unstable-services/domain_v2beta1.js.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts +1153 -0
- package/lib/unstable-services/edge_services_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/edge_services_v1beta1.js +81 -0
- package/lib/unstable-services/edge_services_v1beta1.js.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts +149 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js +2 -0
- package/lib/unstable-services/environmental_footprint_user_v1alpha1.js.map +1 -0
- package/lib/unstable-services/file_v1alpha1.d.ts +350 -0
- package/lib/unstable-services/file_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/file_v1alpha1.js +24 -0
- package/lib/unstable-services/file_v1alpha1.js.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts +241 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js +2 -0
- package/lib/unstable-services/flexible_ip_v1alpha1.js.map +1 -0
- package/lib/unstable-services/functions_v1beta1.d.ts +852 -0
- package/lib/unstable-services/functions_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/functions_v1beta1.js +49 -0
- package/lib/unstable-services/functions_v1beta1.js.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts +257 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js +2 -0
- package/lib/unstable-services/iam_unauthenticated_v1alpha1.js.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts +1506 -0
- package/lib/unstable-services/iam_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/iam_v1alpha1.js +105 -0
- package/lib/unstable-services/iam_v1alpha1.js.map +1 -0
- package/lib/unstable-services/index.d.ts +44 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +43 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts +1745 -0
- package/lib/unstable-services/instance_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_v2alpha1.js +81 -0
- package/lib/unstable-services/instance_v2alpha1.js.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts +333 -0
- package/lib/unstable-services/instance_volume_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js +26 -0
- package/lib/unstable-services/instance_volume_v2alpha1.js.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts +636 -0
- package/lib/unstable-services/interlink_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/interlink_v1beta1.js +39 -0
- package/lib/unstable-services/interlink_v1beta1.js.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts +451 -0
- package/lib/unstable-services/kafka_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/kafka_v1alpha1.js +27 -0
- package/lib/unstable-services/kafka_v1alpha1.js.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts +515 -0
- package/lib/unstable-services/key_manager_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/key_manager_v1alpha1.js +36 -0
- package/lib/unstable-services/key_manager_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts +438 -0
- package/lib/unstable-services/mailbox_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mailbox_v1alpha1.js +39 -0
- package/lib/unstable-services/mailbox_v1alpha1.js.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts +420 -0
- package/lib/unstable-services/messageq_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/messageq_v1alpha1.js +29 -0
- package/lib/unstable-services/messageq_v1alpha1.js.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts +32 -0
- package/lib/unstable-services/mnq_console_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_console_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_console_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts +177 -0
- package/lib/unstable-services/mnq_nats_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_nats_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sns_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sns_v1beta1.js.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts +155 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js +2 -0
- package/lib/unstable-services/mnq_sqs_v1beta1.js.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts +604 -0
- package/lib/unstable-services/mongodb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/mongodb_v1alpha1.js +37 -0
- package/lib/unstable-services/mongodb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts +477 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.d.ts.map +1 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js +2 -0
- package/lib/unstable-services/product_catalog_public_catalog_v2alpha1.js.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts +764 -0
- package/lib/unstable-services/qaas_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/qaas_v1alpha1.js +51 -0
- package/lib/unstable-services/qaas_v1alpha1.js.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts +794 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js +45 -0
- package/lib/unstable-services/s2s_vpn_v1alpha1.js.map +1 -0
- package/lib/unstable-services/search_v1alpha1.d.ts +120 -0
- package/lib/unstable-services/search_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/search_v1alpha1.js +2 -0
- package/lib/unstable-services/search_v1alpha1.js.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts +424 -0
- package/lib/unstable-services/searchdb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/searchdb_v1alpha1.js +29 -0
- package/lib/unstable-services/searchdb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts +407 -0
- package/lib/unstable-services/secret_manager_v1beta1.d.ts.map +1 -0
- package/lib/unstable-services/secret_manager_v1beta1.js +32 -0
- package/lib/unstable-services/secret_manager_v1beta1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts +331 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js +28 -0
- package/lib/unstable-services/serverless_jobs_v1alpha1.js.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts +546 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.d.ts.map +1 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js +35 -0
- package/lib/unstable-services/serverless_jobs_v1alpha2.js.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts +239 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js +2 -0
- package/lib/unstable-services/serverless_sqldb_v1alpha1.js.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts +936 -0
- package/lib/unstable-services/transactional_email_v1alpha1.d.ts.map +1 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js +46 -0
- package/lib/unstable-services/transactional_email_v1alpha1.js.map +1 -0
- package/lib/unstable-services.lazy/apple_silicon_private_network_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/apple_silicon_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/audit_trail_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/autoscaling_v1alpha2.js +1 -0
- package/lib/unstable-services.lazy/billing_fin_ops_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/billing_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/block_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/data_orchestrator_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/datalab_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/dataviz_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/datawarehouse_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_registrar_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/domain_suggestion_v2beta1.js +1 -0
- package/lib/unstable-services.lazy/domain_v2beta1.js +3 -0
- package/lib/unstable-services.lazy/edge_services_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/environmental_footprint_user_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/file_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/flexible_ip_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/functions_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/iam_unauthenticated_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/iam_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/instance_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/instance_volume_v2alpha1.js +3 -0
- package/lib/unstable-services.lazy/interlink_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/kafka_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/key_manager_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mailbox_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/messageq_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/mnq_console_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_nats_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sns_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mnq_sqs_v1beta1.js +1 -0
- package/lib/unstable-services.lazy/mongodb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/product_catalog_public_catalog_v2alpha1.js +1 -0
- package/lib/unstable-services.lazy/qaas_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/s2s_vpn_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/search_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/searchdb_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/secret_manager_v1beta1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha1.js +3 -0
- package/lib/unstable-services.lazy/serverless_jobs_v1alpha2.js +3 -0
- package/lib/unstable-services.lazy/serverless_sqldb_v1alpha1.js +1 -0
- package/lib/unstable-services.lazy/transactional_email_v1alpha1.js +3 -0
- package/package.json +89 -2
- package/src/credentials.ts +104 -0
- package/src/errors.ts +307 -0
- package/src/index.ts +52 -0
- package/src/pagination.ts +65 -0
- package/src/protocol.ts +496 -0
- package/src/retry.ts +47 -0
- package/src/services/account_contract_v3.ts +441 -0
- package/src/services/account_iso_code_v3.ts +165 -0
- package/src/services/account_organization_v3.ts +946 -0
- package/src/services/account_project_v3.ts +530 -0
- package/src/services/account_unauthenticated_user_v3.ts +1445 -0
- package/src/services/account_unauthenticated_v3.ts +92 -0
- package/src/services/account_user_v3.ts +1657 -0
- package/src/services/annotations_v1.ts +897 -0
- package/src/services/baremetal_private_network_v1.ts +327 -0
- package/src/services/baremetal_private_network_v3.ts +376 -0
- package/src/services/baremetal_v1.ts +3072 -0
- package/src/services/billing_electronic_billing_v2.ts +323 -0
- package/src/services/billing_v2.ts +662 -0
- package/src/services/block_v1.ts +1282 -0
- package/src/services/cockpit_global_v1.ts +282 -0
- package/src/services/cockpit_regional_v1.ts +2177 -0
- package/src/services/containers_v1.ts +2110 -0
- package/src/services/dedibox_billing_v1.ts +621 -0
- package/src/services/dedibox_ipv6_block_v1.ts +468 -0
- package/src/services/dedibox_rpn_san_v1.ts +1185 -0
- package/src/services/dedibox_rpn_v1.ts +207 -0
- package/src/services/dedibox_rpn_v1_v1.ts +1763 -0
- package/src/services/dedibox_rpn_v2_v1.ts +1654 -0
- package/src/services/dedibox_v1.ts +3765 -0
- package/src/services/generative_apis_openai_v1.ts +1692 -0
- package/src/services/generative_apis_v1.ts +251 -0
- package/src/services/index.ts +57 -0
- package/src/services/inference_v1.ts +1353 -0
- package/src/services/instance_v1.ts +6611 -0
- package/src/services/iot_v1.ts +2419 -0
- package/src/services/ipam_v1.ts +716 -0
- package/src/services/k8s_v1.ts +3108 -0
- package/src/services/lb_zoned_v1.ts +4533 -0
- package/src/services/marketplace_console_v2.ts +198 -0
- package/src/services/marketplace_v2.ts +625 -0
- package/src/services/mongodb_v1.ts +2104 -0
- package/src/services/partner_v1.ts +462 -0
- package/src/services/rdb_encryption_v1.ts +83 -0
- package/src/services/rdb_v1.ts +4211 -0
- package/src/services/redis_v1.ts +1918 -0
- package/src/services/registry_v1.ts +863 -0
- package/src/services/reseller_v1.ts +258 -0
- package/src/services/vpc_gw_v2.ts +2130 -0
- package/src/services/vpc_private_network_with_nics_v2.ts +311 -0
- package/src/services/vpc_routes_with_nexthop_v2.ts +226 -0
- package/src/services/vpc_v2.ts +2533 -0
- package/src/services/webhosting_backup_v1.ts +578 -0
- package/src/services/webhosting_control_panel_v1.ts +130 -0
- package/src/services/webhosting_database_v1.ts +682 -0
- package/src/services/webhosting_dedibox_v1.ts +480 -0
- package/src/services/webhosting_dns_v1.ts +471 -0
- package/src/services/webhosting_free_domain_v1.ts +190 -0
- package/src/services/webhosting_ftp_account_v1.ts +280 -0
- package/src/services/webhosting_hosting_v1.ts +1309 -0
- package/src/services/webhosting_mail_account_v1.ts +291 -0
- package/src/services/webhosting_offer_v1.ts +289 -0
- package/src/services/webhosting_website_v1.ts +274 -0
- package/src/traits.ts +63 -0
- package/src/unstable-services/apple_silicon_private_network_v1alpha1.ts +395 -0
- package/src/unstable-services/apple_silicon_v1alpha1.ts +1685 -0
- package/src/unstable-services/audit_trail_v1alpha1.ts +3220 -0
- package/src/unstable-services/autoscaling_v1alpha2.ts +1103 -0
- package/src/unstable-services/billing_fin_ops_v2beta1.ts +195 -0
- package/src/unstable-services/billing_v2beta1.ts +1203 -0
- package/src/unstable-services/block_v1alpha1.ts +1239 -0
- package/src/unstable-services/data_orchestrator_v1alpha2.ts +1230 -0
- package/src/unstable-services/datalab_v1beta1.ts +852 -0
- package/src/unstable-services/dataviz_v1alpha1.ts +1478 -0
- package/src/unstable-services/datawarehouse_v1beta1.ts +1504 -0
- package/src/unstable-services/domain_registrar_v2beta1.ts +2979 -0
- package/src/unstable-services/domain_suggestion_v2beta1.ts +86 -0
- package/src/unstable-services/domain_v2beta1.ts +1794 -0
- package/src/unstable-services/edge_services_v1beta1.ts +3724 -0
- package/src/unstable-services/environmental_footprint_user_v1alpha1.ts +429 -0
- package/src/unstable-services/file_v1alpha1.ts +1016 -0
- package/src/unstable-services/flexible_ip_v1alpha1.ts +804 -0
- package/src/unstable-services/functions_v1beta1.ts +2410 -0
- package/src/unstable-services/iam_unauthenticated_v1alpha1.ts +863 -0
- package/src/unstable-services/iam_v1alpha1.ts +4919 -0
- package/src/unstable-services/index.ts +44 -0
- package/src/unstable-services/instance_v2alpha1.ts +5377 -0
- package/src/unstable-services/instance_volume_v2alpha1.ts +1111 -0
- package/src/unstable-services/interlink_v1beta1.ts +1791 -0
- package/src/unstable-services/kafka_v1alpha1.ts +1275 -0
- package/src/unstable-services/key_manager_v1alpha1.ts +1618 -0
- package/src/unstable-services/mailbox_v1alpha1.ts +1561 -0
- package/src/unstable-services/messageq_v1alpha1.ts +1266 -0
- package/src/unstable-services/mnq_console_v1beta1.ts +111 -0
- package/src/unstable-services/mnq_nats_v1beta1.ts +608 -0
- package/src/unstable-services/mnq_sns_v1beta1.ts +523 -0
- package/src/unstable-services/mnq_sqs_v1beta1.ts +523 -0
- package/src/unstable-services/mongodb_v1alpha1.ts +1789 -0
- package/src/unstable-services/product_catalog_public_catalog_v2alpha1.ts +1109 -0
- package/src/unstable-services/qaas_v1alpha1.ts +2404 -0
- package/src/unstable-services/s2s_vpn_v1alpha1.ts +2173 -0
- package/src/unstable-services/search_v1alpha1.ts +349 -0
- package/src/unstable-services/searchdb_v1alpha1.ts +1273 -0
- package/src/unstable-services/secret_manager_v1beta1.ts +1255 -0
- package/src/unstable-services/serverless_jobs_v1alpha1.ts +1017 -0
- package/src/unstable-services/serverless_jobs_v1alpha2.ts +1516 -0
- package/src/unstable-services/serverless_sqldb_v1alpha1.ts +747 -0
- package/src/unstable-services/transactional_email_v1alpha1.ts +2495 -0
|
@@ -0,0 +1,1504 @@
|
|
|
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: "DatawarehouseV1beta1",
|
|
26
|
+
labels: "scaleway",
|
|
27
|
+
propagate: "w3c",
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
export type CreateDatabaseRequestRegion = "fr-par";
|
|
31
|
+
export interface CreateDatabaseRequest {
|
|
32
|
+
/** The region you want to target */
|
|
33
|
+
region?: CreateDatabaseRequestRegion | (string & {}) | undefined;
|
|
34
|
+
/** UUID of the deployment. */
|
|
35
|
+
deployment_id: string;
|
|
36
|
+
/** Name of the database. */
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
}
|
|
39
|
+
export interface Database {
|
|
40
|
+
/** Name of the database. */
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
/** Size of the database. (in bytes) */
|
|
43
|
+
size?: number | undefined;
|
|
44
|
+
/** Identifier of the deployment. (UUID format) */
|
|
45
|
+
deployment_id?: string | undefined;
|
|
46
|
+
/** Region of the deployment. */
|
|
47
|
+
region?: string | undefined;
|
|
48
|
+
/** The SRN of the database. */
|
|
49
|
+
srn?: string | undefined;
|
|
50
|
+
}
|
|
51
|
+
export type CreateDeploymentRequestRegion = "fr-par";
|
|
52
|
+
/** Tags to apply to the deployment. */
|
|
53
|
+
export type CreateDeploymentRequestTagsList = Array<string>;
|
|
54
|
+
export interface EndpointSpecPrivateNetworkSummary {
|
|
55
|
+
/** UUID of the Private Network. */
|
|
56
|
+
private_network_id?: string | undefined;
|
|
57
|
+
}
|
|
58
|
+
export interface EndpointSpec {
|
|
59
|
+
/** Precisely one of public, private_network can be set. */
|
|
60
|
+
public?: unknown | null | undefined;
|
|
61
|
+
/** Precisely one of public, private_network can be set. */
|
|
62
|
+
private_network?: EndpointSpecPrivateNetworkSummary | null | undefined;
|
|
63
|
+
}
|
|
64
|
+
/** Endpoints to associate with the deployment. */
|
|
65
|
+
export type CreateDeploymentRequestEndpointsList = Array<EndpointSpec>;
|
|
66
|
+
export interface CreateDeploymentRequest {
|
|
67
|
+
/** The region you want to target */
|
|
68
|
+
region?: CreateDeploymentRequestRegion | (string & {}) | undefined;
|
|
69
|
+
/** The Project ID on which the deployment will be created. */
|
|
70
|
+
project_id?: string | undefined;
|
|
71
|
+
/** Name of the deployment. */
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
/** Tags to apply to the deployment. */
|
|
74
|
+
tags?: CreateDeploymentRequestTagsList | undefined;
|
|
75
|
+
/** ClickHouse® version to use for the deployment. */
|
|
76
|
+
version?: string | undefined;
|
|
77
|
+
/** Number of replicas for the deployment. */
|
|
78
|
+
replica_count?: number | undefined;
|
|
79
|
+
/** Number of shard for the deployment. */
|
|
80
|
+
shard_count?: number | null | undefined;
|
|
81
|
+
/** Password for the initial user. */
|
|
82
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
83
|
+
/** Minimum CPU count for the deployment. */
|
|
84
|
+
cpu_min?: number | undefined;
|
|
85
|
+
/** Maximum CPU count for the deployment. */
|
|
86
|
+
cpu_max?: number | undefined;
|
|
87
|
+
/** Endpoints to associate with the deployment. */
|
|
88
|
+
endpoints?: CreateDeploymentRequestEndpointsList | undefined;
|
|
89
|
+
/** RAM per CPU count for the deployment (in GB). */
|
|
90
|
+
ram_per_cpu?: number | undefined;
|
|
91
|
+
/** For the `tiered` storage policy, controls when data is moved from the hot volume (Block Storage) to the cold volume (Object Storage). Data is moved once free space on the hot volume drops below this fraction of its capacity. Value between 0 and 1 (default 0.1, i.e. data is moved when the hot volume is 90% full). */
|
|
92
|
+
move_factor?: number | null | undefined;
|
|
93
|
+
/** ID of a Key Manager key of the Project, used to encrypt the deployment data at rest. The key must be enabled, with a symmetric encryption usage. Encryption can only be chosen at creation, it cannot be enabled, disabled or changed afterwards. (UUID format) */
|
|
94
|
+
kms_key_id?: string | null | undefined;
|
|
95
|
+
}
|
|
96
|
+
export type DeploymentStatus =
|
|
97
|
+
| "unknown_status"
|
|
98
|
+
| "ready"
|
|
99
|
+
| "creating"
|
|
100
|
+
| "configuring"
|
|
101
|
+
| "deleting"
|
|
102
|
+
| "error"
|
|
103
|
+
| "locked"
|
|
104
|
+
| "locking"
|
|
105
|
+
| "unlocking"
|
|
106
|
+
| "deploying"
|
|
107
|
+
| "stopping"
|
|
108
|
+
| "starting"
|
|
109
|
+
| "stopped";
|
|
110
|
+
/** List of tags applied to the deployment. */
|
|
111
|
+
export type DeploymentTagsList = Array<string>;
|
|
112
|
+
export type EndpointServiceProtocol = "unknown_protocol" | "tcp" | "https" | "mysql";
|
|
113
|
+
export interface EndpointService {
|
|
114
|
+
protocol?: EndpointServiceProtocol | undefined;
|
|
115
|
+
port?: number | undefined;
|
|
116
|
+
}
|
|
117
|
+
/** List of services associated with the endpoint. */
|
|
118
|
+
export type EndpointServicesList = Array<EndpointService>;
|
|
119
|
+
export interface NodePrivateNetworkDetails {
|
|
120
|
+
/** Name of the node. */
|
|
121
|
+
node_name?: string | undefined;
|
|
122
|
+
/** The ClickHouse shard to which the node belongs to. */
|
|
123
|
+
shard?: number | undefined;
|
|
124
|
+
/** The ClickHouse replica to which the node belongs to. */
|
|
125
|
+
replica?: number | undefined;
|
|
126
|
+
/** Private static IP address of that node. */
|
|
127
|
+
ip_address?: string | undefined;
|
|
128
|
+
}
|
|
129
|
+
/** List of nodes belonging to this private network and their details. */
|
|
130
|
+
export type PrivateNetworkDetailsNodesList = Array<NodePrivateNetworkDetails>;
|
|
131
|
+
export interface PrivateNetworkDetails {
|
|
132
|
+
/** UUID of the Private Network. */
|
|
133
|
+
private_network_id?: string | undefined;
|
|
134
|
+
/** List of nodes belonging to this private network and their details. */
|
|
135
|
+
nodes?: PrivateNetworkDetailsNodesList | undefined;
|
|
136
|
+
}
|
|
137
|
+
export interface Endpoint {
|
|
138
|
+
/** Unique identifier of the endpoint. (UUID format) */
|
|
139
|
+
id?: string | undefined;
|
|
140
|
+
/** DNS record associated with the endpoint. */
|
|
141
|
+
dns_record?: string | undefined;
|
|
142
|
+
/** List of services associated with the endpoint. */
|
|
143
|
+
services?: EndpointServicesList | undefined;
|
|
144
|
+
/** Private Network endpoint details. Precisely one of private_network, public can be set. */
|
|
145
|
+
private_network?: PrivateNetworkDetails | null | undefined;
|
|
146
|
+
/** Public endpoint details. Precisely one of private_network, public can be set. */
|
|
147
|
+
public?: unknown | null | undefined;
|
|
148
|
+
/** Region of the deployment. */
|
|
149
|
+
region?: string | undefined;
|
|
150
|
+
/** The SRN of the endpoint. */
|
|
151
|
+
srn?: string | undefined;
|
|
152
|
+
}
|
|
153
|
+
/** List of endpoints associated with the deployment. */
|
|
154
|
+
export type DeploymentEndpointsList = Array<Endpoint>;
|
|
155
|
+
export interface Deployment {
|
|
156
|
+
/** Unique identifier. (UUID format) */
|
|
157
|
+
id?: string | undefined;
|
|
158
|
+
/** Name of the deployment. */
|
|
159
|
+
name?: string | undefined;
|
|
160
|
+
/** Organization ID. (UUID format) */
|
|
161
|
+
organization_id?: string | undefined;
|
|
162
|
+
/** Project ID. (UUID format) */
|
|
163
|
+
project_id?: string | undefined;
|
|
164
|
+
/** Status of the deployment. */
|
|
165
|
+
status?: DeploymentStatus | undefined;
|
|
166
|
+
/** List of tags applied to the deployment. */
|
|
167
|
+
tags?: DeploymentTagsList | undefined;
|
|
168
|
+
/** Creation date of the deployment. (RFC 3339 format) */
|
|
169
|
+
created_at?: string | null | undefined;
|
|
170
|
+
/** Last modification date of the deployment. (RFC 3339 format) */
|
|
171
|
+
updated_at?: string | null | undefined;
|
|
172
|
+
/** ClickHouse® version. */
|
|
173
|
+
version?: string | undefined;
|
|
174
|
+
/** Number of replicas for the deployment. */
|
|
175
|
+
replica_count?: number | undefined;
|
|
176
|
+
/** Number of shards for the deployment. */
|
|
177
|
+
shard_count?: number | undefined;
|
|
178
|
+
/** Minimum CPU count for the deployment. */
|
|
179
|
+
cpu_min?: number | undefined;
|
|
180
|
+
/** Maximum CPU count for the deployment. */
|
|
181
|
+
cpu_max?: number | undefined;
|
|
182
|
+
/** List of endpoints associated with the deployment. */
|
|
183
|
+
endpoints?: DeploymentEndpointsList | undefined;
|
|
184
|
+
/** RAM per CPU count for the deployment (in GB). */
|
|
185
|
+
ram_per_cpu?: number | undefined;
|
|
186
|
+
/** For the `tiered` storage policy, controls when data is moved from the hot volume (Block Storage) to the cold volume (Object Storage). Data is moved once free space on the hot volume drops below this fraction of its capacity. Value between 0 and 1 (default 0.1, i.e. data is moved when the hot volume is 90% full). */
|
|
187
|
+
move_factor?: number | undefined;
|
|
188
|
+
/** ID of the Key Manager key encrypting the deployment data at rest. Empty if the deployment is not encrypted. (UUID format) */
|
|
189
|
+
kms_key_id?: string | null | undefined;
|
|
190
|
+
/** Region of the deployment. */
|
|
191
|
+
region?: string | undefined;
|
|
192
|
+
/** The SRN of the deployment. */
|
|
193
|
+
srn?: string | undefined;
|
|
194
|
+
}
|
|
195
|
+
export type CreateEndpointRequestRegion = "fr-par";
|
|
196
|
+
export interface CreateEndpointRequest {
|
|
197
|
+
/** The region you want to target */
|
|
198
|
+
region?: CreateEndpointRequestRegion | (string & {}) | undefined;
|
|
199
|
+
/** UUID of the deployment. */
|
|
200
|
+
deployment_id?: string | undefined;
|
|
201
|
+
/** Endpoint specification. */
|
|
202
|
+
endpoint?: EndpointSpec | undefined;
|
|
203
|
+
}
|
|
204
|
+
export type CreateUserRequestRegion = "fr-par";
|
|
205
|
+
export interface CreateUserRequest {
|
|
206
|
+
/** The region you want to target */
|
|
207
|
+
region?: CreateUserRequestRegion | (string & {}) | undefined;
|
|
208
|
+
/** UUID of the deployment. */
|
|
209
|
+
deployment_id: string;
|
|
210
|
+
/** Name of the user. */
|
|
211
|
+
name?: string | undefined;
|
|
212
|
+
/** Password for the user. */
|
|
213
|
+
password?: string | Redacted.Redacted<string> | undefined;
|
|
214
|
+
/** Indicates if the user is an administrator. */
|
|
215
|
+
is_admin?: boolean | undefined;
|
|
216
|
+
}
|
|
217
|
+
export interface User {
|
|
218
|
+
/** Name of the user. */
|
|
219
|
+
name?: string | undefined;
|
|
220
|
+
/** Indicates if the user is an administrator. */
|
|
221
|
+
is_admin?: boolean | undefined;
|
|
222
|
+
/** Identifier of the deployment. (UUID format) */
|
|
223
|
+
deployment_id?: string | undefined;
|
|
224
|
+
/** Region of the deployment. */
|
|
225
|
+
region?: string | undefined;
|
|
226
|
+
/** The SRN of the user. */
|
|
227
|
+
srn?: string | undefined;
|
|
228
|
+
}
|
|
229
|
+
export type DeleteDatabaseRequestRegion = "fr-par";
|
|
230
|
+
export interface DeleteDatabaseRequest {
|
|
231
|
+
/** The region you want to target */
|
|
232
|
+
region?: DeleteDatabaseRequestRegion | (string & {}) | undefined;
|
|
233
|
+
/** UUID of the deployment. */
|
|
234
|
+
deployment_id: string;
|
|
235
|
+
/** Name of the database to delete. */
|
|
236
|
+
name: string;
|
|
237
|
+
}
|
|
238
|
+
export interface DeleteDatabaseResponse {}
|
|
239
|
+
export type DeleteDeploymentRequestRegion = "fr-par";
|
|
240
|
+
export interface DeleteDeploymentRequest {
|
|
241
|
+
/** The region you want to target */
|
|
242
|
+
region?: DeleteDeploymentRequestRegion | (string & {}) | undefined;
|
|
243
|
+
/** UUID of the deployment to delete. */
|
|
244
|
+
deployment_id: string;
|
|
245
|
+
}
|
|
246
|
+
export type DeleteEndpointRequestRegion = "fr-par";
|
|
247
|
+
export interface DeleteEndpointRequest {
|
|
248
|
+
/** The region you want to target */
|
|
249
|
+
region?: DeleteEndpointRequestRegion | (string & {}) | undefined;
|
|
250
|
+
/** UUID of the Endpoint to delete. */
|
|
251
|
+
endpoint_id: string;
|
|
252
|
+
}
|
|
253
|
+
export interface DeleteEndpointResponse {}
|
|
254
|
+
export type DeleteUserRequestRegion = "fr-par";
|
|
255
|
+
export interface DeleteUserRequest {
|
|
256
|
+
/** The region you want to target */
|
|
257
|
+
region?: DeleteUserRequestRegion | (string & {}) | undefined;
|
|
258
|
+
/** UUID of the deployment. */
|
|
259
|
+
deployment_id: string;
|
|
260
|
+
/** Name of the user to delete. */
|
|
261
|
+
name: string;
|
|
262
|
+
}
|
|
263
|
+
export interface DeleteUserResponse {}
|
|
264
|
+
export type GetDeploymentRequestRegion = "fr-par";
|
|
265
|
+
export interface GetDeploymentRequest {
|
|
266
|
+
/** The region you want to target */
|
|
267
|
+
region?: GetDeploymentRequestRegion | (string & {}) | undefined;
|
|
268
|
+
/** UUID of the deployment. */
|
|
269
|
+
deployment_id: string;
|
|
270
|
+
}
|
|
271
|
+
export type GetDeploymentCertificateRequestRegion = "fr-par";
|
|
272
|
+
export interface GetDeploymentCertificateRequest {
|
|
273
|
+
/** The region you want to target */
|
|
274
|
+
region?: GetDeploymentCertificateRequestRegion | (string & {}) | undefined;
|
|
275
|
+
/** UUID of the deployment. */
|
|
276
|
+
deployment_id: string;
|
|
277
|
+
}
|
|
278
|
+
export interface ScalewayStdFile {
|
|
279
|
+
name?: string | undefined;
|
|
280
|
+
content_type?: string | undefined;
|
|
281
|
+
content?: string | undefined;
|
|
282
|
+
}
|
|
283
|
+
export interface GetDeploymentCertificateRawRequest {
|
|
284
|
+
/** The region you want to target */
|
|
285
|
+
region?: GetDeploymentCertificateRequestRegion | (string & {}) | undefined;
|
|
286
|
+
/** UUID of the deployment. */
|
|
287
|
+
deployment_id: string;
|
|
288
|
+
}
|
|
289
|
+
export interface GetDeploymentCertificateRawResponse {
|
|
290
|
+
body: BinaryStream;
|
|
291
|
+
/** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
|
|
292
|
+
contentType?: string | undefined;
|
|
293
|
+
}
|
|
294
|
+
export type ListDatabasesRequestRegion = "fr-par";
|
|
295
|
+
export type ListDatabasesRequestOrderBy = "name_asc" | "name_desc" | "size_asc" | "size_desc";
|
|
296
|
+
export interface ListDatabasesRequest {
|
|
297
|
+
/** The region you want to target */
|
|
298
|
+
region?: ListDatabasesRequestRegion | (string & {}) | undefined;
|
|
299
|
+
/** UUID of the deployment. */
|
|
300
|
+
deployment_id: string;
|
|
301
|
+
/** Name of the database to filter by. */
|
|
302
|
+
name?: string | undefined;
|
|
303
|
+
/** Criteria to use when ordering database listings. */
|
|
304
|
+
order_by?: ListDatabasesRequestOrderBy | (string & {}) | undefined;
|
|
305
|
+
page?: number | undefined;
|
|
306
|
+
page_size?: number | undefined;
|
|
307
|
+
}
|
|
308
|
+
/** List of databases associated with the deployment. */
|
|
309
|
+
export type ListDatabasesResponseDatabasesList = Array<Database>;
|
|
310
|
+
export interface ListDatabasesResponse {
|
|
311
|
+
/** List of databases associated with the deployment. */
|
|
312
|
+
databases: ListDatabasesResponseDatabasesList;
|
|
313
|
+
/** Total count of databases associated with the deployment. */
|
|
314
|
+
total_count?: number | undefined;
|
|
315
|
+
}
|
|
316
|
+
export type ListDeploymentsRequestRegion = "fr-par";
|
|
317
|
+
export type ListDeploymentsRequestTagsList = Array<string>;
|
|
318
|
+
export type ListDeploymentsRequestOrderBy =
|
|
319
|
+
| "created_at_desc"
|
|
320
|
+
| "created_at_asc"
|
|
321
|
+
| "name_asc"
|
|
322
|
+
| "name_desc";
|
|
323
|
+
export interface ListDeploymentsRequest {
|
|
324
|
+
/** The region you want to target */
|
|
325
|
+
region?: ListDeploymentsRequestRegion | (string & {}) | undefined;
|
|
326
|
+
/** List deployments with a given tag. */
|
|
327
|
+
tags?: ListDeploymentsRequestTagsList | undefined;
|
|
328
|
+
/** Lists deployments that match a name pattern. */
|
|
329
|
+
name?: string | undefined;
|
|
330
|
+
/** Criteria to use when ordering deployment listings. */
|
|
331
|
+
order_by?: ListDeploymentsRequestOrderBy | (string & {}) | undefined;
|
|
332
|
+
/** Organization ID the deployment belongs to. (UUID format) */
|
|
333
|
+
organization_id?: string | undefined;
|
|
334
|
+
/** Project ID the deployment belongs to. (UUID format) */
|
|
335
|
+
project_id?: string | undefined;
|
|
336
|
+
page?: number | undefined;
|
|
337
|
+
page_size?: number | undefined;
|
|
338
|
+
}
|
|
339
|
+
/** List of all deployments available in an Organization or Project. */
|
|
340
|
+
export type ListDeploymentsResponseDeploymentsList = Array<Deployment>;
|
|
341
|
+
export interface ListDeploymentsResponse {
|
|
342
|
+
/** List of all deployments available in an Organization or Project. */
|
|
343
|
+
deployments: ListDeploymentsResponseDeploymentsList;
|
|
344
|
+
/** Total count of deployments available in an Organization or Project. */
|
|
345
|
+
total_count?: number | undefined;
|
|
346
|
+
}
|
|
347
|
+
export type ListPresetsRequestRegion = "fr-par";
|
|
348
|
+
export interface ListPresetsRequest {
|
|
349
|
+
/** The region you want to target */
|
|
350
|
+
region?: ListPresetsRequestRegion | (string & {}) | undefined;
|
|
351
|
+
page?: number | undefined;
|
|
352
|
+
page_size?: number | undefined;
|
|
353
|
+
}
|
|
354
|
+
export interface Preset {
|
|
355
|
+
/** Name of the preset. */
|
|
356
|
+
name?: string | undefined;
|
|
357
|
+
/** Category of the preset. */
|
|
358
|
+
category?: string | undefined;
|
|
359
|
+
/** Minimum CPU count for the preset. */
|
|
360
|
+
cpu_min?: number | undefined;
|
|
361
|
+
/** Maximum CPU count for the preset. */
|
|
362
|
+
cpu_max?: number | undefined;
|
|
363
|
+
/** RAM per CPU count for the preset (in GB). */
|
|
364
|
+
ram_per_cpu?: number | undefined;
|
|
365
|
+
/** Number of replicas for the preset. */
|
|
366
|
+
replica_count?: number | undefined;
|
|
367
|
+
/** Number of shards for the preset. */
|
|
368
|
+
shard_count?: number | undefined;
|
|
369
|
+
}
|
|
370
|
+
/** List of available presets. */
|
|
371
|
+
export type ListPresetsResponsePresetsList = Array<Preset>;
|
|
372
|
+
export interface ListPresetsResponse {
|
|
373
|
+
/** List of available presets. */
|
|
374
|
+
presets: ListPresetsResponsePresetsList;
|
|
375
|
+
/** Total count of presets available. */
|
|
376
|
+
total_count?: number | undefined;
|
|
377
|
+
}
|
|
378
|
+
export type ListUsersRequestRegion = "fr-par";
|
|
379
|
+
export type ListUsersRequestOrderBy = "name_asc" | "name_desc";
|
|
380
|
+
export interface ListUsersRequest {
|
|
381
|
+
/** The region you want to target */
|
|
382
|
+
region?: ListUsersRequestRegion | (string & {}) | undefined;
|
|
383
|
+
/** UUID of the deployment. */
|
|
384
|
+
deployment_id: string;
|
|
385
|
+
/** Name of the user to filter by. */
|
|
386
|
+
name?: string | undefined;
|
|
387
|
+
/** Criteria to use when ordering user listings. */
|
|
388
|
+
order_by?: ListUsersRequestOrderBy | (string & {}) | undefined;
|
|
389
|
+
page?: number | undefined;
|
|
390
|
+
page_size?: number | undefined;
|
|
391
|
+
}
|
|
392
|
+
/** List of users associated with the deployment. */
|
|
393
|
+
export type ListUsersResponseUsersList = Array<User>;
|
|
394
|
+
export interface ListUsersResponse {
|
|
395
|
+
/** List of users associated with the deployment. */
|
|
396
|
+
users: ListUsersResponseUsersList;
|
|
397
|
+
/** Total count of users associated with the deployment. */
|
|
398
|
+
total_count?: number | undefined;
|
|
399
|
+
}
|
|
400
|
+
export type ListVersionsRequestRegion = "fr-par";
|
|
401
|
+
export interface ListVersionsRequest {
|
|
402
|
+
/** The region you want to target */
|
|
403
|
+
region?: ListVersionsRequestRegion | (string & {}) | undefined;
|
|
404
|
+
version?: string | undefined;
|
|
405
|
+
page?: number | undefined;
|
|
406
|
+
page_size?: number | undefined;
|
|
407
|
+
}
|
|
408
|
+
export interface Version {
|
|
409
|
+
/** Deployment version. */
|
|
410
|
+
version?: string | undefined;
|
|
411
|
+
/** Date of End of Life. (RFC 3339 format) */
|
|
412
|
+
end_of_life_at?: string | null | undefined;
|
|
413
|
+
}
|
|
414
|
+
/** Available deployment version. */
|
|
415
|
+
export type ListVersionsResponseVersionsList = Array<Version>;
|
|
416
|
+
export interface ListVersionsResponse {
|
|
417
|
+
/** Available deployment version. */
|
|
418
|
+
versions: ListVersionsResponseVersionsList;
|
|
419
|
+
/** Total count of deployment version available. */
|
|
420
|
+
total_count?: number | undefined;
|
|
421
|
+
}
|
|
422
|
+
export type StartDeploymentRequestRegion = "fr-par";
|
|
423
|
+
export interface StartDeploymentRequest {
|
|
424
|
+
/** The region you want to target */
|
|
425
|
+
region?: StartDeploymentRequestRegion | (string & {}) | undefined;
|
|
426
|
+
/** UUID of the deployment. */
|
|
427
|
+
deployment_id: string;
|
|
428
|
+
}
|
|
429
|
+
export type StopDeploymentRequestRegion = "fr-par";
|
|
430
|
+
export interface StopDeploymentRequest {
|
|
431
|
+
/** The region you want to target */
|
|
432
|
+
region?: StopDeploymentRequestRegion | (string & {}) | undefined;
|
|
433
|
+
/** UUID of the deployment. */
|
|
434
|
+
deployment_id: string;
|
|
435
|
+
}
|
|
436
|
+
export type UpdateDeploymentRequestRegion = "fr-par";
|
|
437
|
+
/** Tags of a deployment. */
|
|
438
|
+
export type UpdateDeploymentRequestTagsList = Array<unknown>;
|
|
439
|
+
export interface UpdateDeploymentRequest {
|
|
440
|
+
/** The region you want to target */
|
|
441
|
+
region?: UpdateDeploymentRequestRegion | (string & {}) | undefined;
|
|
442
|
+
/** UUID of the deployment to update. */
|
|
443
|
+
deployment_id: string;
|
|
444
|
+
/** Name of the deployment. */
|
|
445
|
+
name?: string | null | undefined;
|
|
446
|
+
/** Tags of a deployment. */
|
|
447
|
+
tags?: UpdateDeploymentRequestTagsList | null | undefined;
|
|
448
|
+
/** Minimum CPU count for the deployment. */
|
|
449
|
+
cpu_min?: number | null | undefined;
|
|
450
|
+
/** Maximum CPU count for the deployment. */
|
|
451
|
+
cpu_max?: number | null | undefined;
|
|
452
|
+
/** Number of replicas for the deployment. */
|
|
453
|
+
replica_count?: number | null | undefined;
|
|
454
|
+
/** For the `tiered` storage policy, controls when data is moved from the hot volume (Block Storage) to the cold volume (Object Storage). Data is moved once free space on the hot volume drops below this fraction of its capacity. Value between 0 and 1 (default 0.1, i.e. data is moved when the hot volume is 90% full). */
|
|
455
|
+
move_factor?: number | null | undefined;
|
|
456
|
+
}
|
|
457
|
+
export type UpdateUserRequestRegion = "fr-par";
|
|
458
|
+
export interface UpdateUserRequest {
|
|
459
|
+
/** The region you want to target */
|
|
460
|
+
region?: UpdateUserRequestRegion | (string & {}) | undefined;
|
|
461
|
+
/** UUID of the deployment. */
|
|
462
|
+
deployment_id: string;
|
|
463
|
+
/** Name of the user. */
|
|
464
|
+
name: string;
|
|
465
|
+
/** New password for the user. */
|
|
466
|
+
password?: string | Redacted.Redacted<string> | null | undefined;
|
|
467
|
+
/** Updates the user administrator permissions. */
|
|
468
|
+
is_admin?: boolean | null | undefined;
|
|
469
|
+
}
|
|
470
|
+
export type CreateDatabaseError = ScalewayOpError;
|
|
471
|
+
/** Create a new database within a deployment */
|
|
472
|
+
export const createDatabase: API.OperationMethod<
|
|
473
|
+
CreateDatabaseRequest,
|
|
474
|
+
Database,
|
|
475
|
+
CreateDatabaseError,
|
|
476
|
+
ScalewayOpContext
|
|
477
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
478
|
+
input: __S(0, __c0, 0) as any as S.Schema<CreateDatabaseRequest>,
|
|
479
|
+
output: __S(8, __c1, 0) as any as S.Schema<Database>,
|
|
480
|
+
errors: [],
|
|
481
|
+
serviceErrors: ScalewayServiceErrors,
|
|
482
|
+
protocol: ScalewayProtocol,
|
|
483
|
+
retry: Retry.Retry,
|
|
484
|
+
telemetry: TELEMETRY,
|
|
485
|
+
span: "CreateDatabase",
|
|
486
|
+
}));
|
|
487
|
+
|
|
488
|
+
export type CreateDeploymentError = ScalewayOpError;
|
|
489
|
+
/** Create a deployment Create a new deployment. */
|
|
490
|
+
export const createDeployment: API.OperationMethod<
|
|
491
|
+
CreateDeploymentRequest,
|
|
492
|
+
Deployment,
|
|
493
|
+
CreateDeploymentError,
|
|
494
|
+
ScalewayOpContext
|
|
495
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
496
|
+
input: __S(17, __c2, 1) as any as S.Schema<CreateDeploymentRequest>,
|
|
497
|
+
output: __S(42, __c5, 2) as any as S.Schema<Deployment>,
|
|
498
|
+
errors: [],
|
|
499
|
+
serviceErrors: ScalewayServiceErrors,
|
|
500
|
+
protocol: ScalewayProtocol,
|
|
501
|
+
retry: Retry.Retry,
|
|
502
|
+
telemetry: TELEMETRY,
|
|
503
|
+
span: "CreateDeployment",
|
|
504
|
+
}));
|
|
505
|
+
|
|
506
|
+
export type CreateEndpointError = ScalewayOpError;
|
|
507
|
+
/** Create a new endpoint for a deployment */
|
|
508
|
+
export const createEndpoint: API.OperationMethod<
|
|
509
|
+
CreateEndpointRequest,
|
|
510
|
+
Endpoint,
|
|
511
|
+
CreateEndpointError,
|
|
512
|
+
ScalewayOpContext
|
|
513
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
514
|
+
input: __S(128, __c16, 0) as any as S.Schema<CreateEndpointRequest>,
|
|
515
|
+
output: __S(37, __c4, 5) as any as S.Schema<Endpoint>,
|
|
516
|
+
errors: [],
|
|
517
|
+
serviceErrors: ScalewayServiceErrors,
|
|
518
|
+
protocol: ScalewayProtocol,
|
|
519
|
+
retry: Retry.Retry,
|
|
520
|
+
telemetry: TELEMETRY,
|
|
521
|
+
span: "CreateEndpoint",
|
|
522
|
+
}));
|
|
523
|
+
|
|
524
|
+
export type CreateUserError = ScalewayOpError;
|
|
525
|
+
/** Create a new user for a deployment */
|
|
526
|
+
export const createUser: API.OperationMethod<
|
|
527
|
+
CreateUserRequest,
|
|
528
|
+
User,
|
|
529
|
+
CreateUserError,
|
|
530
|
+
ScalewayOpContext
|
|
531
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
532
|
+
input: __S(136, __c17, 0) as any as S.Schema<CreateUserRequest>,
|
|
533
|
+
output: __S(144, __c18, 0) as any as S.Schema<User>,
|
|
534
|
+
errors: [],
|
|
535
|
+
serviceErrors: ScalewayServiceErrors,
|
|
536
|
+
protocol: ScalewayProtocol,
|
|
537
|
+
retry: Retry.Retry,
|
|
538
|
+
telemetry: TELEMETRY,
|
|
539
|
+
span: "CreateUser",
|
|
540
|
+
}));
|
|
541
|
+
|
|
542
|
+
export type DeleteDatabaseError = ScalewayOpError;
|
|
543
|
+
/** Delete a database from a deployment */
|
|
544
|
+
export const deleteDatabase: API.OperationMethod<
|
|
545
|
+
DeleteDatabaseRequest,
|
|
546
|
+
DeleteDatabaseResponse,
|
|
547
|
+
DeleteDatabaseError,
|
|
548
|
+
ScalewayOpContext
|
|
549
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
550
|
+
input: __S(152, __c19, 0) as any as S.Schema<DeleteDatabaseRequest>,
|
|
551
|
+
output: __S(160, __c20, 0) as any as S.Schema<DeleteDatabaseResponse>,
|
|
552
|
+
errors: [],
|
|
553
|
+
serviceErrors: ScalewayServiceErrors,
|
|
554
|
+
protocol: ScalewayProtocol,
|
|
555
|
+
retry: Retry.Retry,
|
|
556
|
+
telemetry: TELEMETRY,
|
|
557
|
+
span: "DeleteDatabase",
|
|
558
|
+
}));
|
|
559
|
+
|
|
560
|
+
export type DeleteDeploymentError = ScalewayOpError;
|
|
561
|
+
/** Delete a deployment Delete a given deployment, specified by the `region` and `deployment_id` parameters. Deleting a deployment is permanent, and cannot be undone. Upon deletion, all your data will be lost. */
|
|
562
|
+
export const deleteDeployment: API.OperationMethod<
|
|
563
|
+
DeleteDeploymentRequest,
|
|
564
|
+
Deployment,
|
|
565
|
+
DeleteDeploymentError,
|
|
566
|
+
ScalewayOpContext
|
|
567
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
568
|
+
input: __S(168, __c21, 0) as any as S.Schema<DeleteDeploymentRequest>,
|
|
569
|
+
output: __S(42, __c5, 2) as any as S.Schema<Deployment>,
|
|
570
|
+
errors: [],
|
|
571
|
+
serviceErrors: ScalewayServiceErrors,
|
|
572
|
+
protocol: ScalewayProtocol,
|
|
573
|
+
retry: Retry.Retry,
|
|
574
|
+
telemetry: TELEMETRY,
|
|
575
|
+
span: "DeleteDeployment",
|
|
576
|
+
}));
|
|
577
|
+
|
|
578
|
+
export type DeleteEndpointError = ScalewayOpError;
|
|
579
|
+
/** Delete an endpoint from a deployment */
|
|
580
|
+
export const deleteEndpoint: API.OperationMethod<
|
|
581
|
+
DeleteEndpointRequest,
|
|
582
|
+
DeleteEndpointResponse,
|
|
583
|
+
DeleteEndpointError,
|
|
584
|
+
ScalewayOpContext
|
|
585
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
586
|
+
input: __S(176, __c22, 0) as any as S.Schema<DeleteEndpointRequest>,
|
|
587
|
+
output: __S(160, __c20, 0) as any as S.Schema<DeleteEndpointResponse>,
|
|
588
|
+
errors: [],
|
|
589
|
+
serviceErrors: ScalewayServiceErrors,
|
|
590
|
+
protocol: ScalewayProtocol,
|
|
591
|
+
retry: Retry.Retry,
|
|
592
|
+
telemetry: TELEMETRY,
|
|
593
|
+
span: "DeleteEndpoint",
|
|
594
|
+
}));
|
|
595
|
+
|
|
596
|
+
export type DeleteUserError = ScalewayOpError;
|
|
597
|
+
/** Delete a user from a deployment */
|
|
598
|
+
export const deleteUser: API.OperationMethod<
|
|
599
|
+
DeleteUserRequest,
|
|
600
|
+
DeleteUserResponse,
|
|
601
|
+
DeleteUserError,
|
|
602
|
+
ScalewayOpContext
|
|
603
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
604
|
+
input: __S(184, __c23, 0) as any as S.Schema<DeleteUserRequest>,
|
|
605
|
+
output: __S(160, __c20, 0) as any as S.Schema<DeleteUserResponse>,
|
|
606
|
+
errors: [],
|
|
607
|
+
serviceErrors: ScalewayServiceErrors,
|
|
608
|
+
protocol: ScalewayProtocol,
|
|
609
|
+
retry: Retry.Retry,
|
|
610
|
+
telemetry: TELEMETRY,
|
|
611
|
+
span: "DeleteUser",
|
|
612
|
+
}));
|
|
613
|
+
|
|
614
|
+
export type GetDeploymentError = ScalewayOpError;
|
|
615
|
+
/** Get a deployment Retrieve information about a given deployment, specified by the `region` and `deployment_id` parameters. Its full details, including name, status are returned in the response object. */
|
|
616
|
+
export const getDeployment: API.OperationMethod<
|
|
617
|
+
GetDeploymentRequest,
|
|
618
|
+
Deployment,
|
|
619
|
+
GetDeploymentError,
|
|
620
|
+
ScalewayOpContext
|
|
621
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
622
|
+
input: __S(192, __c24, 0) as any as S.Schema<GetDeploymentRequest>,
|
|
623
|
+
output: __S(42, __c5, 2) as any as S.Schema<Deployment>,
|
|
624
|
+
errors: [],
|
|
625
|
+
serviceErrors: ScalewayServiceErrors,
|
|
626
|
+
protocol: ScalewayProtocol,
|
|
627
|
+
retry: Retry.Retry,
|
|
628
|
+
telemetry: TELEMETRY,
|
|
629
|
+
span: "GetDeployment",
|
|
630
|
+
}));
|
|
631
|
+
|
|
632
|
+
export type GetDeploymentCertificateError = ScalewayOpError;
|
|
633
|
+
/** Get deployment TLS certificate Retrieve the TLS certificate associated with a deployment. */
|
|
634
|
+
export const getDeploymentCertificate: API.OperationMethod<
|
|
635
|
+
GetDeploymentCertificateRequest,
|
|
636
|
+
ScalewayStdFile,
|
|
637
|
+
GetDeploymentCertificateError,
|
|
638
|
+
ScalewayOpContext
|
|
639
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
640
|
+
input: __S(200, __c25, 0) as any as S.Schema<GetDeploymentCertificateRequest>,
|
|
641
|
+
output: __S(201, __c25, 1) as any as S.Schema<ScalewayStdFile>,
|
|
642
|
+
errors: [],
|
|
643
|
+
serviceErrors: ScalewayServiceErrors,
|
|
644
|
+
protocol: ScalewayProtocol,
|
|
645
|
+
retry: Retry.Retry,
|
|
646
|
+
telemetry: TELEMETRY,
|
|
647
|
+
span: "GetDeploymentCertificate",
|
|
648
|
+
}));
|
|
649
|
+
|
|
650
|
+
export type GetDeploymentCertificateRawError = ScalewayOpError;
|
|
651
|
+
/** The file `getDeploymentCertificate` returns, as bytes (`?dl=1`), rather than the JSON file object. */
|
|
652
|
+
export const getDeploymentCertificateRaw: API.OperationMethod<
|
|
653
|
+
GetDeploymentCertificateRawRequest,
|
|
654
|
+
GetDeploymentCertificateRawResponse,
|
|
655
|
+
GetDeploymentCertificateRawError,
|
|
656
|
+
ScalewayOpContext
|
|
657
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
658
|
+
input: __S(48, __c6, 0) as any as S.Schema<GetDeploymentCertificateRawRequest>,
|
|
659
|
+
output: __S(49, __c6, 1) as any as S.Schema<GetDeploymentCertificateRawResponse>,
|
|
660
|
+
errors: [],
|
|
661
|
+
serviceErrors: ScalewayServiceErrors,
|
|
662
|
+
protocol: ScalewayProtocol,
|
|
663
|
+
retry: Retry.Retry,
|
|
664
|
+
telemetry: TELEMETRY,
|
|
665
|
+
span: "GetDeploymentCertificateRaw",
|
|
666
|
+
}));
|
|
667
|
+
|
|
668
|
+
export type ListDatabasesError = ScalewayOpError;
|
|
669
|
+
/** List databases within a deployment */
|
|
670
|
+
export const listDatabases: API.PaginatedOperationMethod<
|
|
671
|
+
ListDatabasesRequest,
|
|
672
|
+
ListDatabasesResponse,
|
|
673
|
+
ListDatabasesError,
|
|
674
|
+
ScalewayOpContext,
|
|
675
|
+
Database
|
|
676
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
677
|
+
() => ({
|
|
678
|
+
input: __S(56, __c7, 0) as any as S.Schema<ListDatabasesRequest>,
|
|
679
|
+
output: __S(58, __c7, 2) as any as S.Schema<ListDatabasesResponse>,
|
|
680
|
+
errors: [],
|
|
681
|
+
serviceErrors: ScalewayServiceErrors,
|
|
682
|
+
protocol: ScalewayProtocol,
|
|
683
|
+
retry: Retry.Retry,
|
|
684
|
+
telemetry: TELEMETRY,
|
|
685
|
+
span: "ListDatabases",
|
|
686
|
+
pagination: {
|
|
687
|
+
mode: "page",
|
|
688
|
+
inputToken: "page",
|
|
689
|
+
outputToken: "total_count",
|
|
690
|
+
items: "databases",
|
|
691
|
+
pageSize: "page_size",
|
|
692
|
+
} as const,
|
|
693
|
+
}),
|
|
694
|
+
paginateByTotalCount,
|
|
695
|
+
) as any;
|
|
696
|
+
|
|
697
|
+
export type ListDeploymentsError = ScalewayOpError;
|
|
698
|
+
/** List deployments List all deployments in the specified region, for a given Scaleway Project. By default, the deployments 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 provide will be checked against the whole name string to see if it includes the string you put in the parameter. */
|
|
699
|
+
export const listDeployments: API.PaginatedOperationMethod<
|
|
700
|
+
ListDeploymentsRequest,
|
|
701
|
+
ListDeploymentsResponse,
|
|
702
|
+
ListDeploymentsError,
|
|
703
|
+
ScalewayOpContext,
|
|
704
|
+
Deployment
|
|
705
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
706
|
+
() => ({
|
|
707
|
+
input: __S(64, __c8, 0) as any as S.Schema<ListDeploymentsRequest>,
|
|
708
|
+
output: __S(66, __c8, 2) as any as S.Schema<ListDeploymentsResponse>,
|
|
709
|
+
errors: [],
|
|
710
|
+
serviceErrors: ScalewayServiceErrors,
|
|
711
|
+
protocol: ScalewayProtocol,
|
|
712
|
+
retry: Retry.Retry,
|
|
713
|
+
telemetry: TELEMETRY,
|
|
714
|
+
span: "ListDeployments",
|
|
715
|
+
pagination: {
|
|
716
|
+
mode: "page",
|
|
717
|
+
inputToken: "page",
|
|
718
|
+
outputToken: "total_count",
|
|
719
|
+
items: "deployments",
|
|
720
|
+
pageSize: "page_size",
|
|
721
|
+
} as const,
|
|
722
|
+
}),
|
|
723
|
+
paginateByTotalCount,
|
|
724
|
+
) as any;
|
|
725
|
+
|
|
726
|
+
export type ListPresetsError = ScalewayOpError;
|
|
727
|
+
/** List available presets */
|
|
728
|
+
export const listPresets: API.PaginatedOperationMethod<
|
|
729
|
+
ListPresetsRequest,
|
|
730
|
+
ListPresetsResponse,
|
|
731
|
+
ListPresetsError,
|
|
732
|
+
ScalewayOpContext,
|
|
733
|
+
Preset
|
|
734
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
735
|
+
() => ({
|
|
736
|
+
input: __S(72, __c9, 0) as any as S.Schema<ListPresetsRequest>,
|
|
737
|
+
output: __S(75, __c9, 3) as any as S.Schema<ListPresetsResponse>,
|
|
738
|
+
errors: [],
|
|
739
|
+
serviceErrors: ScalewayServiceErrors,
|
|
740
|
+
protocol: ScalewayProtocol,
|
|
741
|
+
retry: Retry.Retry,
|
|
742
|
+
telemetry: TELEMETRY,
|
|
743
|
+
span: "ListPresets",
|
|
744
|
+
pagination: {
|
|
745
|
+
mode: "page",
|
|
746
|
+
inputToken: "page",
|
|
747
|
+
outputToken: "total_count",
|
|
748
|
+
items: "presets",
|
|
749
|
+
pageSize: "page_size",
|
|
750
|
+
} as const,
|
|
751
|
+
}),
|
|
752
|
+
paginateByTotalCount,
|
|
753
|
+
) as any;
|
|
754
|
+
|
|
755
|
+
export type ListUsersError = ScalewayOpError;
|
|
756
|
+
/** List users associated with a deployment */
|
|
757
|
+
export const listUsers: API.PaginatedOperationMethod<
|
|
758
|
+
ListUsersRequest,
|
|
759
|
+
ListUsersResponse,
|
|
760
|
+
ListUsersError,
|
|
761
|
+
ScalewayOpContext,
|
|
762
|
+
User
|
|
763
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
764
|
+
() => ({
|
|
765
|
+
input: __S(80, __c10, 0) as any as S.Schema<ListUsersRequest>,
|
|
766
|
+
output: __S(82, __c10, 2) as any as S.Schema<ListUsersResponse>,
|
|
767
|
+
errors: [],
|
|
768
|
+
serviceErrors: ScalewayServiceErrors,
|
|
769
|
+
protocol: ScalewayProtocol,
|
|
770
|
+
retry: Retry.Retry,
|
|
771
|
+
telemetry: TELEMETRY,
|
|
772
|
+
span: "ListUsers",
|
|
773
|
+
pagination: {
|
|
774
|
+
mode: "page",
|
|
775
|
+
inputToken: "page",
|
|
776
|
+
outputToken: "total_count",
|
|
777
|
+
items: "users",
|
|
778
|
+
pageSize: "page_size",
|
|
779
|
+
} as const,
|
|
780
|
+
}),
|
|
781
|
+
paginateByTotalCount,
|
|
782
|
+
) as any;
|
|
783
|
+
|
|
784
|
+
export type ListVersionsError = ScalewayOpError;
|
|
785
|
+
/** List available ClickHouse® versions */
|
|
786
|
+
export const listVersions: API.PaginatedOperationMethod<
|
|
787
|
+
ListVersionsRequest,
|
|
788
|
+
ListVersionsResponse,
|
|
789
|
+
ListVersionsError,
|
|
790
|
+
ScalewayOpContext,
|
|
791
|
+
Version
|
|
792
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
793
|
+
() => ({
|
|
794
|
+
input: __S(88, __c11, 0) as any as S.Schema<ListVersionsRequest>,
|
|
795
|
+
output: __S(91, __c11, 3) as any as S.Schema<ListVersionsResponse>,
|
|
796
|
+
errors: [],
|
|
797
|
+
serviceErrors: ScalewayServiceErrors,
|
|
798
|
+
protocol: ScalewayProtocol,
|
|
799
|
+
retry: Retry.Retry,
|
|
800
|
+
telemetry: TELEMETRY,
|
|
801
|
+
span: "ListVersions",
|
|
802
|
+
pagination: {
|
|
803
|
+
mode: "page",
|
|
804
|
+
inputToken: "page",
|
|
805
|
+
outputToken: "total_count",
|
|
806
|
+
items: "versions",
|
|
807
|
+
pageSize: "page_size",
|
|
808
|
+
} as const,
|
|
809
|
+
}),
|
|
810
|
+
paginateByTotalCount,
|
|
811
|
+
) as any;
|
|
812
|
+
|
|
813
|
+
export type StartDeploymentError = ScalewayOpError;
|
|
814
|
+
/** Start a deployment Start a stopped deployment. */
|
|
815
|
+
export const startDeployment: API.OperationMethod<
|
|
816
|
+
StartDeploymentRequest,
|
|
817
|
+
Deployment,
|
|
818
|
+
StartDeploymentError,
|
|
819
|
+
ScalewayOpContext
|
|
820
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
821
|
+
input: __S(96, __c12, 0) as any as S.Schema<StartDeploymentRequest>,
|
|
822
|
+
output: __S(42, __c5, 2) as any as S.Schema<Deployment>,
|
|
823
|
+
errors: [],
|
|
824
|
+
serviceErrors: ScalewayServiceErrors,
|
|
825
|
+
protocol: ScalewayProtocol,
|
|
826
|
+
retry: Retry.Retry,
|
|
827
|
+
telemetry: TELEMETRY,
|
|
828
|
+
span: "StartDeployment",
|
|
829
|
+
}));
|
|
830
|
+
|
|
831
|
+
export type StopDeploymentError = ScalewayOpError;
|
|
832
|
+
/** Stop a deployment Stop a running deployment. */
|
|
833
|
+
export const stopDeployment: API.OperationMethod<
|
|
834
|
+
StopDeploymentRequest,
|
|
835
|
+
Deployment,
|
|
836
|
+
StopDeploymentError,
|
|
837
|
+
ScalewayOpContext
|
|
838
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
839
|
+
input: __S(104, __c13, 0) as any as S.Schema<StopDeploymentRequest>,
|
|
840
|
+
output: __S(42, __c5, 2) as any as S.Schema<Deployment>,
|
|
841
|
+
errors: [],
|
|
842
|
+
serviceErrors: ScalewayServiceErrors,
|
|
843
|
+
protocol: ScalewayProtocol,
|
|
844
|
+
retry: Retry.Retry,
|
|
845
|
+
telemetry: TELEMETRY,
|
|
846
|
+
span: "StopDeployment",
|
|
847
|
+
}));
|
|
848
|
+
|
|
849
|
+
export type UpdateDeploymentError = ScalewayOpError;
|
|
850
|
+
/** Update a deployment Update the parameters of a deployment. */
|
|
851
|
+
export const updateDeployment: API.OperationMethod<
|
|
852
|
+
UpdateDeploymentRequest,
|
|
853
|
+
Deployment,
|
|
854
|
+
UpdateDeploymentError,
|
|
855
|
+
ScalewayOpContext
|
|
856
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
857
|
+
input: __S(113, __c14, 1) as any as S.Schema<UpdateDeploymentRequest>,
|
|
858
|
+
output: __S(42, __c5, 2) as any as S.Schema<Deployment>,
|
|
859
|
+
errors: [],
|
|
860
|
+
serviceErrors: ScalewayServiceErrors,
|
|
861
|
+
protocol: ScalewayProtocol,
|
|
862
|
+
retry: Retry.Retry,
|
|
863
|
+
telemetry: TELEMETRY,
|
|
864
|
+
span: "UpdateDeployment",
|
|
865
|
+
}));
|
|
866
|
+
|
|
867
|
+
export type UpdateUserError = ScalewayOpError;
|
|
868
|
+
/** Update an existing user for a deployment */
|
|
869
|
+
export const updateUser: API.OperationMethod<
|
|
870
|
+
UpdateUserRequest,
|
|
871
|
+
User,
|
|
872
|
+
UpdateUserError,
|
|
873
|
+
ScalewayOpContext
|
|
874
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
875
|
+
input: __S(120, __c15, 0) as any as S.Schema<UpdateUserRequest>,
|
|
876
|
+
output: __S(144, __c18, 0) as any as S.Schema<User>,
|
|
877
|
+
errors: [],
|
|
878
|
+
serviceErrors: ScalewayServiceErrors,
|
|
879
|
+
protocol: ScalewayProtocol,
|
|
880
|
+
retry: Retry.Retry,
|
|
881
|
+
telemetry: TELEMETRY,
|
|
882
|
+
span: "UpdateUser",
|
|
883
|
+
}));
|
|
884
|
+
|
|
885
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
886
|
+
function __c0(j: number): any {
|
|
887
|
+
switch (j) {
|
|
888
|
+
case 0:
|
|
889
|
+
return S.suspend(() =>
|
|
890
|
+
S.Struct({
|
|
891
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
892
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
893
|
+
name: S.optional(S.String),
|
|
894
|
+
}).pipe(
|
|
895
|
+
T.Http({
|
|
896
|
+
method: "POST",
|
|
897
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/databases",
|
|
898
|
+
code: 200,
|
|
899
|
+
baseUrl: "https://api.scaleway.com",
|
|
900
|
+
}),
|
|
901
|
+
),
|
|
902
|
+
).annotate({ identifier: "CreateDatabaseRequest" });
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
function __c1(j: number): any {
|
|
906
|
+
switch (j) {
|
|
907
|
+
case 0:
|
|
908
|
+
return S.suspend(() =>
|
|
909
|
+
S.Struct({
|
|
910
|
+
name: S.optional(S.String),
|
|
911
|
+
size: S.optional(S.Number),
|
|
912
|
+
deployment_id: S.optional(S.String),
|
|
913
|
+
region: S.optional(S.String),
|
|
914
|
+
srn: S.optional(S.String),
|
|
915
|
+
}),
|
|
916
|
+
).annotate({ identifier: "Database" });
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
function __c2(j: number): any {
|
|
920
|
+
switch (j) {
|
|
921
|
+
case 0:
|
|
922
|
+
return S.Array(__S(25, __c3, 1));
|
|
923
|
+
case 1:
|
|
924
|
+
return S.suspend(() =>
|
|
925
|
+
S.Struct({
|
|
926
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
927
|
+
project_id: S.optional(S.String),
|
|
928
|
+
name: S.optional(S.String),
|
|
929
|
+
tags: S.optional(__S(40, __c5, 0)),
|
|
930
|
+
version: S.optional(S.String),
|
|
931
|
+
replica_count: S.optional(S.Number),
|
|
932
|
+
shard_count: S.optional(S.NullOr(S.Number)),
|
|
933
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
934
|
+
cpu_min: S.optional(S.Number),
|
|
935
|
+
cpu_max: S.optional(S.Number),
|
|
936
|
+
endpoints: S.optional(__S(16, __c2, 0)),
|
|
937
|
+
ram_per_cpu: S.optional(S.Number),
|
|
938
|
+
move_factor: S.optional(S.NullOr(S.Number)),
|
|
939
|
+
kms_key_id: S.optional(S.NullOr(S.String)),
|
|
940
|
+
}).pipe(
|
|
941
|
+
T.Http({
|
|
942
|
+
method: "POST",
|
|
943
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments",
|
|
944
|
+
code: 200,
|
|
945
|
+
baseUrl: "https://api.scaleway.com",
|
|
946
|
+
}),
|
|
947
|
+
),
|
|
948
|
+
).annotate({ identifier: "CreateDeploymentRequest" });
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
function __c3(j: number): any {
|
|
952
|
+
switch (j) {
|
|
953
|
+
case 0:
|
|
954
|
+
return S.suspend(() =>
|
|
955
|
+
S.Struct({
|
|
956
|
+
private_network_id: S.optional(S.String),
|
|
957
|
+
}),
|
|
958
|
+
).annotate({ identifier: "EndpointSpecPrivateNetworkSummary" });
|
|
959
|
+
case 1:
|
|
960
|
+
return S.suspend(() =>
|
|
961
|
+
S.Struct({
|
|
962
|
+
public: S.optional(S.NullOr(S.Unknown)),
|
|
963
|
+
private_network: S.optional(S.NullOr(__S(24, __c3, 0))),
|
|
964
|
+
}),
|
|
965
|
+
).annotate({ identifier: "EndpointSpec" });
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
function __c4(j: number): any {
|
|
969
|
+
switch (j) {
|
|
970
|
+
case 0:
|
|
971
|
+
return S.suspend(() =>
|
|
972
|
+
S.Struct({
|
|
973
|
+
protocol: S.optional(S.String),
|
|
974
|
+
port: S.optional(S.Number),
|
|
975
|
+
}),
|
|
976
|
+
).annotate({ identifier: "EndpointService" });
|
|
977
|
+
case 1:
|
|
978
|
+
return S.Array(__S(32, __c4, 0));
|
|
979
|
+
case 2:
|
|
980
|
+
return S.suspend(() =>
|
|
981
|
+
S.Struct({
|
|
982
|
+
node_name: S.optional(S.String),
|
|
983
|
+
shard: S.optional(S.Number),
|
|
984
|
+
replica: S.optional(S.Number),
|
|
985
|
+
ip_address: S.optional(S.String),
|
|
986
|
+
}),
|
|
987
|
+
).annotate({ identifier: "NodePrivateNetworkDetails" });
|
|
988
|
+
case 3:
|
|
989
|
+
return S.Array(__S(34, __c4, 2));
|
|
990
|
+
case 4:
|
|
991
|
+
return S.suspend(() =>
|
|
992
|
+
S.Struct({
|
|
993
|
+
private_network_id: S.optional(S.String),
|
|
994
|
+
nodes: S.optional(__S(35, __c4, 3)),
|
|
995
|
+
}),
|
|
996
|
+
).annotate({ identifier: "PrivateNetworkDetails" });
|
|
997
|
+
case 5:
|
|
998
|
+
return S.suspend(() =>
|
|
999
|
+
S.Struct({
|
|
1000
|
+
id: S.optional(S.String),
|
|
1001
|
+
dns_record: S.optional(S.String),
|
|
1002
|
+
services: S.optional(__S(33, __c4, 1)),
|
|
1003
|
+
private_network: S.optional(S.NullOr(__S(36, __c4, 4))),
|
|
1004
|
+
public: S.optional(S.NullOr(S.Unknown)),
|
|
1005
|
+
region: S.optional(S.String),
|
|
1006
|
+
srn: S.optional(S.String),
|
|
1007
|
+
}),
|
|
1008
|
+
).annotate({ identifier: "Endpoint" });
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
function __c5(j: number): any {
|
|
1012
|
+
switch (j) {
|
|
1013
|
+
case 0:
|
|
1014
|
+
return S.Array(S.String);
|
|
1015
|
+
case 1:
|
|
1016
|
+
return S.Array(__S(37, __c4, 5));
|
|
1017
|
+
case 2:
|
|
1018
|
+
return S.suspend(() =>
|
|
1019
|
+
S.Struct({
|
|
1020
|
+
id: S.optional(S.String),
|
|
1021
|
+
name: S.optional(S.String),
|
|
1022
|
+
organization_id: S.optional(S.String),
|
|
1023
|
+
project_id: S.optional(S.String),
|
|
1024
|
+
status: S.optional(S.String),
|
|
1025
|
+
tags: S.optional(__S(40, __c5, 0)),
|
|
1026
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1027
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1028
|
+
version: S.optional(S.String),
|
|
1029
|
+
replica_count: S.optional(S.Number),
|
|
1030
|
+
shard_count: S.optional(S.Number),
|
|
1031
|
+
cpu_min: S.optional(S.Number),
|
|
1032
|
+
cpu_max: S.optional(S.Number),
|
|
1033
|
+
endpoints: S.optional(__S(41, __c5, 1)),
|
|
1034
|
+
ram_per_cpu: S.optional(S.Number),
|
|
1035
|
+
move_factor: S.optional(S.Number),
|
|
1036
|
+
kms_key_id: S.optional(S.NullOr(S.String)),
|
|
1037
|
+
region: S.optional(S.String),
|
|
1038
|
+
srn: S.optional(S.String),
|
|
1039
|
+
}),
|
|
1040
|
+
).annotate({ identifier: "Deployment" });
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
function __c6(j: number): any {
|
|
1044
|
+
switch (j) {
|
|
1045
|
+
case 0:
|
|
1046
|
+
return S.suspend(() =>
|
|
1047
|
+
S.Struct({
|
|
1048
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1049
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1050
|
+
}).pipe(
|
|
1051
|
+
T.Http({
|
|
1052
|
+
method: "GET",
|
|
1053
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/certificate",
|
|
1054
|
+
code: 200,
|
|
1055
|
+
baseUrl: "https://api.scaleway.com",
|
|
1056
|
+
rawDownload: true,
|
|
1057
|
+
}),
|
|
1058
|
+
),
|
|
1059
|
+
).annotate({ identifier: "GetDeploymentCertificateRawRequest" });
|
|
1060
|
+
case 1:
|
|
1061
|
+
return S.suspend(() =>
|
|
1062
|
+
S.Struct({
|
|
1063
|
+
body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
|
|
1064
|
+
contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
|
|
1065
|
+
}),
|
|
1066
|
+
).annotate({ identifier: "GetDeploymentCertificateRawResponse" });
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
function __c7(j: number): any {
|
|
1070
|
+
switch (j) {
|
|
1071
|
+
case 0:
|
|
1072
|
+
return S.suspend(() =>
|
|
1073
|
+
S.Struct({
|
|
1074
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1075
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1076
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1077
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1078
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1079
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1080
|
+
}).pipe(
|
|
1081
|
+
T.Http({
|
|
1082
|
+
method: "GET",
|
|
1083
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/databases",
|
|
1084
|
+
code: 200,
|
|
1085
|
+
baseUrl: "https://api.scaleway.com",
|
|
1086
|
+
}),
|
|
1087
|
+
),
|
|
1088
|
+
).annotate({ identifier: "ListDatabasesRequest" });
|
|
1089
|
+
case 1:
|
|
1090
|
+
return S.Array(__S(8, __c1, 0));
|
|
1091
|
+
case 2:
|
|
1092
|
+
return S.suspend(() =>
|
|
1093
|
+
S.Struct({
|
|
1094
|
+
databases: __S(57, __c7, 1),
|
|
1095
|
+
total_count: S.optional(S.Number),
|
|
1096
|
+
}),
|
|
1097
|
+
).annotate({ identifier: "ListDatabasesResponse" });
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
function __c8(j: number): any {
|
|
1101
|
+
switch (j) {
|
|
1102
|
+
case 0:
|
|
1103
|
+
return S.suspend(() =>
|
|
1104
|
+
S.Struct({
|
|
1105
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1106
|
+
tags: S.optional(__S(40, __c5, 0).pipe(T.Query())),
|
|
1107
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1108
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1109
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
1110
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
1111
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1112
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1113
|
+
}).pipe(
|
|
1114
|
+
T.Http({
|
|
1115
|
+
method: "GET",
|
|
1116
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments",
|
|
1117
|
+
code: 200,
|
|
1118
|
+
baseUrl: "https://api.scaleway.com",
|
|
1119
|
+
}),
|
|
1120
|
+
),
|
|
1121
|
+
).annotate({ identifier: "ListDeploymentsRequest" });
|
|
1122
|
+
case 1:
|
|
1123
|
+
return S.Array(__S(42, __c5, 2));
|
|
1124
|
+
case 2:
|
|
1125
|
+
return S.suspend(() =>
|
|
1126
|
+
S.Struct({
|
|
1127
|
+
deployments: __S(65, __c8, 1),
|
|
1128
|
+
total_count: S.optional(S.Number),
|
|
1129
|
+
}),
|
|
1130
|
+
).annotate({ identifier: "ListDeploymentsResponse" });
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
function __c9(j: number): any {
|
|
1134
|
+
switch (j) {
|
|
1135
|
+
case 0:
|
|
1136
|
+
return S.suspend(() =>
|
|
1137
|
+
S.Struct({
|
|
1138
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1139
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1140
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1141
|
+
}).pipe(
|
|
1142
|
+
T.Http({
|
|
1143
|
+
method: "GET",
|
|
1144
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/presets",
|
|
1145
|
+
code: 200,
|
|
1146
|
+
baseUrl: "https://api.scaleway.com",
|
|
1147
|
+
}),
|
|
1148
|
+
),
|
|
1149
|
+
).annotate({ identifier: "ListPresetsRequest" });
|
|
1150
|
+
case 1:
|
|
1151
|
+
return S.suspend(() =>
|
|
1152
|
+
S.Struct({
|
|
1153
|
+
name: S.optional(S.String),
|
|
1154
|
+
category: S.optional(S.String),
|
|
1155
|
+
cpu_min: S.optional(S.Number),
|
|
1156
|
+
cpu_max: S.optional(S.Number),
|
|
1157
|
+
ram_per_cpu: S.optional(S.Number),
|
|
1158
|
+
replica_count: S.optional(S.Number),
|
|
1159
|
+
shard_count: S.optional(S.Number),
|
|
1160
|
+
}),
|
|
1161
|
+
).annotate({ identifier: "Preset" });
|
|
1162
|
+
case 2:
|
|
1163
|
+
return S.Array(__S(73, __c9, 1));
|
|
1164
|
+
case 3:
|
|
1165
|
+
return S.suspend(() =>
|
|
1166
|
+
S.Struct({
|
|
1167
|
+
presets: __S(74, __c9, 2),
|
|
1168
|
+
total_count: S.optional(S.Number),
|
|
1169
|
+
}),
|
|
1170
|
+
).annotate({ identifier: "ListPresetsResponse" });
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
function __c10(j: number): any {
|
|
1174
|
+
switch (j) {
|
|
1175
|
+
case 0:
|
|
1176
|
+
return S.suspend(() =>
|
|
1177
|
+
S.Struct({
|
|
1178
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1179
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1180
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1181
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1182
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1183
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1184
|
+
}).pipe(
|
|
1185
|
+
T.Http({
|
|
1186
|
+
method: "GET",
|
|
1187
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/users",
|
|
1188
|
+
code: 200,
|
|
1189
|
+
baseUrl: "https://api.scaleway.com",
|
|
1190
|
+
}),
|
|
1191
|
+
),
|
|
1192
|
+
).annotate({ identifier: "ListUsersRequest" });
|
|
1193
|
+
case 1:
|
|
1194
|
+
return S.Array(__S(144, __c18, 0));
|
|
1195
|
+
case 2:
|
|
1196
|
+
return S.suspend(() =>
|
|
1197
|
+
S.Struct({
|
|
1198
|
+
users: __S(81, __c10, 1),
|
|
1199
|
+
total_count: S.optional(S.Number),
|
|
1200
|
+
}),
|
|
1201
|
+
).annotate({ identifier: "ListUsersResponse" });
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
function __c11(j: number): any {
|
|
1205
|
+
switch (j) {
|
|
1206
|
+
case 0:
|
|
1207
|
+
return S.suspend(() =>
|
|
1208
|
+
S.Struct({
|
|
1209
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1210
|
+
version: S.optional(S.String.pipe(T.Query())),
|
|
1211
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1212
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1213
|
+
}).pipe(
|
|
1214
|
+
T.Http({
|
|
1215
|
+
method: "GET",
|
|
1216
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/versions",
|
|
1217
|
+
code: 200,
|
|
1218
|
+
baseUrl: "https://api.scaleway.com",
|
|
1219
|
+
}),
|
|
1220
|
+
),
|
|
1221
|
+
).annotate({ identifier: "ListVersionsRequest" });
|
|
1222
|
+
case 1:
|
|
1223
|
+
return S.suspend(() =>
|
|
1224
|
+
S.Struct({
|
|
1225
|
+
version: S.optional(S.String),
|
|
1226
|
+
end_of_life_at: S.optional(S.NullOr(S.String)),
|
|
1227
|
+
}),
|
|
1228
|
+
).annotate({ identifier: "Version" });
|
|
1229
|
+
case 2:
|
|
1230
|
+
return S.Array(__S(89, __c11, 1));
|
|
1231
|
+
case 3:
|
|
1232
|
+
return S.suspend(() =>
|
|
1233
|
+
S.Struct({
|
|
1234
|
+
versions: __S(90, __c11, 2),
|
|
1235
|
+
total_count: S.optional(S.Number),
|
|
1236
|
+
}),
|
|
1237
|
+
).annotate({ identifier: "ListVersionsResponse" });
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
function __c12(j: number): any {
|
|
1241
|
+
switch (j) {
|
|
1242
|
+
case 0:
|
|
1243
|
+
return S.suspend(() =>
|
|
1244
|
+
S.Struct({
|
|
1245
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1246
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1247
|
+
}).pipe(
|
|
1248
|
+
T.Http({
|
|
1249
|
+
method: "POST",
|
|
1250
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/start",
|
|
1251
|
+
code: 200,
|
|
1252
|
+
baseUrl: "https://api.scaleway.com",
|
|
1253
|
+
}),
|
|
1254
|
+
),
|
|
1255
|
+
).annotate({ identifier: "StartDeploymentRequest" });
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
function __c13(j: number): any {
|
|
1259
|
+
switch (j) {
|
|
1260
|
+
case 0:
|
|
1261
|
+
return S.suspend(() =>
|
|
1262
|
+
S.Struct({
|
|
1263
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1264
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1265
|
+
}).pipe(
|
|
1266
|
+
T.Http({
|
|
1267
|
+
method: "POST",
|
|
1268
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/stop",
|
|
1269
|
+
code: 200,
|
|
1270
|
+
baseUrl: "https://api.scaleway.com",
|
|
1271
|
+
}),
|
|
1272
|
+
),
|
|
1273
|
+
).annotate({ identifier: "StopDeploymentRequest" });
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
function __c14(j: number): any {
|
|
1277
|
+
switch (j) {
|
|
1278
|
+
case 0:
|
|
1279
|
+
return S.Array(S.Unknown);
|
|
1280
|
+
case 1:
|
|
1281
|
+
return S.suspend(() =>
|
|
1282
|
+
S.Struct({
|
|
1283
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1284
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1285
|
+
name: S.optional(S.NullOr(S.String)),
|
|
1286
|
+
tags: S.optional(S.NullOr(__S(112, __c14, 0))),
|
|
1287
|
+
cpu_min: S.optional(S.NullOr(S.Number)),
|
|
1288
|
+
cpu_max: S.optional(S.NullOr(S.Number)),
|
|
1289
|
+
replica_count: S.optional(S.NullOr(S.Number)),
|
|
1290
|
+
move_factor: S.optional(S.NullOr(S.Number)),
|
|
1291
|
+
}).pipe(
|
|
1292
|
+
T.Http({
|
|
1293
|
+
method: "PATCH",
|
|
1294
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}",
|
|
1295
|
+
code: 200,
|
|
1296
|
+
baseUrl: "https://api.scaleway.com",
|
|
1297
|
+
}),
|
|
1298
|
+
),
|
|
1299
|
+
).annotate({ identifier: "UpdateDeploymentRequest" });
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
function __c15(j: number): any {
|
|
1303
|
+
switch (j) {
|
|
1304
|
+
case 0:
|
|
1305
|
+
return S.suspend(() =>
|
|
1306
|
+
S.Struct({
|
|
1307
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1308
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1309
|
+
name: S.String.pipe(T.Label()),
|
|
1310
|
+
password: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
1311
|
+
is_admin: S.optional(S.NullOr(S.Boolean)),
|
|
1312
|
+
}).pipe(
|
|
1313
|
+
T.Http({
|
|
1314
|
+
method: "PATCH",
|
|
1315
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/users/{name}",
|
|
1316
|
+
code: 200,
|
|
1317
|
+
baseUrl: "https://api.scaleway.com",
|
|
1318
|
+
}),
|
|
1319
|
+
),
|
|
1320
|
+
).annotate({ identifier: "UpdateUserRequest" });
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
function __c16(j: number): any {
|
|
1324
|
+
switch (j) {
|
|
1325
|
+
case 0:
|
|
1326
|
+
return S.suspend(() =>
|
|
1327
|
+
S.Struct({
|
|
1328
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1329
|
+
deployment_id: S.optional(S.String),
|
|
1330
|
+
endpoint: S.optional(__S(25, __c3, 1)),
|
|
1331
|
+
}).pipe(
|
|
1332
|
+
T.Http({
|
|
1333
|
+
method: "POST",
|
|
1334
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/endpoints",
|
|
1335
|
+
code: 200,
|
|
1336
|
+
baseUrl: "https://api.scaleway.com",
|
|
1337
|
+
}),
|
|
1338
|
+
),
|
|
1339
|
+
).annotate({ identifier: "CreateEndpointRequest" });
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
function __c17(j: number): any {
|
|
1343
|
+
switch (j) {
|
|
1344
|
+
case 0:
|
|
1345
|
+
return S.suspend(() =>
|
|
1346
|
+
S.Struct({
|
|
1347
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1348
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1349
|
+
name: S.optional(S.String),
|
|
1350
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1351
|
+
is_admin: S.optional(S.Boolean),
|
|
1352
|
+
}).pipe(
|
|
1353
|
+
T.Http({
|
|
1354
|
+
method: "POST",
|
|
1355
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/users",
|
|
1356
|
+
code: 200,
|
|
1357
|
+
baseUrl: "https://api.scaleway.com",
|
|
1358
|
+
}),
|
|
1359
|
+
),
|
|
1360
|
+
).annotate({ identifier: "CreateUserRequest" });
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
function __c18(j: number): any {
|
|
1364
|
+
switch (j) {
|
|
1365
|
+
case 0:
|
|
1366
|
+
return S.suspend(() =>
|
|
1367
|
+
S.Struct({
|
|
1368
|
+
name: S.optional(S.String),
|
|
1369
|
+
is_admin: S.optional(S.Boolean),
|
|
1370
|
+
deployment_id: S.optional(S.String),
|
|
1371
|
+
region: S.optional(S.String),
|
|
1372
|
+
srn: S.optional(S.String),
|
|
1373
|
+
}),
|
|
1374
|
+
).annotate({ identifier: "User" });
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
function __c19(j: number): any {
|
|
1378
|
+
switch (j) {
|
|
1379
|
+
case 0:
|
|
1380
|
+
return S.suspend(() =>
|
|
1381
|
+
S.Struct({
|
|
1382
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1383
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1384
|
+
name: S.String.pipe(T.Label()),
|
|
1385
|
+
}).pipe(
|
|
1386
|
+
T.Http({
|
|
1387
|
+
method: "DELETE",
|
|
1388
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/databases/{name}",
|
|
1389
|
+
code: 200,
|
|
1390
|
+
baseUrl: "https://api.scaleway.com",
|
|
1391
|
+
}),
|
|
1392
|
+
),
|
|
1393
|
+
).annotate({ identifier: "DeleteDatabaseRequest" });
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
function __c20(j: number): any {
|
|
1397
|
+
switch (j) {
|
|
1398
|
+
case 0:
|
|
1399
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteDatabaseResponse" });
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
function __c21(j: number): any {
|
|
1403
|
+
switch (j) {
|
|
1404
|
+
case 0:
|
|
1405
|
+
return S.suspend(() =>
|
|
1406
|
+
S.Struct({
|
|
1407
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1408
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1409
|
+
}).pipe(
|
|
1410
|
+
T.Http({
|
|
1411
|
+
method: "DELETE",
|
|
1412
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}",
|
|
1413
|
+
code: 200,
|
|
1414
|
+
baseUrl: "https://api.scaleway.com",
|
|
1415
|
+
}),
|
|
1416
|
+
),
|
|
1417
|
+
).annotate({ identifier: "DeleteDeploymentRequest" });
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
function __c22(j: number): any {
|
|
1421
|
+
switch (j) {
|
|
1422
|
+
case 0:
|
|
1423
|
+
return S.suspend(() =>
|
|
1424
|
+
S.Struct({
|
|
1425
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1426
|
+
endpoint_id: S.String.pipe(T.Label()),
|
|
1427
|
+
}).pipe(
|
|
1428
|
+
T.Http({
|
|
1429
|
+
method: "DELETE",
|
|
1430
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/endpoints/{endpoint_id}",
|
|
1431
|
+
code: 200,
|
|
1432
|
+
baseUrl: "https://api.scaleway.com",
|
|
1433
|
+
}),
|
|
1434
|
+
),
|
|
1435
|
+
).annotate({ identifier: "DeleteEndpointRequest" });
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
function __c23(j: number): any {
|
|
1439
|
+
switch (j) {
|
|
1440
|
+
case 0:
|
|
1441
|
+
return S.suspend(() =>
|
|
1442
|
+
S.Struct({
|
|
1443
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1444
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1445
|
+
name: S.String.pipe(T.Label()),
|
|
1446
|
+
}).pipe(
|
|
1447
|
+
T.Http({
|
|
1448
|
+
method: "DELETE",
|
|
1449
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/users/{name}",
|
|
1450
|
+
code: 200,
|
|
1451
|
+
baseUrl: "https://api.scaleway.com",
|
|
1452
|
+
}),
|
|
1453
|
+
),
|
|
1454
|
+
).annotate({ identifier: "DeleteUserRequest" });
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
function __c24(j: number): any {
|
|
1458
|
+
switch (j) {
|
|
1459
|
+
case 0:
|
|
1460
|
+
return S.suspend(() =>
|
|
1461
|
+
S.Struct({
|
|
1462
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1463
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1464
|
+
}).pipe(
|
|
1465
|
+
T.Http({
|
|
1466
|
+
method: "GET",
|
|
1467
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}",
|
|
1468
|
+
code: 200,
|
|
1469
|
+
baseUrl: "https://api.scaleway.com",
|
|
1470
|
+
}),
|
|
1471
|
+
),
|
|
1472
|
+
).annotate({ identifier: "GetDeploymentRequest" });
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
function __c25(j: number): any {
|
|
1476
|
+
switch (j) {
|
|
1477
|
+
case 0:
|
|
1478
|
+
return S.suspend(() =>
|
|
1479
|
+
S.Struct({
|
|
1480
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
1481
|
+
deployment_id: S.String.pipe(T.Label()),
|
|
1482
|
+
}).pipe(
|
|
1483
|
+
T.Http({
|
|
1484
|
+
method: "GET",
|
|
1485
|
+
uri: "/datawarehouse/v1beta1/regions/{region}/deployments/{deployment_id}/certificate",
|
|
1486
|
+
code: 200,
|
|
1487
|
+
baseUrl: "https://api.scaleway.com",
|
|
1488
|
+
}),
|
|
1489
|
+
),
|
|
1490
|
+
).annotate({ identifier: "GetDeploymentCertificateRequest" });
|
|
1491
|
+
case 1:
|
|
1492
|
+
return S.suspend(() =>
|
|
1493
|
+
S.Struct({
|
|
1494
|
+
name: S.optional(S.String),
|
|
1495
|
+
content_type: S.optional(S.String),
|
|
1496
|
+
content: S.optional(S.String),
|
|
1497
|
+
}),
|
|
1498
|
+
).annotate({ identifier: "ScalewayStdFile" });
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1502
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1503
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1504
|
+
}
|