Skip to content

Commit bac95f3

Browse files
committed
feat: update generated APIs
1 parent d3ac8d4 commit bac95f3

File tree

7 files changed

+89
-27
lines changed

7 files changed

+89
-27
lines changed

cmd/scw/testdata/test-all-usage-baremetal-server-create-usage.golden

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,36 @@ EXAMPLES:
1010
scw baremetal server create
1111

1212
ARGS:
13-
[project-id] Project ID to use. If none is passed the default project ID will be used
14-
name=<generated> Name of the server (≠hostname)
15-
[description] Description associated with the server, max 255 characters
16-
[type] Server commercial type
17-
[tags.{index}] Tags to associate to the server
18-
[install.os-id] ID of the OS to installation on the server
19-
[install.hostname] Hostname of the server
20-
[install.ssh-key-ids.{index}] SSH key IDs authorized on the server
21-
[install.user] User for the installation
22-
[install.password] Password for the installation
23-
[install.service-user] Regular user that runs the service to be installed on the server
24-
[install.service-password] Password used for the service to install
25-
[option-ids.{index}] IDs of options to enable on server
26-
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
27-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-2 | pl-waw-3)
13+
[project-id] Project ID to use. If none is passed the default project ID will be used
14+
name=<generated> Name of the server (≠hostname)
15+
[description] Description associated with the server, max 255 characters
16+
[type] Server commercial type
17+
[tags.{index}] Tags to associate to the server
18+
[install.os-id] ID of the OS to installation on the server
19+
[install.hostname] Hostname of the server
20+
[install.ssh-key-ids.{index}] SSH key IDs authorized on the server
21+
[install.user] User for the installation
22+
[install.password] Password for the installation
23+
[install.service-user] Regular user that runs the service to be installed on the server
24+
[install.service-password] Password used for the service to install
25+
[install.partitioning-schema.disks.{index}.device]
26+
[install.partitioning-schema.disks.{index}.partitions.{index}.label] (unknown_partition_label | uefi | legacy | root | boot | swap | data | home | raid | zfs)
27+
[install.partitioning-schema.disks.{index}.partitions.{index}.number]
28+
[install.partitioning-schema.disks.{index}.partitions.{index}.size]
29+
[install.partitioning-schema.raids.{index}.name]
30+
[install.partitioning-schema.raids.{index}.level] (unknown_raid_level | raid_level_0 | raid_level_1 | raid_level_5 | raid_level_6 | raid_level_10)
31+
[install.partitioning-schema.raids.{index}.devices.{index}]
32+
[install.partitioning-schema.filesystems.{index}.device]
33+
[install.partitioning-schema.filesystems.{index}.format] (unknown_format | fat32 | ext4 | swap | zfs | xfs)
34+
[install.partitioning-schema.filesystems.{index}.mountpoint]
35+
[install.partitioning-schema.zfs.pools.{index}.name]
36+
[install.partitioning-schema.zfs.pools.{index}.type] (unknown_type | no_raid | mirror | raidz1 | raidz2)
37+
[install.partitioning-schema.zfs.pools.{index}.devices.{index}]
38+
[install.partitioning-schema.zfs.pools.{index}.options.{index}]
39+
[install.partitioning-schema.zfs.pools.{index}.filesystem-options.{index}]
40+
[option-ids.{index}] IDs of options to enable on server
41+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
42+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-2 | pl-waw-3)
2843

2944
FLAGS:
3045
-h, --help help for create

cmd/scw/testdata/test-all-usage-baremetal-server-install-usage.golden

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,28 @@ ARGS:
1414
os-id ID of the OS to installation on the server
1515
hostname Hostname of the server
1616
ssh (one of):
17-
[all-ssh-keys] Add all SSH keys on your baremetal instance (cannot be used with ssh-key-ids)
18-
ssh-key-ids.{index} SSH key IDs authorized on the server (cannot be used with all-ssh-keys)
19-
[user] User used for the installation
20-
[password] Password used for the installation
21-
[service-user] User used for the service to install
22-
[service-password] Password used for the service to install
23-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-2 | pl-waw-3)
17+
[all-ssh-keys] Add all SSH keys on your baremetal instance (cannot be used with ssh-key-ids)
18+
ssh-key-ids.{index} SSH key IDs authorized on the server (cannot be used with all-ssh-keys)
19+
[user] User used for the installation
20+
[password] Password used for the installation
21+
[service-user] User used for the service to install
22+
[service-password] Password used for the service to install
23+
[partitioning-schema.disks.{index}.device]
24+
[partitioning-schema.disks.{index}.partitions.{index}.label] (unknown_partition_label | uefi | legacy | root | boot | swap | data | home | raid | zfs)
25+
[partitioning-schema.disks.{index}.partitions.{index}.number]
26+
[partitioning-schema.disks.{index}.partitions.{index}.size]
27+
[partitioning-schema.raids.{index}.name]
28+
[partitioning-schema.raids.{index}.level] (unknown_raid_level | raid_level_0 | raid_level_1 | raid_level_5 | raid_level_6 | raid_level_10)
29+
[partitioning-schema.raids.{index}.devices.{index}]
30+
[partitioning-schema.filesystems.{index}.device]
31+
[partitioning-schema.filesystems.{index}.format] (unknown_format | fat32 | ext4 | swap | zfs | xfs)
32+
[partitioning-schema.filesystems.{index}.mountpoint]
33+
[partitioning-schema.zfs.pools.{index}.name]
34+
[partitioning-schema.zfs.pools.{index}.type] (unknown_type | no_raid | mirror | raidz1 | raidz2)
35+
[partitioning-schema.zfs.pools.{index}.devices.{index}]
36+
[partitioning-schema.zfs.pools.{index}.options.{index}]
37+
[partitioning-schema.zfs.pools.{index}.filesystem-options.{index}]
38+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-2 | pl-waw-3)
2439

