Skip to content

feat(tem): add project settings endpoint #4135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading