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 41e26ba82c..415f40571f 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,20 +6,16 @@ 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-serverless-container.region] - [scaleway-serverless-container.container-id] - [scaleway-serverless-function.region] - [scaleway-serverless-function.function-id] + [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 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 c3b8dbcbad..ba8fa3122b 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,21 +6,17 @@ 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 - [scaleway-serverless-container.region] - [scaleway-serverless-container.container-id] - [scaleway-serverless-function.region] - [scaleway-serverless-function.function-id] + 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 FLAGS: -h, --help help for update diff --git a/docs/commands/edge-services.md b/docs/commands/edge-services.md index 821f3f5879..9905e63f7f 100644 --- a/docs/commands/edge-services.md +++ b/docs/commands/edge-services.md @@ -86,10 +86,6 @@ 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 | | | -| scaleway-serverless-function.region | | | -| scaleway-serverless-function.function-id | | | @@ -180,10 +176,6 @@ 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 | | | -| scaleway-serverless-function.region | | | -| scaleway-serverless-function.function-id | | | diff --git a/internal/namespaces/edge_services/v1beta1/edge_services_cli.go b/internal/namespaces/edge_services/v1beta1/edge_services_cli.go index 196407a64c..52200ca456 100644 --- a/internal/namespaces/edge_services/v1beta1/edge_services_cli.go +++ b/internal/namespaces/edge_services/v1beta1/edge_services_cli.go @@ -1352,30 +1352,6 @@ func edgeServicesBackendStageCreate() *core.Command { Deprecated: false, Positional: false, }, - { - Name: "scaleway-serverless-container.region", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "scaleway-serverless-container.container-id", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "scaleway-serverless-function.region", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "scaleway-serverless-function.function-id", - Required: false, - Deprecated: false, - Positional: false, - }, }, Run: func(ctx context.Context, args any) (i any, e error) { request := args.(*edge_services.CreateBackendStageRequest) @@ -1504,30 +1480,6 @@ func edgeServicesBackendStageUpdate() *core.Command { Deprecated: false, Positional: false, }, - { - Name: "scaleway-serverless-container.region", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "scaleway-serverless-container.container-id", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "scaleway-serverless-function.region", - Required: false, - Deprecated: false, - Positional: false, - }, - { - Name: "scaleway-serverless-function.function-id", - Required: false, - Deprecated: false, - Positional: false, - }, }, Run: func(ctx context.Context, args any) (i any, e error) { request := args.(*edge_services.UpdateBackendStageRequest)