Skip to content

Commit 611e8da

Browse files
committed
feat: update generated APIs
1 parent abc6854 commit 611e8da

10 files changed

+261
-120
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Retrieve the list of the available and free-of-charge offers you can subscribe to.
4+
5+
USAGE:
6+
scw tem offers list [arg=value ...]
7+
8+
ARGS:
9+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
10+
11+
FLAGS:
12+
-h, --help help for list
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use
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 subscribed offer.
4+
5+
USAGE:
6+
scw tem offers update [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
[name] Name of the offer-subscription (unknown_name | essential | scale)
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-offers-usage.golden

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
This section allows you to manage and get get subscribed information about your project email offer.
44

55
USAGE:
6-
scw tem offers
6+
scw tem offers <command>
7+
8+
AVAILABLE COMMANDS:
9+
list List the available offers.
10+
update Update a subscribed offer
711

812
FLAGS:
913
-h, --help help for offers
@@ -13,3 +17,5 @@ GLOBAL FLAGS:
1317
-D, --debug Enable debug mode
1418
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
1519
-p, --profile string The config profile to use
20+
21+
Use "scw tem offers [command] --help" for more information about a command.
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+
Get project resource consumption.
4+
5+
USAGE:
6+
scw tem project-consumption get [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for get
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-tem-project-consumption-usage.golden

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
Project consumption allow you to see your project consumption.
44

55
USAGE:
6-
scw tem project-consumption
6+
scw tem project-consumption <command>
7+
8+
AVAILABLE COMMANDS:
9+
get Get project resource consumption.
710

811
FLAGS:
912
-h, --help help for project-consumption
@@ -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 tem project-consumption [command] --help" for more information about a command.

docs/commands/tem.md

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ This API allows you to manage your Transactional Email services.
2121
- [Email statuses](#email-statuses)
2222
- [List emails](#list-emails)
2323
- [Project offers management commands](#project-offers-management-commands)
24+
- [List the available offers.](#list-the-available-offers.)
25+
- [Update a subscribed offer](#update-a-subscribed-offer)
2426
- [Project consumption management commands](#project-consumption-management-commands)
27+
- [Get project resource consumption.](#get-project-resource-consumption.)
2528
- [Project settings management commands](#project-settings-management-commands)
2629
- [Webhook management commands](#webhook-management-commands)
2730
- [Create a Webhook](#create-a-webhook)
@@ -398,29 +401,71 @@ scw tem email list [arg=value ...]
398401

399402
This section allows you to manage and get get subscribed information about your project email offer.
400403

401-
This section allows you to manage and get get subscribed information about your project email offer.
404+
405+
### List the available offers.
406+
407+
Retrieve the list of the available and free-of-charge offers you can subscribe to.
408+
409+
**Usage:**
410+
411+
```
412+
scw tem offers list [arg=value ...]
413+
```
414+
415+
416+
**Args:**
417+
418+
| Name | | Description |
419+
|------|---|-------------|
420+
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
421+
422+
423+
424+
### Update a subscribed offer
425+
426+
Update a subscribed offer.
402427

403428
**Usage:**
404429

405430
```
406-
scw tem offers
431+
scw tem offers update [arg=value ...]
407432
```
408433

409434

435+
**Args:**
436+
437+
| Name | | Description |
438+
|------|---|-------------|
439+
| project-id | | Project ID to use. If none is passed the default project ID will be used |
440+
| name | One of: `unknown_name`, `essential`, `scale` | Name of the offer-subscription |
441+
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
442+
443+
410444

411445
## Project consumption management commands
412446

413447
Project consumption allow you to see your project consumption.
414448

415-
Project consumption allow you to see your project consumption.
449+
450+
### Get project resource consumption.
451+
452+
Get project resource consumption.
416453

417454
**Usage:**
418455

419456
```
420-
scw tem project-consumption
457+
scw tem project-consumption get [arg=value ...]
421458
```
422459

423460

461+
**Args:**
462+
463+
| Name | | Description |
464+
|------|---|-------------|
465+
| project-id | | Project ID to use. If none is passed the default project ID will be used |
466+
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
467+
468+
424469

425470
## Project settings management commands
426471

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/mattn/go-isatty v0.0.20
2626
github.com/moby/buildkit v0.13.2
2727
github.com/opencontainers/go-digest v1.0.0
28-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250313090359-5b303a6c22ea
28+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250317081556-ba26a9f2b785
2929
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3030
github.com/spf13/cobra v1.9.1
3131
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
458458
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
459459
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
460460
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
461-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250313090359-5b303a6c22ea h1:GfqjHTlTmAcXcHWVMPCdscAfZMaohw5nVpORA1OlG6I=
462-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250313090359-5b303a6c22ea/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
461+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250317081556-ba26a9f2b785 h1:exmunaUMPq9jpmmQgKuuNUn3akjLodGtBNQLNiVYenI=
462+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250317081556-ba26a9f2b785/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
463463
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
464464
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
465465
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/baremetal/v1/testdata/test-install-server-simple-all-ssh-keys.golden

Lines changed: 71 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -24,56 +24,63 @@ Options:
2424
ID NAME STATUS MANAGEABLE EXPIRES AT
2525

2626
Install:
27-
OsID 03b7f4ba-a6a1-4305-984e-b54fafbf1681
28-
Hostname test-install-server
29-
SSHKeyIDs.0 031b2215-fcd7-4d18-aab8-8e12f573da07
30-
SSHKeyIDs.1 29bfc835-9ade-42f2-a31a-c122bc07cefd
31-
SSHKeyIDs.2 aa54bf68-0509-4a87-b6d6-88d9f2328659
32-
SSHKeyIDs.3 6261b62a-b17a-4ae3-a897-fb759da40c7b
33-
Status completed
34-
User ubuntu
35-
ServiceUser -
36-
ServiceURL -
37-
PartitioningSchema.Disks.0.Device /dev/nvme0n1
38-
PartitioningSchema.Disks.0.Partitions.0.Label uefi
39-
PartitioningSchema.Disks.0.Partitions.0.Number 1
40-
PartitioningSchema.Disks.0.Partitions.0.Size 512 MiB
41-
PartitioningSchema.Disks.0.Partitions.1.Label swap
42-
PartitioningSchema.Disks.0.Partitions.1.Number 2
43-
PartitioningSchema.Disks.0.Partitions.1.Size 4.0 GiB
44-
PartitioningSchema.Disks.0.Partitions.2.Label boot
45-
PartitioningSchema.Disks.0.Partitions.2.Number 3
46-
PartitioningSchema.Disks.0.Partitions.2.Size 512 MiB
47-
PartitioningSchema.Disks.0.Partitions.3.Label root
48-
PartitioningSchema.Disks.0.Partitions.3.Number 4
49-
PartitioningSchema.Disks.0.Partitions.3.Size 949 GiB
50-
PartitioningSchema.Disks.1.Device /dev/nvme1n1
51-
PartitioningSchema.Disks.1.Partitions.0.Label swap
52-
PartitioningSchema.Disks.1.Partitions.0.Number 1
53-
PartitioningSchema.Disks.1.Partitions.0.Size 4.0 GiB
54-
PartitioningSchema.Disks.1.Partitions.1.Label boot
55-
PartitioningSchema.Disks.1.Partitions.1.Number 2
56-
PartitioningSchema.Disks.1.Partitions.1.Size 512 MiB
57-
PartitioningSchema.Disks.1.Partitions.2.Label root
58-
PartitioningSchema.Disks.1.Partitions.2.Number 3
59-
PartitioningSchema.Disks.1.Partitions.2.Size 949 GiB
60-
PartitioningSchema.Raids.0.Name /dev/md0
61-
PartitioningSchema.Raids.0.Level raid_level_1
62-
PartitioningSchema.Raids.0.Devices.0 /dev/nvme0n1p3
63-
PartitioningSchema.Raids.0.Devices.1 /dev/nvme1n1p2
64-
PartitioningSchema.Raids.1.Name /dev/md1
65-
PartitioningSchema.Raids.1.Level raid_level_1
66-
PartitioningSchema.Raids.1.Devices.0 /dev/nvme0n1p4
67-
PartitioningSchema.Raids.1.Devices.1 /dev/nvme1n1p3
68-
PartitioningSchema.Filesystems.0.Device /dev/nvme0n1p1
69-
PartitioningSchema.Filesystems.0.Format fat32
70-
PartitioningSchema.Filesystems.0.Mountpoint /boot/efi
71-
PartitioningSchema.Filesystems.1.Device /dev/md0
72-
PartitioningSchema.Filesystems.1.Format ext4
73-
PartitioningSchema.Filesystems.1.Mountpoint /boot
74-
PartitioningSchema.Filesystems.2.Device /dev/md1
75-
PartitioningSchema.Filesystems.2.Format ext4
76-
PartitioningSchema.Filesystems.2.Mountpoint /
27+
OsID 03b7f4ba-a6a1-4305-984e-b54fafbf1681
28+
Hostname test-install-server
29+
SSHKeyIDs.0 031b2215-fcd7-4d18-aab8-8e12f573da07
30+
SSHKeyIDs.1 29bfc835-9ade-42f2-a31a-c122bc07cefd
31+
SSHKeyIDs.2 aa54bf68-0509-4a87-b6d6-88d9f2328659
32+
SSHKeyIDs.3 6261b62a-b17a-4ae3-a897-fb759da40c7b
33+
Status completed
34+
User ubuntu
35+
ServiceUser -
36+
ServiceURL -
37+
PartitioningSchema.Disks.0.Device /dev/nvme0n1
38+
PartitioningSchema.Disks.0.Partitions.0.Label uefi
39+
PartitioningSchema.Disks.0.Partitions.0.Number 1
40+
PartitioningSchema.Disks.0.Partitions.0.Size 512 MiB
41+
PartitioningSchema.Disks.0.Partitions.0.UseAllAvailableSpace false
42+
PartitioningSchema.Disks.0.Partitions.1.Label swap
43+
PartitioningSchema.Disks.0.Partitions.1.Number 2
44+
PartitioningSchema.Disks.0.Partitions.1.Size 4.0 GiB
45+
PartitioningSchema.Disks.0.Partitions.1.UseAllAvailableSpace false
46+
PartitioningSchema.Disks.0.Partitions.2.Label boot
47+
PartitioningSchema.Disks.0.Partitions.2.Number 3
48+
PartitioningSchema.Disks.0.Partitions.2.Size 512 MiB
49+
PartitioningSchema.Disks.0.Partitions.2.UseAllAvailableSpace false
50+
PartitioningSchema.Disks.0.Partitions.3.Label root
51+
PartitioningSchema.Disks.0.Partitions.3.Number 4
52+
PartitioningSchema.Disks.0.Partitions.3.Size 949 GiB
53+
PartitioningSchema.Disks.0.Partitions.3.UseAllAvailableSpace false
54+
PartitioningSchema.Disks.1.Device /dev/nvme1n1
55+
PartitioningSchema.Disks.1.Partitions.0.Label swap
56+
PartitioningSchema.Disks.1.Partitions.0.Number 1
57+
PartitioningSchema.Disks.1.Partitions.0.Size 4.0 GiB
58+
PartitioningSchema.Disks.1.Partitions.0.UseAllAvailableSpace false
59+
PartitioningSchema.Disks.1.Partitions.1.Label boot
60+
PartitioningSchema.Disks.1.Partitions.1.Number 2
61+
PartitioningSchema.Disks.1.Partitions.1.Size 512 MiB
62+
PartitioningSchema.Disks.1.Partitions.1.UseAllAvailableSpace false
63+
PartitioningSchema.Disks.1.Partitions.2.Label root
64+
PartitioningSchema.Disks.1.Partitions.2.Number 3
65+
PartitioningSchema.Disks.1.Partitions.2.Size 949 GiB
66+
PartitioningSchema.Disks.1.Partitions.2.UseAllAvailableSpace false
67+
PartitioningSchema.Raids.0.Name /dev/md0
68+
PartitioningSchema.Raids.0.Level raid_level_1
69+
PartitioningSchema.Raids.0.Devices.0 /dev/nvme0n1p3
70+
PartitioningSchema.Raids.0.Devices.1 /dev/nvme1n1p2
71+
PartitioningSchema.Raids.1.Name /dev/md1
72+
PartitioningSchema.Raids.1.Level raid_level_1
73+
PartitioningSchema.Raids.1.Devices.0 /dev/nvme0n1p4
74+
PartitioningSchema.Raids.1.Devices.1 /dev/nvme1n1p3
75+
PartitioningSchema.Filesystems.0.Device /dev/nvme0n1p1
76+
PartitioningSchema.Filesystems.0.Format fat32
77+
PartitioningSchema.Filesystems.0.Mountpoint /boot/efi
78+
PartitioningSchema.Filesystems.1.Device /dev/md0
79+
PartitioningSchema.Filesystems.1.Format ext4
80+
PartitioningSchema.Filesystems.1.Mountpoint /boot
81+
PartitioningSchema.Filesystems.2.Device /dev/md1
82+
PartitioningSchema.Filesystems.2.Format ext4
83+
PartitioningSchema.Filesystems.2.Mountpoint /
7784
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
7885
{
7986
"id": "48da1e2e-75cd-403b-b1e0-80f01d385fdb",
@@ -129,22 +136,26 @@ PartitioningSchema.Filesystems.2.Mountpoint /
129136
{
130137
"label": "uefi",
131138
"number": 1,
132-
"size": 536870912
139+
"size": 536870912,
140+
"use_all_available_space": false
133141
},
134142
{
135143
"label": "swap",
136144
"number": 2,
137-
"size": 4294967296
145+
"size": 4294967296,
146+
"use_all_available_space": false
138147
},
139148
{
140149
"label": "boot",
141150
"number": 3,
142-
"size": 536870912
151+
"size": 536870912,
152+
"use_all_available_space": false
143153
},
144154
{
145155
"label": "root",
146156
"number": 4,
147-
"size": 1018839433216
157+
"size": 1018839433216,
158+
"use_all_available_space": false
148159
}
149160
]
150161
},
@@ -154,17 +165,20 @@ PartitioningSchema.Filesystems.2.Mountpoint /
154165
{
155166
"label": "swap",
156167
"number": 1,
157-
"size": 4294967296
168+
"size": 4294967296,
169+
"use_all_available_space": false
158170
},
159171
{
160172
"label": "boot",
161173
"number": 2,
162-
"size": 536870912
174+
"size": 536870912,
175+
"use_all_available_space": false
163176
},
164177
{
165178
"label": "root",
166179
"number": 3,
167-
"size": 1018839433216
180+
"size": 1018839433216,
181+
"use_all_available_space": false
168182
}
169183
]
170184
}

0 commit comments

Comments
 (0)