@distilled.cloud/scaleway 0.0.0-stage → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +175 -2
- 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 +94 -3
- 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,2130 @@
|
|
|
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: "VpcGwV2",
|
|
24
|
+
labels: "scaleway",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type AddBastionAllowedIPsRequestZone =
|
|
29
|
+
| "fr-par-1"
|
|
30
|
+
| "fr-par-2"
|
|
31
|
+
| "it-mil-1"
|
|
32
|
+
| "nl-ams-1"
|
|
33
|
+
| "nl-ams-2"
|
|
34
|
+
| "nl-ams-3"
|
|
35
|
+
| "pl-waw-1"
|
|
36
|
+
| "pl-waw-2"
|
|
37
|
+
| "pl-waw-3";
|
|
38
|
+
export interface AddBastionAllowedIPsRequest {
|
|
39
|
+
/** The zone you want to target */
|
|
40
|
+
zone?: AddBastionAllowedIPsRequestZone | (string & {}) | undefined;
|
|
41
|
+
/** ID of the gateway to add the allowed IP range to. */
|
|
42
|
+
gateway_id: string;
|
|
43
|
+
/** IP range allowed to connect to the SSH bastion. (IP network) */
|
|
44
|
+
ip_range?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
/** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. (IP network) */
|
|
47
|
+
export type AddBastionAllowedIPsResponseIpRangesList = Array<string>;
|
|
48
|
+
export interface AddBastionAllowedIPsResponse {
|
|
49
|
+
/** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. (IP network) */
|
|
50
|
+
ip_ranges?: AddBastionAllowedIPsResponseIpRangesList | undefined;
|
|
51
|
+
}
|
|
52
|
+
export type CreateGatewayRequestZone =
|
|
53
|
+
| "fr-par-1"
|
|
54
|
+
| "fr-par-2"
|
|
55
|
+
| "it-mil-1"
|
|
56
|
+
| "nl-ams-1"
|
|
57
|
+
| "nl-ams-2"
|
|
58
|
+
| "nl-ams-3"
|
|
59
|
+
| "pl-waw-1"
|
|
60
|
+
| "pl-waw-2"
|
|
61
|
+
| "pl-waw-3";
|
|
62
|
+
/** Tags for the gateway. */
|
|
63
|
+
export type CreateGatewayRequestTagsList = Array<string>;
|
|
64
|
+
export interface CreateGatewayRequest {
|
|
65
|
+
/** The zone you want to target */
|
|
66
|
+
zone?: CreateGatewayRequestZone | (string & {}) | undefined;
|
|
67
|
+
/** Scaleway Project to create the gateway in. (UUID format) */
|
|
68
|
+
project_id?: string | undefined;
|
|
69
|
+
/** Name for the gateway. */
|
|
70
|
+
name?: string | undefined;
|
|
71
|
+
/** Tags for the gateway. */
|
|
72
|
+
tags?: CreateGatewayRequestTagsList | undefined;
|
|
73
|
+
/** Gateway type (commercial offer type). */
|
|
74
|
+
type?: string | undefined;
|
|
75
|
+
/** Existing IP address to attach to the gateway. (UUID format) */
|
|
76
|
+
ip_id?: string | null | undefined;
|
|
77
|
+
/** Defines whether SMTP traffic should be allowed pass through the gateway. */
|
|
78
|
+
enable_smtp?: boolean | undefined;
|
|
79
|
+
/** Defines whether SSH bastion should be enabled the gateway. */
|
|
80
|
+
enable_bastion?: boolean | undefined;
|
|
81
|
+
/** Port of the SSH bastion. */
|
|
82
|
+
bastion_port?: number | null | undefined;
|
|
83
|
+
}
|
|
84
|
+
export type GatewayStatus =
|
|
85
|
+
| "unknown_status"
|
|
86
|
+
| "stopped"
|
|
87
|
+
| "allocating"
|
|
88
|
+
| "configuring"
|
|
89
|
+
| "running"
|
|
90
|
+
| "stopping"
|
|
91
|
+
| "failed"
|
|
92
|
+
| "deleting"
|
|
93
|
+
| "locked";
|
|
94
|
+
/** Tags associated with the gateway. */
|
|
95
|
+
export type GatewayTagsList = Array<string>;
|
|
96
|
+
/** Tags associated with the IP address. */
|
|
97
|
+
export type IPTagsList = Array<string>;
|
|
98
|
+
export interface IP {
|
|
99
|
+
/** IP address ID. (UUID format) */
|
|
100
|
+
id?: string | undefined;
|
|
101
|
+
/** The SRN of the ip. */
|
|
102
|
+
srn?: string | undefined;
|
|
103
|
+
/** Owning Organization. (UUID format) */
|
|
104
|
+
organization_id?: string | undefined;
|
|
105
|
+
/** Owning Project. (UUID format) */
|
|
106
|
+
project_id?: string | undefined;
|
|
107
|
+
/** IP address creation date. (RFC 3339 format) */
|
|
108
|
+
created_at?: string | null | undefined;
|
|
109
|
+
/** IP address last modification date. (RFC 3339 format) */
|
|
110
|
+
updated_at?: string | null | undefined;
|
|
111
|
+
/** Tags associated with the IP address. */
|
|
112
|
+
tags?: IPTagsList | undefined;
|
|
113
|
+
/** The IP address itself. (IP address) */
|
|
114
|
+
address?: string | undefined;
|
|
115
|
+
/** Reverse domain name for the IP address. */
|
|
116
|
+
reverse?: string | null | undefined;
|
|
117
|
+
/** Public Gateway associated with the IP address. (UUID format) */
|
|
118
|
+
gateway_id?: string | null | undefined;
|
|
119
|
+
/** Zone of the IP address. */
|
|
120
|
+
zone?: string | undefined;
|
|
121
|
+
}
|
|
122
|
+
export type GatewayNetworkStatus =
|
|
123
|
+
| "unknown_status"
|
|
124
|
+
| "created"
|
|
125
|
+
| "attaching"
|
|
126
|
+
| "configuring"
|
|
127
|
+
| "ready"
|
|
128
|
+
| "detaching";
|
|
129
|
+
export interface GatewayNetwork {
|
|
130
|
+
/** ID of the Public Gateway-Private Network connection. (UUID format) */
|
|
131
|
+
id?: string | undefined;
|
|
132
|
+
/** The SRN of the gateway network. */
|
|
133
|
+
srn?: string | undefined;
|
|
134
|
+
/** Connection creation date. (RFC 3339 format) */
|
|
135
|
+
created_at?: string | null | undefined;
|
|
136
|
+
/** Connection last modification date. (RFC 3339 format) */
|
|
137
|
+
updated_at?: string | null | undefined;
|
|
138
|
+
/** ID of the connected Public Gateway. (UUID format) */
|
|
139
|
+
gateway_id?: string | undefined;
|
|
140
|
+
/** ID of the connected Private Network. (UUID format) */
|
|
141
|
+
private_network_id?: string | undefined;
|
|
142
|
+
/** MAC address of the gateway in the Private Network (if the gateway is up and running). */
|
|
143
|
+
mac_address?: string | null | undefined;
|
|
144
|
+
/** Defines whether the gateway masquerades traffic for this Private Network (Dynamic NAT). */
|
|
145
|
+
masquerade_enabled?: boolean | undefined;
|
|
146
|
+
/** Current status of the Public Gateway's connection to the Private Network. */
|
|
147
|
+
status?: GatewayNetworkStatus | undefined;
|
|
148
|
+
/** Enabling the default route also enables masquerading. */
|
|
149
|
+
push_default_route?: boolean | undefined;
|
|
150
|
+
/** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. (UUID format) */
|
|
151
|
+
ipam_ip_id?: string | undefined;
|
|
152
|
+
/** Zone of the GatewayNetwork connection. */
|
|
153
|
+
zone?: string | undefined;
|
|
154
|
+
}
|
|
155
|
+
/** GatewayNetwork objects attached to the gateway (each one represents a connection to a Private Network). */
|
|
156
|
+
export type GatewayGatewayNetworksList = Array<GatewayNetwork>;
|
|
157
|
+
/** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. (IP network) */
|
|
158
|
+
export type GatewayBastionAllowedIpsList = Array<string>;
|
|
159
|
+
export interface Gateway {
|
|
160
|
+
/** ID of the gateway. (UUID format) */
|
|
161
|
+
id?: string | undefined;
|
|
162
|
+
/** The SRN of the gateway. */
|
|
163
|
+
srn?: string | undefined;
|
|
164
|
+
/** Owning Organization. (UUID format) */
|
|
165
|
+
organization_id?: string | undefined;
|
|
166
|
+
/** Owning Project. (UUID format) */
|
|
167
|
+
project_id?: string | undefined;
|
|
168
|
+
/** Gateway creation date. (RFC 3339 format) */
|
|
169
|
+
created_at?: string | null | undefined;
|
|
170
|
+
/** Gateway last modification date. (RFC 3339 format) */
|
|
171
|
+
updated_at?: string | null | undefined;
|
|
172
|
+
/** Gateway type name (commercial offer). */
|
|
173
|
+
type?: string | undefined;
|
|
174
|
+
/** Bandwidth available of the gateway. */
|
|
175
|
+
bandwidth?: number | undefined;
|
|
176
|
+
/** Current status of the gateway. */
|
|
177
|
+
status?: GatewayStatus | undefined;
|
|
178
|
+
/** Name of the gateway. */
|
|
179
|
+
name?: string | undefined;
|
|
180
|
+
/** Tags associated with the gateway. */
|
|
181
|
+
tags?: GatewayTagsList | undefined;
|
|
182
|
+
/** Public IPv4 address of the gateway. */
|
|
183
|
+
ipv4?: IP | undefined;
|
|
184
|
+
/** GatewayNetwork objects attached to the gateway (each one represents a connection to a Private Network). */
|
|
185
|
+
gateway_networks?: GatewayGatewayNetworksList | undefined;
|
|
186
|
+
/** Version of the running gateway software. */
|
|
187
|
+
version?: string | null | undefined;
|
|
188
|
+
/** Newly available gateway software version that can be updated to. */
|
|
189
|
+
can_upgrade_to?: string | null | undefined;
|
|
190
|
+
/** Defines whether SSH bastion is enabled on the gateway. */
|
|
191
|
+
bastion_enabled?: boolean | undefined;
|
|
192
|
+
/** Port of the SSH bastion. */
|
|
193
|
+
bastion_port?: number | undefined;
|
|
194
|
+
/** Defines whether SMTP traffic is allowed to pass through the gateway. */
|
|
195
|
+
smtp_enabled?: boolean | undefined;
|
|
196
|
+
/** Defines whether the gateway uses non-IPAM IP configurations. */
|
|
197
|
+
is_legacy?: boolean | undefined;
|
|
198
|
+
/** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. (IP network) */
|
|
199
|
+
bastion_allowed_ips?: GatewayBastionAllowedIpsList | undefined;
|
|
200
|
+
/** Zone of the gateway. */
|
|
201
|
+
zone?: string | undefined;
|
|
202
|
+
}
|
|
203
|
+
export type CreateGatewayNetworkRequestZone =
|
|
204
|
+
| "fr-par-1"
|
|
205
|
+
| "fr-par-2"
|
|
206
|
+
| "it-mil-1"
|
|
207
|
+
| "nl-ams-1"
|
|
208
|
+
| "nl-ams-2"
|
|
209
|
+
| "nl-ams-3"
|
|
210
|
+
| "pl-waw-1"
|
|
211
|
+
| "pl-waw-2"
|
|
212
|
+
| "pl-waw-3";
|
|
213
|
+
export interface CreateGatewayNetworkRequest {
|
|
214
|
+
/** The zone you want to target */
|
|
215
|
+
zone?: CreateGatewayNetworkRequestZone | (string & {}) | undefined;
|
|
216
|
+
/** Public Gateway to connect. (UUID format) */
|
|
217
|
+
gateway_id?: string | undefined;
|
|
218
|
+
/** Private Network to connect. (UUID format) */
|
|
219
|
+
private_network_id?: string | undefined;
|
|
220
|
+
/** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
|
|
221
|
+
enable_masquerade?: boolean | undefined;
|
|
222
|
+
/** Enabling the default route also enables masquerading. */
|
|
223
|
+
push_default_route?: boolean | undefined;
|
|
224
|
+
/** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. (UUID format) */
|
|
225
|
+
ipam_ip_id?: string | null | undefined;
|
|
226
|
+
}
|
|
227
|
+
export type CreateIPRequestZone =
|
|
228
|
+
| "fr-par-1"
|
|
229
|
+
| "fr-par-2"
|
|
230
|
+
| "it-mil-1"
|
|
231
|
+
| "nl-ams-1"
|
|
232
|
+
| "nl-ams-2"
|
|
233
|
+
| "nl-ams-3"
|
|
234
|
+
| "pl-waw-1"
|
|
235
|
+
| "pl-waw-2"
|
|
236
|
+
| "pl-waw-3";
|
|
237
|
+
/** Tags to give to the IP address. */
|
|
238
|
+
export type CreateIPRequestTagsList = Array<string>;
|
|
239
|
+
export interface CreateIPRequest {
|
|
240
|
+
/** The zone you want to target */
|
|
241
|
+
zone?: CreateIPRequestZone | (string & {}) | undefined;
|
|
242
|
+
/** Project to create the IP address in. (UUID format) */
|
|
243
|
+
project_id?: string | undefined;
|
|
244
|
+
/** Tags to give to the IP address. */
|
|
245
|
+
tags?: CreateIPRequestTagsList | undefined;
|
|
246
|
+
}
|
|
247
|
+
export type CreatePatRuleRequestZone =
|
|
248
|
+
| "fr-par-1"
|
|
249
|
+
| "fr-par-2"
|
|
250
|
+
| "it-mil-1"
|
|
251
|
+
| "nl-ams-1"
|
|
252
|
+
| "nl-ams-2"
|
|
253
|
+
| "nl-ams-3"
|
|
254
|
+
| "pl-waw-1"
|
|
255
|
+
| "pl-waw-2"
|
|
256
|
+
| "pl-waw-3";
|
|
257
|
+
export type PatRuleProtocol = "unknown_protocol" | "both" | "tcp" | "udp";
|
|
258
|
+
export interface CreatePatRuleRequest {
|
|
259
|
+
/** The zone you want to target */
|
|
260
|
+
zone?: CreatePatRuleRequestZone | (string & {}) | undefined;
|
|
261
|
+
/** ID of the Gateway on which to create the rule. (UUID format) */
|
|
262
|
+
gateway_id?: string | undefined;
|
|
263
|
+
/** Public port to listen on. */
|
|
264
|
+
public_port?: number | undefined;
|
|
265
|
+
/** Private IP to forward data to. (IP address) */
|
|
266
|
+
private_ip?: string | undefined;
|
|
267
|
+
/** Private port to translate to. */
|
|
268
|
+
private_port?: number | undefined;
|
|
269
|
+
/** Protocol the rule should apply to. */
|
|
270
|
+
protocol?: PatRuleProtocol | (string & {}) | undefined;
|
|
271
|
+
}
|
|
272
|
+
export interface PatRule {
|
|
273
|
+
/** PAT rule ID. (UUID format) */
|
|
274
|
+
id?: string | undefined;
|
|
275
|
+
/** The SRN of the PAT rule. */
|
|
276
|
+
srn?: string | undefined;
|
|
277
|
+
/** Gateway the PAT rule applies to. (UUID format) */
|
|
278
|
+
gateway_id?: string | undefined;
|
|
279
|
+
/** PAT rule creation date. (RFC 3339 format) */
|
|
280
|
+
created_at?: string | null | undefined;
|
|
281
|
+
/** PAT rule last modification date. (RFC 3339 format) */
|
|
282
|
+
updated_at?: string | null | undefined;
|
|
283
|
+
/** Public port to listen on. */
|
|
284
|
+
public_port?: number | undefined;
|
|
285
|
+
/** Private IP address to forward data to. (IP address) */
|
|
286
|
+
private_ip?: string | undefined;
|
|
287
|
+
/** Private port to translate to. */
|
|
288
|
+
private_port?: number | undefined;
|
|
289
|
+
/** Protocol the rule applies to. */
|
|
290
|
+
protocol?: PatRuleProtocol | undefined;
|
|
291
|
+
/** Zone of the PAT rule. */
|
|
292
|
+
zone?: string | undefined;
|
|
293
|
+
}
|
|
294
|
+
export type DeleteBastionAllowedIPsRequestZone =
|
|
295
|
+
| "fr-par-1"
|
|
296
|
+
| "fr-par-2"
|
|
297
|
+
| "it-mil-1"
|
|
298
|
+
| "nl-ams-1"
|
|
299
|
+
| "nl-ams-2"
|
|
300
|
+
| "nl-ams-3"
|
|
301
|
+
| "pl-waw-1"
|
|
302
|
+
| "pl-waw-2"
|
|
303
|
+
| "pl-waw-3";
|
|
304
|
+
export interface DeleteBastionAllowedIPsRequest {
|
|
305
|
+
/** The zone you want to target */
|
|
306
|
+
zone?: DeleteBastionAllowedIPsRequestZone | (string & {}) | undefined;
|
|
307
|
+
/** ID of the gateway on which to delete the allowed IP range. */
|
|
308
|
+
gateway_id: string;
|
|
309
|
+
/** IP range to delete from SSH bastion's list of allowed IPs. (IP network) */
|
|
310
|
+
ip_range: string;
|
|
311
|
+
}
|
|
312
|
+
export interface DeleteBastionAllowedIPsResponse {}
|
|
313
|
+
export type DeleteGatewayRequestZone =
|
|
314
|
+
| "fr-par-1"
|
|
315
|
+
| "fr-par-2"
|
|
316
|
+
| "it-mil-1"
|
|
317
|
+
| "nl-ams-1"
|
|
318
|
+
| "nl-ams-2"
|
|
319
|
+
| "nl-ams-3"
|
|
320
|
+
| "pl-waw-1"
|
|
321
|
+
| "pl-waw-2"
|
|
322
|
+
| "pl-waw-3";
|
|
323
|
+
export interface DeleteGatewayRequest {
|
|
324
|
+
/** The zone you want to target */
|
|
325
|
+
zone?: DeleteGatewayRequestZone | (string & {}) | undefined;
|
|
326
|
+
/** ID of the gateway to delete. (UUID format) */
|
|
327
|
+
gateway_id: string;
|
|
328
|
+
/** Defines whether the PGW's IP should be deleted. */
|
|
329
|
+
delete_ip: boolean;
|
|
330
|
+
}
|
|
331
|
+
export type DeleteGatewayNetworkRequestZone =
|
|
332
|
+
| "fr-par-1"
|
|
333
|
+
| "fr-par-2"
|
|
334
|
+
| "it-mil-1"
|
|
335
|
+
| "nl-ams-1"
|
|
336
|
+
| "nl-ams-2"
|
|
337
|
+
| "nl-ams-3"
|
|
338
|
+
| "pl-waw-1"
|
|
339
|
+
| "pl-waw-2"
|
|
340
|
+
| "pl-waw-3";
|
|
341
|
+
export interface DeleteGatewayNetworkRequest {
|
|
342
|
+
/** The zone you want to target */
|
|
343
|
+
zone?: DeleteGatewayNetworkRequestZone | (string & {}) | undefined;
|
|
344
|
+
/** ID of the GatewayNetwork to delete. (UUID format) */
|
|
345
|
+
gateway_network_id: string;
|
|
346
|
+
}
|
|
347
|
+
export type DeleteIPRequestZone =
|
|
348
|
+
| "fr-par-1"
|
|
349
|
+
| "fr-par-2"
|
|
350
|
+
| "it-mil-1"
|
|
351
|
+
| "nl-ams-1"
|
|
352
|
+
| "nl-ams-2"
|
|
353
|
+
| "nl-ams-3"
|
|
354
|
+
| "pl-waw-1"
|
|
355
|
+
| "pl-waw-2"
|
|
356
|
+
| "pl-waw-3";
|
|
357
|
+
export interface DeleteIPRequest {
|
|
358
|
+
/** The zone you want to target */
|
|
359
|
+
zone?: DeleteIPRequestZone | (string & {}) | undefined;
|
|
360
|
+
/** ID of the IP address to delete. (UUID format) */
|
|
361
|
+
ip_id: string;
|
|
362
|
+
}
|
|
363
|
+
export interface DeleteIPResponse {}
|
|
364
|
+
export type DeletePatRuleRequestZone =
|
|
365
|
+
| "fr-par-1"
|
|
366
|
+
| "fr-par-2"
|
|
367
|
+
| "it-mil-1"
|
|
368
|
+
| "nl-ams-1"
|
|
369
|
+
| "nl-ams-2"
|
|
370
|
+
| "nl-ams-3"
|
|
371
|
+
| "pl-waw-1"
|
|
372
|
+
| "pl-waw-2"
|
|
373
|
+
| "pl-waw-3";
|
|
374
|
+
export interface DeletePatRuleRequest {
|
|
375
|
+
/** The zone you want to target */
|
|
376
|
+
zone?: DeletePatRuleRequestZone | (string & {}) | undefined;
|
|
377
|
+
/** ID of the PAT rule to delete. (UUID format) */
|
|
378
|
+
pat_rule_id: string;
|
|
379
|
+
}
|
|
380
|
+
export interface DeletePatRuleResponse {}
|
|
381
|
+
export type GetGatewayRequestZone =
|
|
382
|
+
| "fr-par-1"
|
|
383
|
+
| "fr-par-2"
|
|
384
|
+
| "it-mil-1"
|
|
385
|
+
| "nl-ams-1"
|
|
386
|
+
| "nl-ams-2"
|
|
387
|
+
| "nl-ams-3"
|
|
388
|
+
| "pl-waw-1"
|
|
389
|
+
| "pl-waw-2"
|
|
390
|
+
| "pl-waw-3";
|
|
391
|
+
export interface GetGatewayRequest {
|
|
392
|
+
/** The zone you want to target */
|
|
393
|
+
zone?: GetGatewayRequestZone | (string & {}) | undefined;
|
|
394
|
+
/** ID of the gateway to fetch. (UUID format) */
|
|
395
|
+
gateway_id: string;
|
|
396
|
+
}
|
|
397
|
+
export type GetGatewayNetworkRequestZone =
|
|
398
|
+
| "fr-par-1"
|
|
399
|
+
| "fr-par-2"
|
|
400
|
+
| "it-mil-1"
|
|
401
|
+
| "nl-ams-1"
|
|
402
|
+
| "nl-ams-2"
|
|
403
|
+
| "nl-ams-3"
|
|
404
|
+
| "pl-waw-1"
|
|
405
|
+
| "pl-waw-2"
|
|
406
|
+
| "pl-waw-3";
|
|
407
|
+
export interface GetGatewayNetworkRequest {
|
|
408
|
+
/** The zone you want to target */
|
|
409
|
+
zone?: GetGatewayNetworkRequestZone | (string & {}) | undefined;
|
|
410
|
+
/** ID of the GatewayNetwork to fetch. (UUID format) */
|
|
411
|
+
gateway_network_id: string;
|
|
412
|
+
}
|
|
413
|
+
export type GetIPRequestZone =
|
|
414
|
+
| "fr-par-1"
|
|
415
|
+
| "fr-par-2"
|
|
416
|
+
| "it-mil-1"
|
|
417
|
+
| "nl-ams-1"
|
|
418
|
+
| "nl-ams-2"
|
|
419
|
+
| "nl-ams-3"
|
|
420
|
+
| "pl-waw-1"
|
|
421
|
+
| "pl-waw-2"
|
|
422
|
+
| "pl-waw-3";
|
|
423
|
+
export interface GetIPRequest {
|
|
424
|
+
/** The zone you want to target */
|
|
425
|
+
zone?: GetIPRequestZone | (string & {}) | undefined;
|
|
426
|
+
/** ID of the IP address to get. (UUID format) */
|
|
427
|
+
ip_id: string;
|
|
428
|
+
}
|
|
429
|
+
export type GetPatRuleRequestZone =
|
|
430
|
+
| "fr-par-1"
|
|
431
|
+
| "fr-par-2"
|
|
432
|
+
| "it-mil-1"
|
|
433
|
+
| "nl-ams-1"
|
|
434
|
+
| "nl-ams-2"
|
|
435
|
+
| "nl-ams-3"
|
|
436
|
+
| "pl-waw-1"
|
|
437
|
+
| "pl-waw-2"
|
|
438
|
+
| "pl-waw-3";
|
|
439
|
+
export interface GetPatRuleRequest {
|
|
440
|
+
/** The zone you want to target */
|
|
441
|
+
zone?: GetPatRuleRequestZone | (string & {}) | undefined;
|
|
442
|
+
/** ID of the PAT rule to get. (UUID format) */
|
|
443
|
+
pat_rule_id: string;
|
|
444
|
+
}
|
|
445
|
+
export type ListGatewayNetworksRequestZone =
|
|
446
|
+
| "fr-par-1"
|
|
447
|
+
| "fr-par-2"
|
|
448
|
+
| "it-mil-1"
|
|
449
|
+
| "nl-ams-1"
|
|
450
|
+
| "nl-ams-2"
|
|
451
|
+
| "nl-ams-3"
|
|
452
|
+
| "pl-waw-1"
|
|
453
|
+
| "pl-waw-2"
|
|
454
|
+
| "pl-waw-3";
|
|
455
|
+
export type ListGatewayNetworksRequestOrderBy =
|
|
456
|
+
| "created_at_asc"
|
|
457
|
+
| "created_at_desc"
|
|
458
|
+
| "status_asc"
|
|
459
|
+
| "status_desc";
|
|
460
|
+
export type ListGatewayNetworksRequestStatusList = Array<GatewayNetworkStatus | (string & {})>;
|
|
461
|
+
export type ListGatewayNetworksRequestGatewayIdsList = Array<string>;
|
|
462
|
+
export type ListGatewayNetworksRequestPrivateNetworkIdsList = Array<string>;
|
|
463
|
+
export interface ListGatewayNetworksRequest {
|
|
464
|
+
/** The zone you want to target */
|
|
465
|
+
zone?: ListGatewayNetworksRequestZone | (string & {}) | undefined;
|
|
466
|
+
/** Order in which to return results. */
|
|
467
|
+
order_by?: ListGatewayNetworksRequestOrderBy | (string & {}) | undefined;
|
|
468
|
+
/** Page number. */
|
|
469
|
+
page?: number | undefined;
|
|
470
|
+
/** GatewayNetworks per page. */
|
|
471
|
+
page_size?: number | undefined;
|
|
472
|
+
/** Filter for GatewayNetworks with these status. Use `unknown` to include all statuses. */
|
|
473
|
+
status?: ListGatewayNetworksRequestStatusList | undefined;
|
|
474
|
+
/** Filter for GatewayNetworks connected to these gateways. */
|
|
475
|
+
gateway_ids?: ListGatewayNetworksRequestGatewayIdsList | undefined;
|
|
476
|
+
/** Filter for GatewayNetworks connected to these Private Networks. */
|
|
477
|
+
private_network_ids?: ListGatewayNetworksRequestPrivateNetworkIdsList | undefined;
|
|
478
|
+
/** Filter for GatewayNetworks with this `enable_masquerade` setting. */
|
|
479
|
+
masquerade_enabled?: boolean | undefined;
|
|
480
|
+
}
|
|
481
|
+
/** GatewayNetworks on this page. */
|
|
482
|
+
export type ListGatewayNetworksResponseGatewayNetworksList = Array<GatewayNetwork>;
|
|
483
|
+
export interface ListGatewayNetworksResponse {
|
|
484
|
+
/** GatewayNetworks on this page. */
|
|
485
|
+
gateway_networks: ListGatewayNetworksResponseGatewayNetworksList;
|
|
486
|
+
/** Total GatewayNetworks count matching the filter. */
|
|
487
|
+
total_count?: number | undefined;
|
|
488
|
+
}
|
|
489
|
+
export type ListGatewaysRequestZone =
|
|
490
|
+
| "fr-par-1"
|
|
491
|
+
| "fr-par-2"
|
|
492
|
+
| "it-mil-1"
|
|
493
|
+
| "nl-ams-1"
|
|
494
|
+
| "nl-ams-2"
|
|
495
|
+
| "nl-ams-3"
|
|
496
|
+
| "pl-waw-1"
|
|
497
|
+
| "pl-waw-2"
|
|
498
|
+
| "pl-waw-3";
|
|
499
|
+
export type ListGatewaysRequestOrderBy =
|
|
500
|
+
| "created_at_asc"
|
|
501
|
+
| "created_at_desc"
|
|
502
|
+
| "name_asc"
|
|
503
|
+
| "name_desc"
|
|
504
|
+
| "type_asc"
|
|
505
|
+
| "type_desc"
|
|
506
|
+
| "status_asc"
|
|
507
|
+
| "status_desc";
|
|
508
|
+
export type ListGatewaysRequestTagsList = Array<string>;
|
|
509
|
+
export type ListGatewaysRequestTypesList = Array<string>;
|
|
510
|
+
export type ListGatewaysRequestStatusList = Array<GatewayStatus | (string & {})>;
|
|
511
|
+
export type ListGatewaysRequestPrivateNetworkIdsList = Array<string>;
|
|
512
|
+
export interface ListGatewaysRequest {
|
|
513
|
+
/** The zone you want to target */
|
|
514
|
+
zone?: ListGatewaysRequestZone | (string & {}) | undefined;
|
|
515
|
+
/** Order in which to return results. */
|
|
516
|
+
order_by?: ListGatewaysRequestOrderBy | (string & {}) | undefined;
|
|
517
|
+
/** Page number to return. */
|
|
518
|
+
page?: number | undefined;
|
|
519
|
+
/** Gateways per page. */
|
|
520
|
+
page_size?: number | undefined;
|
|
521
|
+
/** Include only gateways in this Organization. (UUID format) */
|
|
522
|
+
organization_id?: string | undefined;
|
|
523
|
+
/** Include only gateways in this Project. (UUID format) */
|
|
524
|
+
project_id?: string | undefined;
|
|
525
|
+
/** Filter for gateways which have this search term in their name. */
|
|
526
|
+
name?: string | undefined;
|
|
527
|
+
/** Filter for gateways with these tags. */
|
|
528
|
+
tags?: ListGatewaysRequestTagsList | undefined;
|
|
529
|
+
/** Filter for gateways of these types. */
|
|
530
|
+
types?: ListGatewaysRequestTypesList | undefined;
|
|
531
|
+
/** Filter for gateways with these status. Use `unknown` to include all statuses. */
|
|
532
|
+
status?: ListGatewaysRequestStatusList | undefined;
|
|
533
|
+
/** Filter for gateways attached to these Private Networks. */
|
|
534
|
+
private_network_ids?: ListGatewaysRequestPrivateNetworkIdsList | undefined;
|
|
535
|
+
/** Include also legacy gateways. */
|
|
536
|
+
include_legacy?: boolean | undefined;
|
|
537
|
+
}
|
|
538
|
+
/** Gateways on this page. */
|
|
539
|
+
export type ListGatewaysResponseGatewaysList = Array<Gateway>;
|
|
540
|
+
export interface ListGatewaysResponse {
|
|
541
|
+
/** Gateways on this page. */
|
|
542
|
+
gateways: ListGatewaysResponseGatewaysList;
|
|
543
|
+
/** Total count of gateways matching the filter. */
|
|
544
|
+
total_count?: number | undefined;
|
|
545
|
+
}
|
|
546
|
+
export type ListGatewayTypesRequestZone =
|
|
547
|
+
| "fr-par-1"
|
|
548
|
+
| "fr-par-2"
|
|
549
|
+
| "it-mil-1"
|
|
550
|
+
| "nl-ams-1"
|
|
551
|
+
| "nl-ams-2"
|
|
552
|
+
| "nl-ams-3"
|
|
553
|
+
| "pl-waw-1"
|
|
554
|
+
| "pl-waw-2"
|
|
555
|
+
| "pl-waw-3";
|
|
556
|
+
export interface ListGatewayTypesRequest {
|
|
557
|
+
/** The zone you want to target */
|
|
558
|
+
zone?: ListGatewayTypesRequestZone | (string & {}) | undefined;
|
|
559
|
+
}
|
|
560
|
+
export interface GatewayType {
|
|
561
|
+
/** Public Gateway type name. */
|
|
562
|
+
name?: string | undefined;
|
|
563
|
+
/** Bandwidth, in bps, of the Public Gateway. This is the public bandwidth to the outer Internet, and the internal bandwidth to each connected Private Networks. */
|
|
564
|
+
bandwidth?: number | undefined;
|
|
565
|
+
/** Zone the Public Gateway type is available in. */
|
|
566
|
+
zone?: string | undefined;
|
|
567
|
+
}
|
|
568
|
+
/** Available types of Public Gateway. */
|
|
569
|
+
export type ListGatewayTypesResponseTypesList = Array<GatewayType>;
|
|
570
|
+
export interface ListGatewayTypesResponse {
|
|
571
|
+
/** Available types of Public Gateway. */
|
|
572
|
+
types?: ListGatewayTypesResponseTypesList | undefined;
|
|
573
|
+
}
|
|
574
|
+
export type ListIPsRequestZone =
|
|
575
|
+
| "fr-par-1"
|
|
576
|
+
| "fr-par-2"
|
|
577
|
+
| "it-mil-1"
|
|
578
|
+
| "nl-ams-1"
|
|
579
|
+
| "nl-ams-2"
|
|
580
|
+
| "nl-ams-3"
|
|
581
|
+
| "pl-waw-1"
|
|
582
|
+
| "pl-waw-2"
|
|
583
|
+
| "pl-waw-3";
|
|
584
|
+
export type ListIPsRequestOrderBy =
|
|
585
|
+
| "created_at_asc"
|
|
586
|
+
| "created_at_desc"
|
|
587
|
+
| "address_asc"
|
|
588
|
+
| "address_desc"
|
|
589
|
+
| "reverse_asc"
|
|
590
|
+
| "reverse_desc";
|
|
591
|
+
export type ListIPsRequestTagsList = Array<string>;
|
|
592
|
+
export interface ListIPsRequest {
|
|
593
|
+
/** The zone you want to target */
|
|
594
|
+
zone?: ListIPsRequestZone | (string & {}) | undefined;
|
|
595
|
+
/** Order in which to return results. */
|
|
596
|
+
order_by?: ListIPsRequestOrderBy | (string & {}) | undefined;
|
|
597
|
+
/** Page number. */
|
|
598
|
+
page?: number | undefined;
|
|
599
|
+
/** IP addresses per page. */
|
|
600
|
+
page_size?: number | undefined;
|
|
601
|
+
/** Include only gateways in this Organization. (UUID format) */
|
|
602
|
+
organization_id?: string | undefined;
|
|
603
|
+
/** Filter for IP addresses in this Project. (UUID format) */
|
|
604
|
+
project_id?: string | undefined;
|
|
605
|
+
/** Filter for IP addresses with these tags. */
|
|
606
|
+
tags?: ListIPsRequestTagsList | undefined;
|
|
607
|
+
/** Filter for IP addresses that have a reverse containing this string. */
|
|
608
|
+
reverse?: string | undefined;
|
|
609
|
+
/** Filter based on whether the IP is attached to a gateway or not. */
|
|
610
|
+
is_free?: boolean | undefined;
|
|
611
|
+
}
|
|
612
|
+
/** IP addresses on this page. */
|
|
613
|
+
export type ListIPsResponseIpsList = Array<IP>;
|
|
614
|
+
export interface ListIPsResponse {
|
|
615
|
+
/** IP addresses on this page. */
|
|
616
|
+
ips: ListIPsResponseIpsList;
|
|
617
|
+
/** Total count of IP addresses matching the filter. */
|
|
618
|
+
total_count?: number | undefined;
|
|
619
|
+
}
|
|
620
|
+
export type ListPatRulesRequestZone =
|
|
621
|
+
| "fr-par-1"
|
|
622
|
+
| "fr-par-2"
|
|
623
|
+
| "it-mil-1"
|
|
624
|
+
| "nl-ams-1"
|
|
625
|
+
| "nl-ams-2"
|
|
626
|
+
| "nl-ams-3"
|
|
627
|
+
| "pl-waw-1"
|
|
628
|
+
| "pl-waw-2"
|
|
629
|
+
| "pl-waw-3";
|
|
630
|
+
export type ListPatRulesRequestOrderBy =
|
|
631
|
+
| "created_at_asc"
|
|
632
|
+
| "created_at_desc"
|
|
633
|
+
| "public_port_asc"
|
|
634
|
+
| "public_port_desc";
|
|
635
|
+
export type ListPatRulesRequestGatewayIdsList = Array<string>;
|
|
636
|
+
export type ListPatRulesRequestPrivateIpsList = Array<string>;
|
|
637
|
+
export interface ListPatRulesRequest {
|
|
638
|
+
/** The zone you want to target */
|
|
639
|
+
zone?: ListPatRulesRequestZone | (string & {}) | undefined;
|
|
640
|
+
/** Order in which to return results. */
|
|
641
|
+
order_by?: ListPatRulesRequestOrderBy | (string & {}) | undefined;
|
|
642
|
+
/** Page number. */
|
|
643
|
+
page?: number | undefined;
|
|
644
|
+
/** PAT rules per page. */
|
|
645
|
+
page_size?: number | undefined;
|
|
646
|
+
/** Filter for PAT rules on these gateways. */
|
|
647
|
+
gateway_ids?: ListPatRulesRequestGatewayIdsList | undefined;
|
|
648
|
+
/** Filter for PAT rules targeting these private ips. */
|
|
649
|
+
private_ips?: ListPatRulesRequestPrivateIpsList | undefined;
|
|
650
|
+
/** Filter for PAT rules with this protocol. */
|
|
651
|
+
protocol?: PatRuleProtocol | (string & {}) | undefined;
|
|
652
|
+
}
|
|
653
|
+
/** Array of PAT rules matching the filter. */
|
|
654
|
+
export type ListPatRulesResponsePatRulesList = Array<PatRule>;
|
|
655
|
+
export interface ListPatRulesResponse {
|
|
656
|
+
/** Array of PAT rules matching the filter. */
|
|
657
|
+
pat_rules: ListPatRulesResponsePatRulesList;
|
|
658
|
+
/** Total count of PAT rules matching the filter. */
|
|
659
|
+
total_count?: number | undefined;
|
|
660
|
+
}
|
|
661
|
+
export type RefreshSSHKeysRequestZone =
|
|
662
|
+
| "fr-par-1"
|
|
663
|
+
| "fr-par-2"
|
|
664
|
+
| "it-mil-1"
|
|
665
|
+
| "nl-ams-1"
|
|
666
|
+
| "nl-ams-2"
|
|
667
|
+
| "nl-ams-3"
|
|
668
|
+
| "pl-waw-1"
|
|
669
|
+
| "pl-waw-2"
|
|
670
|
+
| "pl-waw-3";
|
|
671
|
+
export interface RefreshSSHKeysRequest {
|
|
672
|
+
/** The zone you want to target */
|
|
673
|
+
zone?: RefreshSSHKeysRequestZone | (string & {}) | undefined;
|
|
674
|
+
/** ID of the gateway to refresh SSH keys on. (UUID format) */
|
|
675
|
+
gateway_id: string;
|
|
676
|
+
}
|
|
677
|
+
export type SetBastionAllowedIPsRequestZone =
|
|
678
|
+
| "fr-par-1"
|
|
679
|
+
| "fr-par-2"
|
|
680
|
+
| "it-mil-1"
|
|
681
|
+
| "nl-ams-1"
|
|
682
|
+
| "nl-ams-2"
|
|
683
|
+
| "nl-ams-3"
|
|
684
|
+
| "pl-waw-1"
|
|
685
|
+
| "pl-waw-2"
|
|
686
|
+
| "pl-waw-3";
|
|
687
|
+
/** New list of IP ranges (each range in CIDR notation) allowed to connect to the SSH bastion. */
|
|
688
|
+
export type SetBastionAllowedIPsRequestIpRangesList = Array<string>;
|
|
689
|
+
export interface SetBastionAllowedIPsRequest {
|
|
690
|
+
/** The zone you want to target */
|
|
691
|
+
zone?: SetBastionAllowedIPsRequestZone | (string & {}) | undefined;
|
|
692
|
+
/** ID of the gateway on which to set the allowed IP range. */
|
|
693
|
+
gateway_id: string;
|
|
694
|
+
/** New list of IP ranges (each range in CIDR notation) allowed to connect to the SSH bastion. */
|
|
695
|
+
ip_ranges?: SetBastionAllowedIPsRequestIpRangesList | undefined;
|
|
696
|
+
}
|
|
697
|
+
/** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. (IP network) */
|
|
698
|
+
export type SetBastionAllowedIPsResponseIpRangesList = Array<string>;
|
|
699
|
+
export interface SetBastionAllowedIPsResponse {
|
|
700
|
+
/** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. (IP network) */
|
|
701
|
+
ip_ranges?: SetBastionAllowedIPsResponseIpRangesList | undefined;
|
|
702
|
+
}
|
|
703
|
+
export type SetPatRulesRequestZone =
|
|
704
|
+
| "fr-par-1"
|
|
705
|
+
| "fr-par-2"
|
|
706
|
+
| "it-mil-1"
|
|
707
|
+
| "nl-ams-1"
|
|
708
|
+
| "nl-ams-2"
|
|
709
|
+
| "nl-ams-3"
|
|
710
|
+
| "pl-waw-1"
|
|
711
|
+
| "pl-waw-2"
|
|
712
|
+
| "pl-waw-3";
|
|
713
|
+
export interface SetPatRulesRequestRule {
|
|
714
|
+
/** Public port to listen on. Public port to listen on. Uniquely identifies the rule, and a matching rule will be updated with the new parameters. */
|
|
715
|
+
public_port?: number | undefined;
|
|
716
|
+
/** Private IP to forward data to. (IP address) */
|
|
717
|
+
private_ip?: string | undefined;
|
|
718
|
+
/** Private port to translate to. */
|
|
719
|
+
private_port?: number | undefined;
|
|
720
|
+
/** Protocol the rule should apply to. */
|
|
721
|
+
protocol?: PatRuleProtocol | (string & {}) | undefined;
|
|
722
|
+
}
|
|
723
|
+
/** New list of PAT rules. */
|
|
724
|
+
export type SetPatRulesRequestPatRulesList = Array<SetPatRulesRequestRule>;
|
|
725
|
+
export interface SetPatRulesRequest {
|
|
726
|
+
/** The zone you want to target */
|
|
727
|
+
zone?: SetPatRulesRequestZone | (string & {}) | undefined;
|
|
728
|
+
/** ID of the gateway on which to set the PAT rules. (UUID format) */
|
|
729
|
+
gateway_id?: string | undefined;
|
|
730
|
+
/** New list of PAT rules. */
|
|
731
|
+
pat_rules: SetPatRulesRequestPatRulesList;
|
|
732
|
+
}
|
|
733
|
+
/** List of PAT rules. */
|
|
734
|
+
export type SetPatRulesResponsePatRulesList = Array<PatRule>;
|
|
735
|
+
export interface SetPatRulesResponse {
|
|
736
|
+
/** List of PAT rules. */
|
|
737
|
+
pat_rules?: SetPatRulesResponsePatRulesList | undefined;
|
|
738
|
+
}
|
|
739
|
+
export type UpdateGatewayRequestZone =
|
|
740
|
+
| "fr-par-1"
|
|
741
|
+
| "fr-par-2"
|
|
742
|
+
| "it-mil-1"
|
|
743
|
+
| "nl-ams-1"
|
|
744
|
+
| "nl-ams-2"
|
|
745
|
+
| "nl-ams-3"
|
|
746
|
+
| "pl-waw-1"
|
|
747
|
+
| "pl-waw-2"
|
|
748
|
+
| "pl-waw-3";
|
|
749
|
+
/** Tags for the gateway. */
|
|
750
|
+
export type UpdateGatewayRequestTagsList = Array<unknown>;
|
|
751
|
+
export interface UpdateGatewayRequest {
|
|
752
|
+
/** The zone you want to target */
|
|
753
|
+
zone?: UpdateGatewayRequestZone | (string & {}) | undefined;
|
|
754
|
+
/** ID of the gateway to update. (UUID format) */
|
|
755
|
+
gateway_id: string;
|
|
756
|
+
/** Name for the gateway. */
|
|
757
|
+
name?: string | null | undefined;
|
|
758
|
+
/** Tags for the gateway. */
|
|
759
|
+
tags?: UpdateGatewayRequestTagsList | null | undefined;
|
|
760
|
+
/** Defines whether SSH bastion should be enabled the gateway. */
|
|
761
|
+
enable_bastion?: boolean | null | undefined;
|
|
762
|
+
/** Port of the SSH bastion. */
|
|
763
|
+
bastion_port?: number | null | undefined;
|
|
764
|
+
/** Defines whether SMTP traffic should be allowed to pass through the gateway. */
|
|
765
|
+
enable_smtp?: boolean | null | undefined;
|
|
766
|
+
}
|
|
767
|
+
export type UpdateGatewayNetworkRequestZone =
|
|
768
|
+
| "fr-par-1"
|
|
769
|
+
| "fr-par-2"
|
|
770
|
+
| "it-mil-1"
|
|
771
|
+
| "nl-ams-1"
|
|
772
|
+
| "nl-ams-2"
|
|
773
|
+
| "nl-ams-3"
|
|
774
|
+
| "pl-waw-1"
|
|
775
|
+
| "pl-waw-2"
|
|
776
|
+
| "pl-waw-3";
|
|
777
|
+
export interface UpdateGatewayNetworkRequest {
|
|
778
|
+
/** The zone you want to target */
|
|
779
|
+
zone?: UpdateGatewayNetworkRequestZone | (string & {}) | undefined;
|
|
780
|
+
/** ID of the GatewayNetwork to update. (UUID format) */
|
|
781
|
+
gateway_network_id: string;
|
|
782
|
+
/** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
|
|
783
|
+
enable_masquerade?: boolean | null | undefined;
|
|
784
|
+
/** Enabling the default route also enables masquerading. */
|
|
785
|
+
push_default_route?: boolean | null | undefined;
|
|
786
|
+
/** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. (UUID format) */
|
|
787
|
+
ipam_ip_id?: string | null | undefined;
|
|
788
|
+
}
|
|
789
|
+
export type UpdateIPRequestZone =
|
|
790
|
+
| "fr-par-1"
|
|
791
|
+
| "fr-par-2"
|
|
792
|
+
| "it-mil-1"
|
|
793
|
+
| "nl-ams-1"
|
|
794
|
+
| "nl-ams-2"
|
|
795
|
+
| "nl-ams-3"
|
|
796
|
+
| "pl-waw-1"
|
|
797
|
+
| "pl-waw-2"
|
|
798
|
+
| "pl-waw-3";
|
|
799
|
+
/** Tags to give to the IP address. */
|
|
800
|
+
export type UpdateIPRequestTagsList = Array<unknown>;
|
|
801
|
+
export interface UpdateIPRequest {
|
|
802
|
+
/** The zone you want to target */
|
|
803
|
+
zone?: UpdateIPRequestZone | (string & {}) | undefined;
|
|
804
|
+
/** ID of the IP address to update. (UUID format) */
|
|
805
|
+
ip_id: string;
|
|
806
|
+
/** Tags to give to the IP address. */
|
|
807
|
+
tags?: UpdateIPRequestTagsList | null | undefined;
|
|
808
|
+
/** Reverse to set on the address. Empty string to unset. */
|
|
809
|
+
reverse?: string | null | undefined;
|
|
810
|
+
/** Gateway to attach the IP address to. Empty string to detach. (UUID format) */
|
|
811
|
+
gateway_id?: string | null | undefined;
|
|
812
|
+
}
|
|
813
|
+
export type UpdatePatRuleRequestZone =
|
|
814
|
+
| "fr-par-1"
|
|
815
|
+
| "fr-par-2"
|
|
816
|
+
| "it-mil-1"
|
|
817
|
+
| "nl-ams-1"
|
|
818
|
+
| "nl-ams-2"
|
|
819
|
+
| "nl-ams-3"
|
|
820
|
+
| "pl-waw-1"
|
|
821
|
+
| "pl-waw-2"
|
|
822
|
+
| "pl-waw-3";
|
|
823
|
+
export interface UpdatePatRuleRequest {
|
|
824
|
+
/** The zone you want to target */
|
|
825
|
+
zone?: UpdatePatRuleRequestZone | (string & {}) | undefined;
|
|
826
|
+
/** ID of the PAT rule to update. (UUID format) */
|
|
827
|
+
pat_rule_id: string;
|
|
828
|
+
/** Public port to listen on. */
|
|
829
|
+
public_port?: number | null | undefined;
|
|
830
|
+
/** Private IP to forward data to. (IP address) */
|
|
831
|
+
private_ip?: string | null | undefined;
|
|
832
|
+
/** Private port to translate to. */
|
|
833
|
+
private_port?: number | null | undefined;
|
|
834
|
+
/** Protocol the rule should apply to. */
|
|
835
|
+
protocol?: PatRuleProtocol | (string & {}) | undefined;
|
|
836
|
+
}
|
|
837
|
+
export type UpgradeGatewayRequestZone =
|
|
838
|
+
| "fr-par-1"
|
|
839
|
+
| "fr-par-2"
|
|
840
|
+
| "it-mil-1"
|
|
841
|
+
| "nl-ams-1"
|
|
842
|
+
| "nl-ams-2"
|
|
843
|
+
| "nl-ams-3"
|
|
844
|
+
| "pl-waw-1"
|
|
845
|
+
| "pl-waw-2"
|
|
846
|
+
| "pl-waw-3";
|
|
847
|
+
export interface UpgradeGatewayRequest {
|
|
848
|
+
/** The zone you want to target */
|
|
849
|
+
zone?: UpgradeGatewayRequestZone | (string & {}) | undefined;
|
|
850
|
+
/** ID of the gateway to upgrade. (UUID format) */
|
|
851
|
+
gateway_id: string;
|
|
852
|
+
/** Gateway type (commercial offer). */
|
|
853
|
+
type?: string | null | undefined;
|
|
854
|
+
}
|
|
855
|
+
export type AddBastionAllowedIPsError = ScalewayOpError;
|
|
856
|
+
/** Add allowed IP range to SSH bastion Add an IP range (in CIDR notation) to be allowed to connect to the SSH bastion. */
|
|
857
|
+
export const addBastionAllowedIPs: API.OperationMethod<
|
|
858
|
+
AddBastionAllowedIPsRequest,
|
|
859
|
+
AddBastionAllowedIPsResponse,
|
|
860
|
+
AddBastionAllowedIPsError,
|
|
861
|
+
ScalewayOpContext
|
|
862
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
863
|
+
input: __S(0, __c0, 0) as any as S.Schema<AddBastionAllowedIPsRequest>,
|
|
864
|
+
output: __S(8, __c2, 0) as any as S.Schema<AddBastionAllowedIPsResponse>,
|
|
865
|
+
errors: [],
|
|
866
|
+
serviceErrors: ScalewayServiceErrors,
|
|
867
|
+
protocol: ScalewayProtocol,
|
|
868
|
+
retry: Retry.Retry,
|
|
869
|
+
telemetry: TELEMETRY,
|
|
870
|
+
span: "AddBastionAllowedIPs",
|
|
871
|
+
}));
|
|
872
|
+
|
|
873
|
+
export type CreateGatewayError = ScalewayOpError;
|
|
874
|
+
/** Create a Public Gateway Create a new Public Gateway in the specified Scaleway Project, defining its **name**, **type** and other configuration details such as whether to enable SSH bastion. */
|
|
875
|
+
export const createGateway: API.OperationMethod<
|
|
876
|
+
CreateGatewayRequest,
|
|
877
|
+
Gateway,
|
|
878
|
+
CreateGatewayError,
|
|
879
|
+
ScalewayOpContext
|
|
880
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
881
|
+
input: __S(12, __c3, 0) as any as S.Schema<CreateGatewayRequest>,
|
|
882
|
+
output: __S(28, __c7, 0) as any as S.Schema<Gateway>,
|
|
883
|
+
errors: [],
|
|
884
|
+
serviceErrors: ScalewayServiceErrors,
|
|
885
|
+
protocol: ScalewayProtocol,
|
|
886
|
+
retry: Retry.Retry,
|
|
887
|
+
telemetry: TELEMETRY,
|
|
888
|
+
span: "CreateGateway",
|
|
889
|
+
}));
|
|
890
|
+
|
|
891
|
+
export type CreateGatewayNetworkError = ScalewayOpError;
|
|
892
|
+
/** Attach a Public Gateway to a Private Network Attach a specific Public Gateway to a specific Private Network (create a GatewayNetwork). You can configure parameters for the connection including whether to enable masquerade (dynamic NAT), and more. */
|
|
893
|
+
export const createGatewayNetwork: API.OperationMethod<
|
|
894
|
+
CreateGatewayNetworkRequest,
|
|
895
|
+
GatewayNetwork,
|
|
896
|
+
CreateGatewayNetworkError,
|
|
897
|
+
ScalewayOpContext
|
|
898
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
899
|
+
input: __S(80, __c20, 0) as any as S.Schema<CreateGatewayNetworkRequest>,
|
|
900
|
+
output: __S(16, __c4, 0) as any as S.Schema<GatewayNetwork>,
|
|
901
|
+
errors: [],
|
|
902
|
+
serviceErrors: ScalewayServiceErrors,
|
|
903
|
+
protocol: ScalewayProtocol,
|
|
904
|
+
retry: Retry.Retry,
|
|
905
|
+
telemetry: TELEMETRY,
|
|
906
|
+
span: "CreateGatewayNetwork",
|
|
907
|
+
}));
|
|
908
|
+
|
|
909
|
+
export type CreateIPError = ScalewayOpError;
|
|
910
|
+
/** Reserve an IP Create (reserve) a new flexible IP address that can be used for a Public Gateway in a specified Scaleway Project. */
|
|
911
|
+
export const createIP: API.OperationMethod<CreateIPRequest, IP, CreateIPError, ScalewayOpContext> =
|
|
912
|
+
/*@__PURE__*/ API.make(() => ({
|
|
913
|
+
input: __S(116, __c29, 0) as any as S.Schema<CreateIPRequest>,
|
|
914
|
+
output: __S(20, __c5, 0) as any as S.Schema<IP>,
|
|
915
|
+
errors: [],
|
|
916
|
+
serviceErrors: ScalewayServiceErrors,
|
|
917
|
+
protocol: ScalewayProtocol,
|
|
918
|
+
retry: Retry.Retry,
|
|
919
|
+
telemetry: TELEMETRY,
|
|
920
|
+
span: "CreateIP",
|
|
921
|
+
}));
|
|
922
|
+
|
|
923
|
+
export type CreatePatRuleError = ScalewayOpError;
|
|
924
|
+
/** Create a PAT rule Create a new PAT rule on a specified Public Gateway, defining the protocol to use, public port to listen on, and private port / IP address to map to. */
|
|
925
|
+
export const createPatRule: API.OperationMethod<
|
|
926
|
+
CreatePatRuleRequest,
|
|
927
|
+
PatRule,
|
|
928
|
+
CreatePatRuleError,
|
|
929
|
+
ScalewayOpContext
|
|
930
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
931
|
+
input: __S(120, __c30, 0) as any as S.Schema<CreatePatRuleRequest>,
|
|
932
|
+
output: __S(124, __c31, 0) as any as S.Schema<PatRule>,
|
|
933
|
+
errors: [],
|
|
934
|
+
serviceErrors: ScalewayServiceErrors,
|
|
935
|
+
protocol: ScalewayProtocol,
|
|
936
|
+
retry: Retry.Retry,
|
|
937
|
+
telemetry: TELEMETRY,
|
|
938
|
+
span: "CreatePatRule",
|
|
939
|
+
}));
|
|
940
|
+
|
|
941
|
+
export type DeleteBastionAllowedIPsError = ScalewayOpError;
|
|
942
|
+
/** Delete allowed IP range from SSH bastion Delete an IP range (defined in CIDR notation) from SSH bastion, so that it is no longer allowed to connect. */
|
|
943
|
+
export const deleteBastionAllowedIPs: API.OperationMethod<
|
|
944
|
+
DeleteBastionAllowedIPsRequest,
|
|
945
|
+
DeleteBastionAllowedIPsResponse,
|
|
946
|
+
DeleteBastionAllowedIPsError,
|
|
947
|
+
ScalewayOpContext
|
|
948
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
949
|
+
input: __S(128, __c32, 0) as any as S.Schema<DeleteBastionAllowedIPsRequest>,
|
|
950
|
+
output: __S(132, __c33, 0) as any as S.Schema<DeleteBastionAllowedIPsResponse>,
|
|
951
|
+
errors: [],
|
|
952
|
+
serviceErrors: ScalewayServiceErrors,
|
|
953
|
+
protocol: ScalewayProtocol,
|
|
954
|
+
retry: Retry.Retry,
|
|
955
|
+
telemetry: TELEMETRY,
|
|
956
|
+
span: "DeleteBastionAllowedIPs",
|
|
957
|
+
}));
|
|
958
|
+
|
|
959
|
+
export type DeleteGatewayError = ScalewayOpError;
|
|
960
|
+
/** Delete a Public Gateway Delete an existing Public Gateway, specified by its gateway ID. This action is irreversible. */
|
|
961
|
+
export const deleteGateway: API.OperationMethod<
|
|
962
|
+
DeleteGatewayRequest,
|
|
963
|
+
Gateway,
|
|
964
|
+
DeleteGatewayError,
|
|
965
|
+
ScalewayOpContext
|
|
966
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
967
|
+
input: __S(136, __c34, 0) as any as S.Schema<DeleteGatewayRequest>,
|
|
968
|
+
output: __S(28, __c7, 0) as any as S.Schema<Gateway>,
|
|
969
|
+
errors: [],
|
|
970
|
+
serviceErrors: ScalewayServiceErrors,
|
|
971
|
+
protocol: ScalewayProtocol,
|
|
972
|
+
retry: Retry.Retry,
|
|
973
|
+
telemetry: TELEMETRY,
|
|
974
|
+
span: "DeleteGateway",
|
|
975
|
+
}));
|
|
976
|
+
|
|
977
|
+
export type DeleteGatewayNetworkError = ScalewayOpError;
|
|
978
|
+
/** Detach a Public Gateway from a Private Network Detach a given Public Gateway from a given Private Network, i.e. delete a GatewayNetwork specified by a gateway_network_id. */
|
|
979
|
+
export const deleteGatewayNetwork: API.OperationMethod<
|
|
980
|
+
DeleteGatewayNetworkRequest,
|
|
981
|
+
GatewayNetwork,
|
|
982
|
+
DeleteGatewayNetworkError,
|
|
983
|
+
ScalewayOpContext
|
|
984
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
985
|
+
input: __S(140, __c35, 0) as any as S.Schema<DeleteGatewayNetworkRequest>,
|
|
986
|
+
output: __S(16, __c4, 0) as any as S.Schema<GatewayNetwork>,
|
|
987
|
+
errors: [],
|
|
988
|
+
serviceErrors: ScalewayServiceErrors,
|
|
989
|
+
protocol: ScalewayProtocol,
|
|
990
|
+
retry: Retry.Retry,
|
|
991
|
+
telemetry: TELEMETRY,
|
|
992
|
+
span: "DeleteGatewayNetwork",
|
|
993
|
+
}));
|
|
994
|
+
|
|
995
|
+
export type DeleteIPError = ScalewayOpError;
|
|
996
|
+
/** Delete an IP Delete a flexible IP address from your account. This action is irreversible. */
|
|
997
|
+
export const deleteIP: API.OperationMethod<
|
|
998
|
+
DeleteIPRequest,
|
|
999
|
+
DeleteIPResponse,
|
|
1000
|
+
DeleteIPError,
|
|
1001
|
+
ScalewayOpContext
|
|
1002
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1003
|
+
input: __S(144, __c36, 0) as any as S.Schema<DeleteIPRequest>,
|
|
1004
|
+
output: __S(132, __c33, 0) as any as S.Schema<DeleteIPResponse>,
|
|
1005
|
+
errors: [],
|
|
1006
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1007
|
+
protocol: ScalewayProtocol,
|
|
1008
|
+
retry: Retry.Retry,
|
|
1009
|
+
telemetry: TELEMETRY,
|
|
1010
|
+
span: "DeleteIP",
|
|
1011
|
+
}));
|
|
1012
|
+
|
|
1013
|
+
export type DeletePatRuleError = ScalewayOpError;
|
|
1014
|
+
/** Delete a PAT rule Delete a PAT rule, identified by its PAT rule ID. This action is irreversible. */
|
|
1015
|
+
export const deletePatRule: API.OperationMethod<
|
|
1016
|
+
DeletePatRuleRequest,
|
|
1017
|
+
DeletePatRuleResponse,
|
|
1018
|
+
DeletePatRuleError,
|
|
1019
|
+
ScalewayOpContext
|
|
1020
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1021
|
+
input: __S(148, __c37, 0) as any as S.Schema<DeletePatRuleRequest>,
|
|
1022
|
+
output: __S(132, __c33, 0) as any as S.Schema<DeletePatRuleResponse>,
|
|
1023
|
+
errors: [],
|
|
1024
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1025
|
+
protocol: ScalewayProtocol,
|
|
1026
|
+
retry: Retry.Retry,
|
|
1027
|
+
telemetry: TELEMETRY,
|
|
1028
|
+
span: "DeletePatRule",
|
|
1029
|
+
}));
|
|
1030
|
+
|
|
1031
|
+
export type GetGatewayError = ScalewayOpError;
|
|
1032
|
+
/** Get a Public Gateway Get details of a Public Gateway, specified by its gateway ID. The response object contains full details of the gateway, including its **name**, **type**, **status** and more. */
|
|
1033
|
+
export const getGateway: API.OperationMethod<
|
|
1034
|
+
GetGatewayRequest,
|
|
1035
|
+
Gateway,
|
|
1036
|
+
GetGatewayError,
|
|
1037
|
+
ScalewayOpContext
|
|
1038
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1039
|
+
input: __S(32, __c8, 0) as any as S.Schema<GetGatewayRequest>,
|
|
1040
|
+
output: __S(28, __c7, 0) as any as S.Schema<Gateway>,
|
|
1041
|
+
errors: [],
|
|
1042
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1043
|
+
protocol: ScalewayProtocol,
|
|
1044
|
+
retry: Retry.Retry,
|
|
1045
|
+
telemetry: TELEMETRY,
|
|
1046
|
+
span: "GetGateway",
|
|
1047
|
+
}));
|
|
1048
|
+
|
|
1049
|
+
export type GetGatewayNetworkError = ScalewayOpError;
|
|
1050
|
+
/** Get a Public Gateway connection to a Private Network Get details of a given connection between a Public Gateway and a Private Network (this connection = a GatewayNetwork), specified by its `gateway_network_id`. The response object contains details of the connection including the IDs of the Public Gateway and Private Network, the dates the connection was created/updated and its configuration settings. */
|
|
1051
|
+
export const getGatewayNetwork: API.OperationMethod<
|
|
1052
|
+
GetGatewayNetworkRequest,
|
|
1053
|
+
GatewayNetwork,
|
|
1054
|
+
GetGatewayNetworkError,
|
|
1055
|
+
ScalewayOpContext
|
|
1056
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1057
|
+
input: __S(36, __c9, 0) as any as S.Schema<GetGatewayNetworkRequest>,
|
|
1058
|
+
output: __S(16, __c4, 0) as any as S.Schema<GatewayNetwork>,
|
|
1059
|
+
errors: [],
|
|
1060
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1061
|
+
protocol: ScalewayProtocol,
|
|
1062
|
+
retry: Retry.Retry,
|
|
1063
|
+
telemetry: TELEMETRY,
|
|
1064
|
+
span: "GetGatewayNetwork",
|
|
1065
|
+
}));
|
|
1066
|
+
|
|
1067
|
+
export type GetIPError = ScalewayOpError;
|
|
1068
|
+
/** Get an IP Get details of a Public Gateway flexible IP address, identified by its IP ID. The response object contains information including which (if any) Public Gateway using this IP address, the reverse and various other metadata. */
|
|
1069
|
+
export const getIP: API.OperationMethod<GetIPRequest, IP, GetIPError, ScalewayOpContext> =
|
|
1070
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1071
|
+
input: __S(40, __c10, 0) as any as S.Schema<GetIPRequest>,
|
|
1072
|
+
output: __S(20, __c5, 0) as any as S.Schema<IP>,
|
|
1073
|
+
errors: [],
|
|
1074
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1075
|
+
protocol: ScalewayProtocol,
|
|
1076
|
+
retry: Retry.Retry,
|
|
1077
|
+
telemetry: TELEMETRY,
|
|
1078
|
+
span: "GetIP",
|
|
1079
|
+
}));
|
|
1080
|
+
|
|
1081
|
+
export type GetPatRuleError = ScalewayOpError;
|
|
1082
|
+
/** Get a PAT rule Get a PAT rule, specified by its PAT rule ID. The response object gives full details of the PAT rule, including the Public Gateway it belongs to and the configuration settings in terms of public / private ports, private IP and protocol. */
|
|
1083
|
+
export const getPatRule: API.OperationMethod<
|
|
1084
|
+
GetPatRuleRequest,
|
|
1085
|
+
PatRule,
|
|
1086
|
+
GetPatRuleError,
|
|
1087
|
+
ScalewayOpContext
|
|
1088
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1089
|
+
input: __S(44, __c11, 0) as any as S.Schema<GetPatRuleRequest>,
|
|
1090
|
+
output: __S(124, __c31, 0) as any as S.Schema<PatRule>,
|
|
1091
|
+
errors: [],
|
|
1092
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1093
|
+
protocol: ScalewayProtocol,
|
|
1094
|
+
retry: Retry.Retry,
|
|
1095
|
+
telemetry: TELEMETRY,
|
|
1096
|
+
span: "GetPatRule",
|
|
1097
|
+
}));
|
|
1098
|
+
|
|
1099
|
+
export type ListGatewayNetworksError = ScalewayOpError;
|
|
1100
|
+
/** List Public Gateway connections to Private Networks List the connections between Public Gateways and Private Networks (a connection = a GatewayNetwork). You can choose to filter by `gateway-id` to list all Private Networks attached to the specified Public Gateway, or by `private_network_id` to list all Public Gateways attached to the specified Private Network. Other query parameters are also available. The result is an array of GatewayNetwork objects, each giving details of the connection between a given Public Gateway and a given Private Network. */
|
|
1101
|
+
export const listGatewayNetworks: API.PaginatedOperationMethod<
|
|
1102
|
+
ListGatewayNetworksRequest,
|
|
1103
|
+
ListGatewayNetworksResponse,
|
|
1104
|
+
ListGatewayNetworksError,
|
|
1105
|
+
ScalewayOpContext,
|
|
1106
|
+
GatewayNetwork
|
|
1107
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1108
|
+
() => ({
|
|
1109
|
+
input: __S(48, __c12, 0) as any as S.Schema<ListGatewayNetworksRequest>,
|
|
1110
|
+
output: __S(49, __c12, 1) as any as S.Schema<ListGatewayNetworksResponse>,
|
|
1111
|
+
errors: [],
|
|
1112
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1113
|
+
protocol: ScalewayProtocol,
|
|
1114
|
+
retry: Retry.Retry,
|
|
1115
|
+
telemetry: TELEMETRY,
|
|
1116
|
+
span: "ListGatewayNetworks",
|
|
1117
|
+
pagination: {
|
|
1118
|
+
mode: "page",
|
|
1119
|
+
inputToken: "page",
|
|
1120
|
+
outputToken: "total_count",
|
|
1121
|
+
items: "gateway_networks",
|
|
1122
|
+
pageSize: "page_size",
|
|
1123
|
+
} as const,
|
|
1124
|
+
}),
|
|
1125
|
+
paginateByTotalCount,
|
|
1126
|
+
) as any;
|
|
1127
|
+
|
|
1128
|
+
export type ListGatewaysError = ScalewayOpError;
|
|
1129
|
+
/** List Public Gateways List Public Gateways in a given Scaleway Organization or Project. By default, results are displayed in ascending order of creation date. */
|
|
1130
|
+
export const listGateways: API.PaginatedOperationMethod<
|
|
1131
|
+
ListGatewaysRequest,
|
|
1132
|
+
ListGatewaysResponse,
|
|
1133
|
+
ListGatewaysError,
|
|
1134
|
+
ScalewayOpContext,
|
|
1135
|
+
Gateway
|
|
1136
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1137
|
+
() => ({
|
|
1138
|
+
input: __S(56, __c14, 0) as any as S.Schema<ListGatewaysRequest>,
|
|
1139
|
+
output: __S(58, __c14, 2) as any as S.Schema<ListGatewaysResponse>,
|
|
1140
|
+
errors: [],
|
|
1141
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1142
|
+
protocol: ScalewayProtocol,
|
|
1143
|
+
retry: Retry.Retry,
|
|
1144
|
+
telemetry: TELEMETRY,
|
|
1145
|
+
span: "ListGateways",
|
|
1146
|
+
pagination: {
|
|
1147
|
+
mode: "page",
|
|
1148
|
+
inputToken: "page",
|
|
1149
|
+
outputToken: "total_count",
|
|
1150
|
+
items: "gateways",
|
|
1151
|
+
pageSize: "page_size",
|
|
1152
|
+
} as const,
|
|
1153
|
+
}),
|
|
1154
|
+
paginateByTotalCount,
|
|
1155
|
+
) as any;
|
|
1156
|
+
|
|
1157
|
+
export type ListGatewayTypesError = ScalewayOpError;
|
|
1158
|
+
/** List Public Gateway types List the different Public Gateway commercial offer types available at Scaleway. The response is an array of objects describing the name and technical details of each available gateway type. */
|
|
1159
|
+
export const listGatewayTypes: API.OperationMethod<
|
|
1160
|
+
ListGatewayTypesRequest,
|
|
1161
|
+
ListGatewayTypesResponse,
|
|
1162
|
+
ListGatewayTypesError,
|
|
1163
|
+
ScalewayOpContext
|
|
1164
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1165
|
+
input: __S(60, __c15, 0) as any as S.Schema<ListGatewayTypesRequest>,
|
|
1166
|
+
output: __S(63, __c15, 3) as any as S.Schema<ListGatewayTypesResponse>,
|
|
1167
|
+
errors: [],
|
|
1168
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1169
|
+
protocol: ScalewayProtocol,
|
|
1170
|
+
retry: Retry.Retry,
|
|
1171
|
+
telemetry: TELEMETRY,
|
|
1172
|
+
span: "ListGatewayTypes",
|
|
1173
|
+
}));
|
|
1174
|
+
|
|
1175
|
+
export type ListIPsError = ScalewayOpError;
|
|
1176
|
+
/** List IPs List Public Gateway flexible IP addresses. A number of filter options are available for limiting results in the response. */
|
|
1177
|
+
export const listIPs: API.PaginatedOperationMethod<
|
|
1178
|
+
ListIPsRequest,
|
|
1179
|
+
ListIPsResponse,
|
|
1180
|
+
ListIPsError,
|
|
1181
|
+
ScalewayOpContext,
|
|
1182
|
+
IP
|
|
1183
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1184
|
+
() => ({
|
|
1185
|
+
input: __S(64, __c16, 0) as any as S.Schema<ListIPsRequest>,
|
|
1186
|
+
output: __S(66, __c16, 2) as any as S.Schema<ListIPsResponse>,
|
|
1187
|
+
errors: [],
|
|
1188
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1189
|
+
protocol: ScalewayProtocol,
|
|
1190
|
+
retry: Retry.Retry,
|
|
1191
|
+
telemetry: TELEMETRY,
|
|
1192
|
+
span: "ListIPs",
|
|
1193
|
+
pagination: {
|
|
1194
|
+
mode: "page",
|
|
1195
|
+
inputToken: "page",
|
|
1196
|
+
outputToken: "total_count",
|
|
1197
|
+
items: "ips",
|
|
1198
|
+
pageSize: "page_size",
|
|
1199
|
+
} as const,
|
|
1200
|
+
}),
|
|
1201
|
+
paginateByTotalCount,
|
|
1202
|
+
) as any;
|
|
1203
|
+
|
|
1204
|
+
export type ListPatRulesError = ScalewayOpError;
|
|
1205
|
+
/** List PAT rules List PAT rules. You can filter by gateway ID to list all PAT rules for a particular gateway, or filter for PAT rules targeting a specific IP address or using a specific protocol. */
|
|
1206
|
+
export const listPatRules: API.PaginatedOperationMethod<
|
|
1207
|
+
ListPatRulesRequest,
|
|
1208
|
+
ListPatRulesResponse,
|
|
1209
|
+
ListPatRulesError,
|
|
1210
|
+
ScalewayOpContext,
|
|
1211
|
+
PatRule
|
|
1212
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
1213
|
+
() => ({
|
|
1214
|
+
input: __S(68, __c17, 0) as any as S.Schema<ListPatRulesRequest>,
|
|
1215
|
+
output: __S(69, __c17, 1) as any as S.Schema<ListPatRulesResponse>,
|
|
1216
|
+
errors: [],
|
|
1217
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1218
|
+
protocol: ScalewayProtocol,
|
|
1219
|
+
retry: Retry.Retry,
|
|
1220
|
+
telemetry: TELEMETRY,
|
|
1221
|
+
span: "ListPatRules",
|
|
1222
|
+
pagination: {
|
|
1223
|
+
mode: "page",
|
|
1224
|
+
inputToken: "page",
|
|
1225
|
+
outputToken: "total_count",
|
|
1226
|
+
items: "pat_rules",
|
|
1227
|
+
pageSize: "page_size",
|
|
1228
|
+
} as const,
|
|
1229
|
+
}),
|
|
1230
|
+
paginateByTotalCount,
|
|
1231
|
+
) as any;
|
|
1232
|
+
|
|
1233
|
+
export type RefreshSSHKeysError = ScalewayOpError;
|
|
1234
|
+
/** Refresh a Public Gateway's SSH keys Refresh the SSH keys of a given Public Gateway, specified by its gateway ID. This adds any new SSH keys in the gateway's Scaleway Project to the gateway itself. */
|
|
1235
|
+
export const refreshSSHKeys: API.OperationMethod<
|
|
1236
|
+
RefreshSSHKeysRequest,
|
|
1237
|
+
Gateway,
|
|
1238
|
+
RefreshSSHKeysError,
|
|
1239
|
+
ScalewayOpContext
|
|
1240
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1241
|
+
input: __S(76, __c19, 0) as any as S.Schema<RefreshSSHKeysRequest>,
|
|
1242
|
+
output: __S(28, __c7, 0) as any as S.Schema<Gateway>,
|
|
1243
|
+
errors: [],
|
|
1244
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1245
|
+
protocol: ScalewayProtocol,
|
|
1246
|
+
retry: Retry.Retry,
|
|
1247
|
+
telemetry: TELEMETRY,
|
|
1248
|
+
span: "RefreshSSHKeys",
|
|
1249
|
+
}));
|
|
1250
|
+
|
|
1251
|
+
export type SetBastionAllowedIPsError = ScalewayOpError;
|
|
1252
|
+
/** Set all IP ranges allowed for SSH bastion Set a definitive list of IP ranges (in CIDR notation) allowed to connect to the SSH bastion. */
|
|
1253
|
+
export const setBastionAllowedIPs: API.OperationMethod<
|
|
1254
|
+
SetBastionAllowedIPsRequest,
|
|
1255
|
+
SetBastionAllowedIPsResponse,
|
|
1256
|
+
SetBastionAllowedIPsError,
|
|
1257
|
+
ScalewayOpContext
|
|
1258
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1259
|
+
input: __S(84, __c21, 0) as any as S.Schema<SetBastionAllowedIPsRequest>,
|
|
1260
|
+
output: __S(8, __c2, 0) as any as S.Schema<SetBastionAllowedIPsResponse>,
|
|
1261
|
+
errors: [],
|
|
1262
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1263
|
+
protocol: ScalewayProtocol,
|
|
1264
|
+
retry: Retry.Retry,
|
|
1265
|
+
telemetry: TELEMETRY,
|
|
1266
|
+
span: "SetBastionAllowedIPs",
|
|
1267
|
+
}));
|
|
1268
|
+
|
|
1269
|
+
export type SetPatRulesError = ScalewayOpError;
|
|
1270
|
+
/** Set all PAT rules Set a definitive list of PAT rules attached to a Public Gateway. Each rule is identified by its public port and protocol. This will sync the current PAT rule list on the gateway with the new list, creating, updating or deleting PAT rules accordingly. */
|
|
1271
|
+
export const setPatRules: API.OperationMethod<
|
|
1272
|
+
SetPatRulesRequest,
|
|
1273
|
+
SetPatRulesResponse,
|
|
1274
|
+
SetPatRulesError,
|
|
1275
|
+
ScalewayOpContext
|
|
1276
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1277
|
+
input: __S(90, __c22, 2) as any as S.Schema<SetPatRulesRequest>,
|
|
1278
|
+
output: __S(91, __c22, 3) as any as S.Schema<SetPatRulesResponse>,
|
|
1279
|
+
errors: [],
|
|
1280
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1281
|
+
protocol: ScalewayProtocol,
|
|
1282
|
+
retry: Retry.Retry,
|
|
1283
|
+
telemetry: TELEMETRY,
|
|
1284
|
+
span: "SetPatRules",
|
|
1285
|
+
}));
|
|
1286
|
+
|
|
1287
|
+
export type UpdateGatewayError = ScalewayOpError;
|
|
1288
|
+
/** Update a Public Gateway Update the parameters of an existing Public Gateway, for example, its **name**, **tags**, **SSH bastion configuration**, and **DNS servers**. */
|
|
1289
|
+
export const updateGateway: API.OperationMethod<
|
|
1290
|
+
UpdateGatewayRequest,
|
|
1291
|
+
Gateway,
|
|
1292
|
+
UpdateGatewayError,
|
|
1293
|
+
ScalewayOpContext
|
|
1294
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1295
|
+
input: __S(92, __c23, 0) as any as S.Schema<UpdateGatewayRequest>,
|
|
1296
|
+
output: __S(28, __c7, 0) as any as S.Schema<Gateway>,
|
|
1297
|
+
errors: [],
|
|
1298
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1299
|
+
protocol: ScalewayProtocol,
|
|
1300
|
+
retry: Retry.Retry,
|
|
1301
|
+
telemetry: TELEMETRY,
|
|
1302
|
+
span: "UpdateGateway",
|
|
1303
|
+
}));
|
|
1304
|
+
|
|
1305
|
+
export type UpdateGatewayNetworkError = ScalewayOpError;
|
|
1306
|
+
/** Update a Public Gateway's connection to a Private Network Update the configuration parameters of a connection between a given Public Gateway and Private Network (the connection = a GatewayNetwork). Updatable parameters include whether to enable traffic masquerade (dynamic NAT). */
|
|
1307
|
+
export const updateGatewayNetwork: API.OperationMethod<
|
|
1308
|
+
UpdateGatewayNetworkRequest,
|
|
1309
|
+
GatewayNetwork,
|
|
1310
|
+
UpdateGatewayNetworkError,
|
|
1311
|
+
ScalewayOpContext
|
|
1312
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1313
|
+
input: __S(100, __c25, 0) as any as S.Schema<UpdateGatewayNetworkRequest>,
|
|
1314
|
+
output: __S(16, __c4, 0) as any as S.Schema<GatewayNetwork>,
|
|
1315
|
+
errors: [],
|
|
1316
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1317
|
+
protocol: ScalewayProtocol,
|
|
1318
|
+
retry: Retry.Retry,
|
|
1319
|
+
telemetry: TELEMETRY,
|
|
1320
|
+
span: "UpdateGatewayNetwork",
|
|
1321
|
+
}));
|
|
1322
|
+
|
|
1323
|
+
export type UpdateIPError = ScalewayOpError;
|
|
1324
|
+
/** Update an IP Update details of an existing flexible IP address, including its tags, reverse and the Public Gateway it is assigned to. */
|
|
1325
|
+
export const updateIP: API.OperationMethod<UpdateIPRequest, IP, UpdateIPError, ScalewayOpContext> =
|
|
1326
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1327
|
+
input: __S(104, __c26, 0) as any as S.Schema<UpdateIPRequest>,
|
|
1328
|
+
output: __S(20, __c5, 0) as any as S.Schema<IP>,
|
|
1329
|
+
errors: [],
|
|
1330
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1331
|
+
protocol: ScalewayProtocol,
|
|
1332
|
+
retry: Retry.Retry,
|
|
1333
|
+
telemetry: TELEMETRY,
|
|
1334
|
+
span: "UpdateIP",
|
|
1335
|
+
}));
|
|
1336
|
+
|
|
1337
|
+
export type UpdatePatRuleError = ScalewayOpError;
|
|
1338
|
+
/** Update a PAT rule Update a PAT rule, specified by its PAT rule ID. Configuration settings including private/public port, private IP address and protocol can all be updated. */
|
|
1339
|
+
export const updatePatRule: API.OperationMethod<
|
|
1340
|
+
UpdatePatRuleRequest,
|
|
1341
|
+
PatRule,
|
|
1342
|
+
UpdatePatRuleError,
|
|
1343
|
+
ScalewayOpContext
|
|
1344
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1345
|
+
input: __S(108, __c27, 0) as any as S.Schema<UpdatePatRuleRequest>,
|
|
1346
|
+
output: __S(124, __c31, 0) as any as S.Schema<PatRule>,
|
|
1347
|
+
errors: [],
|
|
1348
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1349
|
+
protocol: ScalewayProtocol,
|
|
1350
|
+
retry: Retry.Retry,
|
|
1351
|
+
telemetry: TELEMETRY,
|
|
1352
|
+
span: "UpdatePatRule",
|
|
1353
|
+
}));
|
|
1354
|
+
|
|
1355
|
+
export type UpgradeGatewayError = ScalewayOpError;
|
|
1356
|
+
/** Upgrade a Public Gateway to the latest version and/or to a different commercial offer type Upgrade a given Public Gateway to the newest software version or to a different commercial offer type. This applies the latest bugfixes and features to your Public Gateway. Note that gateway service will be interrupted during the update. */
|
|
1357
|
+
export const upgradeGateway: API.OperationMethod<
|
|
1358
|
+
UpgradeGatewayRequest,
|
|
1359
|
+
Gateway,
|
|
1360
|
+
UpgradeGatewayError,
|
|
1361
|
+
ScalewayOpContext
|
|
1362
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1363
|
+
input: __S(112, __c28, 0) as any as S.Schema<UpgradeGatewayRequest>,
|
|
1364
|
+
output: __S(28, __c7, 0) as any as S.Schema<Gateway>,
|
|
1365
|
+
errors: [],
|
|
1366
|
+
serviceErrors: ScalewayServiceErrors,
|
|
1367
|
+
protocol: ScalewayProtocol,
|
|
1368
|
+
retry: Retry.Retry,
|
|
1369
|
+
telemetry: TELEMETRY,
|
|
1370
|
+
span: "UpgradeGateway",
|
|
1371
|
+
}));
|
|
1372
|
+
|
|
1373
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
1374
|
+
function __c0(j: number): any {
|
|
1375
|
+
switch (j) {
|
|
1376
|
+
case 0:
|
|
1377
|
+
return S.suspend(() =>
|
|
1378
|
+
S.Struct({
|
|
1379
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1380
|
+
gateway_id: S.String.pipe(T.Label()),
|
|
1381
|
+
ip_range: S.optional(S.String),
|
|
1382
|
+
}).pipe(
|
|
1383
|
+
T.Http({
|
|
1384
|
+
method: "POST",
|
|
1385
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}/bastion-allowed-ips",
|
|
1386
|
+
code: 200,
|
|
1387
|
+
baseUrl: "https://api.scaleway.com",
|
|
1388
|
+
}),
|
|
1389
|
+
),
|
|
1390
|
+
).annotate({ identifier: "AddBastionAllowedIPsRequest" });
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
function __c1(j: number): any {
|
|
1394
|
+
switch (j) {
|
|
1395
|
+
case 0:
|
|
1396
|
+
return S.Array(S.String);
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
function __c2(j: number): any {
|
|
1400
|
+
switch (j) {
|
|
1401
|
+
case 0:
|
|
1402
|
+
return S.suspend(() =>
|
|
1403
|
+
S.Struct({
|
|
1404
|
+
ip_ranges: S.optional(__S(4, __c1, 0)),
|
|
1405
|
+
}),
|
|
1406
|
+
).annotate({ identifier: "AddBastionAllowedIPsResponse" });
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
function __c3(j: number): any {
|
|
1410
|
+
switch (j) {
|
|
1411
|
+
case 0:
|
|
1412
|
+
return S.suspend(() =>
|
|
1413
|
+
S.Struct({
|
|
1414
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1415
|
+
project_id: S.optional(S.String),
|
|
1416
|
+
name: S.optional(S.String),
|
|
1417
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
1418
|
+
type: S.optional(S.String),
|
|
1419
|
+
ip_id: S.optional(S.NullOr(S.String)),
|
|
1420
|
+
enable_smtp: S.optional(S.Boolean),
|
|
1421
|
+
enable_bastion: S.optional(S.Boolean),
|
|
1422
|
+
bastion_port: S.optional(S.NullOr(S.Number)),
|
|
1423
|
+
}).pipe(
|
|
1424
|
+
T.Http({
|
|
1425
|
+
method: "POST",
|
|
1426
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways",
|
|
1427
|
+
code: 200,
|
|
1428
|
+
baseUrl: "https://api.scaleway.com",
|
|
1429
|
+
}),
|
|
1430
|
+
),
|
|
1431
|
+
).annotate({ identifier: "CreateGatewayRequest" });
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
function __c4(j: number): any {
|
|
1435
|
+
switch (j) {
|
|
1436
|
+
case 0:
|
|
1437
|
+
return S.suspend(() =>
|
|
1438
|
+
S.Struct({
|
|
1439
|
+
id: S.optional(S.String),
|
|
1440
|
+
srn: S.optional(S.String),
|
|
1441
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1442
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1443
|
+
gateway_id: S.optional(S.String),
|
|
1444
|
+
private_network_id: S.optional(S.String),
|
|
1445
|
+
mac_address: S.optional(S.NullOr(S.String)),
|
|
1446
|
+
masquerade_enabled: S.optional(S.Boolean),
|
|
1447
|
+
status: S.optional(S.String),
|
|
1448
|
+
push_default_route: S.optional(S.Boolean),
|
|
1449
|
+
ipam_ip_id: S.optional(S.String),
|
|
1450
|
+
zone: S.optional(S.String),
|
|
1451
|
+
}),
|
|
1452
|
+
).annotate({ identifier: "GatewayNetwork" });
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
function __c5(j: number): any {
|
|
1456
|
+
switch (j) {
|
|
1457
|
+
case 0:
|
|
1458
|
+
return S.suspend(() =>
|
|
1459
|
+
S.Struct({
|
|
1460
|
+
id: S.optional(S.String),
|
|
1461
|
+
srn: S.optional(S.String),
|
|
1462
|
+
organization_id: S.optional(S.String),
|
|
1463
|
+
project_id: S.optional(S.String),
|
|
1464
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1465
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1466
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
1467
|
+
address: S.optional(S.String),
|
|
1468
|
+
reverse: S.optional(S.NullOr(S.String)),
|
|
1469
|
+
gateway_id: S.optional(S.NullOr(S.String)),
|
|
1470
|
+
zone: S.optional(S.String),
|
|
1471
|
+
}),
|
|
1472
|
+
).annotate({ identifier: "IP" });
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
function __c6(j: number): any {
|
|
1476
|
+
switch (j) {
|
|
1477
|
+
case 0:
|
|
1478
|
+
return S.Array(__S(16, __c4, 0));
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
function __c7(j: number): any {
|
|
1482
|
+
switch (j) {
|
|
1483
|
+
case 0:
|
|
1484
|
+
return S.suspend(() =>
|
|
1485
|
+
S.Struct({
|
|
1486
|
+
id: S.optional(S.String),
|
|
1487
|
+
srn: S.optional(S.String),
|
|
1488
|
+
organization_id: S.optional(S.String),
|
|
1489
|
+
project_id: S.optional(S.String),
|
|
1490
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1491
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1492
|
+
type: S.optional(S.String),
|
|
1493
|
+
bandwidth: S.optional(S.Number),
|
|
1494
|
+
status: S.optional(S.String),
|
|
1495
|
+
name: S.optional(S.String),
|
|
1496
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
1497
|
+
ipv4: S.optional(__S(20, __c5, 0)),
|
|
1498
|
+
gateway_networks: S.optional(__S(24, __c6, 0)),
|
|
1499
|
+
version: S.optional(S.NullOr(S.String)),
|
|
1500
|
+
can_upgrade_to: S.optional(S.NullOr(S.String)),
|
|
1501
|
+
bastion_enabled: S.optional(S.Boolean),
|
|
1502
|
+
bastion_port: S.optional(S.Number),
|
|
1503
|
+
smtp_enabled: S.optional(S.Boolean),
|
|
1504
|
+
is_legacy: S.optional(S.Boolean),
|
|
1505
|
+
bastion_allowed_ips: S.optional(__S(4, __c1, 0)),
|
|
1506
|
+
zone: S.optional(S.String),
|
|
1507
|
+
}),
|
|
1508
|
+
).annotate({ identifier: "Gateway" });
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
function __c8(j: number): any {
|
|
1512
|
+
switch (j) {
|
|
1513
|
+
case 0:
|
|
1514
|
+
return S.suspend(() =>
|
|
1515
|
+
S.Struct({
|
|
1516
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1517
|
+
gateway_id: S.String.pipe(T.Label()),
|
|
1518
|
+
}).pipe(
|
|
1519
|
+
T.Http({
|
|
1520
|
+
method: "GET",
|
|
1521
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}",
|
|
1522
|
+
code: 200,
|
|
1523
|
+
baseUrl: "https://api.scaleway.com",
|
|
1524
|
+
}),
|
|
1525
|
+
),
|
|
1526
|
+
).annotate({ identifier: "GetGatewayRequest" });
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
function __c9(j: number): any {
|
|
1530
|
+
switch (j) {
|
|
1531
|
+
case 0:
|
|
1532
|
+
return S.suspend(() =>
|
|
1533
|
+
S.Struct({
|
|
1534
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1535
|
+
gateway_network_id: S.String.pipe(T.Label()),
|
|
1536
|
+
}).pipe(
|
|
1537
|
+
T.Http({
|
|
1538
|
+
method: "GET",
|
|
1539
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateway-networks/{gateway_network_id}",
|
|
1540
|
+
code: 200,
|
|
1541
|
+
baseUrl: "https://api.scaleway.com",
|
|
1542
|
+
}),
|
|
1543
|
+
),
|
|
1544
|
+
).annotate({ identifier: "GetGatewayNetworkRequest" });
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
function __c10(j: number): any {
|
|
1548
|
+
switch (j) {
|
|
1549
|
+
case 0:
|
|
1550
|
+
return S.suspend(() =>
|
|
1551
|
+
S.Struct({
|
|
1552
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1553
|
+
ip_id: S.String.pipe(T.Label()),
|
|
1554
|
+
}).pipe(
|
|
1555
|
+
T.Http({
|
|
1556
|
+
method: "GET",
|
|
1557
|
+
uri: "/vpc-gw/v2/zones/{zone}/ips/{ip_id}",
|
|
1558
|
+
code: 200,
|
|
1559
|
+
baseUrl: "https://api.scaleway.com",
|
|
1560
|
+
}),
|
|
1561
|
+
),
|
|
1562
|
+
).annotate({ identifier: "GetIPRequest" });
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
function __c11(j: number): any {
|
|
1566
|
+
switch (j) {
|
|
1567
|
+
case 0:
|
|
1568
|
+
return S.suspend(() =>
|
|
1569
|
+
S.Struct({
|
|
1570
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1571
|
+
pat_rule_id: S.String.pipe(T.Label()),
|
|
1572
|
+
}).pipe(
|
|
1573
|
+
T.Http({
|
|
1574
|
+
method: "GET",
|
|
1575
|
+
uri: "/vpc-gw/v2/zones/{zone}/pat-rules/{pat_rule_id}",
|
|
1576
|
+
code: 200,
|
|
1577
|
+
baseUrl: "https://api.scaleway.com",
|
|
1578
|
+
}),
|
|
1579
|
+
),
|
|
1580
|
+
).annotate({ identifier: "GetPatRuleRequest" });
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
function __c12(j: number): any {
|
|
1584
|
+
switch (j) {
|
|
1585
|
+
case 0:
|
|
1586
|
+
return S.suspend(() =>
|
|
1587
|
+
S.Struct({
|
|
1588
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1589
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1590
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1591
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1592
|
+
status: S.optional(__S(52, __c13, 0).pipe(T.Query())),
|
|
1593
|
+
gateway_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1594
|
+
private_network_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1595
|
+
masquerade_enabled: S.optional(S.Boolean.pipe(T.Query())),
|
|
1596
|
+
}).pipe(
|
|
1597
|
+
T.Http({
|
|
1598
|
+
method: "GET",
|
|
1599
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateway-networks",
|
|
1600
|
+
code: 200,
|
|
1601
|
+
baseUrl: "https://api.scaleway.com",
|
|
1602
|
+
}),
|
|
1603
|
+
),
|
|
1604
|
+
).annotate({ identifier: "ListGatewayNetworksRequest" });
|
|
1605
|
+
case 1:
|
|
1606
|
+
return S.suspend(() =>
|
|
1607
|
+
S.Struct({
|
|
1608
|
+
gateway_networks: __S(24, __c6, 0),
|
|
1609
|
+
total_count: S.optional(S.Number),
|
|
1610
|
+
}),
|
|
1611
|
+
).annotate({ identifier: "ListGatewayNetworksResponse" });
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
function __c13(j: number): any {
|
|
1615
|
+
switch (j) {
|
|
1616
|
+
case 0:
|
|
1617
|
+
return S.Array(S.String);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
function __c14(j: number): any {
|
|
1621
|
+
switch (j) {
|
|
1622
|
+
case 0:
|
|
1623
|
+
return S.suspend(() =>
|
|
1624
|
+
S.Struct({
|
|
1625
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1626
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1627
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1628
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1629
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
1630
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
1631
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
1632
|
+
tags: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1633
|
+
types: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1634
|
+
status: S.optional(__S(52, __c13, 0).pipe(T.Query())),
|
|
1635
|
+
private_network_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1636
|
+
include_legacy: S.optional(S.Boolean.pipe(T.Query())),
|
|
1637
|
+
}).pipe(
|
|
1638
|
+
T.Http({
|
|
1639
|
+
method: "GET",
|
|
1640
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways",
|
|
1641
|
+
code: 200,
|
|
1642
|
+
baseUrl: "https://api.scaleway.com",
|
|
1643
|
+
}),
|
|
1644
|
+
),
|
|
1645
|
+
).annotate({ identifier: "ListGatewaysRequest" });
|
|
1646
|
+
case 1:
|
|
1647
|
+
return S.Array(__S(28, __c7, 0));
|
|
1648
|
+
case 2:
|
|
1649
|
+
return S.suspend(() =>
|
|
1650
|
+
S.Struct({
|
|
1651
|
+
gateways: __S(57, __c14, 1),
|
|
1652
|
+
total_count: S.optional(S.Number),
|
|
1653
|
+
}),
|
|
1654
|
+
).annotate({ identifier: "ListGatewaysResponse" });
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
function __c15(j: number): any {
|
|
1658
|
+
switch (j) {
|
|
1659
|
+
case 0:
|
|
1660
|
+
return S.suspend(() =>
|
|
1661
|
+
S.Struct({
|
|
1662
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1663
|
+
}).pipe(
|
|
1664
|
+
T.Http({
|
|
1665
|
+
method: "GET",
|
|
1666
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateway-types",
|
|
1667
|
+
code: 200,
|
|
1668
|
+
baseUrl: "https://api.scaleway.com",
|
|
1669
|
+
}),
|
|
1670
|
+
),
|
|
1671
|
+
).annotate({ identifier: "ListGatewayTypesRequest" });
|
|
1672
|
+
case 1:
|
|
1673
|
+
return S.suspend(() =>
|
|
1674
|
+
S.Struct({
|
|
1675
|
+
name: S.optional(S.String),
|
|
1676
|
+
bandwidth: S.optional(S.Number),
|
|
1677
|
+
zone: S.optional(S.String),
|
|
1678
|
+
}),
|
|
1679
|
+
).annotate({ identifier: "GatewayType" });
|
|
1680
|
+
case 2:
|
|
1681
|
+
return S.Array(__S(61, __c15, 1));
|
|
1682
|
+
case 3:
|
|
1683
|
+
return S.suspend(() =>
|
|
1684
|
+
S.Struct({
|
|
1685
|
+
types: S.optional(__S(62, __c15, 2)),
|
|
1686
|
+
}),
|
|
1687
|
+
).annotate({ identifier: "ListGatewayTypesResponse" });
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
function __c16(j: number): any {
|
|
1691
|
+
switch (j) {
|
|
1692
|
+
case 0:
|
|
1693
|
+
return S.suspend(() =>
|
|
1694
|
+
S.Struct({
|
|
1695
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1696
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1697
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1698
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1699
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
1700
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
1701
|
+
tags: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1702
|
+
reverse: S.optional(S.String.pipe(T.Query())),
|
|
1703
|
+
is_free: S.optional(S.Boolean.pipe(T.Query())),
|
|
1704
|
+
}).pipe(
|
|
1705
|
+
T.Http({
|
|
1706
|
+
method: "GET",
|
|
1707
|
+
uri: "/vpc-gw/v2/zones/{zone}/ips",
|
|
1708
|
+
code: 200,
|
|
1709
|
+
baseUrl: "https://api.scaleway.com",
|
|
1710
|
+
}),
|
|
1711
|
+
),
|
|
1712
|
+
).annotate({ identifier: "ListIPsRequest" });
|
|
1713
|
+
case 1:
|
|
1714
|
+
return S.Array(__S(20, __c5, 0));
|
|
1715
|
+
case 2:
|
|
1716
|
+
return S.suspend(() =>
|
|
1717
|
+
S.Struct({
|
|
1718
|
+
ips: __S(65, __c16, 1),
|
|
1719
|
+
total_count: S.optional(S.Number),
|
|
1720
|
+
}),
|
|
1721
|
+
).annotate({ identifier: "ListIPsResponse" });
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
function __c17(j: number): any {
|
|
1725
|
+
switch (j) {
|
|
1726
|
+
case 0:
|
|
1727
|
+
return S.suspend(() =>
|
|
1728
|
+
S.Struct({
|
|
1729
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1730
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
1731
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1732
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1733
|
+
gateway_ids: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1734
|
+
private_ips: S.optional(__S(4, __c1, 0).pipe(T.Query())),
|
|
1735
|
+
protocol: S.optional(S.String.pipe(T.Query())),
|
|
1736
|
+
}).pipe(
|
|
1737
|
+
T.Http({
|
|
1738
|
+
method: "GET",
|
|
1739
|
+
uri: "/vpc-gw/v2/zones/{zone}/pat-rules",
|
|
1740
|
+
code: 200,
|
|
1741
|
+
baseUrl: "https://api.scaleway.com",
|
|
1742
|
+
}),
|
|
1743
|
+
),
|
|
1744
|
+
).annotate({ identifier: "ListPatRulesRequest" });
|
|
1745
|
+
case 1:
|
|
1746
|
+
return S.suspend(() =>
|
|
1747
|
+
S.Struct({
|
|
1748
|
+
pat_rules: __S(72, __c18, 0),
|
|
1749
|
+
total_count: S.optional(S.Number),
|
|
1750
|
+
}),
|
|
1751
|
+
).annotate({ identifier: "ListPatRulesResponse" });
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
function __c18(j: number): any {
|
|
1755
|
+
switch (j) {
|
|
1756
|
+
case 0:
|
|
1757
|
+
return S.Array(__S(124, __c31, 0));
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
function __c19(j: number): any {
|
|
1761
|
+
switch (j) {
|
|
1762
|
+
case 0:
|
|
1763
|
+
return S.suspend(() =>
|
|
1764
|
+
S.Struct({
|
|
1765
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1766
|
+
gateway_id: S.String.pipe(T.Label()),
|
|
1767
|
+
}).pipe(
|
|
1768
|
+
T.Http({
|
|
1769
|
+
method: "POST",
|
|
1770
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}/refresh-ssh-keys",
|
|
1771
|
+
code: 200,
|
|
1772
|
+
baseUrl: "https://api.scaleway.com",
|
|
1773
|
+
}),
|
|
1774
|
+
),
|
|
1775
|
+
).annotate({ identifier: "RefreshSSHKeysRequest" });
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
function __c20(j: number): any {
|
|
1779
|
+
switch (j) {
|
|
1780
|
+
case 0:
|
|
1781
|
+
return S.suspend(() =>
|
|
1782
|
+
S.Struct({
|
|
1783
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1784
|
+
gateway_id: S.optional(S.String),
|
|
1785
|
+
private_network_id: S.optional(S.String),
|
|
1786
|
+
enable_masquerade: S.optional(S.Boolean),
|
|
1787
|
+
push_default_route: S.optional(S.Boolean),
|
|
1788
|
+
ipam_ip_id: S.optional(S.NullOr(S.String)),
|
|
1789
|
+
}).pipe(
|
|
1790
|
+
T.Http({
|
|
1791
|
+
method: "POST",
|
|
1792
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateway-networks",
|
|
1793
|
+
code: 200,
|
|
1794
|
+
baseUrl: "https://api.scaleway.com",
|
|
1795
|
+
}),
|
|
1796
|
+
),
|
|
1797
|
+
).annotate({ identifier: "CreateGatewayNetworkRequest" });
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
function __c21(j: number): any {
|
|
1801
|
+
switch (j) {
|
|
1802
|
+
case 0:
|
|
1803
|
+
return S.suspend(() =>
|
|
1804
|
+
S.Struct({
|
|
1805
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1806
|
+
gateway_id: S.String.pipe(T.Label()),
|
|
1807
|
+
ip_ranges: S.optional(__S(4, __c1, 0)),
|
|
1808
|
+
}).pipe(
|
|
1809
|
+
T.Http({
|
|
1810
|
+
method: "PUT",
|
|
1811
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}/bastion-allowed-ips",
|
|
1812
|
+
code: 200,
|
|
1813
|
+
baseUrl: "https://api.scaleway.com",
|
|
1814
|
+
}),
|
|
1815
|
+
),
|
|
1816
|
+
).annotate({ identifier: "SetBastionAllowedIPsRequest" });
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
function __c22(j: number): any {
|
|
1820
|
+
switch (j) {
|
|
1821
|
+
case 0:
|
|
1822
|
+
return S.suspend(() =>
|
|
1823
|
+
S.Struct({
|
|
1824
|
+
public_port: S.optional(S.Number),
|
|
1825
|
+
private_ip: S.optional(S.String),
|
|
1826
|
+
private_port: S.optional(S.Number),
|
|
1827
|
+
protocol: S.optional(S.String),
|
|
1828
|
+
}),
|
|
1829
|
+
).annotate({ identifier: "SetPatRulesRequestRule" });
|
|
1830
|
+
case 1:
|
|
1831
|
+
return S.Array(__S(88, __c22, 0));
|
|
1832
|
+
case 2:
|
|
1833
|
+
return S.suspend(() =>
|
|
1834
|
+
S.Struct({
|
|
1835
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1836
|
+
gateway_id: S.optional(S.String),
|
|
1837
|
+
pat_rules: __S(89, __c22, 1),
|
|
1838
|
+
}).pipe(
|
|
1839
|
+
T.Http({
|
|
1840
|
+
method: "PUT",
|
|
1841
|
+
uri: "/vpc-gw/v2/zones/{zone}/pat-rules",
|
|
1842
|
+
code: 200,
|
|
1843
|
+
baseUrl: "https://api.scaleway.com",
|
|
1844
|
+
}),
|
|
1845
|
+
),
|
|
1846
|
+
).annotate({ identifier: "SetPatRulesRequest" });
|
|
1847
|
+
case 3:
|
|
1848
|
+
return S.suspend(() =>
|
|
1849
|
+
S.Struct({
|
|
1850
|
+
pat_rules: S.optional(__S(72, __c18, 0)),
|
|
1851
|
+
}),
|
|
1852
|
+
).annotate({ identifier: "SetPatRulesResponse" });
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
function __c23(j: number): any {
|
|
1856
|
+
switch (j) {
|
|
1857
|
+
case 0:
|
|
1858
|
+
return S.suspend(() =>
|
|
1859
|
+
S.Struct({
|
|
1860
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1861
|
+
gateway_id: S.String.pipe(T.Label()),
|
|
1862
|
+
name: S.optional(S.NullOr(S.String)),
|
|
1863
|
+
tags: S.optional(S.NullOr(__S(96, __c24, 0))),
|
|
1864
|
+
enable_bastion: S.optional(S.NullOr(S.Boolean)),
|
|
1865
|
+
bastion_port: S.optional(S.NullOr(S.Number)),
|
|
1866
|
+
enable_smtp: S.optional(S.NullOr(S.Boolean)),
|
|
1867
|
+
}).pipe(
|
|
1868
|
+
T.Http({
|
|
1869
|
+
method: "PATCH",
|
|
1870
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}",
|
|
1871
|
+
code: 200,
|
|
1872
|
+
baseUrl: "https://api.scaleway.com",
|
|
1873
|
+
}),
|
|
1874
|
+
),
|
|
1875
|
+
).annotate({ identifier: "UpdateGatewayRequest" });
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
function __c24(j: number): any {
|
|
1879
|
+
switch (j) {
|
|
1880
|
+
case 0:
|
|
1881
|
+
return S.Array(S.Unknown);
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
function __c25(j: number): any {
|
|
1885
|
+
switch (j) {
|
|
1886
|
+
case 0:
|
|
1887
|
+
return S.suspend(() =>
|
|
1888
|
+
S.Struct({
|
|
1889
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1890
|
+
gateway_network_id: S.String.pipe(T.Label()),
|
|
1891
|
+
enable_masquerade: S.optional(S.NullOr(S.Boolean)),
|
|
1892
|
+
push_default_route: S.optional(S.NullOr(S.Boolean)),
|
|
1893
|
+
ipam_ip_id: S.optional(S.NullOr(S.String)),
|
|
1894
|
+
}).pipe(
|
|
1895
|
+
T.Http({
|
|
1896
|
+
method: "PATCH",
|
|
1897
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateway-networks/{gateway_network_id}",
|
|
1898
|
+
code: 200,
|
|
1899
|
+
baseUrl: "https://api.scaleway.com",
|
|
1900
|
+
}),
|
|
1901
|
+
),
|
|
1902
|
+
).annotate({ identifier: "UpdateGatewayNetworkRequest" });
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
function __c26(j: number): any {
|
|
1906
|
+
switch (j) {
|
|
1907
|
+
case 0:
|
|
1908
|
+
return S.suspend(() =>
|
|
1909
|
+
S.Struct({
|
|
1910
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1911
|
+
ip_id: S.String.pipe(T.Label()),
|
|
1912
|
+
tags: S.optional(S.NullOr(__S(96, __c24, 0))),
|
|
1913
|
+
reverse: S.optional(S.NullOr(S.String)),
|
|
1914
|
+
gateway_id: S.optional(S.NullOr(S.String)),
|
|
1915
|
+
}).pipe(
|
|
1916
|
+
T.Http({
|
|
1917
|
+
method: "PATCH",
|
|
1918
|
+
uri: "/vpc-gw/v2/zones/{zone}/ips/{ip_id}",
|
|
1919
|
+
code: 200,
|
|
1920
|
+
baseUrl: "https://api.scaleway.com",
|
|
1921
|
+
}),
|
|
1922
|
+
),
|
|
1923
|
+
).annotate({ identifier: "UpdateIPRequest" });
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
function __c27(j: number): any {
|
|
1927
|
+
switch (j) {
|
|
1928
|
+
case 0:
|
|
1929
|
+
return S.suspend(() =>
|
|
1930
|
+
S.Struct({
|
|
1931
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1932
|
+
pat_rule_id: S.String.pipe(T.Label()),
|
|
1933
|
+
public_port: S.optional(S.NullOr(S.Number)),
|
|
1934
|
+
private_ip: S.optional(S.NullOr(S.String)),
|
|
1935
|
+
private_port: S.optional(S.NullOr(S.Number)),
|
|
1936
|
+
protocol: S.optional(S.String),
|
|
1937
|
+
}).pipe(
|
|
1938
|
+
T.Http({
|
|
1939
|
+
method: "PATCH",
|
|
1940
|
+
uri: "/vpc-gw/v2/zones/{zone}/pat-rules/{pat_rule_id}",
|
|
1941
|
+
code: 200,
|
|
1942
|
+
baseUrl: "https://api.scaleway.com",
|
|
1943
|
+
}),
|
|
1944
|
+
),
|
|
1945
|
+
).annotate({ identifier: "UpdatePatRuleRequest" });
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
function __c28(j: number): any {
|
|
1949
|
+
switch (j) {
|
|
1950
|
+
case 0:
|
|
1951
|
+
return S.suspend(() =>
|
|
1952
|
+
S.Struct({
|
|
1953
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1954
|
+
gateway_id: S.String.pipe(T.Label()),
|
|
1955
|
+
type: S.optional(S.NullOr(S.String)),
|
|
1956
|
+
}).pipe(
|
|
1957
|
+
T.Http({
|
|
1958
|
+
method: "POST",
|
|
1959
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}/upgrade",
|
|
1960
|
+
code: 200,
|
|
1961
|
+
baseUrl: "https://api.scaleway.com",
|
|
1962
|
+
}),
|
|
1963
|
+
),
|
|
1964
|
+
).annotate({ identifier: "UpgradeGatewayRequest" });
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
function __c29(j: number): any {
|
|
1968
|
+
switch (j) {
|
|
1969
|
+
case 0:
|
|
1970
|
+
return S.suspend(() =>
|
|
1971
|
+
S.Struct({
|
|
1972
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1973
|
+
project_id: S.optional(S.String),
|
|
1974
|
+
tags: S.optional(__S(4, __c1, 0)),
|
|
1975
|
+
}).pipe(
|
|
1976
|
+
T.Http({
|
|
1977
|
+
method: "POST",
|
|
1978
|
+
uri: "/vpc-gw/v2/zones/{zone}/ips",
|
|
1979
|
+
code: 200,
|
|
1980
|
+
baseUrl: "https://api.scaleway.com",
|
|
1981
|
+
}),
|
|
1982
|
+
),
|
|
1983
|
+
).annotate({ identifier: "CreateIPRequest" });
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
function __c30(j: number): any {
|
|
1987
|
+
switch (j) {
|
|
1988
|
+
case 0:
|
|
1989
|
+
return S.suspend(() =>
|
|
1990
|
+
S.Struct({
|
|
1991
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
1992
|
+
gateway_id: S.optional(S.String),
|
|
1993
|
+
public_port: S.optional(S.Number),
|
|
1994
|
+
private_ip: S.optional(S.String),
|
|
1995
|
+
private_port: S.optional(S.Number),
|
|
1996
|
+
protocol: S.optional(S.String),
|
|
1997
|
+
}).pipe(
|
|
1998
|
+
T.Http({
|
|
1999
|
+
method: "POST",
|
|
2000
|
+
uri: "/vpc-gw/v2/zones/{zone}/pat-rules",
|
|
2001
|
+
code: 200,
|
|
2002
|
+
baseUrl: "https://api.scaleway.com",
|
|
2003
|
+
}),
|
|
2004
|
+
),
|
|
2005
|
+
).annotate({ identifier: "CreatePatRuleRequest" });
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
function __c31(j: number): any {
|
|
2009
|
+
switch (j) {
|
|
2010
|
+
case 0:
|
|
2011
|
+
return S.suspend(() =>
|
|
2012
|
+
S.Struct({
|
|
2013
|
+
id: S.optional(S.String),
|
|
2014
|
+
srn: S.optional(S.String),
|
|
2015
|
+
gateway_id: S.optional(S.String),
|
|
2016
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
2017
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
2018
|
+
public_port: S.optional(S.Number),
|
|
2019
|
+
private_ip: S.optional(S.String),
|
|
2020
|
+
private_port: S.optional(S.Number),
|
|
2021
|
+
protocol: S.optional(S.String),
|
|
2022
|
+
zone: S.optional(S.String),
|
|
2023
|
+
}),
|
|
2024
|
+
).annotate({ identifier: "PatRule" });
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
function __c32(j: number): any {
|
|
2028
|
+
switch (j) {
|
|
2029
|
+
case 0:
|
|
2030
|
+
return S.suspend(() =>
|
|
2031
|
+
S.Struct({
|
|
2032
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
2033
|
+
gateway_id: S.String.pipe(T.Label()),
|
|
2034
|
+
ip_range: S.String.pipe(T.Label()),
|
|
2035
|
+
}).pipe(
|
|
2036
|
+
T.Http({
|
|
2037
|
+
method: "DELETE",
|
|
2038
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}/bastion-allowed-ips/{ip_range}",
|
|
2039
|
+
code: 200,
|
|
2040
|
+
baseUrl: "https://api.scaleway.com",
|
|
2041
|
+
}),
|
|
2042
|
+
),
|
|
2043
|
+
).annotate({ identifier: "DeleteBastionAllowedIPsRequest" });
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
function __c33(j: number): any {
|
|
2047
|
+
switch (j) {
|
|
2048
|
+
case 0:
|
|
2049
|
+
return S.suspend(() => S.Struct({})).annotate({
|
|
2050
|
+
identifier: "DeleteBastionAllowedIPsResponse",
|
|
2051
|
+
});
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
function __c34(j: number): any {
|
|
2055
|
+
switch (j) {
|
|
2056
|
+
case 0:
|
|
2057
|
+
return S.suspend(() =>
|
|
2058
|
+
S.Struct({
|
|
2059
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
2060
|
+
gateway_id: S.String.pipe(T.Label()),
|
|
2061
|
+
delete_ip: S.Boolean.pipe(T.Query()),
|
|
2062
|
+
}).pipe(
|
|
2063
|
+
T.Http({
|
|
2064
|
+
method: "DELETE",
|
|
2065
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateways/{gateway_id}",
|
|
2066
|
+
code: 200,
|
|
2067
|
+
baseUrl: "https://api.scaleway.com",
|
|
2068
|
+
}),
|
|
2069
|
+
),
|
|
2070
|
+
).annotate({ identifier: "DeleteGatewayRequest" });
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
function __c35(j: number): any {
|
|
2074
|
+
switch (j) {
|
|
2075
|
+
case 0:
|
|
2076
|
+
return S.suspend(() =>
|
|
2077
|
+
S.Struct({
|
|
2078
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
2079
|
+
gateway_network_id: S.String.pipe(T.Label()),
|
|
2080
|
+
}).pipe(
|
|
2081
|
+
T.Http({
|
|
2082
|
+
method: "DELETE",
|
|
2083
|
+
uri: "/vpc-gw/v2/zones/{zone}/gateway-networks/{gateway_network_id}",
|
|
2084
|
+
code: 200,
|
|
2085
|
+
baseUrl: "https://api.scaleway.com",
|
|
2086
|
+
}),
|
|
2087
|
+
),
|
|
2088
|
+
).annotate({ identifier: "DeleteGatewayNetworkRequest" });
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
function __c36(j: number): any {
|
|
2092
|
+
switch (j) {
|
|
2093
|
+
case 0:
|
|
2094
|
+
return S.suspend(() =>
|
|
2095
|
+
S.Struct({
|
|
2096
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
2097
|
+
ip_id: S.String.pipe(T.Label()),
|
|
2098
|
+
}).pipe(
|
|
2099
|
+
T.Http({
|
|
2100
|
+
method: "DELETE",
|
|
2101
|
+
uri: "/vpc-gw/v2/zones/{zone}/ips/{ip_id}",
|
|
2102
|
+
code: 200,
|
|
2103
|
+
baseUrl: "https://api.scaleway.com",
|
|
2104
|
+
}),
|
|
2105
|
+
),
|
|
2106
|
+
).annotate({ identifier: "DeleteIPRequest" });
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
function __c37(j: number): any {
|
|
2110
|
+
switch (j) {
|
|
2111
|
+
case 0:
|
|
2112
|
+
return S.suspend(() =>
|
|
2113
|
+
S.Struct({
|
|
2114
|
+
zone: S.optional(S.String.pipe(T.Label())),
|
|
2115
|
+
pat_rule_id: S.String.pipe(T.Label()),
|
|
2116
|
+
}).pipe(
|
|
2117
|
+
T.Http({
|
|
2118
|
+
method: "DELETE",
|
|
2119
|
+
uri: "/vpc-gw/v2/zones/{zone}/pat-rules/{pat_rule_id}",
|
|
2120
|
+
code: 200,
|
|
2121
|
+
baseUrl: "https://api.scaleway.com",
|
|
2122
|
+
}),
|
|
2123
|
+
),
|
|
2124
|
+
).annotate({ identifier: "DeletePatRuleRequest" });
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
2128
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
2129
|
+
return (__s[i] ??= __L.at(f, j));
|
|
2130
|
+
}
|