From 92204707d59ee51fba1d6ce8ee5cf895a440b8b5 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 2 Jun 2025 15:41:38 +0000 Subject: [PATCH 1/2] feat: update generated APIs --- .../test-all-usage-block-snapshot-create-usage.golden | 4 ++-- cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden | 1 + cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden | 1 + docs/commands/block.md | 4 ++-- docs/commands/ipam.md | 2 ++ go.mod | 2 +- go.sum | 4 ++-- internal/namespaces/iam/v1alpha1/iam_cli.go | 2 +- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-block-snapshot-create-usage.golden b/cmd/scw/testdata/test-all-usage-block-snapshot-create-usage.golden index 4760220693..5480c0d434 100644 --- a/cmd/scw/testdata/test-all-usage-block-snapshot-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-block-snapshot-create-usage.golden @@ -4,10 +4,10 @@ To create a snapshot, the volume must be in the `in_use` or the `available` stat If your volume is in a transient state, you need to wait until the end of the current operation. USAGE: - scw block snapshot create [arg=value ...] + scw block snapshot create [arg=value ...] ARGS: - [volume-id] UUID of the volume to snapshot + volume-id UUID of the volume to snapshot [name=] Name of the snapshot [project-id] Project ID to use. If none is passed the default project ID will be used [tags.{index}] List of tags assigned to the snapshot diff --git a/cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden b/cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden index f9ea7ef6b0..f9dc59f98a 100644 --- a/cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden @@ -10,6 +10,7 @@ ARGS: [source.zonal] Zone the IP lives in if the IP is a public zoned IP. [source.private-network-id] Private Network the IP lives in if the IP is a private IP. [source.subnet-id] Private Network subnet the IP lives in if the IP is a private IP in a Private Network. + [source.vpc-id] [is-ipv6] Request an IPv6 instead of an IPv4 [address] Request this specific IP address in the specified source pool [tags.{index}] Tags for the IP diff --git a/cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden b/cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden index 8525afb4e2..8315cbb7c5 100644 --- a/cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden @@ -22,6 +22,7 @@ ARGS: [tags.{index}] Tags to filter for, only IPs with one or more matching tags will be returned [is-ipv6] Defines whether to filter only for IPv4s or IPv6s [ip-ids.{index}] IP IDs to filter for. Only IPs with these UUIDs will be returned + [source-vpc-id] [organization-id] Organization ID to filter for. Only IPs belonging to this Organization will be returned [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all) diff --git a/docs/commands/block.md b/docs/commands/block.md index 29acdf452c..e39c4e1f50 100644 --- a/docs/commands/block.md +++ b/docs/commands/block.md @@ -35,7 +35,7 @@ If your volume is in a transient state, you need to wait until the end of the cu **Usage:** ``` -scw block snapshot create [arg=value ...] +scw block snapshot create [arg=value ...] ``` @@ -43,7 +43,7 @@ scw block snapshot create [arg=value ...] | Name | | Description | |------|---|-------------| -| volume-id | | UUID of the volume to snapshot | +| volume-id | Required | UUID of the volume to snapshot | | name | Default: `` | Name of the snapshot | | project-id | | Project ID to use. If none is passed the default project ID will be used | | tags.{index} | | List of tags assigned to the snapshot | diff --git a/docs/commands/ipam.md b/docs/commands/ipam.md index b5c693d3b8..23149f6c3e 100644 --- a/docs/commands/ipam.md +++ b/docs/commands/ipam.md @@ -36,6 +36,7 @@ scw ipam ip create [arg=value ...] | source.zonal | | Zone the IP lives in if the IP is a public zoned IP. | | source.private-network-id | | Private Network the IP lives in if the IP is a private IP. | | source.subnet-id | | Private Network subnet the IP lives in if the IP is a private IP in a Private Network. | +| source.vpc-id | | | | is-ipv6 | | Request an IPv6 instead of an IPv4 | | address | | Request this specific IP address in the specified source pool | | tags.{index} | | Tags for the IP | @@ -116,6 +117,7 @@ scw ipam ip list [arg=value ...] | tags.{index} | | Tags to filter for, only IPs with one or more matching tags will be returned | | is-ipv6 | | Defines whether to filter only for IPv4s or IPv6s | | ip-ids.{index} | | IP IDs to filter for. Only IPs with these UUIDs will be returned | +| source-vpc-id | | | | organization-id | | Organization ID to filter for. Only IPs belonging to this Organization will be returned | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config | diff --git a/go.mod b/go.mod index a510995bb7..1432190ec1 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/mattn/go-isatty v0.0.20 github.com/moby/buildkit v0.13.2 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250522081800-5c022ea08bfd + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602130818-6c0782903c76 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.9.1 github.com/spf13/pflag v1.0.6 diff --git a/go.sum b/go.sum index 9e5d873b02..2683b8a7b2 100644 --- a/go.sum +++ b/go.sum @@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250522081800-5c022ea08bfd h1:pREUaKMVVWP3gbbZ/FQAXjQ1SpLHAMDF4KJfnfstr5M= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250522081800-5c022ea08bfd/go.mod h1:qiGzapFyNPFwBBLJ+hTFykKSnU95n1zL64+o1ubmwf0= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602130818-6c0782903c76 h1:z5LBvzG8eD6+iBuIH+ZFZX5K9BxQ2Mwk79dpmvXMNws= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250602130818-6c0782903c76/go.mod h1:qiGzapFyNPFwBBLJ+hTFykKSnU95n1zL64+o1ubmwf0= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA= diff --git a/internal/namespaces/iam/v1alpha1/iam_cli.go b/internal/namespaces/iam/v1alpha1/iam_cli.go index a61df098a9..291fd04221 100644 --- a/internal/namespaces/iam/v1alpha1/iam_cli.go +++ b/internal/namespaces/iam/v1alpha1/iam_cli.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/scaleway/scaleway-cli/v2/core" - iam "github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1" + "github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1" "github.com/scaleway/scaleway-sdk-go/scw" ) From 2c3f28bfcdfca31742634a1d28a11235e3abd427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Le=C3=AFla=20Marabese?= Date: Mon, 2 Jun 2025 22:10:11 +0200 Subject: [PATCH 2/2] linter --- internal/namespaces/iam/v1alpha1/iam_cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/namespaces/iam/v1alpha1/iam_cli.go b/internal/namespaces/iam/v1alpha1/iam_cli.go index 291fd04221..a61df098a9 100644 --- a/internal/namespaces/iam/v1alpha1/iam_cli.go +++ b/internal/namespaces/iam/v1alpha1/iam_cli.go @@ -8,7 +8,7 @@ import ( "reflect" "github.com/scaleway/scaleway-cli/v2/core" - "github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1" + iam "github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1" "github.com/scaleway/scaleway-sdk-go/scw" )