Skip to content

Commit 9220470

Browse files
committed
feat: update generated APIs
1 parent 6fa305f commit 9220470

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
lines changed

cmd/scw/testdata/test-all-usage-block-snapshot-create-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ To create a snapshot, the volume must be in the `in_use` or the `available` stat
44
If your volume is in a transient state, you need to wait until the end of the current operation.
55

66
USAGE:
7-
scw block snapshot create [arg=value ...]
7+
scw block snapshot create <volume-id ...> [arg=value ...]
88

99
ARGS:
10-
[volume-id] UUID of the volume to snapshot
10+
volume-id UUID of the volume to snapshot
1111
[name=<generated>] Name of the snapshot
1212
[project-id] Project ID to use. If none is passed the default project ID will be used
1313
[tags.{index}] List of tags assigned to the snapshot

cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[source.zonal] Zone the IP lives in if the IP is a public zoned IP.
1111
[source.private-network-id] Private Network the IP lives in if the IP is a private IP.
1212
[source.subnet-id] Private Network subnet the IP lives in if the IP is a private IP in a Private Network.
13+
[source.vpc-id]
1314
[is-ipv6] Request an IPv6 instead of an IPv4
1415
[address] Request this specific IP address in the specified source pool
1516
[tags.{index}] Tags for the IP

cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ARGS:
2222
[tags.{index}] Tags to filter for, only IPs with one or more matching tags will be returned
2323
[is-ipv6] Defines whether to filter only for IPv4s or IPv6s
2424
[ip-ids.{index}] IP IDs to filter for. Only IPs with these UUIDs will be returned
25+
[source-vpc-id]
2526
[organization-id] Organization ID to filter for. Only IPs belonging to this Organization will be returned
2627
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
2728

docs/commands/block.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ If your volume is in a transient state, you need to wait until the end of the cu
3535
**Usage:**
3636

3737
```
38-
scw block snapshot create [arg=value ...]
38+
scw block snapshot create <volume-id ...> [arg=value ...]
3939
```
4040

4141

4242
**Args:**
4343

4444
| Name | | Description |
4545
|------|---|-------------|
46-
| volume-id | | UUID of the volume to snapshot |
46+
| volume-id | Required | UUID of the volume to snapshot |
4747
| name | Default: `<generated>` | Name of the snapshot |
4848
| project-id | | Project ID to use. If none is passed the default project ID will be used |
4949
| tags.{index} | | List of tags assigned to the snapshot |

docs/commands/ipam.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ scw ipam ip create [arg=value ...]
3636
| source.zonal | | Zone the IP lives in if the IP is a public zoned IP. |
3737
| source.private-network-id | | Private Network the IP lives in if the IP is a private IP. |
3838
| source.subnet-id | | Private Network subnet the IP lives in if the IP is a private IP in a Private Network. |
39+
| source.vpc-id | | |
3940
| is-ipv6 | | Request an IPv6 instead of an IPv4 |
4041
| address | | Request this specific IP address in the specified source pool |
4142
| tags.{index} | | Tags for the IP |
@@ -116,6 +117,7 @@ scw ipam ip list [arg=value ...]
116117
| tags.{index} | | Tags to filter for, only IPs with one or more matching tags will be returned |
117118
| is-ipv6 | | Defines whether to filter only for IPv4s or IPv6s |
118119
| ip-ids.{index} | | IP IDs to filter for. Only IPs with these UUIDs will be returned |
120+
| source-vpc-id | | |
119121
| organization-id | | Organization ID to filter for. Only IPs belonging to this Organization will be returned |
120122
| 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 |
121123

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.13.2
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250522081800-5c022ea08bfd
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602130818-6c0782903c76
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.9.1
2929
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
466466
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
468468
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250522081800-5c022ea08bfd h1:pREUaKMVVWP3gbbZ/FQAXjQ1SpLHAMDF4KJfnfstr5M=
470-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250522081800-5c022ea08bfd/go.mod h1:qiGzapFyNPFwBBLJ+hTFykKSnU95n1zL64+o1ubmwf0=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602130818-6c0782903c76 h1:z5LBvzG8eD6+iBuIH+ZFZX5K9BxQ2Mwk79dpmvXMNws=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602130818-6c0782903c76/go.mod h1:qiGzapFyNPFwBBLJ+hTFykKSnU95n1zL64+o1ubmwf0=
471471
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
472472
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
473473
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/iam/v1alpha1/iam_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99

1010
"github.com/scaleway/scaleway-cli/v2/core"
11-
iam "github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1"
11+
"github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1"
1212
"github.com/scaleway/scaleway-sdk-go/scw"
1313
)
1414

0 commit comments

Comments
 (0)