From e27e105bed1e2e6da47d003c506a04a7a2f05dcb Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 28 Nov 2025 15:37:56 +0000 Subject: [PATCH] feat: update generated APIs --- ...-usage-audit-trail-event-list-usage.golden | 2 +- ...services-backend-stage-create-usage.golden | 22 +++++++++-------- ...services-backend-stage-update-usage.golden | 24 ++++++++++--------- docs/commands/audit-trail.md | 2 +- docs/commands/edge-services.md | 4 ++++ go.mod | 2 +- go.sum | 4 ++-- .../audit_trail/v1alpha1/audit_trail_cli.go | 1 + 8 files changed, 35 insertions(+), 26 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-audit-trail-event-list-usage.golden b/cmd/scw/testdata/test-all-usage-audit-trail-event-list-usage.golden index e2c62c3660..0bfd390c38 100644 --- a/cmd/scw/testdata/test-all-usage-audit-trail-event-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-audit-trail-event-list-usage.golden @@ -7,7 +7,7 @@ USAGE: ARGS: [project-id] (Optional) ID of the Project containing the Audit Trail events - [resource-type] (Optional) Type of the Scaleway resource (unknown_type | secm_secret | secm_secret_version | kube_cluster | kube_pool | kube_node | kube_acl | keym_key | iam_user | iam_application | iam_group | iam_policy | iam_api_key | iam_ssh_key | iam_rule | iam_saml | iam_saml_certificate | iam_scim | iam_scim_token | secret_manager_secret | secret_manager_version | key_manager_key | account_user | account_organization | account_project | instance_server | instance_placement_group | instance_security_group | instance_volume | instance_snapshot | instance_image | instance_template | apple_silicon_server | baremetal_server | baremetal_setting | ipam_ip | sbs_volume | sbs_snapshot | load_balancer_lb | load_balancer_ip | load_balancer_frontend | load_balancer_backend | load_balancer_route | load_balancer_acl | load_balancer_certificate | sfs_filesystem | vpc_private_network | edge_services_plan | edge_services_pipeline | edge_services_dns_stage | edge_services_tls_stage | edge_services_cache_stage | edge_services_route_stage | edge_services_route_rules | edge_services_waf_stage | edge_services_backend_stage | s2s_vpn_gateway | s2s_customer_gateway | s2s_routing_policy | s2s_connection) + [resource-type] (Optional) Type of the Scaleway resource (unknown_type | secm_secret | secm_secret_version | kube_cluster | kube_pool | kube_node | kube_acl | keym_key | iam_user | iam_application | iam_group | iam_policy | iam_api_key | iam_ssh_key | iam_rule | iam_saml | iam_saml_certificate | iam_scim | iam_scim_token | secret_manager_secret | secret_manager_version | key_manager_key | account_user | account_organization | account_project | account_contract_signature | instance_server | instance_placement_group | instance_security_group | instance_volume | instance_snapshot | instance_image | instance_template | apple_silicon_server | baremetal_server | baremetal_setting | ipam_ip | sbs_volume | sbs_snapshot | load_balancer_lb | load_balancer_ip | load_balancer_frontend | load_balancer_backend | load_balancer_route | load_balancer_acl | load_balancer_certificate | sfs_filesystem | vpc_private_network | edge_services_plan | edge_services_pipeline | edge_services_dns_stage | edge_services_tls_stage | edge_services_cache_stage | edge_services_route_stage | edge_services_route_rules | edge_services_waf_stage | edge_services_backend_stage | s2s_vpn_gateway | s2s_customer_gateway | s2s_routing_policy | s2s_connection) [method-name] (Optional) Name of the method of the API call performed [status] (Optional) HTTP status code of the request. Returns either `200` if the request was successful or `403` if the permission was denied [recorded-after] (Optional) The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default diff --git a/cmd/scw/testdata/test-all-usage-edge-services-backend-stage-create-usage.golden b/cmd/scw/testdata/test-all-usage-edge-services-backend-stage-create-usage.golden index 9a82b01318..e26e7d9e46 100644 --- a/cmd/scw/testdata/test-all-usage-edge-services-backend-stage-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-edge-services-backend-stage-create-usage.golden @@ -6,16 +6,18 @@ USAGE: scw edge-services backend-stage create [arg=value ...] ARGS: - [scaleway-s3.bucket-name] Name of the Bucket - [scaleway-s3.bucket-region] Region of the Bucket - [scaleway-s3.is-website] Defines whether the bucket website feature is enabled - [scaleway-lb.lbs.{index}.id] ID of the Load Balancer - [scaleway-lb.lbs.{index}.zone] Zone of the Load Balancer - [scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer - [scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections - [scaleway-lb.lbs.{index}.domain-name] Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer - [scaleway-lb.lbs.{index}.has-websocket] Defines whether to forward websocket requests to the load balancer - pipeline-id Pipeline ID the Backend stage belongs to + [scaleway-s3.bucket-name] Name of the Bucket + [scaleway-s3.bucket-region] Region of the Bucket + [scaleway-s3.is-website] Defines whether the bucket website feature is enabled + [scaleway-lb.lbs.{index}.id] ID of the Load Balancer + [scaleway-lb.lbs.{index}.zone] Zone of the Load Balancer + [scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer + [scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections + [scaleway-lb.lbs.{index}.domain-name] Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer + [scaleway-lb.lbs.{index}.has-websocket] Defines whether to forward websocket requests to the load balancer + pipeline-id Pipeline ID the Backend stage belongs to + [scaleway-serverless-container.region] + [scaleway-serverless-container.container-id] FLAGS: -h, --help help for create diff --git a/cmd/scw/testdata/test-all-usage-edge-services-backend-stage-update-usage.golden b/cmd/scw/testdata/test-all-usage-edge-services-backend-stage-update-usage.golden index e65f4a1fc4..af84676f11 100644 --- a/cmd/scw/testdata/test-all-usage-edge-services-backend-stage-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-edge-services-backend-stage-update-usage.golden @@ -6,17 +6,19 @@ USAGE: scw edge-services backend-stage update [arg=value ...] ARGS: - backend-stage-id ID of the backend stage to update - [scaleway-s3.bucket-name] Name of the Bucket - [scaleway-s3.bucket-region] Region of the Bucket - [scaleway-s3.is-website] Defines whether the bucket website feature is enabled - [scaleway-lb.lbs.{index}.id] ID of the Load Balancer - [scaleway-lb.lbs.{index}.zone] Zone of the Load Balancer - [scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer - [scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections - [scaleway-lb.lbs.{index}.domain-name] Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer - [scaleway-lb.lbs.{index}.has-websocket] Defines whether to forward websocket requests to the load balancer - [pipeline-id] Pipeline ID the Backend stage belongs to + backend-stage-id ID of the backend stage to update + [scaleway-s3.bucket-name] Name of the Bucket + [scaleway-s3.bucket-region] Region of the Bucket + [scaleway-s3.is-website] Defines whether the bucket website feature is enabled + [scaleway-lb.lbs.{index}.id] ID of the Load Balancer + [scaleway-lb.lbs.{index}.zone] Zone of the Load Balancer + [scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer + [scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections + [scaleway-lb.lbs.{index}.domain-name] Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer + [scaleway-lb.lbs.{index}.has-websocket] Defines whether to forward websocket requests to the load balancer + [pipeline-id] Pipeline ID the Backend stage belongs to + [scaleway-serverless-container.region] + [scaleway-serverless-container.container-id] FLAGS: -h, --help help for update diff --git a/docs/commands/audit-trail.md b/docs/commands/audit-trail.md index 5725ae0fbd..41b085d970 100644 --- a/docs/commands/audit-trail.md +++ b/docs/commands/audit-trail.md @@ -29,7 +29,7 @@ scw audit-trail event list [arg=value ...] | Name | | Description | |------|---|-------------| | project-id | | (Optional) ID of the Project containing the Audit Trail events | -| resource-type | One of: `unknown_type`, `secm_secret`, `secm_secret_version`, `kube_cluster`, `kube_pool`, `kube_node`, `kube_acl`, `keym_key`, `iam_user`, `iam_application`, `iam_group`, `iam_policy`, `iam_api_key`, `iam_ssh_key`, `iam_rule`, `iam_saml`, `iam_saml_certificate`, `iam_scim`, `iam_scim_token`, `secret_manager_secret`, `secret_manager_version`, `key_manager_key`, `account_user`, `account_organization`, `account_project`, `instance_server`, `instance_placement_group`, `instance_security_group`, `instance_volume`, `instance_snapshot`, `instance_image`, `instance_template`, `apple_silicon_server`, `baremetal_server`, `baremetal_setting`, `ipam_ip`, `sbs_volume`, `sbs_snapshot`, `load_balancer_lb`, `load_balancer_ip`, `load_balancer_frontend`, `load_balancer_backend`, `load_balancer_route`, `load_balancer_acl`, `load_balancer_certificate`, `sfs_filesystem`, `vpc_private_network`, `edge_services_plan`, `edge_services_pipeline`, `edge_services_dns_stage`, `edge_services_tls_stage`, `edge_services_cache_stage`, `edge_services_route_stage`, `edge_services_route_rules`, `edge_services_waf_stage`, `edge_services_backend_stage`, `s2s_vpn_gateway`, `s2s_customer_gateway`, `s2s_routing_policy`, `s2s_connection` | (Optional) Type of the Scaleway resource | +| resource-type | One of: `unknown_type`, `secm_secret`, `secm_secret_version`, `kube_cluster`, `kube_pool`, `kube_node`, `kube_acl`, `keym_key`, `iam_user`, `iam_application`, `iam_group`, `iam_policy`, `iam_api_key`, `iam_ssh_key`, `iam_rule`, `iam_saml`, `iam_saml_certificate`, `iam_scim`, `iam_scim_token`, `secret_manager_secret`, `secret_manager_version`, `key_manager_key`, `account_user`, `account_organization`, `account_project`, `account_contract_signature`, `instance_server`, `instance_placement_group`, `instance_security_group`, `instance_volume`, `instance_snapshot`, `instance_image`, `instance_template`, `apple_silicon_server`, `baremetal_server`, `baremetal_setting`, `ipam_ip`, `sbs_volume`, `sbs_snapshot`, `load_balancer_lb`, `load_balancer_ip`, `load_balancer_frontend`, `load_balancer_backend`, `load_balancer_route`, `load_balancer_acl`, `load_balancer_certificate`, `sfs_filesystem`, `vpc_private_network`, `edge_services_plan`, `edge_services_pipeline`, `edge_services_dns_stage`, `edge_services_tls_stage`, `edge_services_cache_stage`, `edge_services_route_stage`, `edge_services_route_rules`, `edge_services_waf_stage`, `edge_services_backend_stage`, `s2s_vpn_gateway`, `s2s_customer_gateway`, `s2s_routing_policy`, `s2s_connection` | (Optional) Type of the Scaleway resource | | method-name | | (Optional) Name of the method of the API call performed | | status | | (Optional) HTTP status code of the request. Returns either `200` if the request was successful or `403` if the permission was denied | | recorded-after | | (Optional) The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default | diff --git a/docs/commands/edge-services.md b/docs/commands/edge-services.md index d4d8c99f99..a4bf436456 100644 --- a/docs/commands/edge-services.md +++ b/docs/commands/edge-services.md @@ -84,6 +84,8 @@ scw edge-services backend-stage create [arg=value ...] | scaleway-lb.lbs.{index}.domain-name | | Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer | | scaleway-lb.lbs.{index}.has-websocket | | Defines whether to forward websocket requests to the load balancer | | pipeline-id | Required | Pipeline ID the Backend stage belongs to | +| scaleway-serverless-container.region | | | +| scaleway-serverless-container.container-id | | | @@ -174,6 +176,8 @@ scw edge-services backend-stage update [arg=value ...] | scaleway-lb.lbs.{index}.domain-name | | Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer | | scaleway-lb.lbs.{index}.has-websocket | | Defines whether to forward websocket requests to the load balancer | | pipeline-id | | Pipeline ID the Backend stage belongs to | +| scaleway-serverless-container.region | | | +| scaleway-serverless-container.container-id | | | diff --git a/go.mod b/go.mod index 3633450362..bd5a9955b3 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/mattn/go-isatty v0.0.20 github.com/moby/buildkit v0.26.2 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127153135-87311553a421 + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127155323-7d5ea125dcd7 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.10.1 github.com/spf13/pflag v1.0.10 diff --git a/go.sum b/go.sum index e772c07627..a912fe3222 100644 --- a/go.sum +++ b/go.sum @@ -464,8 +464,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127153135-87311553a421 h1:dh86GHLzpn8fTzjQ5TlKoN9OZBgSw0H4LX61v/2LnRw= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127153135-87311553a421/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127155323-7d5ea125dcd7 h1:ytLZVvlGeh0Naqh0XIg7H+Q+3Umbu+3K0jjiuwmQTPw= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127155323-7d5ea125dcd7/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g= diff --git a/internal/namespaces/audit_trail/v1alpha1/audit_trail_cli.go b/internal/namespaces/audit_trail/v1alpha1/audit_trail_cli.go index 6489793231..11f701b4a5 100644 --- a/internal/namespaces/audit_trail/v1alpha1/audit_trail_cli.go +++ b/internal/namespaces/audit_trail/v1alpha1/audit_trail_cli.go @@ -102,6 +102,7 @@ func auditTrailEventList() *core.Command { "account_user", "account_organization", "account_project", + "account_contract_signature", "instance_server", "instance_placement_group", "instance_security_group",