Skip to content

Commit 22090d6

Browse files
Le Garrec Maëlizissise
authored andcommitted
add bootType field to server definitions
1 parent 147817b commit 22090d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/api/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ type ScalewayServer struct {
545545
// State is the current status of the server
546546
State string `json:"state,omitempty"`
547547

548+
// BootType is the boot method used, can be local or bootscript
549+
BootType string `json:"boot_type,omitempty"`
550+
548551
// StateDetail is the detailed status of the server
549552
StateDetail string `json:"state_detail,omitempty"`
550553

@@ -619,6 +622,7 @@ type ScalewayServerPatchDefinition struct {
619622
Tags *[]string `json:"tags,omitempty"`
620623
IPV6 *ScalewayIPV6Definition `json:"ipv6,omitempty"`
621624
EnableIPV6 *bool `json:"enable_ipv6,omitempty"`
625+
BootType *string `json:"boot_type,omitempty"`
622626
}
623627

624628
// ScalewayServerDefinition represents a Scaleway server with image definition

0 commit comments

Comments
 (0)