Skip to content

Commit ff36fc4

Browse files
authored
feat(audit_trail): add organization_id field to ListProducts (#4551)
1 parent 6bf736a commit ff36fc4

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

cmd/scw/testdata/test-all-usage-audit-trail-product-list-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ USAGE:
66
scw audit-trail product list [arg=value ...]
77

88
ARGS:
9-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
9+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1011

1112
FLAGS:
1213
-h, --help help for list

docs/commands/audit-trail.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ scw audit-trail product list [arg=value ...]
6363

6464
| Name | | Description |
6565
|------|---|-------------|
66+
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
6667
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams` | Region to target. If none is passed will use default region from the config |
6768

6869

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/mattn/go-isatty v0.0.20
2626
github.com/moby/buildkit v0.13.2
2727
github.com/opencontainers/go-digest v1.0.0
28-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226140953-adcb3060073c
28+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226161447-7f3ec4e202c0
2929
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3030
github.com/spf13/cobra v1.9.1
3131
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
458458
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
459459
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
460460
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
461-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226140953-adcb3060073c h1:f4HVB8yrLUV/t9TnqfuFOV5AQsNfTepuTcTFlxJ1AHw=
462-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226140953-adcb3060073c/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
461+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226161447-7f3ec4e202c0 h1:kntbxbL0kHhAqrVvirdezoXqDjCPWb47XWYPWH8v6k8=
462+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226161447-7f3ec4e202c0/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
463463
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
464464
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
465465
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/audit_trail/v1alpha1/audit_trail_cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func auditTrailProductList() *core.Command {
155155
// Deprecated: false,
156156
ArgsType: reflect.TypeOf(audit_trail.ListProductsRequest{}),
157157
ArgSpecs: core.ArgSpecs{
158+
core.OrganizationIDArgSpec(),
158159
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
159160
},
160161
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)