@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,1017 @@
|
|
|
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: "ServerlessJobsV1alpha1",
|
|
24
|
+
labels: "scaleway",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type CreateJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
29
|
+
/** Environment variables of the job. */
|
|
30
|
+
export type CreateJobDefinitionRequestEnvironmentVariablesMap = {
|
|
31
|
+
[key: string]: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
export interface CreateJobDefinitionRequestCronScheduleConfig {
|
|
34
|
+
schedule?: string | undefined;
|
|
35
|
+
timezone?: string | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface CreateJobDefinitionRequest {
|
|
38
|
+
/** The region you want to target */
|
|
39
|
+
region?: CreateJobDefinitionRequestRegion | (string & {}) | undefined;
|
|
40
|
+
/** Name of the job definition. */
|
|
41
|
+
name: string;
|
|
42
|
+
/** CPU limit of the job. */
|
|
43
|
+
cpu_limit: number;
|
|
44
|
+
/** Memory limit of the job (in MiB). */
|
|
45
|
+
memory_limit: number;
|
|
46
|
+
/** Local storage capacity of the job (in MiB). */
|
|
47
|
+
local_storage_capacity?: number | null | undefined;
|
|
48
|
+
/** Image to use for the job. */
|
|
49
|
+
image_uri: string;
|
|
50
|
+
/** Startup command. If empty or not defined, the image's default command is used. */
|
|
51
|
+
command?: string | undefined;
|
|
52
|
+
/** UUID of the Scaleway Project containing the job. */
|
|
53
|
+
project_id: string;
|
|
54
|
+
/** Environment variables of the job. */
|
|
55
|
+
environment_variables?: CreateJobDefinitionRequestEnvironmentVariablesMap | undefined;
|
|
56
|
+
/** Description of the job. */
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
/** Timeout of the job in seconds. (in seconds) */
|
|
59
|
+
job_timeout?: string | null | undefined;
|
|
60
|
+
/** Configure a cron for the job. */
|
|
61
|
+
cron_schedule?: CreateJobDefinitionRequestCronScheduleConfig | undefined;
|
|
62
|
+
}
|
|
63
|
+
export type JobDefinitionEnvironmentVariablesMap = { [key: string]: string | undefined };
|
|
64
|
+
export interface CronSchedule {
|
|
65
|
+
/** UNIX cron schedule to run job (e.g., '* * * * *'). */
|
|
66
|
+
schedule: string;
|
|
67
|
+
/** Timezone for the cron schedule, in tz database format (e.g., 'Europe/Paris'). */
|
|
68
|
+
timezone: string;
|
|
69
|
+
}
|
|
70
|
+
export interface JobDefinition {
|
|
71
|
+
/** (UUID format) */
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
/** (RFC 3339 format) */
|
|
75
|
+
created_at?: string | null | undefined;
|
|
76
|
+
/** (RFC 3339 format) */
|
|
77
|
+
updated_at?: string | null | undefined;
|
|
78
|
+
cpu_limit?: number | undefined;
|
|
79
|
+
memory_limit?: number | undefined;
|
|
80
|
+
image_uri?: string | undefined;
|
|
81
|
+
command?: string | undefined;
|
|
82
|
+
/** (UUID format) */
|
|
83
|
+
project_id?: string | undefined;
|
|
84
|
+
environment_variables?: JobDefinitionEnvironmentVariablesMap | undefined;
|
|
85
|
+
description?: string | undefined;
|
|
86
|
+
/** (in seconds) */
|
|
87
|
+
job_timeout?: string | null | undefined;
|
|
88
|
+
cron_schedule?: CronSchedule | undefined;
|
|
89
|
+
local_storage_capacity?: number | undefined;
|
|
90
|
+
/** The region you want to target */
|
|
91
|
+
region?: string | undefined;
|
|
92
|
+
}
|
|
93
|
+
export type CreateJobDefinitionSecretsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
94
|
+
/** List of secrets to inject into the job. */
|
|
95
|
+
export type CreateJobDefinitionSecretsRequestSecretsList = Array<unknown>;
|
|
96
|
+
export interface CreateJobDefinitionSecretsRequest {
|
|
97
|
+
/** The region you want to target */
|
|
98
|
+
region?: CreateJobDefinitionSecretsRequestRegion | (string & {}) | undefined;
|
|
99
|
+
/** UUID of the job definition. */
|
|
100
|
+
job_definition_id: string;
|
|
101
|
+
/** List of secrets to inject into the job. */
|
|
102
|
+
secrets: CreateJobDefinitionSecretsRequestSecretsList;
|
|
103
|
+
}
|
|
104
|
+
/** List of secrets created. */
|
|
105
|
+
export type CreateJobDefinitionSecretsResponseSecretsList = Array<unknown>;
|
|
106
|
+
export interface CreateJobDefinitionSecretsResponse {
|
|
107
|
+
/** List of secrets created. */
|
|
108
|
+
secrets?: CreateJobDefinitionSecretsResponseSecretsList | undefined;
|
|
109
|
+
}
|
|
110
|
+
export type DeleteJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
111
|
+
export interface DeleteJobDefinitionRequest {
|
|
112
|
+
/** The region you want to target */
|
|
113
|
+
region?: DeleteJobDefinitionRequestRegion | (string & {}) | undefined;
|
|
114
|
+
/** UUID of the job definition to delete. */
|
|
115
|
+
job_definition_id: string;
|
|
116
|
+
}
|
|
117
|
+
export interface DeleteJobDefinitionResponse {}
|
|
118
|
+
export type DeleteJobDefinitionSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
119
|
+
export interface DeleteJobDefinitionSecretRequest {
|
|
120
|
+
/** The region you want to target */
|
|
121
|
+
region?: DeleteJobDefinitionSecretRequestRegion | (string & {}) | undefined;
|
|
122
|
+
/** UUID of the job definition. */
|
|
123
|
+
job_definition_id: string;
|
|
124
|
+
/** UUID of the secret reference within the job. */
|
|
125
|
+
secret_id: string;
|
|
126
|
+
}
|
|
127
|
+
export interface DeleteJobDefinitionSecretResponse {}
|
|
128
|
+
export type GetJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
129
|
+
export interface GetJobDefinitionRequest {
|
|
130
|
+
/** The region you want to target */
|
|
131
|
+
region?: GetJobDefinitionRequestRegion | (string & {}) | undefined;
|
|
132
|
+
/** UUID of the job definition to get. */
|
|
133
|
+
job_definition_id: string;
|
|
134
|
+
}
|
|
135
|
+
export type GetJobDefinitionSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
136
|
+
export interface GetJobDefinitionSecretRequest {
|
|
137
|
+
/** The region you want to target */
|
|
138
|
+
region?: GetJobDefinitionSecretRequestRegion | (string & {}) | undefined;
|
|
139
|
+
/** UUID of the job definition. */
|
|
140
|
+
job_definition_id: string;
|
|
141
|
+
/** UUID of the secret reference within the job. */
|
|
142
|
+
secret_id: string;
|
|
143
|
+
}
|
|
144
|
+
export type GetJobRunRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
145
|
+
export interface GetJobRunRequest {
|
|
146
|
+
/** The region you want to target */
|
|
147
|
+
region?: GetJobRunRequestRegion | (string & {}) | undefined;
|
|
148
|
+
/** UUID of the job run to get. */
|
|
149
|
+
job_run_id: string;
|
|
150
|
+
}
|
|
151
|
+
export type JobRunState =
|
|
152
|
+
| "unknown_state"
|
|
153
|
+
| "queued"
|
|
154
|
+
| "scheduled"
|
|
155
|
+
| "running"
|
|
156
|
+
| "succeeded"
|
|
157
|
+
| "failed"
|
|
158
|
+
| "canceled"
|
|
159
|
+
| "internal_error";
|
|
160
|
+
export type JobRunEnvironmentVariablesMap = { [key: string]: string | undefined };
|
|
161
|
+
export interface JobRun {
|
|
162
|
+
/** (UUID format) */
|
|
163
|
+
id?: string | undefined;
|
|
164
|
+
/** (UUID format) */
|
|
165
|
+
job_definition_id?: string | undefined;
|
|
166
|
+
state?: JobRunState | undefined;
|
|
167
|
+
/** (RFC 3339 format) */
|
|
168
|
+
created_at?: string | null | undefined;
|
|
169
|
+
/** (RFC 3339 format) */
|
|
170
|
+
updated_at?: string | null | undefined;
|
|
171
|
+
/** (RFC 3339 format) */
|
|
172
|
+
terminated_at?: string | null | undefined;
|
|
173
|
+
exit_code?: number | null | undefined;
|
|
174
|
+
/** (in seconds) */
|
|
175
|
+
run_duration?: string | null | undefined;
|
|
176
|
+
error_message?: string | undefined;
|
|
177
|
+
cpu_limit?: number | undefined;
|
|
178
|
+
memory_limit?: number | undefined;
|
|
179
|
+
command?: string | undefined;
|
|
180
|
+
environment_variables?: JobRunEnvironmentVariablesMap | undefined;
|
|
181
|
+
local_storage_capacity?: number | undefined;
|
|
182
|
+
/** (RFC 3339 format) */
|
|
183
|
+
started_at?: string | null | undefined;
|
|
184
|
+
/** The region you want to target */
|
|
185
|
+
region?: string | undefined;
|
|
186
|
+
}
|
|
187
|
+
export type ListJobDefinitionsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
188
|
+
export type ListJobDefinitionsRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
189
|
+
export interface ListJobDefinitionsRequest {
|
|
190
|
+
/** The region you want to target */
|
|
191
|
+
region?: ListJobDefinitionsRequestRegion | (string & {}) | undefined;
|
|
192
|
+
page?: number | undefined;
|
|
193
|
+
page_size?: number | undefined;
|
|
194
|
+
order_by?: ListJobDefinitionsRequestOrderBy | (string & {}) | undefined;
|
|
195
|
+
project_id?: string | undefined;
|
|
196
|
+
organization_id?: string | undefined;
|
|
197
|
+
}
|
|
198
|
+
export type ListJobDefinitionsResponseJobDefinitionsList = Array<JobDefinition>;
|
|
199
|
+
export interface ListJobDefinitionsResponse {
|
|
200
|
+
job_definitions: ListJobDefinitionsResponseJobDefinitionsList;
|
|
201
|
+
total_count?: number | undefined;
|
|
202
|
+
}
|
|
203
|
+
export type ListJobDefinitionSecretsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
204
|
+
export interface ListJobDefinitionSecretsRequest {
|
|
205
|
+
/** The region you want to target */
|
|
206
|
+
region?: ListJobDefinitionSecretsRequestRegion | (string & {}) | undefined;
|
|
207
|
+
/** UUID of the job definition. */
|
|
208
|
+
job_definition_id: string;
|
|
209
|
+
}
|
|
210
|
+
/** List of secret references within a job definition. */
|
|
211
|
+
export type ListJobDefinitionSecretsResponseSecretsList = Array<unknown>;
|
|
212
|
+
export interface ListJobDefinitionSecretsResponse {
|
|
213
|
+
/** List of secret references within a job definition. */
|
|
214
|
+
secrets?: ListJobDefinitionSecretsResponseSecretsList | undefined;
|
|
215
|
+
/** Total count of secret references within a job definition. */
|
|
216
|
+
total_count?: number | undefined;
|
|
217
|
+
}
|
|
218
|
+
export type ListJobRunsRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
219
|
+
export type ListJobRunsRequestOrderBy = "created_at_asc" | "created_at_desc";
|
|
220
|
+
export type ListJobRunsRequestStatesList = Array<JobRunState | (string & {})>;
|
|
221
|
+
export interface ListJobRunsRequest {
|
|
222
|
+
/** The region you want to target */
|
|
223
|
+
region?: ListJobRunsRequestRegion | (string & {}) | undefined;
|
|
224
|
+
page?: number | undefined;
|
|
225
|
+
page_size?: number | undefined;
|
|
226
|
+
order_by?: ListJobRunsRequestOrderBy | (string & {}) | undefined;
|
|
227
|
+
job_definition_id?: string | undefined;
|
|
228
|
+
project_id?: string | undefined;
|
|
229
|
+
organization_id?: string | undefined;
|
|
230
|
+
state?: JobRunState | (string & {}) | undefined;
|
|
231
|
+
states?: ListJobRunsRequestStatesList | undefined;
|
|
232
|
+
}
|
|
233
|
+
export type ListJobRunsResponseJobRunsList = Array<JobRun>;
|
|
234
|
+
export interface ListJobRunsResponse {
|
|
235
|
+
job_runs: ListJobRunsResponseJobRunsList;
|
|
236
|
+
total_count?: number | undefined;
|
|
237
|
+
}
|
|
238
|
+
export type StartJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
239
|
+
/** Contextual environment variables for this specific job run. */
|
|
240
|
+
export type StartJobDefinitionRequestEnvironmentVariablesMap = {
|
|
241
|
+
[key: string]: string | undefined;
|
|
242
|
+
};
|
|
243
|
+
export interface StartJobDefinitionRequest {
|
|
244
|
+
/** The region you want to target */
|
|
245
|
+
region?: StartJobDefinitionRequestRegion | (string & {}) | undefined;
|
|
246
|
+
/** UUID of the job definition to start. */
|
|
247
|
+
job_definition_id: string;
|
|
248
|
+
/** Contextual startup command for this specific job run. */
|
|
249
|
+
command?: string | null | undefined;
|
|
250
|
+
/** Contextual environment variables for this specific job run. */
|
|
251
|
+
environment_variables?: StartJobDefinitionRequestEnvironmentVariablesMap | null | undefined;
|
|
252
|
+
/** Number of jobs to run. */
|
|
253
|
+
replicas?: number | null | undefined;
|
|
254
|
+
}
|
|
255
|
+
export type StartJobDefinitionResponseJobRunsList = Array<JobRun>;
|
|
256
|
+
export interface StartJobDefinitionResponse {
|
|
257
|
+
job_runs?: StartJobDefinitionResponseJobRunsList | undefined;
|
|
258
|
+
}
|
|
259
|
+
export type StopJobRunRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
260
|
+
export interface StopJobRunRequest {
|
|
261
|
+
/** The region you want to target */
|
|
262
|
+
region?: StopJobRunRequestRegion | (string & {}) | undefined;
|
|
263
|
+
/** UUID of the job run to stop. */
|
|
264
|
+
job_run_id: string;
|
|
265
|
+
}
|
|
266
|
+
export type UpdateJobDefinitionRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
267
|
+
/** Environment variables of the job. */
|
|
268
|
+
export type UpdateJobDefinitionRequestEnvironmentVariablesMap = {
|
|
269
|
+
[key: string]: string | undefined;
|
|
270
|
+
};
|
|
271
|
+
export interface UpdateJobDefinitionRequestCronScheduleConfig {
|
|
272
|
+
schedule?: string | null | undefined;
|
|
273
|
+
timezone?: string | null | undefined;
|
|
274
|
+
}
|
|
275
|
+
export interface UpdateJobDefinitionRequest {
|
|
276
|
+
/** The region you want to target */
|
|
277
|
+
region?: UpdateJobDefinitionRequestRegion | (string & {}) | undefined;
|
|
278
|
+
/** UUID of the job definition to update. */
|
|
279
|
+
job_definition_id: string;
|
|
280
|
+
/** Name of the job definition. */
|
|
281
|
+
name?: string | null | undefined;
|
|
282
|
+
/** CPU limit of the job. */
|
|
283
|
+
cpu_limit?: number | null | undefined;
|
|
284
|
+
/** Memory limit of the job (in MiB). */
|
|
285
|
+
memory_limit?: number | null | undefined;
|
|
286
|
+
/** Local storage capacity of the job (in MiB). */
|
|
287
|
+
local_storage_capacity?: number | null | undefined;
|
|
288
|
+
/** Image to use for the job. */
|
|
289
|
+
image_uri?: string | null | undefined;
|
|
290
|
+
/** Startup command. */
|
|
291
|
+
command?: string | null | undefined;
|
|
292
|
+
/** Environment variables of the job. */
|
|
293
|
+
environment_variables?: UpdateJobDefinitionRequestEnvironmentVariablesMap | null | undefined;
|
|
294
|
+
/** Description of the job. */
|
|
295
|
+
description?: string | null | undefined;
|
|
296
|
+
/** Timeout of the job in seconds. (in seconds) */
|
|
297
|
+
job_timeout?: string | null | undefined;
|
|
298
|
+
cron_schedule?: UpdateJobDefinitionRequestCronScheduleConfig | undefined;
|
|
299
|
+
}
|
|
300
|
+
export type UpdateJobDefinitionSecretRequestRegion = "fr-par" | "nl-ams" | "pl-waw";
|
|
301
|
+
export interface UpdateJobDefinitionSecretRequest {
|
|
302
|
+
/** The region you want to target */
|
|
303
|
+
region?: UpdateJobDefinitionSecretRequestRegion | (string & {}) | undefined;
|
|
304
|
+
/** UUID of the job definition. */
|
|
305
|
+
job_definition_id: string;
|
|
306
|
+
/** UUID of the secret reference within the job. */
|
|
307
|
+
secret_id: string;
|
|
308
|
+
/** Version of the secret in Secret Manager. */
|
|
309
|
+
secret_manager_version?: string | null | undefined;
|
|
310
|
+
/** Path of the secret to mount inside the job (either `path` or `env_var_name` must be set). Precisely one of path, env_var_name can be set. */
|
|
311
|
+
path?: string | null | undefined;
|
|
312
|
+
/** Environment variable name used to expose the secret inside the job (either `path` or `env_var_name` must be set). Precisely one of path, env_var_name can be set. */
|
|
313
|
+
env_var_name?: string | null | undefined;
|
|
314
|
+
}
|
|
315
|
+
export type CreateJobDefinitionError = ScalewayOpError;
|
|
316
|
+
/** Create a new job definition in a specified Project */
|
|
317
|
+
export const createJobDefinition: API.OperationMethod<
|
|
318
|
+
CreateJobDefinitionRequest,
|
|
319
|
+
JobDefinition,
|
|
320
|
+
CreateJobDefinitionError,
|
|
321
|
+
ScalewayOpContext
|
|
322
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
323
|
+
input: __S(1, __c0, 1) as any as S.Schema<CreateJobDefinitionRequest>,
|
|
324
|
+
output: __S(9, __c2, 1) as any as S.Schema<JobDefinition>,
|
|
325
|
+
errors: [],
|
|
326
|
+
serviceErrors: ScalewayServiceErrors,
|
|
327
|
+
protocol: ScalewayProtocol,
|
|
328
|
+
retry: Retry.Retry,
|
|
329
|
+
telemetry: TELEMETRY,
|
|
330
|
+
span: "CreateJobDefinition",
|
|
331
|
+
}));
|
|
332
|
+
|
|
333
|
+
export type CreateJobDefinitionSecretsError = ScalewayOpError;
|
|
334
|
+
/** Create a secret reference within a job definition */
|
|
335
|
+
export const createJobDefinitionSecrets: API.OperationMethod<
|
|
336
|
+
CreateJobDefinitionSecretsRequest,
|
|
337
|
+
CreateJobDefinitionSecretsResponse,
|
|
338
|
+
CreateJobDefinitionSecretsError,
|
|
339
|
+
ScalewayOpContext
|
|
340
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
341
|
+
input: __S(12, __c3, 0) as any as S.Schema<CreateJobDefinitionSecretsRequest>,
|
|
342
|
+
output: __S(13, __c3, 1) as any as S.Schema<CreateJobDefinitionSecretsResponse>,
|
|
343
|
+
errors: [],
|
|
344
|
+
serviceErrors: ScalewayServiceErrors,
|
|
345
|
+
protocol: ScalewayProtocol,
|
|
346
|
+
retry: Retry.Retry,
|
|
347
|
+
telemetry: TELEMETRY,
|
|
348
|
+
span: "CreateJobDefinitionSecrets",
|
|
349
|
+
}));
|
|
350
|
+
|
|
351
|
+
export type DeleteJobDefinitionError = ScalewayOpError;
|
|
352
|
+
/** Delete an existing job definition by its unique identifier */
|
|
353
|
+
export const deleteJobDefinition: API.OperationMethod<
|
|
354
|
+
DeleteJobDefinitionRequest,
|
|
355
|
+
DeleteJobDefinitionResponse,
|
|
356
|
+
DeleteJobDefinitionError,
|
|
357
|
+
ScalewayOpContext
|
|
358
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
359
|
+
input: __S(36, __c9, 0) as any as S.Schema<DeleteJobDefinitionRequest>,
|
|
360
|
+
output: __S(40, __c10, 0) as any as S.Schema<DeleteJobDefinitionResponse>,
|
|
361
|
+
errors: [],
|
|
362
|
+
serviceErrors: ScalewayServiceErrors,
|
|
363
|
+
protocol: ScalewayProtocol,
|
|
364
|
+
retry: Retry.Retry,
|
|
365
|
+
telemetry: TELEMETRY,
|
|
366
|
+
span: "DeleteJobDefinition",
|
|
367
|
+
}));
|
|
368
|
+
|
|
369
|
+
export type DeleteJobDefinitionSecretError = ScalewayOpError;
|
|
370
|
+
/** Delete a secret reference within a job definition */
|
|
371
|
+
export const deleteJobDefinitionSecret: API.OperationMethod<
|
|
372
|
+
DeleteJobDefinitionSecretRequest,
|
|
373
|
+
DeleteJobDefinitionSecretResponse,
|
|
374
|
+
DeleteJobDefinitionSecretError,
|
|
375
|
+
ScalewayOpContext
|
|
376
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
377
|
+
input: __S(44, __c11, 0) as any as S.Schema<DeleteJobDefinitionSecretRequest>,
|
|
378
|
+
output: __S(40, __c10, 0) as any as S.Schema<DeleteJobDefinitionSecretResponse>,
|
|
379
|
+
errors: [],
|
|
380
|
+
serviceErrors: ScalewayServiceErrors,
|
|
381
|
+
protocol: ScalewayProtocol,
|
|
382
|
+
retry: Retry.Retry,
|
|
383
|
+
telemetry: TELEMETRY,
|
|
384
|
+
span: "DeleteJobDefinitionSecret",
|
|
385
|
+
}));
|
|
386
|
+
|
|
387
|
+
export type GetJobDefinitionError = ScalewayOpError;
|
|
388
|
+
/** Get a job definition by its unique identifier */
|
|
389
|
+
export const getJobDefinition: API.OperationMethod<
|
|
390
|
+
GetJobDefinitionRequest,
|
|
391
|
+
JobDefinition,
|
|
392
|
+
GetJobDefinitionError,
|
|
393
|
+
ScalewayOpContext
|
|
394
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
395
|
+
input: __S(48, __c12, 0) as any as S.Schema<GetJobDefinitionRequest>,
|
|
396
|
+
output: __S(9, __c2, 1) as any as S.Schema<JobDefinition>,
|
|
397
|
+
errors: [],
|
|
398
|
+
serviceErrors: ScalewayServiceErrors,
|
|
399
|
+
protocol: ScalewayProtocol,
|
|
400
|
+
retry: Retry.Retry,
|
|
401
|
+
telemetry: TELEMETRY,
|
|
402
|
+
span: "GetJobDefinition",
|
|
403
|
+
}));
|
|
404
|
+
|
|
405
|
+
export type GetJobDefinitionSecretError = ScalewayOpError;
|
|
406
|
+
/** Get a secret references within a job definition */
|
|
407
|
+
export const getJobDefinitionSecret: API.OperationMethod<
|
|
408
|
+
GetJobDefinitionSecretRequest,
|
|
409
|
+
unknown,
|
|
410
|
+
GetJobDefinitionSecretError,
|
|
411
|
+
ScalewayOpContext
|
|
412
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
413
|
+
input: __S(52, __c13, 0) as any as S.Schema<GetJobDefinitionSecretRequest>,
|
|
414
|
+
output: S.Unknown,
|
|
415
|
+
errors: [],
|
|
416
|
+
serviceErrors: ScalewayServiceErrors,
|
|
417
|
+
protocol: ScalewayProtocol,
|
|
418
|
+
retry: Retry.Retry,
|
|
419
|
+
telemetry: TELEMETRY,
|
|
420
|
+
span: "GetJobDefinitionSecret",
|
|
421
|
+
}));
|
|
422
|
+
|
|
423
|
+
export type GetJobRunError = ScalewayOpError;
|
|
424
|
+
/** Get a job run by its unique identifier */
|
|
425
|
+
export const getJobRun: API.OperationMethod<
|
|
426
|
+
GetJobRunRequest,
|
|
427
|
+
JobRun,
|
|
428
|
+
GetJobRunError,
|
|
429
|
+
ScalewayOpContext
|
|
430
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
431
|
+
input: __S(56, __c14, 0) as any as S.Schema<GetJobRunRequest>,
|
|
432
|
+
output: __S(60, __c15, 0) as any as S.Schema<JobRun>,
|
|
433
|
+
errors: [],
|
|
434
|
+
serviceErrors: ScalewayServiceErrors,
|
|
435
|
+
protocol: ScalewayProtocol,
|
|
436
|
+
retry: Retry.Retry,
|
|
437
|
+
telemetry: TELEMETRY,
|
|
438
|
+
span: "GetJobRun",
|
|
439
|
+
}));
|
|
440
|
+
|
|
441
|
+
export type ListJobDefinitionsError = ScalewayOpError;
|
|
442
|
+
/** List all your job definitions with filters */
|
|
443
|
+
export const listJobDefinitions: API.PaginatedOperationMethod<
|
|
444
|
+
ListJobDefinitionsRequest,
|
|
445
|
+
ListJobDefinitionsResponse,
|
|
446
|
+
ListJobDefinitionsError,
|
|
447
|
+
ScalewayOpContext,
|
|
448
|
+
JobDefinition
|
|
449
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
450
|
+
() => ({
|
|
451
|
+
input: __S(64, __c16, 0) as any as S.Schema<ListJobDefinitionsRequest>,
|
|
452
|
+
output: __S(66, __c16, 2) as any as S.Schema<ListJobDefinitionsResponse>,
|
|
453
|
+
errors: [],
|
|
454
|
+
serviceErrors: ScalewayServiceErrors,
|
|
455
|
+
protocol: ScalewayProtocol,
|
|
456
|
+
retry: Retry.Retry,
|
|
457
|
+
telemetry: TELEMETRY,
|
|
458
|
+
span: "ListJobDefinitions",
|
|
459
|
+
pagination: {
|
|
460
|
+
mode: "page",
|
|
461
|
+
inputToken: "page",
|
|
462
|
+
outputToken: "total_count",
|
|
463
|
+
items: "job_definitions",
|
|
464
|
+
pageSize: "page_size",
|
|
465
|
+
} as const,
|
|
466
|
+
}),
|
|
467
|
+
paginateByTotalCount,
|
|
468
|
+
) as any;
|
|
469
|
+
|
|
470
|
+
export type ListJobDefinitionSecretsError = ScalewayOpError;
|
|
471
|
+
/** List secrets references within a job definition */
|
|
472
|
+
export const listJobDefinitionSecrets: API.OperationMethod<
|
|
473
|
+
ListJobDefinitionSecretsRequest,
|
|
474
|
+
ListJobDefinitionSecretsResponse,
|
|
475
|
+
ListJobDefinitionSecretsError,
|
|
476
|
+
ScalewayOpContext
|
|
477
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
478
|
+
input: __S(68, __c17, 0) as any as S.Schema<ListJobDefinitionSecretsRequest>,
|
|
479
|
+
output: __S(69, __c17, 1) as any as S.Schema<ListJobDefinitionSecretsResponse>,
|
|
480
|
+
errors: [],
|
|
481
|
+
serviceErrors: ScalewayServiceErrors,
|
|
482
|
+
protocol: ScalewayProtocol,
|
|
483
|
+
retry: Retry.Retry,
|
|
484
|
+
telemetry: TELEMETRY,
|
|
485
|
+
span: "ListJobDefinitionSecrets",
|
|
486
|
+
}));
|
|
487
|
+
|
|
488
|
+
export type ListJobRunsError = ScalewayOpError;
|
|
489
|
+
/** List all job runs with filters */
|
|
490
|
+
export const listJobRuns: API.PaginatedOperationMethod<
|
|
491
|
+
ListJobRunsRequest,
|
|
492
|
+
ListJobRunsResponse,
|
|
493
|
+
ListJobRunsError,
|
|
494
|
+
ScalewayOpContext,
|
|
495
|
+
JobRun
|
|
496
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
497
|
+
() => ({
|
|
498
|
+
input: __S(73, __c18, 1) as any as S.Schema<ListJobRunsRequest>,
|
|
499
|
+
output: __S(74, __c18, 2) as any as S.Schema<ListJobRunsResponse>,
|
|
500
|
+
errors: [],
|
|
501
|
+
serviceErrors: ScalewayServiceErrors,
|
|
502
|
+
protocol: ScalewayProtocol,
|
|
503
|
+
retry: Retry.Retry,
|
|
504
|
+
telemetry: TELEMETRY,
|
|
505
|
+
span: "ListJobRuns",
|
|
506
|
+
pagination: {
|
|
507
|
+
mode: "page",
|
|
508
|
+
inputToken: "page",
|
|
509
|
+
outputToken: "total_count",
|
|
510
|
+
items: "job_runs",
|
|
511
|
+
pageSize: "page_size",
|
|
512
|
+
} as const,
|
|
513
|
+
}),
|
|
514
|
+
paginateByTotalCount,
|
|
515
|
+
) as any;
|
|
516
|
+
|
|
517
|
+
export type StartJobDefinitionError = ScalewayOpError;
|
|
518
|
+
/** Run an existing job definition by its unique identifier. This will create a new job run */
|
|
519
|
+
export const startJobDefinition: API.OperationMethod<
|
|
520
|
+
StartJobDefinitionRequest,
|
|
521
|
+
StartJobDefinitionResponse,
|
|
522
|
+
StartJobDefinitionError,
|
|
523
|
+
ScalewayOpContext
|
|
524
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
525
|
+
input: __S(20, __c5, 0) as any as S.Schema<StartJobDefinitionRequest>,
|
|
526
|
+
output: __S(21, __c5, 1) as any as S.Schema<StartJobDefinitionResponse>,
|
|
527
|
+
errors: [],
|
|
528
|
+
serviceErrors: ScalewayServiceErrors,
|
|
529
|
+
protocol: ScalewayProtocol,
|
|
530
|
+
retry: Retry.Retry,
|
|
531
|
+
telemetry: TELEMETRY,
|
|
532
|
+
span: "StartJobDefinition",
|
|
533
|
+
}));
|
|
534
|
+
|
|
535
|
+
export type StopJobRunError = ScalewayOpError;
|
|
536
|
+
/** Stop a job run by its unique identifier */
|
|
537
|
+
export const stopJobRun: API.OperationMethod<
|
|
538
|
+
StopJobRunRequest,
|
|
539
|
+
JobRun,
|
|
540
|
+
StopJobRunError,
|
|
541
|
+
ScalewayOpContext
|
|
542
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
543
|
+
input: __S(24, __c6, 0) as any as S.Schema<StopJobRunRequest>,
|
|
544
|
+
output: __S(60, __c15, 0) as any as S.Schema<JobRun>,
|
|
545
|
+
errors: [],
|
|
546
|
+
serviceErrors: ScalewayServiceErrors,
|
|
547
|
+
protocol: ScalewayProtocol,
|
|
548
|
+
retry: Retry.Retry,
|
|
549
|
+
telemetry: TELEMETRY,
|
|
550
|
+
span: "StopJobRun",
|
|
551
|
+
}));
|
|
552
|
+
|
|
553
|
+
export type UpdateJobDefinitionError = ScalewayOpError;
|
|
554
|
+
/** Update an existing job definition associated with the specified unique identifier */
|
|
555
|
+
export const updateJobDefinition: API.OperationMethod<
|
|
556
|
+
UpdateJobDefinitionRequest,
|
|
557
|
+
JobDefinition,
|
|
558
|
+
UpdateJobDefinitionError,
|
|
559
|
+
ScalewayOpContext
|
|
560
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
561
|
+
input: __S(29, __c7, 1) as any as S.Schema<UpdateJobDefinitionRequest>,
|
|
562
|
+
output: __S(9, __c2, 1) as any as S.Schema<JobDefinition>,
|
|
563
|
+
errors: [],
|
|
564
|
+
serviceErrors: ScalewayServiceErrors,
|
|
565
|
+
protocol: ScalewayProtocol,
|
|
566
|
+
retry: Retry.Retry,
|
|
567
|
+
telemetry: TELEMETRY,
|
|
568
|
+
span: "UpdateJobDefinition",
|
|
569
|
+
}));
|
|
570
|
+
|
|
571
|
+
export type UpdateJobDefinitionSecretError = ScalewayOpError;
|
|
572
|
+
/** Update a secret reference within a job definition */
|
|
573
|
+
export const updateJobDefinitionSecret: API.OperationMethod<
|
|
574
|
+
UpdateJobDefinitionSecretRequest,
|
|
575
|
+
unknown,
|
|
576
|
+
UpdateJobDefinitionSecretError,
|
|
577
|
+
ScalewayOpContext
|
|
578
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
579
|
+
input: __S(32, __c8, 0) as any as S.Schema<UpdateJobDefinitionSecretRequest>,
|
|
580
|
+
output: S.Unknown,
|
|
581
|
+
errors: [],
|
|
582
|
+
serviceErrors: ScalewayServiceErrors,
|
|
583
|
+
protocol: ScalewayProtocol,
|
|
584
|
+
retry: Retry.Retry,
|
|
585
|
+
telemetry: TELEMETRY,
|
|
586
|
+
span: "UpdateJobDefinitionSecret",
|
|
587
|
+
}));
|
|
588
|
+
|
|
589
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
590
|
+
function __c0(j: number): any {
|
|
591
|
+
switch (j) {
|
|
592
|
+
case 0:
|
|
593
|
+
return S.suspend(() =>
|
|
594
|
+
S.Struct({
|
|
595
|
+
schedule: S.optional(S.String),
|
|
596
|
+
timezone: S.optional(S.String),
|
|
597
|
+
}),
|
|
598
|
+
).annotate({ identifier: "CreateJobDefinitionRequestCronScheduleConfig" });
|
|
599
|
+
case 1:
|
|
600
|
+
return S.suspend(() =>
|
|
601
|
+
S.Struct({
|
|
602
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
603
|
+
name: S.String,
|
|
604
|
+
cpu_limit: S.Number,
|
|
605
|
+
memory_limit: S.Number,
|
|
606
|
+
local_storage_capacity: S.optional(S.NullOr(S.Number)),
|
|
607
|
+
image_uri: S.String,
|
|
608
|
+
command: S.optional(S.String),
|
|
609
|
+
project_id: S.String,
|
|
610
|
+
environment_variables: S.optional(__S(4, __c1, 0)),
|
|
611
|
+
description: S.optional(S.String),
|
|
612
|
+
job_timeout: S.optional(S.NullOr(S.String)),
|
|
613
|
+
cron_schedule: S.optional(__S(0, __c0, 0)),
|
|
614
|
+
}).pipe(
|
|
615
|
+
T.Http({
|
|
616
|
+
method: "POST",
|
|
617
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions",
|
|
618
|
+
code: 200,
|
|
619
|
+
baseUrl: "https://api.scaleway.com",
|
|
620
|
+
}),
|
|
621
|
+
),
|
|
622
|
+
).annotate({ identifier: "CreateJobDefinitionRequest" });
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
function __c1(j: number): any {
|
|
626
|
+
switch (j) {
|
|
627
|
+
case 0:
|
|
628
|
+
return S.Record(S.String, S.String);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
function __c2(j: number): any {
|
|
632
|
+
switch (j) {
|
|
633
|
+
case 0:
|
|
634
|
+
return S.suspend(() =>
|
|
635
|
+
S.Struct({
|
|
636
|
+
schedule: S.String,
|
|
637
|
+
timezone: S.String,
|
|
638
|
+
}),
|
|
639
|
+
).annotate({ identifier: "CronSchedule" });
|
|
640
|
+
case 1:
|
|
641
|
+
return S.suspend(() =>
|
|
642
|
+
S.Struct({
|
|
643
|
+
id: S.optional(S.String),
|
|
644
|
+
name: S.optional(S.String),
|
|
645
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
646
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
647
|
+
cpu_limit: S.optional(S.Number),
|
|
648
|
+
memory_limit: S.optional(S.Number),
|
|
649
|
+
image_uri: S.optional(S.String),
|
|
650
|
+
command: S.optional(S.String),
|
|
651
|
+
project_id: S.optional(S.String),
|
|
652
|
+
environment_variables: S.optional(__S(4, __c1, 0)),
|
|
653
|
+
description: S.optional(S.String),
|
|
654
|
+
job_timeout: S.optional(S.NullOr(S.String)),
|
|
655
|
+
cron_schedule: S.optional(__S(8, __c2, 0)),
|
|
656
|
+
local_storage_capacity: S.optional(S.Number),
|
|
657
|
+
region: S.optional(S.String),
|
|
658
|
+
}),
|
|
659
|
+
).annotate({ identifier: "JobDefinition" });
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
function __c3(j: number): any {
|
|
663
|
+
switch (j) {
|
|
664
|
+
case 0:
|
|
665
|
+
return S.suspend(() =>
|
|
666
|
+
S.Struct({
|
|
667
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
668
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
669
|
+
secrets: __S(16, __c4, 0),
|
|
670
|
+
}).pipe(
|
|
671
|
+
T.Http({
|
|
672
|
+
method: "POST",
|
|
673
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}/secrets",
|
|
674
|
+
code: 200,
|
|
675
|
+
baseUrl: "https://api.scaleway.com",
|
|
676
|
+
}),
|
|
677
|
+
),
|
|
678
|
+
).annotate({ identifier: "CreateJobDefinitionSecretsRequest" });
|
|
679
|
+
case 1:
|
|
680
|
+
return S.suspend(() =>
|
|
681
|
+
S.Struct({
|
|
682
|
+
secrets: S.optional(__S(16, __c4, 0)),
|
|
683
|
+
}),
|
|
684
|
+
).annotate({ identifier: "CreateJobDefinitionSecretsResponse" });
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
function __c4(j: number): any {
|
|
688
|
+
switch (j) {
|
|
689
|
+
case 0:
|
|
690
|
+
return S.Array(S.Unknown);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
function __c5(j: number): any {
|
|
694
|
+
switch (j) {
|
|
695
|
+
case 0:
|
|
696
|
+
return S.suspend(() =>
|
|
697
|
+
S.Struct({
|
|
698
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
699
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
700
|
+
command: S.optional(S.NullOr(S.String)),
|
|
701
|
+
environment_variables: S.optional(S.NullOr(__S(4, __c1, 0))),
|
|
702
|
+
replicas: S.optional(S.NullOr(S.Number)),
|
|
703
|
+
}).pipe(
|
|
704
|
+
T.Http({
|
|
705
|
+
method: "POST",
|
|
706
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}/start",
|
|
707
|
+
code: 200,
|
|
708
|
+
baseUrl: "https://api.scaleway.com",
|
|
709
|
+
}),
|
|
710
|
+
),
|
|
711
|
+
).annotate({ identifier: "StartJobDefinitionRequest" });
|
|
712
|
+
case 1:
|
|
713
|
+
return S.suspend(() =>
|
|
714
|
+
S.Struct({
|
|
715
|
+
job_runs: S.optional(__S(76, __c19, 0)),
|
|
716
|
+
}),
|
|
717
|
+
).annotate({ identifier: "StartJobDefinitionResponse" });
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function __c6(j: number): any {
|
|
721
|
+
switch (j) {
|
|
722
|
+
case 0:
|
|
723
|
+
return S.suspend(() =>
|
|
724
|
+
S.Struct({
|
|
725
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
726
|
+
job_run_id: S.String.pipe(T.Label()),
|
|
727
|
+
}).pipe(
|
|
728
|
+
T.Http({
|
|
729
|
+
method: "POST",
|
|
730
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-runs/{job_run_id}/stop",
|
|
731
|
+
code: 200,
|
|
732
|
+
baseUrl: "https://api.scaleway.com",
|
|
733
|
+
}),
|
|
734
|
+
),
|
|
735
|
+
).annotate({ identifier: "StopJobRunRequest" });
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
function __c7(j: number): any {
|
|
739
|
+
switch (j) {
|
|
740
|
+
case 0:
|
|
741
|
+
return S.suspend(() =>
|
|
742
|
+
S.Struct({
|
|
743
|
+
schedule: S.optional(S.NullOr(S.String)),
|
|
744
|
+
timezone: S.optional(S.NullOr(S.String)),
|
|
745
|
+
}),
|
|
746
|
+
).annotate({ identifier: "UpdateJobDefinitionRequestCronScheduleConfig" });
|
|
747
|
+
case 1:
|
|
748
|
+
return S.suspend(() =>
|
|
749
|
+
S.Struct({
|
|
750
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
751
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
752
|
+
name: S.optional(S.NullOr(S.String)),
|
|
753
|
+
cpu_limit: S.optional(S.NullOr(S.Number)),
|
|
754
|
+
memory_limit: S.optional(S.NullOr(S.Number)),
|
|
755
|
+
local_storage_capacity: S.optional(S.NullOr(S.Number)),
|
|
756
|
+
image_uri: S.optional(S.NullOr(S.String)),
|
|
757
|
+
command: S.optional(S.NullOr(S.String)),
|
|
758
|
+
environment_variables: S.optional(S.NullOr(__S(4, __c1, 0))),
|
|
759
|
+
description: S.optional(S.NullOr(S.String)),
|
|
760
|
+
job_timeout: S.optional(S.NullOr(S.String)),
|
|
761
|
+
cron_schedule: S.optional(__S(28, __c7, 0)),
|
|
762
|
+
}).pipe(
|
|
763
|
+
T.Http({
|
|
764
|
+
method: "PATCH",
|
|
765
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}",
|
|
766
|
+
code: 200,
|
|
767
|
+
baseUrl: "https://api.scaleway.com",
|
|
768
|
+
}),
|
|
769
|
+
),
|
|
770
|
+
).annotate({ identifier: "UpdateJobDefinitionRequest" });
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
function __c8(j: number): any {
|
|
774
|
+
switch (j) {
|
|
775
|
+
case 0:
|
|
776
|
+
return S.suspend(() =>
|
|
777
|
+
S.Struct({
|
|
778
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
779
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
780
|
+
secret_id: S.String.pipe(T.Label()),
|
|
781
|
+
secret_manager_version: S.optional(S.NullOr(S.String)),
|
|
782
|
+
path: S.optional(S.NullOr(S.String)),
|
|
783
|
+
env_var_name: S.optional(S.NullOr(S.String)),
|
|
784
|
+
}).pipe(
|
|
785
|
+
T.Http({
|
|
786
|
+
method: "PATCH",
|
|
787
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}/secrets/{secret_id}",
|
|
788
|
+
code: 200,
|
|
789
|
+
baseUrl: "https://api.scaleway.com",
|
|
790
|
+
}),
|
|
791
|
+
),
|
|
792
|
+
).annotate({ identifier: "UpdateJobDefinitionSecretRequest" });
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
function __c9(j: number): any {
|
|
796
|
+
switch (j) {
|
|
797
|
+
case 0:
|
|
798
|
+
return S.suspend(() =>
|
|
799
|
+
S.Struct({
|
|
800
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
801
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
802
|
+
}).pipe(
|
|
803
|
+
T.Http({
|
|
804
|
+
method: "DELETE",
|
|
805
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}",
|
|
806
|
+
code: 200,
|
|
807
|
+
baseUrl: "https://api.scaleway.com",
|
|
808
|
+
}),
|
|
809
|
+
),
|
|
810
|
+
).annotate({ identifier: "DeleteJobDefinitionRequest" });
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
function __c10(j: number): any {
|
|
814
|
+
switch (j) {
|
|
815
|
+
case 0:
|
|
816
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteJobDefinitionResponse" });
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
function __c11(j: number): any {
|
|
820
|
+
switch (j) {
|
|
821
|
+
case 0:
|
|
822
|
+
return S.suspend(() =>
|
|
823
|
+
S.Struct({
|
|
824
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
825
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
826
|
+
secret_id: S.String.pipe(T.Label()),
|
|
827
|
+
}).pipe(
|
|
828
|
+
T.Http({
|
|
829
|
+
method: "DELETE",
|
|
830
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}/secrets/{secret_id}",
|
|
831
|
+
code: 200,
|
|
832
|
+
baseUrl: "https://api.scaleway.com",
|
|
833
|
+
}),
|
|
834
|
+
),
|
|
835
|
+
).annotate({ identifier: "DeleteJobDefinitionSecretRequest" });
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
function __c12(j: number): any {
|
|
839
|
+
switch (j) {
|
|
840
|
+
case 0:
|
|
841
|
+
return S.suspend(() =>
|
|
842
|
+
S.Struct({
|
|
843
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
844
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
845
|
+
}).pipe(
|
|
846
|
+
T.Http({
|
|
847
|
+
method: "GET",
|
|
848
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}",
|
|
849
|
+
code: 200,
|
|
850
|
+
baseUrl: "https://api.scaleway.com",
|
|
851
|
+
}),
|
|
852
|
+
),
|
|
853
|
+
).annotate({ identifier: "GetJobDefinitionRequest" });
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
function __c13(j: number): any {
|
|
857
|
+
switch (j) {
|
|
858
|
+
case 0:
|
|
859
|
+
return S.suspend(() =>
|
|
860
|
+
S.Struct({
|
|
861
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
862
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
863
|
+
secret_id: S.String.pipe(T.Label()),
|
|
864
|
+
}).pipe(
|
|
865
|
+
T.Http({
|
|
866
|
+
method: "GET",
|
|
867
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}/secrets/{secret_id}",
|
|
868
|
+
code: 200,
|
|
869
|
+
baseUrl: "https://api.scaleway.com",
|
|
870
|
+
}),
|
|
871
|
+
),
|
|
872
|
+
).annotate({ identifier: "GetJobDefinitionSecretRequest" });
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
function __c14(j: number): any {
|
|
876
|
+
switch (j) {
|
|
877
|
+
case 0:
|
|
878
|
+
return S.suspend(() =>
|
|
879
|
+
S.Struct({
|
|
880
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
881
|
+
job_run_id: S.String.pipe(T.Label()),
|
|
882
|
+
}).pipe(
|
|
883
|
+
T.Http({
|
|
884
|
+
method: "GET",
|
|
885
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-runs/{job_run_id}",
|
|
886
|
+
code: 200,
|
|
887
|
+
baseUrl: "https://api.scaleway.com",
|
|
888
|
+
}),
|
|
889
|
+
),
|
|
890
|
+
).annotate({ identifier: "GetJobRunRequest" });
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
function __c15(j: number): any {
|
|
894
|
+
switch (j) {
|
|
895
|
+
case 0:
|
|
896
|
+
return S.suspend(() =>
|
|
897
|
+
S.Struct({
|
|
898
|
+
id: S.optional(S.String),
|
|
899
|
+
job_definition_id: S.optional(S.String),
|
|
900
|
+
state: S.optional(S.String),
|
|
901
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
902
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
903
|
+
terminated_at: S.optional(S.NullOr(S.String)),
|
|
904
|
+
exit_code: S.optional(S.NullOr(S.Number)),
|
|
905
|
+
run_duration: S.optional(S.NullOr(S.String)),
|
|
906
|
+
error_message: S.optional(S.String),
|
|
907
|
+
cpu_limit: S.optional(S.Number),
|
|
908
|
+
memory_limit: S.optional(S.Number),
|
|
909
|
+
command: S.optional(S.String),
|
|
910
|
+
environment_variables: S.optional(__S(4, __c1, 0)),
|
|
911
|
+
local_storage_capacity: S.optional(S.Number),
|
|
912
|
+
started_at: S.optional(S.NullOr(S.String)),
|
|
913
|
+
region: S.optional(S.String),
|
|
914
|
+
}),
|
|
915
|
+
).annotate({ identifier: "JobRun" });
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
function __c16(j: number): any {
|
|
919
|
+
switch (j) {
|
|
920
|
+
case 0:
|
|
921
|
+
return S.suspend(() =>
|
|
922
|
+
S.Struct({
|
|
923
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
924
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
925
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
926
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
927
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
928
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
929
|
+
}).pipe(
|
|
930
|
+
T.Http({
|
|
931
|
+
method: "GET",
|
|
932
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions",
|
|
933
|
+
code: 200,
|
|
934
|
+
baseUrl: "https://api.scaleway.com",
|
|
935
|
+
}),
|
|
936
|
+
),
|
|
937
|
+
).annotate({ identifier: "ListJobDefinitionsRequest" });
|
|
938
|
+
case 1:
|
|
939
|
+
return S.Array(__S(9, __c2, 1));
|
|
940
|
+
case 2:
|
|
941
|
+
return S.suspend(() =>
|
|
942
|
+
S.Struct({
|
|
943
|
+
job_definitions: __S(65, __c16, 1),
|
|
944
|
+
total_count: S.optional(S.Number),
|
|
945
|
+
}),
|
|
946
|
+
).annotate({ identifier: "ListJobDefinitionsResponse" });
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
function __c17(j: number): any {
|
|
950
|
+
switch (j) {
|
|
951
|
+
case 0:
|
|
952
|
+
return S.suspend(() =>
|
|
953
|
+
S.Struct({
|
|
954
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
955
|
+
job_definition_id: S.String.pipe(T.Label()),
|
|
956
|
+
}).pipe(
|
|
957
|
+
T.Http({
|
|
958
|
+
method: "GET",
|
|
959
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-definitions/{job_definition_id}/secrets",
|
|
960
|
+
code: 200,
|
|
961
|
+
baseUrl: "https://api.scaleway.com",
|
|
962
|
+
}),
|
|
963
|
+
),
|
|
964
|
+
).annotate({ identifier: "ListJobDefinitionSecretsRequest" });
|
|
965
|
+
case 1:
|
|
966
|
+
return S.suspend(() =>
|
|
967
|
+
S.Struct({
|
|
968
|
+
secrets: S.optional(__S(16, __c4, 0)),
|
|
969
|
+
total_count: S.optional(S.Number),
|
|
970
|
+
}),
|
|
971
|
+
).annotate({ identifier: "ListJobDefinitionSecretsResponse" });
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
function __c18(j: number): any {
|
|
975
|
+
switch (j) {
|
|
976
|
+
case 0:
|
|
977
|
+
return S.Array(S.String);
|
|
978
|
+
case 1:
|
|
979
|
+
return S.suspend(() =>
|
|
980
|
+
S.Struct({
|
|
981
|
+
region: S.optional(S.String.pipe(T.Label())),
|
|
982
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
983
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
984
|
+
order_by: S.optional(S.String.pipe(T.Query())),
|
|
985
|
+
job_definition_id: S.optional(S.String.pipe(T.Query())),
|
|
986
|
+
project_id: S.optional(S.String.pipe(T.Query())),
|
|
987
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
988
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
989
|
+
states: S.optional(__S(72, __c18, 0).pipe(T.Query())),
|
|
990
|
+
}).pipe(
|
|
991
|
+
T.Http({
|
|
992
|
+
method: "GET",
|
|
993
|
+
uri: "/serverless-jobs/v1alpha1/regions/{region}/job-runs",
|
|
994
|
+
code: 200,
|
|
995
|
+
baseUrl: "https://api.scaleway.com",
|
|
996
|
+
}),
|
|
997
|
+
),
|
|
998
|
+
).annotate({ identifier: "ListJobRunsRequest" });
|
|
999
|
+
case 2:
|
|
1000
|
+
return S.suspend(() =>
|
|
1001
|
+
S.Struct({
|
|
1002
|
+
job_runs: __S(76, __c19, 0),
|
|
1003
|
+
total_count: S.optional(S.Number),
|
|
1004
|
+
}),
|
|
1005
|
+
).annotate({ identifier: "ListJobRunsResponse" });
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
function __c19(j: number): any {
|
|
1009
|
+
switch (j) {
|
|
1010
|
+
case 0:
|
|
1011
|
+
return S.Array(__S(60, __c15, 0));
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1015
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1016
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1017
|
+
}
|