Skip to content

Commit b0d5bdb

Browse files
authored
feat(instance): set some fields of VolumeServer as optional (scaleway#2332)
1 parent e5e70ce commit b0d5bdb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,16 +1475,16 @@ type ServerMaintenance struct {
14751475
type VolumeServer struct {
14761476
ID string `json:"id"`
14771477

1478-
Name string `json:"name"`
1478+
Name *string `json:"name"`
14791479

14801480
// Deprecated
14811481
ExportURI *string `json:"export_uri"`
14821482

1483-
Organization string `json:"organization"`
1483+
Organization *string `json:"organization"`
14841484

14851485
Server *ServerSummary `json:"server"`
14861486

1487-
Size scw.Size `json:"size"`
1487+
Size *scw.Size `json:"size"`
14881488

14891489
// VolumeType: default value: l_ssd
14901490
VolumeType VolumeServerVolumeType `json:"volume_type"`
@@ -1494,9 +1494,9 @@ type VolumeServer struct {
14941494
ModificationDate *time.Time `json:"modification_date"`
14951495

14961496
// State: default value: available
1497-
State VolumeServerState `json:"state"`
1497+
State *VolumeServerState `json:"state"`
14981498

1499-
Project string `json:"project"`
1499+
Project *string `json:"project"`
15001500

15011501
Boot bool `json:"boot"`
15021502

0 commit comments

Comments
 (0)