models

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 7 Imported by: 36

Documentation

Index

Constants

View Source
const (

	// V1IPAllocateRequestTypeEphemeral captures enum value "ephemeral"
	V1IPAllocateRequestTypeEphemeral string = "ephemeral"

	// V1IPAllocateRequestTypeStatic captures enum value "static"
	V1IPAllocateRequestTypeStatic string = "static"
)
View Source
const (

	// V1IPResponseTypeEphemeral captures enum value "ephemeral"
	V1IPResponseTypeEphemeral string = "ephemeral"

	// V1IPResponseTypeStatic captures enum value "static"
	V1IPResponseTypeStatic string = "static"
)
View Source
const (

	// V1IPUpdateRequestTypeEphemeral captures enum value "ephemeral"
	V1IPUpdateRequestTypeEphemeral string = "ephemeral"

	// V1IPUpdateRequestTypeStatic captures enum value "static"
	V1IPUpdateRequestTypeStatic string = "static"
)
View Source
const (

	// V1SizeConstraintTypeCores captures enum value "cores"
	V1SizeConstraintTypeCores string = "cores"

	// V1SizeConstraintTypeMemory captures enum value "memory"
	V1SizeConstraintTypeMemory string = "memory"

	// V1SizeConstraintTypeStorage captures enum value "storage"
	V1SizeConstraintTypeStorage string = "storage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RestStatus

type RestStatus struct {

	// message
	// Required: true
	Message *string `json:"message"`

	// status
	// Required: true
	Status *string `json:"status"`
}

RestStatus rest status

swagger:model rest.status

func (*RestStatus) ContextValidate added in v0.12.1

func (m *RestStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rest status based on context it is used

func (*RestStatus) MarshalBinary

func (m *RestStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestStatus) UnmarshalBinary

func (m *RestStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestStatus) Validate

func (m *RestStatus) Validate(formats strfmt.Registry) error

Validate validates this rest status

type RestVersion

type RestVersion struct {

	// builddate
	// Required: true
	Builddate *string `json:"builddate"`

	// gitsha1
	// Required: true
	Gitsha1 *string `json:"gitsha1"`

	// name
	// Required: true
	Name *string `json:"name"`

	// revision
	// Required: true
	Revision *string `json:"revision"`

	// version
	// Required: true
	Version *string `json:"version"`
}

RestVersion rest version

swagger:model rest.version

func (*RestVersion) ContextValidate added in v0.12.1

func (m *RestVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rest version based on context it is used

func (*RestVersion) MarshalBinary

func (m *RestVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestVersion) UnmarshalBinary

func (m *RestVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestVersion) Validate

func (m *RestVersion) Validate(formats strfmt.Registry) error

Validate validates this rest version

type V1BGPFilter

type V1BGPFilter struct {

	// the cidr addresses that are allowed to be announced at this switch port
	// Required: true
	Cidrs []string `json:"cidrs"`

	// the virtual networks that are exposed at this switch port
	Vnis []string `json:"vnis"`
}

V1BGPFilter v1 b g p filter

swagger:model v1.BGPFilter

func (*V1BGPFilter) ContextValidate added in v0.12.1

func (m *V1BGPFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 b g p filter based on context it is used

func (*V1BGPFilter) MarshalBinary

func (m *V1BGPFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1BGPFilter) UnmarshalBinary

func (m *V1BGPFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1BGPFilter) Validate

func (m *V1BGPFilter) Validate(formats strfmt.Registry) error

Validate validates this v1 b g p filter

type V1BootInfo added in v0.4.0

type V1BootInfo struct {

	// the bootloader ID
	// Required: true
	Bootloaderid *string `json:"bootloaderid"`

	// the cmdline
	// Required: true
	Cmdline *string `json:"cmdline"`

	// the ID of the current image
	// Required: true
	ImageID *string `json:"image_id"`

	// the initrd image
	// Required: true
	Initrd *string `json:"initrd"`

	// the kernel
	// Required: true
	Kernel *string `json:"kernel"`

	// the partition containing the OS
	// Required: true
	OsPartition *string `json:"os_partition"`

	// the primary disk
	// Required: true
	PrimaryDisk *string `json:"primary_disk"`
}

V1BootInfo v1 boot info

swagger:model v1.BootInfo

func (*V1BootInfo) ContextValidate added in v0.12.1

func (m *V1BootInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 boot info based on context it is used

func (*V1BootInfo) MarshalBinary added in v0.4.0

func (m *V1BootInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1BootInfo) UnmarshalBinary added in v0.4.0

func (m *V1BootInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1BootInfo) Validate added in v0.4.0

func (m *V1BootInfo) Validate(formats strfmt.Registry) error

Validate validates this v1 boot info

type V1ChassisIdentifyLEDState

type V1ChassisIdentifyLEDState struct {

	// a description why this chassis identify LED is in the given state
	// Required: true
	Description *string `json:"description"`

	// the state of this chassis identify LED. empty means LED-OFF
	// Required: true
	Value *string `json:"value"`
}

V1ChassisIdentifyLEDState v1 chassis identify l e d state

swagger:model v1.ChassisIdentifyLEDState

func (*V1ChassisIdentifyLEDState) ContextValidate added in v0.12.1

func (m *V1ChassisIdentifyLEDState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 chassis identify l e d state based on context it is used

func (*V1ChassisIdentifyLEDState) MarshalBinary

func (m *V1ChassisIdentifyLEDState) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ChassisIdentifyLEDState) UnmarshalBinary

func (m *V1ChassisIdentifyLEDState) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ChassisIdentifyLEDState) Validate

func (m *V1ChassisIdentifyLEDState) Validate(formats strfmt.Registry) error

Validate validates this v1 chassis identify l e d state

type V1EmptyBody

type V1EmptyBody interface{}

V1EmptyBody v1 empty body

swagger:model v1.EmptyBody

type V1FirewallCreateRequest

type V1FirewallCreateRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// if set to true, this firewall is set up in a High Available manner
	Ha bool `json:"ha,omitempty"`

	// the hostname for the allocated machine (defaults to metal)
	Hostname string `json:"hostname,omitempty"`

	// the image id to assign this machine to
	// Required: true
	Imageid *string `json:"imageid"`

	// the ips to attach to this machine additionally
	Ips []string `json:"ips"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the networks that this machine will be placed in.
	Networks []*V1MachineAllocationNetwork `json:"networks"`

	// the partition id to assign this machine to
	// Required: true
	Partitionid *string `json:"partitionid"`

	// the project id to assign this machine to
	// Required: true
	Projectid *string `json:"projectid"`

	// the size id to assign this machine to
	// Required: true
	Sizeid *string `json:"sizeid"`

	// the public ssh keys to access the machine with
	// Required: true
	SSHPubKeys []string `json:"ssh_pub_keys"`

	// tags for this machine
	Tags []string `json:"tags"`

	// cloud-init.io compatible userdata must be base64 encoded
	UserData string `json:"user_data,omitempty"`

	// if this field is set, this specific machine will be allocated if it is not in available state and not currently allocated. this field overrules size and partition
	UUID string `json:"uuid,omitempty"`
}

V1FirewallCreateRequest v1 firewall create request

swagger:model v1.FirewallCreateRequest

func (*V1FirewallCreateRequest) ContextValidate added in v0.12.1

func (m *V1FirewallCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 firewall create request based on the context it is used

func (*V1FirewallCreateRequest) MarshalBinary

func (m *V1FirewallCreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FirewallCreateRequest) UnmarshalBinary

func (m *V1FirewallCreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FirewallCreateRequest) Validate

func (m *V1FirewallCreateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 firewall create request

type V1FirewallFindRequest

type V1FirewallFindRequest struct {

	// allocation hostname
	AllocationHostname string `json:"allocation_hostname,omitempty"`

	// allocation image id
	AllocationImageID string `json:"allocation_image_id,omitempty"`

	// allocation name
	AllocationName string `json:"allocation_name,omitempty"`

	// allocation project
	AllocationProject string `json:"allocation_project,omitempty"`

	// allocation succeeded
	AllocationSucceeded bool `json:"allocation_succeeded,omitempty"`

	// disk names
	DiskNames []string `json:"disk_names"`

	// disk sizes
	DiskSizes []int64 `json:"disk_sizes"`

	// fru board mfg
	FruBoardMfg string `json:"fru_board_mfg,omitempty"`

	// fru board mfg serial
	FruBoardMfgSerial string `json:"fru_board_mfg_serial,omitempty"`

	// fru board part number
	FruBoardPartNumber string `json:"fru_board_part_number,omitempty"`

	// fru chassis part number
	FruChassisPartNumber string `json:"fru_chassis_part_number,omitempty"`

	// fru chassis part serial
	FruChassisPartSerial string `json:"fru_chassis_part_serial,omitempty"`

	// fru product manufacturer
	FruProductManufacturer string `json:"fru_product_manufacturer,omitempty"`

	// fru product part number
	FruProductPartNumber string `json:"fru_product_part_number,omitempty"`

	// fru product serial
	FruProductSerial string `json:"fru_product_serial,omitempty"`

	// hardware cpu cores
	HardwareCPUCores int64 `json:"hardware_cpu_cores,omitempty"`

	// hardware memory
	HardwareMemory int64 `json:"hardware_memory,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// ipmi address
	IpmiAddress string `json:"ipmi_address,omitempty"`

	// ipmi interface
	IpmiInterface string `json:"ipmi_interface,omitempty"`

	// ipmi mac address
	IpmiMacAddress string `json:"ipmi_mac_address,omitempty"`

	// ipmi user
	IpmiUser string `json:"ipmi_user,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// network asns
	NetworkAsns []int64 `json:"network_asns"`

	// network destination prefixes
	NetworkDestinationPrefixes []string `json:"network_destination_prefixes"`

	// network ids
	NetworkIds []string `json:"network_ids"`

	// network ips
	NetworkIps []string `json:"network_ips"`

	// network nat
	NetworkNat bool `json:"network_nat,omitempty"`

	// network prefixes
	NetworkPrefixes []string `json:"network_prefixes"`

	// network private
	NetworkPrivate bool `json:"network_private,omitempty"`

	// network underlay
	NetworkUnderlay bool `json:"network_underlay,omitempty"`

	// network vrfs
	NetworkVrfs []int64 `json:"network_vrfs"`

	// nics mac addresses
	NicsMacAddresses []string `json:"nics_mac_addresses"`

	// nics names
	NicsNames []string `json:"nics_names"`

	// nics neighbor mac addresses
	NicsNeighborMacAddresses []string `json:"nics_neighbor_mac_addresses"`

	// nics neighbor names
	NicsNeighborNames []string `json:"nics_neighbor_names"`

	// nics neighbor vrfs
	NicsNeighborVrfs []string `json:"nics_neighbor_vrfs"`

	// nics vrfs
	NicsVrfs []string `json:"nics_vrfs"`

	// partition id
	PartitionID string `json:"partition_id,omitempty"`

	// rackid
	Rackid string `json:"rackid,omitempty"`

	// sizeid
	Sizeid string `json:"sizeid,omitempty"`

	// state value
	StateValue string `json:"state_value,omitempty"`

	// tags
	Tags []string `json:"tags"`
}

V1FirewallFindRequest v1 firewall find request

swagger:model v1.FirewallFindRequest

func (*V1FirewallFindRequest) ContextValidate added in v0.12.1

func (m *V1FirewallFindRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 firewall find request based on context it is used

func (*V1FirewallFindRequest) MarshalBinary

func (m *V1FirewallFindRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FirewallFindRequest) UnmarshalBinary

func (m *V1FirewallFindRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FirewallFindRequest) Validate

func (m *V1FirewallFindRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 firewall find request

type V1FirewallResponse

type V1FirewallResponse struct {

	// the allocation data of an allocated machine
	Allocation *V1MachineAllocation `json:"allocation,omitempty"`

	// bios information of this machine
	// Required: true
	Bios *V1MachineBIOS `json:"bios"`

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// recent events of this machine during provisioning
	// Required: true
	Events *V1MachineRecentProvisioningEvents `json:"events"`

	// the hardware of this machine
	// Required: true
	Hardware *V1MachineHardware `json:"hardware"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// the state of this chassis identify LED
	// Required: true
	Ledstate *V1ChassisIdentifyLEDState `json:"ledstate"`

	// the liveliness of this machine
	// Required: true
	Liveliness *string `json:"liveliness"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the partition assigned to this machine
	// Read Only: true
	Partition *V1PartitionResponse `json:"partition,omitempty"`

	// the rack assigned to this machine
	// Read Only: true
	Rackid string `json:"rackid,omitempty"`

	// the size of this machine
	// Read Only: true
	Size *V1SizeResponse `json:"size,omitempty"`

	// the state of this machine
	// Required: true
	State *V1MachineState `json:"state"`

	// tags for this machine
	// Required: true
	Tags []string `json:"tags"`
}

V1FirewallResponse v1 firewall response

swagger:model v1.FirewallResponse

func (*V1FirewallResponse) ContextValidate added in v0.12.1

func (m *V1FirewallResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 firewall response based on the context it is used

func (*V1FirewallResponse) MarshalBinary

func (m *V1FirewallResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FirewallResponse) UnmarshalBinary

func (m *V1FirewallResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FirewallResponse) Validate

func (m *V1FirewallResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 firewall response

type V1FirmwaresResponse added in v0.13.1

type V1FirmwaresResponse struct {

	// list of firmwares per board per vendor per kind
	// Required: true
	Revisions map[string]V1FirmwaresResponseRevisions `json:"revisions"`
}

V1FirmwaresResponse v1 firmwares response

swagger:model v1.FirmwaresResponse

func (*V1FirmwaresResponse) ContextValidate added in v0.13.1

func (m *V1FirmwaresResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 firmwares response based on the context it is used

func (*V1FirmwaresResponse) MarshalBinary added in v0.13.1

func (m *V1FirmwaresResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FirmwaresResponse) UnmarshalBinary added in v0.13.1

func (m *V1FirmwaresResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FirmwaresResponse) Validate added in v0.13.1

func (m *V1FirmwaresResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 firmwares response

type V1FirmwaresResponseRevisions added in v0.13.1

type V1FirmwaresResponseRevisions map[string]V1FirmwaresResponseRevisionsValue

V1FirmwaresResponseRevisions v1 firmwares response revisions

swagger:model v1.FirmwaresResponse.revisions

func (V1FirmwaresResponseRevisions) ContextValidate added in v0.13.1

func (m V1FirmwaresResponseRevisions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 firmwares response revisions based on the context it is used

func (V1FirmwaresResponseRevisions) Validate added in v0.13.1

func (m V1FirmwaresResponseRevisions) Validate(formats strfmt.Registry) error

Validate validates this v1 firmwares response revisions

type V1FirmwaresResponseRevisionsValue added in v0.13.1

type V1FirmwaresResponseRevisionsValue map[string][]string

V1FirmwaresResponseRevisionsValue v1 firmwares response revisions value

swagger:model v1.FirmwaresResponse.revisions.value

func (V1FirmwaresResponseRevisionsValue) ContextValidate added in v0.13.1

func (m V1FirmwaresResponseRevisionsValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 firmwares response revisions value based on context it is used

func (V1FirmwaresResponseRevisionsValue) Validate added in v0.13.1

Validate validates this v1 firmwares response revisions value

type V1IPAllocateRequest

type V1IPAllocateRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the machine id this ip should be associated with
	Machineid string `json:"machineid,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the network this ip allocate request address belongs to
	// Required: true
	Networkid *string `json:"networkid"`

	// the project this ip address belongs to
	// Required: true
	Projectid *string `json:"projectid"`

	// free tags that you associate with this ip.
	Tags []string `json:"tags"`

	// the ip type, ephemeral leads to automatic cleanup of the ip address, static will enable re-use of the ip at a later point in time
	// Required: true
	// Enum: [ephemeral static]
	Type *string `json:"type"`
}

V1IPAllocateRequest v1 IP allocate request

swagger:model v1.IPAllocateRequest

func (*V1IPAllocateRequest) ContextValidate added in v0.12.1

func (m *V1IPAllocateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 IP allocate request based on context it is used

func (*V1IPAllocateRequest) MarshalBinary

func (m *V1IPAllocateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1IPAllocateRequest) UnmarshalBinary

func (m *V1IPAllocateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1IPAllocateRequest) Validate

func (m *V1IPAllocateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 IP allocate request

type V1IPFindRequest

type V1IPFindRequest struct {

	// the address (ipv4 or ipv6) of this ip
	Ipaddress string `json:"ipaddress,omitempty"`

	// the machine an ip address is associated to
	Machineid string `json:"machineid,omitempty"`

	// the name of the ip address
	Name string `json:"name,omitempty"`

	// the network this ip allocate request address belongs to
	Networkid string `json:"networkid,omitempty"`

	// the prefix of the network this ip address belongs to
	Networkprefix string `json:"networkprefix,omitempty"`

	// the project this ip address belongs to, empty if not strong coupled
	Projectid string `json:"projectid,omitempty"`

	// the tags that are assigned to this ip address
	Tags []string `json:"tags"`

	// the type of the ip address, ephemeral or static
	Type string `json:"type,omitempty"`
}

V1IPFindRequest v1 IP find request

swagger:model v1.IPFindRequest

func (*V1IPFindRequest) ContextValidate added in v0.12.1

func (m *V1IPFindRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 IP find request based on context it is used

func (*V1IPFindRequest) MarshalBinary

func (m *V1IPFindRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1IPFindRequest) UnmarshalBinary

func (m *V1IPFindRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1IPFindRequest) Validate

func (m *V1IPFindRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 IP find request

type V1IPResponse

type V1IPResponse struct {

	// a unique identifier for this ip address allocation, can be used to distinguish between ip address allocation over time.
	// Required: true
	Allocationuuid *string `json:"allocationuuid"`

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the address (ipv4 or ipv6) of this ip
	// Required: true
	Ipaddress *string `json:"ipaddress"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the network this ip allocate request address belongs to
	// Required: true
	Networkid *string `json:"networkid"`

	// the project this ip address belongs to
	// Required: true
	Projectid *string `json:"projectid"`

	// free tags that you associate with this ip.
	Tags []string `json:"tags"`

	// the ip type, ephemeral leads to automatic cleanup of the ip address, static will enable re-use of the ip at a later point in time
	// Required: true
	// Enum: [ephemeral static]
	Type *string `json:"type"`
}

V1IPResponse v1 IP response

swagger:model v1.IPResponse

func (*V1IPResponse) ContextValidate added in v0.12.1

func (m *V1IPResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 IP response based on the context it is used

func (*V1IPResponse) MarshalBinary

func (m *V1IPResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1IPResponse) UnmarshalBinary

func (m *V1IPResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1IPResponse) Validate

func (m *V1IPResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 IP response

type V1IPUpdateRequest

type V1IPUpdateRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the address (ipv4 or ipv6) of this ip
	// Required: true
	Ipaddress *string `json:"ipaddress"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// free tags that you associate with this ip.
	Tags []string `json:"tags"`

	// the ip type, ephemeral leads to automatic cleanup of the ip address, static will enable re-use of the ip at a later point in time
	// Required: true
	// Enum: [ephemeral static]
	Type *string `json:"type"`
}

V1IPUpdateRequest an ip address that can be attached to a machine

swagger:model v1.IPUpdateRequest

func (*V1IPUpdateRequest) ContextValidate added in v0.12.1

func (m *V1IPUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 IP update request based on context it is used

func (*V1IPUpdateRequest) MarshalBinary

func (m *V1IPUpdateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1IPUpdateRequest) UnmarshalBinary

func (m *V1IPUpdateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1IPUpdateRequest) Validate

func (m *V1IPUpdateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 IP update request

type V1ImageCreateRequest

type V1ImageCreateRequest struct {

	// classification of this image
	Classification string `json:"classification,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// expirationDate of this image
	// Format: date-time
	ExpirationDate strfmt.DateTime `json:"expirationDate,omitempty"`

	// features of this image
	Features []string `json:"features"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the url of this image
	// Required: true
	URL *string `json:"url"`
}

V1ImageCreateRequest v1 image create request

swagger:model v1.ImageCreateRequest

func (*V1ImageCreateRequest) ContextValidate added in v0.12.1

func (m *V1ImageCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 image create request based on context it is used

func (*V1ImageCreateRequest) MarshalBinary

func (m *V1ImageCreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ImageCreateRequest) UnmarshalBinary

func (m *V1ImageCreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ImageCreateRequest) Validate

func (m *V1ImageCreateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 image create request

type V1ImageResponse

type V1ImageResponse struct {

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// classification of this image
	Classification string `json:"classification,omitempty"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// expirationDate of this image
	// Required: true
	// Format: date-time
	ExpirationDate *strfmt.DateTime `json:"expirationDate"`

	// features of this image
	Features []string `json:"features"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the url of this image
	URL string `json:"url,omitempty"`

	// machines where this image is in use
	Usedby []string `json:"usedby"`
}

V1ImageResponse v1 image response

swagger:model v1.ImageResponse

func (*V1ImageResponse) ContextValidate added in v0.12.1

func (m *V1ImageResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 image response based on the context it is used

func (*V1ImageResponse) MarshalBinary

func (m *V1ImageResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ImageResponse) UnmarshalBinary

func (m *V1ImageResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ImageResponse) Validate

func (m *V1ImageResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 image response

type V1ImageUpdateRequest

type V1ImageUpdateRequest struct {

	// classification of this image
	Classification string `json:"classification,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// expirationDate of this image
	// Required: true
	// Format: date-time
	ExpirationDate *strfmt.DateTime `json:"expirationDate"`

	// features of this image
	Features []string `json:"features"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the url of this image
	URL string `json:"url,omitempty"`

	// machines where this image is in use
	Usedby []string `json:"usedby"`
}

V1ImageUpdateRequest v1 image update request

swagger:model v1.ImageUpdateRequest

func (*V1ImageUpdateRequest) ContextValidate added in v0.12.1

func (m *V1ImageUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 image update request based on context it is used

func (*V1ImageUpdateRequest) MarshalBinary

func (m *V1ImageUpdateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ImageUpdateRequest) UnmarshalBinary

func (m *V1ImageUpdateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ImageUpdateRequest) Validate

func (m *V1ImageUpdateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 image update request

type V1MachineAbortReinstallRequest added in v0.4.0

type V1MachineAbortReinstallRequest struct {

	// indicates whether the primary disk is already wiped
	// Required: true
	PrimaryDiskWiped *bool `json:"primary_disk_wiped"`
}

V1MachineAbortReinstallRequest v1 machine abort reinstall request

swagger:model v1.MachineAbortReinstallRequest

func (*V1MachineAbortReinstallRequest) ContextValidate added in v0.12.1

func (m *V1MachineAbortReinstallRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine abort reinstall request based on context it is used

func (*V1MachineAbortReinstallRequest) MarshalBinary added in v0.4.0

func (m *V1MachineAbortReinstallRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineAbortReinstallRequest) UnmarshalBinary added in v0.4.0

func (m *V1MachineAbortReinstallRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineAbortReinstallRequest) Validate added in v0.4.0

func (m *V1MachineAbortReinstallRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 machine abort reinstall request

type V1MachineAllocateRequest

type V1MachineAllocateRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the hostname for the allocated machine (defaults to metal)
	Hostname string `json:"hostname,omitempty"`

	// the image id to assign this machine to
	// Required: true
	Imageid *string `json:"imageid"`

	// the ips to attach to this machine additionally
	Ips []string `json:"ips"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the networks that this machine will be placed in.
	Networks []*V1MachineAllocationNetwork `json:"networks"`

	// the partition id to assign this machine to
	// Required: true
	Partitionid *string `json:"partitionid"`

	// the project id to assign this machine to
	// Required: true
	Projectid *string `json:"projectid"`

	// the size id to assign this machine to
	// Required: true
	Sizeid *string `json:"sizeid"`

	// the public ssh keys to access the machine with
	// Required: true
	SSHPubKeys []string `json:"ssh_pub_keys"`

	// tags for this machine
	Tags []string `json:"tags"`

	// cloud-init.io compatible userdata must be base64 encoded
	UserData string `json:"user_data,omitempty"`

	// if this field is set, this specific machine will be allocated if it is not in available state and not currently allocated. this field overrules size and partition
	UUID string `json:"uuid,omitempty"`
}

V1MachineAllocateRequest v1 machine allocate request

swagger:model v1.MachineAllocateRequest

func (*V1MachineAllocateRequest) ContextValidate added in v0.12.1

func (m *V1MachineAllocateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine allocate request based on the context it is used

func (*V1MachineAllocateRequest) MarshalBinary

func (m *V1MachineAllocateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineAllocateRequest) UnmarshalBinary

func (m *V1MachineAllocateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineAllocateRequest) Validate

func (m *V1MachineAllocateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 machine allocate request

type V1MachineAllocation

type V1MachineAllocation struct {

	// information required for booting the machine from HD
	BootInfo *V1BootInfo `json:"boot_info,omitempty"`

	// the console password which was generated while provisioning
	ConsolePassword string `json:"console_password,omitempty"`

	// the time when the machine was created
	// Required: true
	// Format: date-time
	Created *strfmt.DateTime `json:"created"`

	// a description for this machine
	Description string `json:"description,omitempty"`

	// the hostname which will be used when creating the machine
	// Required: true
	Hostname *string `json:"hostname"`

	// the image assigned to this machine
	// Read Only: true
	Image *V1ImageResponse `json:"image,omitempty"`

	// the name of the machine
	// Required: true
	Name *string `json:"name"`

	// the networks of this machine
	// Required: true
	Networks []*V1MachineNetwork `json:"networks"`

	// the project id that this machine is assigned to
	// Required: true
	Project *string `json:"project"`

	// indicates whether to reinstall the machine
	// Required: true
	Reinstall *bool `json:"reinstall"`

	// the public ssh keys to access the machine with
	// Required: true
	SSHPubKeys []string `json:"ssh_pub_keys"`

	// if the allocation of the machine was successful, this is set to true
	// Required: true
	Succeeded *bool `json:"succeeded"`

	// userdata to execute post installation tasks
	UserData string `json:"user_data,omitempty"`
}

V1MachineAllocation v1 machine allocation

swagger:model v1.MachineAllocation

func (*V1MachineAllocation) ContextValidate added in v0.12.1

func (m *V1MachineAllocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine allocation based on the context it is used

func (*V1MachineAllocation) MarshalBinary

func (m *V1MachineAllocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineAllocation) UnmarshalBinary

func (m *V1MachineAllocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineAllocation) Validate

func (m *V1MachineAllocation) Validate(formats strfmt.Registry) error

Validate validates this v1 machine allocation

type V1MachineAllocationNetwork

type V1MachineAllocationNetwork struct {

	// will automatically acquire an ip in this network if set to true, default is true
	// Required: true
	Autoacquire *bool `json:"autoacquire"`

	// the id of the network that this machine will be placed in
	// Required: true
	Networkid *string `json:"networkid"`
}

V1MachineAllocationNetwork v1 machine allocation network

swagger:model v1.MachineAllocationNetwork

func (*V1MachineAllocationNetwork) ContextValidate added in v0.12.1

func (m *V1MachineAllocationNetwork) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine allocation network based on context it is used

func (*V1MachineAllocationNetwork) MarshalBinary

func (m *V1MachineAllocationNetwork) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineAllocationNetwork) UnmarshalBinary

func (m *V1MachineAllocationNetwork) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineAllocationNetwork) Validate

func (m *V1MachineAllocationNetwork) Validate(formats strfmt.Registry) error

Validate validates this v1 machine allocation network

type V1MachineBIOS

type V1MachineBIOS struct {

	// the bios date
	// Required: true
	Date *string `json:"date"`

	// the bios vendor
	// Required: true
	Vendor *string `json:"vendor"`

	// the bios version
	// Required: true
	Version *string `json:"version"`
}

V1MachineBIOS The bios version

swagger:model v1.MachineBIOS

func (*V1MachineBIOS) ContextValidate added in v0.12.1

func (m *V1MachineBIOS) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine b i o s based on context it is used

func (*V1MachineBIOS) MarshalBinary

func (m *V1MachineBIOS) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineBIOS) UnmarshalBinary

func (m *V1MachineBIOS) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineBIOS) Validate

func (m *V1MachineBIOS) Validate(formats strfmt.Registry) error

Validate validates this v1 machine b i o s

type V1MachineBlockDevice

type V1MachineBlockDevice struct {

	// the name of this block device
	// Required: true
	Name *string `json:"name"`

	// the partitions of this disk
	Partitions []*V1MachineDiskPartition `json:"partitions"`

	// whether this disk has the OS installed
	// Required: true
	Primary *bool `json:"primary"`

	// the size of this block device
	// Required: true
	Size *int64 `json:"size"`
}

V1MachineBlockDevice v1 machine block device

swagger:model v1.MachineBlockDevice

func (*V1MachineBlockDevice) ContextValidate added in v0.12.1

func (m *V1MachineBlockDevice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine block device based on the context it is used

func (*V1MachineBlockDevice) MarshalBinary

func (m *V1MachineBlockDevice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineBlockDevice) UnmarshalBinary

func (m *V1MachineBlockDevice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineBlockDevice) Validate

func (m *V1MachineBlockDevice) Validate(formats strfmt.Registry) error

Validate validates this v1 machine block device

type V1MachineDiskPartition added in v0.4.0

type V1MachineDiskPartition struct {

	// the partition device name, e.g. sda1
	// Required: true
	Device *string `json:"device"`

	// the partition filesystem
	// Required: true
	Filesystem *string `json:"filesystem"`

	// the partition GPT guid
	// Required: true
	Gptguid *string `json:"gptguid"`

	// the partition GPT type
	// Required: true
	Gpttyoe *string `json:"gpttyoe"`

	// the partition label
	// Required: true
	Label *string `json:"label"`

	// the partition mount options
	// Required: true
	Mountoptions []string `json:"mountoptions"`

	// the partition mount point
	// Required: true
	Mountpoint *string `json:"mountpoint"`

	// the partition number
	// Required: true
	Number *int64 `json:"number"`

	// the partition properties
	// Required: true
	Properties map[string]string `json:"properties"`

	// the partition size
	// Required: true
	Size *int64 `json:"size"`
}

V1MachineDiskPartition v1 machine disk partition

swagger:model v1.MachineDiskPartition

func (*V1MachineDiskPartition) ContextValidate added in v0.12.1

func (m *V1MachineDiskPartition) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine disk partition based on context it is used

func (*V1MachineDiskPartition) MarshalBinary added in v0.4.0

func (m *V1MachineDiskPartition) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineDiskPartition) UnmarshalBinary added in v0.4.0

func (m *V1MachineDiskPartition) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineDiskPartition) Validate added in v0.4.0

func (m *V1MachineDiskPartition) Validate(formats strfmt.Registry) error

Validate validates this v1 machine disk partition

type V1MachineFinalizeAllocationRequest

type V1MachineFinalizeAllocationRequest struct {

	// the bootloader ID
	// Required: true
	Bootloaderid *string `json:"bootloaderid"`

	// the cmdline
	// Required: true
	Cmdline *string `json:"cmdline"`

	// the console password which was generated while provisioning
	// Required: true
	ConsolePassword *string `json:"console_password"`

	// the initrd image
	// Required: true
	Initrd *string `json:"initrd"`

	// the kernel
	// Required: true
	Kernel *string `json:"kernel"`

	// the partition that has the OS installed
	// Required: true
	Ospartition *string `json:"ospartition"`

	// the device name of the primary disk
	// Required: true
	Primarydisk *string `json:"primarydisk"`
}

V1MachineFinalizeAllocationRequest v1 machine finalize allocation request

swagger:model v1.MachineFinalizeAllocationRequest

func (*V1MachineFinalizeAllocationRequest) ContextValidate added in v0.12.1

func (m *V1MachineFinalizeAllocationRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine finalize allocation request based on context it is used

func (*V1MachineFinalizeAllocationRequest) MarshalBinary

func (m *V1MachineFinalizeAllocationRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineFinalizeAllocationRequest) UnmarshalBinary

func (m *V1MachineFinalizeAllocationRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineFinalizeAllocationRequest) Validate

Validate validates this v1 machine finalize allocation request

type V1MachineFindRequest

type V1MachineFindRequest struct {

	// allocation hostname
	AllocationHostname string `json:"allocation_hostname,omitempty"`

	// allocation image id
	AllocationImageID string `json:"allocation_image_id,omitempty"`

	// allocation name
	AllocationName string `json:"allocation_name,omitempty"`

	// allocation project
	AllocationProject string `json:"allocation_project,omitempty"`

	// allocation succeeded
	AllocationSucceeded bool `json:"allocation_succeeded,omitempty"`

	// disk names
	DiskNames []string `json:"disk_names"`

	// disk sizes
	DiskSizes []int64 `json:"disk_sizes"`

	// fru board mfg
	FruBoardMfg string `json:"fru_board_mfg,omitempty"`

	// fru board mfg serial
	FruBoardMfgSerial string `json:"fru_board_mfg_serial,omitempty"`

	// fru board part number
	FruBoardPartNumber string `json:"fru_board_part_number,omitempty"`

	// fru chassis part number
	FruChassisPartNumber string `json:"fru_chassis_part_number,omitempty"`

	// fru chassis part serial
	FruChassisPartSerial string `json:"fru_chassis_part_serial,omitempty"`

	// fru product manufacturer
	FruProductManufacturer string `json:"fru_product_manufacturer,omitempty"`

	// fru product part number
	FruProductPartNumber string `json:"fru_product_part_number,omitempty"`

	// fru product serial
	FruProductSerial string `json:"fru_product_serial,omitempty"`

	// hardware cpu cores
	HardwareCPUCores int64 `json:"hardware_cpu_cores,omitempty"`

	// hardware memory
	HardwareMemory int64 `json:"hardware_memory,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// ipmi address
	IpmiAddress string `json:"ipmi_address,omitempty"`

	// ipmi interface
	IpmiInterface string `json:"ipmi_interface,omitempty"`

	// ipmi mac address
	IpmiMacAddress string `json:"ipmi_mac_address,omitempty"`

	// ipmi user
	IpmiUser string `json:"ipmi_user,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// network asns
	NetworkAsns []int64 `json:"network_asns"`

	// network destination prefixes
	NetworkDestinationPrefixes []string `json:"network_destination_prefixes"`

	// network ids
	NetworkIds []string `json:"network_ids"`

	// network ips
	NetworkIps []string `json:"network_ips"`

	// network nat
	NetworkNat bool `json:"network_nat,omitempty"`

	// network prefixes
	NetworkPrefixes []string `json:"network_prefixes"`

	// network private
	NetworkPrivate bool `json:"network_private,omitempty"`

	// network underlay
	NetworkUnderlay bool `json:"network_underlay,omitempty"`

	// network vrfs
	NetworkVrfs []int64 `json:"network_vrfs"`

	// nics mac addresses
	NicsMacAddresses []string `json:"nics_mac_addresses"`

	// nics names
	NicsNames []string `json:"nics_names"`

	// nics neighbor mac addresses
	NicsNeighborMacAddresses []string `json:"nics_neighbor_mac_addresses"`

	// nics neighbor names
	NicsNeighborNames []string `json:"nics_neighbor_names"`

	// nics neighbor vrfs
	NicsNeighborVrfs []string `json:"nics_neighbor_vrfs"`

	// nics vrfs
	NicsVrfs []string `json:"nics_vrfs"`

	// partition id
	PartitionID string `json:"partition_id,omitempty"`

	// rackid
	Rackid string `json:"rackid,omitempty"`

	// sizeid
	Sizeid string `json:"sizeid,omitempty"`

	// state value
	StateValue string `json:"state_value,omitempty"`

	// tags
	Tags []string `json:"tags"`
}

V1MachineFindRequest v1 machine find request

swagger:model v1.MachineFindRequest

func (*V1MachineFindRequest) ContextValidate added in v0.12.1

func (m *V1MachineFindRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine find request based on context it is used

func (*V1MachineFindRequest) MarshalBinary

func (m *V1MachineFindRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineFindRequest) UnmarshalBinary

func (m *V1MachineFindRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineFindRequest) Validate

func (m *V1MachineFindRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 machine find request

type V1MachineFru

type V1MachineFru struct {

	// the board mfg
	BoardMfg string `json:"board_mfg,omitempty"`

	// the board mfg serial
	BoardMfgSerial string `json:"board_mfg_serial,omitempty"`

	// the board part number
	BoardPartNumber string `json:"board_part_number,omitempty"`

	// the chassis part number
	ChassisPartNumber string `json:"chassis_part_number,omitempty"`

	// the chassis part serial
	ChassisPartSerial string `json:"chassis_part_serial,omitempty"`

	// the product manufacturer
	ProductManufacturer string `json:"product_manufacturer,omitempty"`

	// the product part number
	ProductPartNumber string `json:"product_part_number,omitempty"`

	// the product serial
	ProductSerial string `json:"product_serial,omitempty"`
}

V1MachineFru The Field Replaceable Unit data

swagger:model v1.MachineFru

func (*V1MachineFru) ContextValidate added in v0.12.1

func (m *V1MachineFru) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine fru based on context it is used

func (*V1MachineFru) MarshalBinary

func (m *V1MachineFru) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineFru) UnmarshalBinary

func (m *V1MachineFru) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineFru) Validate

func (m *V1MachineFru) Validate(formats strfmt.Registry) error

Validate validates this v1 machine fru

type V1MachineHardware

type V1MachineHardware struct {

	// the number of cpu cores
	// Required: true
	CPUCores *int32 `json:"cpu_cores"`

	// the list of block devices of this machine
	// Required: true
	Disks []*V1MachineBlockDevice `json:"disks"`

	// the total memory of the machine
	// Required: true
	Memory *int64 `json:"memory"`

	// the list of network interfaces of this machine
	// Required: true
	Nics []*V1MachineNic `json:"nics"`
}

V1MachineHardware v1 machine hardware

swagger:model v1.MachineHardware

func (*V1MachineHardware) ContextValidate added in v0.12.1

func (m *V1MachineHardware) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine hardware based on the context it is used

func (*V1MachineHardware) MarshalBinary

func (m *V1MachineHardware) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineHardware) UnmarshalBinary

func (m *V1MachineHardware) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineHardware) Validate

func (m *V1MachineHardware) Validate(formats strfmt.Registry) error

Validate validates this v1 machine hardware

type V1MachineHardwareExtended

type V1MachineHardwareExtended struct {

	// the number of cpu cores
	// Required: true
	CPUCores *int32 `json:"cpu_cores"`

	// the list of block devices of this machine
	// Required: true
	Disks []*V1MachineBlockDevice `json:"disks"`

	// the total memory of the machine
	// Required: true
	Memory *int64 `json:"memory"`

	// the list of network interfaces of this machine with extended information
	// Required: true
	Nics []*V1MachineNicExtended `json:"nics"`
}

V1MachineHardwareExtended v1 machine hardware extended

swagger:model v1.MachineHardwareExtended

func (*V1MachineHardwareExtended) ContextValidate added in v0.12.1

func (m *V1MachineHardwareExtended) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine hardware extended based on the context it is used

func (*V1MachineHardwareExtended) MarshalBinary

func (m *V1MachineHardwareExtended) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineHardwareExtended) UnmarshalBinary

func (m *V1MachineHardwareExtended) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineHardwareExtended) Validate

func (m *V1MachineHardwareExtended) Validate(formats strfmt.Registry) error

Validate validates this v1 machine hardware extended

type V1MachineIPMI

type V1MachineIPMI struct {

	// address
	// Required: true
	Address *string `json:"address"`

	// bmcversion
	// Required: true
	Bmcversion *string `json:"bmcversion"`

	// fru
	// Required: true
	Fru *V1MachineFru `json:"fru"`

	// interface
	// Required: true
	Interface *string `json:"interface"`

	// mac
	// Required: true
	Mac *string `json:"mac"`

	// password
	// Required: true
	Password *string `json:"password"`

	// user
	// Required: true
	User *string `json:"user"`
}

V1MachineIPMI The IPMI connection data

swagger:model v1.MachineIPMI

func (*V1MachineIPMI) ContextValidate added in v0.12.1

func (m *V1MachineIPMI) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine IP m i based on the context it is used

func (*V1MachineIPMI) MarshalBinary

func (m *V1MachineIPMI) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineIPMI) UnmarshalBinary

func (m *V1MachineIPMI) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineIPMI) Validate

func (m *V1MachineIPMI) Validate(formats strfmt.Registry) error

Validate validates this v1 machine IP m i

type V1MachineIPMIResponse

type V1MachineIPMIResponse struct {

	// the allocation data of an allocated machine
	Allocation *V1MachineAllocation `json:"allocation,omitempty"`

	// bios information of this machine
	// Required: true
	Bios *V1MachineBIOS `json:"bios"`

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// recent events of this machine during provisioning
	// Required: true
	Events *V1MachineRecentProvisioningEvents `json:"events"`

	// the hardware of this machine
	// Required: true
	Hardware *V1MachineHardware `json:"hardware"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// ipmi information of this machine
	// Required: true
	Ipmi *V1MachineIPMI `json:"ipmi"`

	// the state of this chassis identify LED
	// Required: true
	Ledstate *V1ChassisIdentifyLEDState `json:"ledstate"`

	// the liveliness of this machine
	// Required: true
	Liveliness *string `json:"liveliness"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the partition assigned to this machine
	// Read Only: true
	Partition *V1PartitionResponse `json:"partition,omitempty"`

	// the rack assigned to this machine
	// Read Only: true
	Rackid string `json:"rackid,omitempty"`

	// the size of this machine
	// Read Only: true
	Size *V1SizeResponse `json:"size,omitempty"`

	// the state of this machine
	// Required: true
	State *V1MachineState `json:"state"`

	// tags for this machine
	// Required: true
	Tags []string `json:"tags"`
}

V1MachineIPMIResponse v1 machine IP m i response

swagger:model v1.MachineIPMIResponse

func (*V1MachineIPMIResponse) ContextValidate added in v0.12.1

func (m *V1MachineIPMIResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine IP m i response based on the context it is used

func (*V1MachineIPMIResponse) MarshalBinary

func (m *V1MachineIPMIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineIPMIResponse) UnmarshalBinary

func (m *V1MachineIPMIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineIPMIResponse) Validate

func (m *V1MachineIPMIResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 machine IP m i response

type V1MachineIpmiReport added in v0.11.0

type V1MachineIpmiReport struct {

	// b i o s version
	// Required: true
	BIOSVersion *string `json:"BIOSVersion"`

	// b m c Ip
	// Required: true
	BMCIP *string `json:"BMCIp"`

	// b m c version
	// Required: true
	BMCVersion *string `json:"BMCVersion"`

	// f r u
	// Required: true
	FRU *V1MachineFru `json:"FRU"`
}

V1MachineIpmiReport v1 machine ipmi report

swagger:model v1.MachineIpmiReport

func (*V1MachineIpmiReport) ContextValidate added in v0.12.1

func (m *V1MachineIpmiReport) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine ipmi report based on the context it is used

func (*V1MachineIpmiReport) MarshalBinary added in v0.11.0

func (m *V1MachineIpmiReport) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineIpmiReport) UnmarshalBinary added in v0.11.0

func (m *V1MachineIpmiReport) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineIpmiReport) Validate added in v0.11.0

func (m *V1MachineIpmiReport) Validate(formats strfmt.Registry) error

Validate validates this v1 machine ipmi report

type V1MachineIpmiReportResponse added in v0.11.0

type V1MachineIpmiReportResponse struct {

	// the machine uuids that triggered a creation of a machine entity
	// Required: true
	Created []string `json:"created"`

	// the machine uuids that triggered an update of ipmi data
	// Required: true
	Updated []string `json:"updated"`
}

V1MachineIpmiReportResponse v1 machine ipmi report response

swagger:model v1.MachineIpmiReportResponse

func (*V1MachineIpmiReportResponse) ContextValidate added in v0.12.1

func (m *V1MachineIpmiReportResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine ipmi report response based on context it is used

func (*V1MachineIpmiReportResponse) MarshalBinary added in v0.11.0

func (m *V1MachineIpmiReportResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineIpmiReportResponse) UnmarshalBinary added in v0.11.0

func (m *V1MachineIpmiReportResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineIpmiReportResponse) Validate added in v0.11.0

func (m *V1MachineIpmiReportResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 machine ipmi report response

type V1MachineIpmiReports added in v0.11.0

type V1MachineIpmiReports struct {

	// the partition id for the ipmi report
	Partitionid string `json:"partitionid,omitempty"`

	// uuid to machinereport
	Reports map[string]V1MachineIpmiReport `json:"reports,omitempty"`
}

V1MachineIpmiReports v1 machine ipmi reports

swagger:model v1.MachineIpmiReports

func (*V1MachineIpmiReports) ContextValidate added in v0.12.1

func (m *V1MachineIpmiReports) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine ipmi reports based on the context it is used

func (*V1MachineIpmiReports) MarshalBinary added in v0.11.0

func (m *V1MachineIpmiReports) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineIpmiReports) UnmarshalBinary added in v0.11.0

func (m *V1MachineIpmiReports) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineIpmiReports) Validate added in v0.11.0

func (m *V1MachineIpmiReports) Validate(formats strfmt.Registry) error

Validate validates this v1 machine ipmi reports

type V1MachineNetwork

type V1MachineNetwork struct {

	// ASN number for this network in the bgp configuration
	// Required: true
	Asn *int64 `json:"asn"`

	// the destination prefixes of this network
	// Required: true
	Destinationprefixes []string `json:"destinationprefixes"`

	// the ip addresses of the allocated machine in this vrf
	// Required: true
	Ips []string `json:"ips"`

	// if set to true, packets leaving this network get masqueraded behind interface ip
	// Required: true
	Nat *bool `json:"nat"`

	// the networkID of the allocated machine in this vrf
	// Required: true
	Networkid *string `json:"networkid"`

	// the network type, types can be looked up in the network package of metal-lib
	// Required: true
	Networktype *string `json:"networktype"`

	// the prefixes of this network
	// Required: true
	Prefixes []string `json:"prefixes"`

	// indicates whether this network is the private network of this machine
	// Required: true
	Private *bool `json:"private"`

	// if set to true, this network can be used for underlay communication
	// Required: true
	Underlay *bool `json:"underlay"`

	// the vrf of the allocated machine
	// Required: true
	Vrf *int64 `json:"vrf"`
}

V1MachineNetwork prefixes that are reachable within this network

swagger:model v1.MachineNetwork

func (*V1MachineNetwork) ContextValidate added in v0.12.1

func (m *V1MachineNetwork) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine network based on context it is used

func (*V1MachineNetwork) MarshalBinary

func (m *V1MachineNetwork) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineNetwork) UnmarshalBinary

func (m *V1MachineNetwork) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineNetwork) Validate

func (m *V1MachineNetwork) Validate(formats strfmt.Registry) error

Validate validates this v1 machine network

type V1MachineNic

type V1MachineNic struct {

	// the mac address of this network interface
	// Required: true
	Mac *string `json:"mac"`

	// the name of this network interface
	// Required: true
	Name *string `json:"name"`
}

V1MachineNic v1 machine nic

swagger:model v1.MachineNic

func (*V1MachineNic) ContextValidate added in v0.12.1

func (m *V1MachineNic) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine nic based on context it is used

func (*V1MachineNic) MarshalBinary

func (m *V1MachineNic) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineNic) UnmarshalBinary

func (m *V1MachineNic) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineNic) Validate

func (m *V1MachineNic) Validate(formats strfmt.Registry) error

Validate validates this v1 machine nic

type V1MachineNicExtended

type V1MachineNicExtended struct {

	// the mac address of this network interface
	// Required: true
	Mac *string `json:"mac"`

	// the name of this network interface
	// Required: true
	Name *string `json:"name"`

	// the neighbors visible to this network interface
	// Required: true
	Neighbors []*V1MachineNicExtended `json:"neighbors"`
}

V1MachineNicExtended v1 machine nic extended

swagger:model v1.MachineNicExtended

func (*V1MachineNicExtended) ContextValidate added in v0.12.1

func (m *V1MachineNicExtended) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine nic extended based on the context it is used

func (*V1MachineNicExtended) MarshalBinary

func (m *V1MachineNicExtended) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineNicExtended) UnmarshalBinary

func (m *V1MachineNicExtended) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineNicExtended) Validate

func (m *V1MachineNicExtended) Validate(formats strfmt.Registry) error

Validate validates this v1 machine nic extended

type V1MachineProvisioningEvent

type V1MachineProvisioningEvent struct {

	// the event emitted by the machine
	// Required: true
	Event *string `json:"event"`

	// an additional message to add to the event
	Message string `json:"message,omitempty"`

	// the time that this event was received
	// Read Only: true
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`
}

V1MachineProvisioningEvent v1 machine provisioning event

swagger:model v1.MachineProvisioningEvent

func (*V1MachineProvisioningEvent) ContextValidate added in v0.12.1

func (m *V1MachineProvisioningEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine provisioning event based on the context it is used

func (*V1MachineProvisioningEvent) MarshalBinary

func (m *V1MachineProvisioningEvent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineProvisioningEvent) UnmarshalBinary

func (m *V1MachineProvisioningEvent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineProvisioningEvent) Validate

func (m *V1MachineProvisioningEvent) Validate(formats strfmt.Registry) error

Validate validates this v1 machine provisioning event

type V1MachineRecentProvisioningEvents

type V1MachineRecentProvisioningEvents struct {

	// the amount of incomplete provisioning cycles in the event container
	// Required: true
	IncompleteProvisioningCycles *string `json:"incomplete_provisioning_cycles"`

	// the time where the last event was received
	// Format: date-time
	LastEventTime strfmt.DateTime `json:"last_event_time,omitempty"`

	// the log of recent machine provisioning events
	// Required: true
	Log []*V1MachineProvisioningEvent `json:"log"`
}

V1MachineRecentProvisioningEvents v1 machine recent provisioning events

swagger:model v1.MachineRecentProvisioningEvents

func (*V1MachineRecentProvisioningEvents) ContextValidate added in v0.12.1

func (m *V1MachineRecentProvisioningEvents) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine recent provisioning events based on the context it is used

func (*V1MachineRecentProvisioningEvents) MarshalBinary

func (m *V1MachineRecentProvisioningEvents) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineRecentProvisioningEvents) UnmarshalBinary

func (m *V1MachineRecentProvisioningEvents) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineRecentProvisioningEvents) Validate

Validate validates this v1 machine recent provisioning events

type V1MachineRegisterRequest

type V1MachineRegisterRequest struct {

	// bios information of this machine
	// Required: true
	Bios *V1MachineBIOS `json:"bios"`

	// the hardware of this machine
	// Required: true
	Hardware *V1MachineHardwareExtended `json:"hardware"`

	// the ipmi access infos
	// Required: true
	Ipmi *V1MachineIPMI `json:"ipmi"`

	// the partition id to register this machine with
	// Required: true
	Partitionid *string `json:"partitionid"`

	// the rack id where this machine is connected to
	// Required: true
	Rackid *string `json:"rackid"`

	// tags for this machine
	// Required: true
	Tags []string `json:"tags"`

	// the product uuid of the machine to register
	// Required: true
	UUID *string `json:"uuid"`
}

V1MachineRegisterRequest v1 machine register request

swagger:model v1.MachineRegisterRequest

func (*V1MachineRegisterRequest) ContextValidate added in v0.12.1

func (m *V1MachineRegisterRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine register request based on the context it is used

func (*V1MachineRegisterRequest) MarshalBinary

func (m *V1MachineRegisterRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineRegisterRequest) UnmarshalBinary

func (m *V1MachineRegisterRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineRegisterRequest) Validate

func (m *V1MachineRegisterRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 machine register request

type V1MachineReinstallRequest added in v0.4.0

type V1MachineReinstallRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// the image id to be installed
	// Required: true
	Imageid *string `json:"imageid"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`
}

V1MachineReinstallRequest v1 machine reinstall request

swagger:model v1.MachineReinstallRequest

func (*V1MachineReinstallRequest) ContextValidate added in v0.12.1

func (m *V1MachineReinstallRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine reinstall request based on context it is used

func (*V1MachineReinstallRequest) MarshalBinary added in v0.4.0

func (m *V1MachineReinstallRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineReinstallRequest) UnmarshalBinary added in v0.4.0

func (m *V1MachineReinstallRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineReinstallRequest) Validate added in v0.4.0

func (m *V1MachineReinstallRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 machine reinstall request

type V1MachineResponse

type V1MachineResponse struct {

	// the allocation data of an allocated machine
	Allocation *V1MachineAllocation `json:"allocation,omitempty"`

	// bios information of this machine
	// Required: true
	Bios *V1MachineBIOS `json:"bios"`

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// recent events of this machine during provisioning
	// Required: true
	Events *V1MachineRecentProvisioningEvents `json:"events"`

	// the hardware of this machine
	// Required: true
	Hardware *V1MachineHardware `json:"hardware"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// the state of this chassis identify LED
	// Required: true
	Ledstate *V1ChassisIdentifyLEDState `json:"ledstate"`

	// the liveliness of this machine
	// Required: true
	Liveliness *string `json:"liveliness"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the partition assigned to this machine
	// Read Only: true
	Partition *V1PartitionResponse `json:"partition,omitempty"`

	// the rack assigned to this machine
	// Read Only: true
	Rackid string `json:"rackid,omitempty"`

	// the size of this machine
	// Read Only: true
	Size *V1SizeResponse `json:"size,omitempty"`

	// the state of this machine
	// Required: true
	State *V1MachineState `json:"state"`

	// tags for this machine
	// Required: true
	Tags []string `json:"tags"`
}

V1MachineResponse v1 machine response

swagger:model v1.MachineResponse

func (*V1MachineResponse) ContextValidate added in v0.12.1

func (m *V1MachineResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 machine response based on the context it is used

func (*V1MachineResponse) MarshalBinary

func (m *V1MachineResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineResponse) UnmarshalBinary

func (m *V1MachineResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineResponse) Validate

func (m *V1MachineResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 machine response

type V1MachineState

type V1MachineState struct {

	// a description why this machine is in the given state
	// Required: true
	Description *string `json:"description"`

	// the state of this machine. empty means available for all
	// Required: true
	Value *string `json:"value"`
}

V1MachineState v1 machine state

swagger:model v1.MachineState

func (*V1MachineState) ContextValidate added in v0.12.1

func (m *V1MachineState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine state based on context it is used

func (*V1MachineState) MarshalBinary

func (m *V1MachineState) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineState) UnmarshalBinary

func (m *V1MachineState) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineState) Validate

func (m *V1MachineState) Validate(formats strfmt.Registry) error

Validate validates this v1 machine state

type V1MachineUpdateFirmwareRequest added in v0.13.1

type V1MachineUpdateFirmwareRequest struct {

	// a description why the machine has been updated
	// Required: true
	Description *string `json:"description"`

	// the firmware kind, i.e. 'bios' of 'bmc'
	// Required: true
	Kind *string `json:"kind"`

	// the update revision
	// Required: true
	Revision *string `json:"revision"`
}

V1MachineUpdateFirmwareRequest v1 machine update firmware request

swagger:model v1.MachineUpdateFirmwareRequest

func (*V1MachineUpdateFirmwareRequest) ContextValidate added in v0.13.1

func (m *V1MachineUpdateFirmwareRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 machine update firmware request based on context it is used

func (*V1MachineUpdateFirmwareRequest) MarshalBinary added in v0.13.1

func (m *V1MachineUpdateFirmwareRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MachineUpdateFirmwareRequest) UnmarshalBinary added in v0.13.1

func (m *V1MachineUpdateFirmwareRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MachineUpdateFirmwareRequest) Validate added in v0.13.1

func (m *V1MachineUpdateFirmwareRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 machine update firmware request

type V1Meta

type V1Meta struct {

	// annotations
	Annotations map[string]string `json:"annotations,omitempty"`

	// apiversion
	Apiversion string `json:"apiversion,omitempty"`

	// created time
	// Format: date-time
	CreatedTime strfmt.DateTime `json:"created_time,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// kind
	Kind string `json:"kind,omitempty"`

	// labels
	Labels []string `json:"labels"`

	// updated time
	// Format: date-time
	UpdatedTime strfmt.DateTime `json:"updated_time,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

V1Meta v1 meta

swagger:model v1.Meta

func (*V1Meta) ContextValidate added in v0.12.1

func (m *V1Meta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 meta based on context it is used

func (*V1Meta) MarshalBinary

func (m *V1Meta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Meta) UnmarshalBinary

func (m *V1Meta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Meta) Validate

func (m *V1Meta) Validate(formats strfmt.Registry) error

Validate validates this v1 meta

type V1NetworkAllocateRequest

type V1NetworkAllocateRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the destination prefixes of this network
	Destinationprefixes []string `json:"destinationprefixes"`

	// free labels that you associate with this network.
	Labels map[string]string `json:"labels,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// if set to true, packets leaving this network get masqueraded behind interface ip
	Nat bool `json:"nat,omitempty"`

	// the partition this network belongs to
	Partitionid string `json:"partitionid,omitempty"`

	// the project id this network belongs to, can be empty if globally available
	Projectid string `json:"projectid,omitempty"`

	// marks a network as shareable.
	Shared bool `json:"shared,omitempty"`
}

V1NetworkAllocateRequest v1 network allocate request

swagger:model v1.NetworkAllocateRequest

func (*V1NetworkAllocateRequest) ContextValidate added in v0.12.1

func (m *V1NetworkAllocateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 network allocate request based on context it is used

func (*V1NetworkAllocateRequest) MarshalBinary

func (m *V1NetworkAllocateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NetworkAllocateRequest) UnmarshalBinary

func (m *V1NetworkAllocateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NetworkAllocateRequest) Validate

func (m *V1NetworkAllocateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 network allocate request

type V1NetworkCreateRequest

type V1NetworkCreateRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the destination prefixes of this network
	// Required: true
	Destinationprefixes []string `json:"destinationprefixes"`

	// the unique ID of this entity, auto-generated if left empty
	// Required: true
	ID *string `json:"id"`

	// free labels that you associate with this network.
	Labels map[string]string `json:"labels,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// if set to true, packets leaving this network get masqueraded behind interface ip
	// Required: true
	Nat *bool `json:"nat"`

	// the id of the parent network
	Parentnetworkid string `json:"parentnetworkid,omitempty"`

	// the partition this network belongs to
	Partitionid string `json:"partitionid,omitempty"`

	// the prefixes of this network
	// Required: true
	Prefixes []string `json:"prefixes"`

	// if set to true, this network will serve as a partition's super network for the internal machine networks,there can only be one privatesuper network per partition
	// Required: true
	Privatesuper *bool `json:"privatesuper"`

	// the project id this network belongs to, can be empty if globally available
	Projectid string `json:"projectid,omitempty"`

	// marks a network as shareable.
	Shared bool `json:"shared,omitempty"`

	// if set to true, this network can be used for underlay communication
	// Required: true
	Underlay *bool `json:"underlay"`

	// the vrf this network is associated with
	Vrf int64 `json:"vrf,omitempty"`

	// if set to true, given vrf can be used by multiple networks, which is sometimes useful for network partioning (default: false)
	Vrfshared bool `json:"vrfshared,omitempty"`
}

V1NetworkCreateRequest v1 network create request

swagger:model v1.NetworkCreateRequest

func (*V1NetworkCreateRequest) ContextValidate added in v0.12.1

func (m *V1NetworkCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 network create request based on context it is used

func (*V1NetworkCreateRequest) MarshalBinary

func (m *V1NetworkCreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NetworkCreateRequest) UnmarshalBinary

func (m *V1NetworkCreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NetworkCreateRequest) Validate

func (m *V1NetworkCreateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 network create request

type V1NetworkFindRequest

type V1NetworkFindRequest struct {

	// destinationprefixes
	Destinationprefixes []string `json:"destinationprefixes"`

	// id
	ID string `json:"id,omitempty"`

	// labels
	Labels map[string]string `json:"labels,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// nat
	Nat bool `json:"nat,omitempty"`

	// parentnetworkid
	Parentnetworkid string `json:"parentnetworkid,omitempty"`

	// partitionid
	Partitionid string `json:"partitionid,omitempty"`

	// prefixes
	Prefixes []string `json:"prefixes"`

	// privatesuper
	Privatesuper bool `json:"privatesuper,omitempty"`

	// projectid
	Projectid string `json:"projectid,omitempty"`

	// underlay
	Underlay bool `json:"underlay,omitempty"`

	// vrf
	Vrf int64 `json:"vrf,omitempty"`
}

V1NetworkFindRequest v1 network find request

swagger:model v1.NetworkFindRequest

func (*V1NetworkFindRequest) ContextValidate added in v0.12.1

func (m *V1NetworkFindRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 network find request based on context it is used

func (*V1NetworkFindRequest) MarshalBinary

func (m *V1NetworkFindRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NetworkFindRequest) UnmarshalBinary

func (m *V1NetworkFindRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NetworkFindRequest) Validate

func (m *V1NetworkFindRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 network find request

type V1NetworkResponse

type V1NetworkResponse struct {

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the destination prefixes of this network
	// Required: true
	Destinationprefixes []string `json:"destinationprefixes"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// free labels that you associate with this network.
	Labels map[string]string `json:"labels,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// if set to true, packets leaving this network get masqueraded behind interface ip
	// Required: true
	Nat *bool `json:"nat"`

	// the id of the parent network
	Parentnetworkid string `json:"parentnetworkid,omitempty"`

	// the partition this network belongs to
	Partitionid string `json:"partitionid,omitempty"`

	// the prefixes of this network
	// Required: true
	Prefixes []string `json:"prefixes"`

	// if set to true, this network will serve as a partition's super network for the internal machine networks,there can only be one privatesuper network per partition
	// Required: true
	Privatesuper *bool `json:"privatesuper"`

	// the project id this network belongs to, can be empty if globally available
	Projectid string `json:"projectid,omitempty"`

	// marks a network as shareable.
	Shared bool `json:"shared,omitempty"`

	// if set to true, this network can be used for underlay communication
	// Required: true
	Underlay *bool `json:"underlay"`

	// usage of ips and prefixes in this network
	// Required: true
	Usage *V1NetworkUsage `json:"usage"`

	// the vrf this network is associated with
	Vrf int64 `json:"vrf,omitempty"`

	// if set to true, given vrf can be used by multiple networks, which is sometimes useful for network partioning (default: false)
	Vrfshared bool `json:"vrfshared,omitempty"`
}

V1NetworkResponse v1 network response

swagger:model v1.NetworkResponse

func (*V1NetworkResponse) ContextValidate added in v0.12.1

func (m *V1NetworkResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 network response based on the context it is used

func (*V1NetworkResponse) MarshalBinary

func (m *V1NetworkResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NetworkResponse) UnmarshalBinary

func (m *V1NetworkResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NetworkResponse) Validate

func (m *V1NetworkResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 network response

type V1NetworkUpdateRequest

type V1NetworkUpdateRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// free labels that you associate with this network.
	Labels map[string]string `json:"labels,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the prefixes of this network
	Prefixes []string `json:"prefixes"`

	// marks a network as shareable.
	Shared bool `json:"shared,omitempty"`
}

V1NetworkUpdateRequest v1 network update request

swagger:model v1.NetworkUpdateRequest

func (*V1NetworkUpdateRequest) ContextValidate added in v0.12.1

func (m *V1NetworkUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 network update request based on context it is used

func (*V1NetworkUpdateRequest) MarshalBinary

func (m *V1NetworkUpdateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NetworkUpdateRequest) UnmarshalBinary

func (m *V1NetworkUpdateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NetworkUpdateRequest) Validate

func (m *V1NetworkUpdateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 network update request

type V1NetworkUsage

type V1NetworkUsage struct {

	// the total available IPs
	// Required: true
	AvailableIps *int64 `json:"available_ips"`

	// the total available Prefixes
	// Required: true
	AvailablePrefixes *int64 `json:"available_prefixes"`

	// the total used IPs
	// Required: true
	UsedIps *int64 `json:"used_ips"`

	// the total used Prefixes
	// Required: true
	UsedPrefixes *int64 `json:"used_prefixes"`
}

V1NetworkUsage v1 network usage

swagger:model v1.NetworkUsage

func (*V1NetworkUsage) ContextValidate added in v0.12.1

func (m *V1NetworkUsage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 network usage based on context it is used

func (*V1NetworkUsage) MarshalBinary

func (m *V1NetworkUsage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NetworkUsage) UnmarshalBinary

func (m *V1NetworkUsage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NetworkUsage) Validate

func (m *V1NetworkUsage) Validate(formats strfmt.Registry) error

Validate validates this v1 network usage

type V1PartitionBootConfiguration

type V1PartitionBootConfiguration struct {

	// the cmdline to the kernel for the boot image
	Commandline string `json:"commandline,omitempty"`

	// the url to download the initrd for the boot image
	Imageurl string `json:"imageurl,omitempty"`

	// the url to download the kernel for the boot image
	Kernelurl string `json:"kernelurl,omitempty"`
}

V1PartitionBootConfiguration a partition has a distinct location in a data center, individual entities belong to a partition

swagger:model v1.PartitionBootConfiguration

func (*V1PartitionBootConfiguration) ContextValidate added in v0.12.1

func (m *V1PartitionBootConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 partition boot configuration based on context it is used

func (*V1PartitionBootConfiguration) MarshalBinary

func (m *V1PartitionBootConfiguration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PartitionBootConfiguration) UnmarshalBinary

func (m *V1PartitionBootConfiguration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PartitionBootConfiguration) Validate

func (m *V1PartitionBootConfiguration) Validate(formats strfmt.Registry) error

Validate validates this v1 partition boot configuration

type V1PartitionCapacity

type V1PartitionCapacity struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// servers available in this partition
	// Required: true
	Servers []*V1ServerCapacity `json:"servers"`
}

V1PartitionCapacity v1 partition capacity

swagger:model v1.PartitionCapacity

func (*V1PartitionCapacity) ContextValidate added in v0.12.1

func (m *V1PartitionCapacity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 partition capacity based on the context it is used

func (*V1PartitionCapacity) MarshalBinary

func (m *V1PartitionCapacity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PartitionCapacity) UnmarshalBinary

func (m *V1PartitionCapacity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PartitionCapacity) Validate

func (m *V1PartitionCapacity) Validate(formats strfmt.Registry) error

Validate validates this v1 partition capacity

type V1PartitionCreateRequest

type V1PartitionCreateRequest struct {

	// the boot configuration of this partition
	// Required: true
	Bootconfig *V1PartitionBootConfiguration `json:"bootconfig"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// the address to the management service of this partition
	Mgmtserviceaddress string `json:"mgmtserviceaddress,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the length of private networks for the machine's child networks in this partition, default 22
	// Maximum: 30
	// Minimum: 16
	Privatenetworkprefixlength int32 `json:"privatenetworkprefixlength,omitempty"`
}

V1PartitionCreateRequest v1 partition create request

swagger:model v1.PartitionCreateRequest

func (*V1PartitionCreateRequest) ContextValidate added in v0.12.1

func (m *V1PartitionCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 partition create request based on the context it is used

func (*V1PartitionCreateRequest) MarshalBinary

func (m *V1PartitionCreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PartitionCreateRequest) UnmarshalBinary

func (m *V1PartitionCreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PartitionCreateRequest) Validate

func (m *V1PartitionCreateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 partition create request

type V1PartitionResponse

type V1PartitionResponse struct {

	// the boot configuration of this partition
	// Required: true
	Bootconfig *V1PartitionBootConfiguration `json:"bootconfig"`

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// the address to the management service of this partition
	Mgmtserviceaddress string `json:"mgmtserviceaddress,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the length of private networks for the machine's child networks in this partition, default 22
	// Maximum: 30
	// Minimum: 16
	Privatenetworkprefixlength int32 `json:"privatenetworkprefixlength,omitempty"`
}

V1PartitionResponse v1 partition response

swagger:model v1.PartitionResponse

func (*V1PartitionResponse) ContextValidate added in v0.12.1

func (m *V1PartitionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 partition response based on the context it is used

func (*V1PartitionResponse) MarshalBinary

func (m *V1PartitionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PartitionResponse) UnmarshalBinary

func (m *V1PartitionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PartitionResponse) Validate

func (m *V1PartitionResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 partition response

type V1PartitionUpdateRequest

type V1PartitionUpdateRequest struct {

	// the boot configuration of this partition
	Bootconfig *V1PartitionBootConfiguration `json:"bootconfig,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// the address to the management service of this partition
	Mgmtserviceaddress string `json:"mgmtserviceaddress,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`
}

V1PartitionUpdateRequest v1 partition update request

swagger:model v1.PartitionUpdateRequest

func (*V1PartitionUpdateRequest) ContextValidate added in v0.12.1

func (m *V1PartitionUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 partition update request based on the context it is used

func (*V1PartitionUpdateRequest) MarshalBinary

func (m *V1PartitionUpdateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PartitionUpdateRequest) UnmarshalBinary

func (m *V1PartitionUpdateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PartitionUpdateRequest) Validate

func (m *V1PartitionUpdateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 partition update request

type V1ProjectCreateRequest added in v0.8.2

type V1ProjectCreateRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// meta
	Meta *V1Meta `json:"meta,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// quotas
	Quotas *V1QuotaSet `json:"quotas,omitempty"`

	// tenant id
	TenantID string `json:"tenant_id,omitempty"`
}

V1ProjectCreateRequest v1 project create request

swagger:model v1.ProjectCreateRequest

func (*V1ProjectCreateRequest) ContextValidate added in v0.12.1

func (m *V1ProjectCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 project create request based on the context it is used

func (*V1ProjectCreateRequest) MarshalBinary added in v0.8.2

func (m *V1ProjectCreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ProjectCreateRequest) UnmarshalBinary added in v0.8.2

func (m *V1ProjectCreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ProjectCreateRequest) Validate added in v0.8.2

func (m *V1ProjectCreateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 project create request

type V1ProjectFindRequest

type V1ProjectFindRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// tenant id
	TenantID string `json:"tenant_id,omitempty"`
}

V1ProjectFindRequest v1 project find request

swagger:model v1.ProjectFindRequest

func (*V1ProjectFindRequest) ContextValidate added in v0.12.1

func (m *V1ProjectFindRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 project find request based on context it is used

func (*V1ProjectFindRequest) MarshalBinary

func (m *V1ProjectFindRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ProjectFindRequest) UnmarshalBinary

func (m *V1ProjectFindRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ProjectFindRequest) Validate

func (m *V1ProjectFindRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 project find request

type V1ProjectResponse

type V1ProjectResponse struct {

	// description
	Description string `json:"description,omitempty"`

	// meta
	Meta *V1Meta `json:"meta,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// quotas
	Quotas *V1QuotaSet `json:"quotas,omitempty"`

	// tenant id
	TenantID string `json:"tenant_id,omitempty"`
}

V1ProjectResponse v1 project response

swagger:model v1.ProjectResponse

func (*V1ProjectResponse) ContextValidate added in v0.12.1

func (m *V1ProjectResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 project response based on the context it is used

func (*V1ProjectResponse) MarshalBinary

func (m *V1ProjectResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ProjectResponse) UnmarshalBinary

func (m *V1ProjectResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ProjectResponse) Validate

func (m *V1ProjectResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 project response

type V1ProjectUpdateRequest added in v0.8.2

type V1ProjectUpdateRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// meta
	Meta *V1Meta `json:"meta,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// quotas
	Quotas *V1QuotaSet `json:"quotas,omitempty"`

	// tenant id
	TenantID string `json:"tenant_id,omitempty"`
}

V1ProjectUpdateRequest v1 project update request

swagger:model v1.ProjectUpdateRequest

func (*V1ProjectUpdateRequest) ContextValidate added in v0.12.1

func (m *V1ProjectUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 project update request based on the context it is used

func (*V1ProjectUpdateRequest) MarshalBinary added in v0.8.2

func (m *V1ProjectUpdateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ProjectUpdateRequest) UnmarshalBinary added in v0.8.2

func (m *V1ProjectUpdateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ProjectUpdateRequest) Validate added in v0.8.2

func (m *V1ProjectUpdateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 project update request

type V1Quota

type V1Quota struct {

	// quota
	Quota int32 `json:"quota,omitempty"`

	// used
	Used int32 `json:"used,omitempty"`
}

V1Quota v1 quota

swagger:model v1.Quota

func (*V1Quota) ContextValidate added in v0.12.1

func (m *V1Quota) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 quota based on context it is used

func (*V1Quota) MarshalBinary

func (m *V1Quota) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Quota) UnmarshalBinary

func (m *V1Quota) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Quota) Validate

func (m *V1Quota) Validate(formats strfmt.Registry) error

Validate validates this v1 quota

type V1QuotaSet

type V1QuotaSet struct {

	// cluster
	Cluster *V1Quota `json:"cluster,omitempty"`

	// ip
	IP *V1Quota `json:"ip,omitempty"`

	// machine
	Machine *V1Quota `json:"machine,omitempty"`

	// project
	Project *V1Quota `json:"project,omitempty"`
}

V1QuotaSet v1 quota set

swagger:model v1.QuotaSet

func (*V1QuotaSet) ContextValidate added in v0.12.1

func (m *V1QuotaSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 quota set based on the context it is used

func (*V1QuotaSet) MarshalBinary

func (m *V1QuotaSet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1QuotaSet) UnmarshalBinary

func (m *V1QuotaSet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1QuotaSet) Validate

func (m *V1QuotaSet) Validate(formats strfmt.Registry) error

Validate validates this v1 quota set

type V1ServerCapacity

type V1ServerCapacity struct {

	// allocated servers with this size
	// Required: true
	Allocated *int32 `json:"allocated"`

	// servers with issues with this size
	// Required: true
	Faulty *int32 `json:"faulty"`

	// servers with issues with this size
	// Required: true
	Faultymachines []string `json:"faultymachines"`

	// free servers with this size
	// Required: true
	Free *int32 `json:"free"`

	// servers neither free, allocated or faulty with this size
	// Required: true
	Other *int32 `json:"other"`

	// servers neither free, allocated or faulty with this size
	// Required: true
	Othermachines []string `json:"othermachines"`

	// the size of the server
	// Required: true
	Size *string `json:"size"`

	// total amount of servers with this size
	// Required: true
	Total *int32 `json:"total"`
}

V1ServerCapacity v1 server capacity

swagger:model v1.ServerCapacity

func (*V1ServerCapacity) ContextValidate added in v0.12.1

func (m *V1ServerCapacity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 server capacity based on context it is used

func (*V1ServerCapacity) MarshalBinary

func (m *V1ServerCapacity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ServerCapacity) UnmarshalBinary

func (m *V1ServerCapacity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ServerCapacity) Validate

func (m *V1ServerCapacity) Validate(formats strfmt.Registry) error

Validate validates this v1 server capacity

type V1SizeConstraint

type V1SizeConstraint struct {

	// the maximum value of the constraint
	// Required: true
	Max *int64 `json:"max"`

	// the minimum value of the constraint
	// Required: true
	Min *int64 `json:"min"`

	// the type of the constraint
	// Required: true
	// Enum: [cores memory storage]
	Type *string `json:"type"`
}

V1SizeConstraint a machine matches to a size in order to make them easier to categorize

swagger:model v1.SizeConstraint

func (*V1SizeConstraint) ContextValidate added in v0.12.1

func (m *V1SizeConstraint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 size constraint based on context it is used

func (*V1SizeConstraint) MarshalBinary

func (m *V1SizeConstraint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SizeConstraint) UnmarshalBinary

func (m *V1SizeConstraint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SizeConstraint) Validate

func (m *V1SizeConstraint) Validate(formats strfmt.Registry) error

Validate validates this v1 size constraint

type V1SizeConstraintMatchingLog

type V1SizeConstraintMatchingLog struct {

	// the size constraint to which this log relates to
	// Required: true
	Constraint *V1SizeConstraint `json:"constraint"`

	// a string represention of the matching condition
	// Required: true
	Log *string `json:"log"`

	// indicates whether the constraint matched or not
	// Required: true
	Match *bool `json:"match"`
}

V1SizeConstraintMatchingLog v1 size constraint matching log

swagger:model v1.SizeConstraintMatchingLog

func (*V1SizeConstraintMatchingLog) ContextValidate added in v0.12.1

func (m *V1SizeConstraintMatchingLog) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 size constraint matching log based on the context it is used

func (*V1SizeConstraintMatchingLog) MarshalBinary

func (m *V1SizeConstraintMatchingLog) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SizeConstraintMatchingLog) UnmarshalBinary

func (m *V1SizeConstraintMatchingLog) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SizeConstraintMatchingLog) Validate

func (m *V1SizeConstraintMatchingLog) Validate(formats strfmt.Registry) error

Validate validates this v1 size constraint matching log

type V1SizeCreateRequest

type V1SizeCreateRequest struct {

	// a list of constraints that defines this size
	// Required: true
	Constraints []*V1SizeConstraint `json:"constraints"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`
}

V1SizeCreateRequest v1 size create request

swagger:model v1.SizeCreateRequest

func (*V1SizeCreateRequest) ContextValidate added in v0.12.1

func (m *V1SizeCreateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 size create request based on the context it is used

func (*V1SizeCreateRequest) MarshalBinary

func (m *V1SizeCreateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SizeCreateRequest) UnmarshalBinary

func (m *V1SizeCreateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SizeCreateRequest) Validate

func (m *V1SizeCreateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 size create request

type V1SizeMatchingLog

type V1SizeMatchingLog struct {

	// constraints
	// Required: true
	Constraints []*V1SizeConstraintMatchingLog `json:"constraints"`

	// log
	// Required: true
	Log *string `json:"log"`

	// match
	// Required: true
	Match *bool `json:"match"`

	// name
	// Required: true
	Name *string `json:"name"`
}

V1SizeMatchingLog v1 size matching log

swagger:model v1.SizeMatchingLog

func (*V1SizeMatchingLog) ContextValidate added in v0.12.1

func (m *V1SizeMatchingLog) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 size matching log based on the context it is used

func (*V1SizeMatchingLog) MarshalBinary

func (m *V1SizeMatchingLog) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SizeMatchingLog) UnmarshalBinary

func (m *V1SizeMatchingLog) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SizeMatchingLog) Validate

func (m *V1SizeMatchingLog) Validate(formats strfmt.Registry) error

Validate validates this v1 size matching log

type V1SizeResponse

type V1SizeResponse struct {

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// a list of constraints that defines this size
	// Required: true
	Constraints []*V1SizeConstraint `json:"constraints"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`
}

V1SizeResponse v1 size response

swagger:model v1.SizeResponse

func (*V1SizeResponse) ContextValidate added in v0.12.1

func (m *V1SizeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 size response based on the context it is used

func (*V1SizeResponse) MarshalBinary

func (m *V1SizeResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SizeResponse) UnmarshalBinary

func (m *V1SizeResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SizeResponse) Validate

func (m *V1SizeResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 size response

type V1SizeUpdateRequest

type V1SizeUpdateRequest struct {

	// a list of constraints that defines this size
	Constraints []*V1SizeConstraint `json:"constraints"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`
}

V1SizeUpdateRequest v1 size update request

swagger:model v1.SizeUpdateRequest

func (*V1SizeUpdateRequest) ContextValidate added in v0.12.1

func (m *V1SizeUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 size update request based on the context it is used

func (*V1SizeUpdateRequest) MarshalBinary

func (m *V1SizeUpdateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SizeUpdateRequest) UnmarshalBinary

func (m *V1SizeUpdateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SizeUpdateRequest) Validate

func (m *V1SizeUpdateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 size update request

type V1SwitchConnection

type V1SwitchConnection struct {

	// the machine id of the machine connected to the nic
	MachineID string `json:"machine_id,omitempty"`

	// a network interface on the switch
	// Required: true
	Nic *V1SwitchNic `json:"nic"`
}

V1SwitchConnection v1 switch connection

swagger:model v1.SwitchConnection

func (*V1SwitchConnection) ContextValidate added in v0.12.1

func (m *V1SwitchConnection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 switch connection based on the context it is used

func (*V1SwitchConnection) MarshalBinary

func (m *V1SwitchConnection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SwitchConnection) UnmarshalBinary

func (m *V1SwitchConnection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SwitchConnection) Validate

func (m *V1SwitchConnection) Validate(formats strfmt.Registry) error

Validate validates this v1 switch connection

type V1SwitchNic

type V1SwitchNic struct {

	// configures the bgp filter applied at the switch port
	Filter *V1BGPFilter `json:"filter,omitempty"`

	// the mac address of this network interface
	// Required: true
	Mac *string `json:"mac"`

	// the name of this network interface
	// Required: true
	Name *string `json:"name"`

	// the vrf this network interface is part of
	Vrf string `json:"vrf,omitempty"`
}

V1SwitchNic v1 switch nic

swagger:model v1.SwitchNic

func (*V1SwitchNic) ContextValidate added in v0.12.1

func (m *V1SwitchNic) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 switch nic based on the context it is used

func (*V1SwitchNic) MarshalBinary

func (m *V1SwitchNic) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SwitchNic) UnmarshalBinary

func (m *V1SwitchNic) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SwitchNic) Validate

func (m *V1SwitchNic) Validate(formats strfmt.Registry) error

Validate validates this v1 switch nic

type V1SwitchNotifyRequest added in v0.7.1

type V1SwitchNotifyRequest struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// the duration of the switch synchronization
	// Required: true
	SyncDuration *int64 `json:"sync_duration"`
}

V1SwitchNotifyRequest v1 switch notify request

swagger:model v1.SwitchNotifyRequest

func (*V1SwitchNotifyRequest) ContextValidate added in v0.12.1

func (m *V1SwitchNotifyRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 switch notify request based on context it is used

func (*V1SwitchNotifyRequest) MarshalBinary added in v0.7.1

func (m *V1SwitchNotifyRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SwitchNotifyRequest) UnmarshalBinary added in v0.7.1

func (m *V1SwitchNotifyRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SwitchNotifyRequest) Validate added in v0.7.1

func (m *V1SwitchNotifyRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 switch notify request

type V1SwitchRegisterRequest

type V1SwitchRegisterRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// the mode the switch currently has
	Mode string `json:"mode,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the list of network interfaces on the switch
	// Required: true
	Nics []*V1SwitchNic `json:"nics"`

	// the partition in which this switch is located
	// Required: true
	PartitionID *string `json:"partition_id"`

	// the id of the rack in which this switch is located
	// Required: true
	RackID *string `json:"rack_id"`
}

V1SwitchRegisterRequest v1 switch register request

swagger:model v1.SwitchRegisterRequest

func (*V1SwitchRegisterRequest) ContextValidate added in v0.12.1

func (m *V1SwitchRegisterRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 switch register request based on the context it is used

func (*V1SwitchRegisterRequest) MarshalBinary

func (m *V1SwitchRegisterRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SwitchRegisterRequest) UnmarshalBinary

func (m *V1SwitchRegisterRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SwitchRegisterRequest) Validate

func (m *V1SwitchRegisterRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 switch register request

type V1SwitchResponse

type V1SwitchResponse struct {

	// the last changed timestamp of this entity
	// Read Only: true
	// Format: date-time
	Changed strfmt.DateTime `json:"changed,omitempty"`

	// a connection between a switch port and a machine
	// Required: true
	Connections []*V1SwitchConnection `json:"connections"`

	// the creation time of this entity
	// Read Only: true
	// Format: date-time
	Created strfmt.DateTime `json:"created,omitempty"`

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// last successful synchronization to the switch
	LastSync *V1SwitchSync `json:"last_sync,omitempty"`

	// last synchronization to the switch that was erroneous
	LastSyncError *V1SwitchSync `json:"last_sync_error,omitempty"`

	// the mode the switch currently has
	Mode string `json:"mode,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the list of network interfaces on the switch
	// Required: true
	Nics []*V1SwitchNic `json:"nics"`

	// the partition in which this switch is located
	// Required: true
	Partition *V1PartitionResponse `json:"partition"`

	// the id of the rack in which this switch is located
	// Required: true
	RackID *string `json:"rack_id"`
}

V1SwitchResponse v1 switch response

swagger:model v1.SwitchResponse

func (*V1SwitchResponse) ContextValidate added in v0.12.1

func (m *V1SwitchResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 switch response based on the context it is used

func (*V1SwitchResponse) MarshalBinary

func (m *V1SwitchResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SwitchResponse) UnmarshalBinary

func (m *V1SwitchResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SwitchResponse) Validate

func (m *V1SwitchResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 switch response

type V1SwitchSync added in v0.9.2

type V1SwitchSync struct {

	// the duration that lat switch sync took
	// Required: true
	Duration *int64 `json:"duration"`

	// shows the error occurred during the sync
	Error string `json:"error,omitempty"`

	// point in time when the last switch sync happened
	// Required: true
	// Format: date-time
	Time *strfmt.DateTime `json:"time"`
}

V1SwitchSync v1 switch sync

swagger:model v1.SwitchSync

func (*V1SwitchSync) ContextValidate added in v0.12.1

func (m *V1SwitchSync) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 switch sync based on context it is used

func (*V1SwitchSync) MarshalBinary added in v0.9.2

func (m *V1SwitchSync) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SwitchSync) UnmarshalBinary added in v0.9.2

func (m *V1SwitchSync) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SwitchSync) Validate added in v0.9.2

func (m *V1SwitchSync) Validate(formats strfmt.Registry) error

Validate validates this v1 switch sync

type V1SwitchUpdateRequest added in v0.8.0

type V1SwitchUpdateRequest struct {

	// a description for this entity
	Description string `json:"description,omitempty"`

	// the unique ID of this entity
	// Required: true
	ID *string `json:"id"`

	// the mode the switch currently has
	Mode string `json:"mode,omitempty"`

	// a readable name for this entity
	Name string `json:"name,omitempty"`

	// the id of the rack in which this switch is located
	// Required: true
	RackID *string `json:"rack_id"`
}

V1SwitchUpdateRequest v1 switch update request

swagger:model v1.SwitchUpdateRequest

func (*V1SwitchUpdateRequest) ContextValidate added in v0.12.1

func (m *V1SwitchUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 switch update request based on context it is used

func (*V1SwitchUpdateRequest) MarshalBinary added in v0.8.0

func (m *V1SwitchUpdateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SwitchUpdateRequest) UnmarshalBinary added in v0.8.0

func (m *V1SwitchUpdateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SwitchUpdateRequest) Validate added in v0.8.0

func (m *V1SwitchUpdateRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 switch update request

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL