Skip to content

Commit e4cef73

Browse files
feat(instance): add capabilities field for ServerType (#1413)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 3f5cf5a commit e4cef73

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,16 @@ type ServerType struct {
14361436
Baremetal bool `json:"baremetal"`
14371437
// Network: network available for the instance
14381438
Network *ServerTypeNetwork `json:"network"`
1439+
// Capabilities: capabilities
1440+
Capabilities *ServerTypeCapabilities `json:"capabilities"`
1441+
}
1442+
1443+
// ServerTypeCapabilities: server type. capabilities
1444+
type ServerTypeCapabilities struct {
1445+
// BlockStorage: true if server supports block storage
1446+
BlockStorage *bool `json:"block_storage"`
1447+
// BootTypes: list of supported boot types
1448+
BootTypes []BootType `json:"boot_types"`
14391449
}
14401450

14411451
// ServerTypeNetwork: server type. network

0 commit comments

Comments
 (0)