-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathcluster_host_requirements_details.go
68 lines (52 loc) · 1.98 KB
/
cluster_host_requirements_details.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ClusterHostRequirementsDetails cluster host requirements details
//
// swagger:model cluster-host-requirements-details
type ClusterHostRequirementsDetails struct {
// Required number of CPU cores
CPUCores int64 `json:"cpu_cores,omitempty"`
// Required disk size in GB
DiskSizeGb int64 `json:"disk_size_gb,omitempty"`
// Required installation disk speed in ms
InstallationDiskSpeedThresholdMs int64 `json:"installation_disk_speed_threshold_ms,omitempty"`
// Maximum network average latency (RTT) at L3 for role.
NetworkLatencyThresholdMs *float64 `json:"network_latency_threshold_ms,omitempty"`
// Maximum packet loss allowed at L3 for role.
PacketLossPercentage *float64 `json:"packet_loss_percentage,omitempty"`
// Required number of RAM in MiB
RAMMib int64 `json:"ram_mib,omitempty"`
// Whether TPM module should be enabled in host's BIOS.
TpmEnabledInBios bool `json:"tpm_enabled_in_bios,omitempty"`
}
// Validate validates this cluster host requirements details
func (m *ClusterHostRequirementsDetails) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this cluster host requirements details based on context it is used
func (m *ClusterHostRequirementsDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *ClusterHostRequirementsDetails) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ClusterHostRequirementsDetails) UnmarshalBinary(b []byte) error {
var res ClusterHostRequirementsDetails
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}