Skip to content

Commit

Permalink
feat(tem): add project settings endpoint (scaleway#4135)
Browse files Browse the repository at this point in the history
Co-authored-by: Yacine Fodil <[email protected]>
  • Loading branch information
scaleway-bot and yfodil authored Sep 18, 2024
1 parent 845e29f commit 8ef81e1
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
15 changes: 15 additions & 0 deletions cmd/scw/testdata/test-all-usage-tem-project-settings-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Project settings allow you to manage the configuration of your settings.

USAGE:
scw tem project-settings

FLAGS:
-h, --help help for project-settings

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
7 changes: 4 additions & 3 deletions cmd/scw/testdata/test-all-usage-tem-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ USAGE:
scw tem <command>

AVAILABLE COMMANDS:
domain Domain management commands
email Email management commands
webhook Webhook management commands
domain Domain management commands
email Email management commands
project-settings Project settings management commands
webhook Webhook management commands

FLAGS:
-h, --help help for tem
Expand Down
15 changes: 15 additions & 0 deletions docs/commands/tem.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This API allows you to manage your Transactional Email services.
- [Get an email](#get-an-email)
- [Email statuses](#email-statuses)
- [List emails](#list-emails)
- [Project settings management commands](#project-settings-management-commands)
- [Webhook management commands](#webhook-management-commands)
- [Create a Webhook](#create-a-webhook)
- [Delete a Webhook](#delete-a-webhook)
Expand Down Expand Up @@ -315,6 +316,20 @@ scw tem email list [arg=value ...]



## Project settings management commands

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

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

**Usage:**

```
scw tem project-settings
```



## Webhook management commands

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).
Expand Down
10 changes: 10 additions & 0 deletions internal/namespaces/tem/v1alpha1/tem_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func GetGeneratedCommands() *core.Commands {
temEmail(),
temDomain(),
temWebhook(),
temProjectSettings(),
temEmailCreate(),
temEmailGet(),
temEmailList(),
Expand Down Expand Up @@ -78,6 +79,15 @@ func temWebhook() *core.Command {
}
}

func temProjectSettings() *core.Command {
return &core.Command{
Short: `Project settings management commands`,
Long: `Project settings allow you to manage the configuration of your settings.`,
Namespace: "tem",
Resource: "project-settings",
}
}

func temEmailCreate() *core.Command {
return &core.Command{
Short: `Send an email`,
Expand Down

0 comments on commit 8ef81e1

Please sign in to comment.