models

package
v0.0.0-...-3e1e694 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddEvent

type AddEvent struct {

	// tags
	// Required: true
	// Max Items: 60
	// Min Items: 0
	Tags []*TagValueObject `json:"tags"`
}

AddEvent add event

swagger:model AddEvent

func (*AddEvent) ContextValidate

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

ContextValidate validate this add event based on the context it is used

func (*AddEvent) MarshalBinary

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

MarshalBinary interface implementation

func (*AddEvent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddEvent) Validate

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

Validate validates this add event

type AddLog

type AddLog struct {

	// level
	// Example: 1
	// Required: true
	Level *uint8 `json:"level"`

	// message
	// Example: example message
	// Required: true
	Message *string `json:"message"`
}

AddLog add log

swagger:model AddLog

func (*AddLog) ContextValidate

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

ContextValidate validates this add log based on context it is used

func (*AddLog) MarshalBinary

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

MarshalBinary interface implementation

func (*AddLog) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddLog) Validate

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

Validate validates this add log

type AgentConfigObject

type AgentConfigObject struct {

	// config id
	// Example: 1
	ConfigID *int64 `json:"config_id,omitempty"`

	// devices
	// Required: true
	Devices []*DeviceConfigObject `json:"devices"`

	// id
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`

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

	// tag
	// Required: true
	Tag *TagConfigObject `json:"tag"`
}

AgentConfigObject agent config object

swagger:model AgentConfigObject

func (*AgentConfigObject) ContextValidate

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

ContextValidate validate this agent config object based on the context it is used

func (*AgentConfigObject) MarshalBinary

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

MarshalBinary interface implementation

func (*AgentConfigObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AgentConfigObject) Validate

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

Validate validates this agent config object

type AgentDevicesCommandsObject

type AgentDevicesCommandsObject struct {

	// command
	Command *CommandObject `json:"command,omitempty"`

	// devices
	// Required: true
	Devices []*AgentDevicesCommandsObjectDevicesItems0 `json:"devices"`
}

AgentDevicesCommandsObject agent devices commands object

swagger:model AgentDevicesCommandsObject

func (*AgentDevicesCommandsObject) ContextValidate

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

ContextValidate validate this agent devices commands object based on the context it is used

func (*AgentDevicesCommandsObject) MarshalBinary

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

MarshalBinary interface implementation

func (*AgentDevicesCommandsObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AgentDevicesCommandsObject) Validate

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

Validate validates this agent devices commands object

type AgentDevicesCommandsObjectDevicesItems0

type AgentDevicesCommandsObjectDevicesItems0 struct {

	// command
	// Required: true
	Command *CommandObject `json:"command"`

	// device id
	// Example: 1
	// Required: true
	DeviceID *int64 `json:"device_id"`
}

AgentDevicesCommandsObjectDevicesItems0 agent devices commands object devices items0

swagger:model AgentDevicesCommandsObjectDevicesItems0

func (*AgentDevicesCommandsObjectDevicesItems0) ContextValidate

ContextValidate validate this agent devices commands object devices items0 based on the context it is used

func (*AgentDevicesCommandsObjectDevicesItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*AgentDevicesCommandsObjectDevicesItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AgentDevicesCommandsObjectDevicesItems0) Validate

Validate validates this agent devices commands object devices items0

type CommandObject

type CommandObject struct {

	// Timestamp with microseconds precision
	// Example: 1257894000000000
	// Required: true
	CreatedAt *int64 `json:"created_at"`

	// id
	// Example: some-id
	// Required: true
	ID *string `json:"id"`

	// reason
	// Example: Failed to send command
	Reason *string `json:"reason,omitempty"`

	// status
	// Required: true
	Status *CommandStatus `json:"status"`

	// tags
	// Required: true
	Tags []*CommandObjectTagsItems0 `json:"tags"`

	// Timestamp with microseconds precision
	// Example: 1257894000000000
	// Required: true
	UpdatedAt *int64 `json:"updated_at"`
}

CommandObject command object

swagger:model CommandObject

func (*CommandObject) ContextValidate

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

ContextValidate validate this command object based on the context it is used

func (*CommandObject) MarshalBinary

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

MarshalBinary interface implementation

func (*CommandObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CommandObject) Validate

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

Validate validates this command object

type CommandObjectTagsItems0

type CommandObjectTagsItems0 struct {

	// tag id
	// Example: 1
	// Required: true
	TagID *int64 `json:"tag_id"`

	// value
	// Example: true
	// Required: true
	Value interface{} `json:"value"`
}

CommandObjectTagsItems0 command object tags items0

swagger:model CommandObjectTagsItems0

func (*CommandObjectTagsItems0) ContextValidate

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

ContextValidate validates this command object tags items0 based on context it is used

func (*CommandObjectTagsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*CommandObjectTagsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CommandObjectTagsItems0) Validate

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

Validate validates this command object tags items0

type CommandStatus

type CommandStatus string

CommandStatus command status

swagger:model CommandStatus

const (

	// CommandStatusNew captures enum value "new"
	CommandStatusNew CommandStatus = "new"

	// CommandStatusSending captures enum value "sending"
	CommandStatusSending CommandStatus = "sending"

	// CommandStatusSent captures enum value "sent"
	CommandStatusSent CommandStatus = "sent"

	// CommandStatusReceived captures enum value "received"
	CommandStatusReceived CommandStatus = "received"

	// CommandStatusSkipped captures enum value "skipped"
	CommandStatusSkipped CommandStatus = "skipped"

	// CommandStatusDone captures enum value "done"
	CommandStatusDone CommandStatus = "done"

	// CommandStatusFailed captures enum value "failed"
	CommandStatusFailed CommandStatus = "failed"
)

func NewCommandStatus

func NewCommandStatus(value CommandStatus) *CommandStatus

func (CommandStatus) ContextValidate

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

ContextValidate validates this command status based on context it is used

func (CommandStatus) Validate

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

Validate validates this command status

type ConfigObject

type ConfigObject struct {

	// agent
	// Required: true
	Agent *AgentConfigObject `json:"agent"`

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

ConfigObject config object

swagger:model ConfigObject

func (*ConfigObject) ContextValidate

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

ContextValidate validate this config object based on the context it is used

func (*ConfigObject) MarshalBinary

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

MarshalBinary interface implementation

func (*ConfigObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConfigObject) Validate

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

Validate validates this config object

type DeviceConfigObject

type DeviceConfigObject struct {

	// config id
	// Example: 1
	ConfigID *int64 `json:"config_id,omitempty"`

	// driver
	// Required: true
	Driver *DriverConfigObject `json:"driver"`

	// Non typed dictionary for setting template. Deprecated, use driver_config in tags
	// Example: {"key":"value"}
	DriverConfig interface{} `json:"driver_config,omitempty"`

	// id
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`

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

	// tag
	// Required: true
	Tag *TagConfigObject `json:"tag"`
}

