Skip to content

Commit cffa8f3

Browse files
authored
feat(webhosting): add support for webhosting v1 (#4473)
1 parent 90d2321 commit cffa8f3

File tree

7 files changed

+1652
-7
lines changed

7 files changed

+1652
-7
lines changed

cmd/scw/testdata/test-all-usage-tem-project-settings-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Project settings allow you to manage the configuration of your settings.
3+
Project settings allow you to manage the configuration of your projects.
44

55
USAGE:
66
scw tem project-settings

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ AVAILABLE COMMANDS:
99
blocklists Blocklist
1010
domain Domain management commands
1111
email Email management commands
12+
offers Project offers management commands
1213
project-settings Project settings management commands
1314
webhook Webhook management commands
1415

docs/commands/tem.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ This API allows you to manage your Transactional Email services.
2020
- [Get an email](#get-an-email)
2121
- [Email statuses](#email-statuses)
2222
- [List emails](#list-emails)
23+
- [Project offers management commands](#project-offers-management-commands)
2324
- [Project settings management commands](#project-settings-management-commands)
2425
- [Webhook management commands](#webhook-management-commands)
2526
- [Create a Webhook](#create-a-webhook)
@@ -392,11 +393,25 @@ scw tem email list [arg=value ...]
392393

393394

394395

396+
## Project offers management commands
397+
398+
This section allows you to manage and get get subscribed information about your project email offer.
399+
400+
This section allows you to manage and get get subscribed information about your project email offer.
401+
402+
**Usage:**
403+
404+
```
405+
scw tem offers
406+
```
407+
408+
409+
395410
## Project settings management commands
396411

397-
Project settings allow you to manage the configuration of your settings.
412+
Project settings allow you to manage the configuration of your projects.
398413

399-
Project settings allow you to manage the configuration of your settings.
414+
Project settings allow you to manage the configuration of your projects.
400415

401416
**Usage:**
402417

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ require (
2626
github.com/mattn/go-isatty v0.0.20
2727
github.com/moby/buildkit v0.13.2
2828
github.com/opencontainers/go-digest v1.0.0
29-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250117133139-e360c98f921d
29+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.31.0.20250130081923-422331c4eeb7
3030
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3131
github.com/spf13/cobra v1.8.1
3232
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
463463
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
465465
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250117133139-e360c98f921d h1:npDtKGreHq1EA6DoHo18YG25bsvZVlo4XlNm822GZ7A=
467-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20250117133139-e360c98f921d/go.mod h1:kzh+BSAvpoyHHdHBCDhmSWtBc1NbLMZ2lWHqnBoxFks=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.31.0.20250130081923-422331c4eeb7 h1:iZSgQ0e3DtYoUKI1mcxArXzWlX711NKbAjsyjkrTPQ4=
467+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.31.0.20250130081923-422331c4eeb7/go.mod h1:kzh+BSAvpoyHHdHBCDhmSWtBc1NbLMZ2lWHqnBoxFks=
468468
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
469469
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
470470
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/tem/v1alpha1/tem_cli.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func GetGeneratedCommands() *core.Commands {
2525
temWebhook(),
2626
temProjectSettings(),
2727
temBlocklists(),
28+
temOffers(),
2829
temEmailCreate(),
2930
temEmailGet(),
3031
temEmailList(),
@@ -86,7 +87,7 @@ func temWebhook() *core.Command {
8687
func temProjectSettings() *core.Command {
8788
return &core.Command{
8889
Short: `Project settings management commands`,
89-
Long: `Project settings allow you to manage the configuration of your settings.`,
90+
Long: `Project settings allow you to manage the configuration of your projects.`,
9091
Namespace: "tem",
9192
Resource: "project-settings",
9293
}
@@ -101,6 +102,15 @@ func temBlocklists() *core.Command {
101102
}
102103
}
103104

105+
func temOffers() *core.Command {
106+
return &core.Command{
107+
Short: `Project offers management commands`,
108+
Long: `This section allows you to manage and get get subscribed information about your project email offer.`,
109+
Namespace: "tem",
110+
Resource: "offers",
111+
}
112+
}
113+
104114
func temEmailCreate() *core.Command {
105115
return &core.Command{
106116
Short: `Send an email`,

0 commit comments

Comments
 (0)