// 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
}