DeviceConfigObject device config object

swagger:model DeviceConfigObject

func (*DeviceConfigObject) ContextValidate

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

ContextValidate validate this device config object based on the context it is used

func (*DeviceConfigObject) MarshalBinary

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

MarshalBinary interface implementation

func (*DeviceConfigObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeviceConfigObject) Validate

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

Validate validates this device config object

type DeviceConfigVersionedObject

type DeviceConfigVersionedObject struct {

	// Creation timestamp with microseconds precision
	// Example: 1257894000000000
	CreatedAt *int64 `json:"created_at,omitempty"`

	// Non typed dictionary for device settings
	// Example: {"key":"value"}
	DeviceConfig interface{} `json:"device_config,omitempty"`

	// device id
	// Example: 1
	// Required: true
	DeviceID *int64 `json:"device_id"`

	// id
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`
}

DeviceConfigVersionedObject device config versioned object

swagger:model DeviceConfigVersionedObject

func (*DeviceConfigVersionedObject) ContextValidate

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

ContextValidate validates this device config versioned object based on context it is used

func (*DeviceConfigVersionedObject) MarshalBinary

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

MarshalBinary interface implementation

func (*DeviceConfigVersionedObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeviceConfigVersionedObject) Validate

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

Validate validates this device config versioned object

type DriverConfigObject

type DriverConfigObject struct {

	// id
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`

	// name
	// Example: modbus driver
	// Required: true
	Name *string `json:"name"`

	// protocol
	// Example: modbus
	Protocol *string `json:"protocol,omitempty"`
}