2540
FLAGS:
2641
-h, --help help for install

docs/commands/baremetal.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,21 @@ scw baremetal server create [arg=value ...]
545545
| install.password | | Password for the installation |
546546
| install.service-user | | Regular user that runs the service to be installed on the server |
547547
| install.service-password | | Password used for the service to install |
548+
| install.partitioning-schema.disks.{index}.device | | |
549+
| install.partitioning-schema.disks.{index}.partitions.{index}.label | One of: `unknown_partition_label`, `uefi`, `legacy`, `root`, `boot`, `swap`, `data`, `home`, `raid`, `zfs` | |
550+
| install.partitioning-schema.disks.{index}.partitions.{index}.number | | |
551+
| install.partitioning-schema.disks.{index}.partitions.{index}.size | | |
552+
| install.partitioning-schema.raids.{index}.name | | |
553+
| install.partitioning-schema.raids.{index}.level | One of: `unknown_raid_level`, `raid_level_0`, `raid_level_1`, `raid_level_5`, `raid_level_6`, `raid_level_10` | |
554+
| install.partitioning-schema.raids.{index}.devices.{index} | | |
555+
| install.partitioning-schema.filesystems.{index}.device | | |
556+
| install.partitioning-schema.filesystems.{index}.format | One of: `unknown_format`, `fat32`, `ext4`, `swap`, `zfs`, `xfs` | |
557+
| install.partitioning-schema.filesystems.{index}.mountpoint | | |
558+
| install.partitioning-schema.zfs.pools.{index}.name | | |
559+
| install.partitioning-schema.zfs.pools.{index}.type | One of: `unknown_type`, `no_raid`, `mirror`, `raidz1`, `raidz2` | |
560+
| install.partitioning-schema.zfs.pools.{index}.devices.{index} | | |
561+
| install.partitioning-schema.zfs.pools.{index}.options.{index} | | |
562+
| install.partitioning-schema.zfs.pools.{index}.filesystem-options.{index} | | |
548563
| option-ids.{index} | | IDs of options to enable on server |
549564
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
550565
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
@@ -665,6 +680,21 @@ scw baremetal server install <server-id ...> [arg=value ...]
665680
| password | | Password used for the installation |
666681
| service-user | | User used for the service to install |
667682
| service-password | | Password used for the service to install |
683+
| partitioning-schema.disks.{index}.device | | |
684+
| partitioning-schema.disks.{index}.partitions.{index}.label | One of: `unknown_partition_label`, `uefi`, `legacy`, `root`, `boot`, `swap`, `data`, `home`, `raid`, `zfs` | |
685+
| partitioning-schema.disks.{index}.partitions.{index}.number | | |
686+
| partitioning-schema.disks.{index}.partitions.{index}.size | | |
687+
| partitioning-schema.raids.{index}.name | | |
688+
| partitioning-schema.raids.{index}.level | One of: `unknown_raid_level`, `raid_level_0`, `raid_level_1`, `raid_level_5`, `raid_level_6`, `raid_level_10` | |
689+
| partitioning-schema.raids.{index}.devices.{index} | | |
690+
| partitioning-schema.filesystems.{index}.device | | |
691+
| partitioning-schema.filesystems.{index}.format | One of: `unknown_format`, `fat32`, `ext4`, `swap`, `zfs`, `xfs` | |
692+
| partitioning-schema.filesystems.{index}.mountpoint | | |
693+
| partitioning-schema.zfs.pools.{index}.name | | |
694+
| partitioning-schema.zfs.pools.{index}.type | One of: `unknown_type`, `no_raid`, `mirror`, `raidz1`, `raidz2` | |
695+
| partitioning-schema.zfs.pools.{index}.devices.{index} | | |
696+
| partitioning-schema.zfs.pools.{index}.options.{index} | | |
697+
| partitioning-schema.zfs.pools.{index}.filesystem-options.{index} | | |
668698
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
669699

670700

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.20241001085744-c3abf300c911
29+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241003135237-a80efc7ba222
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.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
465465
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
466466
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
468-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241001085744-c3abf300c911 h1:IwmIIQaLdCx38LeWFIJqNqF8qHTCEdSecY5k5D5LI0k=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241001085744-c3abf300c911/go.mod h1:o/2twhmcz4HlhtuuubCuwQ/fe+zyzoJR85+02gy04yY=
468+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241003135237-a80efc7ba222 h1:lr/Ewp6Ph3cXaEAyaPJqT7ZvC/wBnm1VoRHVz1FqOkM=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241003135237-a80efc7ba222/go.mod h1:o/2twhmcz4HlhtuuubCuwQ/fe+zyzoJR85+02gy04yY=
470470
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
471471
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
472472
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ ServiceURL -
7171
"status": "completed",
7272
"user": "",
7373
"service_user": "",
74-
"service_url": ""
74+
"service_url": "",
75+
"partitioning_schema": null
7576
},
7677
"ping_status": "ping_status_down",
7778
"options": null,

internal/namespaces/baremetal/v1/testdata/test-install-server-simple-with-id.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ ServiceURL -
7171
"status": "completed",
7272
"user": "",
7373
"service_user": "",
74-
"service_url": ""
74+
"service_url": "",
75+
"partitioning_schema": null
7576
},
7677
"ping_status": "ping_status_down",
7778
"options": null,

0 commit comments

Comments
 (0)