Skip to content

Commit f1c8eb9

Browse files
committed
feat: update generated APIs
1 parent 0b27241 commit f1c8eb9

9 files changed

+13
-17
lines changed

cmd/scw/testdata/test-all-usage-cockpit-data-source-create-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ USAGE:
88

99
ARGS:
1010
[project-id] Project ID to use. If none is passed the default project ID will be used
11-
[name] Data source name
12-
[type] Data source type (unknown_type | metrics | logs | traces)
11+
name Data source name
12+
type Data source type (unknown_type | metrics | logs | traces)
1313
[retention-days] Duration for which the data will be retained in the data source
1414
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1515

cmd/scw/testdata/test-all-usage-cockpit-data-source-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ USAGE:
66
scw cockpit data-source list [arg=value ...]
77

88
ARGS:
9-
[order-by] Sort order for data sources in the response (created_at_asc | created_at_desc | name_asc | name_desc | type_asc | type_desc)
109
[project-id] Project ID to use. If none is passed the default project ID will be used
1110
[origin] Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned (unknown_origin | scaleway | external | custom)
1211
[types.{index}] Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned (unknown_type | metrics | logs | traces)
12+
[order-by] Sort order for data sources in the response (created_at_asc | created_at_desc | name_asc | name_desc | type_asc | type_desc)
1313
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1414

1515
FLAGS:

cmd/scw/testdata/test-all-usage-cockpit-token-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88

99
ARGS:
1010
[project-id] Project ID to use. If none is passed the default project ID will be used
11-
[name] Name of the token
11+
name Name of the token
1212
[token-scopes.{index}] Token permission scopes (unknown_scope | read_only_metrics | write_only_metrics | full_access_metrics_rules | read_only_logs | write_only_logs | full_access_logs_rules | full_access_alert_manager | read_only_traces | write_only_traces)
1313
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1414

cmd/scw/testdata/test-all-usage-cockpit-token-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ USAGE:
77
scw cockpit token list [arg=value ...]
88

99
ARGS:
10-
[order-by] Order in which to return results (created_at_asc | created_at_desc | name_asc | name_desc)
1110
[project-id] Project ID to use. If none is passed the default project ID will be used
1211
[token-scopes.{index}] Token scopes to filter for (unknown_scope | read_only_metrics | write_only_metrics | full_access_metrics_rules | read_only_logs | write_only_logs | full_access_logs_rules | full_access_alert_manager | read_only_traces | write_only_traces)
12+
[order-by] Order in which to return results (created_at_asc | created_at_desc | name_asc | name_desc)
1313
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1414

1515
FLAGS:

docs/commands/cockpit.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ scw cockpit data-source create [arg=value ...]
201201
| Name | | Description |
202202
|------|---|-------------|
203203
| project-id | | Project ID to use. If none is passed the default project ID will be used |
204-
| name | | Data source name |
205-
| type | One of: `unknown_type`, `metrics`, `logs`, `traces` | Data source type |
204+
| name | Required | Data source name |
205+
| type | Required<br />One of: `unknown_type`, `metrics`, `logs`, `traces` | Data source type |
206206
| retention-days | | Duration for which the data will be retained in the data source |
207207
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
208208

@@ -263,10 +263,10 @@ scw cockpit data-source list [arg=value ...]
263263

264264
| Name | | Description |
265265
|------|---|-------------|
266-
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc`, `type_asc`, `type_desc` | Sort order for data sources in the response |
267266
| project-id | | Project ID to use. If none is passed the default project ID will be used |
268267
| origin | One of: `unknown_origin`, `scaleway`, `external`, `custom` | Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned |
269268
| types.{index} | One of: `unknown_type`, `metrics`, `logs`, `traces` | Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned |
269+
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc`, `type_asc`, `type_desc` | Sort order for data sources in the response |
270270
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |
271271

272272