DriverConfigObject driver config object

swagger:model DriverConfigObject

func (*DriverConfigObject) ContextValidate

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

ContextValidate validates this driver config object based on context it is used

func (*DriverConfigObject) MarshalBinary

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

MarshalBinary interface implementation

func (*DriverConfigObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DriverConfigObject) Validate

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

Validate validates this driver config object

type ErrorResponse

type ErrorResponse struct {

	// code
	// Example: 300
	Code int64 `json:"code,omitempty"`

	// message
	// Example: Something bad happens.
	Message string `json:"message,omitempty"`
}

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate

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

ContextValidate validates this error response based on context it is used

func (*ErrorResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

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

Validate validates this error response

type PatchCommandStatus

type PatchCommandStatus struct {

	// reason
	// Example: Failed to send command
	Reason *string `json:"reason,omitempty"`

	// status
	// Required: true
	Status *CommandStatus `json:"status"`

	// Timestamp with microseconds precision
	// Example: 1257894000000000
	Timestamp *int64 `json:"timestamp,omitempty"`
}

PatchCommandStatus patch command status

swagger:model PatchCommandStatus

func (*PatchCommandStatus) ContextValidate

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

ContextValidate validate this patch command status based on the context it is used

func (*PatchCommandStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*PatchCommandStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PatchCommandStatus) Validate

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

Validate validates this patch command status

type TagConfigObject

type TagConfigObject struct {

	// Non typed dictionary for user defined data.
	// Example: {"key":"value"}
	Attrs interface{} `json:"attrs,omitempty"`

	// children
	// Example: []
	Children []*TagConfigObject `json:"children"`

	// Non typed dictionary for setting template.
	// Example: {"key":"value"}
	DriverConfig interface{} `json:"driver_config,omitempty"`

	// id
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`

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

	// properties
	// Example: {"a":"b"}
	// Required: true
	Properties interface{} `json:"properties"`

	// type
	// Required: true
	Type *TagTypeObject `json:"type"`
}

TagConfigObject tag config object

swagger:model TagConfigObject

func (*TagConfigObject) ContextValidate

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

ContextValidate validate this tag config object based on the context it is used

func (*TagConfigObject) MarshalBinary

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

MarshalBinary interface implementation

func (*TagConfigObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TagConfigObject) Validate

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

Validate validates this tag config object

type TagTypeObject

type TagTypeObject struct {

	// id
	// Example: 1
	ID *int64 `json:"id,omitempty"`

	// name
	// Example: undefined
	Name *string `json:"name,omitempty"`
}

TagTypeObject tag type object

swagger:model TagTypeObject

func (*TagTypeObject) ContextValidate

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

ContextValidate validates this tag type object based on context it is used

func (*TagTypeObject) MarshalBinary

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

MarshalBinary interface implementation

func (*TagTypeObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TagTypeObject) Validate

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

Validate validates this tag type object

type TagValueObject

type TagValueObject struct {

	// id
	// Example: 1
	// Required: true
	ID *int64 `json:"id"`

	// Timestamp with microseconds precision
	// Example: 1257894000000000
	// Required: true
	Timestamp *int64 `json:"timestamp"`

	// Value of the tag
	// Example: 1
	// Required: true
	Value interface{} `json:"value"`
}

TagValueObject tag value object

swagger:model TagValueObject

func (*TagValueObject) ContextValidate

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

ContextValidate validates this tag value object based on context it is used

func (*TagValueObject) MarshalBinary

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

MarshalBinary interface implementation

func (*TagValueObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TagValueObject) Validate

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

Validate validates this tag value object

Jump to

Keyboard shortcuts

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