Skip to content

Commit

Permalink
feat(baremetal): add GetDefaultPartitioningRequest (#4145)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Sep 24, 2024
1 parent 02c8bd0 commit aeb2de7
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Allows to customize the partitioning schemas of your servers (available on some offers and OSs).

USAGE:
scw baremetal partitioning-schemas

FLAGS:
-h, --help help for partitioning-schemas

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
15 changes: 8 additions & 7 deletions cmd/scw/testdata/test-all-usage-baremetal-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ USAGE:
scw baremetal <command>

AVAILABLE COMMANDS:
bmc Baseboard Management Controller (BMC) management commands
offer Server offer management commands
options Server options management commands
os Operating System (OS) management commands
private-network Private Network management command
server Server management commands
settings Settings management commands
bmc Baseboard Management Controller (BMC) management commands
offer Server offer management commands
options Server options management commands
os Operating System (OS) management commands
partitioning-schemas Partitioning-schemas management commands
private-network Private Network management command
server Server management commands
settings Settings management commands

FLAGS:
-h, --help help for baremetal
Expand Down
15 changes: 15 additions & 0 deletions docs/commands/baremetal.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Elastic Metal API.
- [Operating System (OS) management commands](#operating-system-(os)-management-commands)
- [Get OS with an ID](#get-os-with-an-id)
- [List available OSes](#list-available-oses)
- [Partitioning-schemas management commands](#partitioning-schemas-management-commands)
- [Private Network management command](#private-network-management-command)
- [Add a server to a Private Network](#add-a-server-to-a-private-network)
- [Delete a Private Network](#delete-a-private-network)
Expand Down Expand Up @@ -376,6 +377,20 @@ scw baremetal os list [arg=value ...]



## Partitioning-schemas management commands

Allows to customize the partitioning schemas of your servers (available on some offers and OSs).

Allows to customize the partitioning schemas of your servers (available on some offers and OSs).

**Usage:**

```
scw baremetal partitioning-schemas
```



## Private Network management command

A Private Network allows you to interconnect your resources
Expand Down
10 changes: 10 additions & 0 deletions internal/namespaces/baremetal/v1/baremetal_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func GetGeneratedCommands() *core.Commands {
baremetalBmc(),
baremetalOptions(),
baremetalSettings(),
baremetalPartitioningSchemas(),
baremetalPrivateNetwork(),
baremetalServerList(),
baremetalServerGet(),
Expand Down Expand Up @@ -125,6 +126,15 @@ func baremetalSettings() *core.Command {
}
}

func baremetalPartitioningSchemas() *core.Command {
return &core.Command{
Short: `Partitioning-schemas management commands`,
Long: `Allows to customize the partitioning schemas of your servers (available on some offers and OSs).`,
Namespace: "baremetal",
Resource: "partitioning-schemas",
}
}

func baremetalPrivateNetwork() *core.Command {
return &core.Command{
Short: `Private Network management command`,
Expand Down

0 comments on commit aeb2de7

Please sign in to comment.