Skip to content

Commit 78e68fb

Browse files
committed
feat: update generated APIs
1 parent 89b3957 commit 78e68fb

File tree

7 files changed

+33
-6
lines changed

7 files changed

+33
-6
lines changed

cmd/scw/testdata/test-all-usage-secret-secret-create-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
You must sepcify the `region` to create a secret.
3+
You must specify the `region` to create a secret.
44

55
USAGE:
66
scw secret secret create [arg=value ...]
@@ -15,6 +15,7 @@ ARGS:
1515
[tags.{index}] List of the secret's tags
1616
[description] Description of the secret
1717
[type] Type of the secret (unknown_secret_type | opaque | certificate)
18+
[path] Path of the secret
1819
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
1920

2021
FLAGS:

cmd/scw/testdata/test-all-usage-secret-secret-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ARGS:
1111
[tags.{index}] List of tags to filter on (optional)
1212
[name] Filter by secret name (optional)
1313
[is-managed] Filter by managed / not managed (optional)
14+
[path] Filter by path (optional)
1415
[organization-id] Filter by Organization ID (optional)
1516
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all)
1617

cmd/scw/testdata/test-all-usage-secret-secret-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[name] Secret's updated name (optional)
1111
[tags.{index}] Secret's updated list of tags (optional)
1212
[description] Description of the secret
13+
[path] Path of the folder
1314
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
1415

1516
FLAGS:

docs/commands/secret.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Secrets are logical containers made up of zero or more immutable versions, that
2727

2828
### Create a secret
2929

30-
You must sepcify the `region` to create a secret.
30+
You must specify the `region` to create a secret.
3131

3232
**Usage:**
3333

@@ -45,6 +45,7 @@ scw secret secret create [arg=value ...]
4545
| tags.{index} | | List of the secret's tags |
4646
| description | | Description of the secret |
4747
| type | One of: `unknown_secret_type`, `opaque`, `certificate` | Type of the secret |
48+
| path | | Path of the secret |
4849
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
4950

5051

@@ -129,6 +130,7 @@ scw secret secret list [arg=value ...]
129130
| tags.{index} | | List of tags to filter on (optional) |
130131
| name | | Filter by secret name (optional) |
131132
| is-managed | | Filter by managed / not managed (optional) |
133+
| path | | Filter by path (optional) |
132134
| organization-id | | Filter by Organization ID (optional) |
133135
| region | Default: `fr-par`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |
134136

@@ -153,6 +155,7 @@ scw secret secret update [arg=value ...]
153155
| name | | Secret's updated name (optional) |
154156
| tags.{index} | | Secret's updated list of tags (optional) |
155157
| description | | Description of the secret |
158+
| path | | Path of the folder |
156159
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
157160

158161

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.20230807090124-eefdeb5d74c7
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230807145308-73ed2d61d96c
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.20230807090124-eefdeb5d74c7 h1:vdxIGBnCDJLL/r0HjxVaxAA8xoGz3VT2BKxDbpIVXKw=
501-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230807090124-eefdeb5d74c7/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
500+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230807145308-73ed2d61d96c h1:5o0JFJMilcxdflia5nxn3ZGiUedJ0crjEOzVZrvlrSs=
501+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.20.0.20230807145308-73ed2d61d96c/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/secret/v1alpha1/secret_cli.go

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func secretVersion() *core.Command {
6767
func secretSecretCreate() *core.Command {
6868
return &core.Command{
6969
Short: `Create a secret`,
70-
Long: `You must sepcify the ` + "`" + `region` + "`" + ` to create a secret.`,
70+
Long: `You must specify the ` + "`" + `region` + "`" + ` to create a secret.`,
7171
Namespace: "secret",
7272
Resource: "secret",
7373
Verb: "create",
@@ -104,6 +104,13 @@ func secretSecretCreate() *core.Command {
104104
Positional: false,
105105
EnumValues: []string{"unknown_secret_type", "opaque", "certificate"},
106106
},
107+
{
108+
Name: "path",
109+
Short: `Path of the secret`,
110+
Required: false,
111+
Deprecated: false,
112+
Positional: false,
113+
},
107114
core.RegionArgSpec(scw.RegionFrPar),
108115
},
109116
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
@@ -191,6 +198,13 @@ func secretSecretUpdate() *core.Command {
191198
Deprecated: false,
192199
Positional: false,
193200
},
201+
{
202+
Name: "path",
203+
Short: `Path of the folder`,
204+
Required: false,
205+
Deprecated: false,
206+
Positional: false,
207+
},
194208
core.RegionArgSpec(scw.RegionFrPar),
195209
},
196210
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
@@ -249,6 +263,13 @@ func secretSecretList() *core.Command {
249263
Deprecated: false,
250264
Positional: false,
251265
},
266+
{
267+
Name: "path",
268+
Short: `Filter by path (optional)`,
269+
Required: false,
270+
Deprecated: false,
271+
Positional: false,
272+
},
252273
{
253274
Name: "organization-id",
254275
Short: `Filter by Organization ID (optional)`,

0 commit comments

Comments
 (0)