@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,3724 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-scaleway). Do not edit.
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import { ScalewayServiceErrors } from "../errors.ts";
|
|
6
|
+
import { paginateByTotalCount } from "../pagination.ts";
|
|
7
|
+
import { ScalewayProtocol, type ScalewayOpError, type ScalewayOpContext } from "../protocol.ts";
|
|
8
|
+
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
12
|
+
|
|
13
|
+
export type { ScalewayOpError, ScalewayOpContext };
|
|
14
|
+
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "scaleway-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Scaleway",
|
|
23
|
+
service: "EdgeServicesV1beta1",
|
|
24
|
+
labels: "scaleway",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type RuleHttpMatchMethodFilter =
|
|
29
|
+
| "unknown_method_filter"
|
|
30
|
+
| "get"
|
|
31
|
+
| "post"
|
|
32
|
+
| "put"
|
|
33
|
+
| "patch"
|
|
34
|
+
| "delete"
|
|
35
|
+
| "head"
|
|
36
|
+
| "options";
|
|
37
|
+
/** HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are `get`, `post`, `put`, `patch`, `delete`, `head`, `options`. All methods will match if none is provided. */
|
|
38
|
+
export type RuleHttpMatchMethodFiltersList = Array<RuleHttpMatchMethodFilter | (string & {})>;
|
|
39
|
+
export type RuleHttpMatchPathFilterPathFilterType = "unknown_path_filter" | "regex";
|
|
40
|
+
export interface RuleHttpMatchPathFilter {
|
|
41
|
+
/** Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the `regex` type. */
|
|
42
|
+
path_filter_type?: RuleHttpMatchPathFilterPathFilterType | (string & {}) | undefined;
|
|
43
|
+
/** Value to be matched for the HTTP URL path. */
|
|
44
|
+
value?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export type RuleHttpMatchHostFilterHostFilterType = "unknown_host_filter" | "regex";
|
|
47
|
+
export interface RuleHttpMatchHostFilter {
|
|
48
|
+
host_filter_type?: RuleHttpMatchHostFilterHostFilterType | (string & {}) | undefined;
|
|
49
|
+
value?: string | undefined;
|
|
50
|
+
}
|
|
51
|
+
export interface RuleHttpMatch {
|
|
52
|
+
/** HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are `get`, `post`, `put`, `patch`, `delete`, `head`, `options`. All methods will match if none is provided. */
|
|
53
|
+
method_filters?: RuleHttpMatchMethodFiltersList | undefined;
|
|
54
|
+
/** HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided. */
|
|
55
|
+
path_filter?: RuleHttpMatchPathFilter | undefined;
|
|
56
|
+
/** Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided. */
|
|
57
|
+
host_filter?: RuleHttpMatchHostFilter | undefined;
|
|
58
|
+
}
|
|
59
|
+
export interface SetRouteRulesRequestRouteRule {
|
|
60
|
+
/** Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` or `waf_stage_id` fields. Requests that do not match will be checked by the next rule's condition. Precisely one of rule_http_match can be set. */
|
|
61
|
+
rule_http_match?: RuleHttpMatch | null | undefined;
|
|
62
|
+
/** ID of the backend stage that requests matching the rule should be forwarded to. (UUID format) Precisely one of backend_stage_id, waf_stage_id can be set. */
|
|
63
|
+
backend_stage_id?: string | null | undefined;
|
|
64
|
+
/** ID of the WAF stage that requests matching the rule should be forwarded to. (UUID format) Precisely one of backend_stage_id, waf_stage_id can be set. */
|
|
65
|
+
waf_stage_id?: string | null | undefined;
|
|
66
|
+
}
|
|
67
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
68
|
+
export type AddRouteRulesRequestRouteRulesList = Array<SetRouteRulesRequestRouteRule>;
|
|
69
|
+
export interface AddRouteRulesRequest {
|
|
70
|
+
/** ID of the route stage to update. (UUID format) */
|
|
71
|
+
route_stage_id: string;
|
|
72
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
73
|
+
route_rules?: AddRouteRulesRequestRouteRulesList | undefined;
|
|
74
|
+
/** Add rules after the given position. Precisely one of after_position, before_position can be set. */
|
|
75
|
+
after_position?: number | null | undefined;
|
|
76
|
+
/** Add rules before the given position. Precisely one of after_position, before_position can be set. */
|
|
77
|
+
before_position?: number | null | undefined;
|
|
78
|
+
}
|
|
79
|
+
export interface RouteRule {
|
|
80
|
+
/** Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the `backend_stage_id` or `waf_stage_id` fields. Requests that do not match will be checked by the next rule's condition. Precisely one of rule_http_match can be set. */
|
|
81
|
+
rule_http_match?: RuleHttpMatch | null | undefined;
|
|
82
|
+
/** ID of the backend stage that requests matching the rule should be forwarded to. (UUID format) Precisely one of backend_stage_id, waf_stage_id can be set. */
|
|
83
|
+
backend_stage_id?: string | null | undefined;
|
|
84
|
+
/** Position of the rule which determines the order of processing within the route stage. */
|
|
85
|
+
position?: number | undefined;
|
|
86
|
+
/** Route stage ID the route rule belongs to. */
|
|
87
|
+
route_stage_id?: string | undefined;
|
|
88
|
+
/** ID of the WAF stage that requests matching the rule should be forwarded to. (UUID format) Precisely one of backend_stage_id, waf_stage_id can be set. */
|
|
89
|
+
waf_stage_id?: string | null | undefined;
|
|
90
|
+
}
|
|
91
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
92
|
+
export type AddRouteRulesResponseRouteRulesList = Array<RouteRule>;
|
|
93
|
+
export interface AddRouteRulesResponse {
|
|
94
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
95
|
+
route_rules?: AddRouteRulesResponseRouteRulesList | undefined;
|
|
96
|
+
}
|
|
97
|
+
export interface ScalewayS3BackendConfig {
|
|
98
|
+
/** Name of the Bucket. */
|
|
99
|
+
bucket_name?: string | null | undefined;
|
|
100
|
+
/** Region of the Bucket. */
|
|
101
|
+
bucket_region?: string | null | undefined;
|
|
102
|
+
/** Defines whether the bucket website feature is enabled. */
|
|
103
|
+
is_website?: boolean | null | undefined;
|
|
104
|
+
}
|
|
105
|
+
export interface ScalewayLb {
|
|
106
|
+
/** ID of the Load Balancer. (UUID format) */
|
|
107
|
+
id: string;
|
|
108
|
+
/** Zone of the Load Balancer. */
|
|
109
|
+
zone: string;
|
|
110
|
+
/** ID of the frontend linked to the Load Balancer. (UUID format) */
|
|
111
|
+
frontend_id: string;
|
|
112
|
+
/** Defines whether the Load Balancer's frontend handles SSL connections. */
|
|
113
|
+
is_ssl?: boolean | null | undefined;
|
|
114
|
+
/** Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer. */
|
|
115
|
+
domain_name?: string | null | undefined;
|
|
116
|
+
/** Defines whether to forward websocket requests to the load balancer. */
|
|
117
|
+
has_websocket?: boolean | null | undefined;
|
|
118
|
+
}
|
|
119
|
+
/** Load Balancer information. */
|
|
120
|
+
export type ScalewayLbBackendConfigLbsList = Array<ScalewayLb>;
|
|
121
|
+
export interface ScalewayLbBackendConfig {
|
|
122
|
+
/** Load Balancer information. */
|
|
123
|
+
lbs?: ScalewayLbBackendConfigLbsList | undefined;
|
|
124
|
+
}
|
|
125
|
+
export interface ScalewayServerlessContainerBackendConfig {
|
|
126
|
+
/** The region you want to target */
|
|
127
|
+
region: string;
|
|
128
|
+
/** (UUID format) */
|
|
129
|
+
container_id: string;
|
|
130
|
+
}
|
|
131
|
+
export interface ScalewayServerlessFunctionBackendConfig {
|
|
132
|
+
/** The region you want to target */
|
|
133
|
+
region: string;
|
|
134
|
+
/** (UUID format) */
|
|
135
|
+
function_id: string;
|
|
136
|
+
}
|
|
137
|
+
export interface CreateBackendStageRequest {
|
|
138
|
+
/** Pipeline ID the Backend stage belongs to. */
|
|
139
|
+
pipeline_id: string;
|
|
140
|
+
/** Scaleway Object Storage origin bucket (S3) linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
141
|
+
scaleway_s3?: ScalewayS3BackendConfig | null | undefined;
|
|
142
|
+
/** Scaleway Load Balancer origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
143
|
+
scaleway_lb?: ScalewayLbBackendConfig | null | undefined;
|
|
144
|
+
/** Scaleway Serverless container origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
145
|
+
scaleway_serverless_container?: ScalewayServerlessContainerBackendConfig | null | undefined;
|
|
146
|
+
/** Scaleway Serverless function origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
147
|
+
scaleway_serverless_function?: ScalewayServerlessFunctionBackendConfig | null | undefined;
|
|
148
|
+
}
|
|
149
|
+
export type StageStatus = "unknown_status" | "inactive" | "active";
|
|
150
|
+
export interface BackendStage {
|
|
151
|
+
/** ID of the backend stage. */
|
|
152
|
+
id?: string | undefined;
|
|
153
|
+
/** Pipeline ID the backend stage belongs to. */
|
|
154
|
+
pipeline_id?: string | undefined;
|
|
155
|
+
/** Current status of the stage. */
|
|
156
|
+
status?: StageStatus | undefined;
|
|
157
|
+
/** Date the backend stage was created. (RFC 3339 format) */
|
|
158
|
+
created_at?: string | null | undefined;
|
|
159
|
+
/** Date the backend stage was last updated. (RFC 3339 format) */
|
|
160
|
+
updated_at?: string | null | undefined;
|
|
161
|
+
/** Scaleway Object Storage origin bucket (S3) linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
162
|
+
scaleway_s3?: ScalewayS3BackendConfig | null | undefined;
|
|
163
|
+
/** Scaleway Load Balancer origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
164
|
+
scaleway_lb?: ScalewayLbBackendConfig | null | undefined;
|
|
165
|
+
/** Scaleway Serverless container origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
166
|
+
scaleway_serverless_container?: ScalewayServerlessContainerBackendConfig | null | undefined;
|
|
167
|
+
/** Scaleway Serverless function origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
168
|
+
scaleway_serverless_function?: ScalewayServerlessFunctionBackendConfig | null | undefined;
|
|
169
|
+
}
|
|
170
|
+
export interface CreateCacheStageRequest {
|
|
171
|
+
/** Pipeline ID the Cache stage belongs to. (UUID format) */
|
|
172
|
+
pipeline_id: string;
|
|
173
|
+
/** Time To Live (TTL) in seconds. Defines how long content is cached. (in seconds) */
|
|
174
|
+
fallback_ttl?: string | null | undefined;
|
|
175
|
+
/** Defines whether responses to requests with cookies must be stored in the cache. */
|
|
176
|
+
include_cookies?: boolean | null | undefined;
|
|
177
|
+
/** Backend stage ID the cache stage will be linked to. (UUID format) Precisely one of backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
178
|
+
backend_stage_id?: string | null | undefined;
|
|
179
|
+
/** (UUID format) Precisely one of backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
180
|
+
waf_stage_id?: string | null | undefined;
|
|
181
|
+
/** (UUID format) Precisely one of backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
182
|
+
route_stage_id?: string | null | undefined;
|
|
183
|
+
}
|
|
184
|
+
export interface CacheStage {
|
|
185
|
+
/** ID of the cache stage. */
|
|
186
|
+
id?: string | undefined;
|
|
187
|
+
/** Pipeline ID the cache stage belongs to. */
|
|
188
|
+
pipeline_id?: string | undefined;
|
|
189
|
+
/** Time To Live (TTL) in seconds. Defines how long content is cached. (in seconds) */
|
|
190
|
+
fallback_ttl?: string | null | undefined;
|
|
191
|
+
/** Defines whether responses to requests with cookies must be stored in the cache. */
|
|
192
|
+
include_cookies?: boolean | undefined;
|
|
193
|
+
/** Current status of the stage. */
|
|
194
|
+
status?: StageStatus | undefined;
|
|
195
|
+
/** Date the cache stage was created. (RFC 3339 format) */
|
|
196
|
+
created_at?: string | null | undefined;
|
|
197
|
+
/** Date the cache stage was last updated. (RFC 3339 format) */
|
|
198
|
+
updated_at?: string | null | undefined;
|
|
199
|
+
/** (UUID format) Precisely one of waf_stage_id, backend_stage_id, route_stage_id can be set. */
|
|
200
|
+
waf_stage_id?: string | null | undefined;
|
|
201
|
+
/** Backend stage ID the cache stage is linked to. (UUID format) Precisely one of waf_stage_id, backend_stage_id, route_stage_id can be set. */
|
|
202
|
+
backend_stage_id?: string | null | undefined;
|
|
203
|
+
/** (UUID format) Precisely one of waf_stage_id, backend_stage_id, route_stage_id can be set. */
|
|
204
|
+
route_stage_id?: string | null | undefined;
|
|
205
|
+
}
|
|
206
|
+
/** Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now). */
|
|
207
|
+
export type CreateDNSStageRequestFqdnsList = Array<unknown>;
|
|
208
|
+
export interface CreateDNSStageRequest {
|
|
209
|
+
/** Pipeline ID the DNS stage belongs to. (UUID format) */
|
|
210
|
+
pipeline_id: string;
|
|
211
|
+
/** Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now). */
|
|
212
|
+
fqdns?: CreateDNSStageRequestFqdnsList | null | undefined;
|
|
213
|
+
/** TLS stage ID the DNS stage will be linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
214
|
+
tls_stage_id?: string | null | undefined;
|
|
215
|
+
/** Cache stage ID the DNS stage will be linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
216
|
+
cache_stage_id?: string | null | undefined;
|
|
217
|
+
/** Backend stage ID the DNS stage will be linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
218
|
+
backend_stage_id?: string | null | undefined;
|
|
219
|
+
/** Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work). */
|
|
220
|
+
wildcard_domain?: boolean | null | undefined;
|
|
221
|
+
}
|
|
222
|
+
/** Custom Fully Qualified Domain Names configured (only the first one is valid). */
|
|
223
|
+
export type DNSStageFqdnsList = Array<string>;
|
|
224
|
+
export type DNSStageType = "unknown_type" | "auto" | "managed" | "custom";
|
|
225
|
+
export interface DNSStage {
|
|
226
|
+
/** ID of the DNS stage. */
|
|
227
|
+
id?: string | undefined;
|
|
228
|
+
/** Default Fully Qualified Domain Name provided for the Pipeline. */
|
|
229
|
+
default_fqdn?: string | undefined;
|
|
230
|
+
/** Custom Fully Qualified Domain Names configured (only the first one is valid). */
|
|
231
|
+
fqdns?: DNSStageFqdnsList | undefined;
|
|
232
|
+
/** Type of the stage. */
|
|
233
|
+
type?: DNSStageType | undefined;
|
|
234
|
+
/** Pipeline ID the DNS stage belongs to. */
|
|
235
|
+
pipeline_id?: string | undefined;
|
|
236
|
+
/** Current status of the stage. */
|
|
237
|
+
status?: StageStatus | undefined;
|
|
238
|
+
/** Date the DNS stage was created. (RFC 3339 format) */
|
|
239
|
+
created_at?: string | null | undefined;
|
|
240
|
+
/** Date the DNS stage was last updated. (RFC 3339 format) */
|
|
241
|
+
updated_at?: string | null | undefined;
|
|
242
|
+
/** TLS stage ID the DNS stage is linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
243
|
+
tls_stage_id?: string | null | undefined;
|
|
244
|
+
/** Cache stage ID the DNS stage is linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
245
|
+
cache_stage_id?: string | null | undefined;
|
|
246
|
+
/** Backend stage ID the DNS stage is linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
247
|
+
backend_stage_id?: string | null | undefined;
|
|
248
|
+
/** Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work). */
|
|
249
|
+
wildcard_domain?: boolean | undefined;
|
|
250
|
+
}
|
|
251
|
+
export interface CreatePipelineRequest {
|
|
252
|
+
/** Project ID in which the pipeline will be created. (UUID format) */
|
|
253
|
+
project_id: string;
|
|
254
|
+
/** Name of the pipeline. */
|
|
255
|
+
name: string;
|
|
256
|
+
/** Description of the pipeline. */
|
|
257
|
+
description: string;
|
|
258
|
+
}
|
|
259
|
+
export type PipelineStatus =
|
|
260
|
+
| "unknown_status"
|
|
261
|
+
| "ready"
|
|
262
|
+
| "error"
|
|
263
|
+
| "pending"
|
|
264
|
+
| "warning"
|
|
265
|
+
| "locked";
|
|
266
|
+
export type PipelineErrorStage = "unknown_stage" | "dns" | "tls" | "cache" | "backend";
|
|
267
|
+
export type PipelineErrorCode =
|
|
268
|
+
| "unknown_code"
|
|
269
|
+
| "dns_invalid_format"
|
|
270
|
+
| "dns_invalid_tld"
|
|
271
|
+
| "dns_forbidden_root_domain"
|
|
272
|
+
| "dns_forbidden_scw_cloud"
|
|
273
|
+
| "dns_domain_dont_exist"
|
|
274
|
+
| "dns_cname_dont_exist"
|
|
275
|
+
| "dns_cname_resolve"
|
|
276
|
+
| "dns_fqdn_already_exists"
|
|
277
|
+
| "dns_fqdn_already_in_use"
|
|
278
|
+
| "tls_cert_deleted"
|
|
279
|
+
| "tls_cert_disabled"
|
|
280
|
+
| "tls_cert_expired"
|
|
281
|
+
| "tls_cert_invalid_format"
|
|
282
|
+
| "tls_cert_missing"
|
|
283
|
+
| "tls_chain_order"
|
|
284
|
+
| "tls_key_invalid_format"
|
|
285
|
+
| "tls_key_missing"
|
|
286
|
+
| "tls_key_too_many"
|
|
287
|
+
| "tls_managed_domain_rate_limit"
|
|
288
|
+
| "tls_managed_internal"
|
|
289
|
+
| "tls_managed_unsupported"
|
|
290
|
+
| "tls_not_wildcard"
|
|
291
|
+
| "tls_pair_mismatch"
|
|
292
|
+
| "tls_root_inconsistent"
|
|
293
|
+
| "tls_root_incorrect"
|
|
294
|
+
| "tls_root_missing"
|
|
295
|
+
| "tls_san_mismatch"
|
|
296
|
+
| "tls_self_signed"
|
|
297
|
+
| "tls_caa_malfunction"
|
|
298
|
+
| "pipeline_invalid_workflow"
|
|
299
|
+
| "pipeline_missing_head_stage"
|
|
300
|
+
| "pipeline_websocket_limit"
|
|
301
|
+
| "pipeline_configuration_failed";
|
|
302
|
+
export type PipelineErrorSeverity = "unknown_severity" | "warning" | "critical";
|
|
303
|
+
export type PipelineErrorType = "unknown_type" | "runtime" | "config";
|
|
304
|
+
export interface PipelineError {
|
|
305
|
+
stage?: PipelineErrorStage | undefined;
|
|
306
|
+
code?: PipelineErrorCode | undefined;
|
|
307
|
+
severity?: PipelineErrorSeverity | undefined;
|
|
308
|
+
message?: string | undefined;
|
|
309
|
+
type?: PipelineErrorType | undefined;
|
|
310
|
+
}
|
|
311
|
+
/** Errors of the pipeline. */
|
|
312
|
+
export type PipelineErrorsList = Array<PipelineError>;
|
|
313
|
+
export interface Pipeline {
|
|
314
|
+
/** ID of the pipeline. */
|
|
315
|
+
id?: string | undefined;
|
|
316
|
+
/** Name of the pipeline. */
|
|
317
|
+
name?: string | undefined;
|
|
318
|
+
/** Description of the pipeline. */
|
|
319
|
+
description?: string | undefined;
|
|
320
|
+
/** Status of the pipeline. */
|
|
321
|
+
status?: PipelineStatus | undefined;
|
|
322
|
+
/** Errors of the pipeline. */
|
|
323
|
+
errors?: PipelineErrorsList | undefined;
|
|
324
|
+
/** Project ID of the pipeline. (UUID format) */
|
|
325
|
+
project_id?: string | undefined;
|
|
326
|
+
/** Organization ID of the pipeline. */
|
|
327
|
+
organization_id?: string | undefined;
|
|
328
|
+
/** Date the pipeline was created. (RFC 3339 format) */
|
|
329
|
+
created_at?: string | null | undefined;
|
|
330
|
+
/** Date the pipeline was last updated. (RFC 3339 format) */
|
|
331
|
+
updated_at?: string | null | undefined;
|
|
332
|
+
}
|
|
333
|
+
/** List of asserts to purge. Precisely one of assets, all can be set. */
|
|
334
|
+
export type CreatePurgeRequestRequestAssetsList = Array<unknown>;
|
|
335
|
+
export interface CreatePurgeRequestRequest {
|
|
336
|
+
/** Pipeline ID in which the purge request will be created. (UUID format) */
|
|
337
|
+
pipeline_id: string;
|
|
338
|
+
/** List of asserts to purge. Precisely one of assets, all can be set. */
|
|
339
|
+
assets?: CreatePurgeRequestRequestAssetsList | null | undefined;
|
|
340
|
+
/** Defines whether to purge all content. Precisely one of assets, all can be set. */
|
|
341
|
+
all?: boolean | null | undefined;
|
|
342
|
+
}
|
|
343
|
+
export type PurgeRequestStatus = "unknown_status" | "done" | "error" | "pending";
|
|
344
|
+
/** List of asserts to purge. Precisely one of assets, all can be set. */
|
|
345
|
+
export type PurgeRequestAssetsList = Array<unknown>;
|
|
346
|
+
export interface PurgeRequest {
|
|
347
|
+
/** ID of the purge request. (UUID format) */
|
|
348
|
+
id?: string | undefined;
|
|
349
|
+
/** Pipeline ID the purge request belongs to. (UUID format) */
|
|
350
|
+
pipeline_id?: string | undefined;
|
|
351
|
+
/** Status of the purge request. */
|
|
352
|
+
status?: PurgeRequestStatus | undefined;
|
|
353
|
+
/** List of asserts to purge. Precisely one of assets, all can be set. */
|
|
354
|
+
assets?: PurgeRequestAssetsList | null | undefined;
|
|
355
|
+
/** Defines whether to purge all content. Precisely one of assets, all can be set. */
|
|
356
|
+
all?: boolean | null | undefined;
|
|
357
|
+
/** Date the purge request was created. (RFC 3339 format) */
|
|
358
|
+
created_at?: string | null | undefined;
|
|
359
|
+
/** Date the purge request was last updated. (RFC 3339 format) */
|
|
360
|
+
updated_at?: string | null | undefined;
|
|
361
|
+
}
|
|
362
|
+
export interface CreateRouteStageRequest {
|
|
363
|
+
/** Pipeline ID the route stage belongs to. (UUID format) */
|
|
364
|
+
pipeline_id: string;
|
|
365
|
+
/** ID of the WAF stage HTTP requests should be forwarded to when no rules are matched. (UUID format) Precisely one of waf_stage_id, backend_stage_id can be set. */
|
|
366
|
+
waf_stage_id?: string | null | undefined;
|
|
367
|
+
/** ID of the backend stage HTTP requests should be forwarded to when no rules are matched. (UUID format) Precisely one of waf_stage_id, backend_stage_id can be set. */
|
|
368
|
+
backend_stage_id?: string | null | undefined;
|
|
369
|
+
}
|
|
370
|
+
export interface RouteStage {
|
|
371
|
+
/** ID of the route stage. */
|
|
372
|
+
id?: string | undefined;
|
|
373
|
+
/** Pipeline ID the route stage belongs to. */
|
|
374
|
+
pipeline_id?: string | undefined;
|
|
375
|
+
/** ID of the WAF stage HTTP requests should be forwarded to when no rules are matched. (UUID format) Precisely one of waf_stage_id, backend_stage_id can be set. */
|
|
376
|
+
waf_stage_id?: string | null | undefined;
|
|
377
|
+
/** ID of the backend stage HTTP requests should be forwarded to when no rules are matched. (UUID format) Precisely one of waf_stage_id, backend_stage_id can be set. */
|
|
378
|
+
backend_stage_id?: string | null | undefined;
|
|
379
|
+
/** Current status of the stage. */
|
|
380
|
+
status?: StageStatus | undefined;
|
|
381
|
+
/** Date the route stage was created. (RFC 3339 format) */
|
|
382
|
+
created_at?: string | null | undefined;
|
|
383
|
+
/** Date the route stage was last updated. (RFC 3339 format) */
|
|
384
|
+
updated_at?: string | null | undefined;
|
|
385
|
+
}
|
|
386
|
+
export interface TLSSecret {
|
|
387
|
+
/** ID of the Secret. */
|
|
388
|
+
secret_id: string;
|
|
389
|
+
/** Region of the Secret. */
|
|
390
|
+
region: string;
|
|
391
|
+
}
|
|
392
|
+
/** Secret (from Scaleway Secret Manager) containing your custom certificate. */
|
|
393
|
+
export type CreateTLSStageRequestSecretsList = Array<TLSSecret>;
|
|
394
|
+
export interface CreateTLSStageRequest {
|
|
395
|
+
/** Pipeline ID the TLS stage belongs to. (UUID format) */
|
|
396
|
+
pipeline_id: string;
|
|
397
|
+
/** Secret (from Scaleway Secret Manager) containing your custom certificate. */
|
|
398
|
+
secrets?: CreateTLSStageRequestSecretsList | undefined;
|
|
399
|
+
/** True when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint. */
|
|
400
|
+
managed_certificate?: boolean | null | undefined;
|
|
401
|
+
/** Cache stage ID the TLS stage will be linked to. (UUID format) Precisely one of cache_stage_id, backend_stage_id, route_stage_id, waf_stage_id can be set. */
|
|
402
|
+
cache_stage_id?: string | null | undefined;
|
|
403
|
+
/** Backend stage ID the TLS stage will be linked to. (UUID format) Precisely one of cache_stage_id, backend_stage_id, route_stage_id, waf_stage_id can be set. */
|
|
404
|
+
backend_stage_id?: string | null | undefined;
|
|
405
|
+
/** (UUID format) Precisely one of cache_stage_id, backend_stage_id, route_stage_id, waf_stage_id can be set. */
|
|
406
|
+
route_stage_id?: string | null | undefined;
|
|
407
|
+
/** (UUID format) Precisely one of cache_stage_id, backend_stage_id, route_stage_id, waf_stage_id can be set. */
|
|
408
|
+
waf_stage_id?: string | null | undefined;
|
|
409
|
+
}
|
|
410
|
+
/** Secret (from Scaleway Secret Manager) containing your custom certificate. */
|
|
411
|
+
export type TLSStageSecretsList = Array<TLSSecret>;
|
|
412
|
+
export interface TLSStage {
|
|
413
|
+
/** ID of the TLS stage. */
|
|
414
|
+
id?: string | undefined;
|
|
415
|
+
/** Secret (from Scaleway Secret Manager) containing your custom certificate. */
|
|
416
|
+
secrets?: TLSStageSecretsList | undefined;
|
|
417
|
+
/** True when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint. */
|
|
418
|
+
managed_certificate?: boolean | undefined;
|
|
419
|
+
/** Pipeline ID the TLS stage belongs to. */
|
|
420
|
+
pipeline_id?: string | undefined;
|
|
421
|
+
/** Expiration date of the certificate. (RFC 3339 format) */
|
|
422
|
+
certificate_expires_at?: string | null | undefined;
|
|
423
|
+
/** Current status of the stage. */
|
|
424
|
+
status?: StageStatus | undefined;
|
|
425
|
+
/** Date the TLS stage was created. (RFC 3339 format) */
|
|
426
|
+
created_at?: string | null | undefined;
|
|
427
|
+
/** Date the TLS stage was last updated. (RFC 3339 format) */
|
|
428
|
+
updated_at?: string | null | undefined;
|
|
429
|
+
/** Cache stage ID the TLS stage is linked to. (UUID format) Precisely one of cache_stage_id, backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
430
|
+
cache_stage_id?: string | null | undefined;
|
|
431
|
+
/** Backend stage ID the TLS stage is linked to. (UUID format) Precisely one of cache_stage_id, backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
432
|
+
backend_stage_id?: string | null | undefined;
|
|
433
|
+
/** (UUID format) Precisely one of cache_stage_id, backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
434
|
+
waf_stage_id?: string | null | undefined;
|
|
435
|
+
/** (UUID format) Precisely one of cache_stage_id, backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
436
|
+
route_stage_id?: string | null | undefined;
|
|
437
|
+
}
|
|
438
|
+
export interface CreateVPCEndpointRequest {
|
|
439
|
+
/** Project ID of the VPC Endpoint. */
|
|
440
|
+
project_id?: string | undefined;
|
|
441
|
+
/** Zone of the VPC Endpoint. */
|
|
442
|
+
region?: string | undefined;
|
|
443
|
+
/** Private Network ID of the VPC Endpoint. */
|
|
444
|
+
private_network_id: string;
|
|
445
|
+
}
|
|
446
|
+
export interface VPCEndpoint {
|
|
447
|
+
/** The VPC Endpoint ID. */
|
|
448
|
+
id?: string | undefined;
|
|
449
|
+
/** Project ID of the VPC Endpoint. */
|
|
450
|
+
project_id?: string | undefined;
|
|
451
|
+
/** Zone of the VPC Endpoint. */
|
|
452
|
+
region?: string | undefined;
|
|
453
|
+
/** Private Network ID of the VPC Endpoint. */
|
|
454
|
+
private_network_id?: string | undefined;
|
|
455
|
+
/** Date the VPC Endpoint was created. */
|
|
456
|
+
created_at?: string | undefined;
|
|
457
|
+
/** Date the VPC Endpoint was last updated. */
|
|
458
|
+
updated_at?: string | undefined;
|
|
459
|
+
}
|
|
460
|
+
export type WafStageMode = "unknown_mode" | "disable" | "log_only" | "enable";
|
|
461
|
+
export interface WafExclusionRule {
|
|
462
|
+
rule_id?: number | undefined;
|
|
463
|
+
}
|
|
464
|
+
export type WafExclusionRulesRulesList = Array<WafExclusionRule>;
|
|
465
|
+
export interface WafExclusionRules {
|
|
466
|
+
rules?: WafExclusionRulesRulesList | undefined;
|
|
467
|
+
}
|
|
468
|
+
export interface CreateWafStageRequest {
|
|
469
|
+
/** Pipeline ID the WAF stage belongs to. (UUID format) */
|
|
470
|
+
pipeline_id: string;
|
|
471
|
+
/** Mode defining WAF behavior (`disable`/`log_only`/`enable`). */
|
|
472
|
+
mode?: WafStageMode | (string & {}) | undefined;
|
|
473
|
+
/** Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign. */
|
|
474
|
+
paranoia_level?: number | undefined;
|
|
475
|
+
/** List of OWASP® CRS rule IDs excluded from WAF. */
|
|
476
|
+
exclusion_rules?: WafExclusionRules | undefined;
|
|
477
|
+
/** ID of the backend stage to forward requests to after the WAF stage. (UUID format) Precisely one of backend_stage_id can be set. */
|
|
478
|
+
backend_stage_id?: string | null | undefined;
|
|
479
|
+
}
|
|
480
|
+
/** List of OWASP® CRS rule IDs excluded from WAF. */
|
|
481
|
+
export type WafStageExclusionRulesList = Array<WafExclusionRule>;
|
|
482
|
+
export interface WafStage {
|
|
483
|
+
/** ID of the WAF stage. */
|
|
484
|
+
id?: string | undefined;
|
|
485
|
+
/** Pipeline ID the WAF stage belongs to. */
|
|
486
|
+
pipeline_id?: string | undefined;
|
|
487
|
+
/** Mode defining WAF behavior (`disable`/`log_only`/`enable`). */
|
|
488
|
+
mode?: WafStageMode | undefined;
|
|
489
|
+
/** Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign. */
|
|
490
|
+
paranoia_level?: number | undefined;
|
|
491
|
+
/** Current status of the stage. */
|
|
492
|
+
status?: StageStatus | undefined;
|
|
493
|
+
/** Date the WAF stage was created. (RFC 3339 format) */
|
|
494
|
+
created_at?: string | null | undefined;
|
|
495
|
+
/** Date the WAF stage was last updated. (RFC 3339 format) */
|
|
496
|
+
updated_at?: string | null | undefined;
|
|
497
|
+
/** ID of the backend stage to forward requests to after the WAF stage. (UUID format) Precisely one of backend_stage_id can be set. */
|
|
498
|
+
backend_stage_id?: string | null | undefined;
|
|
499
|
+
/** List of OWASP® CRS rule IDs excluded from WAF. */
|
|
500
|
+
exclusion_rules?: WafStageExclusionRulesList | undefined;
|
|
501
|
+
}
|
|
502
|
+
export interface DeleteBackendStageRequest {
|
|
503
|
+
/** ID of the backend stage to delete. */
|
|
504
|
+
backend_stage_id: string;
|
|
505
|
+
}
|
|
506
|
+
export interface DeleteBackendStageResponse {}
|
|
507
|
+
export interface DeleteCacheStageRequest {
|
|
508
|
+
/** ID of the cache stage to delete. */
|
|
509
|
+
cache_stage_id: string;
|
|
510
|
+
}
|
|
511
|
+
export interface DeleteCacheStageResponse {}
|
|
512
|
+
export interface DeleteCurrentPlanRequest {
|
|
513
|
+
/** (UUID format) */
|
|
514
|
+
project_id: string;
|
|
515
|
+
}
|
|
516
|
+
export interface DeleteCurrentPlanResponse {}
|
|
517
|
+
export interface DeleteDNSStageRequest {
|
|
518
|
+
/** ID of the DNS stage to delete. */
|
|
519
|
+
dns_stage_id: string;
|
|
520
|
+
}
|
|
521
|
+
export interface DeleteDNSStageResponse {}
|
|
522
|
+
export interface DeletePipelineRequest {
|
|
523
|
+
/** ID of the pipeline to delete. */
|
|
524
|
+
pipeline_id: string;
|
|
525
|
+
}
|
|
526
|
+
export interface DeletePipelineResponse {}
|
|
527
|
+
export interface DeleteRouteStageRequest {
|
|
528
|
+
/** ID of the route stage to delete. */
|
|
529
|
+
route_stage_id: string;
|
|
530
|
+
}
|
|
531
|
+
export interface DeleteRouteStageResponse {}
|
|
532
|
+
export interface DeleteTLSStageRequest {
|
|
533
|
+
/** ID of the TLS stage to delete. */
|
|
534
|
+
tls_stage_id: string;
|
|
535
|
+
}
|
|
536
|
+
export interface DeleteTLSStageResponse {}
|
|
537
|
+
export interface DeleteVPCEndpointRequest {
|
|
538
|
+
/** The VPC Endpoint ID. */
|
|
539
|
+
vpc_endpoint_id: string;
|
|
540
|
+
}
|
|
541
|
+
export interface DeleteVPCEndpointResponse {}
|
|
542
|
+
export interface DeleteWafStageRequest {
|
|
543
|
+
/** ID of the WAF stage to delete. */
|
|
544
|
+
waf_stage_id: string;
|
|
545
|
+
}
|
|
546
|
+
export interface DeleteWafStageResponse {}
|
|
547
|
+
export interface GetBackendStageRequest {
|
|
548
|
+
/** ID of the requested backend stage. */
|
|
549
|
+
backend_stage_id: string;
|
|
550
|
+
}
|
|
551
|
+
export interface GetBillingRequest {
|
|
552
|
+
/** (UUID format) */
|
|
553
|
+
project_id: string;
|
|
554
|
+
}
|
|
555
|
+
export type PlanName = "unknown_name" | "starter" | "professional" | "advanced";
|
|
556
|
+
export interface PlanDetails {
|
|
557
|
+
/** Subscription plan name. */
|
|
558
|
+
plan_name?: PlanName | undefined;
|
|
559
|
+
/** Amount of egress data from cache included in subscription plan. */
|
|
560
|
+
package_gb?: number | undefined;
|
|
561
|
+
/** Number of pipelines included in subscription plan. */
|
|
562
|
+
pipeline_limit?: number | undefined;
|
|
563
|
+
/** Number of WAF requests included in subscription plan. */
|
|
564
|
+
waf_requests?: number | undefined;
|
|
565
|
+
/** Number of backends per pipeline included in subscription plan. */
|
|
566
|
+
backend_limit?: number | undefined;
|
|
567
|
+
/** Support of wildcard subdomains for the customized domain. */
|
|
568
|
+
wildcard_domain?: boolean | undefined;
|
|
569
|
+
}
|
|
570
|
+
export interface GoogleTypeMoney {
|
|
571
|
+
currency_code?: string | undefined;
|
|
572
|
+
units?: number | undefined;
|
|
573
|
+
nanos?: number | undefined;
|
|
574
|
+
}
|
|
575
|
+
export interface PlanUsageDetails {
|
|
576
|
+
/** Cost to date (this month) for the corresponding Edge Services subscription plan. */
|
|
577
|
+
plan_cost?: GoogleTypeMoney | undefined;
|
|
578
|
+
}
|
|
579
|
+
/** Detailed costs and usage for all Edge Services subscription plans that were activated during the month. */
|
|
580
|
+
export type GetBillingResponsePlansUsageDetailsMap = {
|
|
581
|
+
[key: string]: PlanUsageDetails | undefined;
|
|
582
|
+
};
|
|
583
|
+
export interface GetBillingResponse {
|
|
584
|
+
/** Information on the currently-selected, active Edge Services subscription plan. */
|
|
585
|
+
current_plan?: PlanDetails | undefined;
|
|
586
|
+
/** Cost to date (this month) for Edge Service subscription plans. This comprises the pro-rata cost of the current subscription plan, and any previous subscription plans that were active earlier in the month. */
|
|
587
|
+
plan_cost?: GoogleTypeMoney | undefined;
|
|
588
|
+
/** Total number of pipelines currently configured. */
|
|
589
|
+
pipeline_number?: number | undefined;
|
|
590
|
+
/** Cost to date (this month) of pipelines not included in the subscription plans. */
|
|
591
|
+
extra_pipelines_cost?: GoogleTypeMoney | undefined;
|
|
592
|
+
/** Total amount of data egressed from the cache in gigabytes from the beginning of the month, for the active subscription plan. */
|
|
593
|
+
current_plan_cache_usage?: number | undefined;
|
|
594
|
+
/** Total amount of extra data egressed from cache in gigabytes from the beginning of the month, not included in the subscription plans. */
|
|
595
|
+
extra_cache_usage?: number | undefined;
|
|
596
|
+
/** Cost to date (this month) of the data egressed from the cache that is not included in the subscription plans. */
|
|
597
|
+
extra_cache_cost?: GoogleTypeMoney | undefined;
|
|
598
|
+
/** Total number of requests processed by the WAF since the beginning of the current month, for the active subscription plan. */
|
|
599
|
+
current_plan_waf_usage?: number | undefined;
|
|
600
|
+
/** Total number of extra requests processed by the WAF from the beginning of the month, not included in the subscription plans. */
|
|
601
|
+
extra_waf_usage?: number | undefined;
|
|
602
|
+
/** Cost to date (this month) of the extra requests processed by the WAF that were not included in the subscription plans. */
|
|
603
|
+
extra_waf_cost?: GoogleTypeMoney | undefined;
|
|
604
|
+
/** Cost of activating WAF add-on (where subscription plan does not include WAF). */
|
|
605
|
+
waf_add_on?: GoogleTypeMoney | undefined;
|
|
606
|
+
/** Detailed costs and usage for all Edge Services subscription plans that were activated during the month. */
|
|
607
|
+
plans_usage_details?: GetBillingResponsePlansUsageDetailsMap | undefined;
|
|
608
|
+
/** Total cost to date (this month) of all Edge Services resources including active subscription plan, previously active plans, extra pipelines and extra egress cache data. */
|
|
609
|
+
total_cost?: GoogleTypeMoney | undefined;
|
|
610
|
+
}
|
|
611
|
+
export interface GetCacheStageRequest {
|
|
612
|
+
/** ID of the requested cache stage. */
|
|
613
|
+
cache_stage_id: string;
|
|
614
|
+
}
|
|
615
|
+
export interface GetCurrentPlanRequest {
|
|
616
|
+
/** (UUID format) */
|
|
617
|
+
project_id: string;
|
|
618
|
+
}
|
|
619
|
+
export interface Plan {
|
|
620
|
+
plan_name?: PlanName | undefined;
|
|
621
|
+
}
|
|
622
|
+
export interface GetDNSStageRequest {
|
|
623
|
+
/** ID of the requested DNS stage. */
|
|
624
|
+
dns_stage_id: string;
|
|
625
|
+
}
|
|
626
|
+
export interface GetPipelineRequest {
|
|
627
|
+
/** ID of the requested pipeline. */
|
|
628
|
+
pipeline_id: string;
|
|
629
|
+
}
|
|
630
|
+
export interface GetPurgeRequestRequest {
|
|
631
|
+
/** ID of the requested purge request. (UUID format) */
|
|
632
|
+
purge_request_id: string;
|
|
633
|
+
}
|
|
634
|
+
export interface GetRouteStageRequest {
|
|
635
|
+
/** ID of the requested route stage. */
|
|
636
|
+
route_stage_id: string;
|
|
637
|
+
}
|
|
638
|
+
export interface GetTLSStageRequest {
|
|
639
|
+
/** ID of the requested TLS stage. */
|
|
640
|
+
tls_stage_id: string;
|
|
641
|
+
}
|
|
642
|
+
export interface GetVPCEndpointRequest {
|
|
643
|
+
/** The VPC Endpoint ID. */
|
|
644
|
+
vpc_endpoint_id: string;
|
|
645
|
+
}
|
|
646
|
+
export interface GetWafStageRequest {
|
|
647
|
+
/** ID of the requested WAF stage. */
|
|
648
|
+
waf_stage_id: string;
|
|
649
|
+
}
|
|
650
|
+
export type ListBackendStagesRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
651
|
+
export interface ListBackendStagesRequest {
|
|
652
|
+
/** Pipeline ID to filter for. Only backend stages from this pipeline will be returned. */
|
|
653
|
+
pipeline_id: string;
|
|
654
|
+
/** Sort order of backend stages in the response. */
|
|
655
|
+
order_by?: ListBackendStagesRequestOrderBy | (string & {}) | undefined;
|
|
656
|
+
/** Page number to return, from the paginated results. */
|
|
657
|
+
page?: number | undefined;
|
|
658
|
+
/** Number of backend stages to return per page. */
|
|
659
|
+
page_size?: number | undefined;
|
|
660
|
+
/** Bucket name to filter for. Only backend stages from this Bucket will be returned. */
|
|
661
|
+
bucket_name?: string | undefined;
|
|
662
|
+
/** Bucket region to filter for. Only backend stages with buckets in this region will be returned. */
|
|
663
|
+
bucket_region?: string | undefined;
|
|
664
|
+
/** Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned. */
|
|
665
|
+
lb_id?: string | undefined;
|
|
666
|
+
}
|
|
667
|
+
/** Paginated list of backend stages. */
|
|
668
|
+
export type ListBackendStagesResponseStagesList = Array<BackendStage>;
|
|
669
|
+
export interface ListBackendStagesResponse {
|
|
670
|
+
/** Paginated list of backend stages. */
|
|
671
|
+
stages: ListBackendStagesResponseStagesList;
|
|
672
|
+
/** Count of all backend stages matching the requested criteria. */
|
|
673
|
+
total_count?: number | undefined;
|
|
674
|
+
}
|
|
675
|
+
export type ListCacheStagesRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
676
|
+
export interface ListCacheStagesRequest {
|
|
677
|
+
/** Pipeline ID to filter for. Only cache stages from this pipeline will be returned. */
|
|
678
|
+
pipeline_id: string;
|
|
679
|
+
/** Sort order of cache stages in the response. */
|
|
680
|
+
order_by?: ListCacheStagesRequestOrderBy | (string & {}) | undefined;
|
|
681
|
+
/** Page number to return, from the paginated results. */
|
|
682
|
+
page?: number | undefined;
|
|
683
|
+
/** Number of cache stages to return per page. */
|
|
684
|
+
page_size?: number | undefined;
|
|
685
|
+
}
|
|
686
|
+
/** Paginated list of cache stages. */
|
|
687
|
+
export type ListCacheStagesResponseStagesList = Array<CacheStage>;
|
|
688
|
+
export interface ListCacheStagesResponse {
|
|
689
|
+
/** Paginated list of cache stages. */
|
|
690
|
+
stages: ListCacheStagesResponseStagesList;
|
|
691
|
+
/** Count of all cache stages matching the requested criteria. */
|
|
692
|
+
total_count?: number | undefined;
|
|
693
|
+
}
|
|
694
|
+
export type ListDNSStagesRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
695
|
+
export interface ListDNSStagesRequest {
|
|
696
|
+
/** Pipeline ID to filter for. Only DNS stages from this pipeline will be returned. */
|
|
697
|
+
pipeline_id: string;
|
|
698
|
+
/** Sort order of DNS stages in the response. */
|
|
699
|
+
order_by?: ListDNSStagesRequestOrderBy | (string & {}) | undefined;
|
|
700
|
+
/** Page number to return, from the paginated results. */
|
|
701
|
+
page?: number | undefined;
|
|
702
|
+
/** Number of DNS stages to return per page. */
|
|
703
|
+
page_size?: number | undefined;
|
|
704
|
+
/** Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned. */
|
|
705
|
+
fqdn?: string | undefined;
|
|
706
|
+
}
|
|
707
|
+
/** Paginated list of DNS stages. */
|
|
708
|
+
export type ListDNSStagesResponseStagesList = Array<DNSStage>;
|
|
709
|
+
export interface ListDNSStagesResponse {
|
|
710
|
+
/** Paginated list of DNS stages. */
|
|
711
|
+
stages: ListDNSStagesResponseStagesList;
|
|
712
|
+
/** Count of all DNS stages matching the requested criteria. */
|
|
713
|
+
total_count?: number | undefined;
|
|
714
|
+
}
|
|
715
|
+
export interface ListHeadStagesRequest {
|
|
716
|
+
/** ID of the pipeline to update. (UUID format) */
|
|
717
|
+
pipeline_id: string;
|
|
718
|
+
/** Page number to return, from the paginated results. */
|
|
719
|
+
page?: number | undefined;
|
|
720
|
+
/** Number of head stages to return per page. */
|
|
721
|
+
page_size?: number | undefined;
|
|
722
|
+
}
|
|
723
|
+
export interface ListHeadStagesResponseHeadStage {
|
|
724
|
+
/** (UUID format) Precisely one of dns_stage_id can be set. */
|
|
725
|
+
dns_stage_id?: string | null | undefined;
|
|
726
|
+
}
|
|
727
|
+
/** Number of head stages to return per page. */
|
|
728
|
+
export type ListHeadStagesResponseHeadStagesList = Array<ListHeadStagesResponseHeadStage>;
|
|
729
|
+
export interface ListHeadStagesResponse {
|
|
730
|
+
/** Number of head stages to return per page. */
|
|
731
|
+
head_stages: ListHeadStagesResponseHeadStagesList;
|
|
732
|
+
/** Count of all head stages matching the requested pipeline_id. */
|
|
733
|
+
total_count?: number | undefined;
|
|
734
|
+
}
|
|
735
|
+
export interface ListNodesRequest {}
|
|
736
|
+
export interface Node {
|
|
737
|
+
/** (IP address) */
|
|
738
|
+
ip?: string | undefined;
|
|
739
|
+
}
|
|
740
|
+
export type ListNodesResponseNodesList = Array<Node>;
|
|
741
|
+
export interface ListNodesResponse {
|
|
742
|
+
nodes?: ListNodesResponseNodesList | undefined;
|
|
743
|
+
total_count?: number | undefined;
|
|
744
|
+
}
|
|
745
|
+
export type ListPipelinesRequestOrderBy =
|
|
746
|
+
| "created_at_asc"
|
|
747
|
+
| "created_at_desc"
|
|
748
|
+
| "name_asc"
|
|
749
|
+
| "name_desc";
|
|
750
|
+
export interface ListPipelinesRequest {
|
|
751
|
+
/** Sort order of pipelines in the response. */
|
|
752
|
+
order_by?: ListPipelinesRequestOrderBy | (string & {}) | undefined;
|
|
753
|
+
/** Page number to return, from the paginated results. */
|
|
754
|
+
page?: number | undefined;
|
|
755
|
+
/** Number of pipelines to return per page. */
|
|
756
|
+
page_size?: number | undefined;
|
|
757
|
+
/** Pipeline name to filter for. Only pipelines with this string within their name will be returned. */
|
|
758
|
+
name?: string | undefined;
|
|
759
|
+
/** Organization ID to filter for. Only pipelines from this Organization will be returned. */
|
|
760
|
+
organization_id?: string | undefined;
|
|
761
|
+
/** Project ID to filter for. Only pipelines from this Project will be returned. */
|
|
762
|
+
project_id?: string | undefined;
|
|
763
|
+
/** Filter on backend stage. Only pipelines with a Load Balancer origin will be returned. */
|
|
764
|
+
has_backend_stage_lb?: boolean | undefined;
|
|
765
|
+
}
|
|
766
|
+
/** Paginated list of pipelines. */
|
|
767
|
+
export type ListPipelinesResponsePipelinesList = Array<Pipeline>;
|
|
768
|
+
export interface ListPipelinesResponse {
|
|
769
|
+
/** Paginated list of pipelines. */
|
|
770
|
+
pipelines: ListPipelinesResponsePipelinesList;
|
|
771
|
+
/** Count of all pipelines matching the requested criteria. */
|
|
772
|
+
total_count?: number | undefined;
|
|
773
|
+
}
|
|
774
|
+
export interface ListPlansRequest {}
|
|
775
|
+
export type ListPlansResponsePlansList = Array<PlanDetails>;
|
|
776
|
+
export interface ListPlansResponse {
|
|
777
|
+
total_count?: number | undefined;
|
|
778
|
+
plans?: ListPlansResponsePlansList | undefined;
|
|
779
|
+
}
|
|
780
|
+
export type ListPurgeRequestsRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
781
|
+
export interface ListPurgeRequestsRequest {
|
|
782
|
+
/** Sort order of purge requests in the response. */
|
|
783
|
+
order_by?: ListPurgeRequestsRequestOrderBy | (string & {}) | undefined;
|
|
784
|
+
/** Page number to return, from the paginated results. */
|
|
785
|
+
page?: number | undefined;
|
|
786
|
+
/** Number of purge requests to return per page. */
|
|
787
|
+
page_size?: number | undefined;
|
|
788
|
+
/** Organization ID to filter for. Only purge requests from this Organization will be returned. */
|
|
789
|
+
organization_id?: string | undefined;
|
|
790
|
+
/** Project ID to filter for. Only purge requests from this Project will be returned. */
|
|
791
|
+
project_id?: string | undefined;
|
|
792
|
+
/** Pipeline ID to filter for. Only purge requests from this pipeline will be returned. */
|
|
793
|
+
pipeline_id?: string | undefined;
|
|
794
|
+
}
|
|
795
|
+
/** Paginated list of purge requests. */
|
|
796
|
+
export type ListPurgeRequestsResponsePurgeRequestsList = Array<PurgeRequest>;
|
|
797
|
+
export interface ListPurgeRequestsResponse {
|
|
798
|
+
/** Paginated list of purge requests. */
|
|
799
|
+
purge_requests: ListPurgeRequestsResponsePurgeRequestsList;
|
|
800
|
+
/** Count of all purge requests matching the requested criteria. */
|
|
801
|
+
total_count?: number | undefined;
|
|
802
|
+
}
|
|
803
|
+
export interface ListRouteRulesRequest {
|
|
804
|
+
/** Route stage ID to filter for. Only route rules from this route stage will be returned. */
|
|
805
|
+
route_stage_id: string;
|
|
806
|
+
}
|
|
807
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
808
|
+
export type ListRouteRulesResponseRouteRulesList = Array<RouteRule>;
|
|
809
|
+
export interface ListRouteRulesResponse {
|
|
810
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
811
|
+
route_rules?: ListRouteRulesResponseRouteRulesList | undefined;
|
|
812
|
+
/** Count of all route rules matching the requested criteria. */
|
|
813
|
+
total_count?: number | undefined;
|
|
814
|
+
}
|
|
815
|
+
export type ListRouteStagesRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
816
|
+
export interface ListRouteStagesRequest {
|
|
817
|
+
/** Pipeline ID to filter for. Only route stages from this pipeline will be returned. */
|
|
818
|
+
pipeline_id: string;
|
|
819
|
+
/** Sort order of route stages in the response. */
|
|
820
|
+
order_by?: ListRouteStagesRequestOrderBy | (string & {}) | undefined;
|
|
821
|
+
/** Page number to return, from the paginated results. */
|
|
822
|
+
page?: number | undefined;
|
|
823
|
+
/** Number of route stages to return per page. */
|
|
824
|
+
page_size?: number | undefined;
|
|
825
|
+
}
|
|
826
|
+
/** Paginated list of summarized route stages. */
|
|
827
|
+
export type ListRouteStagesResponseStagesList = Array<RouteStage>;
|
|
828
|
+
export interface ListRouteStagesResponse {
|
|
829
|
+
/** Paginated list of summarized route stages. */
|
|
830
|
+
stages: ListRouteStagesResponseStagesList;
|
|
831
|
+
/** Count of all route stages matching the requested criteria. */
|
|
832
|
+
total_count?: number | undefined;
|
|
833
|
+
}
|
|
834
|
+
export type ListTLSStagesRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
835
|
+
export interface ListTLSStagesRequest {
|
|
836
|
+
/** Pipeline ID to filter for. Only TLS stages from this pipeline will be returned. */
|
|
837
|
+
pipeline_id: string;
|
|
838
|
+
/** Sort order of TLS stages in the response. */
|
|
839
|
+
order_by?: ListTLSStagesRequestOrderBy | (string & {}) | undefined;
|
|
840
|
+
/** Page number to return, from the paginated results. */
|
|
841
|
+
page?: number | undefined;
|
|
842
|
+
/** Number of TLS stages to return per page. */
|
|
843
|
+
page_size?: number | undefined;
|
|
844
|
+
/** Secret ID to filter for. Only TLS stages with this Secret ID will be returned. */
|
|
845
|
+
secret_id?: string | undefined;
|
|
846
|
+
/** Secret region to filter for. Only TLS stages with a Secret in this region will be returned. */
|
|
847
|
+
secret_region?: string | undefined;
|
|
848
|
+
}
|
|
849
|
+
/** Paginated list of TLS stages. */
|
|
850
|
+
export type ListTLSStagesResponseStagesList = Array<TLSStage>;
|
|
851
|
+
export interface ListTLSStagesResponse {
|
|
852
|
+
/** Paginated list of TLS stages. */
|
|
853
|
+
stages: ListTLSStagesResponseStagesList;
|
|
854
|
+
/** Count of all TLS stages matching the requested criteria. */
|
|
855
|
+
total_count?: number | undefined;
|
|
856
|
+
}
|
|
857
|
+
export type ListVPCEndpointsRequestOrderBy =
|
|
858
|
+
| "created_at_asc"
|
|
859
|
+
| "created_at_desc"
|
|
860
|
+
| "name_asc"
|
|
861
|
+
| "name_desc";
|
|
862
|
+
export interface ListVPCEndpointsRequest {
|
|
863
|
+
/** Sort order of VPC Endpoints in the response. */
|
|
864
|
+
order_by?: ListVPCEndpointsRequestOrderBy | (string & {}) | undefined;
|
|
865
|
+
/** Organization ID to filter for. Only VPC Endpoints from this Organization will be returned. */
|
|
866
|
+
organization_id?: string | undefined;
|
|
867
|
+
/** Page number to return, from the paginated results. */
|
|
868
|
+
page?: number | undefined;
|
|
869
|
+
/** Number of VPC Endpoints to return per page. */
|
|
870
|
+
page_size?: number | undefined;
|
|
871
|
+
/** Project ID to filter for. Only VPC Endpoints from this project will be returned. */
|
|
872
|
+
project_id?: string | undefined;
|
|
873
|
+
}
|
|
874
|
+
/** Paginated list of VPC Endpoints. */
|
|
875
|
+
export type ListVPCEndpointsResponseVpcEndpointsList = Array<VPCEndpoint>;
|
|
876
|
+
export interface ListVPCEndpointsResponse {
|
|
877
|
+
/** Paginated list of VPC Endpoints. */
|
|
878
|
+
vpc_endpoints: ListVPCEndpointsResponseVpcEndpointsList;
|
|
879
|
+
/** Count of all VPC Endpoints matching the requested criteria. */
|
|
880
|
+
total_count?: number | undefined;
|
|
881
|
+
}
|
|
882
|
+
export type ListWafStagesRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
883
|
+
export interface ListWafStagesRequest {
|
|
884
|
+
/** Pipeline ID to filter for. Only WAF stages from this pipeline will be returned. */
|
|
885
|
+
pipeline_id: string;
|
|
886
|
+
/** Sort order of WAF stages in the response. */
|
|
887
|
+
order_by?: ListWafStagesRequestOrderBy | (string & {}) | undefined;
|
|
888
|
+
/** Page number to return, from the paginated results. */
|
|
889
|
+
page?: number | undefined;
|
|
890
|
+
/** Number of WAF stages to return per page. */
|
|
891
|
+
page_size?: number | undefined;
|
|
892
|
+
}
|
|
893
|
+
/** Paginated list of WAF stages. */
|
|
894
|
+
export type ListWafStagesResponseStagesList = Array<WafStage>;
|
|
895
|
+
export interface ListWafStagesResponse {
|
|
896
|
+
/** Paginated list of WAF stages. */
|
|
897
|
+
stages: ListWafStagesResponseStagesList;
|
|
898
|
+
/** Count of all WAF stages matching the requested criteria. */
|
|
899
|
+
total_count?: number | undefined;
|
|
900
|
+
}
|
|
901
|
+
export interface SelectPlanRequest {
|
|
902
|
+
/** (UUID format) */
|
|
903
|
+
project_id?: string | undefined;
|
|
904
|
+
plan_name?: PlanName | (string & {}) | undefined;
|
|
905
|
+
}
|
|
906
|
+
export interface SetHeadStageRequestAddNewHeadStage {
|
|
907
|
+
/** (UUID format) */
|
|
908
|
+
new_stage_id?: string | undefined;
|
|
909
|
+
}
|
|
910
|
+
export interface SetHeadStageRequestRemoveHeadStage {
|
|
911
|
+
/** (UUID format) */
|
|
912
|
+
remove_stage_id?: string | undefined;
|
|
913
|
+
}
|
|
914
|
+
export interface SetHeadStageRequestSwapHeadStage {
|
|
915
|
+
/** (UUID format) */
|
|
916
|
+
new_stage_id?: string | undefined;
|
|
917
|
+
/** (UUID format) */
|
|
918
|
+
current_stage_id?: string | undefined;
|
|
919
|
+
}
|
|
920
|
+
export interface SetHeadStageRequest {
|
|
921
|
+
/** ID of the pipeline to update. (UUID format) */
|
|
922
|
+
pipeline_id: string;
|
|
923
|
+
/** Add a new head stage. Precisely one of add_new_head_stage, remove_head_stage, swap_head_stage can be set. */
|
|
924
|
+
add_new_head_stage?: SetHeadStageRequestAddNewHeadStage | null | undefined;
|
|
925
|
+
/** Remove a head stage. Precisely one of add_new_head_stage, remove_head_stage, swap_head_stage can be set. */
|
|
926
|
+
remove_head_stage?: SetHeadStageRequestRemoveHeadStage | null | undefined;
|
|
927
|
+
/** Replace a head stage with a new one. Precisely one of add_new_head_stage, remove_head_stage, swap_head_stage can be set. */
|
|
928
|
+
swap_head_stage?: SetHeadStageRequestSwapHeadStage | null | undefined;
|
|
929
|
+
}
|
|
930
|
+
export type HeadStageResponseHeadStage = ListHeadStagesResponseHeadStage;
|
|
931
|
+
export interface HeadStageResponse {
|
|
932
|
+
/** Modified or created head stage. */
|
|
933
|
+
head_stage?: ListHeadStagesResponseHeadStage | undefined;
|
|
934
|
+
}
|
|
935
|
+
/** List of VPC Endpoints to attach. */
|
|
936
|
+
export type SetPipelineVPCEndpointsRequestVpcEndpointIdsList = Array<string>;
|
|
937
|
+
export interface SetPipelineVPCEndpointsRequest {
|
|
938
|
+
/** Pipeline ID for which VPC Endpoints must be set. */
|
|
939
|
+
pipeline_id: string;
|
|
940
|
+
/** List of VPC Endpoints to attach. */
|
|
941
|
+
vpc_endpoint_ids?: SetPipelineVPCEndpointsRequestVpcEndpointIdsList | undefined;
|
|
942
|
+
}
|
|
943
|
+
/** List of VPC Endpoints for the given Pipeline ID. */
|
|
944
|
+
export type SetPipelineVPCEndpointsResponseVpcEndpointsList = Array<VPCEndpoint>;
|
|
945
|
+
export interface SetPipelineVPCEndpointsResponse {
|
|
946
|
+
/** Pipeline ID. */
|
|
947
|
+
pipeline_id?: string | undefined;
|
|
948
|
+
/** List of VPC Endpoints for the given Pipeline ID. */
|
|
949
|
+
vpc_endpoints?: SetPipelineVPCEndpointsResponseVpcEndpointsList | undefined;
|
|
950
|
+
/** Count of all VPC Endpoints for the given Pipeline ID. */
|
|
951
|
+
total_count?: number | undefined;
|
|
952
|
+
}
|
|
953
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
954
|
+
export type SetRouteRulesRequestRouteRulesList = Array<SetRouteRulesRequestRouteRule>;
|
|
955
|
+
export interface SetRouteRulesRequest {
|
|
956
|
+
/** ID of the route stage to update. (UUID format) */
|
|
957
|
+
route_stage_id: string;
|
|
958
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
959
|
+
route_rules?: SetRouteRulesRequestRouteRulesList | undefined;
|
|
960
|
+
}
|
|
961
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
962
|
+
export type SetRouteRulesResponseRouteRulesList = Array<RouteRule>;
|
|
963
|
+
export interface SetRouteRulesResponse {
|
|
964
|
+
/** List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the stage defined by `waf_stage_id` or `backend_stage_id`. */
|
|
965
|
+
route_rules?: SetRouteRulesResponseRouteRulesList | undefined;
|
|
966
|
+
}
|
|
967
|
+
export interface UpdateBackendStageRequest {
|
|
968
|
+
/** ID of the backend stage to update. */
|
|
969
|
+
backend_stage_id: string;
|
|
970
|
+
/** Scaleway Object Storage origin bucket (S3) linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
971
|
+
scaleway_s3?: ScalewayS3BackendConfig | null | undefined;
|
|
972
|
+
/** Scaleway Load Balancer origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
973
|
+
scaleway_lb?: ScalewayLbBackendConfig | null | undefined;
|
|
974
|
+
/** Scaleway Serverless container origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
975
|
+
scaleway_serverless_container?: ScalewayServerlessContainerBackendConfig | null | undefined;
|
|
976
|
+
/** Scaleway Serverless function origin linked to the backend stage. Precisely one of scaleway_s3, scaleway_lb, scaleway_serverless_container, scaleway_serverless_function can be set. */
|
|
977
|
+
scaleway_serverless_function?: ScalewayServerlessFunctionBackendConfig | null | undefined;
|
|
978
|
+
/** Pipeline ID the Backend stage belongs to. */
|
|
979
|
+
pipeline_id?: string | undefined;
|
|
980
|
+
}
|
|
981
|
+
export interface UpdateCacheStageRequest {
|
|
982
|
+
/** ID of the cache stage to update. */
|
|
983
|
+
cache_stage_id: string;
|
|
984
|
+
/** Time To Live (TTL) in seconds. Defines how long content is cached. (in seconds) */
|
|
985
|
+
fallback_ttl?: string | null | undefined;
|
|
986
|
+
/** Defines whether responses to requests with cookies must be stored in the cache. */
|
|
987
|
+
include_cookies?: boolean | null | undefined;
|
|
988
|
+
/** Backend stage ID the cache stage will be linked to. (UUID format) Precisely one of backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
989
|
+
backend_stage_id?: string | null | undefined;
|
|
990
|
+
/** (UUID format) Precisely one of backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
991
|
+
waf_stage_id?: string | null | undefined;
|
|
992
|
+
/** (UUID format) Precisely one of backend_stage_id, waf_stage_id, route_stage_id can be set. */
|
|
993
|
+
route_stage_id?: string | null | undefined;
|
|
994
|
+
}
|
|
995
|
+
/** Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now). */
|
|
996
|
+
export type UpdateDNSStageRequestFqdnsList = Array<unknown>;
|
|
997
|
+
export interface UpdateDNSStageRequest {
|
|
998
|
+
/** ID of the DNS stage to update. */
|
|
999
|
+
dns_stage_id: string;
|
|
1000
|
+
/** Custom Fully Qualified Domain Name to be configured (only 1 FQDN can be setup for now). */
|
|
1001
|
+
fqdns?: UpdateDNSStageRequestFqdnsList | null | undefined;
|
|
1002
|
+
/** TLS stage ID the DNS stage will be linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
1003
|
+
tls_stage_id?: string | null | undefined;
|
|
1004
|
+
/** Cache stage ID the DNS stage will be linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
1005
|
+
cache_stage_id?: string | null | undefined;
|
|
1006
|
+
/** Backend stage ID the DNS stage will be linked to. (UUID format) Precisely one of tls_stage_id, cache_stage_id, backend_stage_id can be set. */
|
|
1007
|
+
backend_stage_id?: string | null | undefined;
|
|
1008
|
+
/** Support of wildcard (subdomains) for the given domain (a wildcard certificate is required to make it work). */
|
|
1009
|
+
wildcard_domain?: boolean | null | undefined;
|
|
1010
|
+
}
|
|
1011
|
+
export interface UpdatePipelineRequest {
|
|
1012
|
+
/** ID of the pipeline to update. */
|
|
1013
|
+
pipeline_id: string;
|
|
1014
|
+
/** Name of the pipeline. */
|
|
1015
|
+
name?: string | null | undefined;
|
|
1016
|
+
/** Description of the pipeline. */
|
|
1017
|
+
description?: string | null | undefined;
|
|
1018
|
+
}
|
|
1019
|
+
export interface UpdateRouteStageRequest {
|
|
1020
|
+
/** ID of the route stage to update. */
|
|
1021
|
+
route_stage_id: string;
|
|
1022
|
+
/** ID of the WAF stage HTTP requests should be forwarded to when no rules are matched. (UUID format) Precisely one of waf_stage_id, backend_stage_id can be set. */
|
|
1023
|
+
waf_stage_id?: string | null | undefined;
|
|
1024
|
+
/** ID of the backend stage HTTP requests should be forwarded to when no rules are matched. (UUID format) Precisely one of waf_stage_id, backend_stage_id can be set. */
|
|
1025
|
+
backend_stage_id?: string | null | undefined;
|
|
1026
|
+
}
|
|
1027
|
+
/** Secret information (from Secret Manager). */
|
|
1028
|
+
export type TLSSecretsConfigTlsSecretsList = Array<TLSSecret>;
|
|
1029
|
+
export interface TLSSecretsConfig {
|
|
1030
|
+
/** Secret information (from Secret Manager). */
|
|
1031
|
+
tls_secrets?: TLSSecretsConfigTlsSecretsList | undefined;
|
|
1032
|
+
}
|
|
1033
|
+
export interface UpdateTLSStageRequest {
|
|
1034
|
+
/** ID of the TLS stage to update. */
|
|
1035
|
+
tls_stage_id: string;
|
|
1036
|
+
/** Secret (from Scaleway Secret-Manager) containing your custom certificate. */
|
|
1037
|
+
tls_secrets_config?: TLSSecretsConfig | undefined;
|
|
1038
|
+
/** True when Scaleway generates and manages a Let's Encrypt certificate for the TLS stage/custom endpoint. */
|
|
1039
|
+
managed_certificate?: boolean | null | undefined;
|
|
1040
|
+
/** Cache stage ID the TLS stage will be linked to. (UUID format) Precisely one of cache_stage_id, backend_stage_id, route_stage_id, waf_stage_id can be set. */
|
|
1041
|
+
cache_stage_id?: string | null | undefined;
|
|
1042
|
+
/** Backend stage ID the TLS stage will be linked to. (UUID format) Precisely one of cache_stage_id, backend_stage_id, route_stage_id, waf_stage_id can be set. */
|
|
1043
|
+
backend_stage_id?: string | null | undefined;
|
|
1044
|
+
/** (UUID format) Precisely one of cache_stage_id, backend_stage_id, route_stage_id, waf_stage_id can be set. */
|
|
1045
|
+
route_stage_id?: string | null | undefined;
|
|
1046
|
+
/** (UUID format) Precisely one of cache_stage_id, backend_stage_id, route_stage_id, waf_stage_id can be set. */
|
|
1047
|
+
waf_stage_id?: string | null | undefined;
|
|
1048
|
+
}
|
|
1049
|
+
export interface UpdateWafStageRequest {
|
|
1050
|
+
/** ID of the WAF stage to update. */
|
|
1051
|
+
waf_stage_id: string;
|
|
1052
|
+
/** Mode defining WAF behavior (`disable`/`log_only`/`enable`). */
|
|
1053
|
+
mode?: WafStageMode | (string & {}) | undefined;
|
|
1054
|
+
/** Sensitivity level (`1`,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign. */
|
|
1055
|
+
paranoia_level?: number | null | undefined;
|
|
1056
|
+
/** List of OWASP® CRS rule IDs excluded from WAF. */
|
|
1057
|
+
exclusion_rules?: WafExclusionRules | undefined;
|
|
1058
|
+
/** ID of the backend stage to forward requests to after the WAF stage. (UUID format) Precisely one of backend_stage_id can be set. */
|
|
1059
|
+
backend_stage_id?: string | null | undefined;
|
|
1060
|
+
}
|
|
1061
|
+
export type AddRouteRulesError = ScalewayOpError;
|
|
1062
|
+
/** Add route rules Add route rules to an existing route stage, specified by its `route_stage_id`. */
|
|
1063
|
+
export const addRouteRules: API.OperationMethod<
|
|
1064
|
+
AddRouteRulesRequest,
|
|
1065
|
+
AddRouteRulesResponse,
|
|
1066
|
+
AddRouteRulesError,
|
|
1067
|
+
ScalewayOpContext
|
|
1068
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1069
|
+
input: __S(0, __c0, 0) as any as S.Schema<AddRouteRulesRequest>,
|
|
1070
|
+
output: __S(18, __c2, 2) as any as S.Schema<AddRouteRulesResponse>,
|
|
1071
|
+
errors: [],
|
|
1072
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1073
|
+
protocol: ScalewayProtocol,
|
|
1074
|
+
retry: Retry.Retry,
|
|
1075
|
+
telemetry: TELEMETRY,
|
|
1076
|
+
span: "AddRouteRules",
|
|
1077
|
+
}));
|
|
1078
|
+
|
|
1079
|
+
export type CreateBackendStageError = ScalewayOpError;
|
|
1080
|
+
/** Create backend stage Create a new backend stage. You must specify a type of backend (`scaleway_s3`, `scaleway_lb`, etc.) to configure the origin. */
|
|
1081
|
+
export const createBackendStage: API.OperationMethod<
|
|
1082
|
+
CreateBackendStageRequest,
|
|
1083
|
+
BackendStage,
|
|
1084
|
+
CreateBackendStageError,
|
|
1085
|
+
ScalewayOpContext
|
|
1086
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1087
|
+
input: __S(24, __c3, 0) as any as S.Schema<CreateBackendStageRequest>,
|
|
1088
|
+
output: __S(38, __c4, 6) as any as S.Schema<BackendStage>,
|
|
1089
|
+
errors: [],
|
|
1090
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1091
|
+
protocol: ScalewayProtocol,
|
|
1092
|
+
retry: Retry.Retry,
|
|
1093
|
+
telemetry: TELEMETRY,
|
|
1094
|
+
span: "CreateBackendStage",
|
|
1095
|
+
}));
|
|
1096
|
+
|
|
1097
|
+
export type CreateCacheStageError = ScalewayOpError;
|
|
1098
|
+
/** Create cache stage Create a new cache stage. You must specify the `fallback_ttl` field to customize the TTL of the cache. */
|
|
1099
|
+
export const createCacheStage: API.OperationMethod<
|
|
1100
|
+
CreateCacheStageRequest,
|
|
1101
|
+
CacheStage,
|
|
1102
|
+
CreateCacheStageError,
|
|
1103
|
+
ScalewayOpContext
|
|
1104
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1105
|
+
input: __S(128, __c16, 0) as any as S.Schema<CreateCacheStageRequest>,
|
|
1106
|
+
output: __S(136, __c17, 0) as any as S.Schema<CacheStage>,
|
|
1107
|
+
errors: [],
|
|
1108
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1109
|
+
protocol: ScalewayProtocol,
|
|
1110
|
+
retry: Retry.Retry,
|
|
1111
|
+
telemetry: TELEMETRY,
|
|
1112
|
+
span: "CreateCacheStage",
|
|
1113
|
+
}));
|
|
1114
|
+
|
|
1115
|
+
export type CreateDNSStageError = ScalewayOpError;
|
|
1116
|
+
/** Create DNS stage Create a new DNS stage. You must specify the `fqdns` field to customize the domain endpoint, using a domain you already own. */
|
|
1117
|
+
export const createDNSStage: API.OperationMethod<
|
|
1118
|
+
CreateDNSStageRequest,
|
|
1119
|
+
DNSStage,
|
|
1120
|
+
CreateDNSStageError,
|
|
1121
|
+
ScalewayOpContext
|
|
1122
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1123
|
+
input: __S(240, __c30, 0) as any as S.Schema<CreateDNSStageRequest>,
|
|
1124
|
+
output: __S(256, __c32, 0) as any as S.Schema<DNSStage>,
|
|
1125
|
+
errors: [],
|
|
1126
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1127
|
+
protocol: ScalewayProtocol,
|
|
1128
|
+
retry: Retry.Retry,
|
|
1129
|
+
telemetry: TELEMETRY,
|
|
1130
|
+
span: "CreateDNSStage",
|
|
1131
|
+
}));
|
|
1132
|
+
|
|
1133
|
+
export type CreatePipelineError = ScalewayOpError;
|
|
1134
|
+
/** Create pipeline Create a new pipeline. You must specify a `dns_stage_id` to form a stage-chain that goes all the way to the backend stage (origin), so the HTTP request will be processed according to the stages you created. */
|
|
1135
|
+
export const createPipeline: API.OperationMethod<
|
|
1136
|
+
CreatePipelineRequest,
|
|
1137
|
+
Pipeline,
|
|
1138
|
+
CreatePipelineError,
|
|
1139
|
+
ScalewayOpContext
|
|
1140
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1141
|
+
input: __S(360, __c45, 0) as any as S.Schema<CreatePipelineRequest>,
|
|
1142
|
+
output: __S(370, __c46, 2) as any as S.Schema<Pipeline>,
|
|
1143
|
+
errors: [],
|
|
1144
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1145
|
+
protocol: ScalewayProtocol,
|
|
1146
|
+
retry: Retry.Retry,
|
|
1147
|
+
telemetry: TELEMETRY,
|
|
1148
|
+
span: "CreatePipeline",
|
|
1149
|
+
}));
|
|
1150
|
+
|
|
1151
|
+
export type CreatePurgeRequestError = ScalewayOpError;
|
|
1152
|
+
/** Create purge request Create a new purge request. You must specify either the `all` field (to purge all content) or a list of `assets` (to define the precise assets to purge). */
|
|
1153
|
+
export const createPurgeRequest: API.OperationMethod<
|
|
1154
|
+
CreatePurgeRequestRequest,
|
|
1155
|
+
PurgeRequest,
|
|
1156
|
+
CreatePurgeRequestError,
|
|
1157
|
+
ScalewayOpContext
|
|
1158
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1159
|
+
input: __S(464, __c58, 0) as any as S.Schema<CreatePurgeRequestRequest>,
|
|
1160
|
+
output: __S(472, __c59, 0) as any as S.Schema<PurgeRequest>,
|
|
1161
|
+
errors: [],
|
|
1162
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1163
|
+
protocol: ScalewayProtocol,
|
|
1164
|
+
retry: Retry.Retry,
|
|
1165
|
+
telemetry: TELEMETRY,
|
|
1166
|
+
span: "CreatePurgeRequest",
|
|
1167
|
+
}));
|
|
1168
|
+
|
|
1169
|
+
export type CreateRouteStageError = ScalewayOpError;
|
|
1170
|
+
/** Create route stage Create a new route stage. You must specify the `waf_stage_id` or `backend_stage_id` fields to customize the route. */
|
|
1171
|
+
export const createRouteStage: API.OperationMethod<
|
|
1172
|
+
CreateRouteStageRequest,
|
|
1173
|
+
RouteStage,
|
|
1174
|
+
CreateRouteStageError,
|
|
1175
|
+
ScalewayOpContext
|
|
1176
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1177
|
+
input: __S(512, __c64, 0) as any as S.Schema<CreateRouteStageRequest>,
|
|
1178
|
+
output: __S(520, __c65, 0) as any as S.Schema<RouteStage>,
|
|
1179
|
+
errors: [],
|
|
1180
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1181
|
+
protocol: ScalewayProtocol,
|
|
1182
|
+
retry: Retry.Retry,
|
|
1183
|
+
telemetry: TELEMETRY,
|
|
1184
|
+
span: "CreateRouteStage",
|
|
1185
|
+
}));
|
|
1186
|
+
|
|
1187
|
+
export type CreateTLSStageError = ScalewayOpError;
|
|
1188
|
+
/** Create TLS stage Create a new TLS stage. You must specify either the `secrets` or `managed_certificate` fields to customize the SSL/TLS certificate of your endpoint. Choose `secrets` if you are using a pre-existing certificate held in Scaleway Secret Manager, or `managed_certificate` to let Scaleway generate and manage a Let's Encrypt certificate for your customized endpoint. */
|
|
1189
|
+
export const createTLSStage: API.OperationMethod<
|
|
1190
|
+
CreateTLSStageRequest,
|
|
1191
|
+
TLSStage,
|
|
1192
|
+
CreateTLSStageError,
|
|
1193
|
+
ScalewayOpContext
|
|
1194
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1195
|
+
input: __S(528, __c66, 0) as any as S.Schema<CreateTLSStageRequest>,
|
|
1196
|
+
output: __S(538, __c67, 2) as any as S.Schema<TLSStage>,
|
|
1197
|
+
errors: [],
|
|
1198
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1199
|
+
protocol: ScalewayProtocol,
|
|
1200
|
+
retry: Retry.Retry,
|
|
1201
|
+
telemetry: TELEMETRY,
|
|
1202
|
+
span: "CreateTLSStage",
|
|
1203
|
+
}));
|
|
1204
|
+
|
|
1205
|
+
export type CreateVPCEndpointError = ScalewayOpError;
|
|
1206
|
+
/** Create VPC Endpoint. Create a new VPC Endpoint. You must specify a `private_network_id` to define to which Private Network the VPC endpoint will be attached to. Derived from scaleway-sdk-js (`API.createVPCEndpoint`): Scaleway publishes no OpenAPI document for this route. */
|
|
1207
|
+
export const createVPCEndpoint: API.OperationMethod<
|
|
1208
|
+
CreateVPCEndpointRequest,
|
|
1209
|
+
VPCEndpoint,
|
|
1210
|
+
CreateVPCEndpointError,
|
|
1211
|
+
ScalewayOpContext
|
|
1212
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1213
|
+
input: __S(544, __c68, 0) as any as S.Schema<CreateVPCEndpointRequest>,
|
|
1214
|
+
output: __S(552, __c69, 0) as any as S.Schema<VPCEndpoint>,
|
|
1215
|
+
errors: [],
|
|
1216
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1217
|
+
protocol: ScalewayProtocol,
|
|
1218
|
+
retry: Retry.Retry,
|
|
1219
|
+
telemetry: TELEMETRY,
|
|
1220
|
+
span: "CreateVPCEndpoint",
|
|
1221
|
+
}));
|
|
1222
|
+
|
|
1223
|
+
export type CreateWafStageError = ScalewayOpError;
|
|
1224
|
+
/** Create WAF stage Create a new WAF stage. You must specify the `mode` and `paranoia_level` fields to customize the WAF. */
|
|
1225
|
+
export const createWafStage: API.OperationMethod<
|
|
1226
|
+
CreateWafStageRequest,
|
|
1227
|
+
WafStage,
|
|
1228
|
+
CreateWafStageError,
|
|
1229
|
+
ScalewayOpContext
|
|
1230
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1231
|
+
input: __S(560, __c70, 0) as any as S.Schema<CreateWafStageRequest>,
|
|
1232
|
+
output: __S(570, __c71, 2) as any as S.Schema<WafStage>,
|
|
1233
|
+
errors: [],
|
|
1234
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1235
|
+
protocol: ScalewayProtocol,
|
|
1236
|
+
retry: Retry.Retry,
|
|
1237
|
+
telemetry: TELEMETRY,
|
|
1238
|
+
span: "CreateWafStage",
|
|
1239
|
+
}));
|
|
1240
|
+
|
|
1241
|
+
export type DeleteBackendStageError = ScalewayOpError;
|
|
1242
|
+
/** Delete backend stage Delete an existing backend stage, specified by its `backend_stage_id`. Deleting a backend stage is permanent, and cannot be undone. */
|
|
1243
|
+
export const deleteBackendStage: API.OperationMethod<
|
|
1244
|
+
DeleteBackendStageRequest,
|
|
1245
|
+
DeleteBackendStageResponse,
|
|
1246
|
+
DeleteBackendStageError,
|
|
1247
|
+
ScalewayOpContext
|
|
1248
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1249
|
+
input: __S(40, __c5, 0) as any as S.Schema<DeleteBackendStageRequest>,
|
|
1250
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeleteBackendStageResponse>,
|
|
1251
|
+
errors: [],
|
|
1252
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1253
|
+
protocol: ScalewayProtocol,
|
|
1254
|
+
retry: Retry.Retry,
|
|
1255
|
+
telemetry: TELEMETRY,
|
|
1256
|
+
span: "DeleteBackendStage",
|
|
1257
|
+
}));
|
|
1258
|
+
|
|
1259
|
+
export type DeleteCacheStageError = ScalewayOpError;
|
|
1260
|
+
/** Delete cache stage Delete an existing cache stage, specified by its `cache_stage_id`. Deleting a cache stage is permanent, and cannot be undone. */
|
|
1261
|
+
export const deleteCacheStage: API.OperationMethod<
|
|
1262
|
+
DeleteCacheStageRequest,
|
|
1263
|
+
DeleteCacheStageResponse,
|
|
1264
|
+
DeleteCacheStageError,
|
|
1265
|
+
ScalewayOpContext
|
|
1266
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1267
|
+
input: __S(56, __c7, 0) as any as S.Schema<DeleteCacheStageRequest>,
|
|
1268
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeleteCacheStageResponse>,
|
|
1269
|
+
errors: [],
|
|
1270
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1271
|
+
protocol: ScalewayProtocol,
|
|
1272
|
+
retry: Retry.Retry,
|
|
1273
|
+
telemetry: TELEMETRY,
|
|
1274
|
+
span: "DeleteCacheStage",
|
|
1275
|
+
}));
|
|
1276
|
+
|
|
1277
|
+
export type DeleteCurrentPlanError = ScalewayOpError;
|
|
1278
|
+
/** Delete plan Unsubscribe from the current Edge Services subscription plan for your Scaleway Project. */
|
|
1279
|
+
export const deleteCurrentPlan: API.OperationMethod<
|
|
1280
|
+
DeleteCurrentPlanRequest,
|
|
1281
|
+
DeleteCurrentPlanResponse,
|
|
1282
|
+
DeleteCurrentPlanError,
|
|
1283
|
+
ScalewayOpContext
|
|
1284
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1285
|
+
input: __S(64, __c8, 0) as any as S.Schema<DeleteCurrentPlanRequest>,
|
|
1286
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeleteCurrentPlanResponse>,
|
|
1287
|
+
errors: [],
|
|
1288
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1289
|
+
protocol: ScalewayProtocol,
|
|
1290
|
+
retry: Retry.Retry,
|
|
1291
|
+
telemetry: TELEMETRY,
|
|
1292
|
+
span: "DeleteCurrentPlan",
|
|
1293
|
+
}));
|
|
1294
|
+
|
|
1295
|
+
export type DeleteDNSStageError = ScalewayOpError;
|
|
1296
|
+
/** Delete DNS stage Delete an existing DNS stage, specified by its `dns_stage_id`. Deleting a DNS stage is permanent, and cannot be undone. */
|
|
1297
|
+
export const deleteDNSStage: API.OperationMethod<
|
|
1298
|
+
DeleteDNSStageRequest,
|
|
1299
|
+
DeleteDNSStageResponse,
|
|
1300
|
+
DeleteDNSStageError,
|
|
1301
|
+
ScalewayOpContext
|
|
1302
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1303
|
+
input: __S(72, __c9, 0) as any as S.Schema<DeleteDNSStageRequest>,
|
|
1304
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeleteDNSStageResponse>,
|
|
1305
|
+
errors: [],
|
|
1306
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1307
|
+
protocol: ScalewayProtocol,
|
|
1308
|
+
retry: Retry.Retry,
|
|
1309
|
+
telemetry: TELEMETRY,
|
|
1310
|
+
span: "DeleteDNSStage",
|
|
1311
|
+
}));
|
|
1312
|
+
|
|
1313
|
+
export type DeletePipelineError = ScalewayOpError;
|
|
1314
|
+
/** Delete pipeline Delete an existing pipeline, specified by its `pipeline_id`. Deleting a pipeline is permanent, and cannot be undone. Note that all stages linked to the pipeline are also deleted. */
|
|
1315
|
+
export const deletePipeline: API.OperationMethod<
|
|
1316
|
+
DeletePipelineRequest,
|
|
1317
|
+
DeletePipelineResponse,
|
|
1318
|
+
DeletePipelineError,
|
|
1319
|
+
ScalewayOpContext
|
|
1320
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1321
|
+
input: __S(80, __c10, 0) as any as S.Schema<DeletePipelineRequest>,
|
|
1322
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeletePipelineResponse>,
|
|
1323
|
+
errors: [],
|
|
1324
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1325
|
+
protocol: ScalewayProtocol,
|
|
1326
|
+
retry: Retry.Retry,
|
|
1327
|
+
telemetry: TELEMETRY,
|
|
1328
|
+
span: "DeletePipeline",
|
|
1329
|
+
}));
|
|
1330
|
+
|
|
1331
|
+
export type DeleteRouteStageError = ScalewayOpError;
|
|
1332
|
+
/** Delete route stage Delete an existing route stage, specified by its `route_stage_id`. Deleting a route stage is permanent, and cannot be undone. */
|
|
1333
|
+
export const deleteRouteStage: API.OperationMethod<
|
|
1334
|
+
DeleteRouteStageRequest,
|
|
1335
|
+
DeleteRouteStageResponse,
|
|
1336
|
+
DeleteRouteStageError,
|
|
1337
|
+
ScalewayOpContext
|
|
1338
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1339
|
+
input: __S(88, __c11, 0) as any as S.Schema<DeleteRouteStageRequest>,
|
|
1340
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeleteRouteStageResponse>,
|
|
1341
|
+
errors: [],
|
|
1342
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1343
|
+
protocol: ScalewayProtocol,
|
|
1344
|
+
retry: Retry.Retry,
|
|
1345
|
+
telemetry: TELEMETRY,
|
|
1346
|
+
span: "DeleteRouteStage",
|
|
1347
|
+
}));
|
|
1348
|
+
|
|
1349
|
+
export type DeleteTLSStageError = ScalewayOpError;
|
|
1350
|
+
/** Delete TLS stage Delete an existing TLS stage, specified by its `tls_stage_id`. Deleting a TLS stage is permanent, and cannot be undone. */
|
|
1351
|
+
export const deleteTLSStage: API.OperationMethod<
|
|
1352
|
+
DeleteTLSStageRequest,
|
|
1353
|
+
DeleteTLSStageResponse,
|
|
1354
|
+
DeleteTLSStageError,
|
|
1355
|
+
ScalewayOpContext
|
|
1356
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1357
|
+
input: __S(96, __c12, 0) as any as S.Schema<DeleteTLSStageRequest>,
|
|
1358
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeleteTLSStageResponse>,
|
|
1359
|
+
errors: [],
|
|
1360
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1361
|
+
protocol: ScalewayProtocol,
|
|
1362
|
+
retry: Retry.Retry,
|
|
1363
|
+
telemetry: TELEMETRY,
|
|
1364
|
+
span: "DeleteTLSStage",
|
|
1365
|
+
}));
|
|
1366
|
+
|
|
1367
|
+
export type DeleteVPCEndpointError = ScalewayOpError;
|
|
1368
|
+
/** Delete VPC Endpoint. Delete an existing VPC Endpoint, specified by its `vpc_endpoint_id`. Derived from scaleway-sdk-js (`API.deleteVPCEndpoint`): Scaleway publishes no OpenAPI document for this route. */
|
|
1369
|
+
export const deleteVPCEndpoint: API.OperationMethod<
|
|
1370
|
+
DeleteVPCEndpointRequest,
|
|
1371
|
+
DeleteVPCEndpointResponse,
|
|
1372
|
+
DeleteVPCEndpointError,
|
|
1373
|
+
ScalewayOpContext
|
|
1374
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1375
|
+
input: __S(104, __c13, 0) as any as S.Schema<DeleteVPCEndpointRequest>,
|
|
1376
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeleteVPCEndpointResponse>,
|
|
1377
|
+
errors: [],
|
|
1378
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1379
|
+
protocol: ScalewayProtocol,
|
|
1380
|
+
retry: Retry.Retry,
|
|
1381
|
+
telemetry: TELEMETRY,
|
|
1382
|
+
span: "DeleteVPCEndpoint",
|
|
1383
|
+
}));
|
|
1384
|
+
|
|
1385
|
+
export type DeleteWafStageError = ScalewayOpError;
|
|
1386
|
+
/** Delete WAF stage Delete an existing WAF stage, specified by its `waf_stage_id`. Deleting a WAF stage is permanent, and cannot be undone. */
|
|
1387
|
+
export const deleteWafStage: API.OperationMethod<
|
|
1388
|
+
DeleteWafStageRequest,
|
|
1389
|
+
DeleteWafStageResponse,
|
|
1390
|
+
DeleteWafStageError,
|
|
1391
|
+
ScalewayOpContext
|
|
1392
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1393
|
+
input: __S(112, __c14, 0) as any as S.Schema<DeleteWafStageRequest>,
|
|
1394
|
+
output: __S(48, __c6, 0) as any as S.Schema<DeleteWafStageResponse>,
|
|
1395
|
+
errors: [],
|
|
1396
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1397
|
+
protocol: ScalewayProtocol,
|
|
1398
|
+
retry: Retry.Retry,
|
|
1399
|
+
telemetry: TELEMETRY,
|
|
1400
|
+
span: "DeleteWafStage",
|
|
1401
|
+
}));
|
|
1402
|
+
|
|
1403
|
+
export type GetBackendStageError = ScalewayOpError;
|
|
1404
|
+
/** Get backend stage Retrieve information about an existing backend stage, specified by its `backend_stage_id`. Its full details are returned in the response object. */
|
|
1405
|
+
export const getBackendStage: API.OperationMethod<
|
|
1406
|
+
GetBackendStageRequest,
|
|
1407
|
+
BackendStage,
|
|
1408
|
+
GetBackendStageError,
|
|
1409
|
+
ScalewayOpContext
|
|
1410
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1411
|
+
input: __S(120, __c15, 0) as any as S.Schema<GetBackendStageRequest>,
|
|
1412
|
+
output: __S(38, __c4, 6) as any as S.Schema<BackendStage>,
|
|
1413
|
+
errors: [],
|
|
1414
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1415
|
+
protocol: ScalewayProtocol,
|
|
1416
|
+
retry: Retry.Retry,
|
|
1417
|
+
telemetry: TELEMETRY,
|
|
1418
|
+
span: "GetBackendStage",
|
|
1419
|
+
}));
|
|
1420
|
+
|
|
1421
|
+
export type GetBillingError = ScalewayOpError;
|
|
1422
|
+
/** Billing information Gives information on the currently selected Edge Services subscription plan, resource usage and associated billing information for this calendar month (including whether consumption falls within or exceeds the currently selected subscription plan.). */
|
|
1423
|
+
export const getBilling: API.OperationMethod<
|
|
1424
|
+
GetBillingRequest,
|
|
1425
|
+
GetBillingResponse,
|
|
1426
|
+
GetBillingError,
|
|
1427
|
+
ScalewayOpContext
|
|
1428
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1429
|
+
input: __S(144, __c18, 0) as any as S.Schema<GetBillingRequest>,
|
|
1430
|
+
output: __S(148, __c18, 4) as any as S.Schema<GetBillingResponse>,
|
|
1431
|
+
errors: [],
|
|
1432
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1433
|
+
protocol: ScalewayProtocol,
|
|
1434
|
+
retry: Retry.Retry,
|
|
1435
|
+
telemetry: TELEMETRY,
|
|
1436
|
+
span: "GetBilling",
|
|
1437
|
+
}));
|
|
1438
|
+
|
|
1439
|
+
export type GetCacheStageError = ScalewayOpError;
|
|
1440
|
+
/** Get cache stage Retrieve information about an existing cache stage, specified by its `cache_stage_id`. Its full details, including Time To Live (TTL), are returned in the response object. */
|
|
1441
|
+
export const getCacheStage: API.OperationMethod<
|
|
1442
|
+
GetCacheStageRequest,
|
|
1443
|
+
CacheStage,
|
|
1444
|
+
GetCacheStageError,
|
|
1445
|
+
ScalewayOpContext
|
|
1446
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1447
|
+
input: __S(160, __c20, 0) as any as S.Schema<GetCacheStageRequest>,
|
|
1448
|
+
output: __S(136, __c17, 0) as any as S.Schema<CacheStage>,
|
|
1449
|
+
errors: [],
|
|
1450
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1451
|
+
protocol: ScalewayProtocol,
|
|
1452
|
+
retry: Retry.Retry,
|
|
1453
|
+
telemetry: TELEMETRY,
|
|
1454
|
+
span: "GetCacheStage",
|
|
1455
|
+
}));
|
|
1456
|
+
|
|
1457
|
+
export type GetCurrentPlanError = ScalewayOpError;
|
|
1458
|
+
/** Get plan Get the current Edge Services subscription plan for your Scaleway Project. */
|
|
1459
|
+
export const getCurrentPlan: API.OperationMethod<
|
|
1460
|
+
GetCurrentPlanRequest,
|
|
1461
|
+
Plan,
|
|
1462
|
+
GetCurrentPlanError,
|
|
1463
|
+
ScalewayOpContext
|
|
1464
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1465
|
+
input: __S(168, __c21, 0) as any as S.Schema<GetCurrentPlanRequest>,
|
|
1466
|
+
output: __S(176, __c22, 0) as any as S.Schema<Plan>,
|
|
1467
|
+
errors: [],
|
|
1468
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1469
|
+
protocol: ScalewayProtocol,
|
|
1470
|
+
retry: Retry.Retry,
|
|
1471
|
+
telemetry: TELEMETRY,
|
|
1472
|
+
span: "GetCurrentPlan",
|
|
1473
|
+
}));
|
|
1474
|
+
|
|
1475
|
+
export type GetDNSStageError = ScalewayOpError;
|
|
1476
|
+
/** Get DNS stage Retrieve information about an existing DNS stage, specified by its `dns_stage_id`. Its full details, including FQDNs, are returned in the response object. */
|
|
1477
|
+
export const getDNSStage: API.OperationMethod<
|
|
1478
|
+
GetDNSStageRequest,
|
|
1479
|
+
DNSStage,
|
|
1480
|
+
GetDNSStageError,
|
|
1481
|
+
ScalewayOpContext
|
|
1482
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1483
|
+
input: __S(184, __c23, 0) as any as S.Schema<GetDNSStageRequest>,
|
|
1484
|
+
output: __S(256, __c32, 0) as any as S.Schema<DNSStage>,
|
|
1485
|
+
errors: [],
|
|
1486
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1487
|
+
protocol: ScalewayProtocol,
|
|
1488
|
+
retry: Retry.Retry,
|
|
1489
|
+
telemetry: TELEMETRY,
|
|
1490
|
+
span: "GetDNSStage",
|
|
1491
|
+
}));
|
|
1492
|
+
|
|
1493
|
+
export type GetPipelineError = ScalewayOpError;
|
|
1494
|
+
/** Get pipeline Retrieve information about an existing pipeline, specified by its `pipeline_id`. Its full details, including errors, are returned in the response object. */
|
|
1495
|
+
export const getPipeline: API.OperationMethod<
|
|
1496
|
+
GetPipelineRequest,
|
|
1497
|
+
Pipeline,
|
|
1498
|
+
GetPipelineError,
|
|
1499
|
+
ScalewayOpContext
|
|
1500
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1501
|
+
input: __S(192, __c24, 0) as any as S.Schema<GetPipelineRequest>,
|
|
1502
|
+
output: __S(370, __c46, 2) as any as S.Schema<Pipeline>,
|
|
1503
|
+
errors: [],
|
|
1504
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1505
|
+
protocol: ScalewayProtocol,
|
|
1506
|
+
retry: Retry.Retry,
|
|
1507
|
+
telemetry: TELEMETRY,
|
|
1508
|
+
span: "GetPipeline",
|
|
1509
|
+
}));
|
|
1510
|
+
|
|
1511
|
+
export type GetPurgeRequestError = ScalewayOpError;
|
|
1512
|
+
/** Get purge request Retrieve information about a purge request, specified by its `purge_request_id`. Its full details, including `status` and `target`, are returned in the response object. */
|
|
1513
|
+
export const getPurgeRequest: API.OperationMethod<
|
|
1514
|
+
GetPurgeRequestRequest,
|
|
1515
|
+
PurgeRequest,
|
|
1516
|
+
GetPurgeRequestError,
|
|
1517
|
+
ScalewayOpContext
|
|
1518
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1519
|
+
input: __S(200, __c25, 0) as any as S.Schema<GetPurgeRequestRequest>,
|
|
1520
|
+
output: __S(472, __c59, 0) as any as S.Schema<PurgeRequest>,
|
|
1521
|
+
errors: [],
|
|
1522
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1523
|
+
protocol: ScalewayProtocol,
|
|
1524
|
+
retry: Retry.Retry,
|
|
1525
|
+
telemetry: TELEMETRY,
|
|
1526
|
+
span: "GetPurgeRequest",
|
|
1527
|
+
}));
|
|
1528
|
+
|
|
1529
|
+
export type GetRouteStageError = ScalewayOpError;
|
|
1530
|
+
/** Get route stage Retrieve information about an existing route stage, specified by its `route_stage_id`. The summary of the route stage (without route rules) is returned in the response object. */
|
|
1531
|
+
export const getRouteStage: API.OperationMethod<
|
|
1532
|
+
GetRouteStageRequest,
|
|
1533
|
+
RouteStage,
|
|
1534
|
+
GetRouteStageError,
|
|
1535
|
+
ScalewayOpContext
|
|
1536
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1537
|
+
input: __S(208, __c26, 0) as any as S.Schema<GetRouteStageRequest>,
|
|
1538
|
+
output: __S(520, __c65, 0) as any as S.Schema<RouteStage>,
|
|
1539
|
+
errors: [],
|
|
1540
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1541
|
+
protocol: ScalewayProtocol,
|
|
1542
|
+
retry: Retry.Retry,
|
|
1543
|
+
telemetry: TELEMETRY,
|
|
1544
|
+
span: "GetRouteStage",
|
|
1545
|
+
}));
|
|
1546
|
+
|
|
1547
|
+
export type GetTLSStageError = ScalewayOpError;
|
|
1548
|
+
/** Get TLS stage Retrieve information about an existing TLS stage, specified by its `tls_stage_id`. Its full details, including secrets and certificate expiration date are returned in the response object. */
|
|
1549
|
+
export const getTLSStage: API.OperationMethod<
|
|
1550
|
+
GetTLSStageRequest,
|
|
1551
|
+
TLSStage,
|
|
1552
|
+
GetTLSStageError,
|
|
1553
|
+
ScalewayOpContext
|
|
1554
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1555
|
+
input: __S(216, __c27, 0) as any as S.Schema<GetTLSStageRequest>,
|
|
1556
|
+
output: __S(538, __c67, 2) as any as S.Schema<TLSStage>,
|
|
1557
|
+
errors: [],
|
|
1558
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1559
|
+
protocol: ScalewayProtocol,
|
|
1560
|
+
retry: Retry.Retry,
|
|
1561
|
+
telemetry: TELEMETRY,
|
|
1562
|
+
span: "GetTLSStage",
|
|
1563
|
+
}));
|
|
1564
|
+
|
|
1565
|
+
export type GetVPCEndpointError = ScalewayOpError;
|
|
1566
|
+
/** Get VPC Endpoint. Retrieve information about an existing VPC Endpoint, specified by its `vpc_endpoint_id`. Derived from scaleway-sdk-js (`API.getVPCEndpoint`): Scaleway publishes no OpenAPI document for this route. */
|
|
1567
|
+
export const getVPCEndpoint: API.OperationMethod<
|
|
1568
|
+
GetVPCEndpointRequest,
|
|
1569
|
+
VPCEndpoint,
|
|
1570
|
+
GetVPCEndpointError,
|
|
1571
|
+
ScalewayOpContext
|
|
1572
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1573
|
+
input: __S(224, __c28, 0) as any as S.Schema<GetVPCEndpointRequest>,
|
|
1574
|
+
output: __S(552, __c69, 0) as any as S.Schema<VPCEndpoint>,
|
|
1575
|
+
errors: [],
|
|
1576
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1577
|
+
protocol: ScalewayProtocol,
|
|
1578
|
+
retry: Retry.Retry,
|
|
1579
|
+
telemetry: TELEMETRY,
|
|
1580
|
+
span: "GetVPCEndpoint",
|
|
1581
|
+
}));
|
|
1582
|
+
|
|
1583
|
+
export type GetWafStageError = ScalewayOpError;
|
|
1584
|
+
/** Get WAF stage Retrieve information about an existing WAF stage, specified by its `waf_stage_id`. Its full details are returned in the response object. */
|
|
1585
|
+
export const getWafStage: API.OperationMethod<
|
|
1586
|
+
GetWafStageRequest,
|
|
1587
|
+
WafStage,
|
|
1588
|
+
GetWafStageError,
|
|
1589
|
+
ScalewayOpContext
|
|
1590
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1591
|
+
input: __S(232, __c29, 0) as any as S.Schema<GetWafStageRequest>,
|
|
1592
|
+
output: __S(570, __c71, 2) as any as S.Schema<WafStage>,
|
|
1593
|
+
errors: [],
|
|
1594
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1595
|
+
protocol: ScalewayProtocol,
|
|
1596
|
+
retry: Retry.Retry,
|
|
1597
|
+
telemetry: TELEMETRY,
|
|
1598
|
+
span: "GetWafStage",
|
|
1599
|
+
}));
|
|
1600
|
+
|
|
1601
|
+
export type ListBackendStagesError = ScalewayOpError;
|
|
1602
|
+
/** List backend stages List all backend stages, for a Scaleway Organization or Scaleway Project. By default, the backend stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1603
|
+
export const listBackendStages: API.PaginatedOperationMethod<
|
|
1604
|
+
ListBackendStagesRequest,
|
|
1605
|
+
ListBackendStagesResponse,
|
|
1606
|
+
ListBackendStagesError,
|
|
1607
|
+
ScalewayOpContext,
|
|
1608
|
+
BackendStage
|
|
1609
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1610
|
+
() => ({
|
|
1611
|
+
input: __S(272, __c34, 0) as any as S.Schema<ListBackendStagesRequest>,
|
|
1612
|
+
output: __S(274, __c34, 2) as any as S.Schema<ListBackendStagesResponse>,
|
|
1613
|
+
errors: [],
|
|
1614
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1615
|
+
protocol: ScalewayProtocol,
|
|
1616
|
+
retry: Retry.Retry,
|
|
1617
|
+
telemetry: TELEMETRY,
|
|
1618
|
+
span: "ListBackendStages",
|
|
1619
|
+
pagination: {
|
|
1620
|
+
mode: "page",
|
|
1621
|
+
inputToken: "page",
|
|
1622
|
+
outputToken: "total_count",
|
|
1623
|
+
items: "stages",
|
|
1624
|
+
pageSize: "page_size",
|
|
1625
|
+
} as const,
|
|
1626
|
+
}),
|
|
1627
|
+
paginateByTotalCount,
|
|
1628
|
+
) as any;
|
|
1629
|
+
|
|
1630
|
+
export type ListCacheStagesError = ScalewayOpError;
|
|
1631
|
+
/** List cache stages List all cache stages, for a Scaleway Organization or Scaleway Project. By default, the cache stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1632
|
+
export const listCacheStages: API.PaginatedOperationMethod<
|
|
1633
|
+
ListCacheStagesRequest,
|
|
1634
|
+
ListCacheStagesResponse,
|
|
1635
|
+
ListCacheStagesError,
|
|
1636
|
+
ScalewayOpContext,
|
|
1637
|
+
CacheStage
|
|
1638
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1639
|
+
() => ({
|
|
1640
|
+
input: __S(280, __c35, 0) as any as S.Schema<ListCacheStagesRequest>,
|
|
1641
|
+
output: __S(282, __c35, 2) as any as S.Schema<ListCacheStagesResponse>,
|
|
1642
|
+
errors: [],
|
|
1643
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1644
|
+
protocol: ScalewayProtocol,
|
|
1645
|
+
retry: Retry.Retry,
|
|
1646
|
+
telemetry: TELEMETRY,
|
|
1647
|
+
span: "ListCacheStages",
|
|
1648
|
+
pagination: {
|
|
1649
|
+
mode: "page",
|
|
1650
|
+
inputToken: "page",
|
|
1651
|
+
outputToken: "total_count",
|
|
1652
|
+
items: "stages",
|
|
1653
|
+
pageSize: "page_size",
|
|
1654
|
+
} as const,
|
|
1655
|
+
}),
|
|
1656
|
+
paginateByTotalCount,
|
|
1657
|
+
) as any;
|
|
1658
|
+
|
|
1659
|
+
export type ListDNSStagesError = ScalewayOpError;
|
|
1660
|
+
/** List DNS stages List all DNS stages, for a Scaleway Organization or Scaleway Project. By default, the DNS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1661
|
+
export const listDNSStages: API.PaginatedOperationMethod<
|
|
1662
|
+
ListDNSStagesRequest,
|
|
1663
|
+
ListDNSStagesResponse,
|
|
1664
|
+
ListDNSStagesError,
|
|
1665
|
+
ScalewayOpContext,
|
|
1666
|
+
DNSStage
|
|
1667
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1668
|
+
() => ({
|
|
1669
|
+
input: __S(288, __c36, 0) as any as S.Schema<ListDNSStagesRequest>,
|
|
1670
|
+
output: __S(290, __c36, 2) as any as S.Schema<ListDNSStagesResponse>,
|
|
1671
|
+
errors: [],
|
|
1672
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1673
|
+
protocol: ScalewayProtocol,
|
|
1674
|
+
retry: Retry.Retry,
|
|
1675
|
+
telemetry: TELEMETRY,
|
|
1676
|
+
span: "ListDNSStages",
|
|
1677
|
+
pagination: {
|
|
1678
|
+
mode: "page",
|
|
1679
|
+
inputToken: "page",
|
|
1680
|
+
outputToken: "total_count",
|
|
1681
|
+
items: "stages",
|
|
1682
|
+
pageSize: "page_size",
|
|
1683
|
+
} as const,
|
|
1684
|
+
}),
|
|
1685
|
+
paginateByTotalCount,
|
|
1686
|
+
) as any;
|
|
1687
|
+
|
|
1688
|
+
export type ListHeadStagesError = ScalewayOpError;
|
|
1689
|
+
/** List Head stage for your pipeline. */
|
|
1690
|
+
export const listHeadStages: API.PaginatedOperationMethod<
|
|
1691
|
+
ListHeadStagesRequest,
|
|
1692
|
+
ListHeadStagesResponse,
|
|
1693
|
+
ListHeadStagesError,
|
|
1694
|
+
ScalewayOpContext,
|
|
1695
|
+
ListHeadStagesResponseHeadStage
|
|
1696
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1697
|
+
() => ({
|
|
1698
|
+
input: __S(296, __c37, 0) as any as S.Schema<ListHeadStagesRequest>,
|
|
1699
|
+
output: __S(298, __c37, 2) as any as S.Schema<ListHeadStagesResponse>,
|
|
1700
|
+
errors: [],
|
|
1701
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1702
|
+
protocol: ScalewayProtocol,
|
|
1703
|
+
retry: Retry.Retry,
|
|
1704
|
+
telemetry: TELEMETRY,
|
|
1705
|
+
span: "ListHeadStages",
|
|
1706
|
+
pagination: {
|
|
1707
|
+
mode: "page",
|
|
1708
|
+
inputToken: "page",
|
|
1709
|
+
outputToken: "total_count",
|
|
1710
|
+
items: "head_stages",
|
|
1711
|
+
pageSize: "page_size",
|
|
1712
|
+
} as const,
|
|
1713
|
+
}),
|
|
1714
|
+
paginateByTotalCount,
|
|
1715
|
+
) as any;
|
|
1716
|
+
|
|
1717
|
+
export type ListNodesError = ScalewayOpError;
|
|
1718
|
+
export const listNodes: API.OperationMethod<
|
|
1719
|
+
ListNodesRequest,
|
|
1720
|
+
ListNodesResponse,
|
|
1721
|
+
ListNodesError,
|
|
1722
|
+
ScalewayOpContext
|
|
1723
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1724
|
+
input: __S(312, __c39, 0) as any as S.Schema<ListNodesRequest>,
|
|
1725
|
+
output: __S(315, __c39, 3) as any as S.Schema<ListNodesResponse>,
|
|
1726
|
+
errors: [],
|
|
1727
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1728
|
+
protocol: ScalewayProtocol,
|
|
1729
|
+
retry: Retry.Retry,
|
|
1730
|
+
telemetry: TELEMETRY,
|
|
1731
|
+
span: "ListNodes",
|
|
1732
|
+
}));
|
|
1733
|
+
|
|
1734
|
+
export type ListPipelinesError = ScalewayOpError;
|
|
1735
|
+
/** List pipelines List all pipelines, for a Scaleway Organization or Scaleway Project. By default, the pipelines returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1736
|
+
export const listPipelines: API.PaginatedOperationMethod<
|
|
1737
|
+
ListPipelinesRequest,
|
|
1738
|
+
ListPipelinesResponse,
|
|
1739
|
+
ListPipelinesError,
|
|
1740
|
+
ScalewayOpContext,
|
|
1741
|
+
Pipeline
|
|
1742
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1743
|
+
() => ({
|
|
1744
|
+
input: __S(320, __c40, 0) as any as S.Schema<ListPipelinesRequest>,
|
|
1745
|
+
output: __S(322, __c40, 2) as any as S.Schema<ListPipelinesResponse>,
|
|
1746
|
+
errors: [],
|
|
1747
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1748
|
+
protocol: ScalewayProtocol,
|
|
1749
|
+
retry: Retry.Retry,
|
|
1750
|
+
telemetry: TELEMETRY,
|
|
1751
|
+
span: "ListPipelines",
|
|
1752
|
+
pagination: {
|
|
1753
|
+
mode: "page",
|
|
1754
|
+
inputToken: "page",
|
|
1755
|
+
outputToken: "total_count",
|
|
1756
|
+
items: "pipelines",
|
|
1757
|
+
pageSize: "page_size",
|
|
1758
|
+
} as const,
|
|
1759
|
+
}),
|
|
1760
|
+
paginateByTotalCount,
|
|
1761
|
+
) as any;
|
|
1762
|
+
|
|
1763
|
+
export type ListPlansError = ScalewayOpError;
|
|
1764
|
+
/** List plans List all available Edge Services subscription plans. */
|
|
1765
|
+
export const listPlans: API.OperationMethod<
|
|
1766
|
+
ListPlansRequest,
|
|
1767
|
+
ListPlansResponse,
|
|
1768
|
+
ListPlansError,
|
|
1769
|
+
ScalewayOpContext
|
|
1770
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1771
|
+
input: __S(328, __c41, 0) as any as S.Schema<ListPlansRequest>,
|
|
1772
|
+
output: __S(330, __c41, 2) as any as S.Schema<ListPlansResponse>,
|
|
1773
|
+
errors: [],
|
|
1774
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1775
|
+
protocol: ScalewayProtocol,
|
|
1776
|
+
retry: Retry.Retry,
|
|
1777
|
+
telemetry: TELEMETRY,
|
|
1778
|
+
span: "ListPlans",
|
|
1779
|
+
}));
|
|
1780
|
+
|
|
1781
|
+
export type ListPurgeRequestsError = ScalewayOpError;
|
|
1782
|
+
/** List purge requests List all purge requests, for a Scaleway Organization or Scaleway Project. This enables you to retrieve a history of all previously-made purge requests. By default, the purge requests returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1783
|
+
export const listPurgeRequests: API.PaginatedOperationMethod<
|
|
1784
|
+
ListPurgeRequestsRequest,
|
|
1785
|
+
ListPurgeRequestsResponse,
|
|
1786
|
+
ListPurgeRequestsError,
|
|
1787
|
+
ScalewayOpContext,
|
|
1788
|
+
PurgeRequest
|
|
1789
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1790
|
+
() => ({
|
|
1791
|
+
input: __S(336, __c42, 0) as any as S.Schema<ListPurgeRequestsRequest>,
|
|
1792
|
+
output: __S(338, __c42, 2) as any as S.Schema<ListPurgeRequestsResponse>,
|
|
1793
|
+
errors: [],
|
|
1794
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1795
|
+
protocol: ScalewayProtocol,
|
|
1796
|
+
retry: Retry.Retry,
|
|
1797
|
+
telemetry: TELEMETRY,
|
|
1798
|
+
span: "ListPurgeRequests",
|
|
1799
|
+
pagination: {
|
|
1800
|
+
mode: "page",
|
|
1801
|
+
inputToken: "page",
|
|
1802
|
+
outputToken: "total_count",
|
|
1803
|
+
items: "purge_requests",
|
|
1804
|
+
pageSize: "page_size",
|
|
1805
|
+
} as const,
|
|
1806
|
+
}),
|
|
1807
|
+
paginateByTotalCount,
|
|
1808
|
+
) as any;
|
|
1809
|
+
|
|
1810
|
+
export type ListRouteRulesError = ScalewayOpError;
|
|
1811
|
+
/** List route rules List all route rules of an existing route stage, specified by its `route_stage_id`. */
|
|
1812
|
+
export const listRouteRules: API.OperationMethod<
|
|
1813
|
+
ListRouteRulesRequest,
|
|
1814
|
+
ListRouteRulesResponse,
|
|
1815
|
+
ListRouteRulesError,
|
|
1816
|
+
ScalewayOpContext
|
|
1817
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1818
|
+
input: __S(344, __c43, 0) as any as S.Schema<ListRouteRulesRequest>,
|
|
1819
|
+
output: __S(345, __c43, 1) as any as S.Schema<ListRouteRulesResponse>,
|
|
1820
|
+
errors: [],
|
|
1821
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1822
|
+
protocol: ScalewayProtocol,
|
|
1823
|
+
retry: Retry.Retry,
|
|
1824
|
+
telemetry: TELEMETRY,
|
|
1825
|
+
span: "ListRouteRules",
|
|
1826
|
+
}));
|
|
1827
|
+
|
|
1828
|
+
export type ListRouteStagesError = ScalewayOpError;
|
|
1829
|
+
/** List route stages List all route stages, for a given pipeline. By default, the route stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1830
|
+
export const listRouteStages: API.PaginatedOperationMethod<
|
|
1831
|
+
ListRouteStagesRequest,
|
|
1832
|
+
ListRouteStagesResponse,
|
|
1833
|
+
ListRouteStagesError,
|
|
1834
|
+
ScalewayOpContext,
|
|
1835
|
+
RouteStage
|
|
1836
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1837
|
+
() => ({
|
|
1838
|
+
input: __S(352, __c44, 0) as any as S.Schema<ListRouteStagesRequest>,
|
|
1839
|
+
output: __S(354, __c44, 2) as any as S.Schema<ListRouteStagesResponse>,
|
|
1840
|
+
errors: [],
|
|
1841
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1842
|
+
protocol: ScalewayProtocol,
|
|
1843
|
+
retry: Retry.Retry,
|
|
1844
|
+
telemetry: TELEMETRY,
|
|
1845
|
+
span: "ListRouteStages",
|
|
1846
|
+
pagination: {
|
|
1847
|
+
mode: "page",
|
|
1848
|
+
inputToken: "page",
|
|
1849
|
+
outputToken: "total_count",
|
|
1850
|
+
items: "stages",
|
|
1851
|
+
pageSize: "page_size",
|
|
1852
|
+
} as const,
|
|
1853
|
+
}),
|
|
1854
|
+
paginateByTotalCount,
|
|
1855
|
+
) as any;
|
|
1856
|
+
|
|
1857
|
+
export type ListTLSStagesError = ScalewayOpError;
|
|
1858
|
+
/** List TLS stages List all TLS stages, for a Scaleway Organization or Scaleway Project. By default, the TLS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1859
|
+
export const listTLSStages: API.PaginatedOperationMethod<
|
|
1860
|
+
ListTLSStagesRequest,
|
|
1861
|
+
ListTLSStagesResponse,
|
|
1862
|
+
ListTLSStagesError,
|
|
1863
|
+
ScalewayOpContext,
|
|
1864
|
+
TLSStage
|
|
1865
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1866
|
+
() => ({
|
|
1867
|
+
input: __S(376, __c47, 0) as any as S.Schema<ListTLSStagesRequest>,
|
|
1868
|
+
output: __S(378, __c47, 2) as any as S.Schema<ListTLSStagesResponse>,
|
|
1869
|
+
errors: [],
|
|
1870
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1871
|
+
protocol: ScalewayProtocol,
|
|
1872
|
+
retry: Retry.Retry,
|
|
1873
|
+
telemetry: TELEMETRY,
|
|
1874
|
+
span: "ListTLSStages",
|
|
1875
|
+
pagination: {
|
|
1876
|
+
mode: "page",
|
|
1877
|
+
inputToken: "page",
|
|
1878
|
+
outputToken: "total_count",
|
|
1879
|
+
items: "stages",
|
|
1880
|
+
pageSize: "page_size",
|
|
1881
|
+
} as const,
|
|
1882
|
+
}),
|
|
1883
|
+
paginateByTotalCount,
|
|
1884
|
+
) as any;
|
|
1885
|
+
|
|
1886
|
+
export type ListVPCEndpointsError = ScalewayOpError;
|
|
1887
|
+
/** List VPC Endpoints. List all VPC Endpoints, for a Scaleway Organization or Scaleway Project. By default, the VPC Endpoints returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. Derived from scaleway-sdk-js (`API.listVPCEndpoints`): Scaleway publishes no OpenAPI document for this route. */
|
|
1888
|
+
export const listVPCEndpoints: API.PaginatedOperationMethod<
|
|
1889
|
+
ListVPCEndpointsRequest,
|
|
1890
|
+
ListVPCEndpointsResponse,
|
|
1891
|
+
ListVPCEndpointsError,
|
|
1892
|
+
ScalewayOpContext,
|
|
1893
|
+
VPCEndpoint
|
|
1894
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1895
|
+
() => ({
|
|
1896
|
+
input: __S(384, __c48, 0) as any as S.Schema<ListVPCEndpointsRequest>,
|
|
1897
|
+
output: __S(385, __c48, 1) as any as S.Schema<ListVPCEndpointsResponse>,
|
|
1898
|
+
errors: [],
|
|
1899
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1900
|
+
protocol: ScalewayProtocol,
|
|
1901
|
+
retry: Retry.Retry,
|
|
1902
|
+
telemetry: TELEMETRY,
|
|
1903
|
+
span: "ListVPCEndpoints",
|
|
1904
|
+
pagination: {
|
|
1905
|
+
mode: "page",
|
|
1906
|
+
inputToken: "page",
|
|
1907
|
+
outputToken: "total_count",
|
|
1908
|
+
items: "vpc_endpoints",
|
|
1909
|
+
pageSize: "page_size",
|
|
1910
|
+
} as const,
|
|
1911
|
+
}),
|
|
1912
|
+
paginateByTotalCount,
|
|
1913
|
+
) as any;
|
|
1914
|
+
|
|
1915
|
+
export type ListWafStagesError = ScalewayOpError;
|
|
1916
|
+
/** List WAF stages List all WAF stages, for a Scaleway Organization or Scaleway Project. By default, the WAF stages returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field. */
|
|
1917
|
+
export const listWafStages: API.PaginatedOperationMethod<
|
|
1918
|
+
ListWafStagesRequest,
|
|
1919
|
+
ListWafStagesResponse,
|
|
1920
|
+
ListWafStagesError,
|
|
1921
|
+
ScalewayOpContext,
|
|
1922
|
+
WafStage
|
|
1923
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1924
|
+
() => ({
|
|
1925
|
+
input: __S(400, __c50, 0) as any as S.Schema<ListWafStagesRequest>,
|
|
1926
|
+
output: __S(402, __c50, 2) as any as S.Schema<ListWafStagesResponse>,
|
|
1927
|
+
errors: [],
|
|
1928
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1929
|
+
protocol: ScalewayProtocol,
|
|
1930
|
+
retry: Retry.Retry,
|
|
1931
|
+
telemetry: TELEMETRY,
|
|
1932
|
+
span: "ListWafStages",
|
|
1933
|
+
pagination: {
|
|
1934
|
+
mode: "page",
|
|
1935
|
+
inputToken: "page",
|
|
1936
|
+
outputToken: "total_count",
|
|
1937
|
+
items: "stages",
|
|
1938
|
+
pageSize: "page_size",
|
|
1939
|
+
} as const,
|
|
1940
|
+
}),
|
|
1941
|
+
paginateByTotalCount,
|
|
1942
|
+
) as any;
|
|
1943
|
+
|
|
1944
|
+
export type SelectPlanError = ScalewayOpError;
|
|
1945
|
+
/** Select plan Subscribe to the Edge Services subscription plan of your choice, for the given Scaleway Project. */
|
|
1946
|
+
export const selectPlan: API.OperationMethod<
|
|
1947
|
+
SelectPlanRequest,
|
|
1948
|
+
Plan,
|
|
1949
|
+
SelectPlanError,
|
|
1950
|
+
ScalewayOpContext
|
|
1951
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1952
|
+
input: __S(408, __c51, 0) as any as S.Schema<SelectPlanRequest>,
|
|
1953
|
+
output: __S(176, __c22, 0) as any as S.Schema<Plan>,
|
|
1954
|
+
errors: [],
|
|
1955
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1956
|
+
protocol: ScalewayProtocol,
|
|
1957
|
+
retry: Retry.Retry,
|
|
1958
|
+
telemetry: TELEMETRY,
|
|
1959
|
+
span: "SelectPlan",
|
|
1960
|
+
}));
|
|
1961
|
+
|
|
1962
|
+
export type SetHeadStageError = ScalewayOpError;
|
|
1963
|
+
/** Configure a entry point to your pipeline. You must specify a `head stage` to form a stage-chain that goes all the way to the backend stage (origin), so the HTTP request will be processed according to the stages you created. You must specify either a `add_new_head_stage` (to add a new head stage), `remove_head_stage` (to remove a head stage) or `swap_head_stage` (to replace a head stage). */
|
|
1964
|
+
export const setHeadStage: API.OperationMethod<
|
|
1965
|
+
SetHeadStageRequest,
|
|
1966
|
+
HeadStageResponse,
|
|
1967
|
+
SetHeadStageError,
|
|
1968
|
+
ScalewayOpContext
|
|
1969
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1970
|
+
input: __S(419, __c52, 3) as any as S.Schema<SetHeadStageRequest>,
|
|
1971
|
+
output: __S(420, __c52, 4) as any as S.Schema<HeadStageResponse>,
|
|
1972
|
+
errors: [],
|
|
1973
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1974
|
+
protocol: ScalewayProtocol,
|
|
1975
|
+
retry: Retry.Retry,
|
|
1976
|
+
telemetry: TELEMETRY,
|
|
1977
|
+
span: "SetHeadStage",
|
|
1978
|
+
}));
|
|
1979
|
+
|
|
1980
|
+
export type SetPipelineVPCEndpointsError = ScalewayOpError;
|
|
1981
|
+
/** Attach VPC Endpoints. Attach VPC Endpoint to the given Pipeline. You must specify a `pipeline_id` and `vpc_endpoint_ids` which contains the list of VPC Endpoints. Derived from scaleway-sdk-js (`API.setPipelineVPCEndpoints`): Scaleway publishes no OpenAPI document for this route. */
|
|
1982
|
+
export const setPipelineVPCEndpoints: API.OperationMethod<
|
|
1983
|
+
SetPipelineVPCEndpointsRequest,
|
|
1984
|
+
SetPipelineVPCEndpointsResponse,
|
|
1985
|
+
SetPipelineVPCEndpointsError,
|
|
1986
|
+
ScalewayOpContext
|
|
1987
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1988
|
+
input: __S(424, __c53, 0) as any as S.Schema<SetPipelineVPCEndpointsRequest>,
|
|
1989
|
+
output: __S(425, __c53, 1) as any as S.Schema<SetPipelineVPCEndpointsResponse>,
|
|
1990
|
+
errors: [],
|
|
1991
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1992
|
+
protocol: ScalewayProtocol,
|
|
1993
|
+
retry: Retry.Retry,
|
|
1994
|
+
telemetry: TELEMETRY,
|
|
1995
|
+
span: "SetPipelineVPCEndpoints",
|
|
1996
|
+
}));
|
|
1997
|
+
|
|
1998
|
+
export type SetRouteRulesError = ScalewayOpError;
|
|
1999
|
+
/** Set route rules Set the rules of an existing route stage, specified by its `route_stage_id`. */
|
|
2000
|
+
export const setRouteRules: API.OperationMethod<
|
|
2001
|
+
SetRouteRulesRequest,
|
|
2002
|
+
SetRouteRulesResponse,
|
|
2003
|
+
SetRouteRulesError,
|
|
2004
|
+
ScalewayOpContext
|
|
2005
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2006
|
+
input: __S(432, __c54, 0) as any as S.Schema<SetRouteRulesRequest>,
|
|
2007
|
+
output: __S(18, __c2, 2) as any as S.Schema<SetRouteRulesResponse>,
|
|
2008
|
+
errors: [],
|
|
2009
|
+
serviceErrors: ScalewayServiceErrors,
|
|
2010
|
+
protocol: ScalewayProtocol,
|
|
2011
|
+
retry: Retry.Retry,
|
|
2012
|
+
telemetry: TELEMETRY,
|
|
2013
|
+
span: "SetRouteRules",
|
|
2014
|
+
}));
|
|
2015
|
+
|
|
2016
|
+
export type UpdateBackendStageError = ScalewayOpError;
|
|
2017
|
+
/** Update backend stage Update the parameters of an existing backend stage, specified by its `backend_stage_id`. */
|
|
2018
|
+
export const updateBackendStage: API.OperationMethod<
|
|
2019
|
+
UpdateBackendStageRequest,
|
|
2020
|
+
BackendStage,
|
|
2021
|
+
UpdateBackendStageError,
|
|
2022
|
+
ScalewayOpContext
|
|
2023
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2024
|
+
input: __S(440, __c55, 0) as any as S.Schema<UpdateBackendStageRequest>,
|
|
2025
|
+
output: __S(38, __c4, 6) as any as S.Schema<BackendStage>,
|
|
2026
|
+
errors: [],
|
|
2027
|
+
serviceErrors: ScalewayServiceErrors,
|
|
2028
|
+
protocol: ScalewayProtocol,
|
|
2029
|
+
retry: Retry.Retry,
|
|
2030
|
+
telemetry: TELEMETRY,
|
|
2031
|
+
span: "UpdateBackendStage",
|
|
2032
|
+
}));
|
|
2033
|
+
|
|
2034
|
+
export type UpdateCacheStageError = ScalewayOpError;
|
|
2035
|
+
/** Update cache stage Update the parameters of an existing cache stage, specified by its `cache_stage_id`. Parameters which can be updated include the `fallback_ttl`, `include_cookies` and `backend_stage_id`. */
|
|
2036
|
+
export const updateCacheStage: API.OperationMethod<
|
|
2037
|
+
UpdateCacheStageRequest,
|
|
2038
|
+
CacheStage,
|
|
2039
|
+
UpdateCacheStageError,
|
|
2040
|
+
ScalewayOpContext
|
|
2041
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2042
|
+
input: __S(448, __c56, 0) as any as S.Schema<UpdateCacheStageRequest>,
|
|
2043
|
+
output: __S(136, __c17, 0) as any as S.Schema<CacheStage>,
|
|
2044
|
+
errors: [],
|
|
2045
|
+
serviceErrors: ScalewayServiceErrors,
|
|
2046
|
+
protocol: ScalewayProtocol,
|
|
2047
|
+
retry: Retry.Retry,
|
|
2048
|
+
telemetry: TELEMETRY,
|
|
2049
|
+
span: "UpdateCacheStage",
|
|
2050
|
+
}));
|
|
2051
|
+
|
|
2052
|
+
export type UpdateDNSStageError = ScalewayOpError;
|
|
2053
|
+
/** Update DNS stage Update the parameters of an existing DNS stage, specified by its `dns_stage_id`. */
|
|
2054
|
+
export const updateDNSStage: API.OperationMethod<
|
|
2055
|
+
UpdateDNSStageRequest,
|
|
2056
|
+
DNSStage,
|
|
2057
|
+
UpdateDNSStageError,
|
|
2058
|
+
ScalewayOpContext
|
|
2059
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2060
|
+
input: __S(456, __c57, 0) as any as S.Schema<UpdateDNSStageRequest>,
|
|
2061
|
+
output: __S(256, __c32, 0) as any as S.Schema<DNSStage>,
|
|
2062
|
+
errors: [],
|
|
2063
|
+
serviceErrors: ScalewayServiceErrors,
|
|
2064
|
+
protocol: ScalewayProtocol,
|
|
2065
|
+
retry: Retry.Retry,
|
|
2066
|
+
telemetry: TELEMETRY,
|
|
2067
|
+
span: "UpdateDNSStage",
|
|
2068
|
+
}));
|
|
2069
|
+
|
|
2070
|
+
export type UpdatePipelineError = ScalewayOpError;
|
|
2071
|
+
/** Update pipeline Update the parameters of an existing pipeline, specified by its `pipeline_id`. Parameters which can be updated include the `name`, `description` and `dns_stage_id`. */
|
|
2072
|
+
export const updatePipeline: API.OperationMethod<
|
|
2073
|
+
UpdatePipelineRequest,
|
|
2074
|
+
Pipeline,
|
|
2075
|
+
UpdatePipelineError,
|
|
2076
|
+
ScalewayOpContext
|
|
2077
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2078
|
+
input: __S(480, __c60, 0) as any as S.Schema<UpdatePipelineRequest>,
|
|
2079
|
+
output: __S(370, __c46, 2) as any as S.Schema<Pipeline>,
|
|
2080
|
+
errors: [],
|
|
2081
|
+
serviceErrors: ScalewayServiceErrors,
|
|
2082
|
+
protocol: ScalewayProtocol,
|
|
2083
|
+
retry: Retry.Retry,
|
|
2084
|
+
telemetry: TELEMETRY,
|
|
2085
|
+
span: "UpdatePipeline",
|
|
2086
|
+
}));
|
|
2087
|
+
|
|
2088
|
+
export type UpdateRouteStageError = ScalewayOpError;
|
|
2089
|
+
/** Update route stage Update the parameters of an existing route stage, specified by its `route_stage_id`. */
|
|
2090
|
+
export const updateRouteStage: API.OperationMethod<
|
|
2091
|
+
UpdateRouteStageRequest,
|
|
2092
|
+
RouteStage,
|
|
2093
|
+
UpdateRouteStageError,
|
|
2094
|
+
ScalewayOpContext
|
|
2095
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2096
|
+
input: __S(488, __c61, 0) as any as S.Schema<UpdateRouteStageRequest>,
|
|
2097
|
+
output: __S(520, __c65, 0) as any as S.Schema<RouteStage>,
|
|
2098
|
+
errors: [],
|
|
2099
|
+
serviceErrors: ScalewayServiceErrors,
|
|
2100
|
+
protocol: ScalewayProtocol,
|
|
2101
|
+
retry: Retry.Retry,
|
|
2102
|
+
telemetry: TELEMETRY,
|
|
2103
|
+
span: "UpdateRouteStage",
|
|
2104
|
+
}));
|
|
2105
|
+
|
|
2106
|
+
export type UpdateTLSStageError = ScalewayOpError;
|
|
2107
|
+
/** Update TLS stage Update the parameters of an existing TLS stage, specified by its `tls_stage_id`. Both `tls_secrets_config` and `managed_certificate` parameters can be updated. */
|
|
2108
|
+
export const updateTLSStage: API.OperationMethod<
|
|
2109
|
+
UpdateTLSStageRequest,
|
|
2110
|
+
TLSStage,
|
|
2111
|
+
UpdateTLSStageError,
|
|
2112
|
+
ScalewayOpContext
|
|
2113
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2114
|
+
input: __S(497, __c62, 1) as any as S.Schema<UpdateTLSStageRequest>,
|
|
2115
|
+
output: __S(538, __c67, 2) as any as S.Schema<TLSStage>,
|
|
2116
|
+
errors: [],
|
|
2117
|
+
serviceErrors: ScalewayServiceErrors,
|
|
2118
|
+
protocol: ScalewayProtocol,
|
|
2119
|
+
retry: Retry.Retry,
|
|
2120
|
+
telemetry: TELEMETRY,
|
|
2121
|
+
span: "UpdateTLSStage",
|
|
2122
|
+
}));
|
|
2123
|
+
|
|
2124
|
+
export type UpdateWafStageError = ScalewayOpError;
|
|
2125
|
+
/** Update WAF stage Update the parameters of an existing WAF stage, specified by its `waf_stage_id`. Both `mode` and `paranoia_level` parameters can be updated. */
|
|
2126
|
+
export const updateWafStage: API.OperationMethod<
|
|
2127
|
+
UpdateWafStageRequest,
|
|
2128
|
+
WafStage,
|
|
2129
|
+
UpdateWafStageError,
|
|
2130
|
+
ScalewayOpContext
|
|
2131
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2132
|
+
input: __S(504, __c63, 0) as any as S.Schema<UpdateWafStageRequest>,
|
|
2133
|
+
output: __S(570, __c71, 2) as any as S.Schema<WafStage>,
|
|
2134
|
+
errors: [],
|
|
2135
|
+
serviceErrors: ScalewayServiceErrors,
|
|
2136
|
+
protocol: ScalewayProtocol,
|
|
2137
|
+
retry: Retry.Retry,
|
|
2138
|
+
telemetry: TELEMETRY,
|
|
2139
|
+
span: "UpdateWafStage",
|
|
2140
|
+
}));
|
|
2141
|
+
|
|
2142
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
2143
|
+
function __c0(j: number): any {
|
|
2144
|
+
switch (j) {
|
|
2145
|
+
case 0:
|
|
2146
|
+
return S.suspend(() =>
|
|
2147
|
+
S.Struct({
|
|
2148
|
+
route_stage_id: S.String.pipe(T.Label()),
|
|
2149
|
+
route_rules: S.optional(__S(17, __c2, 1)),
|
|
2150
|
+
after_position: S.optional(S.NullOr(S.Number)),
|
|
2151
|
+
before_position: S.optional(S.NullOr(S.Number)),
|
|
2152
|
+
}).pipe(
|
|
2153
|
+
T.Http({
|
|
2154
|
+
method: "POST",
|
|
2155
|
+
uri: "/edge-services/v1beta1/route-stages/{route_stage_id}/route-rules",
|
|
2156
|
+
code: 200,
|
|
2157
|
+
baseUrl: "https://api.scaleway.com",
|
|
2158
|
+
}),
|
|
2159
|
+
),
|
|
2160
|
+
).annotate({ identifier: "AddRouteRulesRequest" });
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
function __c1(j: number): any {
|
|
2164
|
+
switch (j) {
|
|
2165
|
+
case 0:
|
|
2166
|
+
return S.Array(S.String);
|
|
2167
|
+
case 1:
|
|
2168
|
+
return S.suspend(() =>
|
|
2169
|
+
S.Struct({
|
|
2170
|
+
path_filter_type: S.optional(S.String),
|
|
2171
|
+
value: S.optional(S.String),
|
|
2172
|
+
}),
|
|
2173
|
+
).annotate({ identifier: "RuleHttpMatchPathFilter" });
|
|
2174
|
+
case 2:
|
|
2175
|
+
return S.suspend(() =>
|
|
2176
|
+
S.Struct({
|
|
2177
|
+
host_filter_type: S.optional(S.String),
|
|
2178
|
+
value: S.optional(S.String),
|
|
2179
|
+
}),
|
|
2180
|
+
).annotate({ identifier: "RuleHttpMatchHostFilter" });
|
|
2181
|
+
case 3:
|
|
2182
|
+
return S.suspend(() =>
|
|
2183
|
+
S.Struct({
|
|
2184
|
+
method_filters: S.optional(__S(8, __c1, 0)),
|
|
2185
|
+
path_filter: S.optional(__S(9, __c1, 1)),
|
|
2186
|
+
host_filter: S.optional(__S(10, __c1, 2)),
|
|
2187
|
+
}),
|
|
2188
|
+
).annotate({ identifier: "RuleHttpMatch" });
|
|
2189
|
+
case 4:
|
|
2190
|
+
return S.suspend(() =>
|
|
2191
|
+
S.Struct({
|
|
2192
|
+
rule_http_match: S.optional(S.NullOr(__S(11, __c1, 3))),
|
|
2193
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
2194
|
+
position: S.optional(S.Number),
|
|
2195
|
+
route_stage_id: S.optional(S.String),
|
|
2196
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
2197
|
+
}),
|
|
2198
|
+
).annotate({ identifier: "RouteRule" });
|
|
2199
|
+
case 5:
|
|
2200
|
+
return S.Array(__S(12, __c1, 4));
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
function __c2(j: number): any {
|
|
2204
|
+
switch (j) {
|
|
2205
|
+
case 0:
|
|
2206
|
+
return S.suspend(() =>
|
|
2207
|
+
S.Struct({
|
|
2208
|
+
rule_http_match: S.optional(S.NullOr(__S(11, __c1, 3))),
|
|
2209
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
2210
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
2211
|
+
}),
|
|
2212
|
+
).annotate({ identifier: "SetRouteRulesRequestRouteRule" });
|
|
2213
|
+
case 1:
|
|
2214
|
+
return S.Array(__S(16, __c2, 0));
|
|
2215
|
+
case 2:
|
|
2216
|
+
return S.suspend(() =>
|
|
2217
|
+
S.Struct({
|
|
2218
|
+
route_rules: S.optional(__S(13, __c1, 5)),
|
|
2219
|
+
}),
|
|
2220
|
+
).annotate({ identifier: "AddRouteRulesResponse" });
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
function __c3(j: number): any {
|
|
2224
|
+
switch (j) {
|
|
2225
|
+
case 0:
|
|
2226
|
+
return S.suspend(() =>
|
|
2227
|
+
S.Struct({
|
|
2228
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2229
|
+
scaleway_s3: S.optional(S.NullOr(__S(32, __c4, 0))),
|
|
2230
|
+
scaleway_lb: S.optional(S.NullOr(__S(35, __c4, 3))),
|
|
2231
|
+
scaleway_serverless_container: S.optional(S.NullOr(__S(36, __c4, 4))),
|
|
2232
|
+
scaleway_serverless_function: S.optional(S.NullOr(__S(37, __c4, 5))),
|
|
2233
|
+
}).pipe(
|
|
2234
|
+
T.Http({
|
|
2235
|
+
method: "POST",
|
|
2236
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/backend-stages",
|
|
2237
|
+
code: 200,
|
|
2238
|
+
baseUrl: "https://api.scaleway.com",
|
|
2239
|
+
}),
|
|
2240
|
+
),
|
|
2241
|
+
).annotate({ identifier: "CreateBackendStageRequest" });
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
function __c4(j: number): any {
|
|
2245
|
+
switch (j) {
|
|
2246
|
+
case 0:
|
|
2247
|
+
return S.suspend(() =>
|
|
2248
|
+
S.Struct({
|
|
2249
|
+
bucket_name: S.optional(S.NullOr(S.String)),
|
|
2250
|
+
bucket_region: S.optional(S.NullOr(S.String)),
|
|
2251
|
+
is_website: S.optional(S.NullOr(S.Boolean)),
|
|
2252
|
+
}),
|
|
2253
|
+
).annotate({ identifier: "ScalewayS3BackendConfig" });
|
|
2254
|
+
case 1:
|
|
2255
|
+
return S.suspend(() =>
|
|
2256
|
+
S.Struct({
|
|
2257
|
+
id: S.String,
|
|
2258
|
+
zone: S.String,
|
|
2259
|
+
frontend_id: S.String,
|
|
2260
|
+
is_ssl: S.optional(S.NullOr(S.Boolean)),
|
|
2261
|
+
domain_name: S.optional(S.NullOr(S.String)),
|
|
2262
|
+
has_websocket: S.optional(S.NullOr(S.Boolean)),
|
|
2263
|
+
}),
|
|
2264
|
+
).annotate({ identifier: "ScalewayLb" });
|
|
2265
|
+
case 2:
|
|
2266
|
+
return S.Array(__S(33, __c4, 1));
|
|
2267
|
+
case 3:
|
|
2268
|
+
return S.suspend(() =>
|
|
2269
|
+
S.Struct({
|
|
2270
|
+
lbs: S.optional(__S(34, __c4, 2)),
|
|
2271
|
+
}),
|
|
2272
|
+
).annotate({ identifier: "ScalewayLbBackendConfig" });
|
|
2273
|
+
case 4:
|
|
2274
|
+
return S.suspend(() =>
|
|
2275
|
+
S.Struct({
|
|
2276
|
+
region: S.String,
|
|
2277
|
+
container_id: S.String,
|
|
2278
|
+
}),
|
|
2279
|
+
).annotate({ identifier: "ScalewayServerlessContainerBackendConfig" });
|
|
2280
|
+
case 5:
|
|
2281
|
+
return S.suspend(() =>
|
|
2282
|
+
S.Struct({
|
|
2283
|
+
region: S.String,
|
|
2284
|
+
function_id: S.String,
|
|
2285
|
+
}),
|
|
2286
|
+
).annotate({ identifier: "ScalewayServerlessFunctionBackendConfig" });
|
|
2287
|
+
case 6:
|
|
2288
|
+
return S.suspend(() =>
|
|
2289
|
+
S.Struct({
|
|
2290
|
+
id: S.optional(S.String),
|
|
2291
|
+
pipeline_id: S.optional(S.String),
|
|
2292
|
+
status: S.optional(S.String),
|
|
2293
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
2294
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
2295
|
+
scaleway_s3: S.optional(S.NullOr(__S(32, __c4, 0))),
|
|
2296
|
+
scaleway_lb: S.optional(S.NullOr(__S(35, __c4, 3))),
|
|
2297
|
+
scaleway_serverless_container: S.optional(S.NullOr(__S(36, __c4, 4))),
|
|
2298
|
+
scaleway_serverless_function: S.optional(S.NullOr(__S(37, __c4, 5))),
|
|
2299
|
+
}),
|
|
2300
|
+
).annotate({ identifier: "BackendStage" });
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
function __c5(j: number): any {
|
|
2304
|
+
switch (j) {
|
|
2305
|
+
case 0:
|
|
2306
|
+
return S.suspend(() =>
|
|
2307
|
+
S.Struct({
|
|
2308
|
+
backend_stage_id: S.String.pipe(T.Label()),
|
|
2309
|
+
}).pipe(
|
|
2310
|
+
T.Http({
|
|
2311
|
+
method: "DELETE",
|
|
2312
|
+
uri: "/edge-services/v1beta1/backend-stages/{backend_stage_id}",
|
|
2313
|
+
code: 200,
|
|
2314
|
+
baseUrl: "https://api.scaleway.com",
|
|
2315
|
+
}),
|
|
2316
|
+
),
|
|
2317
|
+
).annotate({ identifier: "DeleteBackendStageRequest" });
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
function __c6(j: number): any {
|
|
2321
|
+
switch (j) {
|
|
2322
|
+
case 0:
|
|
2323
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteBackendStageResponse" });
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
function __c7(j: number): any {
|
|
2327
|
+
switch (j) {
|
|
2328
|
+
case 0:
|
|
2329
|
+
return S.suspend(() =>
|
|
2330
|
+
S.Struct({
|
|
2331
|
+
cache_stage_id: S.String.pipe(T.Label()),
|
|
2332
|
+
}).pipe(
|
|
2333
|
+
T.Http({
|
|
2334
|
+
method: "DELETE",
|
|
2335
|
+
uri: "/edge-services/v1beta1/cache-stages/{cache_stage_id}",
|
|
2336
|
+
code: 200,
|
|
2337
|
+
baseUrl: "https://api.scaleway.com",
|
|
2338
|
+
}),
|
|
2339
|
+
),
|
|
2340
|
+
).annotate({ identifier: "DeleteCacheStageRequest" });
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
function __c8(j: number): any {
|
|
2344
|
+
switch (j) {
|
|
2345
|
+
case 0:
|
|
2346
|
+
return S.suspend(() =>
|
|
2347
|
+
S.Struct({
|
|
2348
|
+
project_id: S.String.pipe(T.Label()),
|
|
2349
|
+
}).pipe(
|
|
2350
|
+
T.Http({
|
|
2351
|
+
method: "DELETE",
|
|
2352
|
+
uri: "/edge-services/v1beta1/current-plan/{project_id}",
|
|
2353
|
+
code: 200,
|
|
2354
|
+
baseUrl: "https://api.scaleway.com",
|
|
2355
|
+
}),
|
|
2356
|
+
),
|
|
2357
|
+
).annotate({ identifier: "DeleteCurrentPlanRequest" });
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
function __c9(j: number): any {
|
|
2361
|
+
switch (j) {
|
|
2362
|
+
case 0:
|
|
2363
|
+
return S.suspend(() =>
|
|
2364
|
+
S.Struct({
|
|
2365
|
+
dns_stage_id: S.String.pipe(T.Label()),
|
|
2366
|
+
}).pipe(
|
|
2367
|
+
T.Http({
|
|
2368
|
+
method: "DELETE",
|
|
2369
|
+
uri: "/edge-services/v1beta1/dns-stages/{dns_stage_id}",
|
|
2370
|
+
code: 200,
|
|
2371
|
+
baseUrl: "https://api.scaleway.com",
|
|
2372
|
+
}),
|
|
2373
|
+
),
|
|
2374
|
+
).annotate({ identifier: "DeleteDNSStageRequest" });
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
function __c10(j: number): any {
|
|
2378
|
+
switch (j) {
|
|
2379
|
+
case 0:
|
|
2380
|
+
return S.suspend(() =>
|
|
2381
|
+
S.Struct({
|
|
2382
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2383
|
+
}).pipe(
|
|
2384
|
+
T.Http({
|
|
2385
|
+
method: "DELETE",
|
|
2386
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}",
|
|
2387
|
+
code: 200,
|
|
2388
|
+
baseUrl: "https://api.scaleway.com",
|
|
2389
|
+
}),
|
|
2390
|
+
),
|
|
2391
|
+
).annotate({ identifier: "DeletePipelineRequest" });
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
function __c11(j: number): any {
|
|
2395
|
+
switch (j) {
|
|
2396
|
+
case 0:
|
|
2397
|
+
return S.suspend(() =>
|
|
2398
|
+
S.Struct({
|
|
2399
|
+
route_stage_id: S.String.pipe(T.Label()),
|
|
2400
|
+
}).pipe(
|
|
2401
|
+
T.Http({
|
|
2402
|
+
method: "DELETE",
|
|
2403
|
+
uri: "/edge-services/v1beta1/route-stages/{route_stage_id}",
|
|
2404
|
+
code: 200,
|
|
2405
|
+
baseUrl: "https://api.scaleway.com",
|
|
2406
|
+
}),
|
|
2407
|
+
),
|
|
2408
|
+
).annotate({ identifier: "DeleteRouteStageRequest" });
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
function __c12(j: number): any {
|
|
2412
|
+
switch (j) {
|
|
2413
|
+
case 0:
|
|
2414
|
+
return S.suspend(() =>
|
|
2415
|
+
S.Struct({
|
|
2416
|
+
tls_stage_id: S.String.pipe(T.Label()),
|
|
2417
|
+
}).pipe(
|
|
2418
|
+
T.Http({
|
|
2419
|
+
method: "DELETE",
|
|
2420
|
+
uri: "/edge-services/v1beta1/tls-stages/{tls_stage_id}",
|
|
2421
|
+
code: 200,
|
|
2422
|
+
baseUrl: "https://api.scaleway.com",
|
|
2423
|
+
}),
|
|
2424
|
+
),
|
|
2425
|
+
).annotate({ identifier: "DeleteTLSStageRequest" });
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
function __c13(j: number): any {
|
|
2429
|
+
switch (j) {
|
|
2430
|
+
case 0:
|
|
2431
|
+
return S.suspend(() =>
|
|
2432
|
+
S.Struct({
|
|
2433
|
+
vpc_endpoint_id: S.String.pipe(T.Label()),
|
|
2434
|
+
}).pipe(
|
|
2435
|
+
T.Http({
|
|
2436
|
+
method: "DELETE",
|
|
2437
|
+
uri: "/edge-services/v1beta1/vpc-endpoints/{vpc_endpoint_id}",
|
|
2438
|
+
code: 200,
|
|
2439
|
+
baseUrl: "https://api.scaleway.com",
|
|
2440
|
+
}),
|
|
2441
|
+
),
|
|
2442
|
+
).annotate({ identifier: "DeleteVPCEndpointRequest" });
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
function __c14(j: number): any {
|
|
2446
|
+
switch (j) {
|
|
2447
|
+
case 0:
|
|
2448
|
+
return S.suspend(() =>
|
|
2449
|
+
S.Struct({
|
|
2450
|
+
waf_stage_id: S.String.pipe(T.Label()),
|
|
2451
|
+
}).pipe(
|
|
2452
|
+
T.Http({
|
|
2453
|
+
method: "DELETE",
|
|
2454
|
+
uri: "/edge-services/v1beta1/waf-stages/{waf_stage_id}",
|
|
2455
|
+
code: 200,
|
|
2456
|
+
baseUrl: "https://api.scaleway.com",
|
|
2457
|
+
}),
|
|
2458
|
+
),
|
|
2459
|
+
).annotate({ identifier: "DeleteWafStageRequest" });
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
function __c15(j: number): any {
|
|
2463
|
+
switch (j) {
|
|
2464
|
+
case 0:
|
|
2465
|
+
return S.suspend(() =>
|
|
2466
|
+
S.Struct({
|
|
2467
|
+
backend_stage_id: S.String.pipe(T.Label()),
|
|
2468
|
+
}).pipe(
|
|
2469
|
+
T.Http({
|
|
2470
|
+
method: "GET",
|
|
2471
|
+
uri: "/edge-services/v1beta1/backend-stages/{backend_stage_id}",
|
|
2472
|
+
code: 200,
|
|
2473
|
+
baseUrl: "https://api.scaleway.com",
|
|
2474
|
+
}),
|
|
2475
|
+
),
|
|
2476
|
+
).annotate({ identifier: "GetBackendStageRequest" });
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
function __c16(j: number): any {
|
|
2480
|
+
switch (j) {
|
|
2481
|
+
case 0:
|
|
2482
|
+
return S.suspend(() =>
|
|
2483
|
+
S.Struct({
|
|
2484
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2485
|
+
fallback_ttl: S.optional(S.NullOr(S.String)),
|
|
2486
|
+
include_cookies: S.optional(S.NullOr(S.Boolean)),
|
|
2487
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
2488
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
2489
|
+
route_stage_id: S.optional(S.NullOr(S.String)),
|
|
2490
|
+
}).pipe(
|
|
2491
|
+
T.Http({
|
|
2492
|
+
method: "POST",
|
|
2493
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/cache-stages",
|
|
2494
|
+
code: 200,
|
|
2495
|
+
baseUrl: "https://api.scaleway.com",
|
|
2496
|
+
}),
|
|
2497
|
+
),
|
|
2498
|
+
).annotate({ identifier: "CreateCacheStageRequest" });
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
function __c17(j: number): any {
|
|
2502
|
+
switch (j) {
|
|
2503
|
+
case 0:
|
|
2504
|
+
return S.suspend(() =>
|
|
2505
|
+
S.Struct({
|
|
2506
|
+
id: S.optional(S.String),
|
|
2507
|
+
pipeline_id: S.optional(S.String),
|
|
2508
|
+
fallback_ttl: S.optional(S.NullOr(S.String)),
|
|
2509
|
+
include_cookies: S.optional(S.Boolean),
|
|
2510
|
+
status: S.optional(S.String),
|
|
2511
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
2512
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
2513
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
2514
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
2515
|
+
route_stage_id: S.optional(S.NullOr(S.String)),
|
|
2516
|
+
}),
|
|
2517
|
+
).annotate({ identifier: "CacheStage" });
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
function __c18(j: number): any {
|
|
2521
|
+
switch (j) {
|
|
2522
|
+
case 0:
|
|
2523
|
+
return S.suspend(() =>
|
|
2524
|
+
S.Struct({
|
|
2525
|
+
project_id: S.String.pipe(T.Label()),
|
|
2526
|
+
}).pipe(
|
|
2527
|
+
T.Http({
|
|
2528
|
+
method: "GET",
|
|
2529
|
+
uri: "/edge-services/v1beta1/billing/{project_id}",
|
|
2530
|
+
code: 200,
|
|
2531
|
+
baseUrl: "https://api.scaleway.com",
|
|
2532
|
+
}),
|
|
2533
|
+
),
|
|
2534
|
+
).annotate({ identifier: "GetBillingRequest" });
|
|
2535
|
+
case 1:
|
|
2536
|
+
return S.suspend(() =>
|
|
2537
|
+
S.Struct({
|
|
2538
|
+
currency_code: S.optional(S.String),
|
|
2539
|
+
units: S.optional(S.Number),
|
|
2540
|
+
nanos: S.optional(S.Number),
|
|
2541
|
+
}),
|
|
2542
|
+
).annotate({ identifier: "GoogleTypeMoney" });
|
|
2543
|
+
case 2:
|
|
2544
|
+
return S.suspend(() =>
|
|
2545
|
+
S.Struct({
|
|
2546
|
+
plan_cost: S.optional(__S(145, __c18, 1)),
|
|
2547
|
+
}),
|
|
2548
|
+
).annotate({ identifier: "PlanUsageDetails" });
|
|
2549
|
+
case 3:
|
|
2550
|
+
return S.Record(S.String, __S(146, __c18, 2));
|
|
2551
|
+
case 4:
|
|
2552
|
+
return S.suspend(() =>
|
|
2553
|
+
S.Struct({
|
|
2554
|
+
current_plan: S.optional(__S(152, __c19, 0)),
|
|
2555
|
+
plan_cost: S.optional(__S(145, __c18, 1)),
|
|
2556
|
+
pipeline_number: S.optional(S.Number),
|
|
2557
|
+
extra_pipelines_cost: S.optional(__S(145, __c18, 1)),
|
|
2558
|
+
current_plan_cache_usage: S.optional(S.Number),
|
|
2559
|
+
extra_cache_usage: S.optional(S.Number),
|
|
2560
|
+
extra_cache_cost: S.optional(__S(145, __c18, 1)),
|
|
2561
|
+
current_plan_waf_usage: S.optional(S.Number),
|
|
2562
|
+
extra_waf_usage: S.optional(S.Number),
|
|
2563
|
+
extra_waf_cost: S.optional(__S(145, __c18, 1)),
|
|
2564
|
+
waf_add_on: S.optional(__S(145, __c18, 1)),
|
|
2565
|
+
plans_usage_details: S.optional(__S(147, __c18, 3)),
|
|
2566
|
+
total_cost: S.optional(__S(145, __c18, 1)),
|
|
2567
|
+
}),
|
|
2568
|
+
).annotate({ identifier: "GetBillingResponse" });
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
function __c19(j: number): any {
|
|
2572
|
+
switch (j) {
|
|
2573
|
+
case 0:
|
|
2574
|
+
return S.suspend(() =>
|
|
2575
|
+
S.Struct({
|
|
2576
|
+
plan_name: S.optional(S.String),
|
|
2577
|
+
package_gb: S.optional(S.Number),
|
|
2578
|
+
pipeline_limit: S.optional(S.Number),
|
|
2579
|
+
waf_requests: S.optional(S.Number),
|
|
2580
|
+
backend_limit: S.optional(S.Number),
|
|
2581
|
+
wildcard_domain: S.optional(S.Boolean),
|
|
2582
|
+
}),
|
|
2583
|
+
).annotate({ identifier: "PlanDetails" });
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
function __c20(j: number): any {
|
|
2587
|
+
switch (j) {
|
|
2588
|
+
case 0:
|
|
2589
|
+
return S.suspend(() =>
|
|
2590
|
+
S.Struct({
|
|
2591
|
+
cache_stage_id: S.String.pipe(T.Label()),
|
|
2592
|
+
}).pipe(
|
|
2593
|
+
T.Http({
|
|
2594
|
+
method: "GET",
|
|
2595
|
+
uri: "/edge-services/v1beta1/cache-stages/{cache_stage_id}",
|
|
2596
|
+
code: 200,
|
|
2597
|
+
baseUrl: "https://api.scaleway.com",
|
|
2598
|
+
}),
|
|
2599
|
+
),
|
|
2600
|
+
).annotate({ identifier: "GetCacheStageRequest" });
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
function __c21(j: number): any {
|
|
2604
|
+
switch (j) {
|
|
2605
|
+
case 0:
|
|
2606
|
+
return S.suspend(() =>
|
|
2607
|
+
S.Struct({
|
|
2608
|
+
project_id: S.String.pipe(T.Label()),
|
|
2609
|
+
}).pipe(
|
|
2610
|
+
T.Http({
|
|
2611
|
+
method: "GET",
|
|
2612
|
+
uri: "/edge-services/v1beta1/current-plan/{project_id}",
|
|
2613
|
+
code: 200,
|
|
2614
|
+
baseUrl: "https://api.scaleway.com",
|
|
2615
|
+
}),
|
|
2616
|
+
),
|
|
2617
|
+
).annotate({ identifier: "GetCurrentPlanRequest" });
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
function __c22(j: number): any {
|
|
2621
|
+
switch (j) {
|
|
2622
|
+
case 0:
|
|
2623
|
+
return S.suspend(() =>
|
|
2624
|
+
S.Struct({
|
|
2625
|
+
plan_name: S.optional(S.String),
|
|
2626
|
+
}),
|
|
2627
|
+
).annotate({ identifier: "Plan" });
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
function __c23(j: number): any {
|
|
2631
|
+
switch (j) {
|
|
2632
|
+
case 0:
|
|
2633
|
+
return S.suspend(() =>
|
|
2634
|
+
S.Struct({
|
|
2635
|
+
dns_stage_id: S.String.pipe(T.Label()),
|
|
2636
|
+
}).pipe(
|
|
2637
|
+
T.Http({
|
|
2638
|
+
method: "GET",
|
|
2639
|
+
uri: "/edge-services/v1beta1/dns-stages/{dns_stage_id}",
|
|
2640
|
+
code: 200,
|
|
2641
|
+
baseUrl: "https://api.scaleway.com",
|
|
2642
|
+
}),
|
|
2643
|
+
),
|
|
2644
|
+
).annotate({ identifier: "GetDNSStageRequest" });
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
function __c24(j: number): any {
|
|
2648
|
+
switch (j) {
|
|
2649
|
+
case 0:
|
|
2650
|
+
return S.suspend(() =>
|
|
2651
|
+
S.Struct({
|
|
2652
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2653
|
+
}).pipe(
|
|
2654
|
+
T.Http({
|
|
2655
|
+
method: "GET",
|
|
2656
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}",
|
|
2657
|
+
code: 200,
|
|
2658
|
+
baseUrl: "https://api.scaleway.com",
|
|
2659
|
+
}),
|
|
2660
|
+
),
|
|
2661
|
+
).annotate({ identifier: "GetPipelineRequest" });
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
function __c25(j: number): any {
|
|
2665
|
+
switch (j) {
|
|
2666
|
+
case 0:
|
|
2667
|
+
return S.suspend(() =>
|
|
2668
|
+
S.Struct({
|
|
2669
|
+
purge_request_id: S.String.pipe(T.Label()),
|
|
2670
|
+
}).pipe(
|
|
2671
|
+
T.Http({
|
|
2672
|
+
method: "GET",
|
|
2673
|
+
uri: "/edge-services/v1beta1/purge-requests/{purge_request_id}",
|
|
2674
|
+
code: 200,
|
|
2675
|
+
baseUrl: "https://api.scaleway.com",
|
|
2676
|
+
}),
|
|
2677
|
+
),
|
|
2678
|
+
).annotate({ identifier: "GetPurgeRequestRequest" });
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
function __c26(j: number): any {
|
|
2682
|
+
switch (j) {
|
|
2683
|
+
case 0:
|
|
2684
|
+
return S.suspend(() =>
|
|
2685
|
+
S.Struct({
|
|
2686
|
+
route_stage_id: S.String.pipe(T.Label()),
|
|
2687
|
+
}).pipe(
|
|
2688
|
+
T.Http({
|
|
2689
|
+
method: "GET",
|
|
2690
|
+
uri: "/edge-services/v1beta1/route-stages/{route_stage_id}",
|
|
2691
|
+
code: 200,
|
|
2692
|
+
baseUrl: "https://api.scaleway.com",
|
|
2693
|
+
}),
|
|
2694
|
+
),
|
|
2695
|
+
).annotate({ identifier: "GetRouteStageRequest" });
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
function __c27(j: number): any {
|
|
2699
|
+
switch (j) {
|
|
2700
|
+
case 0:
|
|
2701
|
+
return S.suspend(() =>
|
|
2702
|
+
S.Struct({
|
|
2703
|
+
tls_stage_id: S.String.pipe(T.Label()),
|
|
2704
|
+
}).pipe(
|
|
2705
|
+
T.Http({
|
|
2706
|
+
method: "GET",
|
|
2707
|
+
uri: "/edge-services/v1beta1/tls-stages/{tls_stage_id}",
|
|
2708
|
+
code: 200,
|
|
2709
|
+
baseUrl: "https://api.scaleway.com",
|
|
2710
|
+
}),
|
|
2711
|
+
),
|
|
2712
|
+
).annotate({ identifier: "GetTLSStageRequest" });
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
function __c28(j: number): any {
|
|
2716
|
+
switch (j) {
|
|
2717
|
+
case 0:
|
|
2718
|
+
return S.suspend(() =>
|
|
2719
|
+
S.Struct({
|
|
2720
|
+
vpc_endpoint_id: S.String.pipe(T.Label()),
|
|
2721
|
+
}).pipe(
|
|
2722
|
+
T.Http({
|
|
2723
|
+
method: "GET",
|
|
2724
|
+
uri: "/edge-services/v1beta1/vpc-endpoints/{vpc_endpoint_id}",
|
|
2725
|
+
code: 200,
|
|
2726
|
+
baseUrl: "https://api.scaleway.com",
|
|
2727
|
+
}),
|
|
2728
|
+
),
|
|
2729
|
+
).annotate({ identifier: "GetVPCEndpointRequest" });
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
function __c29(j: number): any {
|
|
2733
|
+
switch (j) {
|
|
2734
|
+
case 0:
|
|
2735
|
+
return S.suspend(() =>
|
|
2736
|
+
S.Struct({
|
|
2737
|
+
waf_stage_id: S.String.pipe(T.Label()),
|
|
2738
|
+
}).pipe(
|
|
2739
|
+
T.Http({
|
|
2740
|
+
method: "GET",
|
|
2741
|
+
uri: "/edge-services/v1beta1/waf-stages/{waf_stage_id}",
|
|
2742
|
+
code: 200,
|
|
2743
|
+
baseUrl: "https://api.scaleway.com",
|
|
2744
|
+
}),
|
|
2745
|
+
),
|
|
2746
|
+
).annotate({ identifier: "GetWafStageRequest" });
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
function __c30(j: number): any {
|
|
2750
|
+
switch (j) {
|
|
2751
|
+
case 0:
|
|
2752
|
+
return S.suspend(() =>
|
|
2753
|
+
S.Struct({
|
|
2754
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2755
|
+
fqdns: S.optional(S.NullOr(__S(264, __c33, 0))),
|
|
2756
|
+
tls_stage_id: S.optional(S.NullOr(S.String)),
|
|
2757
|
+
cache_stage_id: S.optional(S.NullOr(S.String)),
|
|
2758
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
2759
|
+
wildcard_domain: S.optional(S.NullOr(S.Boolean)),
|
|
2760
|
+
}).pipe(
|
|
2761
|
+
T.Http({
|
|
2762
|
+
method: "POST",
|
|
2763
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/dns-stages",
|
|
2764
|
+
code: 200,
|
|
2765
|
+
baseUrl: "https://api.scaleway.com",
|
|
2766
|
+
}),
|
|
2767
|
+
),
|
|
2768
|
+
).annotate({ identifier: "CreateDNSStageRequest" });
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
function __c31(j: number): any {
|
|
2772
|
+
switch (j) {
|
|
2773
|
+
case 0:
|
|
2774
|
+
return S.Array(S.String);
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
function __c32(j: number): any {
|
|
2778
|
+
switch (j) {
|
|
2779
|
+
case 0:
|
|
2780
|
+
return S.suspend(() =>
|
|
2781
|
+
S.Struct({
|
|
2782
|
+
id: S.optional(S.String),
|
|
2783
|
+
default_fqdn: S.optional(S.String),
|
|
2784
|
+
fqdns: S.optional(__S(248, __c31, 0)),
|
|
2785
|
+
type: S.optional(S.String),
|
|
2786
|
+
pipeline_id: S.optional(S.String),
|
|
2787
|
+
status: S.optional(S.String),
|
|
2788
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
2789
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
2790
|
+
tls_stage_id: S.optional(S.NullOr(S.String)),
|
|
2791
|
+
cache_stage_id: S.optional(S.NullOr(S.String)),
|
|
2792
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
2793
|
+
wildcard_domain: S.optional(S.Boolean),
|
|
2794
|
+
}),
|
|
2795
|
+
).annotate({ identifier: "DNSStage" });
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
function __c33(j: number): any {
|
|
2799
|
+
switch (j) {
|
|
2800
|
+
case 0:
|
|
2801
|
+
return S.Array(S.Unknown);
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
function __c34(j: number): any {
|
|
2805
|
+
switch (j) {
|
|
2806
|
+
case 0:
|
|
2807
|
+
return S.suspend(() =>
|
|
2808
|
+
S.Struct({
|
|
2809
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2810
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
2811
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2812
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2813
|
+
bucket_name: S.optional(S.String.pipe(T.Query())),
|
|
2814
|
+
bucket_region: S.optional(S.String.pipe(T.Query())),
|
|
2815
|
+
lb_id: S.optional(S.String.pipe(T.Query())),
|
|
2816
|
+
}).pipe(
|
|
2817
|
+
T.Http({
|
|
2818
|
+
method: "GET",
|
|
2819
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/backend-stages",
|
|
2820
|
+
code: 200,
|
|
2821
|
+
baseUrl: "https://api.scaleway.com",
|
|
2822
|
+
}),
|
|
2823
|
+
),
|
|
2824
|
+
).annotate({ identifier: "ListBackendStagesRequest" });
|
|
2825
|
+
case 1:
|
|
2826
|
+
return S.Array(__S(38, __c4, 6));
|
|
2827
|
+
case 2:
|
|
2828
|
+
return S.suspend(() =>
|
|
2829
|
+
S.Struct({
|
|
2830
|
+
stages: __S(273, __c34, 1),
|
|
2831
|
+
total_count: S.optional(S.Number),
|
|
2832
|
+
}),
|
|
2833
|
+
).annotate({ identifier: "ListBackendStagesResponse" });
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
function __c35(j: number): any {
|
|
2837
|
+
switch (j) {
|
|
2838
|
+
case 0:
|
|
2839
|
+
return S.suspend(() =>
|
|
2840
|
+
S.Struct({
|
|
2841
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2842
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
2843
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2844
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2845
|
+
}).pipe(
|
|
2846
|
+
T.Http({
|
|
2847
|
+
method: "GET",
|
|
2848
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/cache-stages",
|
|
2849
|
+
code: 200,
|
|
2850
|
+
baseUrl: "https://api.scaleway.com",
|
|
2851
|
+
}),
|
|
2852
|
+
),
|
|
2853
|
+
).annotate({ identifier: "ListCacheStagesRequest" });
|
|
2854
|
+
case 1:
|
|
2855
|
+
return S.Array(__S(136, __c17, 0));
|
|
2856
|
+
case 2:
|
|
2857
|
+
return S.suspend(() =>
|
|
2858
|
+
S.Struct({
|
|
2859
|
+
stages: __S(281, __c35, 1),
|
|
2860
|
+
total_count: S.optional(S.Number),
|
|
2861
|
+
}),
|
|
2862
|
+
).annotate({ identifier: "ListCacheStagesResponse" });
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
function __c36(j: number): any {
|
|
2866
|
+
switch (j) {
|
|
2867
|
+
case 0:
|
|
2868
|
+
return S.suspend(() =>
|
|
2869
|
+
S.Struct({
|
|
2870
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2871
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
2872
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2873
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2874
|
+
fqdn: S.optional(S.String.pipe(T.Query())),
|
|
2875
|
+
}).pipe(
|
|
2876
|
+
T.Http({
|
|
2877
|
+
method: "GET",
|
|
2878
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/dns-stages",
|
|
2879
|
+
code: 200,
|
|
2880
|
+
baseUrl: "https://api.scaleway.com",
|
|
2881
|
+
}),
|
|
2882
|
+
),
|
|
2883
|
+
).annotate({ identifier: "ListDNSStagesRequest" });
|
|
2884
|
+
case 1:
|
|
2885
|
+
return S.Array(__S(256, __c32, 0));
|
|
2886
|
+
case 2:
|
|
2887
|
+
return S.suspend(() =>
|
|
2888
|
+
S.Struct({
|
|
2889
|
+
stages: __S(289, __c36, 1),
|
|
2890
|
+
total_count: S.optional(S.Number),
|
|
2891
|
+
}),
|
|
2892
|
+
).annotate({ identifier: "ListDNSStagesResponse" });
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
function __c37(j: number): any {
|
|
2896
|
+
switch (j) {
|
|
2897
|
+
case 0:
|
|
2898
|
+
return S.suspend(() =>
|
|
2899
|
+
S.Struct({
|
|
2900
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
2901
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2902
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2903
|
+
}).pipe(
|
|
2904
|
+
T.Http({
|
|
2905
|
+
method: "GET",
|
|
2906
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/head-stages",
|
|
2907
|
+
code: 200,
|
|
2908
|
+
baseUrl: "https://api.scaleway.com",
|
|
2909
|
+
}),
|
|
2910
|
+
),
|
|
2911
|
+
).annotate({ identifier: "ListHeadStagesRequest" });
|
|
2912
|
+
case 1:
|
|
2913
|
+
return S.Array(__S(304, __c38, 0));
|
|
2914
|
+
case 2:
|
|
2915
|
+
return S.suspend(() =>
|
|
2916
|
+
S.Struct({
|
|
2917
|
+
head_stages: __S(297, __c37, 1),
|
|
2918
|
+
total_count: S.optional(S.Number),
|
|
2919
|
+
}),
|
|
2920
|
+
).annotate({ identifier: "ListHeadStagesResponse" });
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
function __c38(j: number): any {
|
|
2924
|
+
switch (j) {
|
|
2925
|
+
case 0:
|
|
2926
|
+
return S.suspend(() =>
|
|
2927
|
+
S.Struct({
|
|
2928
|
+
dns_stage_id: S.optional(S.NullOr(S.String)),
|
|
2929
|
+
}),
|
|
2930
|
+
).annotate({ identifier: "ListHeadStagesResponseHeadStage" });
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
function __c39(j: number): any {
|
|
2934
|
+
switch (j) {
|
|
2935
|
+
case 0:
|
|
2936
|
+
return S.suspend(() =>
|
|
2937
|
+
S.Struct({}).pipe(
|
|
2938
|
+
T.Http({
|
|
2939
|
+
method: "GET",
|
|
2940
|
+
uri: "/edge-services/v1beta1/nodes",
|
|
2941
|
+
code: 200,
|
|
2942
|
+
baseUrl: "https://api.scaleway.com",
|
|
2943
|
+
}),
|
|
2944
|
+
),
|
|
2945
|
+
).annotate({ identifier: "ListNodesRequest" });
|
|
2946
|
+
case 1:
|
|
2947
|
+
return S.suspend(() =>
|
|
2948
|
+
S.Struct({
|
|
2949
|
+
ip: S.optional(S.String),
|
|
2950
|
+
}),
|
|
2951
|
+
).annotate({ identifier: "Node" });
|
|
2952
|
+
case 2:
|
|
2953
|
+
return S.Array(__S(313, __c39, 1));
|
|
2954
|
+
case 3:
|
|
2955
|
+
return S.suspend(() =>
|
|
2956
|
+
S.Struct({
|
|
2957
|
+
nodes: S.optional(__S(314, __c39, 2)),
|
|
2958
|
+
total_count: S.optional(S.Number),
|
|
2959
|
+
}),
|
|
2960
|
+
).annotate({ identifier: "ListNodesResponse" });
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
function __c40(j: number): any {
|
|
2964
|
+
switch (j) {
|
|
2965
|
+
case 0:
|
|
2966
|
+
return S.suspend(() =>
|
|
2967
|
+
S.Struct({
|
|
2968
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
2969
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
2970
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
2971
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
2972
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
2973
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
2974
|
+
has_backend_stage_lb: S.optional(S.Boolean.pipe(T.Query())),
|
|
2975
|
+
}).pipe(
|
|
2976
|
+
T.Http({
|
|
2977
|
+
method: "GET",
|
|
2978
|
+
uri: "/edge-services/v1beta1/pipelines",
|
|
2979
|
+
code: 200,
|
|
2980
|
+
baseUrl: "https://api.scaleway.com",
|
|
2981
|
+
}),
|
|
2982
|
+
),
|
|
2983
|
+
).annotate({ identifier: "ListPipelinesRequest" });
|
|
2984
|
+
case 1:
|
|
2985
|
+
return S.Array(__S(370, __c46, 2));
|
|
2986
|
+
case 2:
|
|
2987
|
+
return S.suspend(() =>
|
|
2988
|
+
S.Struct({
|
|
2989
|
+
pipelines: __S(321, __c40, 1),
|
|
2990
|
+
total_count: S.optional(S.Number),
|
|
2991
|
+
}),
|
|
2992
|
+
).annotate({ identifier: "ListPipelinesResponse" });
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
function __c41(j: number): any {
|
|
2996
|
+
switch (j) {
|
|
2997
|
+
case 0:
|
|
2998
|
+
return S.suspend(() =>
|
|
2999
|
+
S.Struct({}).pipe(
|
|
3000
|
+
T.Http({
|
|
3001
|
+
method: "GET",
|
|
3002
|
+
uri: "/edge-services/v1beta1/plans",
|
|
3003
|
+
code: 200,
|
|
3004
|
+
baseUrl: "https://api.scaleway.com",
|
|
3005
|
+
}),
|
|
3006
|
+
),
|
|
3007
|
+
).annotate({ identifier: "ListPlansRequest" });
|
|
3008
|
+
case 1:
|
|
3009
|
+
return S.Array(__S(152, __c19, 0));
|
|
3010
|
+
case 2:
|
|
3011
|
+
return S.suspend(() =>
|
|
3012
|
+
S.Struct({
|
|
3013
|
+
total_count: S.optional(S.Number),
|
|
3014
|
+
plans: S.optional(__S(329, __c41, 1)),
|
|
3015
|
+
}),
|
|
3016
|
+
).annotate({ identifier: "ListPlansResponse" });
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
function __c42(j: number): any {
|
|
3020
|
+
switch (j) {
|
|
3021
|
+
case 0:
|
|
3022
|
+
return S.suspend(() =>
|
|
3023
|
+
S.Struct({
|
|
3024
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
3025
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3026
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
3027
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
3028
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
3029
|
+
pipeline_id: S.optional(S.String.pipe(T.Query())),
|
|
3030
|
+
}).pipe(
|
|
3031
|
+
T.Http({
|
|
3032
|
+
method: "GET",
|
|
3033
|
+
uri: "/edge-services/v1beta1/purge-requests",
|
|
3034
|
+
code: 200,
|
|
3035
|
+
baseUrl: "https://api.scaleway.com",
|
|
3036
|
+
}),
|
|
3037
|
+
),
|
|
3038
|
+
).annotate({ identifier: "ListPurgeRequestsRequest" });
|
|
3039
|
+
case 1:
|
|
3040
|
+
return S.Array(__S(472, __c59, 0));
|
|
3041
|
+
case 2:
|
|
3042
|
+
return S.suspend(() =>
|
|
3043
|
+
S.Struct({
|
|
3044
|
+
purge_requests: __S(337, __c42, 1),
|
|
3045
|
+
total_count: S.optional(S.Number),
|
|
3046
|
+
}),
|
|
3047
|
+
).annotate({ identifier: "ListPurgeRequestsResponse" });
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
function __c43(j: number): any {
|
|
3051
|
+
switch (j) {
|
|
3052
|
+
case 0:
|
|
3053
|
+
return S.suspend(() =>
|
|
3054
|
+
S.Struct({
|
|
3055
|
+
route_stage_id: S.String.pipe(T.Label()),
|
|
3056
|
+
}).pipe(
|
|
3057
|
+
T.Http({
|
|
3058
|
+
method: "GET",
|
|
3059
|
+
uri: "/edge-services/v1beta1/route-stages/{route_stage_id}/route-rules",
|
|
3060
|
+
code: 200,
|
|
3061
|
+
baseUrl: "https://api.scaleway.com",
|
|
3062
|
+
}),
|
|
3063
|
+
),
|
|
3064
|
+
).annotate({ identifier: "ListRouteRulesRequest" });
|
|
3065
|
+
case 1:
|
|
3066
|
+
return S.suspend(() =>
|
|
3067
|
+
S.Struct({
|
|
3068
|
+
route_rules: S.optional(__S(13, __c1, 5)),
|
|
3069
|
+
total_count: S.optional(S.Number),
|
|
3070
|
+
}),
|
|
3071
|
+
).annotate({ identifier: "ListRouteRulesResponse" });
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
function __c44(j: number): any {
|
|
3075
|
+
switch (j) {
|
|
3076
|
+
case 0:
|
|
3077
|
+
return S.suspend(() =>
|
|
3078
|
+
S.Struct({
|
|
3079
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3080
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
3081
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3082
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
3083
|
+
}).pipe(
|
|
3084
|
+
T.Http({
|
|
3085
|
+
method: "GET",
|
|
3086
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/route-stages",
|
|
3087
|
+
code: 200,
|
|
3088
|
+
baseUrl: "https://api.scaleway.com",
|
|
3089
|
+
}),
|
|
3090
|
+
),
|
|
3091
|
+
).annotate({ identifier: "ListRouteStagesRequest" });
|
|
3092
|
+
case 1:
|
|
3093
|
+
return S.Array(__S(520, __c65, 0));
|
|
3094
|
+
case 2:
|
|
3095
|
+
return S.suspend(() =>
|
|
3096
|
+
S.Struct({
|
|
3097
|
+
stages: __S(353, __c44, 1),
|
|
3098
|
+
total_count: S.optional(S.Number),
|
|
3099
|
+
}),
|
|
3100
|
+
).annotate({ identifier: "ListRouteStagesResponse" });
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
function __c45(j: number): any {
|
|
3104
|
+
switch (j) {
|
|
3105
|
+
case 0:
|
|
3106
|
+
return S.suspend(() =>
|
|
3107
|
+
S.Struct({
|
|
3108
|
+
project_id: S.String,
|
|
3109
|
+
name: S.String,
|
|
3110
|
+
description: S.String,
|
|
3111
|
+
}).pipe(
|
|
3112
|
+
T.Http({
|
|
3113
|
+
method: "POST",
|
|
3114
|
+
uri: "/edge-services/v1beta1/pipelines",
|
|
3115
|
+
code: 200,
|
|
3116
|
+
baseUrl: "https://api.scaleway.com",
|
|
3117
|
+
}),
|
|
3118
|
+
),
|
|
3119
|
+
).annotate({ identifier: "CreatePipelineRequest" });
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
function __c46(j: number): any {
|
|
3123
|
+
switch (j) {
|
|
3124
|
+
case 0:
|
|
3125
|
+
return S.suspend(() =>
|
|
3126
|
+
S.Struct({
|
|
3127
|
+
stage: S.optional(S.String),
|
|
3128
|
+
code: S.optional(S.String),
|
|
3129
|
+
severity: S.optional(S.String),
|
|
3130
|
+
message: S.optional(S.String),
|
|
3131
|
+
type: S.optional(S.String),
|
|
3132
|
+
}),
|
|
3133
|
+
).annotate({ identifier: "PipelineError" });
|
|
3134
|
+
case 1:
|
|
3135
|
+
return S.Array(__S(368, __c46, 0));
|
|
3136
|
+
case 2:
|
|
3137
|
+
return S.suspend(() =>
|
|
3138
|
+
S.Struct({
|
|
3139
|
+
id: S.optional(S.String),
|
|
3140
|
+
name: S.optional(S.String),
|
|
3141
|
+
description: S.optional(S.String),
|
|
3142
|
+
status: S.optional(S.String),
|
|
3143
|
+
errors: S.optional(__S(369, __c46, 1)),
|
|
3144
|
+
project_id: S.optional(S.String),
|
|
3145
|
+
organization_id: S.optional(S.String),
|
|
3146
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
3147
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
3148
|
+
}),
|
|
3149
|
+
).annotate({ identifier: "Pipeline" });
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
function __c47(j: number): any {
|
|
3153
|
+
switch (j) {
|
|
3154
|
+
case 0:
|
|
3155
|
+
return S.suspend(() =>
|
|
3156
|
+
S.Struct({
|
|
3157
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3158
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
3159
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3160
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
3161
|
+
secret_id: S.optional(S.String.pipe(T.Query())),
|
|
3162
|
+
secret_region: S.optional(S.String.pipe(T.Query())),
|
|
3163
|
+
}).pipe(
|
|
3164
|
+
T.Http({
|
|
3165
|
+
method: "GET",
|
|
3166
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/tls-stages",
|
|
3167
|
+
code: 200,
|
|
3168
|
+
baseUrl: "https://api.scaleway.com",
|
|
3169
|
+
}),
|
|
3170
|
+
),
|
|
3171
|
+
).annotate({ identifier: "ListTLSStagesRequest" });
|
|
3172
|
+
case 1:
|
|
3173
|
+
return S.Array(__S(538, __c67, 2));
|
|
3174
|
+
case 2:
|
|
3175
|
+
return S.suspend(() =>
|
|
3176
|
+
S.Struct({
|
|
3177
|
+
stages: __S(377, __c47, 1),
|
|
3178
|
+
total_count: S.optional(S.Number),
|
|
3179
|
+
}),
|
|
3180
|
+
).annotate({ identifier: "ListTLSStagesResponse" });
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
function __c48(j: number): any {
|
|
3184
|
+
switch (j) {
|
|
3185
|
+
case 0:
|
|
3186
|
+
return S.suspend(() =>
|
|
3187
|
+
S.Struct({
|
|
3188
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
3189
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
3190
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3191
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
3192
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
3193
|
+
}).pipe(
|
|
3194
|
+
T.Http({
|
|
3195
|
+
method: "GET",
|
|
3196
|
+
uri: "/edge-services/v1beta1/vpc-endpoints",
|
|
3197
|
+
code: 200,
|
|
3198
|
+
baseUrl: "https://api.scaleway.com",
|
|
3199
|
+
}),
|
|
3200
|
+
),
|
|
3201
|
+
).annotate({ identifier: "ListVPCEndpointsRequest" });
|
|
3202
|
+
case 1:
|
|
3203
|
+
return S.suspend(() =>
|
|
3204
|
+
S.Struct({
|
|
3205
|
+
vpc_endpoints: __S(392, __c49, 0),
|
|
3206
|
+
total_count: S.optional(S.Number),
|
|
3207
|
+
}),
|
|
3208
|
+
).annotate({ identifier: "ListVPCEndpointsResponse" });
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
function __c49(j: number): any {
|
|
3212
|
+
switch (j) {
|
|
3213
|
+
case 0:
|
|
3214
|
+
return S.Array(__S(552, __c69, 0));
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
function __c50(j: number): any {
|
|
3218
|
+
switch (j) {
|
|
3219
|
+
case 0:
|
|
3220
|
+
return S.suspend(() =>
|
|
3221
|
+
S.Struct({
|
|
3222
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3223
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
3224
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
3225
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
3226
|
+
}).pipe(
|
|
3227
|
+
T.Http({
|
|
3228
|
+
method: "GET",
|
|
3229
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/waf-stages",
|
|
3230
|
+
code: 200,
|
|
3231
|
+
baseUrl: "https://api.scaleway.com",
|
|
3232
|
+
}),
|
|
3233
|
+
),
|
|
3234
|
+
).annotate({ identifier: "ListWafStagesRequest" });
|
|
3235
|
+
case 1:
|
|
3236
|
+
return S.Array(__S(570, __c71, 2));
|
|
3237
|
+
case 2:
|
|
3238
|
+
return S.suspend(() =>
|
|
3239
|
+
S.Struct({
|
|
3240
|
+
stages: __S(401, __c50, 1),
|
|
3241
|
+
total_count: S.optional(S.Number),
|
|
3242
|
+
}),
|
|
3243
|
+
).annotate({ identifier: "ListWafStagesResponse" });
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
function __c51(j: number): any {
|
|
3247
|
+
switch (j) {
|
|
3248
|
+
case 0:
|
|
3249
|
+
return S.suspend(() =>
|
|
3250
|
+
S.Struct({
|
|
3251
|
+
project_id: S.optional(S.String),
|
|
3252
|
+
plan_name: S.optional(S.String),
|
|
3253
|
+
}).pipe(
|
|
3254
|
+
T.Http({
|
|
3255
|
+
method: "PATCH",
|
|
3256
|
+
uri: "/edge-services/v1beta1/current-plan",
|
|
3257
|
+
code: 200,
|
|
3258
|
+
baseUrl: "https://api.scaleway.com",
|
|
3259
|
+
}),
|
|
3260
|
+
),
|
|
3261
|
+
).annotate({ identifier: "SelectPlanRequest" });
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
function __c52(j: number): any {
|
|
3265
|
+
switch (j) {
|
|
3266
|
+
case 0:
|
|
3267
|
+
return S.suspend(() =>
|
|
3268
|
+
S.Struct({
|
|
3269
|
+
new_stage_id: S.optional(S.String),
|
|
3270
|
+
}),
|
|
3271
|
+
).annotate({ identifier: "SetHeadStageRequestAddNewHeadStage" });
|
|
3272
|
+
case 1:
|
|
3273
|
+
return S.suspend(() =>
|
|
3274
|
+
S.Struct({
|
|
3275
|
+
remove_stage_id: S.optional(S.String),
|
|
3276
|
+
}),
|
|
3277
|
+
).annotate({ identifier: "SetHeadStageRequestRemoveHeadStage" });
|
|
3278
|
+
case 2:
|
|
3279
|
+
return S.suspend(() =>
|
|
3280
|
+
S.Struct({
|
|
3281
|
+
new_stage_id: S.optional(S.String),
|
|
3282
|
+
current_stage_id: S.optional(S.String),
|
|
3283
|
+
}),
|
|
3284
|
+
).annotate({ identifier: "SetHeadStageRequestSwapHeadStage" });
|
|
3285
|
+
case 3:
|
|
3286
|
+
return S.suspend(() =>
|
|
3287
|
+
S.Struct({
|
|
3288
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3289
|
+
add_new_head_stage: S.optional(S.NullOr(__S(416, __c52, 0))),
|
|
3290
|
+
remove_head_stage: S.optional(S.NullOr(__S(417, __c52, 1))),
|
|
3291
|
+
swap_head_stage: S.optional(S.NullOr(__S(418, __c52, 2))),
|
|
3292
|
+
}).pipe(
|
|
3293
|
+
T.Http({
|
|
3294
|
+
method: "POST",
|
|
3295
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/set-head-stage",
|
|
3296
|
+
code: 200,
|
|
3297
|
+
baseUrl: "https://api.scaleway.com",
|
|
3298
|
+
}),
|
|
3299
|
+
),
|
|
3300
|
+
).annotate({ identifier: "SetHeadStageRequest" });
|
|
3301
|
+
case 4:
|
|
3302
|
+
return S.suspend(() =>
|
|
3303
|
+
S.Struct({
|
|
3304
|
+
head_stage: S.optional(__S(304, __c38, 0)),
|
|
3305
|
+
}),
|
|
3306
|
+
).annotate({ identifier: "HeadStageResponse" });
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
function __c53(j: number): any {
|
|
3310
|
+
switch (j) {
|
|
3311
|
+
case 0:
|
|
3312
|
+
return S.suspend(() =>
|
|
3313
|
+
S.Struct({
|
|
3314
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3315
|
+
vpc_endpoint_ids: S.optional(__S(248, __c31, 0)),
|
|
3316
|
+
}).pipe(
|
|
3317
|
+
T.Http({
|
|
3318
|
+
method: "PUT",
|
|
3319
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/vpc-endpoints",
|
|
3320
|
+
code: 200,
|
|
3321
|
+
baseUrl: "https://api.scaleway.com",
|
|
3322
|
+
}),
|
|
3323
|
+
),
|
|
3324
|
+
).annotate({ identifier: "SetPipelineVPCEndpointsRequest" });
|
|
3325
|
+
case 1:
|
|
3326
|
+
return S.suspend(() =>
|
|
3327
|
+
S.Struct({
|
|
3328
|
+
pipeline_id: S.optional(S.String),
|
|
3329
|
+
vpc_endpoints: S.optional(__S(392, __c49, 0)),
|
|
3330
|
+
total_count: S.optional(S.Number),
|
|
3331
|
+
}),
|
|
3332
|
+
).annotate({ identifier: "SetPipelineVPCEndpointsResponse" });
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
function __c54(j: number): any {
|
|
3336
|
+
switch (j) {
|
|
3337
|
+
case 0:
|
|
3338
|
+
return S.suspend(() =>
|
|
3339
|
+
S.Struct({
|
|
3340
|
+
route_stage_id: S.String.pipe(T.Label()),
|
|
3341
|
+
route_rules: S.optional(__S(17, __c2, 1)),
|
|
3342
|
+
}).pipe(
|
|
3343
|
+
T.Http({
|
|
3344
|
+
method: "PUT",
|
|
3345
|
+
uri: "/edge-services/v1beta1/route-stages/{route_stage_id}/route-rules",
|
|
3346
|
+
code: 200,
|
|
3347
|
+
baseUrl: "https://api.scaleway.com",
|
|
3348
|
+
}),
|
|
3349
|
+
),
|
|
3350
|
+
).annotate({ identifier: "SetRouteRulesRequest" });
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
function __c55(j: number): any {
|
|
3354
|
+
switch (j) {
|
|
3355
|
+
case 0:
|
|
3356
|
+
return S.suspend(() =>
|
|
3357
|
+
S.Struct({
|
|
3358
|
+
backend_stage_id: S.String.pipe(T.Label()),
|
|
3359
|
+
scaleway_s3: S.optional(S.NullOr(__S(32, __c4, 0))),
|
|
3360
|
+
scaleway_lb: S.optional(S.NullOr(__S(35, __c4, 3))),
|
|
3361
|
+
scaleway_serverless_container: S.optional(S.NullOr(__S(36, __c4, 4))),
|
|
3362
|
+
scaleway_serverless_function: S.optional(S.NullOr(__S(37, __c4, 5))),
|
|
3363
|
+
pipeline_id: S.optional(S.String),
|
|
3364
|
+
}).pipe(
|
|
3365
|
+
T.Http({
|
|
3366
|
+
method: "PATCH",
|
|
3367
|
+
uri: "/edge-services/v1beta1/backend-stages/{backend_stage_id}",
|
|
3368
|
+
code: 200,
|
|
3369
|
+
baseUrl: "https://api.scaleway.com",
|
|
3370
|
+
}),
|
|
3371
|
+
),
|
|
3372
|
+
).annotate({ identifier: "UpdateBackendStageRequest" });
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
function __c56(j: number): any {
|
|
3376
|
+
switch (j) {
|
|
3377
|
+
case 0:
|
|
3378
|
+
return S.suspend(() =>
|
|
3379
|
+
S.Struct({
|
|
3380
|
+
cache_stage_id: S.String.pipe(T.Label()),
|
|
3381
|
+
fallback_ttl: S.optional(S.NullOr(S.String)),
|
|
3382
|
+
include_cookies: S.optional(S.NullOr(S.Boolean)),
|
|
3383
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3384
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
3385
|
+
route_stage_id: S.optional(S.NullOr(S.String)),
|
|
3386
|
+
}).pipe(
|
|
3387
|
+
T.Http({
|
|
3388
|
+
method: "PATCH",
|
|
3389
|
+
uri: "/edge-services/v1beta1/cache-stages/{cache_stage_id}",
|
|
3390
|
+
code: 200,
|
|
3391
|
+
baseUrl: "https://api.scaleway.com",
|
|
3392
|
+
}),
|
|
3393
|
+
),
|
|
3394
|
+
).annotate({ identifier: "UpdateCacheStageRequest" });
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
function __c57(j: number): any {
|
|
3398
|
+
switch (j) {
|
|
3399
|
+
case 0:
|
|
3400
|
+
return S.suspend(() =>
|
|
3401
|
+
S.Struct({
|
|
3402
|
+
dns_stage_id: S.String.pipe(T.Label()),
|
|
3403
|
+
fqdns: S.optional(S.NullOr(__S(264, __c33, 0))),
|
|
3404
|
+
tls_stage_id: S.optional(S.NullOr(S.String)),
|
|
3405
|
+
cache_stage_id: S.optional(S.NullOr(S.String)),
|
|
3406
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3407
|
+
wildcard_domain: S.optional(S.NullOr(S.Boolean)),
|
|
3408
|
+
}).pipe(
|
|
3409
|
+
T.Http({
|
|
3410
|
+
method: "PATCH",
|
|
3411
|
+
uri: "/edge-services/v1beta1/dns-stages/{dns_stage_id}",
|
|
3412
|
+
code: 200,
|
|
3413
|
+
baseUrl: "https://api.scaleway.com",
|
|
3414
|
+
}),
|
|
3415
|
+
),
|
|
3416
|
+
).annotate({ identifier: "UpdateDNSStageRequest" });
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
function __c58(j: number): any {
|
|
3420
|
+
switch (j) {
|
|
3421
|
+
case 0:
|
|
3422
|
+
return S.suspend(() =>
|
|
3423
|
+
S.Struct({
|
|
3424
|
+
pipeline_id: S.String,
|
|
3425
|
+
assets: S.optional(S.NullOr(__S(264, __c33, 0))),
|
|
3426
|
+
all: S.optional(S.NullOr(S.Boolean)),
|
|
3427
|
+
}).pipe(
|
|
3428
|
+
T.Http({
|
|
3429
|
+
method: "POST",
|
|
3430
|
+
uri: "/edge-services/v1beta1/purge-requests",
|
|
3431
|
+
code: 200,
|
|
3432
|
+
baseUrl: "https://api.scaleway.com",
|
|
3433
|
+
}),
|
|
3434
|
+
),
|
|
3435
|
+
).annotate({ identifier: "CreatePurgeRequestRequest" });
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
function __c59(j: number): any {
|
|
3439
|
+
switch (j) {
|
|
3440
|
+
case 0:
|
|
3441
|
+
return S.suspend(() =>
|
|
3442
|
+
S.Struct({
|
|
3443
|
+
id: S.optional(S.String),
|
|
3444
|
+
pipeline_id: S.optional(S.String),
|
|
3445
|
+
status: S.optional(S.String),
|
|
3446
|
+
assets: S.optional(S.NullOr(__S(264, __c33, 0))),
|
|
3447
|
+
all: S.optional(S.NullOr(S.Boolean)),
|
|
3448
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
3449
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
3450
|
+
}),
|
|
3451
|
+
).annotate({ identifier: "PurgeRequest" });
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
function __c60(j: number): any {
|
|
3455
|
+
switch (j) {
|
|
3456
|
+
case 0:
|
|
3457
|
+
return S.suspend(() =>
|
|
3458
|
+
S.Struct({
|
|
3459
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3460
|
+
name: S.optional(S.NullOr(S.String)),
|
|
3461
|
+
description: S.optional(S.NullOr(S.String)),
|
|
3462
|
+
}).pipe(
|
|
3463
|
+
T.Http({
|
|
3464
|
+
method: "PATCH",
|
|
3465
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}",
|
|
3466
|
+
code: 200,
|
|
3467
|
+
baseUrl: "https://api.scaleway.com",
|
|
3468
|
+
}),
|
|
3469
|
+
),
|
|
3470
|
+
).annotate({ identifier: "UpdatePipelineRequest" });
|
|
3471
|
+
}
|
|
3472
|
+
}
|
|
3473
|
+
function __c61(j: number): any {
|
|
3474
|
+
switch (j) {
|
|
3475
|
+
case 0:
|
|
3476
|
+
return S.suspend(() =>
|
|
3477
|
+
S.Struct({
|
|
3478
|
+
route_stage_id: S.String.pipe(T.Label()),
|
|
3479
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
3480
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3481
|
+
}).pipe(
|
|
3482
|
+
T.Http({
|
|
3483
|
+
method: "PATCH",
|
|
3484
|
+
uri: "/edge-services/v1beta1/route-stages/{route_stage_id}",
|
|
3485
|
+
code: 200,
|
|
3486
|
+
baseUrl: "https://api.scaleway.com",
|
|
3487
|
+
}),
|
|
3488
|
+
),
|
|
3489
|
+
).annotate({ identifier: "UpdateRouteStageRequest" });
|
|
3490
|
+
}
|
|
3491
|
+
}
|
|
3492
|
+
function __c62(j: number): any {
|
|
3493
|
+
switch (j) {
|
|
3494
|
+
case 0:
|
|
3495
|
+
return S.suspend(() =>
|
|
3496
|
+
S.Struct({
|
|
3497
|
+
tls_secrets: S.optional(__S(537, __c67, 1)),
|
|
3498
|
+
}),
|
|
3499
|
+
).annotate({ identifier: "TLSSecretsConfig" });
|
|
3500
|
+
case 1:
|
|
3501
|
+
return S.suspend(() =>
|
|
3502
|
+
S.Struct({
|
|
3503
|
+
tls_stage_id: S.String.pipe(T.Label()),
|
|
3504
|
+
tls_secrets_config: S.optional(__S(496, __c62, 0)),
|
|
3505
|
+
managed_certificate: S.optional(S.NullOr(S.Boolean)),
|
|
3506
|
+
cache_stage_id: S.optional(S.NullOr(S.String)),
|
|
3507
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3508
|
+
route_stage_id: S.optional(S.NullOr(S.String)),
|
|
3509
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
3510
|
+
}).pipe(
|
|
3511
|
+
T.Http({
|
|
3512
|
+
method: "PATCH",
|
|
3513
|
+
uri: "/edge-services/v1beta1/tls-stages/{tls_stage_id}",
|
|
3514
|
+
code: 200,
|
|
3515
|
+
baseUrl: "https://api.scaleway.com",
|
|
3516
|
+
}),
|
|
3517
|
+
),
|
|
3518
|
+
).annotate({ identifier: "UpdateTLSStageRequest" });
|
|
3519
|
+
}
|
|
3520
|
+
}
|
|
3521
|
+
function __c63(j: number): any {
|
|
3522
|
+
switch (j) {
|
|
3523
|
+
case 0:
|
|
3524
|
+
return S.suspend(() =>
|
|
3525
|
+
S.Struct({
|
|
3526
|
+
waf_stage_id: S.String.pipe(T.Label()),
|
|
3527
|
+
mode: S.optional(S.String),
|
|
3528
|
+
paranoia_level: S.optional(S.NullOr(S.Number)),
|
|
3529
|
+
exclusion_rules: S.optional(__S(576, __c72, 0)),
|
|
3530
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3531
|
+
}).pipe(
|
|
3532
|
+
T.Http({
|
|
3533
|
+
method: "PATCH",
|
|
3534
|
+
uri: "/edge-services/v1beta1/waf-stages/{waf_stage_id}",
|
|
3535
|
+
code: 200,
|
|
3536
|
+
baseUrl: "https://api.scaleway.com",
|
|
3537
|
+
}),
|
|
3538
|
+
),
|
|
3539
|
+
).annotate({ identifier: "UpdateWafStageRequest" });
|
|
3540
|
+
}
|
|
3541
|
+
}
|
|
3542
|
+
function __c64(j: number): any {
|
|
3543
|
+
switch (j) {
|
|
3544
|
+
case 0:
|
|
3545
|
+
return S.suspend(() =>
|
|
3546
|
+
S.Struct({
|
|
3547
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3548
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
3549
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3550
|
+
}).pipe(
|
|
3551
|
+
T.Http({
|
|
3552
|
+
method: "POST",
|
|
3553
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/route-stages",
|
|
3554
|
+
code: 200,
|
|
3555
|
+
baseUrl: "https://api.scaleway.com",
|
|
3556
|
+
}),
|
|
3557
|
+
),
|
|
3558
|
+
).annotate({ identifier: "CreateRouteStageRequest" });
|
|
3559
|
+
}
|
|
3560
|
+
}
|
|
3561
|
+
function __c65(j: number): any {
|
|
3562
|
+
switch (j) {
|
|
3563
|
+
case 0:
|
|
3564
|
+
return S.suspend(() =>
|
|
3565
|
+
S.Struct({
|
|
3566
|
+
id: S.optional(S.String),
|
|
3567
|
+
pipeline_id: S.optional(S.String),
|
|
3568
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
3569
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3570
|
+
status: S.optional(S.String),
|
|
3571
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
3572
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
3573
|
+
}),
|
|
3574
|
+
).annotate({ identifier: "RouteStage" });
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
function __c66(j: number): any {
|
|
3578
|
+
switch (j) {
|
|
3579
|
+
case 0:
|
|
3580
|
+
return S.suspend(() =>
|
|
3581
|
+
S.Struct({
|
|
3582
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3583
|
+
secrets: S.optional(__S(537, __c67, 1)),
|
|
3584
|
+
managed_certificate: S.optional(S.NullOr(S.Boolean)),
|
|
3585
|
+
cache_stage_id: S.optional(S.NullOr(S.String)),
|
|
3586
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3587
|
+
route_stage_id: S.optional(S.NullOr(S.String)),
|
|
3588
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
3589
|
+
}).pipe(
|
|
3590
|
+
T.Http({
|
|
3591
|
+
method: "POST",
|
|
3592
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/tls-stages",
|
|
3593
|
+
code: 200,
|
|
3594
|
+
baseUrl: "https://api.scaleway.com",
|
|
3595
|
+
}),
|
|
3596
|
+
),
|
|
3597
|
+
).annotate({ identifier: "CreateTLSStageRequest" });
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
function __c67(j: number): any {
|
|
3601
|
+
switch (j) {
|
|
3602
|
+
case 0:
|
|
3603
|
+
return S.suspend(() =>
|
|
3604
|
+
S.Struct({
|
|
3605
|
+
secret_id: S.String,
|
|
3606
|
+
region: S.String,
|
|
3607
|
+
}),
|
|
3608
|
+
).annotate({ identifier: "TLSSecret" });
|
|
3609
|
+
case 1:
|
|
3610
|
+
return S.Array(__S(536, __c67, 0));
|
|
3611
|
+
case 2:
|
|
3612
|
+
return S.suspend(() =>
|
|
3613
|
+
S.Struct({
|
|
3614
|
+
id: S.optional(S.String),
|
|
3615
|
+
secrets: S.optional(__S(537, __c67, 1)),
|
|
3616
|
+
managed_certificate: S.optional(S.Boolean),
|
|
3617
|
+
pipeline_id: S.optional(S.String),
|
|
3618
|
+
certificate_expires_at: S.optional(S.NullOr(S.String)),
|
|
3619
|
+
status: S.optional(S.String),
|
|
3620
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
3621
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
3622
|
+
cache_stage_id: S.optional(S.NullOr(S.String)),
|
|
3623
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3624
|
+
waf_stage_id: S.optional(S.NullOr(S.String)),
|
|
3625
|
+
route_stage_id: S.optional(S.NullOr(S.String)),
|
|
3626
|
+
}),
|
|
3627
|
+
).annotate({ identifier: "TLSStage" });
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
function __c68(j: number): any {
|
|
3631
|
+
switch (j) {
|
|
3632
|
+
case 0:
|
|
3633
|
+
return S.suspend(() =>
|
|
3634
|
+
S.Struct({
|
|
3635
|
+
project_id: S.optional(S.String),
|
|
3636
|
+
region: S.optional(S.String),
|
|
3637
|
+
private_network_id: S.String,
|
|
3638
|
+
}).pipe(
|
|
3639
|
+
T.Http({
|
|
3640
|
+
method: "POST",
|
|
3641
|
+
uri: "/edge-services/v1beta1/vpc-endpoints",
|
|
3642
|
+
code: 200,
|
|
3643
|
+
baseUrl: "https://api.scaleway.com",
|
|
3644
|
+
}),
|
|
3645
|
+
),
|
|
3646
|
+
).annotate({ identifier: "CreateVPCEndpointRequest" });
|
|
3647
|
+
}
|
|
3648
|
+
}
|
|
3649
|
+
function __c69(j: number): any {
|
|
3650
|
+
switch (j) {
|
|
3651
|
+
case 0:
|
|
3652
|
+
return S.suspend(() =>
|
|
3653
|
+
S.Struct({
|
|
3654
|
+
id: S.optional(S.String),
|
|
3655
|
+
project_id: S.optional(S.String),
|
|
3656
|
+
region: S.optional(S.String),
|
|
3657
|
+
private_network_id: S.optional(S.String),
|
|
3658
|
+
created_at: S.optional(S.String),
|
|
3659
|
+
updated_at: S.optional(S.String),
|
|
3660
|
+
}),
|
|
3661
|
+
).annotate({ identifier: "VPCEndpoint" });
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
function __c70(j: number): any {
|
|
3665
|
+
switch (j) {
|
|
3666
|
+
case 0:
|
|
3667
|
+
return S.suspend(() =>
|
|
3668
|
+
S.Struct({
|
|
3669
|
+
pipeline_id: S.String.pipe(T.Label()),
|
|
3670
|
+
mode: S.optional(S.String),
|
|
3671
|
+
paranoia_level: S.optional(S.Number),
|
|
3672
|
+
exclusion_rules: S.optional(__S(576, __c72, 0)),
|
|
3673
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3674
|
+
}).pipe(
|
|
3675
|
+
T.Http({
|
|
3676
|
+
method: "POST",
|
|
3677
|
+
uri: "/edge-services/v1beta1/pipelines/{pipeline_id}/waf-stages",
|
|
3678
|
+
code: 200,
|
|
3679
|
+
baseUrl: "https://api.scaleway.com",
|
|
3680
|
+
}),
|
|
3681
|
+
),
|
|
3682
|
+
).annotate({ identifier: "CreateWafStageRequest" });
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3685
|
+
function __c71(j: number): any {
|
|
3686
|
+
switch (j) {
|
|
3687
|
+
case 0:
|
|
3688
|
+
return S.suspend(() =>
|
|
3689
|
+
S.Struct({
|
|
3690
|
+
rule_id: S.optional(S.Number),
|
|
3691
|
+
}),
|
|
3692
|
+
).annotate({ identifier: "WafExclusionRule" });
|
|
3693
|
+
case 1:
|
|
3694
|
+
return S.Array(__S(568, __c71, 0));
|
|
3695
|
+
case 2:
|
|
3696
|
+
return S.suspend(() =>
|
|
3697
|
+
S.Struct({
|
|
3698
|
+
id: S.optional(S.String),
|
|
3699
|
+
pipeline_id: S.optional(S.String),
|
|
3700
|
+
mode: S.optional(S.String),
|
|
3701
|
+
paranoia_level: S.optional(S.Number),
|
|
3702
|
+
status: S.optional(S.String),
|
|
3703
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
3704
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
3705
|
+
backend_stage_id: S.optional(S.NullOr(S.String)),
|
|
3706
|
+
exclusion_rules: S.optional(__S(569, __c71, 1)),
|
|
3707
|
+
}),
|
|
3708
|
+
).annotate({ identifier: "WafStage" });
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
function __c72(j: number): any {
|
|
3712
|
+
switch (j) {
|
|
3713
|
+
case 0:
|
|
3714
|
+
return S.suspend(() =>
|
|
3715
|
+
S.Struct({
|
|
3716
|
+
rules: S.optional(__S(569, __c71, 1)),
|
|
3717
|
+
}),
|
|
3718
|
+
).annotate({ identifier: "WafExclusionRules" });
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
3722
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
3723
|
+
return (__s[i] ??= __L.at(f, j));
|
|
3724
|
+
}
|