diff --git a/internal/namespaces/instance/v1/custom_server_type.go b/internal/namespaces/instance/v1/custom_server_type.go index c26bc422ce..8d03a35a9c 100644 --- a/internal/namespaces/instance/v1/custom_server_type.go +++ b/internal/namespaces/instance/v1/custom_server_type.go @@ -60,14 +60,14 @@ func serverTypeListBuilder(c *core.Command) *core.Command { c.Run = func(ctx context.Context, argsI interface{}) (interface{}, error) { type customServerType struct { - Name string `json:"name"` - HourlyPrice *scw.Money `json:"hourly_price"` - LocalVolumeSize scw.Size `json:"local_volume_size"` - CPU uint32 `json:"cpu"` - GPU *uint64 `json:"gpu"` - RAM scw.Size `json:"ram"` - Arch instance.Arch `json:"arch"` - Availability instance.ServerTypesAvailability `json:"availability"` + Name string `json:"name"` + HourlyPrice *scw.Money `json:"hourly_price"` + LocalVolumeMaxSize scw.Size `json:"local_volume_max_size"` + CPU uint32 `json:"cpu"` + GPU *uint64 `json:"gpu"` + RAM scw.Size `json:"ram"` + Arch instance.Arch `json:"arch"` + Availability instance.ServerTypesAvailability `json:"availability"` } api := instance.NewAPI(core.ExtractClient(ctx)) @@ -95,14 +95,14 @@ func serverTypeListBuilder(c *core.Command) *core.Command { } serverTypes = append(serverTypes, &customServerType{ - Name: name, - HourlyPrice: scw.NewMoneyFromFloat(float64(serverType.HourlyPrice), "EUR", 3), - LocalVolumeSize: serverType.VolumesConstraint.MinSize, - CPU: serverType.Ncpus, - GPU: serverType.Gpu, - RAM: scw.Size(serverType.RAM), - Arch: serverType.Arch, - Availability: availabilitiesResponse.Servers[name].Availability, + Name: name, + HourlyPrice: scw.NewMoneyFromFloat(float64(serverType.HourlyPrice), "EUR", 3), + LocalVolumeMaxSize: serverType.VolumesConstraint.MaxSize, + CPU: serverType.Ncpus, + GPU: serverType.Gpu, + RAM: scw.Size(serverType.RAM), + Arch: serverType.Arch, + Availability: availabilitiesResponse.Servers[name].Availability, }) }