Skip to content

Commit d354b27

Browse files
authored
Merge branch 'master' into manual_purge
2 parents bb000db + 4a0f7f8 commit d354b27

13 files changed

+80
-21
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[project-id] Filter by Project ID
1111
[volume-id] Filter snapshots by the ID of the original volume
1212
[name] Filter snapshots by their names
13+
[tags.{index}] Filter by tags. Only snapshots with one or more matching tags will be returned
1314
[organization-id] Filter by Organization ID
1415
[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)
1516

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ USAGE:
66
scw secret secret list [arg=value ...]
77

88
ARGS:
9-
[project-id] Filter by Project ID (optional)
10-
[order-by] (name_asc | name_desc | created_at_asc | created_at_desc | updated_at_asc | updated_at_desc)
11-
[tags.{index}] List of tags to filter on (optional)
12-
[name] Filter by secret name (optional)
13-
[path] Filter by exact path (optional)
14-
[ephemeral] Filter by ephemeral / not ephemeral (optional)
15-
[type] Filter by secret type (optional) (unknown_type | opaque | certificate | key_value | basic_credentials | database_credentials | ssh_key)
16-
[organization-id] Filter by Organization ID (optional)
17-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
9+
[project-id] Filter by Project ID (optional)
10+
[order-by] (name_asc | name_desc | created_at_asc | created_at_desc | updated_at_asc | updated_at_desc)
11+
[tags.{index}] List of tags to filter on (optional)
12+
[name] Filter by secret name (optional)
13+
[path] Filter by exact path (optional)
14+
[ephemeral] Filter by ephemeral / not ephemeral (optional)
15+
[type] Filter by secret type (optional) (unknown_type | opaque | certificate | key_value | basic_credentials | database_credentials | ssh_key)
16+
[scheduled-for-deletion] Filter by whether the secret was scheduled for deletion / not scheduled for deletion (optional)
17+
[organization-id] Filter by Organization ID (optional)
18+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1819

1920
FLAGS:
2021
-h, --help help for list

cmd/scw/testdata/test-all-usage-secret-version-list-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
secret-id ID of the secret
10-
[status.{index}] Filter results by status (unknown_status | enabled | disabled | deleted)
10+
[status.{index}] Filter results by status (unknown_status | enabled | disabled | deleted | scheduled_for_deletion)
1111
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1212

1313
FLAGS:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Project consumption allow you to see your project consumption.
4+
5+
USAGE:
6+
scw tem project-consumption
7+
8+
FLAGS:
9+
-h, --help help for project-consumption
10+
11+
GLOBAL FLAGS:
12+
-c, --config string The path to the config file
13+
-D, --debug Enable debug mode
14+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
15+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-tem-usage.golden

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ USAGE:
66
scw tem <command>
77

88
AVAILABLE COMMANDS:
9-
blocklists Blocklist
10-
domain Domain management commands
11-
email Email management commands
12-
offers Project offers management commands
13-
project-settings Project settings management commands
14-
webhook Webhook management commands
9+
blocklists Blocklist
10+
domain Domain management commands
11+
email Email management commands
12+
offers Project offers management commands
13+
project-consumption Project consumption management commands
14+
project-settings Project settings management commands
15+
webhook Webhook management commands
1516

1617
FLAGS:
1718
-h, --help help for tem

docs/commands/block.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ scw block snapshot list [arg=value ...]
159159
| project-id | | Filter by Project ID |
160160
| volume-id | | Filter snapshots by the ID of the original volume |
161161
| name | | Filter snapshots by their names |
162+
| tags.{index} | | Filter by tags. Only snapshots with one or more matching tags will be returned |
162163
| organization-id | | Filter by Organization ID |
163164
| 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 |
164165

docs/commands/secret.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ scw secret secret list [arg=value ...]
160160
| path | | Filter by exact path (optional) |
161161
| ephemeral | | Filter by ephemeral / not ephemeral (optional) |
162162
| type | One of: `unknown_type`, `opaque`, `certificate`, `key_value`, `basic_credentials`, `database_credentials`, `ssh_key` | Filter by secret type (optional) |
163+
| scheduled-for-deletion | | Filter by whether the secret was scheduled for deletion / not scheduled for deletion (optional) |
163164
| organization-id | | Filter by Organization ID (optional) |
164165
| 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 |
165166

@@ -457,7 +458,7 @@ scw secret version list <secret-id ...> [arg=value ...]
457458
| Name | | Description |
458459
|------|---|-------------|
459460
| secret-id | Required | ID of the secret |
460-
| status.{index} | One of: `unknown_status`, `enabled`, `disabled`, `deleted` | Filter results by status |
461+
| status.{index} | One of: `unknown_status`, `enabled`, `disabled`, `deleted`, `scheduled_for_deletion` | Filter results by status |
461462
| 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 |
462463

463464

docs/commands/tem.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ This API allows you to manage your Transactional Email services.
2121
- [Email statuses](#email-statuses)
2222
- [List emails](#list-emails)
2323
- [Project offers management commands](#project-offers-management-commands)
24+
- [Project consumption management commands](#project-consumption-management-commands)
2425
- [Project settings management commands](#project-settings-management-commands)
2526
- [Webhook management commands](#webhook-management-commands)
2627
- [Create a Webhook](#create-a-webhook)
@@ -407,6 +408,20 @@ scw tem offers
407408

408409

409410

411+
## Project consumption management commands
412+
413+
Project consumption allow you to see your project consumption.
414+
415+
Project consumption allow you to see your project consumption.
416+
417+
**Usage:**
418+
419+
```
420+
scw tem project-consumption
421+
```
422+
423+
424+
410425
## Project settings management commands
411426

412427
Project settings allow you to manage the configuration of your projects.

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.20250218143128-3136832efdcc
28+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250221163117-f29ed0c43f0b
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.20250218143128-3136832efdcc h1:YfW5EvR+6f6pGAoAY3Yu2Li4dmLbRxz28S+Nwf+bS+s=
462-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250218143128-3136832efdcc/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
461+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250221163117-f29ed0c43f0b h1:wH0oO5TxuNDylkJBIjB2Qm1puMkwpfHDnyEVVeJl/AM=
462+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250221163117-f29ed0c43f0b/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=

0 commit comments

Comments
 (0)