Skip to content

Commit 8ef81e1

Browse files
scaleway-botyfodil
andauthored
feat(tem): add project settings endpoint (#4135)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent 845e29f commit 8ef81e1

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed
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 settings allow you to manage the configuration of your settings.
4+
5+
USAGE:
6+
scw tem project-settings
7+
8+
FLAGS:
9+
-h, --help help for project-settings
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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ USAGE:
66
scw tem <command>
77

88
AVAILABLE COMMANDS:
9-
domain Domain management commands
10-
email Email management commands
11-
webhook Webhook management commands
9+
domain Domain management commands
10+
email Email management commands
11+
project-settings Project settings management commands
12+
webhook Webhook management commands
1213

1314
FLAGS:
1415
-h, --help help for tem

docs/commands/tem.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This API allows you to manage your Transactional Email services.
1616
- [Get an email](#get-an-email)
1717
- [Email statuses](#email-statuses)
1818
- [List emails](#list-emails)
19+
- [Project settings management commands](#project-settings-management-commands)
1920
- [Webhook management commands](#webhook-management-commands)
2021
- [Create a Webhook](#create-a-webhook)
2122
- [Delete a Webhook](#delete-a-webhook)
@@ -315,6 +316,20 @@ scw tem email list [arg=value ...]
315316

316317

317318

319+
## Project settings management commands
320+
321+
Project settings allow you to manage the configuration of your settings.
322+
323+
Project settings allow you to manage the configuration of your settings.
324+
325+
**Usage:**
326+
327+
```
328+
scw tem project-settings
329+
```
330+
331+
332+
318333
## Webhook management commands
319334

320335
Webhooks enable real-time communication and automation between systems by sending messages through all protocols supported by SNS, such as HTTP, HTTPS, and Serverless Functions, allowing for immediate updates and actions based on specific events. This feature is in beta. You can request quotas from the [Scaleway betas page](https://www.scaleway.com/fr/betas/#email-webhooks).

internal/namespaces/tem/v1alpha1/tem_cli.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func GetGeneratedCommands() *core.Commands {
2323
temEmail(),
2424
temDomain(),
2525
temWebhook(),
26+
temProjectSettings(),
2627
temEmailCreate(),
2728
temEmailGet(),
2829
temEmailList(),
@@ -78,6 +79,15 @@ func temWebhook() *core.Command {
7879
}
7980
}
8081

82+
func temProjectSettings() *core.Command {
83+
return &core.Command{
84+
Short: `Project settings management commands`,
85+
Long: `Project settings allow you to manage the configuration of your settings.`,
86+
Namespace: "tem",
87+
Resource: "project-settings",
88+
}
89+
}
90+
8191
func temEmailCreate() *core.Command {
8292
return &core.Command{
8393
Short: `Send an email`,

0 commit comments

Comments
 (0)