@@ -601,7 +601,7 @@ scw cockpit token create [arg=value ...]
601601
| Name | | Description |
602602
|------|---|-------------|
603603
| project-id | | Project ID to use. If none is passed the default project ID will be used |
604-
| name | | Name of the token |
604+
| name | Required | Name of the token |
605605
| token-scopes.{index} | One of: `unknown_scope`, `read_only_metrics`, `write_only_metrics`, `full_access_metrics_rules`, `read_only_logs`, `write_only_logs`, `full_access_logs_rules`, `full_access_alert_manager`, `read_only_traces`, `write_only_traces` | Token permission scopes |
606606
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
607607

@@ -663,9 +663,9 @@ scw cockpit token list [arg=value ...]
663663

664664
| Name | | Description |
665665
|------|---|-------------|
666-
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc` | Order in which to return results |
667666
| project-id | | Project ID to use. If none is passed the default project ID will be used |
668667
| token-scopes.{index} | One of: `unknown_scope`, `read_only_metrics`, `write_only_metrics`, `full_access_metrics_rules`, `read_only_logs`, `write_only_logs`, `full_access_logs_rules`, `full_access_alert_manager`, `read_only_traces`, `write_only_traces` | Token scopes to filter for |
668+
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc` | Order in which to return results |
669669
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |
670670

671671

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/mattn/go-isatty v0.0.20
2424
github.com/moby/buildkit v0.26.3
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20251231090604-170adc175025
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260106145939-e89686474154
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.10.2
2929
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
468468
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
469469
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
470470
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
471-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20251231090604-170adc175025 h1:PGrR+ZrTify2ZSWffLal3oyfL19PViJsn/wQAPsyT1A=
472-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20251231090604-170adc175025/go.mod h1:LEsDu4BubxK7/cWhtlQWfuxwL4rf/2UEpxXz1o1EMtM=
471+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260106145939-e89686474154 h1:kQUIJ4EkjnYPrgnIRDICzSY8S3w/FCirxf2YXuXUl08=
472+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260106145939-e89686474154/go.mod h1:LEsDu4BubxK7/cWhtlQWfuxwL4rf/2UEpxXz1o1EMtM=
473473
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
474474
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
475475
github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g=

internal/namespaces/k8s/v1/testdata/test-get-cluster-simple.golden

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ PrivateNetworkID 4a64f3e9-f128-4679-84ac-af05eec5b520
1919
CommitmentEndsAt few seconds ago
2020
ACLAvailable true
2121
IamNodesGroupID -
22-
NewImagesEnabled true
2322
PodCidr 100.64.0.0/15
2423
ServiceCidr 10.32.0.0/20
2524
ServiceDNSIP 10.32.0.10
@@ -104,7 +103,6 @@ ID NAME STATUS VERSION NODE TYPE MIN
104103
"commitment_ends_at": "1970-01-01T00:00:00.0Z",
105104
"acl_available": true,
106105
"iam_nodes_group_id": "",
107-
"new_images_enabled": true,
108106
"pod_cidr": "100.64.0.0/15",
109107
"service_cidr": "10.32.0.0/20",
110108
"service_dns_ip": "10.32.0.10",

internal/namespaces/k8s/v1/testdata/test-wait-cluster-wait-for-pools.golden

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ PrivateNetworkID f932db89-93ed-4779-b9d4-2231b507aea2
1919
CommitmentEndsAt few seconds ago
2020
ACLAvailable true
2121
IamNodesGroupID 30185f78-13c6-470e-a589-bc4f33fd9119
22-
NewImagesEnabled true
2322
PodCidr 100.64.0.0/15
2423
ServiceCidr 10.32.0.0/20
2524
ServiceDNSIP 10.32.0.10
@@ -100,7 +99,6 @@ GroupsPrefix -
10099
"commitment_ends_at": "1970-01-01T00:00:00.0Z",
101100
"acl_available": true,
102101
"iam_nodes_group_id": "30185f78-13c6-470e-a589-bc4f33fd9119",
103-
"new_images_enabled": true,
104102
"pod_cidr": "100.64.0.0/15",
105103
"service_cidr": "10.32.0.0/20",
106104
"service_dns_ip": "10.32.0.10"

0 commit comments

Comments
 (0)