Skip to content

Commit 0e50e1e

Browse files
authored
feat: update generated APIs (#3362)
1 parent 8b6759c commit 0e50e1e

16 files changed

+409
-28
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ ARGS:
1313
[scopes.setup-metrics-rules] Permission to setup metrics rules
1414
[scopes.query-logs] Permission to fetch logs
1515
[scopes.write-logs] Permission to write logs
16-
[scopes.setup-logs-rules] Permission to setup logs rules
17-
[scopes.setup-alerts] Permission to setup alerts
16+
[scopes.setup-logs-rules] Permission to set up logs rules
17+
[scopes.setup-alerts] Permission to set up alerts
18+
[scopes.query-traces] Permission to fetch traces
19+
[scopes.write-traces] Permission to write traces
1820

1921
FLAGS:
2022
-h, --help help for create

cmd/scw/testdata/test-all-usage-instance-image-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ARGS:
1616
[additional-snapshots.{index}.id] UUID of the snapshot to add
1717
[additional-snapshots.{index}.name] Name of the additional snapshot
1818
[additional-snapshots.{index}.size] Size of the additional snapshot
19-
[additional-snapshots.{index}.volume-type] Underlying volume type of the additional snapshot (l_ssd | b_ssd | unified | scratch)
19+
[additional-snapshots.{index}.volume-type] Underlying volume type of the additional snapshot (l_ssd | b_ssd | unified | scratch | sbs_volume)
2020
[additional-snapshots.{index}.project-id] Project ID that own the additional snapshot
2121
[project-id] Project ID to use. If none is passed the default project ID will be used
2222
[tags.{index}] Tags of the image

cmd/scw/testdata/test-all-usage-instance-server-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ARGS:
2929
[private-network] List Instances in this Private Network
3030
[order] Define the order of the returned servers (creation_date_desc | creation_date_asc | modification_date_desc | modification_date_asc)
3131
[private-networks.{index}] List Instances from the given Private Networks (use commas to separate them)
32+
[private-nic-mac-address] List Instances associated with the given private NIC MAC address
3233
[organization-id] List only Instances of this Organization ID
3334
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
3435

cmd/scw/testdata/test-all-usage-instance-volume-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ARGS:
1919
[name=<generated>] Volume name
2020
[project-id] Project ID to use. If none is passed the default project ID will be used
2121
[tags.{index}] Volume tags
22-
[volume-type] Volume type (l_ssd | b_ssd | unified | scratch)
22+
[volume-type] Volume type (l_ssd | b_ssd | unified | scratch | sbs_volume)
2323
[size] Volume disk size, must be a multiple of 512
2424
[base-volume] ID of the volume on which this volume will be based
2525
[base-snapshot] ID of the snapshot on which this volume will be based

cmd/scw/testdata/test-all-usage-instance-volume-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ EXAMPLES:
2222
scw instance volume list volume-type=b_ssd name=foobar
2323

2424
ARGS:
25-
[volume-type] Filter by volume type (l_ssd | b_ssd | unified | scratch)
25+
[volume-type] Filter by volume type (l_ssd | b_ssd | unified | scratch | sbs_volume)
2626
[project-id] Filter volume by Project ID
2727
[tags.{index}] Filter volumes with these exact tags (to filter with several tags, use commas to separate them)
2828
[name] Filter volume by name (for eg. "vol" will return "myvolume" but not "data")

docs/commands/cockpit.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,10 @@ scw cockpit token create [arg=value ...]
425425
| scopes.setup-metrics-rules | | Permission to setup metrics rules |
426426
| scopes.query-logs | | Permission to fetch logs |
427427
| scopes.write-logs | | Permission to write logs |
428-
| scopes.setup-logs-rules | | Permission to setup logs rules |
429-
| scopes.setup-alerts | | Permission to setup alerts |
428+
| scopes.setup-logs-rules | | Permission to set up logs rules |
429+
| scopes.setup-alerts | | Permission to set up alerts |
430+
| scopes.query-traces | | Permission to fetch traces |
431+
| scopes.write-traces | | Permission to write traces |
430432

431433

432434

docs/commands/instance.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ scw instance image create [arg=value ...]
132132
| additional-snapshots.{index}.id | | UUID of the snapshot to add |
133133
| additional-snapshots.{index}.name | | Name of the additional snapshot |
134134
| additional-snapshots.{index}.size | | Size of the additional snapshot |
135-
| additional-snapshots.{index}.volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch` | Underlying volume type of the additional snapshot |
135+
| additional-snapshots.{index}.volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume` | Underlying volume type of the additional snapshot |
136136
| additional-snapshots.{index}.project-id | | Project ID that own the additional snapshot |
137137
| ~~additional-snapshots.{index}.organization-id~~ | Deprecated | Organization ID that own the additional snapshot |
138138
| project-id | | Project ID to use. If none is passed the default project ID will be used |
@@ -1977,6 +1977,7 @@ scw instance server list [arg=value ...]
19771977
| private-network | | List Instances in this Private Network |
19781978
| order | One of: `creation_date_desc`, `creation_date_asc`, `modification_date_desc`, `modification_date_asc` | Define the order of the returned servers |
19791979
| private-networks.{index} | | List Instances from the given Private Networks (use commas to separate them) |
1980+
| private-nic-mac-address | | List Instances associated with the given private NIC MAC address |
19801981
| organization-id | | List only Instances of this Organization ID |
19811982
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3`, `all` | Zone to target. If none is passed will use default zone from the config |
19821983

@@ -2928,7 +2929,7 @@ scw instance volume create [arg=value ...]
29282929
| name | Default: `<generated>` | Volume name |
29292930
| project-id | | Project ID to use. If none is passed the default project ID will be used |
29302931
| tags.{index} | | Volume tags |
2931-
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch` | Volume type |
2932+
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume` | Volume type |
29322933
| size | | Volume disk size, must be a multiple of 512 |
29332934
| base-volume | | ID of the volume on which this volume will be based |
29342935
| base-snapshot | | ID of the snapshot on which this volume will be based |
@@ -3032,7 +3033,7 @@ scw instance volume list [arg=value ...]
30323033

30333034
| Name | | Description |
30343035
|------|---|-------------|
3035-
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch` | Filter by volume type |
3036+
| volume-type | One of: `l_ssd`, `b_ssd`, `unified`, `scratch`, `sbs_volume` | Filter by volume type |
30363037
| project-id | | Filter volume by Project ID |
30373038
| tags.{index} | | Filter volumes with these exact tags (to filter with several tags, use commas to separate them) |
30383039
| name | | Filter volume by name (for eg. "vol" will return "myvolume" but not "data") |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/moby/buildkit v0.11.6
2525
github.com/opencontainers/go-digest v1.0.0
2626
github.com/pkg/errors v0.9.1
27-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230908124914-7f8e112a933b
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230911082817-45ad1e03b1bb
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.7.0
3030
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj
491491
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
492492
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
493493
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
494-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230908124914-7f8e112a933b h1:/9RVY5JPfLGX3ciuhPp03JxQPJhbMTyM/6y4sRYcK70=
495-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230908124914-7f8e112a933b/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
494+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230911082817-45ad1e03b1bb h1:symGjmphE602x27B1kY17r2BamxUaO5alk8y/Vw5N5M=
495+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230911082817-45ad1e03b1bb/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
496496
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
497497
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
498498
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/alias/testdata/test-alias-multiple-words.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ARGS:
2929
[private-network] List Instances in this Private Network
3030
[order] Define the order of the returned servers (creation_date_desc | creation_date_asc | modification_date_desc | modification_date_asc)
3131
[private-networks.{index}] List Instances from the given Private Networks (use commas to separate them)
32+
[private-nic-mac-address] List Instances associated with the given private NIC MAC address
3233
[organization-id] List only Instances of this Organization ID
3334
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
3435

0 commit comments

Comments
 (0)