@@ -60,14 +60,14 @@ func serverTypeListBuilder(c *core.Command) *core.Command {
60
60
61
61
c .Run = func (ctx context.Context , argsI interface {}) (interface {}, error ) {
62
62
type customServerType struct {
63
- Name string `json:"name"`
64
- HourlyPrice * scw.Money `json:"hourly_price"`
65
- LocalVolumeSize scw.Size `json:"local_volume_size "`
66
- CPU uint32 `json:"cpu"`
67
- GPU * uint64 `json:"gpu"`
68
- RAM scw.Size `json:"ram"`
69
- Arch instance.Arch `json:"arch"`
70
- Availability instance.ServerTypesAvailability `json:"availability"`
63
+ Name string `json:"name"`
64
+ HourlyPrice * scw.Money `json:"hourly_price"`
65
+ LocalVolumeMaxSize scw.Size `json:"local_volume_max_size "`
66
+ CPU uint32 `json:"cpu"`
67
+ GPU * uint64 `json:"gpu"`
68
+ RAM scw.Size `json:"ram"`
69
+ Arch instance.Arch `json:"arch"`
70
+ Availability instance.ServerTypesAvailability `json:"availability"`
71
71
}
72
72
73
73
api := instance .NewAPI (core .ExtractClient (ctx ))
@@ -95,14 +95,14 @@ func serverTypeListBuilder(c *core.Command) *core.Command {
95
95
}
96
96
97
97
serverTypes = append (serverTypes , & customServerType {
98
- Name : name ,
99
- HourlyPrice : scw .NewMoneyFromFloat (float64 (serverType .HourlyPrice ), "EUR" , 3 ),
100
- LocalVolumeSize : serverType .VolumesConstraint .MinSize ,
101
- CPU : serverType .Ncpus ,
102
- GPU : serverType .Gpu ,
103
- RAM : scw .Size (serverType .RAM ),
104
- Arch : serverType .Arch ,
105
- Availability : availabilitiesResponse .Servers [name ].Availability ,
98
+ Name : name ,
99
+ HourlyPrice : scw .NewMoneyFromFloat (float64 (serverType .HourlyPrice ), "EUR" , 3 ),
100
+ LocalVolumeMaxSize : serverType .VolumesConstraint .MaxSize ,
101
+ CPU : serverType .Ncpus ,
102
+ GPU : serverType .Gpu ,
103
+ RAM : scw .Size (serverType .RAM ),
104
+ Arch : serverType .Arch ,
105
+ Availability : availabilitiesResponse .Servers [name ].Availability ,
106
106
})
107
107
}
108
108
0 commit comments