models

package
v0.0.0-...-2ac3827 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// message
	Message string `json:"message,omitempty"`

	// type
	Type ErrorType `json:"type,omitempty"`
}

Error error swagger:model Error

func (*Error) Validate

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

Validate validates this error

type ErrorType

type ErrorType string

ErrorType Error Types swagger:model ErrorType

const (
	ErrorTypeUnknownError           ErrorType = "UnknownError"
	ErrorTypeInvalidDomain          ErrorType = "InvalidDomain"
	ErrorTypeUnkownVersion          ErrorType = "UnkownVersion"
	ErrorTypeInvalidRecord          ErrorType = "InvalidRecord"
	ErrorTypeInvalidRequest         ErrorType = "InvalidRequest"
	ErrorTypeInvalidResponse        ErrorType = "InvalidResponse"
	ErrorTypeInvalidProtobufMessage ErrorType = "InvalidProtobufMessage"
	ErrorTypeInvalidJSON            ErrorType = "InvalidJSON"
	ErrorTypeFailedToOpenEnvelope   ErrorType = "FailedToOpenEnvelope"
	ErrorTypeInvalidStateTransition ErrorType = "InvalidStateTransition"
	ErrorTypeUnauthorized           ErrorType = "Unauthorized"
	ErrorTypeResourceConflict       ErrorType = "ResourceConflict"
	ErrorTypeResourceExist          ErrorType = "ResourceExist"
	ErrorTypeResourceNotFound       ErrorType = "ResourceNotFound"
	ErrorTypeRouterError            ErrorType = "RouterError"
	ErrorTypeSoftLayerAPIError      ErrorType = "SoftLayerAPIError"
	ErrorTypeGUIDGeneration         ErrorType = "GUIDGeneration"
	ErrorTypeDeserialize            ErrorType = "Deserialize"
	ErrorTypeDeadlock               ErrorType = "Deadlock"
	ErrorTypeUnrecoverable          ErrorType = "Unrecoverable"
)

func (ErrorType) Validate

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

Validate validates this error type

type State

type State string

State Vm State swagger:model State

const (
	StateFree         State = "free"
	StateProvisioning State = "provisioning"
	StateUsing        State = "using"
	StateUnknown      State = "unknown"
)

func (State) Validate

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

Validate validates this state

type VM

type VM struct {

	// cid
	Cid int32 `json:"cid,omitempty"`

	// cpu
	CPU int32 `json:"cpu,omitempty"`

	// create date
	CreateDate strfmt.DateTime `json:"createDate,omitempty"`

	// deployment name
	DeploymentName string `json:"deploymentName,omitempty"`

	// hostname
	Hostname string `json:"hostname,omitempty"`

	// ip
	IP strfmt.IPv4 `json:"ip,omitempty"`

	// memory mb
	MemoryMb int32 `json:"memory_mb,omitempty"`

	// modify date
	ModifyDate strfmt.DateTime `json:"modifyDate,omitempty"`

	// private vlan
	PrivateVlan int32 `json:"private_vlan,omitempty"`

	// public vlan
	PublicVlan int32 `json:"public_vlan,omitempty"`

	// state
	State State `json:"state,omitempty"`
}

VM Vm swagger:model Vm

func (*VM) Validate

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

Validate validates this Vm

type VMFilter

type VMFilter struct {

	// cid
	Cid int32 `json:"cid,omitempty"`

	// cpu
	CPU int32 `json:"cpu,omitempty"`

	// ip
	IP strfmt.IPv4 `json:"ip,omitempty"`

	// memory mb
	MemoryMb int32 `json:"memory_mb,omitempty"`

	// private vlan
	PrivateVlan int32 `json:"private_vlan,omitempty"`

	// public vlan
	PublicVlan int32 `json:"public_vlan,omitempty"`

	// state
	State State `json:"state,omitempty"`
}

VMFilter Vm filter swagger:model VmFilter

func (*VMFilter) Validate

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

Validate validates this Vm filter

type VMResponse

type VMResponse struct {

	// vm
	VM *VM `json:"vm,omitempty"`
}

VMResponse Vm response swagger:model VmResponse

func (*VMResponse) Validate

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

Validate validates this Vm response

type VMState

type VMState struct {

	// state
	State State `json:"state,omitempty"`
}

VMState Vm state swagger:model VmState

func (*VMState) Validate

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

Validate validates this Vm state

type VmsResponse

type VmsResponse struct {

	// vms
	Vms []*VM `json:"vms"`
}

VmsResponse vms response swagger:model VmsResponse

func (*VmsResponse) Validate

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

Validate validates this vms response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL