Skip to content

Commit 34a932e

Browse files
authored
feat(edge-services): enable v1beta1 (#4659)
1 parent 5f367ad commit 34a932e

File tree

40 files changed

+821
-1500
lines changed

40 files changed

+821
-1500
lines changed

cmd/scw/testdata/test-all-usage-edge-services-backend-stage-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ USAGE:
66
scw edge-services backend-stage create [arg=value ...]
77

88
ARGS:
9-
[project-id] Project ID to use. If none is passed the default project ID will be used
109
[scaleway-s3.bucket-name] Name of the Bucket
1110
[scaleway-s3.bucket-region] Region of the Bucket
1211
[scaleway-s3.is-website] Defines whether the bucket website feature is enabled
@@ -15,6 +14,7 @@ ARGS:
1514
[scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer
1615
[scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections
1716
[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
17+
pipeline-id Pipeline ID the Backend stage belongs to
1818

1919
FLAGS:
2020
-h, --help help for create
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
version: 1
3+
interactions:
4+
- request:
5+
body: '{"access_key":"SCWBDFF054RNNE8204AJ", "secret_key":null, "description":"my-key",
6+
"created_at":"2022-06-10T08:39:27.845066Z", "updated_at":"2022-07-05T15:12:12.987880Z",
7+
"expires_at":null, "default_project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5",
8+
"editable":true, "deletable":true, "managed":false, "creation_ip":"51.159.46.153",
9+
"application_id":"531f5518-a0a5-44c2-b790-a9975505c89d"}'
10+
form: {}
11+
headers:
12+
User-Agent:
13+
- scaleway-sdk-go/v1.0.0-beta.33.0.20250402123125-11d6084394b9 (go1.24.0; darwin;
14+
amd64) cli-e2e-test
15+
url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCWBDFF054RNNE8204AJ
16+
method: GET
17+
response:
18+
body: '{"access_key":"SCWBDFF054RNNE8204AJ", "secret_key":null, "description":"my-key",
19+
"created_at":"2022-06-10T08:39:27.845066Z", "updated_at":"2022-07-05T15:12:12.987880Z",
20+
"expires_at":null, "default_project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5",
21+
"editable":true, "deletable":true, "managed":false, "creation_ip":"51.159.46.153",
22+
"application_id":"531f5518-a0a5-44c2-b790-a9975505c89d"}'
23+
headers:
24+
Content-Length:
25+
- "388"
26+
Content-Security-Policy:
27+
- default-src 'none'; frame-ancestors 'none'
28+
Content-Type:
29+
- application/json
30+
Date:
31+
- Tue, 08 Apr 2025 12:59:43 GMT
32+
Server:
33+
- Scaleway API Gateway (fr-par-1;edge01)
34+
Strict-Transport-Security:
35+
- max-age=63072000
36+
X-Content-Type-Options:
37+
- nosniff
38+
X-Frame-Options:
39+
- DENY
40+
X-Request-Id:
41+
- 129d6879-2522-484a-bcac-e1bb2aeabb78
42+
status: 200 OK
43+
code: 200
44+
duration: ""

cmd/scw/testdata/test-all-usage-edge-services-backend-stage-list-usage.golden

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ USAGE:
77

88
ARGS:
99
[order-by] Sort order of backend stages in the response (created_at_asc | created_at_desc)
10-
[pipeline-id] Pipeline ID to filter for, only backend stages from this pipeline will be returned
11-
[project-id] Project ID to filter for, only backend stages from this Project will be returned
12-
[bucket-name] Bucket name to filter for, only backend stages from this Bucket will be returned
13-
[bucket-region] Bucket region to filter for, only backend stages with buckets in this region will be returned
14-
[lb-id] Load Balancer ID to filter for, only backend stages with this Load Balancer will be returned
10+
pipeline-id Pipeline ID to filter for. Only backend stages from this pipeline will be returned
11+
[bucket-name] Bucket name to filter for. Only backend stages from this Bucket will be returned
12+
[bucket-region] Bucket region to filter for. Only backend stages with buckets in this region will be returned
13+
[lb-id] Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned
1514

1615
FLAGS:
1716
-h, --help help for list

cmd/scw/testdata/test-all-usage-edge-services-backend-stage-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ARGS:
1515
[scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer
1616
[scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections
1717
[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
18+
[pipeline-id] Pipeline ID the Backend stage belongs to
1819

1920
FLAGS:
2021
-h, --help help for update
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
version: 1
3+
interactions:
4+
- request:
5+
body: '{"access_key":"SCWBDFF054RNNE8204AJ", "secret_key":null, "description":"my-key",
6+
"created_at":"2022-06-10T08:39:27.845066Z", "updated_at":"2022-07-05T15:12:12.987880Z",
7+
"expires_at":null, "default_project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5",
8+
"editable":true, "creation_ip":"51.159.46.153", "application_id":"531f5518-a0a5-44c2-b790-a9975505c89d"}'
9+
form: {}
10+
headers:
11+
User-Agent:
12+
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) cli-e2e-test
13+
url: https://api.scaleway.com/iam/v1alpha1/api-keys/SCWXXXXXXXXXXXXXXXXX
14+
method: GET
15+
response:
16+
body: '{"access_key":"SCWBDFF054RNNE8204AJ", "secret_key":null, "description":"my-key",
17+
"created_at":"2022-06-10T08:39:27.845066Z", "updated_at":"2022-07-05T15:12:12.987880Z",
18+
"expires_at":null, "default_project_id":"564aa517-68b0-4fd7-8c8c-d21c4bcdcbd5",
19+
"editable":true, "creation_ip":"51.159.46.153", "application_id":"531f5518-a0a5-44c2-b790-a9975505c89d"}'
20+
headers:
21+
Content-Length:
22+
- "353"
23+
Content-Security-Policy:
24+
- default-src 'none'; frame-ancestors 'none'
25+
Content-Type:
26+
- application/json
27+
Date:
28+
- Tue, 09 Jul 2024 14:44:28 GMT
29+
Server:
30+
- Scaleway API Gateway (fr-par-3;edge02)
31+
Strict-Transport-Security:
32+
- max-age=63072000
33+
X-Content-Type-Options:
34+
- nosniff
35+
X-Frame-Options:
36+
- DENY
37+
X-Request-Id:
38+
- 5f4acf0c-34ef-4783-a893-3bcd63f3b1eb
39+
status: 200 OK
40+
code: 200
41+
duration: ""

cmd/scw/testdata/test-all-usage-edge-services-cache-stage-create-usage.golden

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ USAGE:
66
scw edge-services cache-stage create [arg=value ...]
77

88
ARGS:
9-
[project-id] Project ID to use. If none is passed the default project ID will be used
109
[fallback-ttl=3600s] Time To Live (TTL) in seconds. Defines how long content is cached
1110
[backend-stage-id] Backend stage ID the cache stage will be linked to
11+
pipeline-id Pipeline ID the Cache stage belongs to
12+
[waf-stage-id]
13+
[route-stage-id]
1214

1315
FLAGS:
1416
-h, --help help for create

cmd/scw/testdata/test-all-usage-edge-services-cache-stage-list-usage.golden

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ USAGE:
66
scw edge-services cache-stage list [arg=value ...]
77

88
ARGS:
9-
[order-by] Sort order of cache stages in the response (created_at_asc | created_at_desc)
10-
[pipeline-id] Pipeline ID to filter for, only cache stages from this pipeline will be returned
11-
[project-id] Project ID to filter for, only cache stages from this Project will be returned
9+
[order-by] Sort order of cache stages in the response (created_at_asc | created_at_desc)
10+
pipeline-id Pipeline ID to filter for. Only cache stages from this pipeline will be returned
1211

1312
FLAGS:
1413
-h, --help help for list

cmd/scw/testdata/test-all-usage-edge-services-cache-stage-update-usage.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ARGS:
99
cache-stage-id ID of the cache stage to update
1010
[fallback-ttl] Time To Live (TTL) in seconds. Defines how long content is cached
1111
[backend-stage-id] Backend stage ID the cache stage will be linked to
12+
[waf-stage-id]
13+
[route-stage-id]
1214

1315
FLAGS:
1416
-h, --help help for update

cmd/scw/testdata/test-all-usage-edge-services-dns-stage-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ USAGE:
66
scw edge-services dns-stage create [arg=value ...]
77

88
ARGS:
9-
[project-id] Project ID to use. If none is passed the default project ID will be used
109
[fqdns.{index}] Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage
1110
[tls-stage-id] TLS stage ID the DNS stage will be linked to
1211
[cache-stage-id] Cache stage ID the DNS stage will be linked to
1312
[backend-stage-id] Backend stage ID the DNS stage will be linked to
13+
pipeline-id Pipeline ID the DNS stage belongs to
1414

1515
FLAGS:
1616
-h, --help help for create

cmd/scw/testdata/test-all-usage-edge-services-dns-stage-list-usage.golden

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ USAGE:
66
scw edge-services dns-stage list [arg=value ...]
77

88
ARGS:
9-
[order-by] Sort order of DNS stages in the response (created_at_asc | created_at_desc)
10-
[pipeline-id] Pipeline ID to filter for, only DNS stages from this pipeline will be returned
11-
[project-id] Project ID to filter for, only DNS stages from this Project will be returned
12-
[fqdn] Fully Qualified Domain Name to filter for (in the format subdomain.example.com), only DNS stages with this FQDN will be returned
9+
[order-by] Sort order of DNS stages in the response (created_at_asc | created_at_desc)
10+
pipeline-id Pipeline ID to filter for. Only DNS stages from this pipeline will be returned
11+
[fqdn] Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned
1312

1413
FLAGS:
1514
-h, --help help for list

0 commit comments

Comments
 (0)