Skip to content

Commit 4fbc99c

Browse files
authored
Merge branch 'master' into project_in_access_key
2 parents 18d2c7b + 8d67cdf commit 4fbc99c

17 files changed

+106
-24
lines changed

.github/workflows/purge.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Manual Purge
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
sweepers:
7+
runs-on: ubuntu-latest
8+
steps:
9+
# Checkout should always be before setup-go to ensure caching is working
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Install Go
13+
uses: actions/setup-go@v5
14+
with:
15+
go-version: 1.24
16+
- name: Run Sweepers
17+
run: go run -v ./cmd/scw-sweeper
18+
env:
19+
SCW_DEBUG: 1
20+
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
21+
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
22+
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
23+
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}

cmd/scw/testdata/test-all-usage-audit-trail-event-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
[project-id] (Optional) ID of the Project containing the Audit Trail events
10-
[resource-type] (Optional) Returns a paginated list of Scaleway resources' features (unknown_type | secm_secret | secm_secret_version | kube_cluster | kube_pool | kube_node | kube_acl | keym_key | iamx_user | iamx_application | iamx_group | iamx_policy | iamx_api_key | iamx_ssh_key)
10+
[resource-type] (Optional) Returns a paginated list of Scaleway resources' features (unknown_type | secm_secret | secm_secret_version | kube_cluster | kube_pool | kube_node | kube_acl | keym_key | iam_user | iam_application | iam_group | iam_policy | iam_api_key | iam_ssh_key)
1111
[method-name] (Optional) Name of the method or the API call performed
1212
[status] (Optional) HTTP status code of the request. Returns either `200` if the request was successful or `403` if the permission was denied
1313
[recorded-after] (Optional) The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default

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/audit-trail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ scw audit-trail event list [arg=value ...]
2929
| Name | | Description |
3030
|------|---|-------------|
3131
| project-id | | (Optional) ID of the Project containing the Audit Trail events |
32-
| resource-type | One of: `unknown_type`, `secm_secret`, `secm_secret_version`, `kube_cluster`, `kube_pool`, `kube_node`, `kube_acl`, `keym_key`, `iamx_user`, `iamx_application`, `iamx_group`, `iamx_policy`, `iamx_api_key`, `iamx_ssh_key` | (Optional) Returns a paginated list of Scaleway resources' features |
32+
| resource-type | One of: `unknown_type`, `secm_secret`, `secm_secret_version`, `kube_cluster`, `kube_pool`, `kube_node`, `kube_acl`, `keym_key`, `iam_user`, `iam_application`, `iam_group`, `iam_policy`, `iam_api_key`, `iam_ssh_key` | (Optional) Returns a paginated list of Scaleway resources' features |
3333
| method-name | | (Optional) Name of the method or the API call performed |
3434
| status | | (Optional) HTTP status code of the request. Returns either `200` if the request was successful or `403` if the permission was denied |
3535
| recorded-after | | (Optional) The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default |

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

0 commit comments

Comments
 (0)