Skip to content

Commit c5abf56

Browse files
committed
feat: update generated APIs
1 parent ece13ae commit c5abf56

8 files changed

+28
-11
lines changed

cmd/scw/testdata/test-all-usage-instance-ssh-add-key-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ USAGE:
1111
ARGS:
1212
[server-id] Server to add your key to
1313
[public-key] Public key you want to add to your server
14-
[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)
14+
[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)
1515

1616
FLAGS:
1717
-h, --help help for add-key

cmd/scw/testdata/test-all-usage-instance-ssh-install-config-usage.golden

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

88
ARGS:
99
[project-id] Project ID to use. If none is passed the default project ID will be used
10-
[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 | all)
10+
[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)
1111

1212
FLAGS:
1313
-h, --help help for install-config

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

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

1010
ARGS:
1111
server-id Server to add your key to
12-
[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)
12+
[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)
1313

1414
FLAGS:
1515
-h, --help help for list-keys

cmd/scw/testdata/test-all-usage-instance-ssh-remove-key-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
server-id Server to add your key to
1212
[name] Name of the key you want to remove, has to be the key comment or the index
1313
[public-key] Public key you want to remove
14-
[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)
14+
[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)
1515

1616
FLAGS:
1717
-h, --help help for remove-key

docs/commands/instance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,7 +2702,7 @@ scw instance ssh add-key [arg=value ...]
27022702
|------|---|-------------|
27032703
| server-id | | Server to add your key to |
27042704
| public-key | | Public key you want to add to your server |
2705-
| 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` | Zone to target. If none is passed will use default zone from the config |
2705+
| 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` | Zone to target. If none is passed will use default zone from the config |
27062706

27072707

27082708

@@ -2723,7 +2723,7 @@ scw instance ssh install-config [arg=value ...]
27232723
| Name | | Description |
27242724
|------|---|-------------|
27252725
| project-id | | Project ID to use. If none is passed the default project ID will be used |
2726-
| 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`, `all` | Zone to target. If none is passed will use default zone from the config |
2726+
| 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 |
27272727

27282728

27292729

@@ -2745,7 +2745,7 @@ scw instance ssh list-keys <server-id ...> [arg=value ...]
27452745
| Name | | Description |
27462746
|------|---|-------------|
27472747
| server-id | Required | Server to add your key to |
2748-
| 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` | Zone to target. If none is passed will use default zone from the config |
2748+
| 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` | Zone to target. If none is passed will use default zone from the config |
27492749

27502750

27512751

@@ -2769,7 +2769,7 @@ scw instance ssh remove-key [arg=value ...]
27692769
| server-id | Required | Server to add your key to |
27702770
| name | | Name of the key you want to remove, has to be the key comment or the index |
27712771
| public-key | | Public key you want to remove |
2772-
| 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` | Zone to target. If none is passed will use default zone from the config |
2772+
| 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` | Zone to target. If none is passed will use default zone from the config |
27732773

27742774

27752775

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.20230801154837-a7e6dd2091a2
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230803124132-fffe86137ff6
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
@@ -497,8 +497,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj
497497
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
498498
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
499499
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
500-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230801154837-a7e6dd2091a2 h1:m3QvKMJ1rgtAItgjEdU7diKN5ytxkSZu0sPCJrfGl1Y=
501-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230801154837-a7e6dd2091a2/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
500+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230803124132-fffe86137ff6 h1:kCk70YzD26Ph3Yx4i+cxVM9JOGywJvJcdpgDHuOF0N4=
501+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230803124132-fffe86137ff6/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
502502
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
503503
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
504504
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/marketplace/v2/marketplace_cli.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,23 @@ func marketplaceLocalImageList() *core.Command {
328328
return resp.LocalImages, nil
329329

330330
},
331+
View: &core.View{Fields: []*core.ViewField{
332+
{
333+
FieldName: "ID",
334+
},
335+
{
336+
FieldName: "Label",
337+
},
338+
{
339+
FieldName: "Arch",
340+
},
341+
{
342+
FieldName: "Zone",
343+
},
344+
{
345+
FieldName: "CompatibleCommercialTypes",
346+
},
347+
}},
331348
}
332349
}
333350

0 commit comments

Comments
 (0)