Skip to content

Commit 5b73e6f

Browse files
committed
feat: update generated APIs
1 parent 7f069ea commit 5b73e6f

14 files changed

+131
-16
lines changed

cmd/scw/testdata/test-all-usage-cockpit-data-source-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ USAGE:
1212
ARGS:
1313
[project-id] Project ID to use. If none is passed the default project ID will be used
1414
[name] Data source name
15-
[type] Data source type (unknown_type | metrics | logs | traces)
15+
[type] Data source type (unknown_type | metrics | logs | traces | alerts)
1616
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1717

1818
FLAGS:

cmd/scw/testdata/test-all-usage-cockpit-data-source-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
[order-by] Sort order for data sources in the response (created_at_asc | created_at_desc | name_asc | name_desc | type_asc | type_desc)
1111
[project-id] Project ID to use. If none is passed the default project ID will be used
1212
[origin] Origin to filter for, only data sources with matching origin will be returned (unknown_origin | scaleway | external)
13-
[types.{index}] Types to filter for, only data sources with matching types will be returned (unknown_type | metrics | logs | traces)
13+
[types.{index}] Types to filter for, only data sources with matching types will be returned (unknown_type | metrics | logs | traces | alerts)
1414
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1515

1616
FLAGS:

cmd/scw/testdata/test-all-usage-iam-user-create-usage.golden

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ USAGE:
66
scw iam user create [arg=value ...]
77

88
ARGS:
9-
email Email of the user
10-
[tags.{index}] Tags associated with the user
11-
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
9+
[email] Email of the user
10+
[tags.{index}] Tags associated with the user
11+
[member.email] Email of the user to create
12+
[member.send-password-email] Whether or not to send an email containing the member's password.
13+
[member.username] The member's username
14+
[member.password] The member's password
15+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
1216

1317
FLAGS:
1418
-h, --help help for create
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update a domain auto-configuration.
4+
5+
USAGE:
6+
scw tem domain update <domain-id ...> [arg=value ...]
7+
8+
ARGS:
9+
domain-id ID of the domain to update
10+
[autoconfig] (Optional) If set to true, activate auto-configuration of the domain's DNS zone
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
13+
FLAGS:
14+
-h, --help help for update
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ AVAILABLE COMMANDS:
1212
get-last-status Display SPF and DKIM records status and potential errors
1313
list List domains
1414
revoke Delete a domain
15+
update Update a domain
1516

1617
FLAGS:
1718
-h, --help help for domain
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Enable routing on an existing VPC. Note that you will not be able to deactivate it afterwards.
4+
5+
USAGE:
6+
scw vpc route enable-routing <vpc-id ...> [arg=value ...]
7+
8+
ARGS:
9+
vpc-id VPC ID
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
11+
12+
FLAGS:
13+
-h, --help help for enable-routing
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-vpc-route-usage.golden

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
Custom routes.
44

55
USAGE:
6-
scw vpc route
6+
scw vpc route <command>
7+
8+
AVAILABLE COMMANDS:
9+
enable-routing Enable routing on a VPC
710

811
FLAGS:
912
-h, --help help for route
@@ -13,3 +16,5 @@ GLOBAL FLAGS:
1316
-D, --debug Enable debug mode
1417
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
1518
-p, --profile string The config profile to use
19+
20+
Use "scw vpc route [command] --help" for more information about a command.

docs/commands/cockpit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ scw cockpit data-source create [arg=value ...]
206206
|------|---|-------------|
207207
| project-id | | Project ID to use. If none is passed the default project ID will be used |
208208
| name | | Data source name |
209-
| type | One of: `unknown_type`, `metrics`, `logs`, `traces` | Data source type |
209+
| type | One of: `unknown_type`, `metrics`, `logs`, `traces`, `alerts` | Data source type |
210210
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
211211

212212

@@ -270,7 +270,7 @@ scw cockpit data-source list [arg=value ...]
270270
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc`, `type_asc`, `type_desc` | Sort order for data sources in the response |
271271
| project-id | | Project ID to use. If none is passed the default project ID will be used |
272272
| origin | One of: `unknown_origin`, `scaleway`, `external` | Origin to filter for, only data sources with matching origin will be returned |
273-
| types.{index} | One of: `unknown_type`, `metrics`, `logs`, `traces` | Types to filter for, only data sources with matching types will be returned |
273+
| types.{index} | One of: `unknown_type`, `metrics`, `logs`, `traces`, `alerts` | Types to filter for, only data sources with matching types will be returned |
274274
| 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 |
275275

276276

docs/commands/iam.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,12 @@ scw iam user create [arg=value ...]
10561056

10571057
| Name | | Description |
10581058
|------|---|-------------|
1059-
| email | Required | Email of the user |
1059+
| email | | Email of the user |
10601060
| tags.{index} | | Tags associated with the user |
1061+
| member.email | | Email of the user to create |
1062+
| member.send-password-email | | Whether or not to send an email containing the member's password. |
1063+
| member.username | | The member's username |
1064+
| member.password | | The member's password |
10611065
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
10621066

10631067

docs/commands/tem.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This API allows you to manage your Transactional Email services.
99
- [Display SPF and DKIM records status and potential errors](#display-spf-and-dkim-records-status-and-potential-errors)
1010
- [List domains](#list-domains)
1111
- [Delete a domain](#delete-a-domain)
12+
- [Update a domain](#update-a-domain)
1213
- [Email management commands](#email-management-commands)
1314
- [Cancel an email](#cancel-an-email)
1415
- [Send an email](#send-an-email)
@@ -155,6 +156,27 @@ scw tem domain revoke <domain-id ...> [arg=value ...]
155156

156157

157158

159+
### Update a domain
160+
161+
Update a domain auto-configuration.
162+
163+
**Usage:**
164+
165+
```
166+
scw tem domain update <domain-id ...> [arg=value ...]
167+
```
168+
169+
170+
**Args:**
171+
172+
| Name | | Description |
173+
|------|---|-------------|
174+
| domain-id | Required | ID of the domain to update |
175+
| autoconfig | | (Optional) If set to true, activate auto-configuration of the domain's DNS zone |
176+
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
177+
178+
179+
158180
## Email management commands
159181

160182
This section lists your emails and shows you how to manage them.

0 commit comments

Comments
 (0)