Skip to content

Commit

Permalink
feat(instance): add capabilities field for ServerType (#1413)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <rleone@scaleway.com>
  • Loading branch information
scaleway-bot and remyleone authored Sep 19, 2022
1 parent 3f5cf5a commit e4cef73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/instance/v1/instance_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,16 @@ type ServerType struct {
Baremetal bool `json:"baremetal"`
// Network: network available for the instance
Network *ServerTypeNetwork `json:"network"`
// Capabilities: capabilities
Capabilities *ServerTypeCapabilities `json:"capabilities"`
}

// ServerTypeCapabilities: server type. capabilities
type ServerTypeCapabilities struct {
// BlockStorage: true if server supports block storage
BlockStorage *bool `json:"block_storage"`
// BootTypes: list of supported boot types
BootTypes []BootType `json:"boot_types"`
}

// ServerTypeNetwork: server type. network
Expand Down

0 comments on commit e4cef73

Please sign in to comment.